SadTalker
SadTalker copied to clipboard
通过修改app_sadtalker.py解决了gradio4带来的问题; 增加Windows下的download模型的脚本
前者解决了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就报这个问题
改了就没问题了
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 . . .
did you fixed it?
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
did you fixed it?
Yes https://youtu.be/p5qPojr3cqA
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)