Skip to content

RuntimeError+ 'NoneType' object has no attribute 'dtype' #2576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
REBmii opened this issue May 15, 2025 · 0 comments
Open

RuntimeError+ 'NoneType' object has no attribute 'dtype' #2576

REBmii opened this issue May 15, 2025 · 0 comments

Comments

@REBmii
Copy link

REBmii commented May 15, 2025

I need help....

2025-05-15 20:11:03 | WARNING | infer.modules.vc.modules | Traceback (most recent call last):
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\modules\vc\modules.py", line 186, in vc_single
audio_opt = self.pipeline.pipeline(
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\modules\vc\pipeline.py", line 375, in pipeline
self.vc(
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\modules\vc\pipeline.py", line 271, in vc
audio1 = (net_g.infer(*arg)[0][0, 0]).data.cpu().float().numpy()
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\lib\infer_pack\models.py", line 953, in infer
m_p, logs_p, x_mask = self.enc_p(phone, pitch, phone_lengths)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\lib\infer_pack\models.py", line 119, in forward
x = self.encoder(x * x_mask, x_mask)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\lib\infer_pack\attentions.py", line 69, in forward
y = attn_layers(x, x, attn_mask)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\lib\infer_pack\attentions.py", line 227, in forward
x, _ = self.attention(q, k, v, mask=attn_mask)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\lib\infer_pack\attentions.py", line 278, in attention
relative_weights = self._absolute_position_to_relative_position(p_attn)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\infer\lib\infer_pack\attentions.py", line 373, in _absolute_position_to_relative_position
x_final = x_flat.view([batch, heads, length, 2 * length])[:, :, :, 1:]
RuntimeError: Could not allocate tensor with 257795132 bytes. There is not enough GPU video memory available!

Traceback (most recent call last):
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\gradio\blocks.py", line 1007, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\gradio\components.py", line 2076, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\runtime\lib\site-packages\gradio\processing_utils.py", line 206, in audio_to_file
data = convert_to_16_bit_wav(data)
File "C:\RVC\RVC1006AMD_Intel\RVC1006AMD_Intel\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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy