fireedman commited on
Commit
9384786
·
verified ·
1 Parent(s): e5873a4

Create setup_wav2lip.py

Browse files
Files changed (1) hide show
  1. setup_wav2lip.py +19 -0
setup_wav2lip.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess
2
+ import os
3
+ import sys
4
+
5
+ if not os.path.exists("src/Wav2Lip"):
6
+ subprocess.run(
7
+ ["git", "clone", "https://huggingface.co/camenduru/Wav2Lip", "src/Wav2Lip"],
8
+ check=True
9
+ )
10
+
11
+ os.makedirs("src/Wav2Lip/checkpoints", exist_ok=True)
12
+
13
+ if not os.path.exists("src/Wav2Lip/checkpoints/wav2lip.pth"):
14
+ subprocess.run([
15
+ "wget", "-O", "src/Wav2Lip/checkpoints/wav2lip.pth",
16
+ "https://huggingface.co/camenduru/Wav2Lip/resolve/main/wav2lip.pth"
17
+ ], check=True)
18
+
19
+ sys.path.append(os.path.abspath("src/Wav2Lip"))