From 27fb972354c69bf61845ae21f842855e762318d8 Mon Sep 17 00:00:00 2001 From: Jordan Gong Date: Sun, 27 Dec 2020 14:57:14 +0800 Subject: Make naming scheme consistent Use `dir` instead of `path` --- config.py | 4 ++-- utils/configuration.py | 4 ++-- 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 -- cgit v1.2.3