Plachtaa / VALL-E-X

An open source implementation of Microsoft's VALL-E X zero-shot TTS model. Demo is available in https://plachtaa.github.io
MIT License
7.42k stars 747 forks source link

Error when trying to use UI #132

Open baldy-mikey opened 8 months ago

baldy-mikey commented 8 months ago

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

Snezhana92 commented 8 months ago

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'

baldy-mikey commented 8 months ago

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

kumaranjeya commented 8 months ago

Had same issue. Resolved by...

pip uninstall gradio pip install gradio==3.50.2

baldy-mikey commented 8 months ago

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 commented 8 months ago

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

kumaranjeya commented 8 months ago

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

Charlz91108112 commented 7 months ago

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

baldy-mikey commented 7 months ago

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

TGajanan commented 6 months ago

Had same issue. Resolved by...

pip uninstall gradio pip install gradio==3.50.2

Thanks, this works for me

mlo0352 commented 3 months ago

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!