[GH-ISSUE #1284] 能训练,但是推理不了 #838

Closed
opened 2026-10-20 10:03:32 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @Rain-0x01-39 on GitHub (Sep 20, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1284

Traceback (most recent call last):
  File "C:\RVC\RVC0813AMD_Intel\infer-web.py", line 211, in vc_single
    audio_opt = vc.pipeline(
  File "C:\RVC\RVC0813AMD_Intel\vc_infer_pipeline.py", line 342, in pipeline
    sid = torch.tensor(sid, device=self.device).unsqueeze(0).long()
RuntimeError: device or resource busy: device or resource busy

Traceback (most recent call last):
  File "C:\RVC\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
    output = await app.blocks.process_api(
  File "C:\RVC\RVC0813AMD_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\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "C:\RVC\RVC0813AMD_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\RVC0813AMD_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\RVC0813AMD_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'

核显,Intel(R)HD Graphics 530
我是不是该换独显了

Originally created by @Rain-0x01-39 on GitHub (Sep 20, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1284 ``` Traceback (most recent call last): File "C:\RVC\RVC0813AMD_Intel\infer-web.py", line 211, in vc_single audio_opt = vc.pipeline( File "C:\RVC\RVC0813AMD_Intel\vc_infer_pipeline.py", line 342, in pipeline sid = torch.tensor(sid, device=self.device).unsqueeze(0).long() RuntimeError: device or resource busy: device or resource busy Traceback (most recent call last): File "C:\RVC\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict output = await app.blocks.process_api( File "C:\RVC\RVC0813AMD_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\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data prediction_value = block.postprocess(prediction_value) File "C:\RVC\RVC0813AMD_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\RVC0813AMD_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\RVC0813AMD_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' ``` 核显,Intel(R)HD Graphics 530 我是不是该换独显了
bsakaguchi 2026-10-20 10:03:32 +00:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@Rain-0x01-39 commented on GitHub (Sep 21, 2023):

甚至还有这样的

Traceback (most recent call last):
  File "E:\RVC0813AMD_Intel\infer-web.py", line 211, in vc_single
    audio_opt = vc.pipeline(
  File "E:\RVC0813AMD_Intel\vc_infer_pipeline.py", line 359, in pipeline
    pitchf = torch.tensor(pitchf, device=self.device).unsqueeze(0).float()
RuntimeError: The GPU device does not support Double (Float64) operations!

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

我: 😅

<!-- gh-comment-id:1729783633 --> @Rain-0x01-39 commented on GitHub (Sep 21, 2023): 甚至还有这样的 ``` Traceback (most recent call last): File "E:\RVC0813AMD_Intel\infer-web.py", line 211, in vc_single audio_opt = vc.pipeline( File "E:\RVC0813AMD_Intel\vc_infer_pipeline.py", line 359, in pipeline pitchf = torch.tensor(pitchf, device=self.device).unsqueeze(0).float() RuntimeError: The GPU device does not support Double (Float64) operations! Traceback (most recent call last): File "E:\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict output = await app.blocks.process_api( File "E:\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\blocks.py", line 1007, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "E:\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data prediction_value = block.postprocess(prediction_value) File "E:\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\components.py", line 2076, in postprocess processing_utils.audio_to_file(sample_rate, data, file.name) File "E:\RVC0813AMD_Intel\runtime\lib\site-packages\gradio\processing_utils.py", line 206, in audio_to_file data = convert_to_16_bit_wav(data) File "E:\RVC0813AMD_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' ``` 我: 😅
Author
Owner

@ZZZ-zero commented on GitHub (Sep 28, 2023):

是这样的,直接40系解君愁

<!-- gh-comment-id:1738325482 --> @ZZZ-zero commented on GitHub (Sep 28, 2023): 是这样的,直接40系解君愁
Author
Owner

@Rain-0x01-39 commented on GitHub (Sep 28, 2023):

是这样的,直接40系解君愁

6

<!-- gh-comment-id:1738707746 --> @Rain-0x01-39 commented on GitHub (Sep 28, 2023): > 是这样的,直接40系解君愁 6
Author
Owner

@dvdcjw commented on GitHub (Dec 15, 2023):

我3070ti也一样报

<!-- gh-comment-id:1857136694 --> @dvdcjw commented on GitHub (Dec 15, 2023): 我3070ti也一样报
Author
Owner

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

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

<!-- gh-comment-id:2081319061 --> @github-actions[bot] commented on GitHub (Apr 28, 2024): This issue was closed because it has been inactive for 15 days since being marked as stale.
Author
Owner

@KKBK-233 commented on GitHub (Feb 19, 2025):

一样的,4060也是会报这个错误,似乎是音频文件处理的问题

<!-- gh-comment-id:2669276514 --> @KKBK-233 commented on GitHub (Feb 19, 2025): 一样的,4060也是会报这个错误,似乎是音频文件处理的问题
Author
Owner

@KKBK-233 commented on GitHub (Feb 19, 2025):

我找到问题并修复了,报错点在 D:\AI\voice\RVC1006Nvidia\infer\modules\vc\pipeline.py 第221行,里面应该传入浮点数,但是传进来的却是一个字典,我不知道是哪传来传去产生的问题,但是可以看见里面的结构是重复的:
{'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': 0.33, 'type': 'update'}, 'type': 'update'}, 'type': 'update'}, 'type': 'update'}, 'type': 'update'}, 'type': 'update'}
解决方法比较粗糙,直接复制到那行前面(220行)就好了:
try:
while True:
if "value" in protect:
protect=protect["value"]
except:
print("程序正常运行")

<!-- gh-comment-id:2669356893 --> @KKBK-233 commented on GitHub (Feb 19, 2025): 我找到问题并修复了,报错点在 D:\AI\voice\RVC1006Nvidia\infer\modules\vc\pipeline.py 第221行,里面应该传入浮点数,但是传进来的却是一个字典,我不知道是哪传来传去产生的问题,但是可以看见里面的结构是重复的: {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': {'visible': True, 'value': 0.33, '__type__': 'update'}, '__type__': 'update'}, '__type__': 'update'}, '__type__': 'update'}, '__type__': 'update'}, '__type__': 'update'} 解决方法比较粗糙,直接复制到那行前面(220行)就好了: try: while True: if "value" in protect: protect=protect["value"] except: print("程序正常运行")
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#838
No description provided.