auto-sd-paint-ext icon indicating copy to clipboard operation
auto-sd-paint-ext copied to clipboard

Memory usage is much worse than in automatic1111 ui

Open TimothyKrell opened this issue 2 years ago • 2 comments

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):

  • OS: Windows
  • WebUI commit revision: ea9bd9fc7409109adcd61b897abc2c8881161256
  • Extension commit revision: 516f70cbc61aa5085ed9fe5e7818fa2976e01fd8

TimothyKrell avatar Feb 20 '23 02:02 TimothyKrell

enable the upscaler

ethanfel avatar Feb 23 '23 09:02 ethanfel

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

Interpause avatar Mar 05 '23 13:03 Interpause