1 Star 0 Fork 3

弹琴小虎/deepfakes

forked from xielinjiang/deepfakes 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
faceswap.py 942 Bytes
一键复制 编辑 原始数据 按行查看 历史
Siraj Raval 提交于 2018-02-02 19:48 +08:00 . Add files via upload
#!/usr/bin/env python3
import sys
if sys.version_info[0] < 3:
raise Exception("This program requires at least python3.2")
if sys.version_info[0] == 3 and sys.version_info[1] < 2:
raise Exception("This program requires at least python3.2")
from lib.utils import FullHelpArgumentParser
from scripts.extract import ExtractTrainingData
from scripts.train import TrainingProcessor
from scripts.convert import ConvertImage
if __name__ == "__main__":
parser = FullHelpArgumentParser()
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()
arguments.func(arguments)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/show0925/deepfakes.git
git@gitee.com:show0925/deepfakes.git
show0925
deepfakes
deepfakes
master

搜索帮助