VALL-E-X icon indicating copy to clipboard operation
VALL-E-X copied to clipboard

Error when trying to use UI

Open baldy-mikey opened this issue 1 year ago • 10 comments

Heya, sorry to bother you. I follow the instructions, but always get stuck when launching UI

I get this error.

I hope you can help?

component_meta.py", line 146, in wrapper return fn(self, **kwargs) TypeError: Audio.init() got an unexpected keyword argument 'source'

Rgds Mike

This is running python 3.10.13

baldy-mikey avatar Nov 01 '23 10:11 baldy-mikey

I have the same error, please help

C:\Users\profi\anaconda3\envs\valle\lib\site-packages\torch\nn\utils\weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") Traceback (most recent call last): File "c:\ai\VALL-E-X\launch-ui.py", line 629, in main() File "c:\ai\VALL-E-X\launch-ui.py", line 528, in main upload_audio_prompt = gr.Audio(label='uploaded audio prompt', source='upload', interactive=True) File "C:\Users\profi\anaconda3\envs\valle\lib\site-packages\gradio\component_meta.py", line 146, in wrapper return fn(self, **kwargs) TypeError: Audio.init() got an unexpected keyword argument 'source'

Snezhana92 avatar Nov 01 '23 17:11 Snezhana92

I have the same error, please help

C:\Users\profi\anaconda3\envs\valle\lib\site-packages\torch\nn\utils\weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") Traceback (most recent call last): File "c:\ai\VALL-E-X\launch-ui.py", line 629, in main() File "c:\ai\VALL-E-X\launch-ui.py", line 528, in main upload_audio_prompt = gr.Audio(label='uploaded audio prompt', source='upload', interactive=True) File "C:\Users\profi\anaconda3\envs\valle\lib\site-packages\gradio\component_meta.py", line 146, in wrapper return fn(self, **kwargs) TypeError: Audio.init() got an unexpected keyword argument 'source'

I managed to solve and by accident.. i did these installs which solved it for me. pip install chardet pip install numpy==1.24

EDIT i spoke to soon ... now at this error .. launch-ui.py", line 233, in infer_from_audio sr, wav_pr = audio_prompt ^^^^^^^^^^ TypeError: cannot unpack non-iterable NoneType object

baldy-mikey avatar Nov 01 '23 21:11 baldy-mikey

Had same issue. Resolved by...

pip uninstall gradio pip install gradio==3.50.2

kumaranjeya avatar Nov 02 '23 02:11 kumaranjeya

i've uninstalled gradio and reinstalled as per above and getting this issue:

site-packages\torch\serialization.py", line 447, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Any help, would be fantastic Rgds Mike

baldy-mikey avatar Nov 06 '23 13:11 baldy-mikey

I have the same error, please help

C:\Users\profi\anaconda3\envs\valle\lib\site-packages\torch\nn\utils\weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm. warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.") Traceback (most recent call last): File "c:\ai\VALL-E-X\launch-ui.py", line 629, in main() File "c:\ai\VALL-E-X\launch-ui.py", line 528, in main upload_audio_prompt = gr.Audio(label='uploaded audio prompt', source='upload', interactive=True) File "C:\Users\profi\anaconda3\envs\valle\lib\site-packages\gradio\component_meta.py", line 146, in wrapper return fn(self, **kwargs) TypeError: Audio.init() got an unexpected keyword argument 'source'

did you manage to fix it? I'm still struggling

baldy-mikey avatar Nov 06 '23 13:11 baldy-mikey

i've uninstalled gradio and reinstalled as per above and getting this issue:

site-packages\torch\serialization.py", line 447, in init super().init(torch._C.PyTorchFileReader(name_or_buffer)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Any help, would be fantastic Rgds Mike

I think your Torch installation is corrupted. Try..

pip uninstall torch pip install torch

kumaranjeya avatar Nov 07 '23 06:11 kumaranjeya

Hello everyone, I was able to solve this issue by following the solution by @kumaranjeya . Thank you for the fix.

Had same issue. Resolved by...

pip uninstall gradio pip install gradio==3.50.2

Charlz91108112 avatar Dec 05 '23 19:12 Charlz91108112

I ended up having to create absolute paths for the json in the generate.py file. And also manually downloading the file and changing the checkpoints part, as it was always trying to download them even though i had already done it ... a bit of a pain, but got it working

baldy-mikey avatar Dec 06 '23 08:12 baldy-mikey

Had same issue. Resolved by...

pip uninstall gradio pip install gradio==3.50.2

Thanks, this works for me

TGajanan avatar Dec 14 '23 06:12 TGajanan

Had same issue. Resolved by...

pip uninstall gradio pip install gradio==3.50.2

I was having the same issue as OP when trying to run suno-ai bark, and this solved it. Thanks!

mlo0352 avatar Apr 07 '24 02:04 mlo0352