-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.py
32 lines (28 loc) · 1013 Bytes
/
config.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
"""
General configurations
"""
import os
from pathlib import Path
# -----------------------------------------------------------------------------
# Download configs
# -----------------------------------------------------------------------------
DOWNLOAD_CHUNCK_SIZE = 4096
PROGRESS_BAR_LENGTH = 50
# -----------------------------------------------------------------------------
# Dataset configs
# -----------------------------------------------------------------------------
# Dataset structure: (mainly for downloadable datasets)
# [build dir]
# └── datasets
# └── [dataset_name].zip (compressed json file containing version, trajs and labels)
#
# [cache_dir]
# └── datasets
# └── [dataset_name]
# ├── [unzipped dataset files]
# └── yupi_data.json
#
CACHE_PATH = os.environ.get("TRAJ_CACHE_PATH", str(Path(__file__).parent / ".cache"))
DS_BASE_DIR = CACHE_PATH + "/datasets"
DS_DIR = DS_BASE_DIR + "/{0}"
DS_RAW_DIR = DS_DIR + "/raw_data"