Skip to content

RMVPE pitch #2711

@Hayri-maker

Description

@Hayri-maker

i have found out that the new pytorch not can alocate the memmory.The file is 16 min. long. When i make a inference with the updated pytorch i get the following when i use the RMVPE pitch:
2025-07-28 16:20:00 | WARNING | infer.modules.vc.modules | Traceback (most recent call last):
File "C:\RVC20240604Nvidia50x0\infer\modules\vc\modules.py", line 188, in vc_single
audio_opt = self.pipeline.pipeline(
File "C:\RVC20240604Nvidia50x0\infer\modules\vc\pipeline.py", line 354, in pipeline
pitch, pitchf = self.get_f0(
File "C:\RVC20240604Nvidia50x0\infer\modules\vc\pipeline.py", line 154, in get_f0
f0 = self.model_rmvpe.infer_from_audio(x, thred=0.03)
File "C:\RVC20240604Nvidia50x0\infer\lib\rmvpe.py", line 605, in infer_from_audio
hidden = self.mel2hidden(mel)
File "C:\RVC20240604Nvidia50x0\infer\lib\rmvpe.py", line 584, in mel2hidden
hidden = self.model(mel)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1751, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1762, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\infer\lib\rmvpe.py", line 410, in forward
x = self.fc(x)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1751, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1762, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\container.py", line 240, in forward
input = module(input)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1751, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1762, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\infer\lib\rmvpe.py", line 174, in forward
return self.gru(x)[0]
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1751, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\module.py", line 1762, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\torch\nn\modules\rnn.py", line 1393, in forward
result = _VF.gru(
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_SUPPORTED. This error may appear if you passed in a non-contiguous input.

Traceback (most recent call last):
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\gradio\blocks.py", line 1007, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\gradio\components.py", line 2076, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\gradio\processing_utils.py", line 206, in audio_to_file
data = convert_to_16_bit_wav(data)
File "C:\RVC20240604Nvidia50x0\runtime\lib\site-packages\gradio\processing_utils.py", line 219, in convert_to_16_bit_wav
if data.dtype in [np.float64, np.float32, np.float16]:
AttributeError: 'NoneType' object has no attribute 'dtype

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions