SD-WebUI環境建置及模型套件應用
感謝子不語 過去教學文章的分享。
[Nvidia_Only WIN10+] SD-WebUI部屬版本
## Installation and Running
Make sure the required [dependencies](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Dependencies) are met and follow the instructions available for:
- [NVidia](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs) (recommended)
Git安裝
網路上很多完整的教學,找自己看得懂的教學跟著操作,這裡就不說明。
Extension|Animatediff|報錯關鍵字
Error, Traceback, AttributeError, 'NoneType'
*** Error running postprocess: D:\sd_webui_GPU\webui\extensions\sd-webui-animatediff\scripts\animatediff.py
Traceback (most recent call last): File "D:\sd_webui_GPU\webui\modules\scripts.py", line 872, in postprocess script.postprocess(p, processed, *script_args)
File "D:\sd_webui_GPU\webui\extensions\sd-webui-animatediff\scripts\animatediff.py", line 94, in postprocess params.prompt_scheduler.save_infotext_txt(res)
AttributeError: 'NoneType' object has no attribute 'save_infotext_txt'
Copilot除錯|Debug
這些錯誤表明 AnimateDiff 擴展在使用 SDXL 模型時遇到了兼容性問題,以及某些對象未正確初始化。以下是解決方法:

Copilot 除錯建議
解決 Motion Module 兼容性問題
原本報錯使用的模型
Stable Diffusion checkpoint: creapromptLightning_creapromptUltimate6.safetensors
是SDXL模型
Animatediff Motion Module:
加載的是與 SD1.5 模型兼容的 Motion Module( mm_sd_v15_v2.ckpt
)。
兩個模型無法溝通

解方|下載AnimateDiff Motion module for SDXL
AnimatedDiff Motion module的模型容量相對於checkpoint模型容量小許多。
https://civitai.com/models/108836/animatediff-motion-modules

Prompt|Copolit
Here’s an English description for your txt2vid prompt inspired by the iconic "燃燒吧小宇宙" (Burn Your Cosmos) from Saint Seiya:
A heroic warrior clad in shimmering bronze armor, standing amidst a cosmic battlefield. Their body radiates an intense golden aura, as they channel their inner cosmos, igniting a fiery energy that swirls around them like a celestial storm. With a determined gaze, they unleash a powerful attack, sending radiant beams of light and energy waves cascading through the stars, illuminating the vast expanse of space.
生成動畫|燃燒吧,小宇宙!


FPS 4 (耗時15~30分鐘)

FPS8 (耗時30~40分鐘)
參考資料|影音教學
[AI tutorial] animateDiff v3 更新、模型下載與範例教學
總結|生成動畫影片,沒GPU別入坑!
GPU: Nvidia RTX4060 8GB
這一張顯卡在生成圖像,僅"入門款"!