Coder Social home page Coder Social logo

deepfakegui's Introduction

Notice

There were no virtual environments used, I will need to recode a version that does use venv environments. For cleaner code and less issues with it reinstalling packages or downgrading/upgrading packages you need for another project. I will make sure to implement this if I continue working on this project some day.

Introduction

DeepFakeGui is a gui for the first order motion model it uses ffmpeg to prepare images automatically, and adds the audio back to the video, using ffmpeg.

make sure you have a dataset from the original project from Google drive or Yandex, i recommend vox-adv-cpk, which is for facial animation (from original repo)

FOM has some issues on newer version of python, this gui aims to fix that by patching the files with simple changes to make it compatible. there will be warnings, but errors should be gone from the training.

Requirements

some things are not automatically installed, you will need to install them yourself

  • python 3.8.10 (from the python.org website, not windows store)

  • pytorch (run the following command): py -3.8 -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113

  • microsoft visual c++ 2017 sdk

    Desktop environment with c++

Gui:

Gui

  • press f1 to open the output folder automatically
  • image preview
  • load image
    • lets you open an image, you can also open a video or gif image, to get the first frame
  • load video
    • lets you open a video, this will be for the motion, it's best when it's a video fitting the dataset
    • with voxceleb that would be someone facing the camera
  • absolute position
    • turn this on if you want the face to be mapped onto the original video (good with an image with greenscreen background, for overlapping a deepfake)
    • turn this off if you want it to be based off of the image instead (good for quick videos)
  • resolution
    • just keep this at 512, the ai is made for 512x512 pixel images, so changing this might cause issues, i still put it in just in case you want to try
  • config/dataset
    • type the name of the dataset and config here, for vox-adv-cpk.pth.tar you should put vox-adv
  • process
    • set up the files for the ai, then run the ai, then add the audio back on and put it in the output folder (open with f1)

Fixes to known issues

  • It creates a result.mp4 but doesn't create a new file in the output folder
    • make sure there are no spaces in the path to the exe
  • I'm getting an error when i press the Process button
    • make sure you have both a video and an image selected

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.