add
This commit is contained in:
parent
bf4e4b0251
commit
a1ae58ffa7
|
@ -15,3 +15,4 @@ pretrained
|
|||
*.mp4
|
||||
.DS_Store
|
||||
workspace/log_ngp.txt
|
||||
.idea
|
|
@ -0,0 +1,8 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
|
@ -0,0 +1,49 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<Languages>
|
||||
<language minSize="50" name="Python" />
|
||||
</Languages>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredPackages">
|
||||
<value>
|
||||
<list size="4">
|
||||
<item index="0" class="java.lang.String" itemvalue="ffmpeg" />
|
||||
<item index="1" class="java.lang.String" itemvalue="pyjwt" />
|
||||
<item index="2" class="java.lang.String" itemvalue="Flask" />
|
||||
<item index="3" class="java.lang.String" itemvalue="Requests" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<option name="ignoredErrors">
|
||||
<list>
|
||||
<option value="W292" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||
<option name="ignoredErrors">
|
||||
<list>
|
||||
<option value="N803" />
|
||||
<option value="N801" />
|
||||
<option value="N806" />
|
||||
<option value="N802" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredIdentifiers">
|
||||
<list>
|
||||
<option value="execjs" />
|
||||
<option value="xlrd" />
|
||||
<option value="jwt" />
|
||||
</list>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="Flask">
|
||||
<option name="enabled" value="true" />
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
<option name="format" value="NUMPY" />
|
||||
<option name="myDocStringFormat" value="NumPy" />
|
||||
</component>
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_CONFIGURATION" value="Jinja2" />
|
||||
</component>
|
||||
</module>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/metahuman-stream.iml" filepath="$PROJECT_DIR$/.idea/metahuman-stream.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -10,6 +10,20 @@ bash install.sh
|
|||
```
|
||||
从 [GPT-SoVITS Models](https://huggingface.co/lj1995/GPT-SoVITS) 下载预训练模型,并将它们放置在 `GPT_SoVITS\pretrained_models` 中
|
||||
|
||||
注意
|
||||
```
|
||||
是将 GPT-SoVITS 的模型文件放入 pretrained_models目录中
|
||||
```
|
||||
如下
|
||||
```
|
||||
pretrained_models/
|
||||
--chinese-hubert-base
|
||||
--chinese-roberta-wwm-ext-large
|
||||
s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt
|
||||
s2D488k.pth
|
||||
s2G488k.pth
|
||||
```
|
||||
|
||||
## 2. Model Folder Format
|
||||
模型文件下载地址 https://www.yuque.com/xter/zibxlp/gsximn7ditzgispg
|
||||
下载的模型文件放到trained目录下, 如 `trained/Character1/`
|
||||
|
@ -25,15 +39,18 @@ trained
|
|||
```
|
||||
|
||||
## 3. 启动
|
||||
### 3.1 后端服务:
|
||||
python Inference/src/tts_backend.py
|
||||
如果有错误提示找不到cmudict,从这下载https://github.com/nltk/nltk_data,将packages改名为nltk_data放到home目录下
|
||||
### 3.2 管理character:
|
||||
python Inference/src/Character_Manager.py
|
||||
浏览器打开可以管理character和emotion
|
||||
### 3.3 测试tts功能:
|
||||
python Inference/src/TTS_Webui.py
|
||||
### 3.1 启动webui界面
|
||||
python webuis/character_manager/webui.py
|
||||
可以设置上传的模型数据
|
||||
### 3.2 启动api服务:
|
||||
python app.py
|
||||
|
||||
如果有错误提示找不到cmudict,从这下载https://github.com/nltk/nltk_data,将packages改名为nltk_data放到home目录下
|
||||
### 3.3 tts测试
|
||||
访问 http://127.0.0.1:5000 地址即可测试
|
||||
|
||||
### 3.4 api测试
|
||||
访问 http://127.0.0.1:5000/character_list 查看是否正常
|
||||
|
||||
## 4. 接口说明
|
||||
### 4.1 Character and Emotion List
|
||||
|
@ -96,4 +113,27 @@ To obtain the supported characters and their corresponding emotions, please visi
|
|||
|
||||
## 部署tts训练
|
||||
https://github.com/RVC-Boss/GPT-SoVITS
|
||||
根据文档说明部署,将训练后的模型拷到推理服务的trained目录下
|
||||
根据文档说明部署,将训练后的模型拷到推理服务的trained目录下
|
||||
|
||||
## 如果你需要使用autodl 进行部署
|
||||
请使用 https://www.codewithgpu.com/i/RVC-Boss/GPT-SoVITS/GPT-SoVITS 作为基础镜像你能快速进行部署
|
||||
### 下载
|
||||
```
|
||||
https://github.com/X-T-E-R/GPT-SoVITS-Inference
|
||||
```
|
||||
### 安装
|
||||
```
|
||||
cd GPT-SoVITS-Inference
|
||||
pip3 install -r requirements.txt
|
||||
cp -r GPT_SoVITS/pretrained_models/ ./GPT_SoVITS/pretrained_models
|
||||
```
|
||||
|
||||
### 启动api
|
||||
```
|
||||
python3 app.py
|
||||
```
|
||||
|
||||
### 启动webui
|
||||
```
|
||||
python3 webuis/character_manager/webui.py
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue