xuebinqin / DIS

This is the repo for our new project Highly Accurate Dichotomous Image Segmentation
Apache License 2.0
2.12k stars 244 forks source link

advice on how to apply masks to remove bg from images #39

Open hobo1618 opened 1 year ago

hobo1618 commented 1 year ago

Thanks so much for the model! I'm new to image processing, and I'm not sure what the best approach is to applying the mask to an image to remove the background. I've been using cv2, and while the masks are great, the edges are a bit jagged in the final images. Is there a best practice for this step? Any advice would be greatly appreciated!

xuebinqin commented 1 year ago

you can save the RGBA image, in which the A channel is the alpha (the prediction from IS-Net).

On Fri, Sep 2, 2022 at 11:43 AM Will @.***> wrote:

Thanks so much for the model! I'm new to image processing, and I'm not sure what the best approach is to applying the mask to an image to remove the background. I've been using cv2, and while the masks are great, the edges are a bit jagged in the final images. Is there a best practice for this step? Any advice would be greatly appreciated!

— Reply to this email directly, view it on GitHub https://github.com/xuebinqin/DIS/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSGORJZ6VHIZPRKAALX5ALV4JDEHANCNFSM6AAAAAAQDQCM5A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Xuebin Qin PhD Department of Computing Science University of Alberta, Edmonton, AB, Canada Homepage: https://xuebinqin.github.io/