Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scriptified version of v2.1. #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Scriptified version of v2.1. #92

wants to merge 1 commit into from

Conversation

slundell
Copy link

@slundell slundell commented Mar 26, 2018

Includes schedule copied from v2. Persitant progress and automatically restarts from last checkpoint. Uses prefetch_generator to increase GPU utilization. Previews are saved as png files. Losses are plotted using matplotlib. After 40000 iterations videos are automatically converted. This script requires a specific folder structure:

from-person/extracted-faces (folder with extracted faces of "face-donor")

to-person/extracted-faces (folder with extracted faces of "body-donor")
to-person/to-swap/ (video files to be converted)

These folders will automatically be created:
to-person/models (weights files, progress file, loss plot)
to-person/models/preview/ (images of conversions)
to-person/swapped/ (converted videos with new face)

Invoke like this:

python3 make-fake.py --source-dir ../data/cage --target-dir ../data/trump

There is a lot of cleanup to be done in this script, but it should be functional as-is.

…tant progress and automatically restarts from last checkpoint. Previews are saved as png files. Losses are plotted using matplotlib.
@tjess78
Copy link

tjess78 commented May 5, 2018

Hi,
could you please scriptify the newest build with LSGAN and maybe the 128 notebook?
thanks!!
tjess

@shaoanlu
Copy link
Owner

shaoanlu commented Jun 12, 2018

Really appreciate slundell spending time making this PR, and sorry for postponing it for so long despite I'm the person asking for help.

I got some feedback making me feel that I should remain this project less accessible for people without much coding experience. Obviously deepfakes is still a controversial topic, and I would like to keep this project from being closely associated with it. (Edit: I was trying to refer to the concept of deepfakes, but I chose the wrong wording that seems offensive to the deepfakes community.)

As for now, I prefer to make this project deep-learning-oriented (as well as messy and loosely structured) instead of being a hands-on face-swapping tool.

@Jack29913
Copy link

@shaoanlu Get off your high horse. You even show your work using some women's videos.

@ghost
Copy link

ghost commented Jun 12, 2018

People always will use the tools for good and bad, it's doesn't matter what kind of tool it is.
So please keep improving your code, at the end you are a developer aiming for the best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants