-
Notifications
You must be signed in to change notification settings - Fork 212
Improvements to icevision data loading #889
Conversation
Codecov Report
@@ Coverage Diff @@
## master #889 +/- ##
==========================================
+ Coverage 89.08% 89.09% +0.01%
==========================================
Files 230 230
Lines 12708 12705 -3
==========================================
- Hits 11321 11320 -1
+ Misses 1387 1385 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
record.set_img(image) | ||
record.add_component(ClassMapRecordComponent(task=tasks.detection)) | ||
record = to_icevision_record(sample) | ||
record.autofix() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this voodoo function do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The autofix just has some simple logic to deal with invalid annotations. E.g. often you get bounding boxes that are out of bounds due to floating point wierdness, and this would clamp them to the width / height of the image.
…orchLightning/lightning-flash into bugfix/icevision_memory_leak
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What does this PR do?
This PR moves conversion from icevision record to dict to the
load_data
hook. This means that we can use Flash to load the image file rather than icevision so that support for formats is a match to what we have in image classification.Fixes #881
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