[GH-ISSUE #2273] RuntimeError: mat1 and mat2 must have the same dtype #1557

Closed
opened 2026-10-20 10:10:09 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Zufiinos on GitHub (Aug 29, 2024).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2273

-- Process 0 terminated with the following error:
Traceback (most recent call last):
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in _wrap
fn(i, *args)
File "D:\Downloads\RVC\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 189, in run
train_and_evaluate(
File "D:\Downloads\RVC\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 357, in train_and_evaluate
) = net_g(phone, phone_lengths, pitch, pitchf, spec, spec_lengths, sid)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\parallel\distributed.py", line 1156, in forward
output = self._run_ddp_forward(*inputs, **kwargs)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\parallel\distributed.py", line 1113, in _run_ddp_forward
return module_to_run(*inputs, **kwargs)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Downloads\RVC\RVC-beta\infer_pack\models.py", line 629, in forward
o = self.dec(z_slice, pitchf, g=g)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Downloads\RVC\RVC-beta\infer_pack\models.py", line 493, in forward
har_source, noi_source, uv = self.m_source(f0, self.upp)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Downloads\RVC\RVC-beta\infer_pack\models.py", line 416, in forward
sine_merge = self.l_tanh(self.l_linear(sine_wavs))
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 must have the same dtype

Originally created by @Zufiinos on GitHub (Aug 29, 2024). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2273 -- Process 0 terminated with the following error: Traceback (most recent call last): File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in _wrap fn(i, *args) File "D:\Downloads\RVC\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 189, in run train_and_evaluate( File "D:\Downloads\RVC\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 357, in train_and_evaluate ) = net_g(phone, phone_lengths, pitch, pitchf, spec, spec_lengths, sid) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\parallel\distributed.py", line 1156, in forward output = self._run_ddp_forward(*inputs, **kwargs) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\parallel\distributed.py", line 1113, in _run_ddp_forward return module_to_run(*inputs, **kwargs) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Downloads\RVC\RVC-beta\infer_pack\models.py", line 629, in forward o = self.dec(z_slice, pitchf, g=g) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Downloads\RVC\RVC-beta\infer_pack\models.py", line 493, in forward har_source, noi_source, uv = self.m_source(f0, self.upp) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Downloads\RVC\RVC-beta\infer_pack\models.py", line 416, in forward sine_merge = self.l_tanh(self.l_linear(sine_wavs)) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Downloads\RVC\RVC-beta\runtime\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward return F.linear(input, self.weight, self.bias) RuntimeError: mat1 and mat2 must have the same dtype
Author
Owner

@RVC-Boss commented on GitHub (Jul 20, 2026):

You can update the code to the latest main branch, where this issue has already been resolved.

<!-- gh-comment-id:5022859096 --> @RVC-Boss commented on GitHub (Jul 20, 2026): You can update the code to the latest `main` branch, where this issue has already been resolved.
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#1557
No description provided.