Repository navigation
lesser ram ransac - #32
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32 +/- ##
==========================================
+ Coverage 97.21% 97.64% +0.42%
==========================================
Files 6 6
Lines 647 680 +33
==========================================
+ Hits 629 664 +35
+ Misses 18 16 -2
Continue to review full report at Codecov.
|
|
Cool, thanks @yjmantilla let me know once you are done and I should review |
|
@sappelhoff should be ready for review now. The basic idea is to do for each channel:
Basically is just exploiting the fact that a column of the channel_correlations matrix depends only on the prediction done for a particular channel, not for all the other channels. So in this sense we predict each channel in different iterations instead of doing all of the predictions at once, thus requiring less ram. |
sappelhoff
left a comment
There was a problem hiding this comment.
looks good overall, thanks :)
I left a few comments that need to be addressed before we can merge.
Co-authored-by: Stefan Appelhoff <[email protected]>
Co-authored-by: Stefan Appelhoff <[email protected]>
Co-authored-by: Stefan Appelhoff <[email protected]>
sappelhoff
left a comment
There was a problem hiding this comment.
looks good :) just a few minor comments left.
warning for correlation criteria Co-authored-by: Stefan Appelhoff <[email protected]>
|
I'm actually wondering now if it is faster to decrease the chunk size by 1 or to divide it by half. Apparently it is faster to find the largest possible chunk which may be missed when dividing by half. |
you made it work now --> so that's already a nice step. I think there would be other issues to focus on now, instead of optimizing this fix even more :-) Are you ready with all changes now? |
|
Almost ready, in the end I couldn't help but implement the optimization of the optimization lol. Also made the output a bit less verbose and straight to the optimal value. |
|
ok, it is ready if there are no further suggestions. |
|
no more suggestions, thanks for the fix! |
PR Description
Adding a lesser hungry version of the ransac albeit slower since it is done channel by channel. As of now it will try to execute the fast ransac and if that fails will try to do the channel-wise ransac. It is about 5 to 6 times slower than the ram hungry version.
Would close #17 and close #19 also closes #28
Edit: Optimized, now ransac will automatically find the largest chunk of channels it can take at a time without running out of ram.