Ubuntu下部署IndexTTS 2 电影级的语音克隆项目

安装git-lfs
sudo apt install git-lfs -y

运行
git lfs install
返回:
Git LFS initialized.则表示已安装成功!

------------------------------------------------------

1、拉取项目

项目拉取不到可以直接下载zip文件,本地解压缩
git clone https://github.com/index-tts/index-tts.git && cd index-tts

可选
git lfs pull 


2、使用未安装uv的先安装uv

curl -LsSf https://astral.sh/uv/install.sh | sh

或者

在conda虚拟环境中,使用 pip install uv 来安装


3、创建并激活uv虚拟环境


uv venv && source .venv/bin/activate

4、在项目文件夹下安装


uv sync --all-extras --default-index "https://mirrors.aliyun.com/pypi/simple"





5、安装其他依赖

uv pip install huggingface_hub modelscope


6、配置huggingface的镜像源

(第一次运行的时候一定要设置镜像站,要从huggingface上下载一些小模型)

export HF_ENDPOINT="https://hf-mirror.com"


7、下载模型:

modelscope download --model IndexTeam/IndexTTS-2 --local_dir checkpoints


8、检查系统环境是否具备:

uv run tools/gpu_check.py

9、运行IndexTTS 2


uv run webui.py
或者
python webui.py

评论

此博客中的热门博文

通过命令行在Github上发布项目的新版本

利用GitHub免费的静态页面托管空间发布网页

本地部署OpenAvatarChat实时交互数字人系统