[GH-ISSUE #1020] AttributeError: 'NoneType' object has no attribute 'dtype' #666

Closed
opened 2026-10-20 10:01:43 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @Thoro1 on GitHub (Aug 15, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1020

Traceback (most recent call last):
File "infer-web.py", line 194, in vc_single
load_hubert()
File "infer-web.py", line 135, in load_hubert
models, _, _ = fairseq.checkpoint_utils.load_model_ensemble_and_task(
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/fairseq/checkpoint_utils.py", line 423, in load_model_ensemble_and_task
raise IOError("Model file not found: {}".format(filename))
OSError: Model file not found: hubert_base.pt

Traceback (most recent call last):
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/blocks.py", line 1007, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/blocks.py", line 953, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/components.py", line 2076, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/processing_utils.py", line 206, in audio_to_file
data = convert_to_16_bit_wav(data)
File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/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'

i have no idea whats wrong and how to fix this, the site just says error and thats it, console shows the exception shown above but im unable to figure out what is the issue. can someone help me fix this?

Originally created by @Thoro1 on GitHub (Aug 15, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1020 Traceback (most recent call last): File "infer-web.py", line 194, in vc_single load_hubert() File "infer-web.py", line 135, in load_hubert models, _, _ = fairseq.checkpoint_utils.load_model_ensemble_and_task( File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/fairseq/checkpoint_utils.py", line 423, in load_model_ensemble_and_task raise IOError("Model file not found: {}".format(filename)) OSError: Model file not found: hubert_base.pt Traceback (most recent call last): File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/routes.py", line 321, in run_predict output = await app.blocks.process_api( File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/blocks.py", line 1007, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/blocks.py", line 953, in postprocess_data prediction_value = block.postprocess(prediction_value) File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/components.py", line 2076, in postprocess processing_utils.audio_to_file(sample_rate, data, file.name) File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/site-packages/gradio/processing_utils.py", line 206, in audio_to_file data = convert_to_16_bit_wav(data) File "/home/user/Desktop/Retrieval-based-Voice-Conversion-WebUI-main/myenv/lib/python3.8/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' i have no idea whats wrong and how to fix this, the site just says error and thats it, console shows the exception shown above but im unable to figure out what is the issue. can someone help me fix this?
Author
Owner

@truszko1 commented on GitHub (Aug 15, 2023):

"OSError: Model file not found: hubert_base.pt"

this is your ticket, most likely. Check the hugginf Download the file from here and add it to your project root dir.

<!-- gh-comment-id:1679743349 --> @truszko1 commented on GitHub (Aug 15, 2023): "OSError: Model file not found: hubert_base.pt" this is your ticket, most likely. [Check the hugginf](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main) Download the file from here and add it to your project root dir.
Author
Owner

@RVC-Boss commented on GitHub (Aug 16, 2023):

↑ is right.

<!-- gh-comment-id:1679914744 --> @RVC-Boss commented on GitHub (Aug 16, 2023): ↑ is right.
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#666
No description provided.