Skip to content

Commit

Permalink
update dependences for coxyvoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedreamix committed Aug 3, 2024
1 parent a7b13ef commit fe0a3f6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
3 changes: 2 additions & 1 deletion requirements_webui.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ LangSegment
# CosyVoice related libraries
conformer==0.3.2
lightning==2.2.4
wget==3.2
wget==3.2
HyperPyYAML==1.2.2
36 changes: 34 additions & 2 deletions scripts/download_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,39 @@ else
exit 1
fi

echo "All models have been successfully moved and
# 9. CosyVoice模型
# CosyVoice model
# Check if the CosyVoice checkpoints directory exists
if [ -d "checkpoints/CosyVoice_ckpt" ]; then
# Create the CosyVoice/pretrained_models directory if it doesn't exist
mkdir -p CosyVoice/pretrained_models

# Move the CosyVoice-ttsfrd directory to the CosyVoice/pretrained_models directory
mv checkpoints/CosyVoice_ckpt/CosyVoice-ttsfrd CosyVoice/pretrained_models

# Check if the move operation was successful
if [ $? -ne 0 ]; then
echo "Failed to move CosyVoice-ttsfrd directory."
echo "移动 CosyVoice-ttsfrd 目录失败。"
exit 1
fi

# Unzip the resource.zip file inside the CosyVoice-ttsfrd directory
unzip CosyVoice/pretrained_models/CosyVoice-ttsfrd/resource.zip -d CosyVoice/pretrained_models/CosyVoice-ttsfrd
pip install CosyVoice/pretrained_models/CosyVoice-ttsfrd/ttsfrd-0.3.6-cp38-cp38-linux_x86_64.whl

# Check if the unzip operation was successful
if [ $? -ne 0 ]; then
echo "Failed to unzip resource.zip."
echo "解压 resource.zip 失败。"
exit 1

fi
else
echo "Directory Kedreamix/Linly-Talker/checkpoints/CosyVoice_ckpt does not exist, cannot move CosyVoice model."
echo "目录 Kedreamix/Linly-Talker/checkpoints/CosyVoice_ckpt 不存在,无法移动 CosyVoice 模型。"
exit 1
fi

are ready."
echo "All models have been successfully moved and are ready."
echo "所有模型已成功移动并准备就绪。"

0 comments on commit fe0a3f6

Please sign in to comment.