DFSpot-Deepfake-Recognition
DFSpot-Deepfake-Recognition copied to clipboard
IndexError: list index out of range
When I am trying to run this command: python3 spot_deepfakes.py --media_type video --data_dir ../sample_videos/dfdc/fake/ --dataset dfdc --model TimmV2 TimmV2ST ViT ViTST --model_dir ../models/ --video_id 0 1 2 --annotate True --device 0 --output_dir output/
I am receiving the following error:
Traceback (most recent call last):
File "/home/sanskriti/df_spot/DeepFake-Spot/src/spot_deepfakes.py", line 121, in
File "/home/sanskriti/df_spot/DeepFake-Spot/src/utils/utils.py", line 343, in extract_predict_annotate vid = cv2.VideoCapture(video_glob[ne]) ~~~~~~~~~~^^^^ IndexError: list index out of range
It is similar to the other datasets as well.