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

Fix creators. #42

Merged
merged 6 commits into from
Sep 2, 2024
Merged

Fix creators. #42

merged 6 commits into from
Sep 2, 2024

Conversation

kkeroo
Copy link
Collaborator

@kkeroo kkeroo commented Sep 2, 2024

This PR fixes depth and keypoints creators because they did not support all parsers. Keypoints should also support scores = None because some models (Face-mesh) doesnt have scores for the keypoints. Depth creator wasnt accepting all shapes. DepthAnything models outputs 2-dimensional result.

Tests are also modified.

Additionally, examples have some fixes. parser setup is moved to separate file because we need to star-import all parsers. precommit - ruff had problems with that in model.py file becuase then types like Classification class were not explicitly imported.

@kkeroo kkeroo requested review from jkbmrz and aljazkonec1 and removed request for jkbmrz September 2, 2024 09:48
@kkeroo kkeroo requested review from klemen1999 and removed request for aljazkonec1 September 2, 2024 09:48
@kkeroo kkeroo added bug Something isn't working messages Changes affecting ml.messages examples Changes affecting examples. and removed examples Changes affecting examples. labels Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Test Results

117 tests   117 ✅  1s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit f21a70e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Sep 2, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1975 794 40% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
depthai_nodes/ml/messages/creators/depth.py 97% 🟢
depthai_nodes/ml/messages/creators/keypoints.py 100% 🟢
TOTAL 98% 🟢

updated for commit: f21a70e by action🐍

Copy link
Contributor

@aljazkonec1 aljazkonec1 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

@jkbmrz jkbmrz left a comment

Choose a reason for hiding this comment

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

Just a small doc-string comment. LGTM otherwise!

Copy link
Contributor

@HonzaCuhel HonzaCuhel left a comment

Choose a reason for hiding this comment

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

LGTM

@kkeroo kkeroo merged commit cd38f0d into main Sep 2, 2024
10 checks passed
@kkeroo kkeroo deleted the fix/fix-creators-v2 branch September 3, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working messages Changes affecting ml.messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants