-
Notifications
You must be signed in to change notification settings - Fork 579
feat: keypoints/pose implementation #521
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
Open
michaelmohamed
wants to merge
14
commits into
roboflow:develop
Choose a base branch
from
michaelmohamed:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Michael Mohamed seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
For Technical Implementation Details: See docs.
This PR adds optional keypoint/pose estimation support to RF-DETR, following YOLOv11's approach for pose estimation. The implementation outputs (x, y, visibility) triplets per keypoint per detection, with full support for COCO-style 17-keypoint annotations.
Key features:
Related issues:
Addresses community requests for pose estimation support in RF-DETR.
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
29 unit tests covering both training and inference pipelines:
29 passed in 2.28s
Test coverage includes:
Any specific deployment considerations
Docs
Added docs/learn/run/pose.md - Complete usage guide for pose estimation
Added docs/reference/pose.md - API reference for RFDETRPose
Updated docs/learn/train/index.md - Added pose tabs to all training examples
Updated mkdocs.yaml - Added navigation entries for pose documentation
Files Changed
Usage / Import Example
Training
Inference
Fix: Category ID Mapping for COCO Datasets
Problem
#330
#349
#413
When training on Roboflow or custom COCO datasets where category_id starts at 1 (or has gaps), the model would crash with a CUDA index out of bounds error. This happened because:
Additionally, COCO evaluation was returning near-zero mAP scores because predictions used 0-indexed labels but COCO evaluation expected original category IDs.
Solution
Added automatic bidirectional category ID mapping:
Training (coco.py):
Evaluation (coco_eval.py):
How It Works
Backwards Compatibility
Files Changed