Skip to main content

huggingface-hub-rvc

huggingface-hub-rvc provides a small Hugging Face style API for RVC voice conversion artifacts:

  • RVCPipeline.from_pretrained(...)
  • RVCPipeline.save_pretrained(...)
  • RVCPipeline.push_to_hub(...)
  • RVCPipeline.export_webui(...)
  • RVCPipeline.train(...)
  • RVCPipeline.convert_file(...)
  • RVCPipeline.convert_directory(...)

Training currently produces RVC v2 F0 48 kHz models and stores new weights as safetensors. Inference also loads classic RVC WebUI v1/v2, F0/non-F0, multi-speaker .pth checkpoints and their optional retrieval indexes with restricted weights_only=True deserialization.

Artifact Layout

config.json
voice_transform/
  manifest.json
  model.safetensors
  features.safetensors
  index.index

model.safetensors contains the RVC generator weights plus string metadata for the RVC config and training summary. features.safetensors contains retrieval vectors as tensor payload. index.index is the FAISS index and remains a separate binary file. config.json includes model_name, which is also mirrored into voice_transform/manifest.json so the artifact remains identifiable even if it is downloaded into a generic cache or renamed folder. README.md is generated as a Hub model card when save_pretrained writes the artifact.

Legacy model.pth, WebUI .pth, and features.npy artifacts can still be loaded. New writes prefer safetensors.

Load

from huggingface_hub_rvc import RVCPipeline

pipe = RVCPipeline.from_pretrained("org/rvc-model")
pipe.convert_directory(
    "input_audio",
    "converted_audio",
    pitch_shift=0,
    f0_method="rmvpe",  # rmvpe, fcpe, or pm
    protect=0.33,
    rms_mix_rate=1.0,
    retrieval_strength=0.75,
    speaker_id=0,
)

Use local_files_only=True to avoid network lookup:

pipe = RVCPipeline.from_pretrained("./my-rvc-model", local_files_only=True)

The converter uses reflected context padding, low-energy chunk boundaries, and standard RVC consonant protection and volume-envelope mixing. audio_mode="separate_convert_remix" supports separation_method="pymss" (default) or separation_method="demucs". CUDA Graph capture is opt-in with use_cuda_graph=True because its benefit depends on input-shape reuse.

Train

from huggingface_hub_rvc import RVCPipeline

pipe = RVCPipeline.train(
    identity_dir="identity_audio",
    output_dir="rvc_artifact",
    model_name="Example Voice",
    training_steps=1000,
    identity_audio_mode="separate",
)
pipe.convert_directory("source_audio", "converted_audio")

Set separation_method="demucs" in RVCPipeline.train(...) to retain Demucs preprocessing instead of the default PyMSS vocal separator. Already-isolated vocals should use identity_audio_mode="vocal_only".

Save And Push

pipe.save_pretrained("rvc_artifact", model_name="Example Voice")
pipe.push_to_hub("org/rvc-model", folder_path="rvc_artifact")

or:

pipe.save_pretrained("rvc_artifact", push_to_hub=True, repo_id="org/rvc-model")

Export a classic WebUI bundle when needed:

pipe.export_webui("rvc_artifact/webui", model_name="Example Voice", training_steps=1000)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huggingface_hub_rvc-0.1.3.tar.gz (50.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huggingface_hub_rvc-0.1.3-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

Details for the file huggingface_hub_rvc-0.1.3.tar.gz.

File metadata

  • Download URL: huggingface_hub_rvc-0.1.3.tar.gz
  • Upload date:
  • Size: 50.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for huggingface_hub_rvc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3dcc33e9ad3c391cc99819d71319c6c485d62ae3bd8054cc6d522918c33f13aa
MD5 7d9301603f1b09af533599d74a6c7f70
BLAKE2b-256 c798e9d329929ac5981d3f319192c05bb2703caf9820c95a518f84e8d3de0e35

See more details on using hashes here.

File details

Details for the file huggingface_hub_rvc-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for huggingface_hub_rvc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97c09de1b50a792049d694a6cdbf5d4470d333e90b431f7cefa646fe32229abf
MD5 038c80bc12614200c0a2074669aacc09
BLAKE2b-256 01fe8f4733d3be489d73eac827aebe2ef44f774ed75f13a334d01552853d6b74

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page