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

New Keypoint Heads and Losses #40

Merged
merged 49 commits into from
Jul 11, 2024
Merged

New Keypoint Heads and Losses #40

merged 49 commits into from
Jul 11, 2024

Conversation

JSabadin
Copy link
Contributor

  • Added sigma and area factor to the metrics.

  • The implicit keypoint bbox head now uses a new OKC loss instead of the detection loss.

  • Added a new Efficient keypoint bbox head and loss.

  • Updates to README:

    • Instructions for luxonis-train inspect and evaluate commands.
    • Description of the new head and loss.
    • Updated weight names for the implicit keypoint bbox loss.

JSabadin and others added 30 commits May 23, 2024 09:44
Copy link
Collaborator

@kozlov721 kozlov721 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few minor comments, mostly related to types. Otherwise LGTM!

@JSabadin
Copy link
Contributor Author

I have fixed the type annotations and function renamings as @kozlov721 proposed.

@kozlov721
Copy link
Collaborator

I have fixed the type annotations and function renamings as @kozlov721 proposed.

Thanks. Also please update the tests (assigner tests) so the checks pass. They should all pass now; I temporarily disabled the MacOS tests.

Copy link

github-actions bot commented Jun 14, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5185 3866 75% 0% 🟢

New Files

File Coverage Status
luxonis_train/attached_modules/losses/efficient_keypoint_bbox_loss.py 24% 🟢
luxonis_train/nodes/efficient_keypoint_bbox_head.py 19% 🟢
TOTAL 22% 🟢

Modified Files

File Coverage Status
luxonis_train/attached_modules/losses/init.py 100% 🟢
luxonis_train/attached_modules/losses/adaptive_detection_loss.py 98% 🟢
luxonis_train/attached_modules/losses/implicit_keypoint_bbox_loss.py 97% 🟢
luxonis_train/attached_modules/losses/keypoint_loss.py 97% 🟢
luxonis_train/attached_modules/metrics/mean_average_precision.py 100% 🟢
luxonis_train/attached_modules/metrics/mean_average_precision_keypoints.py 95% 🟢
luxonis_train/attached_modules/metrics/object_keypoint_similarity.py 87% 🟢
luxonis_train/attached_modules/visualizers/keypoint_visualizer.py 100% 🟢
luxonis_train/core/archiver.py 18% 🟢
luxonis_train/nodes/init.py 100% 🟢
luxonis_train/nodes/efficient_bbox_head.py 100% 🟢
luxonis_train/nodes/enums/head_categorization.py 100% 🟢
luxonis_train/utils/assigners/atts_assigner.py 98% 🟢
luxonis_train/utils/assigners/tal_assigner.py 97% 🟢
luxonis_train/utils/boxutils.py 83% 🟢
TOTAL 91% 🟢

updated for commit: ce5ed26 by action🐍

@tersekmatija tersekmatija requested a review from kozlov721 June 17, 2024 10:34
Copy link
Collaborator

@kozlov721 kozlov721 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@conorsim conorsim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm lacking domain knowledge but from a quick look it looks good

@kozlov721 kozlov721 added the enhancement New feature or request label Jun 21, 2024
@kozlov721 kozlov721 changed the title Add new keypoints head and substitute implicit keypoint bbox detection loss with OKC loss New Keypoint Heads and Losses Jun 21, 2024
@kozlov721 kozlov721 merged commit 57258ee into dev Jul 11, 2024
8 checks passed
@kozlov721 kozlov721 deleted the fix/kps-head-loss branch July 11, 2024 16:41
@kozlov721 kozlov721 mentioned this pull request Oct 9, 2024
kozlov721 added a commit that referenced this pull request Oct 9, 2024
Co-authored-by: klemen1999 <[email protected]>
Co-authored-by: Martin Kozlovsky <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
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 this pull request may close these issues.

5 participants