JasonS09 / comfy_sd_krita_plugin

Make AI art between canvas and nodes with Krita.
MIT License
147 stars 7 forks source link

Inpaint feature generates incorrectly positioned and extended images #46

Open wayupi opened 7 months ago

wayupi commented 7 months ago

Describe the bug When using the Inpaint feature, the generated image extends beyond the selected area, resulting in unnatural inclusion of areas outside the specified region. Additionally, the position of the drawn content is shifted vertically.

To Reproduce Steps to reproduce the behavior:

  1. Create a new layer.
  2. Use a black brush to create a mask on the layer.
  3. Select a portion of the image using the rectangular selection tool.
  4. Enable the Inpaint option in the Generate tab, configure the settings, and click the "Start Generating" button.

Screenshots Before generating: image After generating, attention to the position of the arrows: image When superimposed on the mask, you can see that it is clearly out of alignment: image

Desktop (please complete the following information):