Spaces:
Running on Zero
Running on Zero
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>
[](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)
<img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>
[](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
[](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>
|