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.59k stars 2.16k forks source link

AttributeError: 'Row' object has no attribute 'style' #853

Open DevLenn opened 5 months ago

DevLenn commented 5 months ago

I get the following error by running the webui.bat in anaconda on windows:

Installing requirements for SadTalker WebUI (may take longer time in first time) 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 "D:\Podcast\ai-video\SadTalker\app_sadtalker.py", line 35, in sadtalker_demo with gr.Row().style(equal_height=False): AttributeError: 'Row' object has no attribute 'style'

IamTalos commented 5 months ago

Same error, any luck?

DevLenn commented 5 months ago

@IamTalos nope

FMaz008 commented 5 months ago

I submitted a pull request fixing those issues: https://github.com/OpenTalker/SadTalker/pull/857

Zaosusu commented 5 months ago

try :pip install gradio==3.50.0

ermaccw commented 4 months ago

fix gr.Row().style(equal_height=False): to gr.Row(equal_height=False):

Juranik commented 4 months ago

I fixed this error, let me show u, look:

  1. venv\Scripts\activate
  2. pip install gradio==3.46.1
  3. in change code: gr.Row().style(equal_height=False): >> gr.Row(equal_height=False):
  4. python launcher.py Congrats!
X-Airlines commented 2 months ago

4. python launcher.py

Traceback (most recent call last): File "C:\Users\acikg\Desktop\SadTalker\launcher.py", line 204, in start() File "C:\Users\acikg\Desktop\SadTalker\launcher.py", line 198, in start demo = sadtalker_demo() File "C:\Users\acikg\Desktop\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:\Users\acikg\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\component_meta.py", line 163, in wrapper return fn(self, **kwargs) TypeError: Image.init() got an unexpected keyword argument 'source'

Explorographer commented 2 months ago

Made those changes and same error here.

FMaz008 commented 2 months ago

Guys, look at the changes in my PR above and reproduce these.

Explorographer commented 2 months ago

What?!

FMaz008 commented 2 months ago

What?!

https://github.com/OpenTalker/SadTalker/pull/857

More specifically: https://github.com/OpenTalker/SadTalker/pull/857/commits/a84ff25ec16152af13c12f18ae2a68341ee2d582

HebatullahHesham commented 1 month ago

Please How to use SadTalker gradio WebUI on kaggle notebook by connecting it with Ngrok?

Please, I need help. Here is the code I run on cells for using SadTalker on Kaggle that doesn't lead me to use the WebUI:

  1. !git clone https://github.com/vinthony/SadTalker.git
  2. %cd SadTalker
  3. !pip install -r requirements.txt
  4. !bash scripts/download_models.sh
  5. !bash webui.sh

It always appears to be the same issue again and again, even if I try to install, upgrade, or downgrade a specific Gradio version.

File "app_sadtalker.py", line 35, in sadtalker_demo with gr.Row().style(equal_height=False): AttributeError: 'Row' object has no attribute 'style'

I have solved this issue on my local device by installing the required Python version, which was 3.10.6, uninstalling other versions on my device, and making sure to delete the remaining corrupted files from the older version so it can be fixed if there is a conflict with the other version.

I really appreciate your help because I have asked ChatGPT, and it was absolutely dumb.