AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.4k stars 26.72k forks source link

[Bug]: incredibly slow gen times compared to comfyui #12109

Closed yesbroc closed 1 year ago

yesbroc commented 1 year ago

Is there an existing issue for this?

What happened?

comfy ui: ~260seconds 1024 1:1 20 steps a1111: 3600 seconds 1024 1:1 20 steps

Steps to reproduce the problem

N/A

What should have happened?

N/A

Version or Commit where the problem happens

version: v1.4.1-201-g14cf434b

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

Cross attention optimization

xformers

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--xformers --lowvram --always-batch-cond-uncond --api --opt-split-attention-v1

List of extensions

PBRemTools | https://github.com/mattyamonaca/PBRemTools.git | main | d0fee2a8 | Thu Jun 29 14:08:23 2023 | unknown
SD-CN-Animation | https://github.com/volotat/SD-CN-Animation.git | main | 2e257bbf | Tue May 30 16:49:03 2023 | unknown
a1111-sd-webui-lycoris | https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris.git | main | 8e97bf54 | Sun Jul 9 07:44:58 2023 | unknown
a1111-stable-diffusion-webui-vram-estimator | https://github.com/space-nuko/a1111-stable-diffusion-webui-vram-estimator.git | master | 8ecde47f | Tue Jun 13 01:35:05 2023 | unknown
clip-interrogator-ext | https://github.com/pharmapsychotic/clip-interrogator-ext.git | main | c0bf9005 | Tue Jun 27 19:06:31 2023 | unknown
depth-image-io-for-SDWebui | https://github.com/AnonymousCervine/depth-image-io-for-SDWebui.git | main | eb22863d | Sat Feb 4 06:52:38 2023 | unknown
depthmap2mask | https://github.com/Extraltodeus/depthmap2mask.git | main | 377e9224 | Thu Apr 13 04:10:08 2023 | unknown
infinite-zoom-automatic1111-webui | https://github.com/v8hid/infinite-zoom-automatic1111-webui.git | main | 1139764b | Wed May 3 17:08:52 2023 | unknown
openOutpaint-webUI-extension | https://github.com/zero01101/openOutpaint-webUI-extension.git | main | 128508fa | Sat Jul 22 16:01:39 2023 | unknown
openpose-editor | https://github.com/fkunn1326/openpose-editor.git | master | 722bca6f | Sat Jun 3 04:54:52 2023 | unknown
sd-dynamic-thresholding | https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git | master | 27700fdd | Mon Jul 17 02:11:02 2023 | unknown
sd-extension-steps-animation | https://github.com/vladmandic/sd-extension-steps-animation.git | main | acac7f16 | Fri Jun 30 03:49:37 2023 | unknown
sd-webui-3d-open-pose-editor | https://github.com/nonnonstop/sd-webui-3d-open-pose-editor.git | main | f2d5aac5 | Sat Apr 15 13:21:06 2023 | unknown
sd-webui-aspect-ratio-helper | https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git | main | 99fcf9b0 | Sun Jun 4 15:39:07 2023 | unknown
sd-webui-controlnet | https://github.com/Mikubill/sd-webui-controlnet.git | main | efda6ddf | Wed Jul 26 15:59:47 2023 | unknown
sd-webui-infinite-image-browsing | https://github.com/zanllp/sd-webui-infinite-image-browsing.git | main | f1321047 | Thu Jul 27 13:00:31 2023 | unknown
sd-webui-inpaint-anything | https://github.com/Uminosachi/sd-webui-inpaint-anything.git | main | fdd855f9 | Mon Jul 24 07:31:02 2023 | unknown
sd-webui-llul | https://github.com/hnmr293/sd-webui-llul.git | master | aa47b3ee | Thu May 4 16:14:34 2023 | unknown
sd-webui-model-converter | https://github.com/Akegarasu/sd-webui-model-converter.git | main | 9ab009e2 | Wed Jul 26 09:29:24 2023 | unknown
sd-webui-openpose-editor | https://github.com/huchenlei/sd-webui-openpose-editor.git | main | d352f29e | Sat Jul 22 21:15:12 2023 | unknown
sd-webui-roop | https://github.com/s0md3v/sd-webui-roop.git | main | e6333fbe | Fri Jul 7 09:22:59 2023 | unknown
sd-webui-segment-anything | https://github.com/continue-revolution/sd-webui-segment-anything.git | master | 5df716be | Wed Jul 26 23:06:35 2023 | unknown
sd-webui-stablesr | https://github.com/pkuliyi2015/sd-webui-stablesr.git | master | 4499d796 | Sat Jul 1 16:38:32 2023 | unknown
sd_dreambooth_extension | https://github.com/d8ahazard/sd_dreambooth_extension.git | main | c2a5617c | Sat Jul 8 13:35:47 2023 | unknown
stable-diffusion-webui-Prompt_Generator | https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator.git | master | 31ec0833 | Mon May 8 11:29:45 2023 | unknown
stable-diffusion-webui-cafe-aesthetic | https://github.com/p1atdev/stable-diffusion-webui-cafe-aesthetic.git | main | d1c7ee84 | Sun Mar 26 13:36:41 2023 | unknown
stable-diffusion-webui-distributed | https://github.com/papuSpartan/stable-diffusion-webui-distributed.git | master | 2251f613 | Thu Jun 29 00:35:10 2023 | unknown
stable-diffusion-webui-eyemask | https://github.com/ilian6806/stable-diffusion-webui-eyemask.git | master | 7b803a43 | Fri Jun 2 11:15:19 2023 | unknown
stable-diffusion-webui-inspiration | https://github.com/yfszzx/stable-diffusion-webui-inspiration.git | main | 0f3f699d | Fri Dec 9 03:50:47 2022 | unknown
stable-diffusion-webui-rembg | https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git | master | 3d9eedbb | Sun Jun 4 13:35:24 2023 | unknown
stable-diffusion-webui-state | https://github.com/ilian6806/stable-diffusion-webui-state.git | main | f2bb3809 | Thu Jul 20 06:12:49 2023 | unknown
stable-diffusion-webui-two-shot | https://github.com/ashen-sensored/stable-diffusion-webui-two-shot.git | main | 6b55dd52 | Sun Apr 2 11:24:25 2023 | unknown
ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | master | c99f382b | Tue Jun 13 04:29:35 2023 | unknown
LDSR | built-in | None |   | Thu Jul 27 16:39:40 2023 |  
Lora | built-in | None |   | Thu Jul 27 16:39:40 2023 |  
ScuNET | built-in | None |   | Thu Jul 27 16:39:40 2023 |  
SwinIR | built-in | None |   | Thu Jul 27 16:39:40 2023 |  
canvas-zoom-and-pan | built-in | None |   | Thu Jul 27 16:39:40 2023 |  
extra-options-section | built-in | None |   | Thu Jul 27 16:39:40 2023 |  
prompt-bracket-checker

