-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenv_settting.py
executable file
·38 lines (28 loc) · 1.06 KB
/
env_settting.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
32
33
34
35
36
"""env setting"""
import os
FILE = 'env_setting.py'
ENV_SETTING_PATH = os.path.dirname(os.path.realpath(FILE))
ROOT_PATH = ENV_SETTING_PATH
# model
MODEL_MODULE_PATH = os.path.join(ROOT_PATH, 'model')
# visualizer
VISUALIZER_MODULE_PATH = os.path.join(ROOT_PATH, 'visualizer')
# dataset handler
DATA_HANDLER_PATH = os.path.join(ROOT_PATH, 'data_handler')
# dataset
DATA_PATH = os.path.join(ROOT_PATH, 'data')
LLD_PATH = os.path.join(DATA_PATH, 'LLD_favicons_clean')
MNIST_PATH = os.path.join(DATA_PATH, 'mnist')
CIFAR10_PATH = os.path.join(DATA_PATH, 'cifar-10-batches-py')
CIFAR100_PATH = os.path.join(DATA_PATH, "cifar-100-python")
FASHION_MNIST_PATH = os.path.join(DATA_PATH, "fashionmnist")
CELEBA_PATH = os.path.join(DATA_PATH, 'img_align_celeba')
EXAMPLE_DATASET_PATH = os.path.join(DATA_PATH, 'example_dataset')
# instance
INSTANCE_PATH = os.path.join(ROOT_PATH, 'instance')
def tensorboard_dir():
import tensorboard
path, _ = os.path.split(tensorboard.__file__)
tensorboard_main = os.path.join(path, 'main.py')
del tensorboard
return tensorboard_main