当前位置:   article > 正文

本地部署 fish-speech_fishspeech 部署

fishspeech 部署

1. 创建虚拟环境

conda create -n fish-speech python=3.10 -y
conda activate fish-speech
  • 1
  • 2

2. 安装依赖模块

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
  • 1

3. 安装 fish-speech

cd /tmp
wget https://github.com/libsndfile/libsamplerate/releases/download/0.2.2/libsamplerate-0.2.2.tar.xz
tar -xvf libsamplerate-0.2.2.tar.xz
cd libsamplerate-0.2.2/
mkdir build
cd build
cmake ..
make
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
pip install -e .
  • 1

4. 下载模型

python ./tools/download_models.py
  • 1

5. 启动 fish-speech

# python fish_speech\webui\manage.py
python -m tools.webui     --llama-checkpoint-path "checkpoints/fish-speech-1.2"     --decoder-checkpoint-path "checkpoints/fish-speech-1.2/firefly-gan-vq-fsq-4x1024-42hz-generator.pth"     --decoder-config-name firefly_gan_vq
  • 1
  • 2

完结!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/906855
推荐阅读
相关标签
  

闽ICP备14008679号