GrandaddyShmax / audiocraft_plus

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
561 stars 63 forks source link

AttributeError: 'NoneType' object has no attribute 'set_custom_progress_callback' #66

Open Wu-jiyan opened 10 months ago

Wu-jiyan commented 10 months ago

When I try to use Gradio Client to use this program, it just response: ValueError: None

The console of the program:

Loading model small Traceback (most recent call last): File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\gradio\queueing.py", line 407, in call_prediction output = await route_utils.call_process_api( File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\gradio\route_utils.py", line 226, in call_process_api output = await app.get_blocks().process_api( File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\gradio\blocks.py", line 1550, in process_api result = await self.call_function( File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\gradio\blocks.py", line 1185, in call_function prediction = await anyio.to_thread.run_sync( File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\anyio_backends_asyncio.py", line 2134, in run_sync_in_worker_thread return await future File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\anyio_backends_asyncio.py", line 851, in run result = context.run(func, args) File "E:\ProgramData\Anaconda3\envs\audiocraftplus\lib\site-packages\gradio\utils.py", line 661, in wrapper response = f(args, **kwargs) File "E:\audiocraft_plus\app.py", line 870, in predict_full MODEL.set_custom_progress_callback(_progress) AttributeError: 'NoneType' object has no attribute 'set_custom_progress_callback'

What I've tried: install gradio client version 0.6.0

How can I FIX it, THX