[GH-ISSUE #672] RVC导出的onnx模型在VC(voice-changer)中无法使用,但pth可以 #400

Closed
opened 2026-10-20 09:58:59 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @hpx502766238 on GitHub (Jul 2, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/672

RVC导出的onnx模型在voice-changer(https://github.com/w-okada/voice-changer)中无法使用,报错,但VC直接使用pth又能够推理,但如果使用pth,又不能通过DirectML利用核显的算力了(测试用VC自带的onnx示例模型是可以使用核显推理的)。下面是VC报错内容:
[Voice Changer] VC PROCESSING EXCEPTION!!! Required inputs (['phone', 'phone_lengths', 'ds', 'rnd']) are missing from input feed (['feats', 'p_len', 'pitch', 'pitchf', 'sid']).
Traceback (most recent call last):
File "voice_changer\VoiceChanger.py", line 228, in on_request_sola
File "voice_changer\RVC\RVC.py", line 157, in inference
File "voice_changer\RVC\pipeline\Pipeline.py", line 209, in exec
File "voice_changer\RVC\inferencer\OnnxRVCInferencer.py", line 57, in infer
File "onnxruntime\capi\onnxruntime_inference_collection.py", line 213, in run
File "onnxruntime\capi\onnxruntime_inference_collection.py", line 195, in _validate_input
ValueError: Required inputs (['phone', 'phone_lengths', 'ds', 'rnd']) are missing from input feed (['feats', 'p_len', 'pitch', 'pitchf', 'sid']).

Originally created by @hpx502766238 on GitHub (Jul 2, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/672 RVC导出的onnx模型在voice-changer(https://github.com/w-okada/voice-changer)中无法使用,报错,但VC直接使用pth又能够推理,但如果使用pth,又不能通过DirectML利用核显的算力了(测试用VC自带的onnx示例模型是可以使用核显推理的)。下面是VC报错内容: [Voice Changer] VC PROCESSING EXCEPTION!!! Required inputs (['phone', 'phone_lengths', 'ds', 'rnd']) are missing from input feed (['feats', 'p_len', 'pitch', 'pitchf', 'sid']). Traceback (most recent call last): File "voice_changer\VoiceChanger.py", line 228, in on_request_sola File "voice_changer\RVC\RVC.py", line 157, in inference File "voice_changer\RVC\pipeline\Pipeline.py", line 209, in exec File "voice_changer\RVC\inferencer\OnnxRVCInferencer.py", line 57, in infer File "onnxruntime\capi\onnxruntime_inference_collection.py", line 213, in run File "onnxruntime\capi\onnxruntime_inference_collection.py", line 195, in _validate_input ValueError: Required inputs (['phone', 'phone_lengths', 'ds', 'rnd']) are missing from input feed (['feats', 'p_len', 'pitch', 'pitchf', 'sid']).
bsakaguchi 2026-10-20 09:58:59 +00:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@ykk648 commented on GitHub (Nov 6, 2023):

onnx转换的不一样

<!-- gh-comment-id:1794031999 --> @ykk648 commented on GitHub (Nov 6, 2023): onnx转换的不一样
Author
Owner

@github-actions[bot] commented on GitHub (Apr 29, 2024):

This issue was closed because it has been inactive for 15 days since being marked as stale.

<!-- gh-comment-id:2081857233 --> @github-actions[bot] commented on GitHub (Apr 29, 2024): This issue was closed because it has been inactive for 15 days since being marked as stale.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#400
No description provided.