Spaces:
Runtime error
Runtime error
shuhulhandoo
commited on
Commit
•
bcf3460
1
Parent(s):
53333b0
Delete README.md
Browse files
README.md
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
# FaceSwap
|
2 |
-
Swap face between two photos for Python 3 with OpenCV and dlib.
|
3 |
-
|
4 |
-
## Get Started
|
5 |
-
```sh
|
6 |
-
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7.jpg --correct_color
|
7 |
-
```
|
8 |
-
|
9 |
-
| Source | Destination | Result |
|
10 |
-
| --- | --- | --- |
|
11 |
-
|![](imgs/test6.jpg) | ![](imgs/test7.jpg) | ![](results/output6_7.jpg) |
|
12 |
-
|
13 |
-
```sh
|
14 |
-
python main.py --src imgs/test6.jpg --dst imgs/test7.jpg --out results/output6_7_2d.jpg --correct_color --warp_2d
|
15 |
-
```
|
16 |
-
|
17 |
-
| Source | Destination | Result |
|
18 |
-
| --- | --- | --- |
|
19 |
-
|![](imgs/test6.jpg) | ![](imgs/test7.jpg) | ![](results/output6_7_2d.jpg) |
|
20 |
-
|
21 |
-
|
22 |
-
## Install
|
23 |
-
### Requirements
|
24 |
-
* `pip install -r requirements.txt`
|
25 |
-
* OpenCV 3: `conda install opencv` (If you have conda/anaconda)
|
26 |
-
|
27 |
-
Note: See [requirements.txt](requirements.txt) for more details.
|
28 |
-
### Git Clone
|
29 |
-
```sh
|
30 |
-
git clone https://github.com/wuhuikai/FaceSwap.git
|
31 |
-
```
|
32 |
-
### Swap Your Face
|
33 |
-
```sh
|
34 |
-
python main.py ...
|
35 |
-
```
|
36 |
-
Note: Run **python main.py -h** for more details.
|
37 |
-
|
38 |
-
|
39 |
-
### Real-time camera
|
40 |
-
```sh
|
41 |
-
python main_video.py --src_img imgs/test7.jpg --show --correct_color --save_path {*.avi}
|
42 |
-
```
|
43 |
-
### Video
|
44 |
-
```sh
|
45 |
-
python main_video.py --src_img imgs/test7.jpg --video_path {video_path} --show --correct_color --save_path {*.avi}
|
46 |
-
```
|
47 |
-
|
48 |
-
## More Results
|
49 |
-
| From | To |
|
50 |
-
| --- | --- |
|
51 |
-
| ![](imgs/test4.jpg) | ![](results/output6_4.jpg) |
|
52 |
-
| ![](imgs/test3.jpg) | ![](results/output6_3.jpg) |
|
53 |
-
| ![](imgs/test2.jpg) | ![](results/output6_2_2d.jpg) |
|
54 |
-
| ![](imgs/test1.jpg) | ![](results/output6_1.jpg) |
|
55 |
-
| ![](imgs/test4.jpg) | ![](results/output7_4.jpg) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|