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

Question about instance GT #3

Open
tyjiang1997 opened this issue May 7, 2021 · 6 comments
Open

Question about instance GT #3

tyjiang1997 opened this issue May 7, 2021 · 6 comments

Comments

@tyjiang1997
Copy link

Hello, I'd like to ask a question.For the instance split task, how should we generate the corresponding 36 points?

@Duankaiwen
Copy link
Owner

The GT masks are represented as polygons(a set of points) in the json file, but the number of the points is different for different objects, you need to sample the polygons uniformly to 36 points for all objects.

@tyjiang1997
Copy link
Author

The GT masks are represented as polygons(a set of points) in the json file, but the number of the points is different for different objects, you need to sample the polygons uniformly to 36 points for all objects.
Thank you for your reply.I actually want to know if I use my own data, what algorithm should I follow to generate my instance GT

@Duankaiwen
Copy link
Owner

Duankaiwen commented May 7, 2021

The GT masks are represented as polygons(a set of points) in the json file, but the number of the points is different for different objects, you need to sample the polygons uniformly to 36 points for all objects.
Thank you for your reply. I actually want to know if I use my own data, what algorithm should I follow to generate my instance GT

The algorithm is on the line 463 in code/mmdet/datasets/pipelines/loading.py

@xiehousen
Copy link

The GT masks are represented as polygons(a set of points) in the json file, but the number of the points is different for different objects, you need to sample the polygons uniformly to 36 points for all objects.
Thank you for your reply. I actually want to know if I use my own data, what algorithm should I follow to generate my instance GT

The algorithm is on the line 463 in /code/mmdet/datasets/pipelines/loading.py

Does the instance sem GT have to be Polygons instead of RLE? I tried RLE's and it didn't seem to work well.

@Duankaiwen
Copy link
Owner

The GT masks are represented as polygons(a set of points) in the json file, but the number of the points is different for different objects, you need to sample the polygons uniformly to 36 points for all objects.
Thank you for your reply. I actually want to know if I use my own data, what algorithm should I follow to generate my instance GT

The algorithm is on the line 463 in /code/mmdet/datasets/pipelines/loading.py

Does the instance sem GT have to be Polygons instead of RLE? I tried RLE's and it didn't seem to work well.

The instance sem GT should be polygons, you may use m = maskUtils.decode(rle) to convert the RLE to the binary masks and use cv.findContours() to convert the binary masks to polygons

@xiehousen
Copy link

The GT masks are represented as polygons(a set of points) in the json file, but the number of the points is different for different objects, you need to sample the polygons uniformly to 36 points for all objects.
Thank you for your reply. I actually want to know if I use my own data, what algorithm should I follow to generate my instance GT

The algorithm is on the line 463 in /code/mmdet/datasets/pipelines/loading.py

Does the instance sem GT have to be Polygons instead of RLE? I tried RLE's and it didn't seem to work well.

The instance sem GT should be polygons, you may use m = maskUtils.decode(rle) to convert the RLE to the binary masks and use cv.findContours() to convert the binary masks to polygons

It works. Thanks for your reply.

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

3 participants