Nodes/ComfyUI_RH_RVC/RunningHub RVC One-Click Train
ComfyUI Node

RunningHub RVC One-Click Train

Runs the RVC training pipeline from a local training audio folder: preprocess, extract F0/features, train the model, and optionally build a FAISS index. The exported model and index are saved under ComfyUI output/RVC/<save_name>.

By RH-RunningHub·Created 3 months ago·Updated 3 months ago· 0
RunningHub RVC One-Click Train
  • audio
  • info
trainset_dir
experiment_namervc_exp
save_namervc_model
versionv2
sample_rate40k
use_f0true
f0_methodrmvpe
speaker_id0
total_epoch50
save_every_epoch10
batch_size4
cpu_processes4
is_halftrue
train_indextrue
pretrained_G
pretrained_D
save_latest_onlytrue
cache_dataset_in_gpufalse
save_every_weightsfalse
audio_auto_cleantrue
auto_extract_vocalstrue
CategoryRunningHub/RVC

Inputs (22)

NameTypeDefaultDescription
trainset_dirSTRING训练音频目录。可填写绝对路径,或填写 ComfyUI input 目录下的相对目录;目录内放 wav/mp3/flac 等音频。
experiment_nameSTRINGrvc_exp实验名。会用于 rvc_source/logs/<实验名> 存放训练日志和中间产物。
save_nameSTRINGrvc_model保存文件名。最终会在 ComfyUI output/RVC/<save_name>/ 下生成 <save_name>.pth、<save_name>.index 和 <save_name>.zip。
versionCOMBOv2RVC 模型版本。v2 使用 768 维特征;v1 使用 256 维特征。
sample_rateCOMBO40k训练采样率。40k 兼容性最好;48k 高频更完整但更吃资源;32k 仅 v2 常用。
use_f0BOOLEANtrue是否训练带音高引导的模型。唱歌和保留旋律通常开启;纯说话可按需求关闭。
f0_methodCOMBOrmvpe训练集音高提取算法。rmvpe 质量通常更好但需要 models/RVC/_assets/rmvpe/rmvpe.pt;harvest 稳定但较慢。
speaker_idINT00–999写入训练 filelist 的说话人 ID。单人模型通常使用 0。
total_epochINT501–1000总训练轮数。小数据集常用 20-100;数据越多可适当增加。
save_every_epochINT101–1000每多少 epoch 保存一次 G/D checkpoint。
batch_sizeINT41–64训练 batch size。显存不足时调小;调到 1 仍 OOM 时需要更大显存。
cpu_processesINT41–32训练集预处理和部分 F0 提取使用的 CPU 进程数。
is_halfBOOLEANtrue特征提取和训练是否启用半精度。CPU/MPS 环境或数值异常时关闭。
train_indexBOOLEANtrue训练结束后是否基于特征构建 FAISS 检索索引。推理时 index_rate 大于 0 通常需要它。
audioopt*可选音频输入。trainset_dir 为空时使用;支持 ComfyUI AUDIO、AUDIO 列表、音频文件路径或路径列表。
pretrained_GoptSTRING可选预训练 Generator 路径。留空会自动尝试 assets/pretrained(_v2) 下的默认文件;不存在则从头训练。
pretrained_DoptSTRING可选预训练 Discriminator 路径。留空会自动尝试 assets/pretrained(_v2) 下的默认文件;不存在则从头训练。
save_latest_onlyoptBOOLEANtrue是否只保留 latest G/D checkpoint。开启可减少磁盘占用。
cache_dataset_in_gpuoptBOOLEANfalse是否把训练集缓存进显存。10 分钟以下小数据可加速,大数据容易显存不足。
save_every_weightsoptBOOLEANfalse是否每次保存 checkpoint 时额外导出可推理的小模型。关闭时仍会在训练结束导出最终模型。
audio_auto_cleanoptBOOLEANtrue训练前自动清洗音频:转单声道、去静音、过滤过短/过低音量片段,并做峰值归一化。建议保持开启。
auto_extract_vocalsoptBOOLEANtrue训练前先用 Demucs/HDEMUCS 提取人声。仅在素材带伴奏时开启;干声训练集建议关闭以避免额外失真。

Outputs (1)

NameTypeDescription
infoSTRING训练流程日志摘要和生成文件位置。输出文件写入 ComfyUI output/RVC/<save_name>/。