Image inpainting - Image removal using a mask generated externally #333
swarna-a-26
started this conversation in
General
Replies: 1 comment
-
It may be because your mask is too tight. For inpainting models, you need to dilate the mask slightly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First of all, thank you for the awesome Lama cleaner and sharing the code.
I wanted to remove an object from the image. I installed your code base locally and used your website tool to remove the object using the image inpainting method. It worked great. I downloaded the generated mask for the image. I used the downloaded mask and made code changes to use the mask file as an external input and used the same image and checked. It worked fine and the object was removed. However, I generated another image mask externally using a different tool for the same image and provided that as an input to the inpainting tool. But, that does not clean up the object properly.Attaching the picture, both working and not working image masks. I am not sure what the problem is with the new image mask.
Working mask generated via lama cleaner - hippo_and_other_mask_working.jpg
Mask generated externally that is not working - mask_hippo_ipad_not_working.png
Test image- hippo_and_other.jpeg
Any thoughts why when I use mask_hippo_ipad_not_working.png mask, the object is not removed properly?
Beta Was this translation helpful? Give feedback.
All reactions