forked from saifhassan/Wav2Lip-HD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdownload_models.py
30 lines (24 loc) · 903 Bytes
/
download_models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import gdown
######### downloading models ########
urls = {
"wav2lip_gan.pth": "10Iu05Modfti3pDbxCFPnofmfVlbkvrCm",
"face_segmentation.pth": "154JgKpzCPW82qINcVieuPH3fZ2e0P812",
"esrgan_yunying.pth": "1aB-jqBikcZPJnFrJXWUEpvF2RFCuerSe",
"pretrained.state": "1_MGeOLdARWHylC1PCU2p5_FQztD4Bo7B"
}
for name, id in urls.items():
url = f"https://drive.google.com/uc?id={id}"
output = f"checkpoints/{name}"
gdown.download(url, output, quiet=False)
print(f"Loaded {name}")
######### downloading videos ########
# If you load files from Drive, run this cell
# Paste the filename and Google Drive ID of your video below.
urls = {
"yunying_30s.mp4": "1dggydm07RHrxiFUIH_51RXmkMcD_bMPE",
}
for name, id in urls.items():
url = f"https://drive.google.com/uc?id={id}"
output = f"videos/{name}"
gdown.download(url, output, quiet=False)
print(f"Loaded {name}")