ming 92e8152ce4 change face src | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
imgs | %!s(int64=3) %!d(string=hai) anos | |
models | %!s(int64=3) %!d(string=hai) anos | |
results | %!s(int64=3) %!d(string=hai) anos | |
scripts | %!s(int64=3) %!d(string=hai) anos | |
src_img | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
b1.mp4 | %!s(int64=3) %!d(string=hai) anos | |
face_detection.py | %!s(int64=3) %!d(string=hai) anos | |
face_swap.py | %!s(int64=3) %!d(string=hai) anos | |
jared.txt | %!s(int64=3) %!d(string=hai) anos | |
main.py | %!s(int64=3) %!d(string=hai) anos | |
main_video.py | %!s(int64=3) %!d(string=hai) anos | |
nina_noGesture_adj.mp4 | %!s(int64=3) %!d(string=hai) anos | |
ok.avi | %!s(int64=3) %!d(string=hai) anos | |
requirements.txt | %!s(int64=3) %!d(string=hai) anos |
Swap face between two photos for Python 3 with OpenCV and dlib.
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7.jpg --correct_color
Source | Destination | Result |
---|---|---|
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7_2d.jpg --correct_color --warp_2d
Source | Destination | Result |
---|---|---|
pip install -r requirements.txt
conda install opencv
(If you have conda/anaconda)Note: See requirements.txt for more details.
git clone https://github.com/wuhuikai/FaceSwap.git
python main.py ...
Note: Run python main.py -h for more details.
python main_video.py --src_img imgs/test7.jpg --show --correct_color --save_path {*.avi}
python main_video.py --src_img imgs/test7.jpg --video_path {video_path} --show --correct_color --save_path {*.avi}
From | To |
---|---|