KwaiVGI / LivePortrait

Bring portraits to life!
https://liveportrait.github.io
Other
13.15k stars 1.4k forks source link

TypeError: Info() got an unexpected keyword argument 'duration' #24

Closed oisilener1982 closed 4 months ago

oisilener1982 commented 4 months ago

Everything was working fine before the update.

D:\AI\LivePortrait\venv\lib\site-packages\torch\nn\modules\conv.py:605: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ..\aten\src\ATen\native\cudnn\Conv_v8.cpp:919.) return F.conv3d( Animating... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:02 Concatenating result... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 Dump to animations/1111111111111111111--Gradio_3_concat.mp4

Dump to animations/1111111111111111111--Gradio_3.mp4

Traceback (most recent call last): File "D:\AI\LivePortrait\venv\lib\site-packages\gradio\queueing.py", line 532, in process_events response = await route_utils.call_process_api( File "D:\AI\LivePortrait\venv\lib\site-packages\gradio\route_utils.py", line 276, in call_process_api output = await app.get_blocks().process_api( File "D:\AI\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 1928, in process_api result = await self.call_function( File "D:\AI\LivePortrait\venv\lib\site-packages\gradio\blocks.py", line 1514, in call_function prediction = await anyio.to_thread.run_sync( File "D:\AI\LivePortrait\venv\lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "D:\AI\LivePortrait\venv\lib\site-packages\anyio_backends_asyncio.py", line 2177, in run_sync_in_worker_thread return await future File "D:\AI\LivePortrait\venv\lib\site-packages\anyio_backends_asyncio.py", line 859, in run result = context.run(func, args) File "D:\AI\LivePortrait\venv\lib\site-packages\gradio\utils.py", line 832, in wrapper response = f(args, **kwargs) File "D:\AI\LivePortrait\src\gradio_pipeline.py", line 64, in execute_video gr.Info("Run successfully!", duration=2) TypeError: Info() got an unexpected keyword argument 'duration'

zzzweakman commented 4 months ago

Try to install the newer version gradio: pip install gradio==4.36.1

oisilener1982 commented 4 months ago

2 1

D-Mad commented 4 months ago

i fixed it with pip install gradio==4.37.1

oisilener1982 commented 4 months ago

Thank you so much. The issue was fixed with pip install gradio==4.37.1

oisilener1982 commented 4 months ago

pip install gradio==4.37.2 This is the latest and it also works fine

zzzweakman commented 4 months ago

We have updated it in the requirements.txt. Thanks for your correction! @oisilener1982 @D-Mad