<!--EndFragment-->
</body>
</html>Extension    URL Branch  Version Date    Update
PBRemTools  https://github.com/mattyamonaca/PBRemTools.git  main    [d0fee2a8](https://github.com/mattyamonaca/PBRemTools/commit/d0fee2a81dd4b656002873493bc27a5312df2187)  Thu Jun 29 14:08:23 2023    unknown
SD-CN-Animation https://github.com/volotat/SD-CN-Animation.git  main    [2e257bbf](https://github.com/volotat/SD-CN-Animation/commit/2e257bbfc3b76fb1323f7b22f820981c1b9f56b2)  Tue May 30 16:49:03 2023    unknown
a1111-sd-webui-lycoris  https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris.git    main    [8e97bf54](https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris/commit/8e97bf54867c25d00fc480be1ab4dae5399b35ef)    Sun Jul 9 07:44:58 2023 unknown
a1111-stable-diffusion-webui-vram-estimator https://github.com/space-nuko/a1111-stable-diffusion-webui-vram-estimator.git   master  [8ecde47f](https://github.com/space-nuko/a1111-stable-diffusion-webui-vram-estimator/commit/8ecde47f7aac1304058ab5af09702b703191c5f6)   Tue Jun 13 01:35:05 2023    unknown
clip-interrogator-ext   https://github.com/pharmapsychotic/clip-interrogator-ext.git    main    [c0bf9005](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/c0bf90052a14a104b2dbfd9b7e7818aae5ca5ae1)    Tue Jun 27 19:06:31 2023    unknown
depth-image-io-for-SDWebui  https://github.com/AnonymousCervine/depth-image-io-for-SDWebui.git  main    [eb22863d](https://github.com/AnonymousCervine/depth-image-io-for-SDWebui/commit/eb22863da52f3cd10d28087b43870f1419178d4c)  Sat Feb 4 06:52:38 2023 unknown
depthmap2mask   https://github.com/Extraltodeus/depthmap2mask.git   main    [377e9224](https://github.com/Extraltodeus/depthmap2mask/commit/377e9224dbdb169ede588a6d447ca886aab67140)   Thu Apr 13 04:10:08 2023    unknown
infinite-zoom-automatic1111-webui   https://github.com/v8hid/infinite-zoom-automatic1111-webui.git  main    [1139764b](https://github.com/v8hid/infinite-zoom-automatic1111-webui/commit/1139764bf715d848dc5b8b4c8d95e2e734c7e4eb)  Wed May 3 17:08:52 2023 unknown
openOutpaint-webUI-extension    https://github.com/zero01101/openOutpaint-webUI-extension.git   main    [128508fa](https://github.com/zero01101/openOutpaint-webUI-extension/commit/128508fa066eef0f03660f9f487ac117b9efce22)   Sat Jul 22 16:01:39 2023    unknown
openpose-editor https://github.com/fkunn1326/openpose-editor.git    master  [722bca6f](https://github.com/fkunn1326/openpose-editor/commit/722bca6fb9b062815d13b950e7040589abaec797)    Sat Jun 3 04:54:52 2023 unknown
sd-dynamic-thresholding https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git master  [27700fdd](https://github.com/mcmonkeyprojects/sd-dynamic-thresholding/commit/27700fddf866e0f0e1f13e9fb4a1dead326d43d3) Mon Jul 17 02:11:02 2023    unknown
sd-extension-steps-animation    https://github.com/vladmandic/sd-extension-steps-animation.git  main    [acac7f16](https://github.com/vladmandic/sd-extension-steps-animation/commit/acac7f166d5613ebfddac4c0a286ba2e5f7f29d1)  Fri Jun 30 03:49:37 2023    unknown
sd-webui-3d-open-pose-editor    https://github.com/nonnonstop/sd-webui-3d-open-pose-editor.git  main    [f2d5aac5](https://github.com/nonnonstop/sd-webui-3d-open-pose-editor/commit/f2d5aac51d891bc5f266b1549f3cf4495fc52160)  Sat Apr 15 13:21:06 2023    unknown
sd-webui-aspect-ratio-helper    https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git  main    [99fcf9b0](https://github.com/thomasasfk/sd-webui-aspect-ratio-helper/commit/99fcf9b0a4e3f8c8cac07b12d17b66f12297b828)  Sun Jun 4 15:39:07 2023 unknown
sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet.git main    [efda6ddf](https://github.com/Mikubill/sd-webui-controlnet/commit/efda6ddfd82ebafc6e1150fbb7e1f27163482a82) Wed Jul 26 15:59:47 2023    unknown
sd-webui-infinite-image-browsing    https://github.com/zanllp/sd-webui-infinite-image-browsing.git  main    [f1321047](https://github.com/zanllp/sd-webui-infinite-image-browsing/commit/f13210470e032a5ad001ecf3572e7536468592a9)  Thu Jul 27 13:00:31 2023    unknown
sd-webui-inpaint-anything   https://github.com/Uminosachi/sd-webui-inpaint-anything.git main    [fdd855f9](https://github.com/Uminosachi/sd-webui-inpaint-anything/commit/fdd855f9e2c18f686ba7353f8eed49a8ba9b1bd6) Mon Jul 24 07:31:02 2023    unknown
sd-webui-llul   https://github.com/hnmr293/sd-webui-llul.git    master  [aa47b3ee](https://github.com/hnmr293/sd-webui-llul/commit/aa47b3eeb45c53f0d6ccaae59abf36e8ed6731f5)    Thu May 4 16:14:34 2023 unknown
sd-webui-model-converter    https://github.com/Akegarasu/sd-webui-model-converter.git   main    [9ab009e2](https://github.com/Akegarasu/sd-webui-model-converter/commit/9ab009e2b2553ef657f3d31100f23fc5df4a5837)   Wed Jul 26 09:29:24 2023    unknown
sd-webui-openpose-editor    https://github.com/huchenlei/sd-webui-openpose-editor.git   main    [d352f29e](https://github.com/huchenlei/sd-webui-openpose-editor/commit/d352f29edf71e88ae7ffc89a650bdfa169f2c8ab)   Sat Jul 22 21:15:12 2023    unknown
sd-webui-roop   https://github.com/s0md3v/sd-webui-roop.git main    [e6333fbe](https://github.com/s0md3v/sd-webui-roop/commit/e6333fbe5a0f3e6a515852388151f1db2315c45d) Fri Jul 7 09:22:59 2023 unknown
sd-webui-segment-anything   https://github.com/continue-revolution/sd-webui-segment-anything.git    master  [5df716be](https://github.com/continue-revolution/sd-webui-segment-anything/commit/5df716be8445e0f358f6e8d4b65a87cc611bfe08)    Wed Jul 26 23:06:35 2023    unknown
sd-webui-stablesr   https://github.com/pkuliyi2015/sd-webui-stablesr.git    master  [4499d796](https://github.com/pkuliyi2015/sd-webui-stablesr/commit/4499d79649e54ca27b196e8e55a65d2a64a1b75c)    Sat Jul 1 16:38:32 2023 unknown
sd_dreambooth_extension https://github.com/d8ahazard/sd_dreambooth_extension.git    main    [c2a5617c](https://github.com/d8ahazard/sd_dreambooth_extension/commit/c2a5617c587b812b5a408143ddfb18fc49234edf)    Sat Jul 8 13:35:47 2023 unknown
stable-diffusion-webui-Prompt_Generator https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator.git  master  [31ec0833](https://github.com/imrayya/stable-diffusion-webui-Prompt_Generator/commit/31ec08338b2224432304fb90c459efc9b43a52b3)  Mon May 8 11:29:45 2023 unknown
stable-diffusion-webui-cafe-aesthetic   https://github.com/p1atdev/stable-diffusion-webui-cafe-aesthetic.git    main    [d1c7ee84](https://github.com/p1atdev/stable-diffusion-webui-cafe-aesthetic/commit/d1c7ee842736f9d9cc6564c2c92a5bff54d19e26)    Sun Mar 26 13:36:41 2023    unknown
stable-diffusion-webui-distributed  https://github.com/papuSpartan/stable-diffusion-webui-distributed.git   master  [2251f613](https://github.com/papuSpartan/stable-diffusion-webui-distributed/commit/2251f613f68bac4c60895821bc55278fb4ce0d54)   Thu Jun 29 00:35:10 2023    unknown
stable-diffusion-webui-eyemask  https://github.com/ilian6806/stable-diffusion-webui-eyemask.git master  [7b803a43](https://github.com/ilian6806/stable-diffusion-webui-eyemask/commit/7b803a438f02b381903916b65cc5b15c98e3231c) Fri Jun 2 11:15:19 2023 unknown
stable-diffusion-webui-inspiration  https://github.com/yfszzx/stable-diffusion-webui-inspiration.git    main    [0f3f699d](https://github.com/yfszzx/stable-diffusion-webui-inspiration/commit/0f3f699decfadcf88d7483d214877fbf96f1f488)    Fri Dec 9 03:50:47 2022 unknown
stable-diffusion-webui-rembg    https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git   master  [3d9eedbb](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/commit/3d9eedbbf0d585207f97d5b21e42f32c0042df70)   Sun Jun 4 13:35:24 2023 unknown
stable-diffusion-webui-state    https://github.com/ilian6806/stable-diffusion-webui-state.git   main    [f2bb3809](https://github.com/ilian6806/stable-diffusion-webui-state/commit/f2bb3809aa61b814aff5808382560f4803d1b132)   Thu Jul 20 06:12:49 2023    unknown
stable-diffusion-webui-two-shot https://github.com/ashen-sensored/stable-diffusion-webui-two-shot.git   main    [6b55dd52](https://github.com/ashen-sensored/stable-diffusion-webui-two-shot/commit/6b55dd5248fd07f55ffefbf9be369b439b239502)   Sun Apr 2 11:24:25 2023 unknown
ultimate-upscale-for-automatic1111  https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git  master  [c99f382b](https://github.com/Coyote-A/ultimate-upscale-for-automatic1111/commit/c99f382b31509b87b4d512e70e9caf08ae7a079f)  Tue Jun 13 04:29:35 2023    unknown
LDSR    [built-in](http://127.0.0.1:7860/)  None        Thu Jul 27 16:39:40 2023    
Lora    [built-in](http://127.0.0.1:7860/)  None        Thu Jul 27 16:39:40 2023    
ScuNET  [built-in](http://127.0.0.1:7860/)  None        Thu Jul 27 16:39:40 2023    
SwinIR  [built-in](http://127.0.0.1:7860/)  None        Thu Jul 27 16:39:40 2023    
canvas-zoom-and-pan [built-in](http://127.0.0.1:7860/)  None        Thu Jul 27 16:39:40 2023    
extra-options-section   [built-in](http://127.0.0.1:7860/)  None        Thu Jul 27 16:39:40 2023    
prompt-bracket-checker```

### Console logs

```Shell
N/A

Additional information

i have an rtx 3050 ti (mobile 4gb), unfortunate ofc. still dk why the speed difference is so huge

dhwz commented 1 year ago
ClashSAN commented 1 year ago

I am getting 3min 2 sec for Euler A, 20steps

1024x1024 (3050) Drivers are Pre-vram offload update. --always-batch-cond-uncond is slowing it down, --opt-split-attention-v1 produces slightly larger images but is slightly slower.

I use --lowvram --opt-sdp-no-mem-attention

yesbroc commented 1 year ago

anyway to use the refiner without any fancy extensions?

ClashSAN commented 1 year ago

depends if auto wants to support it in the main repo. He said earlier someone could make an extension, and sd-webui-refiner works with one click ~6gb needed for now

ClashSAN commented 1 year ago

BTW enable your pagefile and use the updated sdxl model, to run vae in fp16