w-okada / voice-changer

リアルタイムボイスチェンジャー Realtime Voice Changer
Other
15.27k stars 1.64k forks source link

[ISSUE]: INVALID_PROTOBUF #1226

Open khushboo2000s opened 3 weeks ago

khushboo2000s commented 3 weeks ago

Voice Changer Version

MMVCServerSIO_win_onnxgpu-cuda_v.1.5.3.15.zip

Operational System

windows 11

GPU

Nvidia Geforce MX250

Read carefully and check the options

Model Type

RVC

Issue Description

[Voice Changer] use torch contentvec [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from pretrain/content_vec_500.onnx failed:Protobuf parsing failed. [Voice Changer] exception! loading embedder PytorchStreamReader failed reading zip archive: failed finding central directory cuda:0 Traceback (most recent call last): File "voice_changer\RVC\embedder\EmbedderManager.py", line 47, in loadEmbedder File "voice_changer\RVC\embedder\OnnxContentvec.py", line 17, in loadModel File "onnxruntime\capi\onnxruntime_inference_collection.py", line 347, in init File "onnxruntime\capi\onnxruntime_inference_collection.py", line 384, in _create_inference_session onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from pretrain/content_vec_500.onnx failed:Protobuf parsing failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "voice_changer\RVC\pipeline\PipelineGenerator.py", line 30, in createPipeline File "voice_changer\RVC\embedder\EmbedderManager.py", line 26, in getEmbedder File "voice_changer\RVC\embedder\EmbedderManager.py", line 51, in loadEmbedder File "voice_changer\RVC\embedder\FairseqHubert.py", line 11, in loadModel File "fairseq\checkpoint_utils.py", line 425, in load_model_ensemble_and_task state = load_checkpoint_to_cpu(filename, arg_overrides) File "fairseq\checkpoint_utils.py", line 315, in load_checkpoint_to_cpu state = torch.load(f, map_location=torch.device("cpu")) File "torch\serialization.py", line 797, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "torch\serialization.py", line 283, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory [VCClient] wait web server... done 200

Application Screenshot

image

Logs on console

Traceback (most recent call last): File "voice_changer\RVC\pipeline\PipelineGenerator.py", line 30, in createPipeline File "voice_changer\RVC\embedder\EmbedderManager.py", line 26, in getEmbedder File "voice_changer\RVC\embedder\EmbedderManager.py", line 51, in loadEmbedder File "voice_changer\RVC\embedder\FairseqHubert.py", line 11, in loadModel File "fairseq\checkpoint_utils.py", line 425, in load_model_ensemble_and_task state = load_checkpoint_to_cpu(filename, arg_overrides) File "fairseq\checkpoint_utils.py", line 315, in load_checkpoint_to_cpu state = torch.load(f, map_location=torch.device("cpu")) File "torch\serialization.py", line 797, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "torch\serialization.py", line 283, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory [VCClient] wait web server... done 200

KuukoShan commented 3 weeks ago

Open the software using the start_http.bat file and wait for every file to download. Anyway, I highly doubt it may run properly with that gpu.

AngelicSage commented 3 weeks ago

Does this only happen when you use that trump model? Try to use the other ones in w-okada, if those work, then it's a problem with the model. Like @KuukoShan said, the GPU will probably make the performance not good, but it might work out, so give it a try!