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] dai.ImgTransformations is None for RVC2 device #144

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

aljazkonec1
Copy link
Contributor

@aljazkonec1 aljazkonec1 commented Dec 3, 2024

This PR adds a hotfix for using RVC2 device with depthai alpha6. The issue is that the dai.NNdata has self.transformation set to None. This is a know issue in depthai and will be fixed in comming updates.

The PR was tested on both RVC2 and RVC4 on the following models:
lane detection, depth anything, face landmarks, yolov8 instance seg, selfie seg, scfrd face detection, yolo v6, text detection

@github-actions github-actions bot added messages Changes affecting ml.messages fix Fixing a bug labels Dec 3, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Project coverage is 33.31%. Comparing base (37a2d92) to head (93f1e60).
Report is 16 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
depthai_nodes/ml/messages/classification.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/clusters.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/img_detections.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/keypoints.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/lines.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/map.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/prediction.py 0.00% 3 Missing ⚠️
depthai_nodes/ml/messages/segmentation.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #144      +/-   ##
==========================================
- Coverage   33.40%   33.31%   -0.09%     
==========================================
  Files          68       69       +1     
  Lines        3739     3836      +97     
==========================================
+ Hits         1249     1278      +29     
- Misses       2490     2558      +68     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kkeroo
Copy link
Collaborator

kkeroo commented Dec 3, 2024

I suggest that we dont merge features to main if they dont work with alpha releases because they can break the code and parsers dont work. Can we keep features in separate branches till alphas support them? Thoughts @aljazkonec1 @jkbmrz @klemen1999 ?

@aljazkonec1
Copy link
Contributor Author

aljazkonec1 commented Dec 3, 2024

Agreed, it was done on alpha6, just that I did not tryout RVC2 after the fact.

@aljazkonec1 aljazkonec1 merged commit da4fdb8 into main Dec 3, 2024
10 checks passed
@aljazkonec1 aljazkonec1 deleted the fix-dai-imgTransformations branch December 3, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fixing a bug messages Changes affecting ml.messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants