arenasys / qDiffusion

Qt GUI for Stable diffusion
78 stars 5 forks source link

bug: Inpaint with mask and padding -> freeze #24

Closed Derfuu closed 1 year ago

Derfuu commented 1 year ago

When using inpainting with mask and padding (not full image) - GUI freezes, showing "Upscaling" and "Working..." in current state and after this - chashes or keeps working, but without any response to actinos. After closing GUI - python process still hanging with all memory it used.

Img size - 864x1152

Inpaint settings:

GUI 2023-08-03 11:46:29.340816

Traceback (most recent call last):
  File "F:\NeuralNetworks\Apps\qDiffusion\source\parameters.py", line 744, in sync
    closest_match = self.gui.closestModel(value, available) or available[0]
IndexError: list index out of range
arenasys commented 1 year ago

598e45801ae9cf266982faf62bf5da665a994206 should fix that error, but it doesn't match what you described. That error would happen when importing an image while disconnected. May want to check the crash.log again?

Derfuu commented 1 year ago

This Traceback is the only thing that was in the crash log after the freeze. Same actions did not write anything there further. Other tracebacks are far early, so idk certanly what cause this freezes. I'd suggest that this happens only when you first time use inpaint with mask + drawing on an image with SDP attention.

arenasys commented 1 year ago

I cant replicate it. Is it freezing while its working?, or when you interact with the GUI (crashes on first brush stroke, or as soon as pressing generate etc). Also does it crash if using a different Upscaler (like Lanzcos)?

Derfuu commented 1 year ago

Options:

Sampler:

Inpaiting:

Operation:

What have i done:

After start generation it stops on Upscaling and don't show preview or progress on side bar. I can still switching tabs, write prompts, look gallery and refresh models, but when i try to cancel - it don't respond and continiously Working without any progression. If i try to reload server it freezes and after the GUI window closes - python process still works on it without qDiffusion process. Even if i close GUI manually (not throught Task manager) - python process still hanging with nearly full CPU usage (80-90%).

I'd suppose that this bug only appears with only vertical image (and maybie only with this size), because with 1152x864 it works well.

arenasys commented 1 year ago

I've made some tweaks to SR upscaling, could have fixed it.