SadTalker icon indicating copy to clipboard operation
SadTalker copied to clipboard

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

Open 2catycm opened this issue 5 months ago • 5 comments

前者解决了Issue https://github.com/OpenTalker/SadTalker/issues/721 https://github.com/OpenTalker/SadTalker/issues/694 https://github.com/OpenTalker/SadTalker/issues/693 https://github.com/OpenTalker/SadTalker/issues/692 后者可以让Issue https://github.com/OpenTalker/SadTalker/issues/493 更加清晰

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

改了就没问题了

2catycm avatar Jan 24 '24 02:01 2catycm

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 . . . 

nitinmukesh avatar Feb 25 '24 14:02 nitinmukesh

did you fixed it?

decimecano avatar Mar 03 '24 22:03 decimecano

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

2catycm avatar Mar 06 '24 09:03 2catycm

did you fixed it?

Yes https://youtu.be/p5qPojr3cqA

nitinmukesh avatar Mar 06 '24 12:03 nitinmukesh

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)

zzkhong avatar Apr 01 '24 15:04 zzkhong