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

Unable to reproduce the dog's head example when using the same example image #67

Open jingwu2121 opened 8 months ago

jingwu2121 commented 8 months ago

Hi there,

Thank you so much for your amazing work. I am trying to play the code with your example images. But it turns out that when I am running sam2groundingdino_edit.py, I use the white dog image, mask_prompt="dog head.", prompt="cute dog", which is exactly the same as the demo posted in the README. It seems that the algorithm is only able to segment the entire dog and edit. I tried several times but got the same segmentation results. What should I do if I only want to edit the dog's head? I didn't modify any piece of code.

Thank you so much for your help!

Screenshot from 2023-11-01 18-51-01 Screenshot from 2023-11-01 18-52-16