李洋 commited on
Commit
bc451c3
·
unverified ·
1 Parent(s): 7e359b9

feat: update download_weights.bat (#372)

Browse files
Files changed (1) hide show
  1. download_weights.bat +9 -13
download_weights.bat CHANGED
@@ -14,32 +14,28 @@ mkdir %CheckpointsDir%\sd-vae-ft-mse
14
  mkdir %CheckpointsDir%\whisper
15
 
16
  :: Install required packages
17
- pip install -U "huggingface_hub[cli]"
18
- pip install gdown
19
 
20
  :: Set HuggingFace endpoint
21
  set HF_ENDPOINT=https://hf-mirror.com
22
 
23
  :: Download MuseTalk weights
24
- huggingface-cli download TMElyralab/MuseTalk --local-dir %CheckpointsDir%
25
 
26
  :: Download SD VAE weights
27
- huggingface-cli download stabilityai/sd-vae-ft-mse --local-dir %CheckpointsDir%\sd-vae --include "config.json" "diffusion_pytorch_model.bin"
28
 
29
  :: Download Whisper weights
30
- huggingface-cli download openai/whisper-tiny --local-dir %CheckpointsDir%\whisper --include "config.json" "pytorch_model.bin" "preprocessor_config.json"
31
 
32
  :: Download DWPose weights
33
- huggingface-cli download yzd-v/DWPose --local-dir %CheckpointsDir%\dwpose --include "dw-ll_ucoco_384.pth"
34
 
35
  :: Download SyncNet weights
36
- huggingface-cli download ByteDance/LatentSync --local-dir %CheckpointsDir%\syncnet --include "latentsync_syncnet.pt"
37
 
38
- :: Download Face Parse Bisent weights (using gdown)
39
- gdown --id 154JgKpzCPW82qINcVieuPH3fZ2e0P812 -O %CheckpointsDir%\face-parse-bisent\79999_iter.pth
40
-
41
- :: Download ResNet weights
42
- curl -L https://download.pytorch.org/models/resnet18-5c106cde.pth -o %CheckpointsDir%\face-parse-bisent\resnet18-5c106cde.pth
43
 
44
  echo All weights have been downloaded successfully!
45
- endlocal
 
14
  mkdir %CheckpointsDir%\whisper
15
 
16
  :: Install required packages
17
+ pip install -U "huggingface_hub[hf_xet]"
 
18
 
19
  :: Set HuggingFace endpoint
20
  set HF_ENDPOINT=https://hf-mirror.com
21
 
22
  :: Download MuseTalk weights
23
+ hf download TMElyralab/MuseTalk --local-dir %CheckpointsDir%
24
 
25
  :: Download SD VAE weights
26
+ hf download stabilityai/sd-vae-ft-mse --local-dir %CheckpointsDir%\sd-vae --include "config.json" "diffusion_pytorch_model.bin"
27
 
28
  :: Download Whisper weights
29
+ hf download openai/whisper-tiny --local-dir %CheckpointsDir%\whisper --include "config.json" "pytorch_model.bin" "preprocessor_config.json"
30
 
31
  :: Download DWPose weights
32
+ hf download yzd-v/DWPose --local-dir %CheckpointsDir%\dwpose --include "dw-ll_ucoco_384.pth"
33
 
34
  :: Download SyncNet weights
35
+ hf download ByteDance/LatentSync --local-dir %CheckpointsDir%\syncnet --include "latentsync_syncnet.pt"
36
 
37
+ :: Download face-parse-bisent weights
38
+ hf download ManyOtherFunctions/face-parse-bisent --local-dir %CheckpointsDir%\face-parse-bisent --include "79999_iter.pth" "resnet18-5c106cde.pth"
 
 
 
39
 
40
  echo All weights have been downloaded successfully!
41
+ endlocal