Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

AttributeError: 'NoneType' object has no attribute 'dtype'

Open SamPro07 opened this issue 1 year ago • 4 comments

C:\Users\Sameer\Downloads\RVC-beta-v2-0528>runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897 Use Language: en_US Running on local URL: http://0.0.0.0:7897 loading weights/Joker_D_2333333.pth Traceback (most recent call last): File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict output = await app.blocks.process_api( File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\blocks.py", line 1006, in process_api result = await self.call_function(fn_index, inputs, iterator, request) File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\runtime\lib\site-packages\gradio\blocks.py", line 847, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\runtime\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\runtime\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\runtime\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\infer-web.py", line 405, in get_vc tgt_sr = cpt["config"][-1] KeyError: 'config' Traceback (most recent call last): File "C:\Users\Sameer\Downloads\RVC-beta-v2-0528\infer-web.py", line 184, in vc_single audio_opt = vc.pipeline( NameError: name 'vc' is not defined

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

crepe harvest or pm don't work

SamPro07 avatar Jun 07 '23 16:06 SamPro07

Is weights/Joker_D_2333333.pth a 60MB+ file?

RVC-Boss avatar Jun 08 '23 02:06 RVC-Boss

Same error, I think there is something wrong with the newest version webui when training models, I have tried v1 and v2 models, both have the same error when using them, I am pretty sure that I use the right 60M model.

nonametao avatar Jun 10 '23 05:06 nonametao

It may alse because nof0model+protect. Try protect=0.5? (This issue is fixed in 0618version.)

RVC-Boss avatar Jun 18 '23 10:06 RVC-Boss

I fixed the issue. You need to add ".wav" to the end of your file (if wav) EXAMPLE: \instrument_Balling song.mp3_10.wav <-- add wav to end of directory NOT rename. If mp3 do ".mp3" etc etc

Rainbowgunsh avatar Jul 10 '23 04:07 Rainbowgunsh

any suggestion for this issue ??

skywalker454 avatar Jul 21 '23 11:07 skywalker454

Downloaded the new 0618 version but the issue is still there. @RVC-Boss

And i checked other models found on internet to see if it was a bad train on my end. but the error still remains

Nima0mr avatar Jul 25 '23 14:07 Nima0mr

temporary solution-

rerun python infer-web.py until it works. there will still be this error but the output will be shown. For me, 1 in 4 rerun works.

HardikJain02 avatar Jul 26 '23 17:07 HardikJain02

Hello HardikJain02, may I ask you about how do I do that? It would be a pleasure if you could help me with this, thanks.

rayehan1123 avatar Jul 27 '23 15:07 rayehan1123

Hello HardikJain02, may I ask you about how do I do that? It would be a pleasure if you could help me with this, thanks.

In the terminal, you have to run python infer-web.py or go-web.bat. Now on WebUI when you click on the training button, if there's no expected output then repeat the whole process. It's just like nagging with your tv remote when the battery cells are down.

HardikJain02 avatar Jul 27 '23 16:07 HardikJain02

Thanks for replying, I'm going to try this several times. Thanks a lot!

rayehan1123 avatar Jul 27 '23 16:07 rayehan1123

Same error, attempting to convert a file with a model (tested downloaded model and model trained myself). Note that in both cases the models didnt actually reach 60mb. Both hovered around 50mb with 160 epochs.

profole avatar Aug 01 '23 17:08 profole

Solved it, in my case this was the issue (index version didnt match) https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/763#issuecomment-1637003821

profole avatar Aug 01 '23 17:08 profole

It might be a GPU error? I had exact same issue with my GTX 980 Ti 6gb, problem gone with my RTX 4070 12gb

Hellzicke avatar Aug 04 '23 12:08 Hellzicke

im having the same problem, any idea?

GH0STSecurity avatar Oct 27 '23 14:10 GH0STSecurity

Hello, the same problem started today for me today out of nowhere. If I use the cpu everything is fine, but when I attempt to use my nvidia rtx 3070 gpu then it goes crazy with this error. I'm using RVC1006Nvidia. Is there anything I can try? Thanks. It worked fine until yesterday and I changed absolutely nothing on my system.

GianlucaApollaro avatar Feb 10 '24 18:02 GianlucaApollaro

我解决了这个问题。您需要将“.wav”添加到文件末尾(如果是 wav)示例:\instrument_Balling Song.mp3_10.wav <-- 将 wav 添加到目录末尾而不是重命名。如果 mp3 做“.mp3”等

非常感谢

WangYongYangDSB avatar Mar 05 '24 13:03 WangYongYangDSB

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

github-actions[bot] avatar Apr 28 '24 04:04 github-actions[bot]

我修复了这个问题。您需要在文件末尾添加“.wav”(如果是 wav)示例:\instrument_Balling song.mp3_10.wav <-- 将 wav 添加到目录末尾,而不是重命名。如果是 mp3,请添加“.mp3”等等

不是这个问题,前面用的好好的,突然就跳出这个问题,然后就一直不行了

grayleeeeee avatar Jul 14 '24 03:07 grayleeeeee