Acly / krita-ai-diffusion

Streamlined interface for generating images with AI in Krita. Inpaint and outpaint with optional text prompt, no tweaking required.
GNU General Public License v3.0
5.8k stars 270 forks source link

1.20.0 Result to active layer freezing Krita. #922

Closed GeminiSquishGames closed 1 week ago

GeminiSquishGames commented 2 weeks ago

I create a new project and start to work on a layer, any layer, then in live mode get a result. If I press the result to active layer nothing happens and Krita stops responding, I've waited a few minutes with no activity. This happens everytime for me. I'm on Krita 5.2.3 latest stable according to website. On Windows 10.

The result to new layer works so I can still use it, however I'm still having trouble with root Merged layer problem after Flattening where it doesn't do anything, but since I cannot get result to active working I have no idea what it would do (ie, deleting the remaining layer without making a new one). This happens with custom comfyui and the automatic setup server. I have uninstalled and reinstalled Krita and the plugin several times and restarted but nothing seems to be solving the issue.

b4zz4 commented 2 weeks ago

Exactly the same in my two computers. OS: GNU/Linux Arch

Acly commented 2 weeks ago

Oh. The code is actually just broken. I tested this quite extensively, but must have done some last minute "clean up".

See https://github.com/Acly/krita-ai-diffusion/commit/260f19ec027ea29901fd88315c0c690f4b5e05da for fix. The idea is that replacing content creates a new layer, and deletes the old one shortly after, so it's "undoable", but at no point there is a document without any layers.

GeminiSquishGames commented 2 weeks ago

You forgot the hamburger buns! () Confirmed it work now. It's kinda odd, I guess since I didn't have a python console in Krita I didn't see any errors and Krita just goes ¯_( ͡° ͜ʖ ͡°)_/¯ ?

Acly commented 1 week ago

Fixed in v1.20.1