djbielejeski / a-person-mask-generator

Extension for Automatic1111 and ComfyUI to automatically create masks for Background/Hair/Body/Face/Clothes in Img2Img
MIT License
264 stars 34 forks source link

Re-initialization on image change #11

Closed Mariusvdb closed 10 months ago

Mariusvdb commented 10 months ago

Great addition thank you!

Using the feature with the first image in inpaint always works.

When pasting a new image in inpaint source image the mask preview keeps showing the previous source image mask Work around is to click on "copy image to sketch" button and back to "copy image to inpaint" button will cause mask preview to show the new source image mask again.

To replicate:

it will show the mask correctly

Proposed solution:

djbielejeski commented 10 months ago

The preview is just that, a preview. It will work on the inpaint as the mask gets re-created during image generation. I just can't get the upload/image change event working correctly for the Auto1111 inpaint gradio component to generate the mask for preview.

image