MarcoForte / FBA_Matting

Official repository for the paper F, B, Alpha Matting
MIT License
464 stars 95 forks source link

Pyramid Laplacian loss #12

Closed yucornetto closed 4 years ago

yucornetto commented 4 years ago

Thanks for the great work! Your results are really impressive. I noticed that you suggested using laplacian loss for training. May I ask for the implementation details of it?

MarcoForte commented 4 years ago

Thanks! Here's the laplacian loss, https://gist.github.com/MarcoForte/a07c40a2b721739bb5c5987671aa5270 I based it off of this https://gist.github.com/alper111/b9c6d80e2dba1ee0bfac15eb7dad09c8 but I modified the code to support masking.

yucornetto commented 4 years ago

Thanks! That's very helpful

MarcoForte commented 4 years ago

I also want to add that the original code only worked for square images but my version works for rectangular ones also.

bluesky314 commented 4 years ago

@MarcoForte What do you mean by 'masking' in your previous comment?

kartikwar commented 3 years ago

what is weight in the laplacian loss?

kartikwar commented 3 years ago

@yucornetto and @bluesky314 were you able to figure out what is meant by masking or weight in the laplacian loss ?