Skip to content

Commit 6223116

Browse files
committed
fix: no attribute 'FILE_LIKE'' & update instructions
1 parent b88cc1e commit 6223116

30 files changed

+106
-587
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__pycache__
33
/TEMP
44
*.pyd
5-
.venv
5+
.venv*
66
.vscode
77
.idea
88
xcuserdata

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ COPY . .
3030
RUN python3 -m pip install --upgrade pip>=24.0
3131
RUN python3 -m pip install --no-cache-dir -r requirements/main.txt
3232

33-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D40k.pth -d assets/pretrained_v2/ -o D40k.pth
34-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G40k.pth -d assets/pretrained_v2/ -o G40k.pth
35-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0D40k.pth -d assets/pretrained_v2/ -o f0D40k.pth
36-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0G40k.pth -d assets/pretrained_v2/ -o f0G40k.pth
33+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/pretrained_v2/D40k.pth -d assets/pretrained_v2/ -o D40k.pth
34+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/pretrained_v2/G40k.pth -d assets/pretrained_v2/ -o G40k.pth
35+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/pretrained_v2/f0D40k.pth -d assets/pretrained_v2/ -o f0D40k.pth
36+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/pretrained_v2/f0G40k.pth -d assets/pretrained_v2/ -o f0G40k.pth
3737

38-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP2-人声vocals+非人声instrumentals.pth -d assets/uvr5_weights/ -o HP2-人声vocals+非人声instrumentals.pth
39-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP5-主旋律人声vocals+其他instrumentals.pth -d assets/uvr5_weights/ -o HP5-主旋律人声vocals+其他instrumentals.pth
38+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/uvr5_weights/HP2-人声vocals+非人声instrumentals.pth -d assets/uvr5_weights/ -o HP2-人声vocals+非人声instrumentals.pth
39+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/uvr5_weights/HP5-主旋律人声vocals+其他instrumentals.pth -d assets/uvr5_weights/ -o HP5-主旋律人声vocals+其他instrumentals.pth
4040

41-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d assets/hubert -o hubert_base.pt
41+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/hubert/hubert_base.pt -d assets/hubert -o hubert_base.pt
4242

43-
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d assets/rmvpe -o rmvpe.pt
43+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/fumiama/RVC-Pretrained-Models/resolve/main/rmvpe/rmvpe.pt -d assets/rmvpe -o rmvpe.pt
4444

4545
VOLUME [ "/app/weights", "/app/opt" ]
4646

