OpenTalker / SadTalker

[CVPR 2023] SadTalker:Learning Realistic 3D Motion Coefficients for Stylized Audio-Driven Single Image Talking Face Animation
https://sadtalker.github.io/
Other
11.75k stars 2.19k forks source link

WebUI Install Issue on Windows - Conda and GitClone python app_sadtalker.py run error #765

Open mynumu opened 9 months ago

mynumu commented 9 months ago

hi - im seeing this error when trying to run sadtalker on Windows 10. Tried a conda install and just a standard gitclone of your main repo

Is this an error in the webui launch script??

Thanks

nstalling requirements for SadTalker WebUI (may take longer time in first time) Launching SadTalker Web UI Traceback (most recent call last): File "C:\Users\Sam\AI\SadTalker\Launcher.py", line 204, in start() File "C:\Users\Sam\AI\SadTalker\Launcher.py", line 198, in start demo = sadtalker_demo() File "C:\Users\Sam\AI\SadTalker\app_sadtalker.py", line 35, in sadtalker_demo with gr.Row().style(equal_height=False): AttributeError: 'Row' object has no attribute 'style'

Launch unsuccessful. Exiting. Press any key to continue . . .

trucaliber commented 9 months ago

It's an argument, not a method. I changed with gr.Row().style(equal_height=False): to with gr.Row(equal_height=False):

https://www.gradio.app/guides/controlling-layout

trucaliber commented 9 months ago

I'm now stuck on another error.

Launching SadTalker Web UI Traceback (most recent call last): File "Launcher.py", line 204, in start() File "Launcher.py", line 198, in start demo = sadtalker_demo() File "H:\SadTalker\app_sadtalker.py", line 40, in sadtalker_demo source_image = gr.Image(label="Source image", source="upload", type="filepath", elem_id="img2img_image").style(width=512) File "H:\SadTalker\venv\lib\site-packages\gradio\component_meta.py", line 157, in wrapper return fn(self, **kwargs) TypeError: init() got an unexpected keyword argument 'source'

writeboywrite commented 9 months ago

I had the same issue as mynumu with the webui launch script. I tried the fix trucaliber suggested in the app_sadtalker.py file, and changed with gr.Row().style(equal_height=False): to with gr.Row(equal_height=False):.

That got rid of that specific error when running the WebUI.bat file.

However, it immediately got replaced with a new error, which reads:

Traceback (most recent call last): File "C:\AI\SadTalker\SadTalker\Launcher.py", line 204, in start() File "C:\AI\SadTalker\SadTalker\Launcher.py", line 198, in start demo = sadtalker_demo() File "C:\AI\SadTalker\SadTalker\app_sadtalker.py", line 40, in sadtalker_demo source_image = gr.Image(label="Source image", source="upload", type="filepath", elem_id="img2img_image").style(width=512) File "C:\AI\SadTalker\SadTalker\venv\lib\site-packages\gradio\component_meta.py", line 157, in wrapper return fn(self, **kwargs) TypeError: Image.init() got an unexpected keyword argument 'source'

Launch unsuccessful. Exiting. Press any key to continue . . .

I have no idea how to fix this.

Maybe I need to upgrade or downgrade the Gradio library? Or ... maybe remove or replace the source argument in the Image.init() ???

I'm not sure how to do the latter, so I'm going to start by upgrading the Gradio library and see if that helps. (Update - nope. Upgrading the Gradio library didn't help.)

qipinzheng commented 7 months ago

卸载 pip uninstall gradio

重新安装降级版本 pip install gradio==3.50.2

solai25 commented 2 months ago

卸载 pip uninstall gradio

重新安装降级版本 pip install gradio==3.50.2

this works for me