Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过修改app_sadtalker.py解决了gradio4带来的问题; 增加Windows下的download模型的脚本 #800

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

2catycm
Copy link

@2catycm 2catycm commented Jan 24, 2024

前者解决了Issue #721 #694 #693 #692
后者可以让Issue #493 更加清晰

因为现在requirements.txt没指定gradio的版本,默认下载的是最新的gradio==4.10.0, 所以那几个issue就报这个问题

改了就没问题了

@nitinmukesh
Copy link

After updating these 2 files, there is new error

venv folder already exists, skipping creation...
venv "venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: <none>
Installing requirements for SadTalker WebUI (may take longer time in first time)
Launching SadTalker Web UI
Traceback (most recent call last):
  File "C:\stable_diffusion\SadTalker\Launcher.py", line 204, in <module>
    start()
  File "C:\stable_diffusion\SadTalker\Launcher.py", line 198, in start
    demo = sadtalker_demo()
  File "C:\stable_diffusion\SadTalker\app_sadtalker.py", line 74, in sadtalker_demo
    gen_video = gr.Video(label="Generated video", format="mp4").style(width=256)
AttributeError: 'Video' object has no attribute 'style'. Did you mean: 'scale'?

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

@decimecano
Copy link

did you fixed it?

@2catycm
Copy link
Author

2catycm commented Mar 6, 2024

After updating these 2 files, there is new error

venv folder already exists, skipping creation...
venv "venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: <none>
Installing requirements for SadTalker WebUI (may take longer time in first time)
Launching SadTalker Web UI
Traceback (most recent call last):
  File "C:\stable_diffusion\SadTalker\Launcher.py", line 204, in <module>
    start()
  File "C:\stable_diffusion\SadTalker\Launcher.py", line 198, in start
    demo = sadtalker_demo()
  File "C:\stable_diffusion\SadTalker\app_sadtalker.py", line 74, in sadtalker_demo
    gen_video = gr.Video(label="Generated video", format="mp4").style(width=256)
AttributeError: 'Video' object has no attribute 'style'. Did you mean: 'scale'?

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

may be you can try

pip install gradio==4.10.0

@nitinmukesh
Copy link

did you fixed it?

Yes
https://youtu.be/p5qPojr3cqA

@zzkhong
Copy link

zzkhong commented Apr 1, 2024

need to add in changes for app_sadtalker.py line 76:

from
gen_video = gr.Video(label="Generated video", format="mp4").style(width=256)

to
gen_video = gr.Video(label="Generated video", format="mp4", width=256)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants