1、创建环境
git clone https://github.com/YongXie66/Honor-of-Kings_RolePlay.git
conda create -n hok-roleplay python=3.10
conda activate hok-roleplay
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
cd Honor-of-Kings_RolePlay
pip install -r requirements.txt
conda install -q ffmpeg
2、下载模型(下载时间太长,耐心等等)
apt install git
apt install git-lfs
# LLM, funasr, gpt_sovits, sadtalker 相关模型下载
git clone https://code.openxlab.org.cn/YongXie66/DaJi_RolePlay.git ./DaJi_RolePlay
cd DaJi_RolePlay/InternLM2/InternLM2_7b/
bash download.sh
mv ./DaJi_RolePlay/InternLM2/InternLM2_7b/InternLM2/InternLM2_7b/* /Honor-of-Kings_RolePlay/InternLM2/InternLM2_7b
bash FunASR/download.sh
mv ./DaJi_RolePlay/checkpoints/* ./checkpoints/
mv ./DaJi_RolePlay/gfpgan/* ./gfpgan/
mv ./DaJi_RolePlay/FunASR/* ./Honor-of-Kings_RolePlay/FunASR/
mv ./DaJi_RolePlay/GPT_SoVITS/pretrained_models/* ./Honor-of-Kings_RolePlay/GPT_SoVITS/pretrained_models
# 生成 RAG 依赖的 Chroma 数据库
python Honor-of-Kings_RolePlay/rag/generate_chroma_db.py
3、Web UI 启动 !
python webui.py
4、总结
1、移动的文件太多太大,要检测清楚所有文件夹下文件齐全。
2、配置环境库按照 requirements.txt 安装
gradio== 4.29.0
下面这个细节没改!!!