Git Product home page Git Product logo

deepfake-scanner's Introduction

Deepware Scanner (CLI)

This repository contains the command-line deepfake scanner tool with the pre-trained models that are currently used at deepware.ai.

To get an in-depth review about the scanner and the training process please refer to deepware.md. Here we will discuss the usage of the command-line scanner.

Installation

Make sure you have a nvidia gpu with cuda support. Scanner can run both on Windows and Linux.

On Linux
  • Clone the repo or download it as a zip and extract to a directory.
  • Install the dependencies listed in requirements file with pip install -r requirements.txt
  • Download the pre-trained model and place it in the weights directory.
On Windows

We packed all the requirements in a portable zip file including the model. You can download the zip file and start scanning right away.

Usage

The scanning script is scan.py and it has four command line arguments. Here's the usage printed by the script.

scan.py <scan_dir> <models_dir> <cfg_file> <device>

Let's dive into the arguments.

  • scan_dir is the directory of videos, alternatively a file with list of video paths is supported.
  • models_dir is the directory pre-trained models are stored. There can be multiple models and they will be ensembled automatically.
  • cfg_file is the config file. You shouldn't worry about this unless you want to train a new model.
  • device is the cuda device that will be used for scanning. cpu is not supported as of now.

Here's an example command line.

scan.py /home/user/videos weights config.json cuda:0

On windows you can use scan.bat file with just the video folder as input.

Training

Training scripts with a subset of DFDC dataset will be published soon. Stay tuned! ๐Ÿ””

deepfake-scanner's People

Contributors

dodobyte avatar y-atmaca avatar mertyyanik avatar neverusethisname avatar omer-ze 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.