Views
No views yet
| File | Sample Rate | Size | Description |
|---|---|---|---|
v2/f0G48k.safetensors | 48 kHz | 110 MB | V2 with F0 (pitch) - highest quality |
v2/f0G40k.safetensors | 40 kHz | 105 MB | V2 with F0 (pitch) |
v2/f0G32k.safetensors | 32 kHz | 107 MB | V2 with F0 (pitch) |
1from huggingface_hub import hf_hub_download
2
3# Download the 48kHz model
4weights_path = hf_hub_download(
5 repo_id="lexandstuff/rvc-mlx-weights",
6 filename="v2/f0G48k.safetensors"
7)
8
9# Download config
10config_path = hf_hub_download(
11 repo_id="lexandstuff/rvc-mlx-weights",
12 filename="v2/config.json"
13)1import json
2from safetensors.numpy import load_file
3from rvc_mlx.models import SynthesizerTrnMs768NSFsid
4
5# Load config
6with open(config_path) as f:
7 configs = json.load(f)
8 config = configs["48000"] # or "40000", "32000"
9
10# Create model
11model = SynthesizerTrnMs768NSFsid(**config)
12
13# Load weights
14weights = load_file(weights_path)
15# ... load weights into modelSynthesizerTrnMs768NSFsid
├── enc_p (TextEncoder) - Encodes ContentVec + pitch
├── flow (ResidualCoupling) - Normalizing flow for voice conversion
├── dec (GeneratorNSF) - HiFi-GAN vocoder with neural source filter
└── emb_g (Embedding) - Speaker embedding| Sample Rate | Upsample Rates | Total Factor |
|---|---|---|
| 32 kHz | [10, 8, 2, 2] | 320x |
| 40 kHz | [10, 10, 2, 2] | 400x |
| 48 kHz | [12, 10, 2, 2] | 480x |
pretrained_v2/f0G{32k,40k,48k}.pth1@software{rvc2023,
2 author = {RVC-Project},
3 title = {Retrieval-based-Voice-Conversion-WebUI},
4 year = {2023},
5 url = {https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI}
6}