Skip to content

Inpaint feature generates incorrectly positioned and extended images #46

@wayupi

Description

@wayupi

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

  • OS: Windows
  • Comfyui: f9e55d8463da692954d84f51ca354161396fe1b8
  • Extension commit revision: c12af95

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions