Spaces:
Sleeping
Sleeping
Download models/config.py from twist-turn/third: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/twist-turn/third/resolve/main/models/config.py
- Command line
-
hf download hf://spaces/twist-turn/third/models/config.py
-
curl -L -o config.py https://huggingface.co/spaces/twist-turn/third/resolve/main/models/config.py
387 Bytes
| import os | |
| class Config: | |
| DEVICE = "cpu" | |
| BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| DATA_DIR = os.path.join(BASE_DIR, "data") | |
| CACHE_DIR = os.path.join(BASE_DIR, "cache") | |
| os.makedirs(DATA_DIR, exist_ok=True) | |
| os.makedirs(CACHE_DIR, exist_ok=True) | |
| NDVI_LENGTH_DAYS = 120 | |
| MAX_SEASONS = 4 | |
| IMG_WIDTH = 800 | |
| IMG_HEIGHT = 400 | |