Miuzarte commited on
Commit
2c00136
·
1 Parent(s): f225d68

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -15
app.py CHANGED
@@ -49,11 +49,9 @@ with app:
49
 
50
  #### 如果要训练自己的数据请访问:[项目Github仓库](https://github.com/innnky/so-vits-svc/tree/main)、[教程《svc相关》](https://www.yuque.com/jiuwei-nui3d/qng6eg)
51
 
52
- #### 如果要在本地推理请使用 git lfs clone 本仓库,安装 requirements.txt 后运行 app.py 即可
53
 
54
- #### 更建议参考仓库[README.md上的推理部分](https://github.com/innnky/so-vits-svc/tree/main#%E6%8E%A8%E7%90%86),在本地使用 inference_main.py 处理,速度可以比 Hugging Face 快上十几倍
55
-
56
- #### 本地推理会调用GPU(cuda),3060Ti 8G可推理一条20(建议) - 30s的音频,过长音频可分割后批量处理
57
  """)
58
  sid = gr.Dropdown(label="音色", choices=["岁己(本音)"], value="岁己(本音)")
59
  vc_input3 = gr.Audio(label="输入音频(长度请控制在30s左右,过长可能会爆内存)")
@@ -75,6 +73,8 @@ with app:
75
  ### 因为训练集来自于录播,所以音色偏本音,前期变调用于匹配音域,后期可以升一个调匹配一下岁己的歌音
76
 
77
  # 在本地部署并使用 inference_main.py 处理的保姆级教程:
 
 
78
 
79
  ### 0. 创建一个存放文件的目录,例如 D:\\SUI\\
80
 
@@ -93,23 +93,26 @@ with app:
93
  .\\git\\bin\\git lfs clone https://huggingface.co/spaces/Miuzarte/SUI-svc-3.0
94
  # 切换工作目录至仓库内
95
  cd D:\\SUI\\SUI-svc-3.0\\
96
-
97
- # 创建环境
98
  conda create -n sovits python=3.8 -y
99
- # 更换国内豆瓣源
 
 
100
  conda config --set show_channel_urls yes
101
  conda config --remove-key channels
102
- conda config --add channels https://pypi.douban.com/anaconda/cloud/conda-forge/
103
- conda config --add channels https://pypi.douban.com/anaconda/cloud/msys2/
104
- conda config --add channels https://pypi.douban.com/anaconda/cloud/bioconda/
105
- conda config --add channels https://pypi.douban.com/anaconda/cloud/menpo/
106
- conda config --add channels https://pypi.douban.com/anaconda/cloud/pytorch/
107
- pip config set global.index-url https://pypi.doubanio.com/simple
 
 
108
 
109
  # 下面这一条给 NVIDIA 用户
110
  conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -y
111
- # 安装其余依赖
112
- pip install -r requirements.txt
113
  ```
114
 
115
  至此环境配置完成,关闭该终端窗口(方便我写下一步)
 
49
 
50
  #### 如果要训练自己的数据请访问:[项目Github仓库](https://github.com/innnky/so-vits-svc/tree/main)、[教程《svc相关》](https://www.yuque.com/jiuwei-nui3d/qng6eg)
51
 
52
+ #### 建议参考上方“使用说明”下的教程,在本地使用 inference_main.py 处理,我都写成这样了再小白应该都能搞定
53
 
54
+ #### 本地推理可调用GPU(cuda),3060Ti 8G可推理一条20(建议) - 30s的音频,过长音频可分割后批量处理
 
 
55
  """)
56
  sid = gr.Dropdown(label="音色", choices=["岁己(本音)"], value="岁己(本音)")
57
  vc_input3 = gr.Audio(label="输入音频(长度请控制在30s左右,过长可能会爆内存)")
 
73
  ### 因为训练集来自于录播,所以音色偏本音,前期变调用于匹配音域,后期可以升一个调匹配一下岁己的歌音
74
 
75
  # 在本地部署并使用 inference_main.py 处理的保姆级教程:
76
+
77
+ # 未完工,还在解决装依赖的问题
78
 
79
  ### 0. 创建一个存放文件的目录,例如 D:\\SUI\\
80
 
 
93
  .\\git\\bin\\git lfs clone https://huggingface.co/spaces/Miuzarte/SUI-svc-3.0
94
  # 切换工作目录至仓库内
95
  cd D:\\SUI\\SUI-svc-3.0\\
96
+ # 创建并激活环境
 
97
  conda create -n sovits python=3.8 -y
98
+ conda activate sovits
99
+
100
+ # 更换国内清华源
101
  conda config --set show_channel_urls yes
102
  conda config --remove-key channels
103
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
104
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
105
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
106
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
107
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
108
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
109
+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
110
+ pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
111
 
112
  # 下面这一条给 NVIDIA 用户
113
  conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -y
114
+ # 安装其余依赖(如果pip报SSL相关错误请关闭科学上网)
115
+ pip install -r requirements_local.txt
116
  ```
117
 
118
  至此环境配置完成,关闭该终端窗口(方便我写下一步)