-
Notifications
You must be signed in to change notification settings - Fork 210
Fix inference for instance segmentation #857
Conversation
Codecov Report
@@ Coverage Diff @@
## master #857 +/- ##
==========================================
+ Coverage 88.95% 88.96% +0.01%
==========================================
Files 226 226
Lines 12441 12454 +13
==========================================
+ Hits 11067 11080 +13
Misses 1374 1374
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thanks @ethanwharris and @karthikrangasai! Overall the gaps in my understanding and wrong direction lead me to this conclusion:
So to be clear, the solution to this issue would be to ensure that the data-pipeline once trained is serialized and stored within the checkpoint, and de-serialized when loading? EDIT: this is the logic that prevents the data pipeline from being saved in the model: https://github.com/PyTorchLightning/lightning-flash/blob/master/flash/core/model.py#L755-L760 |
Yes, the goal is to enable to dump the entire DataPipeline. However, sometimes it is not pickable and we need to add support for it. Best, |
The code has been modified to override the Still need to track down why there is only 2 output returns and not 3! |
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.
LGTM !
Now just one issue to figure out:
|
After digging through a huge rabbit hole I think I've remedied the issue by specifying a custom PostProcess object. The Default uncollate was doing crazy things to the BaseRecord, and simply returning the output seems to be the right way to handle this. @kurtjcu would you be able to help test this to see if this fixes your issue? |
getting same error with semantic segmentation. how can i solve? |
@aswanthkrishna Sorry you're experiencing issues. Could you open a seperate issue with a reproducible script showing the error you're getting? Thanks 😃 |
appears to be the same issue with object detection, replicated is the same way, using flash and icevision installed from master on github |
What does this PR do?
Fixes #840
It seems we were missing parsing logic for instance segmentation. On top of that, it seems our testing suite misses actually testing this for some reason.
I noticed that Icevision doesn't support collating images of different sizes in inference, so I've added a guard in case.
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 🙃