Closed Bhupendra589 closed 1 year ago
.yaml file
BASE: ['']
TOOLBOX_MODE: "train_and_test" # "train_and_test" or "only_test"
TRAIN:
BATCH_SIZE: 1
EPOCHS: 30
LR: 9e-3
MODEL_FILE_NAME: SCAMPS_SCAMPS_UBFC_physnet
DATA:
FS: 30
DATASET: SCAMPS
DO_PREPROCESS: False # if first time, should be true
DATA_FORMAT: NCDHW
DATA_PATH: 'C:\Users\bsing\rPPG-Toolbox-main\data\SCAMPS\Train' # Raw dataset path, need to be updated
CACHED_PATH: 'C:\Users\bsing\rPPG-Toolbox-main\cache' # Processed dataset save path, need to be updated
EXP_DATA_NAME: ""
BEGIN: 0.0
END: 1.0
PREPROCESS :
DATA_TYPE: ['DiffNormalized'] #if use physnet, should be DiffNormalized
LABEL_TYPE: DiffNormalized
DO_CHUNK: True
CHUNK_LENGTH: 128 #only support for factor of 512
CROP_FACE:
DO_CROP_FACE: True
USE_LARGE_FACE_BOX: True
LARGE_BOX_COEF: 1.5
DETECTION:
DO_DYNAMIC_DETECTION: False
DYNAMIC_DETECTION_FREQUENCY : 32
USE_MEDIAN_FACE_BOX: False # This should be used ONLY if dynamic detection is used
RESIZE:
H: 72
W: 72
VALID:
DATA:
FS: 30
DATASET: SCAMPS
DO_PREPROCESS: False # if first time, should be true
DATA_FORMAT: NCDHW
DATA_PATH: 'C:\Users\bsing\rPPG-Toolbox-main\data\SCAMPS\Val' # Raw dataset path, need to be updated
CACHED_PATH: 'C:\Users\bsing\rPPG-Toolbox-main\cache' # Processed dataset save path, need to be updated
EXP_DATA_NAME: ""
BEGIN: 0.0
END: 1.0
PREPROCESS :
DATA_TYPE: ['DiffNormalized'] #if use physnet, should be DiffNormalized
LABEL_TYPE: DiffNormalized
DO_CHUNK: True
CHUNK_LENGTH: 128 #only support for factor of 512
CROP_FACE:
DO_CROP_FACE: True
USE_LARGE_FACE_BOX: True
LARGE_BOX_COEF: 1.5
DETECTION:
DO_DYNAMIC_DETECTION: False
DYNAMIC_DETECTION_FREQUENCY : 32
USE_MEDIAN_FACE_BOX: False # This should be used ONLY if dynamic detection is used
RESIZE:
H: 72
W: 72
TEST:
METRICS: ['MAE','RMSE','MAPE','Pearson', 'SNR']
USE_LAST_EPOCH: True # to use provided validation dataset to find the best epoch, should be false
DATA:
FS: 30
DATASET: UBFC-rPPG
DO_PREPROCESS: False # if first time, should be true
DATA_FORMAT: NCDHW
DATA_PATH: 'C:\Users\bsing\rPPG-Toolbox-main\data\UBFC' # Raw dataset path, need to be updated
CACHED_PATH: 'C:\Users\bsing\rPPG-Toolbox-main\cache' # Processed dataset save path, need to be updated
EXP_DATA_NAME: ""
BEGIN: 0.0
END: 1.0
PREPROCESS :
DATA_TYPE: ['DiffNormalized'] #if use physnet, should be DiffNormalized
LABEL_TYPE: DiffNormalized
DO_CHUNK: True
CHUNK_LENGTH: 128 #only support for factor of 512
CROP_FACE:
DO_CROP_FACE: True
USE_LARGE_FACE_BOX: True
LARGE_BOX_COEF: 1.5
DETECTION:
DO_DYNAMIC_DETECTION: False
DYNAMIC_DETECTION_FREQUENCY : 32
USE_MEDIAN_FACE_BOX: False # This should be used ONLY if dynamic detection is used
RESIZE:
H: 72
W: 72
DEVICE: cuda:0
NUM_OF_GPU_TRAIN: 1
LOG:
PATH: runs/exp
MODEL:
DROP_RATE: 0.2
NAME: Physnet
PHYSNET:
FRAME_NUM: 128
INFERENCE:
BATCH_SIZE: 1
EVALUATION_METHOD: "FFT" # "FFT" or "peak detection"
EVALUATION_WINDOW:
USE_SMALLER_WINDOW: False # Change this if you'd like an evaluation window smaller than the test video length
WINDOW_SIZE: 10 # In seconds
MODEL_PATH: ""
Hello, I'm sorry to bother you. I'm facing the same issue, and I wanted to ask how you resolved it. I'm using a Windows system, and I'm wondering if it might be related. Thank you.