You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+68-36Lines changed: 68 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,50 +1,87 @@
1
-
# LipSync
2
-
Lips Synchronization (Wav2Lip).
1
+
# lipsync
3
2
4
-
## Install
5
-
```
6
-
git clone git@github.com:mowshon/lipsync.git
7
-
cd lipsync
8
-
python setup.py install
9
-
```
3
+
lipsync is a Python library that moves lips in a video (or image) to match a given audio file. It is based on [Wav2Lip](https://github.com/Rudrabha/Wav2Lip), but many unneeded files and libraries have been removed, and the code has been updated to work with the latest versions of Python.
-**checkpoint_path**: Path to the model weights (e.g., `wav2lip.pth`, `wav2lip_gan.pth`)
72
+
-**nosmooth**: Set `True` to disable smoothing
73
+
-**device**: `'cpu'` or `'cuda'`
74
+
-**cache_dir**: Directory for saving frames
75
+
-**save_cache**: Set `True` to save frames to `cache_dir` for faster re-runs
76
+
77
+
---
78
+
79
+
### Ethical Use
80
+
81
+
Please be mindful when using **lipsync**. This library can generate videos that look convincing, so it could be used to spread disinformation or harm someone’s reputation. We encourage using it only for **entertainment** or **scientific** purposes, and always with **respect and consent** from any people involved.
82
+
83
+
### License and Citation
84
+
48
85
The software can only be used for personal/research/non-commercial purposes. Please cite the following paper if you have use this code:
49
86
```
50
87
@inproceedings{10.1145/3394171.3413532,
@@ -64,8 +101,3 @@ The software can only be used for personal/research/non-commercial purposes. Ple
64
101
series = {MM '20}
65
102
}
66
103
```
67
-
68
-
69
-
Acknowledgements
70
-
----------
71
-
Parts of the code structure is inspired by this [TTS repository](https://github.com/r9y9/deepvoice3_pytorch). We thank the author for this wonderful code. The code for Face Detection has been taken from the [face_alignment](https://github.com/1adrianb/face-alignment) repository. We thank the authors for releasing their code and models.
0 commit comments