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
Add .select_region() and .select_mask() methods to Models #3169
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3169 +/- ##
=======================================
Coverage 93.00% 93.00%
=======================================
Files 147 147
Lines 17689 17780 +91
=======================================
+ Hits 16452 16537 +85
- Misses 1237 1243 +6
Continue to review full report at Codecov.
|
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.
Thanks @QRemy! Sorry for the delay here, I have left a few comment to address.
Sorry @QRemy, for the delay on this, it took me a while to find the time to think about the code structure again. My goal is always to break the functionality down into as many useful sub-functions as possible, that we can re-use in other places too. So here comes my final proposal:
I think this way we have consistency between the selection in |
Sounds good, I just have some doubts about |
Thanks @QRemy, those are good points:
|
more efficient for large margins
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.
Thanks a lot @QRemy some of the methods might need a unit test, but this can be done later...
This PR add models management methods to Models :