《峡谷小狐仙-多模态角色扮演游戏助手》复现流程

YongXie66/Honor-of-Kings_RolePlay: The Role Playing Project of Honor-of-Kings Based on LnternLM2。峡谷小狐仙--王者荣耀领域的角色扮演聊天机器人,结合多模态技术将英雄妲己的形象带入大模型中。 (github.com)

 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

下面这个细节没改!!!

 

 

相关推荐

  1. 】ALBEF

    2024-07-22 12:50:02       58 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-22 12:50:02       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-22 12:50:02       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-22 12:50:02       45 阅读
  4. Python语言-面向对象

    2024-07-22 12:50:02       55 阅读

热门阅读

  1. 鸿蒙笔记--动画

    2024-07-22 12:50:02       18 阅读
  2. c++中的printf

    2024-07-22 12:50:02       14 阅读
  3. C语言14 强制类型转换

    2024-07-22 12:50:02       14 阅读
  4. Electron 的webContents.send和event.reply有什么区别

    2024-07-22 12:50:02       16 阅读
  5. LeeCode Practice Journal | Day20_Binary Tree07

    2024-07-22 12:50:02       19 阅读
  6. CSS(层叠样式表)选择器

    2024-07-22 12:50:02       18 阅读
  7. 查询优化 -- UNION 用法

    2024-07-22 12:50:02       15 阅读
  8. C# struct里面的class是值类型还是引用类型

    2024-07-22 12:50:02       21 阅读
  9. 网络安全-网络安全及其防护措施11

    2024-07-22 12:50:02       20 阅读