Giter Club home page Giter Club logo

chinmaynehate / dfspot-deepfake-recognition Goto Github PK

View Code? Open in Web Editor NEW
89.0 3.0 20.0 26.52 MB

Determine whether a given video sequence has been manipulated or synthetically generated

Home Page: https://colab.research.google.com/drive/1s0e0OO_Xcyw7S81s8GydTDtTQXJvJPpL?usp=sharing

License: MIT License

Python 61.34% Jupyter Notebook 29.33% Shell 9.33%
deepfakes deepfakes-classification deep-learning deep-neural-networks siamese-network triplet-loss efficientnet ensemble-learning transfer-learning pytorch

dfspot-deepfake-recognition's People

Contributors

chinmaynehate avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dfspot-deepfake-recognition's Issues

Training script!

Thanks a lot for this wonderful code-base. Is it possible to get the training script? I want to check the performance of the proposed method on custom dataset after training?

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

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.

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
main()
File "/home/sanskriti/df_spot/DeepFake-Spot/src/spot_deepfakes.py", line 99, in main
predictions = utils.extract_predict_annotate(output_dir, ensemble_models, video_glob, video_idxs, transformer, blazeface_dir, device, models_loaded)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.