-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
31 lines (24 loc) · 866 Bytes
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
General settings. Mainly paths to data.
"""
import os
# data root (mainly for CIFAR10)
DATA_ROOT = os.getenv("DATA_ROOT")
# ImageNet path
IMAGENET_PATH = os.getenv("IMAGENET_PATH")
IMAGENET_RN50_ZEROSHOT_WEIGHTS_PATH = os.getenv("IMAGENET_RN50_ZEROSHOT_WEIGHTS_PATH")
# VOC path
VOC_PATH = os.getenv("VOC_PATH")
# CC3M path
CC3M_PATH = os.getenv("CC3M_PATH")
# ---------------------------------------------
# Following are only needed for caching!!!
# ---------------------------------------------
SHMTMPDIR = "/dev/shm"
# ImageNet train data tar files
# Note this is not the same as the official ImageNet tar file
# this expects each class to inside its own tar file, which will then be extracted
# to SHMTMPDIR
IMAGENET_TRAIN_TAR_FILES_DIR = os.getenv("IMAGENET_TRAIN_TAR_FILES_DIR")
# Path to redis server
REDIS_SERVER = os.getenv("REDIS_SERVER_PATH")