summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2020-12-27 14:57:14 +0800
committerJordan Gong <jordan.gong@protonmail.com>2020-12-27 14:57:14 +0800
commit27fb972354c69bf61845ae21f842855e762318d8 (patch)
tree1b65620cfa514072d68f6e6259eb4ac28cebcf3a
parent3a8c48c722f687a47180221f807bd0a59c9f616e (diff)
Make naming scheme consistent
Use `dir` instead of `path`
-rw-r--r--config.py4
-rw-r--r--utils/configuration.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/config.py b/config.py
index 0d98608..316ec50 100644
--- a/config.py
+++ b/config.py
@@ -9,14 +9,14 @@ config: Configuration = {
# GPU(s) used in training or testing, if CUDA enabled
'CUDA_VISIBLE_DEVICES': '0',
# Directory used in training or testing for temporary storage
- 'save_path': 'runs',
+ 'save_dir': 'runs',
},
# Dataset settings
'dataset': {
# Name of dataset (CASIA-B or FVG)
'name': 'CASIA-B',
# Path to dataset root
- 'path': 'dataset/output/CASIA-B',
+ 'root_dir': 'dataset/output/CASIA-B',
# The number of subjects for training
'train_size': 74,
# Number of sampled frames per sequence (Training only)
diff --git a/utils/configuration.py b/utils/configuration.py
index 445badd..e6bfaf2 100644
--- a/utils/configuration.py
+++ b/utils/configuration.py
@@ -8,12 +8,12 @@ from utils.dataset import ClipLabels, ClipConditions, ClipViews
class SystemConfiguration(TypedDict):
device: torch.device
CUDA_VISIBLE_DEVICES: str
- save_path: str
+ save_dir: str
class DatasetConfiguration(TypedDict):
name: str
- path: str
+ root_dir: str
train_size: int
num_sampled_frames: int
discard_threshold: int