File size: 7,776 Bytes
cafad09
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<div align="center">

<h1>Retrieval-based-Voice-Conversion-WebUI</h1>
็ฐกๅ–ฎํ•˜๊ณ  ไฝฟ็”จํ•˜๊ธฐ ์‰ฌ์šด ้Ÿณ่‰ฒ่ฎŠๆ›/่ฎŠ่ฒๅ™จ ํ”„๋ ˆ์ž„์›Œํฌ.<br><br>

[![madewithlove](https://img.shields.io/badge/made_with-%E2%9D%A4-red?style=for-the-badge&labelColor=orange
)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)

<img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>

[![Licence](https://img.shields.io/github/license/RVC-Project/Retrieval-based-Voice-Conversion-WebUI?style=for-the-badge)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
[![Huggingface](https://img.shields.io/badge/๐Ÿค—%20-Models-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)


</div>

------
[**ๆ›ดๆ–ฐๆ—ฅ่ชŒ**](./Changelog_KO.md)

[**English**](../en/README.en.md) | [**ไธญๆ–‡็ฎ€ไฝ“**](../../README.md) | [**ๆ—ฅๆœฌ่ชž**](../jp/README.ja.md) | [**ํ•œ๊ตญ์–ด**](../kr/README.ko.md) ([**้Ÿ“ๅœ‹่ชž**](../kr/README.ko.han.md)) | [**Franรงais**](../fr/README.fr.md) | [**Tรผrkรงe**](../tr/README.tr.md) | [**Portuguรชs**](../pt/README.pt.md)

> [็คบ็ฏ„ๆ˜ ๅƒ](https://www.bilibili.com/video/BV1pm4y1z7Gm/)์„ ็ขบ่ชํ•ด ๋ณด์„ธ์š”!

> RVC๋ฅผๆดป็”จํ•œๅฏฆๆ™‚้–“้Ÿณ่ฒ่ฎŠๆ›: [w-okada/voice-changer](https://github.com/w-okada/voice-changer)

> ๅŸบๆœฌ๋ชจ๋ธ์€ 50ๆ™‚้–“ๅ‡้‡์˜ ้ซ˜ๅ“่ณช ์˜คํ”ˆ ์†Œ์Šค VCTK ๋ฐ์ดํ„ฐ์…‹์„ ไฝฟ็”จํ•˜์˜€์œผ๋ฏ€๋กœ, ่‘—ไฝœๆฌŠไธŠ์˜ ๅฟตๆ…ฎ๊ฐ€ ์—†์œผ๋‹ˆ ๅฎ‰ๅฟƒํ•˜๊ณ  ไฝฟ็”จํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

> ่‘—ไฝœๆฌŠๅ•้กŒ๊ฐ€ ์—†๋Š” ้ซ˜ๅ“่ณช์˜ ๋…ธ๋ž˜๋ฅผ ไปฅๅพŒ์—๋„ ็นผ็บŒํ•ด์„œ ่จ“็ทดํ•  ่ฑซๅฎš์ž…๋‹ˆ๋‹ค.

## ็ดนไป‹
ๆœฌRepo๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ็‰นๅพต์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค:
+ top1ๆชข็ดข์„ๅˆฉ็”จํ•˜์—ฌ ๅ…ฅๅŠ›้Ÿณ่‰ฒ็‰นๅพต์„ ่จ“็ทด์„ธํŠธ้Ÿณ่‰ฒ็‰นๅพต์œผ๋กœ ไปฃๆ›ฟํ•˜์—ฌ ้Ÿณ่‰ฒ์˜ๆผๅ‡บ์„ ้˜ฒๆญข;
+ ็›ธๅฐ็š„์œผ๋กœ ๋‚ฎ์€ๆ€ง่ƒฝ์˜ GPU์—์„œ๋„ ๋น ๋ฅธ่จ“็ทดๅฏ่ƒฝ;
+ ์ ์€้‡์˜ ๋ฐ์ดํ„ฐ๋กœ ่จ“็ทดํ•ด๋„ ์ข‹์€ ็ตๆžœ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์Œ (ๆœ€ๅฐ10ๅˆ†ไปฅไธŠ์˜ ไฝŽ้›œ์Œ้Ÿณ่ฒ๋ฐ์ดํ„ฐ๋ฅผ ไฝฟ็”จํ•˜๋Š” ๊ฒƒ์„ ๅ‹ธ็Ž);
+ ๋ชจ๋ธ่žๅˆ์„้€šํ•œ ้Ÿณ่‰ฒ์˜ ่ฎŠ่ชฟๅฏ่ƒฝ (ckpt่™•็†ํƒญ->ckptๆททๅˆ้ธๆ“‡);
+ ไฝฟ็”จํ•˜๊ธฐ ์‰ฌ์šด WebUI (์›น ไฝฟ็”จ่€…์ธํ„ฐํŽ˜์ด์Šค);
+ pymss/MSST ๋ชจ๋ธ์„ ๅˆฉ็”จํ•˜์—ฌ ๋ชฉ์†Œ๋ฆฌ์™€ ่ƒŒๆ™ฏ้Ÿณๆจ‚์˜ ๋น ๋ฅธ ๅˆ†้›ข;

## ็’ฐๅขƒ์˜ ๆบ–ๅ‚™

์ด ๋ธŒ๋žœ์น˜๋Š” **Python 3.12 x64**๋ฅผ ๅฐ่ฑก์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“  ๅ‘ฝไปค์€ ์ €์žฅ์†Œ ๆ น็›ฎ้Œ„์—์„œ ์‹คํ–‰ํ•˜์„ธ์š”. Ubuntu 24.04 x86_64๋ฅผ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.

### Ubuntu 24.04

```bash
sudo apt update
sudo apt install -y python3.12 python3.12-venv python3.12-dev ffmpeg unzip libsndfile1 libportaudio2

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
```

### Windows

Python 3.12 x64๋ฅผ ์„ค์น˜ํ•œ ๋’ค ๅ‡ๆƒณ็’ฐๅขƒ์„ ๋งŒ๋“œ์„ธ์š”.

```powershell
py -3.12 -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip setuptools wheel
```

### ํ•˜๋“œ์›จ์–ดๅˆฅ ไพๅญ˜ๆ€ง

| ํ•˜๋“œ์›จ์–ด | ่จญ็ฝฎ ๆ–นๆณ• |
| --- | --- |
| CPU, AMD, Intel | `requirments_cpu_py312.txt` ไฝฟ็”จ. Windows๋Š” DirectML, Linux๋Š” CPU ไฝฟ็”จ |
| NVIDIA RTX 50 ็ณปๅˆ— | CUDA 12.8 Torch๋ฅผ ๋จผ์ € ์„ค์น˜ํ•œ ๋’ค `requirments_cu128_py312.txt` ่จญ็ฝฎ |
| RTX 50 ็ณปๅˆ— ไปฅๅ‰ NVIDIA | CUDA 11.8 Torch๋ฅผ ๋จผ์ € ์„ค์น˜ํ•œ ๋’ค `requirments_cu118_py312.txt` ่จญ็ฝฎ |

#### CPU, AMD, Intel

```bash
python -m pip install -r requirments_cpu_py312.txt
```

#### NVIDIA RTX 50 ็ณปๅˆ—๏ผš2ๆฎต้šŽ ่จญ็ฝฎ

```bash
python -m pip install torch==2.7.1+cu128 torchaudio==2.7.1+cu128 \
  --index-url https://download.pytorch.org/whl/cu128 \
  --extra-index-url https://pypi.org/simple
python -m pip install -r requirments_cu128_py312.txt
```

#### RTX 50 ็ณปๅˆ— ไปฅๅ‰ NVIDIA๏ผš2ๆฎต้šŽ ่จญ็ฝฎ

Torch์™€ CUDA ็‹€ๆ…‹๋ฅผ ็ขบ่ชํ•˜์„ธ์š”.

```bash
python -c "import torch; print('torch:', torch.__version__); print('cuda:', torch.version.cuda); print('cuda available:', torch.cuda.is_available())"
```


### ํŒจํ‚ค์ง€ ไพ†ๆบ

์„ธ ๊ฐœ์˜ `requirments_*.txt` ไธŠ็ซฏ์— ไธ‹่ผ‰ ไพ†ๆบ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๊ณต์‹ ์†Œ์Šค๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ๋Š” `--index-url`๊ณผ `--extra-index-url`๋งŒ ๊ต์ฒดํ•˜๊ณ  ๋ฒ„์ „, CUDA ์ ‘๋ฏธ์‚ฌ, 2ๆฎต้šŽ ์ˆœ์„œ๋Š” ์œ ์ง€ํ•˜์„ธ์š”.

| Default mirror | Official source |
| --- | --- |
| `https://mirrors.pku.edu.cn/pypi/simple` | `https://pypi.org/simple` |
| `https://mirrors.nju.edu.cn/pytorch/whl/cpu` | `https://download.pytorch.org/whl/cpu` |
| `https://mirrors.nju.edu.cn/pytorch/whl/cu118` | `https://download.pytorch.org/whl/cu118` |
| `https://mirrors.nju.edu.cn/pytorch/whl/cu128` | `https://download.pytorch.org/whl/cu128` |

## ๋ชจ๋ธ๊ณผ ้‹่กŒ ็›ฎ้Œ„

WebUI๋Š” ้‹่กŒ ็›ฎ้Œ„๋ฅผ ์ž๋™ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. [Hugging Face ๋ชจ๋ธ ์ €์žฅ์†Œ](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main)์—์„œ ๋ชจ๋ธ์„ ๋ฐ›๊ณ  ๋‹ค์Œ ๊ตฌ์กฐ๋ฅผ ์œ ์ง€ํ•˜์„ธ์š”.

```text
assets/
โ”œโ”€โ”€ hubert_base/
โ”‚   โ”œโ”€โ”€ config.json
โ”‚   โ”œโ”€โ”€ preprocessor_config.json
โ”‚   โ””โ”€โ”€ pytorch_model.bin
โ”œโ”€โ”€ rmvpe/rmvpe.pt
โ”œโ”€โ”€ pretrained/
โ”œโ”€โ”€ pretrained_v2/
โ”œโ”€โ”€ pymss_weights/
โ”œโ”€โ”€ weights/        # user RVC .pth models
โ””โ”€โ”€ indices/        # user .index files
logs/
โ””โ”€โ”€ mute/           # training silence samples

# Exact paths used by the code
assets/hubert_base/config.json
assets/hubert_base/preprocessor_config.json
assets/hubert_base/pytorch_model.bin
assets/rmvpe/rmvpe.pt
assets/pretrained/*.pth
assets/pretrained_v2/*.pth
assets/pymss_weights/*
assets/weights/*.pth
assets/indices/*.index
logs/mute/*
```

### ๋ชจ๋ธ ไธ‹่ผ‰

```bash
python -m pip install --upgrade huggingface_hub

# Required for inference and feature extraction
hf download lj1995/VoiceConversionWebUI --revision main \
  --include "hubert_base/*" --local-dir assets
hf download lj1995/VoiceConversionWebUI rmvpe.pt --revision main \
  --local-dir assets/rmvpe

# Required for v1/v2 training
hf download lj1995/VoiceConversionWebUI --revision main \
  --include "pretrained/*" "pretrained_v2/*" --local-dir assets
hf download lj1995/VoiceConversionWebUI mute.zip --revision main \
  --local-dir .model-downloads
python -m zipfile -e .model-downloads/mute.zip logs

# Required only for pymss/MSST vocal separation
hf download lj1995/VoiceConversionWebUI --revision main \
  --include "pymss_weights/*" --local-dir assets
```

Windows AMD/Intel DirectML ํ™˜๊ฒฝ์—๋Š” ๋‹ค์Œ ํŒŒ์ผ๋„ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

```bash
hf download lj1995/VoiceConversionWebUI rmvpe.onnx --revision main \
  --local-dir assets/rmvpe
```


### FFmpeg

์œ„ Ubuntu ๋ช…๋ น์€ FFmpeg๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. Windows์—์„œ๋Š” ๋‹ค์Œ ํŒŒ์ผ์„ ์ €์žฅ์†Œ ๆ น็›ฎ้Œ„์— ๋ฐฐ์น˜ํ•˜์„ธ์š”.

- [ffmpeg.exe](https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/ffmpeg.exe?download=true)
- [ffprobe.exe](https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/ffprobe.exe?download=true)

## WebUI ๅง‹ไฝœ

```bash
python webui.py
```

ํ™”๋ฉด์ด ์—†๋Š” Ubuntu ์„œ๋ฒ„:

```bash
python webui.py --noautoopen
```

ๅŸบๆœฌ ํฌํŠธ๋Š” `7865`์ž…๋‹ˆ๋‹ค. `.pth` ๋ชจ๋ธ์€ `assets/weights/`, `.index` ํŒŒ์ผ์€ `assets/indices/`์— ๋ฐฐ์น˜ํ•˜์„ธ์š”.

## ๅƒ่€ƒ
+ [ContentVec](https://github.com/auspicious3000/contentvec/)
+ [VITS](https://github.com/jaywalnut310/vits)
+ [HIFIGAN](https://github.com/jik876/hifi-gan)
+ [Gradio](https://github.com/gradio-app/gradio)
+ [FFmpeg](https://github.com/FFmpeg/FFmpeg)
+ [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
+ [pymss-project/pymss](https://github.com/pymss-project/pymss)
+ [audio-slicer](https://github.com/openvpi/audio-slicer)
## ๋ชจ๋“ ๅฏ„่ˆ‡่€…๋ถ„๋“ค์˜ๅ‹žๅŠ›์—ๆ„Ÿ่ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค

<a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
  <img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
</a>