seamless_communication icon indicating copy to clipboard operation
seamless_communication copied to clipboard

How to run demo?

Open comerc opened this issue 1 year ago • 4 comments

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 "/code/seamless_communication/demo/app.py", line 565, in <module>
    input_audio_mic = gr.Audio(
  File "/myvenv/lib/python3.9/site-packages/gradio/component_meta.py", line 152, in wrapper
    return fn(self, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'source'

comerc avatar Nov 22 '23 11:11 comerc

gradio库的 Audio 方法接收了一个无关参数'source', 我试着注释掉了,好像不影响使用

Czj1997-02 avatar Nov 24 '23 08:11 Czj1997-02

replace to sources

comerc avatar Nov 24 '23 17:11 comerc

you can try my project https://github.com/Czj1997-02/SeamlessM4TApp

Czj1997-02 avatar Nov 26 '23 07:11 Czj1997-02

https://github.com/facebookresearch/seamless_communication/issues/218#issuecomment-1825937068

Solved by replacing source to sources on lines 568 & 574 app.py

z0rats avatar Nov 28 '23 12:11 z0rats