lquesada / ComfyUI-Inpaint-CropAndStitch

ComfyUI nodes to crop before sampling and stitch back after sampling that speed up inpainting
GNU General Public License v3.0
398 stars 23 forks source link

Found a strange situation #19

Closed LAOGOU-666 closed 5 months ago

LAOGOU-666 commented 5 months ago

image Why is the cropped position offset?

lquesada commented 5 months ago

Hi!

From the parameters and the cropped mask, I believe there's some mask pixel set to other than zero at the left side of the mask, which is making the crop node crop around it.

In order to check this, you can open the mask before crop and use gimp or Photoshop to select only the zero (pure black) values. I'm sure you'll see some straggler pixels that aren't exactly 0 by the left of the bottle.

LAOGOU-666 commented 5 months ago

Awsome! Thanks for the inspiration!

image