Mr DeepFakes Forums
  • New and improved dark forum theme!
  • Guests can now comment on videos on the tube.
   
OpenFaceSwap Installation and Use
#1
OpenFaceSwap

[Image: N1pst1y.png]

OpenFaceSwap was created to make creating deepfakes easier with the same quality from the Python scripts. This was developed by deepfakes.club (which is now closed)

Download: You are not allowed to view links. Register or Login to view.

[b]Requirements:[/b]
  1. Microsoft Visual Studio Redistributable 2015 - You are not allowed to view links. Register or Login to view.
  2. CUDA 9.0 - You are not allowed to view links. Register or Login to view.
  3. cuDN 7.05 - You are not allowed to view links. Register or Login to view. (requires email registration)
  4. Latest NVIDIA graphics card drivers - You are not allowed to view links. Register or Login to view.
  5. Windows 10 or Windows 2016 Server, Intel processor second generation (Sandy Bridge) or later, NVIDIA graphics card with compute capability 3.0 or higher.
How to Install OpenFaceSwap and Make DeepFakes
  1. Install the above 4 pre-requisites.
  2. Unzip the cuDNN files
  3. Manually copy 3 files from cuDNN to the corresponding folders in your CUDA installation which is usually at 
    C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0

  • Copy cuda\bin\cudnn64_7.dll to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin
  • Copy cuda\include\cudnn.h to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include
  • Copy cuda\lib\x64\cudnn.lib to C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64

Now install the OpenFaceSwap Installer

Choose a directory for installation that is not in Program Files due to possible user permission errors. The default is set to “C:\OpenFaceSwap”.

Using OpenFaceSwap

[Image: C6cvjdD.png]

VIDEO A - select a video file that contains the video with the face you want to change (eg: the Pornstar).

IMAGES A - click this to extract all the frames from "VIDEO A"; click on the magnifying glass to inspect the results if you wish.

FACES A - click this to extract all the faces from "IMAGES A" ; ideally the video should have only one face. Click the magnifying glass to inspect the images, and remove images that are not of your target face.

REPEAT above steps for VIDEO B, IMAGES B, and FACES B; these will be for the face that you want to insert into "VIDEO A" 

If you have images instead of a video for your FACES B, then click IMAGES B and select the folder where all of the images are of your celebrity target.

MODEL - you need to select the folders of "FACES A" and "FACES B" to begin training. Allow enough time for the application to train a model for your paired faces. This may take many hours, and target loss values are <0.02.
  • Check the previews to see the quality of the faceswap
  • Press ENTER on your keyboard to save and end training once you're satisfied with the training
SWAPS - click this to apply your trained model to make "Face A" turn into "Face B"

MOVIE - click this to create the movie file. The file will be generated in your OpenFaceSwap installation directory. You may click the magnifying glass to open the folder and play the movie.

Once you're done and happy with the results, you may click the Trash icon to empty your default folders for your next project.

Advanced Usage
  • Click on the gear icon next to each command to see the options.
  • You may include custom commands by checking the "Custom" box.
  • You can save and load settings, including custom commands using the appropriate icons in the top left corner.
  • By default, the application uses the most recent faceswap GitHub repository, if you would to change the model type, you need to edit "openfaceswapconfig.txt" to point to the appropriate paths. This will normally only involve inserting a "_exp" or "_lowmem" in the appropriate paths. 
#2
Reserved
#3
Every time I use OpenFaceSwap I get an "ImportError: DLL load failed" error once im up to faces. Some other people on github said to revert to cudnn 5.1 in CUDA's directory, which i've done, but still get the same error. Anybody encountered similar?
#4
(11-27-2018, 12:38 PM)throwaway113456788 Wrote: You are not allowed to view links. Register or Login to view.Every time I use OpenFaceSwap I get an "ImportError: DLL load failed" error once im up to faces. Some other people on github said to revert to cudnn 5.1 in CUDA's directory, which i've done, but still get the same error. Anybody encountered similar?

Do you have other deepfake applications installed?  If you do, different versions of dlib and tensorflow from other applications can sometimes break OpenFaceSwap. If you do have other applications installed, then you will need to uninstall them, and then reinstall OpenFaceSwap.  If this is not the issue, then I suggest reinstalling OpenFaceSwap, but not in your Program Files.  Create a new folder, and try it from there.  Backup your videos and images first.
#5
Openfaceswap won't launch... I've followed all instructions as far as CUDA v9.0 and cuDN 7.05, dowloaded the lastest drivers etc. Installed Openfaceswap directly on the C: drive and when I double click the program file it does nothing... No crash or anything it just simply does absolutely nothing. Any Ideas? I have a Lenovo Yoga with Nvidia GTX 1050 and was hoping to try may hand at making some deepfakes...
#6
(11-29-2018, 06:00 AM)bmoney Wrote: You are not allowed to view links. Register or Login to view.Openfaceswap won't launch... I've followed all instructions as far as CUDA v9.0 and cuDN 7.05, dowloaded the lastest drivers etc.  Installed Openfaceswap directly on the C: drive and when I double click the program file it does nothing... No crash or anything it just simply does absolutely nothing. Any Ideas?  I have a Lenovo Yoga with Nvidia GTX 1050 and was hoping to try may hand at making some deepfakes...

Here's a few ideas....

It is commonly reported that OpenFaceSwap can take a while to execute the first time.  Give it up to 5 minutes.  You can check processes with your task manager.

Going on the info you have given, do you have Visual Studio 2015 installed?  Also, if you have VS 2017 installed, you'll need to uninstall it.

Try running "as administrator".

Not sure about Lenovo Yoga, is the CPU 2nd gen Intel Sandy Bridge or later?

Double check that all your CUDA directories are in your environment variables path.

Lastly, Visual Studio 2015, CUDA, cudNN, and latest Nvidia drivers (in that order) all need to be installed BEFORE installing OpenFaceSwap.

That's all I got.
#7
its possible use this sofware with 2080ti?Thanks
#8
Thanks for the advice, I ended up trying DeepFacelab and got that one working, still trying to figure out the advanced settings on that one. My GPU ain't the greatest so it's taking a long time to do the training.
#9
(12-08-2018, 11:18 PM)gador Wrote: You are not allowed to view links. Register or Login to view.its possible use this sofware with 2080ti?Thanks

Unfortunately I don't think any of the deepfake apps work with 2080 at the moment =(
#10
Can you use an AMD fx 8320E with this?

Forum Jump:

Users browsing this thread: 2 Guest(s)