-
Notifications
You must be signed in to change notification settings - Fork 150
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
(WIP) Fix masks for instance segmentation #967
(WIP) Fix masks for instance segmentation #967
Conversation
… a 2d array is given. Also made sure that if the mask_array for a record is None but the record has a mask the mask array is loaded in the draw function instead of trying to plot the None value. With this changes the usage of the COCOMetric no longer thorws an error but the value is 0.
Codecov Report
@@ Coverage Diff @@
## master #967 +/- ##
==========================================
- Coverage 85.71% 85.38% -0.33%
==========================================
Files 254 254
Lines 5515 5570 +55
==========================================
+ Hits 4727 4756 +29
- Misses 788 814 +26
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
…problem was, that the records used for the ground truth did not contain the masks and boxes after the transformations but the ones before. This is now changed in the valid step of the model adapters. Furthermore, I found a bug in the set_masks function for the BaseMasksRecordComponent were the clear functions was not called (the brackets were missing).
…nd only updates the records in that case.
This should complete the PR and it should be ready for merge. |
To fix: