Giter Club home page Giter Club logo

Comments (6)

guyreading avatar guyreading commented on May 21, 2024

Solved: used with torch.cuda.amp.autocast(): in kernel_utils, line 334, for the subsquent 3 lines. & then changed all pointers to cuda with "cpu", removed the .half()'s where they were as incompatible with cpu use.

from dfdc_deepfake_challenge.

epiqueras avatar epiqueras commented on May 21, 2024

@guyreading @selimsef torch.cuda.amp.autocast() is not available in PYTORCH="1.4" which the Docker image is built for.

Is there a workaround you would recommend?

from dfdc_deepfake_challenge.

selimsef avatar selimsef commented on May 21, 2024

@epiqueras There is no need to use amp for inference on CPU. You can just change half -> float inputs and device to "cpu" as @guyreading did.

from dfdc_deepfake_challenge.

epiqueras avatar epiqueras commented on May 21, 2024

@selimsef yeah, I ended up figuring that out reading the docs.

Thanks for confirming!

This doesn't do too well on side shots, does it? I tested it, and it gave me ~0.3 for an obviously fake video.

from dfdc_deepfake_challenge.

selimsef avatar selimsef commented on May 21, 2024

@epiqueras Yes, multiple reasons for that:

  • less training data for that view
  • In the training set there were two actors per video with side shots, one of them was not fake. So it created a lot of noise in training.
  • MTCNN might miss faces on side shots or bounding boxes won't be accurate

from dfdc_deepfake_challenge.

epiqueras avatar epiqueras commented on May 21, 2024

@selimsef interesting; thanks for the info.

I tested it on frontal webcam shots, and it works almost perfectly.

What are your thoughts on using MTCNN vs. using some sort of reversal/adaptation of the feedback loops the networks that generate deepfakes use? I assume that would only work for targeting specific algorithms and using approaches like yours can work against a broader range of techniques?

from dfdc_deepfake_challenge.

Related Issues (20)

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.