forked from deepfakes/faceswap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Created a single script to call the other ones. Usage is ./faceswap.py {train|extract|convert} * Improved the help from the commands. * Added forgotten faceswap.py file. * Changed gitignore to add the scripts. * Updates gitignore. * Added guarding not to execute code when imported. * Removed useless script. Display help when no arguments are provided. * Update README
- Loading branch information
1 parent
f0c971e
commit 59d234a
Showing
9 changed files
with
73 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
!*.txt | ||
!Dockerfile* | ||
!requirements* | ||
!lib/*.py | ||
!lib/*.py | ||
!scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
import argparse | ||
from scripts.extract import ExtractTrainingData | ||
from lib.cli import TrainingProcessor | ||
from scripts.convert import ConvertImage | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
subparser = parser.add_subparsers() | ||
extract = ExtractTrainingData(subparser, "extract", "Extract the faces from a pictures.") | ||
train = TrainingProcessor(subparser, "train", "This command trains the model for the two faces A and B.") | ||
convert = ConvertImage(subparser, "convert", "Convert a source image to a new one with the face swapped.") | ||
arguments = parser.parse_args() | ||
try: | ||
arguments.func(arguments) | ||
except: | ||
parser.print_help() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters