Coder Social home page Coder Social logo

core's Introduction

CORE: COnsistent REpresentation Learning for Face Forgery Detection, CVPRW 22

paper | video

framework

Dependencies

conda create -n CORE python=3.7
conda activate CORE
conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
pip install -r requirements

Data pre-processing

Some errors that crop real faces in manipulated videos occur whether select the biggest or highest detection probability face by MTCNN, especially when there are two characters in a video. We solved the problem by using the provided video mask in FF++.

Please run python prep_w_mask.py --src-root Your_source_directory --dst-root Your_destination_directory --fake-type Deepfakes[Face2Face, FaceSwap, NeuralTextures, DeepFakeDetection, real]

Quickstart

You can reproduced the in-dataset results in Tab.1 using the following three commands:

  • Xception: python main.py --dataset celebdf --aug-name None
  • Xception+: python main.py --dataset celebdf --aug-name RE
  • Ours: python main.py --dataset celebdf --aug-name RE --consistency cos --consistency-rate 1.0

For the cross-dataset results in Tab.8, three commands are as follows:

  • None: python main.py --dataset ff --aug-name None
  • RaAug: python main.py --dataset ff --aug-name RaAug --consistency cos --consistency-rate 100.0
  • DFDC_selim: python main.py --dataset ff --aug-name DFDC_selim --consistency cos --consistency-rate 100.0

Thanks

  1. We used RFM data augmentations, https://github.com/crywang/RFM
  2. We used DFDC_selim data augmentations, https://github.com/selimsef/dfdc_deepfake_challenge
  3. We modify xception model to output feature, https://github.com/tstandley/Xception-PyTorch

Citation

coming soon

core's People

Contributors

niyunsheng avatar

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.