Spanicin commited on
Commit
aebecef
·
verified ·
1 Parent(s): 662751b

Upload download_models.sh

Browse files
Files changed (1) hide show
  1. scripts/download_models.sh +58 -0
scripts/download_models.sh ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Create necessary directories
4
+
5
+ mkdir -p ./pretrained_models/audio_seperator
6
+ mkdir -p ./pretrained_models/face_analysis/models
7
+ mkdir -p ./pretrained_models/hallo
8
+ mkdir -p ./pretrained_models/motion_module
9
+ mkdir -p ./pretrained_models/sd-vae-ft-mse
10
+ mkdir -p ./pretrained_models/stable-diffusion-v1-5/unet
11
+ mkdir -p ./pretrained_models/wav2vec/wav2vec2-base-960h
12
+
13
+
14
+ # Download the weights from Hugging Face repository
15
+ # Assuming the necessary URLs are accessible directly
16
+
17
+
18
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/audio_separator/Kim_Vocal_2.onnx -O ./pretrained_models/audio_seperator/models/Kim_Vocal_2.onnx
19
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/audio_separator/download_checks.json -O ./pretrained_models/audio_seperator/models/download_checks.json
20
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/audio_separator/mdx_model_data.json -O ./pretrained_models/audio_seperator/models/mdx_model_data.json
21
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/audio_separator/vr_model_data.json -O ./pretrained_models/audio_seperator/models/vr_model_data.json
22
+
23
+
24
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/face_analysis/models/1k3d68.onnx -O ./pretrained_models/face_analysis/models/1k3d68.onnx
25
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/face_analysis/models/2d106det.onnx -O ./pretrained_models/face_analysis/models/2d106det.onnx
26
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/face_analysis/models/face_landmarker_v2_with_blendshapes.task -O ./pretrained_models/face_analysis/models/face_landmarker_v2_with_blendshapes.task
27
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/face_analysis/models/genderage.onnx -O ./pretrained_models/face_analysis/models/genderage.onnx
28
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/face_analysis/models/glintr100.onnx -O ./pretrained_models/face_analysis/models/glintr100.onnx
29
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/face_analysis/models/scrfd_10g_bnkps.onnx -O ./pretrained_models/face_analysis/models/scrfd_10g_bnkps.onnx
30
+
31
+
32
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/hallo/net.pth -O ./pretrained_models/hallo/net.pth
33
+
34
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/motion_module/mm_sd_v15_v2.ckpt -O ./pretrained_models/motion_module/mm_sd_v15_v2.ckpt
35
+
36
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/sd-vae-ft-mse/.gitattributes -O ./pretrained_models/sd-vae-ft-mse/.gitattributes
37
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/sd-vae-ft-mse/README.md -O ./pretrained_models/sd-vae-ft-mse/README.md
38
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/sd-vae-ft-mse/config.json -O ./pretrained_models/sd-vae-ft-mse/config.json
39
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/sd-vae-ft-mse/diffusion_pytorch_model.safetensors -O ./pretrained_models/sd-vae-ft-mse/diffusion_pytorch_model.safetensors
40
+
41
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/stable-diffusion-v1-5/unet/config.json -O ./pretrained_models/stable-diffusion-v1-5/unet/config.json
42
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/stable-diffusion-v1-5/unet/diffusion_pytorch_model.safetensors -O ./pretrained_models/stable-diffusion-v1-5/unet/diffusion_pytorch_model.safetensors
43
+
44
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/.gitattributes -O ./pretrained_models/wav2vec/wav2vec2-base-960h/.gitattributes
45
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/README.md -O ./pretrained_models/wav2vec/wav2vec2-base-960h/README.md
46
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/config.json -O ./pretrained_models/wav2vec/wav2vec2-base-960h/config.json
47
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/feature_extractor_config.json -O ./pretrained_models/wav2vec/wav2vec2-base-960h/feature_extractor_config.json
48
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/model.safetensors -O ./pretrained_models/wav2vec/wav2vec2-base-960h//model.safetensors
49
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/preprocessor_config.json -O ./pretrained_models/wav2vec/wav2vec2-base-960h/preprocessor_config.json
50
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/special_tokens_map.json -O ./pretrained_models/wav2vec/wav2vec2-base-960h/special_tokens_map.json
51
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/tokenizer_config.json -O ./pretrained_models/wav2vec/wav2vec2-base-960h/tokenizer_config.json
52
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/wav2vec/wav2vec2-base-960h/vocab.json -O ./pretrained_models/wav2vec/wav2vec2-base-960h/vocab.json
53
+
54
+ wget -nc https://huggingface.co/fudan-generative-ai/hallo/resolve/main/config.json -O ./pretrained_models/config.json
55
+
56
+ # List the downloaded files for verification
57
+ echo "Listing pretrained_models folder content:"
58
+ ls -la ./pretrained_models