0


本地部署 fish-speech

本地部署 fish-speech

1. 创建虚拟环境

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

2. 安装依赖模块

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

3. 安装 fish-speech

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

4. 下载模型

  1. python ./tools/download_models.py

5. 启动 fish-speech

  1. # python fish_speech\webui\manage.py
  2. 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

完结!


本文转载自: https://blog.csdn.net/engchina/article/details/140218659
版权归原作者 engchina 所有, 如有侵权,请联系我们删除。

“本地部署 fish-speech”的评论:

还没有评论