Mangio621 / Mangio-RVC-Fork

*CREPE+HYBRID TRAINING* A very experimental fork of the Retrieval-based-Voice-Conversion-WebUI repo that incorporates a variety of other f0 methods, along with a hybrid f0 nanmedian method.
MIT License
931 stars 207 forks source link

A lot of bugs, Dear Developers please fix this bugs, I hope u will #181

Open Juranik opened 6 months ago

Juranik commented 6 months ago

It does not process and returns an error all the time, but it works every other time

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\routes.py", line 437, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\blocks.py", line 1349, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\blocks.py", line 1283, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\components.py", line 2586, in postprocess
    file_path = self.audio_to_temp_file(
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\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'

And so literally with all extensions that: wav, mp3, m4a

I can't even use the API properly from this, because it's incomprehensible, I wanted to connect it to my Bot, I clearly indicated the path to the folder where the audio file was saved, but no, it always gives an error

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\routes.py", line 437, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\blocks.py", line 1349, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\blocks.py", line 1283, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\site-packages\gradio\components.py", line 2586, in postprocess
    file_path = self.audio_to_temp_file(
  File "C:\Users\Administrator\Desktop\Mangio-RVC-Fork\venv\lib\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'