Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mask refinement method #5

Closed
edwardnguyen1705 opened this issue Jul 5, 2020 · 1 comment
Closed

Mask refinement method #5

edwardnguyen1705 opened this issue Jul 5, 2020 · 1 comment

Comments

@edwardnguyen1705
Copy link

Dear @lufficc , thank you for sharing your work.
As you said in other issue:
We first use traditional edge detection to extract coarse masks, and then use Salient Object Detection to refine the coarse masks.

As I know, there are two approaches to refining the coarse masks:

  1. Traditional image processing: Grabcut https://dl.acm.org/doi/10.1145/1186562.1015720 and its extent densecut http://mmcheng.net/densecut/
  2. Deep learning: https://github.com/AceCoooool/DSS-pytorch. This method requires images and their corresponding labels to train the model.

Could you let me know which method you used to refine the coarse masks?
If you used the 2nd approach as I mention above, then you must used the already refined masks to train the network?

@lufficc
Copy link
Owner

lufficc commented Nov 11, 2020

We use cv2.ximgproc.createStructuredEdgeDetection (https://isrc.iscas.ac.cn/gitlab/research/acm-mm-2019-ACO/-/blob/master/toolboxes/extract_mask.py#L95), which produces perfect mask for some images(fails on others images). Then these perfect masks are used as ground truth to train https://github.com/AceCoooool/DSS-pytorch.

The extracted masks can be download here: Google Drive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants