[GH-ISSUE #1552] Use Model Error M2 Mac #1025

Closed
opened 2026-10-20 10:05:13 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @vysecurity on GitHub (Nov 16, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1552

I am getting the following error when trying to use a model I've trained over night:

WARNING:infer.modules.vc.modules:Traceback (most recent call last):
  File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/infer/modules/vc/modules.py", line 186, in vc_single
    audio_opt = self.pipeline.pipeline(
                ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'pipeline'

Traceback (most recent call last):
  File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/routes.py", line 437, in run_predict
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1349, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1283, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/components.py", line 2586, in postprocess
    file_path = self.audio_to_temp_file(
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/components.py", line 360, in audio_to_temp_file
    temp_dir = Path(dir) / self.hash_bytes(data.tobytes())
                                           ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'tobytes'
DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'date', b'Thu, 16 Nov 2023 09:10:24 GMT'), (b'server', b'uvicorn'), (b'content-length', b'14'), (b'content-type', b'application/json')])
Originally created by @vysecurity on GitHub (Nov 16, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1552 I am getting the following error when trying to use a model I've trained over night: ``` WARNING:infer.modules.vc.modules:Traceback (most recent call last): File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/infer/modules/vc/modules.py", line 186, in vc_single audio_opt = self.pipeline.pipeline( ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'pipeline' Traceback (most recent call last): File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/routes.py", line 437, in run_predict output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1349, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/blocks.py", line 1283, in postprocess_data prediction_value = block.postprocess(prediction_value) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/components.py", line 2586, in postprocess file_path = self.audio_to_temp_file( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xxxx/Downloads/Retrieval-based-Voice-Conversion-WebUI/.venv/lib/python3.11/site-packages/gradio/components.py", line 360, in audio_to_temp_file temp_dir = Path(dir) / self.hash_bytes(data.tobytes()) ^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'tobytes' DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 500, b'Internal Server Error', [(b'date', b'Thu, 16 Nov 2023 09:10:24 GMT'), (b'server', b'uvicorn'), (b'content-length', b'14'), (b'content-type', b'application/json')]) ```
Author
Owner

@Tps-F commented on GitHub (Nov 16, 2023):

Have you loaded the model?
If you can send me all the logs I can help

<!-- gh-comment-id:1814546945 --> @Tps-F commented on GitHub (Nov 16, 2023): Have you loaded the model? If you can send me all the logs I can help
Author
Owner

@vysecurity commented on GitHub (Nov 16, 2023):

There's a few bugs but eventually messing with the settings it worked out!

Now just trying to figure out the M2 Mac issue with realtime voice changer :/

<!-- gh-comment-id:1814667078 --> @vysecurity commented on GitHub (Nov 16, 2023): There's a few bugs but eventually messing with the settings it worked out! Now just trying to figure out the M2 Mac issue with realtime voice changer :/
Author
Owner

@iamzhangyunlu commented on GitHub (Feb 24, 2024):

@vysecurity hi, i met this problem too, can you tell me how to solve this, please?

<!-- gh-comment-id:1962760648 --> @iamzhangyunlu commented on GitHub (Feb 24, 2024): @vysecurity hi, i met this problem too, can you tell me how to solve this, please?
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#1025
No description provided.