BrilliantCoolHuge commited on
Commit
7cfbbe2
·
verified ·
1 Parent(s): aa23de3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -1
README.md CHANGED
@@ -11,4 +11,57 @@ license: mit
11
  short_description: https://github.com/bingcheng1998/diffsinger-webui
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  short_description: https://github.com/bingcheng1998/diffsinger-webui
12
  ---
13
 
14
+ # DiffSinger WebUI
15
+
16
+ 一个基于 Python 的 DiffSinger WebUI,支持模板驱动逐句渲染、整曲合成与 BGM 混音。
17
+ 依赖 gradio 与 [diffsinger-utau](https://github.com/bingcheng1998/diffsinger_utau)。
18
+ 基于 [diffsinger](https://github.com/openvpi/DiffSinger) 项目,兼容 OpenUtau 声库。
19
+
20
+ ## 界面与操作
21
+
22
+ - 选择声库
23
+ - 选择模板
24
+ - 输入歌词
25
+ - 单句编辑后回车可以立即渲染并播放
26
+ - 点击合成整曲按钮可以合成整首歌曲
27
+
28
+ ![界面截图](./.src/webui.jpg)
29
+
30
+ ## 环境要求
31
+
32
+ > 由于[历史原因](https://github.com/openvpi/DiffSinger/blob/main/docs/GettingStarted.md#deployment),强依赖 PyTorch 1.13,因此建议使用 Python 3.8。
33
+
34
+ - Python 3.8
35
+ - torch==1.13.1
36
+ - 其余依赖见 `requirements.txt`
37
+
38
+ ## 安装
39
+ ```bash
40
+ git clone https://github.com/bingcheng1998/diffsinger-webui.git
41
+ cd diffsinger-webui
42
+
43
+ conda create -n diffsinger python=3.8
44
+ conda activate diffsinger
45
+ pip install -r requirements.txt
46
+ ```
47
+
48
+ 请确保您能成功安装与当前系统兼容的 `torch==1.13.1` 以及 `diffsinger-utau`。
49
+
50
+ ### 下载声库
51
+
52
+ 什么是声库?声库可以理解为歌唱者的模型,有着各自的音色等特性。
53
+
54
+ 社区提供了[DiffSinger自制声库分享](https://docs.qq.com/sheet/DQXNDY0pPaEpOc3JN),如果你不确定下载哪个,推荐从[zhibin club](https://www.zhibin.club/)下载[姜柯JiangKe](https://pan.quark.cn/s/254f030af8cb#/list/share/0929019064004907b7b95212c03066ed)声库开始尝试。
55
+
56
+ ## 目录结构
57
+ - `models/`:放置 DiffSinger 模型(详见 `models/README.md`)
58
+ - `templates/public/`:公开 ds 模板(可共建)
59
+ - `templates/user/`:用户上传 ds 模板(同名覆盖公开模板)
60
+ - `output/pred_all/`:缓存与最终输出
61
+
62
+ BGM:将与模板同名的音频(如 `song.ds` 与 `song.mp3`)放在同一目录可启用 BGM 开关。
63
+
64
+ ## 启动
65
+ ```bash
66
+ python app.py --host 0.0.0.0 --port 7860
67
+ ```