advimman / lama

🦙 LaMa Image Inpainting, Resolution-robust Large Mask Inpainting with Fourier Convolutions, WACV 2022
https://advimman.github.io/lama-project/
Apache License 2.0
7.91k stars 838 forks source link

Inpaint a NEW thing? #311

Open csyhping opened 5 months ago

csyhping commented 5 months ago

Hi @windj007 , @AK391 , thanks for your excellent work. When I tried lama, I expected the chair to be removed in the output, but it seems it painted a new chair. Would you happen to have any idea how to solve this? Is it because my mask is too specified?

I've attached my input, mask, and output. I'd appreciate it a lot if you could help.

input 23

mask 23_mask

output 23_mask

csyhping commented 5 months ago

Update: Yeah, I tried with a coarse mask, and it worked well, so it seems the mask matters. Could you please give me a hint on how I should create a satisfactory mask (how accurate it should be like)?

chl916185 commented 4 months ago

This data is amazing, I tried it, and the output is the same as your output @csyhping

jiaxue-ai commented 4 months ago

Is it because you still have some color remaining around the edges of your masked boundary? I have noticed a similar issue, and I found that applying dilation to the mask effectively resolves it by removing the residual colors.