Spaces:
Runtime error
Runtime error
khulnasoft
commited on
Commit
•
3e8f8ea
1
Parent(s):
f8cc7ea
Create download.sh
Browse files- models/download.sh +57 -0
models/download.sh
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Set models and datasets to download
|
4 |
+
models=(
|
5 |
+
"nlpconnect/vit-gpt2-image-captioning"
|
6 |
+
"lllyasviel/ControlNet"
|
7 |
+
"lllyasviel/sd-controlnet-canny"
|
8 |
+
"lllyasviel/sd-controlnet-depth"
|
9 |
+
"lllyasviel/sd-controlnet-hed"
|
10 |
+
"lllyasviel/sd-controlnet-mlsd"
|
11 |
+
"lllyasviel/sd-controlnet-openpose"
|
12 |
+
"lllyasviel/sd-controlnet-scribble"
|
13 |
+
"lllyasviel/sd-controlnet-seg"
|
14 |
+
"runwayml/stable-diffusion-v1-5"
|
15 |
+
"damo-vilab/text-to-video-ms-1.7b"
|
16 |
+
"microsoft/speecht5_asr"
|
17 |
+
"JorisCos/DCCRNet_Libri1Mix_enhsingle_16k"
|
18 |
+
"espnet/kan-bayashi_ljspeech_vits"
|
19 |
+
"facebook/detr-resnet-101"
|
20 |
+
"microsoft/speecht5_hifigan"
|
21 |
+
"microsoft/speecht5_vc"
|
22 |
+
"openai/whisper-base"
|
23 |
+
"Intel/dpt-large"
|
24 |
+
"facebook/detr-resnet-50-panoptic"
|
25 |
+
"facebook/detr-resnet-50"
|
26 |
+
"google/owlvit-base-patch32"
|
27 |
+
"impira/layoutlm-document-qa"
|
28 |
+
"ydshieh/vit-gpt2-coco-en"
|
29 |
+
"dandelin/vilt-b32-finetuned-vqa"
|
30 |
+
"lambdalabs/sd-image-variations-diffusers"
|
31 |
+
"facebook/maskformer-swin-base-coco"
|
32 |
+
"Intel/dpt-hybrid-midas"
|
33 |
+
)
|
34 |
+
datasets=("Matthijs/cmu-arctic-xvectors")
|
35 |
+
|
36 |
+
# Set the current directory
|
37 |
+
CURRENT_DIR=$(pwd)
|
38 |
+
|
39 |
+
# Download models
|
40 |
+
for model in "${models[@]}"; do
|
41 |
+
echo "----- Downloading from https://huggingface.co/${model} -----"
|
42 |
+
if [ -d "${model}" ]; then
|
43 |
+
(cd "${model}" && git pull && git lfs pull)
|
44 |
+
else
|
45 |
+
git clone --recurse-submodules "https://huggingface.co/${model}" "${model}"
|
46 |
+
fi
|
47 |
+
done
|
48 |
+
|
49 |
+
# Download datasets
|
50 |
+
for dataset in "${datasets[@]}"; do
|
51 |
+
echo "----- Downloading from https://huggingface.co/datasets/${dataset} -----"
|
52 |
+
if [ -d "${dataset}" ]; then
|
53 |
+
(cd "${dataset}" && git pull && git lfs pull)
|
54 |
+
else
|
55 |
+
git clone --recurse-submodules "https://huggingface.co/datasets/${dataset}" "${dataset}"
|
56 |
+
fi
|
57 |
+
done
|