|
""" |
|
Project configurations. |
|
""" |
|
import os |
|
|
|
|
|
class Config(object): |
|
"""Datasets and experiments folders for the whole project.""" |
|
|
|
|
|
|
|
|
|
DATASET_ROOT = os.getenv( |
|
"DATASET_ROOT", "./datasets/" |
|
) |
|
if not os.path.exists(DATASET_ROOT): |
|
os.makedirs(DATASET_ROOT) |
|
|
|
|
|
synthetic_dataroot = os.path.join(DATASET_ROOT, "synthetic_shapes") |
|
synthetic_cache_path = os.path.join(DATASET_ROOT, "synthetic_shapes") |
|
if not os.path.exists(synthetic_dataroot): |
|
os.makedirs(synthetic_dataroot) |
|
|
|
|
|
export_dataroot = os.path.join(DATASET_ROOT, "export_datasets") |
|
export_cache_path = os.path.join(DATASET_ROOT, "export_datasets") |
|
if not os.path.exists(export_dataroot): |
|
os.makedirs(export_dataroot) |
|
|
|
|
|
wireframe_dataroot = os.path.join(DATASET_ROOT, "wireframe") |
|
wireframe_cache_path = os.path.join(DATASET_ROOT, "wireframe") |
|
|
|
|
|
holicity_dataroot = os.path.join(DATASET_ROOT, "Holicity") |
|
holicity_cache_path = os.path.join(DATASET_ROOT, "Holicity") |
|
|
|
|
|
|
|
|
|
EXP_PATH = os.getenv( |
|
"EXP_PATH", "./experiments/" |
|
) |
|
if not os.path.exists(EXP_PATH): |
|
os.makedirs(EXP_PATH) |
|
|