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

About the create_mask method in preprocess.py #18

Open
Raingel opened this issue May 2, 2022 · 0 comments
Open

About the create_mask method in preprocess.py #18

Raingel opened this issue May 2, 2022 · 0 comments

Comments

@Raingel
Copy link

Raingel commented May 2, 2022

When I am using the balloon dataset

I visualized the masks_array as follows
image

I'm wondering if it's right that each mask should present a separate area.

If the code on line 158

instance_masks_list.append(cv2.fillPoly(mask_template, points, (class_id)))

is changed to

instance_masks_list.append(cv2.fillPoly(mask_template.copy(), points, (class_id)))

masks_array will look like this, is this the correct one?
image

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

1 participant