README.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An easy-to-use voice conversion framework based on VITS.
1111
![moe](https://counter.seku.su/cmoe?name=rvc&theme=r34)
1212

1313
[![Licence](https://img.shields.io/github/license/fumiama/Retrieval-based-Voice-Conversion-WebUI?style=for-the-badge)](https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
14-
[![Huggingface](https://img.shields.io/badge/🤗%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
14+
[![Huggingface](https://img.shields.io/badge/🤗%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/fumiama/RVC-Pretrained-Models/tree/main/)
1515

1616
[![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
1717

@@ -55,7 +55,7 @@ Check out our [Demo Video](https://www.bilibili.com/video/BV1pm4y1z7Gm/) here!
5555
> For the reason of the version limitation, please refer to this [bug](https://github.com/facebookresearch/fairseq/issues/5012).
5656
5757
```bash
58-
python --version # 3.8 <= Python < 3.11
58+
python --version # Recommend: 3.11
5959
```
6060

6161
### Linux/MacOS One-click Dependency Installation & Startup Script
@@ -66,20 +66,35 @@ sh ./run.sh
6666

6767
### Manual Installation of Dependencies
6868
1. Install `pytorch` and its core dependencies, skip if already installed. Refer to: https://pytorch.org/get-started/locally/
69+
- General
6970
```bash
7071
pip install torch torchvision torchaudio
7172
```
72-
2. If you are using Nvidia Ampere architecture (RTX30xx) in Windows, according to the experience of #21, you need to specify the cuda version corresponding to pytorch.
73+
- Nvidia GPU
74+
Remember to specify the CUDA version that is the same as your platform, like
75+
```bash
76+
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
77+
```
78+
If you are using Nvidia Ampere architecture (RTX30xx) in Windows, according to the experience of #21, you need to specify the cuda version corresponding to pytorch.
7379
```bash
7480
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
7581
```
82+
- AMD ROCM (Linux)
83+
If you are using an ROCM-capable AMD Radeon GPU, then you need to choose ROCM version of PyTorch.
84+
```bash
85+
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2
86+
```
87+
- AMD/Intel GPU (DML)
88+
```bash
89+
pip install torch_directml torchvision torchaudio
90+
```
7691

77-
3. Install the corresponding dependencies according to your own graphics card.
92+
2. Install the corresponding dependencies according to your own graphics card.
7893
- Nvidia GPU
7994
```bash
8095
pip install -r requirements/main.txt
8196
```
82-
- AMD/Intel GPU
97+
- AMD/Intel GPU (DML)
8398
```bash
8499
pip install -r requirements/dml.txt
85100
```
@@ -92,11 +107,6 @@ sh ./run.sh
92107
pip install -r requirements/ipex.txt
93108
```
94109

95-
4.If you are using an ROCM-capable AMD Radeon GPU, then you need to choose ROCM version of PyTorch.
96-
```bash
97-
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.2
98-
```
99-
100110
## Preparation of Other Files
101111
### 1. Assets
102112
> RVC requires some models located in the `assets` folder for inference and training.
@@ -109,7 +119,7 @@ sh ./run.sh
109119
- If you want to skip the resource integrity check at startup, please add the `--nocheck` parameter.
110120

111121
#### Download Manually
112-
> All resource files are located in [Hugging Face space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
122+
> All resource files are located in [Hugging Face space](https://huggingface.co/fumiama/RVC-Pretrained-Models/tree/main/)
113123
114124
> You can find some scripts to download them in the `tools` folder
115125
@@ -140,14 +150,14 @@ If you want to use the v2 version of the model, you need to download additional
140150

141151
If you want to use the latest RMVPE vocal pitch extraction algorithm, you need to download the pitch extraction model parameters and place them in `assets/rmvpe`.
142152

143-
- [rmvpe.pt](https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt)
153+
- [rmvpe.pt](https://huggingface.co/fumiama/RVC-Pretrained-Models/blob/main/rmvpe/rmvpe.pt)
144154
```bash
145155
rvcmd assets/rmvpe # RVC-Models-Downloader command
146156
```
147157

148158
#### Download DML environment of RMVPE (optional, for AMD/Intel GPU)
149159

150-
- [rmvpe.onnx](https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.onnx)
160+
- [rmvpe.onnx](https://huggingface.co/fumiama/RVC-Pretrained-Models/blob/main/rmvpe/rmvpe.onnx)
151161
```bash
152162
rvcmd assets/rmvpe # RVC-Models-Downloader command
153163
```

docs/cn/README.cn.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
![moe](https://counter.seku.su/cmoe?name=rvc&theme=r34)
1010

1111
[![Licence](https://img.shields.io/github/license/fumiama/Retrieval-based-Voice-Conversion-WebUI?style=for-the-badge)](https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
12-
[![Huggingface](https://img.shields.io/badge/🤗%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
12+
[![Huggingface](https://img.shields.io/badge/🤗%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/fumiama/RVC-Pretrained-Models/tree/main/)
1313

1414
[![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
1515

@@ -101,7 +101,7 @@ sh ./run.sh
101101
- 如果您希望跳过启动时的资源完整性检查,请添加`--nocheck`参数
102102

103103
#### 手动下载资源
104-
> 所有资源文件均位于[Hugging Face space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
104+
> 所有资源文件均位于[Hugging Face space](https://huggingface.co/fumiama/RVC-Pretrained-Models/tree/main/)
105105
106106
> 你可以在`tools`文件夹找到下载它们的脚本
107107
@@ -132,14 +132,14 @@ sh ./run.sh
132132

133133
如果你想使用最新的RMVPE人声音高提取算法,则你需要下载音高提取模型参数并放置于`assets/rmvpe`
134134

135-
- 下载[rmvpe.pt](https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt)
135+
- 下载[rmvpe.pt](https://huggingface.co/fumiama/RVC-Pretrained-Models/blob/main/rmvpe/rmvpe.pt)
136136
```bash
137137
rvcmd assets/rmvpe # RVC-Models-Downloader command
138138
```
139139

140140
#### 下载 rmvpe 的 dml 环境(可选, A卡/I卡用户)
141141

142-
- 下载[rmvpe.onnx](https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.onnx)
142+
- 下载[rmvpe.onnx](https://huggingface.co/fumiama/RVC-Pretrained-Models/blob/main/rmvpe/rmvpe.onnx)
143143
```bash
144144
rvcmd assets/rmvpe # RVC-Models-Downloader command
145145
```

docs/cn/faq.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -35,34 +35,7 @@
3535
可先跑通WebUI,消息窗内会显示数据集处理和训练用命令行;
3636

3737

38-
推理脚本:
39-
40-
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/myinfer.py
41-
42-
43-
例子:
44-
45-
46-
runtime\python.exe myinfer.py 0 "E:\codes\py39\RVC-beta\todo-songs\1111.wav" "E:\codes\py39\logs\mi-test\added_IVF677_Flat_nprobe_7.index" harvest "test.wav" "weights/mi-test.pth" 0.6 cuda:0 True
47-
48-
49-
f0up_key=sys.argv[1]
50-
51-
input_path=sys.argv[2]
52-
53-
index_path=sys.argv[3]
54-
55-
f0method=sys.argv[4]#harvest or pm
56-
57-
opt_path=sys.argv[5]
58-
59-
model_path=sys.argv[6]
60-
61-
index_rate=float(sys.argv[7])
62-
63-
device=sys.argv[8]
64-
65-
is_half=bool(sys.argv[9])
38+
推理脚本:tool/cmd/infer_cli.py
6639

6740

6841
## Q7:Cuda error/Cuda out of memory.

0 commit comments

Comments
 (0)