The UBFC-rPPG dataset I download from the Internet like this:

So the data path should be "/UBFC_rPPG/dataset2", I run the code using this command:
python main.py --gpu 0 --epochs 50 --batch_size 12 --lr 1e-4
--n_dim 2048 --temperature 0.1
--dataset_name "ubfc-rppg"
--dataset_dir "/share2/data/zhouwenqing/UBFC_rPPG/dataset2"
--workers 4 --vid_frame 150 --clip_frame 30 --roi_list 0 1 2 3 4 5 6 --stride_list 1 2 3 4 5
--log_dir "./logs/ubfc/train"
--model_depth 18
But it made a mistake:

I have taken a closer look at the code of your UBFCDataset class, but I find that the data set path your code handles does not seem to be the original UBFC-rPPG data set. Did you make any changes to the original UBFC-rPPG dataset directory format?
The UBFC-rPPG dataset I download from the Internet like this:

So the data path should be "/UBFC_rPPG/dataset2", I run the code using this command:
python main.py --gpu 0 --epochs 50 --batch_size 12 --lr 1e-4
--n_dim 2048 --temperature 0.1
--dataset_name "ubfc-rppg"
--dataset_dir "/share2/data/zhouwenqing/UBFC_rPPG/dataset2"
--workers 4 --vid_frame 150 --clip_frame 30 --roi_list 0 1 2 3 4 5 6 --stride_list 1 2 3 4 5
--log_dir "./logs/ubfc/train"
--model_depth 18
But it made a mistake:

I have taken a closer look at the code of your UBFCDataset class, but I find that the data set path your code handles does not seem to be the original UBFC-rPPG data set. Did you make any changes to the original UBFC-rPPG dataset directory format?