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

Coco occlusion attribute error #836

Closed
BerryRB opened this issue Nov 12, 2019 · 3 comments · Fixed by #938
Closed

Coco occlusion attribute error #836

BerryRB opened this issue Nov 12, 2019 · 3 comments · Fixed by #938
Assignees
Labels
enhancement New feature or request

Comments

@BerryRB
Copy link

BerryRB commented Nov 12, 2019

@azhavoro Hi, when I I look at code /cvat/blob/develop/cvat/apps/annotation/coco.py, I see it on line 248 of the code:

  new_anno['iscrowd'] = 0

So why is this attribute all set to 0? I tried to annotate the annotation with occlusion attribute.I found that this attribute is not reflected in the coco format file.

@nmanovic
Copy link
Contributor

I think iscrowd != occluded in common case. But I don't think that it is correct to assign zero here as well. Probably if a label has 'iscrowd' attribute it should be used for COCO format.

@azhavoro
Copy link
Contributor

@BerryRB Hi.
Quote from http://cocodataset.org/#format-data:

The segmentation format depends on whether the instance represents a single object (iscrowd=0 in which case polygons are used) or a collection of objects (iscrowd=1 in which case RLE is used). Note that a single object (iscrowd=0) may require multiple polygons, for example if occluded. Crowd annotations (iscrowd=1) are used to label large groups of objects (e.g. a crowd of people).

For now CVAT interprets all objects as a single object. If you want to annotate objects with multiple polygons you can annotate all parts of the object using separate polygons and group it together. In this case it should be dumped as 1 object with multiple polygons.

@nmanovic nmanovic added the enhancement New feature or request label Nov 13, 2019
@nmanovic nmanovic added this to the Backlog milestone Nov 13, 2019
@BerryRB
Copy link
Author

BerryRB commented Nov 26, 2019

@azhavoro Hi, I found that group_id in XML file is not reflected in coco format. If I want to convert a group of objects in XML file to RLE format in coco, can you give me some suggestions?

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

Successfully merging a pull request may close this issue.

4 participants