Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When Running ViT and ViTST Models: RuntimeError with mat1 and mat2 Shapes #10

Open
neshaat opened this issue Oct 8, 2023 · 1 comment

Comments

@neshaat
Copy link

neshaat commented Oct 8, 2023

Hello,

I want to express my gratitude for your efforts. I've encountered an issue when attempting to run both ViT and ViTST models. Specifically, I'm encountering an error when executing the following command:

python spot_deepfakes.py --media_type video --data_dir /DFSpot-Deepfake-Recognition/sample_videos/dfdc/fake/ --dataset dfdc --model ViT --model_dir /DFSpot-Deepfake-Recognition/models --annotate True --output_dir /DFSpot-Deepfake-Recognition/src/output --video_id 0

The error message I'm receiving is as follows:

RuntimeError: mat1 and mat2 shapes cannot be multiplied (300x201728 and 1024x1)

Interestingly, I am able to run the same command successfully with both TimmV2 and Timmvst models. However, I face this error exclusively when attempting to run ViT and ViTST models. It's worth noting that the video input remains consistent across all four models.
Any assistance with resolving this issue would be greatly appreciated.

@kamrul-NSL
Copy link

I am getting the same error!!! Did you solve it @neshaat ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants