facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.18k stars 2.01k forks source link

Using the update method is deprecated. #328

Open rer0dgers opened 8 months ago

rer0dgers commented 8 months ago

I get these errors every time i start a new generation. Does anyone know how to correct it?

H:\Program Files\Python311\Lib\site-packages\gradio\helpers.py:818: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.update(...)
  warnings.warn(

H:\Program Files\Python311\Lib\site-packages\gradio\components\video.py:153: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Video(...)` instead of `return gr.Video.update(...)`.
  warnings.warn(

H:\Program Files\Python311\Lib\site-packages\gradio\components\audio.py:167: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Audio(...)` instead of `return gr.Audio.update(...)`.
  warnings.warn(

Loading model facebook/musicgen-melody

H:\Program Files\Python311\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.") 
typoworx-de commented 4 months ago

Same here. My container crashed while trying to use prompt/gen nearly after finishing.