最終更新:2024-11-02 (土) 06:07:37 (529d)
Stable Diffusion web UI/設定
Top / Stable Diffusion web UI / 設定
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Command-Line-Arguments-and-Settings
最適化
デフォルト
Stable Diffusion/サンプラー DPM++ 2M size 512x512 Sampling Steps 20 CFG Scale? 7
測定
- Stable Diffusion web UI 1.10.0?
- version: v1.10.0
- python: 3.10.11
- torch: 2.1.2+cu121
- xformers: 0.0.23.post1
- GeForce RTX 4060 (8GB)
- batch count:5
なし 16s --xformers 12s --xformers --medvram 19s --opt-sdp-attention 12.6s --opt-sdp-no-mem-attention 12.3s
最適化
- 適応無し < xFormers < SDPA
--xformers Enable xformers for cross attention layers.
Use xFormers library. Great improvement to memory consumption and speed.--opt-sdp-attention Enable scaled dot product cross-attention layer optimization; requires PyTorch 2.
May results in faster speeds than using xFormers on some systems but requires more VRAM. (non-deterministic)--opt-sdp-no-mem-attention Enable scaled dot product cross-attention layer optimization without memory efficient attention, makes image generation deterministic; requires PyTorch 2.
May results in faster speeds than using xFormers on some systems but requires more VRAM. (deterministic, slightly slower than --opt-sdp-attention and uses more VRAM) https://itdtm.com/sd-sdpa/

