zhuhongwei1999 / BSA-Net

Official implementation of AAAI2022 paper "I can find you! Boundary-guided Separated Attention Network for Camouflaged Object Detection"
29 stars 10 forks source link

How to get the Edge label #2

Open gaowq2017 opened 1 year ago

gaowq2017 commented 1 year ago

Hi hongwei, Thanks for sharing the code! I have same idea that combining edge with mask to segmentting image. How do you get the edge label?By compute the edge gradient base mask image? if yes the pixel number of width? Or other ways? Can you share the code? Thank you very much!

zhuhongwei1999 commented 1 year ago

Hi wq,

The edge label I use comes from the original dataset provided by COD10K's author. You can ask them for detailed implementation if you are interested. But I think one possible implementation is that you first apply gaussian blur filter on the ground truth gt and get blurred_gt, then use 4 * blurred_gt * (1 - blurred_gt) to get the edge label.

Best, Hongwei.

gaowq2017 @.***> 于2022年11月9日周三 02:24写道:

Hi hongwei, Thanks for sharing the code! I have same idea that combining edge with mask to segmentting image. How do you get the edge label?By compute the edge gradient base mask image? if yes the pixel number of width? Or other ways? Can you share the code? Thank you very much!

— Reply to this email directly, view it on GitHub https://github.com/zhuhongwei1999/BSA-Net/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWVYRNHGRXHXVJTFLQXH63WHNGUBANCNFSM6AAAAAAR3DWHOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

D-EEPlearning commented 1 year ago

Hello, senior, I have encountered the same problem as you. Have you solved it now? If it is solved, would you like to share the solution with me? Thank you for your reading and look forward to your reply.