MINTIME-Multi-Identity-size-iNvariant-TIMEsformer-for-Video-Deepfake-Detection
MINTIME-Multi-Identity-size-iNvariant-TIMEsformer-for-Video-Deepfake-Detection copied to clipboard
Error, when predict video in examples
Thank for your kindness! When I run : python3 predict.py --video_path ./examples/fake_1_face_0.mp4 --model_weights ./MINTIME_XC_Model_checkpoint30 --extractor_weights ./MINTIME_XC_Extractor_checkpoint30 --config config/size_invariant_timesformer.yaml
error occurs:
Custom features extractor weights loaded.
/opt/data2/p/fake_face/MINTIME/predict.py:352: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ../torch/csrc/utils/tensor_new.cpp:210.)
return torch.tensor([sequence]).float(), torch.tensor([size_embeddings]).int(), torch.tensor([mask]).bool(), torch.tensor([identities_mask]).bool(), torch.tensor([positions]), tokens_per_identity
Traceback (most recent call last):
File "/opt/data2/p/fake_face/MINTIME/predict.py", line 555, in
Hi, follow this: https://github.com/davide-coccomini/MINTIME-Multi-Identity-size-iNvariant-TIMEsformer-for-Video-Deepfake-Detection/issues/4