-
Notifications
You must be signed in to change notification settings - Fork 2
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
pass method instead of method as string #21
Conversation
Thanks for starting this one. I think the easiest solution would be to move these to lines # Keep only ious above threshold
img_sim[img_sim < threshold] = 0.0
img_sim[img_sim < img_sim.max(axis=0)] = 0.0 into Edit: Actually, we could introduce a few different methods here already:
Depending on the matching-algorithm, one of these could be applicable. |
Yes, great idea! I was also thinking of renaming the method. How about we call these things no longer I could then think of three implementations:
|
Lol. You're editing old posts while I'm typing new posts :-) |
Yes, ultimately it was also my idea to keep the metric and the matching separate. Depending on the metric we should define a few conventions, like:
|
It could also be an option to split the process into three steps:
|
Yes! Fantastic idea! |
Values below threshold should be removed AND only maximal entries are kept
Overlap matrix calculation method used to be a keyword argument, now it is embedded as one of **kwargs, along with the filtering method and the matching method.
I think it looks rather good so far :)
I added this to the PR. |
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.
Hey Johannes @jo-mueller ,
awesome! The new functionality looks great. We're almost there! Just some documentation issues to fix.
Let me know when I should take a look again!
The entry [0, 0] in the similarity matrix is set to 1.0 and all other entries pertaining to the background label (0) are set to zero. Every sensible matching algorithm should thus match up background with background.
I added some more comments to each of the functions docstrings and rebuilt the docs. I think this can be merged. |
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.
Hi Johannes @jo-mueller ,
just some more suggestions. I'm wondering why we need to correct variable names again and again. Furthermore, do these stars in *variable*
mean something? I'd like to learn!
Hi Robert @haesleinhuepf
They would make optional arguments appear in italics in the sphinx-built documentation - just as a nice touch, there's no deeper meaning.
I merged from main where the names had not been changed appropriately yet - sorry for the hickup. For the future, feel free to simply point the finger at such things and I'll fix it right away. |
Co-authored-by: Robert Haase <haesleinhuepf@users.noreply.github.com>
Co-authored-by: Robert Haase <haesleinhuepf@users.noreply.github.com>
Co-authored-by: Robert Haase <haesleinhuepf@users.noreply.github.com>
Co-authored-by: Robert Haase <haesleinhuepf@users.noreply.github.com>
Co-authored-by: Robert Haase <haesleinhuepf@users.noreply.github.com>
Co-authored-by: Robert Haase <haesleinhuepf@users.noreply.github.com>
I think this is now clear to be merged. |
Agreed @jo-mueller. Thanks for working on this! :-) |
Description
Hi Johannes @jo-mueller,
This is a resurrection of #14 and #19. Can we please work together on this a bit before merging it? It still has the bug you discovered in this discussion: #10 (comment) That's why this PR is a PR-draft. It is not ready yet for merging.
Thanks! :-)
Type of change
References
Tests
Final checks