Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -125,17 +125,21 @@ with app:
|
|
125 |
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
|
126 |
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
127 |
```
|
|
|
128 |
```
|
129 |
-
#
|
130 |
-
|
131 |
-
|
132 |
-
```
|
133 |
-
# GPU(NVIDIA)推理要安装的依赖:(如果pip报SSL相关错误请关闭科学上网)
|
134 |
pip install -r requirements_gpu.txt
|
135 |
pip install https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp38-cp38-win_amd64.whl
|
136 |
pip install https://download.pytorch.org/whl/cu113/torchvision-0.13.1%2Bcu113-cp38-cp38-win_amd64.whl
|
137 |
pip install https://download.pytorch.org/whl/cu113/torchaudio-0.12.1%2Bcu113-cp38-cp38-win_amd64.whl
|
138 |
```
|
|
|
|
|
|
|
|
|
|
|
139 |
至此环境配置完成,关闭该终端窗口(方便我写下一步)
|
140 |
|
141 |
### 3. 歌声音色转换
|
|
|
125 |
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
|
126 |
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
127 |
```
|
128 |
+
推理所使用的设备取决于安装的torch是否支持cuda,请仔细阅读以下汉字
|
129 |
```
|
130 |
+
# GPU(NVIDIA,CUDA版本不低于11.3)
|
131 |
+
# 似乎10系及以前都不支持cuda11?
|
132 |
+
# 如果pip报SSL相关错误请关闭科学上网
|
|
|
|
|
133 |
pip install -r requirements_gpu.txt
|
134 |
pip install https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp38-cp38-win_amd64.whl
|
135 |
pip install https://download.pytorch.org/whl/cu113/torchvision-0.13.1%2Bcu113-cp38-cp38-win_amd64.whl
|
136 |
pip install https://download.pytorch.org/whl/cu113/torchaudio-0.12.1%2Bcu113-cp38-cp38-win_amd64.whl
|
137 |
```
|
138 |
+
```
|
139 |
+
# CPU(x86,内存建议不小于8G)
|
140 |
+
# 如果pip报SSL相关错误请关闭科学上网
|
141 |
+
pip install -r requirements_cpu.txt
|
142 |
+
```
|
143 |
至此环境配置完成,关闭该终端窗口(方便我写下一步)
|
144 |
|
145 |
### 3. 歌声音色转换
|