From 474ec9b6cf956b01aafa43584cf5fe8289b9c7d2 Mon Sep 17 00:00:00 2001 From: kemuriririn Date: Mon, 8 Sep 2025 21:53:27 +0800 Subject: [PATCH] Dev kemurin (#284) * update deps for windows * update reqs & README * update README.md * update README.md --------- Co-authored-by: wangyining02 --- README.md | 32 ++++++++++---------------------- requirements.txt | 4 ++-- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 114c54c..3465bc4 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,10 @@ The key contributions of **indextts2** are summarized as follows: 1. Download this repository: ```bash git clone https://github.com/index-tts/index-tts.git -git lfs pull +git lfs pull # fetch example files ``` 2. Install dependencies: -We use `uv` to initialize and manage the project’s dependency environment. +We use `uv` to manage the project’s dependency environment. ```bash uv sync ``` @@ -110,26 +110,7 @@ uv sync Download by `huggingface-cli`: ```bash -huggingface-cli download IndexTeam/IndexTTS-2 \ - bpe.model config.yaml feat1.pt feat2.pt gpt.pth qwen0.6bemo4-merge s2mel.pth wav2vec2bert_stats.pt - --local-dir checkpoints -``` - -Or by `wget`: -```bash -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/bpe.model -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/config.yaml -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/feat1.pt -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/feat2.pt -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/gpt.pth -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/qwen0.6bemo4-merge -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/s2mel.pth -P checkpoints -wget https://huggingface.co/IndexTeam/IndexTTS-2/resolve/main/wav2vec2bert_stats.pt -P checkpoints -``` - -Recommended for China users. 如果下载速度慢,可以使用镜像: -```bash -export HF_ENDPOINT="https://hf-mirror.com" +hf download IndexTeam/IndexTTS-2 --local-dir=checkpoints ``` Or download by `modelscope` @@ -137,6 +118,13 @@ Or download by `modelscope` modelscope download --model IndexTeam/IndexTTS-2 --local_dir checkpoints ``` +>In addition to the above models, some small models will also be automatically downloaded when the project is run for the first time. If your network environment has slow access to HuggingFace, it is recommended to execute command below.
+除了以上模型外,项目初次运行时还会自动下载一些小模型,如果您的网络环境访问HuggingFace的速度较慢,推荐执行: +>```bash +>export HF_ENDPOINT="https://hf-mirror.com" +>``` + + ### IndexTTS2 Quickstart diff --git a/requirements.txt b/requirements.txt index 3276b05..e17b10b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,5 +26,5 @@ gradio tqdm textstat -WeTextProcessing; platform_machine != "Darwin" -wetext; platform_system == "Darwin" +WeTextProcessing; platform_machine == "Linux" +wetext; platform_system != "Linux"