Interpause / auto-sd-paint-ext

Extension for AUTOMATIC1111 to add custom backend API for Krita Plugin & more
MIT License
477 stars 41 forks source link

Memory usage is much worse than in automatic1111 ui #127

Open TimothyKrell opened 1 year ago

TimothyKrell commented 1 year ago

Describe the bug I get out of memory errors much more easily when using the plugin in Krita vs using the web ui directly. I'm running an RTX 3090. In the web ui, I can run inpaint with 1280 x 896 resolution with a batch size of 4 with no problems. When running in Krita, I can only do an inpaint at resolution of 1280 x 896 with a batch size of 1. When I increase the batch size to 2 I get out of memory errors. This is seems to indicate that this plugin is roughly 4x worse in memory usage than using the web ui, unless I am missing something.

To Reproduce Steps to reproduce the behavior:

  1. inpaint in the web ui with a high batch count and resolution
  2. observe it working
  3. inpaint in Krita with same high batch count and resolution
  4. observe out of memory errors

Screenshots image image image

Desktop (please complete the following information):

ethanfel commented 1 year ago

enable the upscaler

Interpause commented 1 year ago

Did you intend to tick "Tiling mode"? I don't fully know how it works but I think it uses more memory.