liangwe / ai-change-face-in-the-video Goto Github PK
View Code? Open in Web Editor NEW将视频中的人脸更换为指定照片中的人脸,并且输出视频。
将视频中的人脸更换为指定照片中的人脸,并且输出视频。
origin 目录会生成 .DS_Store 文件, 造成 im = cv2.resize(im, (im.shape[1] * SCALE_FACTOR 报错, 找不到 shape 属性
in main.py line 10
originpath = 'origin/'
transferpath = 'transfer/' #原始帧的路径和转换后帧的路径 一定要加 /
videofilepath = 'trump.mp4' #文件路径可自己定义
fatal error when finding path origin
The system could not find the specified path origin/ .
Hi author,
I did not find where to adjust the combination ratio, e.g., how much I want to keep the original face. Maybe it should be a value ranging from 0 to 1.
Could you help me?
Thank you a lot!
可以考虑再上传一个被换脸人图片,然后在视频中定向换脸
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.