sail-sg / EditAnything

Edit anything in images powered by segment-anything, ControlNet, StableDiffusion, etc. (ACM MM)
Apache License 2.0
3.23k stars 179 forks source link

why should generate the mask again? #66

Closed zengjie617789 closed 8 months ago

zengjie617789 commented 8 months ago

when the first click, we can get a mask with green color, but when check the details of code, i found it generate a mask again, what's the reason? edit_lora.py line775

            full_segmask, detected_map = self.get_sam_control(
                resize_image(input_image, detect_resolution)
            )
zengjie617789 commented 8 months ago

because it should generate all masks and annotate each respectively then combined with white-black mask as input to controlnet.