Open zz1565 opened 7 months ago
Hi, I have the same problem as you. May I ask have you solved it? Thank you very much
I kind of forgot how to solve this problem, need to change the path
HI, I have encountered the same question as you. I command "python gen_patches.py --dataset avenue--phase test --filter_ratio 0.9 --sample_num 5" on both avenue train & test dataset at first. in the training section, I command "python main.py --dataset avenue --val_step 100 --print_interval 20 --batch_size 192 --sample_num 5 --epochs 20 --static_threshold 0.2 --filter_ratio 0.9" and encountered this error:
/Jigsaw-VAD/dataset.py", line 82, in _load_data detect_result = self.detect[video_file][frame] IndexError: list index out of range
May I ask the detailed solution? Thank you very much.
The problem is in dataset.py -> class VideoAnomalyDataset_C3D -> def _load_data -> line 74:
l = os.listdir(self.data_dir + '/' + video_file)
This path should be your image directory not the directory storing .npy files.
Hi, thanks a lot for your great work. May I ask if I first converted the original STC dataset to your structure and then used the gen_patches.py file to generate a. npy file? However, I encountered this error. Can you tell me the reason for this? Thank you