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

Relate points with boxes for pose estimation #1421

Closed
sramirez opened this issue Apr 17, 2020 · 6 comments
Closed

Relate points with boxes for pose estimation #1421

sramirez opened this issue Apr 17, 2020 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@sramirez
Copy link

sramirez commented Apr 17, 2020

Hello,

Is there any way to associate boxes with keypoints following the COCO keypoint detection format?
For instance, I would like to associate person with the face point so that after exporting to COCO format the point and the box are associated to the same instance ID. However, neither they are associated nor the point even appear in the JSON file.

imagen

I've been reading in the issues track about how CVAT faces pose detection problem, but not sure if funcionality is now being developed or not. Seems Datamuro deals witht the export problem, but no solution for relating detection (boxes) with keypoints.

@azhavoro azhavoro added the question Further information is requested label Apr 20, 2020
@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Apr 20, 2020

@sramirez, hi. While not provided in CVAT UI (i.e. CVAT does not support COCO keypoints officially), it can be done with Datumaro. It exports annotations of the points type as COCO keypoints, ids are assigned automatically. If there are grouped rectangles and points, then rectangles are used as bboxes for points, otherwise bboxes are calculated from points.
Be aware that COCO categories will only contain label names and no point names (keypoints and skeleton fields). Points should be created in the same order to make sense in COCO format.

# export the task as Datumaro dataset
# unzip, go to export dir
# read README.md for setup instructions
datum project export -f coco (or coco_person_keypoints to be specific) [-- --save-images (if you like)]

If you have any ideas on improvement - you are welcome.

@sramirez
Copy link
Author

sramirez commented Apr 21, 2020

From that, I thus understand it's not possible to create a bbox and associate it to a subsequent set of keypoints, right? This is a requirement for my pose estimation task, bc I need to distinguish for each body point if it belongs to one box or another (alike people).

@zhiltsov-max
Copy link
Contributor

Join points and boxes into a group.

@sramirez
Copy link
Author

Still not valid bc some points could be skipped, thus breaking the correct point order.

@nmanovic
Copy link
Contributor

@sramirez ,

CVAT has group feature. You can assign the same group to different objects. For example, in CVAT XML format you will have the same group_id attribute for grouped objects. Will it solve the problem? If it doesn't please provide more details and context (what you need to get).

Documentation: https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/user_guide.md#shape-grouping

@bsekachev
Copy link
Member

I will close the issue.
There is a similar issue about supporting better annotation scenario for this case #494

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

No branches or pull requests

5 participants