muzic/musicagent/models/download.sh

37 строки
879 B
Bash
Исходник Обычный вид История

2023-08-06 16:22:29 +03:00
#!/bin/bash
# Set models to download
models=(
"m3hrdadfi/wav2vec2-base-100k-gtzan-music-genres"
2023-10-16 08:09:28 +03:00
"lewtun/distilhubert-finetuned-music-genres"
"dima806/music_genres_classification"
2023-08-06 16:22:29 +03:00
"sander-wood/text-to-music"
"jonatasgrosman/whisper-large-zh-cv11"
2023-10-16 08:09:28 +03:00
"cvssp/audioldm-m-full"
2023-08-06 16:22:29 +03:00
)
# Set the current directory
CURRENT_DIR=$(pwd)
# Download models
for model in "${models[@]}"; do
echo "----- Downloading from https://huggingface.co/${model} -----"
if [ -d "${model}" ]; then
(cd "${model}" && git pull && git lfs pull)
else
git clone --recurse-submodules "https://huggingface.co/${model}" "${model}"
fi
done
# Set Git project to download
libs=(
"microsoft/muzic"
"MoonInTheRiver/DiffSinger"
)
for lib in "${libs[@]}"; do
echo "----- Downloading from https://github.com/${lib}.git -----"
git clone "https://github.com/${lib}.git"
done
cp -r ../auxiliary/* ./