Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inpainting output enlarges generations from the top left of selection. Output becomes misaligned with image. #130

Open
jtc-m opened this issue Mar 6, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@jtc-m
Copy link

jtc-m commented Mar 6, 2023

Great plugin so far thank you! I have a small issue with inpainting - When creating inpainting generations the output is always slightly enlarged (anchored from the top left of the marquee selection). This misaligns the output with the rest of the image. It can be manually fixed using transform tool but is there a proper fix?

Screenshot 2023-03-06 121832

@AbdullahAlfaraj AbdullahAlfaraj added the help wanted Extra attention is needed label Mar 6, 2023
@AbdullahAlfaraj
Copy link
Owner

can you list:

  1. the dpi of the document
  2. width and height slider values
  3. width and height of the rectangular marquee selection area

@jtc-m
Copy link
Author

jtc-m commented Mar 6, 2023

  1. Document dimensions are 3400x3000px @ 300DPI
  2. Width and height sliders determined by 'precise' selection mode (665pxx665px)
  3. Marquee selection = (665pxx665px)

'Inpaint at full res' is unselected.

Screenshot 2023-03-06 131618

I am going to experiment a little bit more with different settings and see if I can pin down the cause.

@jtc-m
Copy link
Author

jtc-m commented Mar 6, 2023

  • Able to replicate the same problem when document is set to 72 DPI.
  • When selecting 'Inpaint at full res' the output edges of the marquee selection remain aligned but the masked area is still enlarged from the top left of the selection area.

Screenshot 2023-03-06 135344

@AbdullahAlfaraj
Copy link
Owner

what about when the width and height are multiples of 64?
instead of 665px set both the selection area and the width and height sliders to 640px
otherwise, I think Auto1111 will round the slider values to the nearest multiple of 64 and then will scale the output image to the original size( 665px). which may cause the sliding effect.

@jtc-m
Copy link
Author

jtc-m commented Mar 6, 2023

Just tested with 640x640px and it seems aligned! Yes that seems to be the issue. Is that a limitation of Auto1111? I wonder if there is a way to restrict ratios in the plugin or photoshop to be multiples of 64?

But thank you I will use that workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants