-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow json mapping usage #16
base: main
Are you sure you want to change the base?
Conversation
Can you please provide an example of these JSON sidecars? |
I updated my original comment with some complimentary information @valosekj |
Thank you, Nathan! I understand it now. Thanks for implementing this feature! |
Note: CI and unit tests are currently failing due to #18 |
bbc3a00
to
0a34add
Compare
Okay, @mguaypaq and I did an interactive rebase ( |
Description
In this PR, 2 new parser variables were integrated
-ref-map
and-pred-map
. They both point to JSON sidecars that can be used to remap values present inside the corresponding reference and prediction images.This is especially useful when values between the prediction and the ground truth are not the same and also to simply remove some structures from the comparison.
JSON example:
Note: It can also be used to compute validation on a single structure present in the image whereas multiple other structures may appear:
For example:
This way we could get rid of these lines:
MetricsReloaded/compute_metrics_reloaded.py
Lines 160 to 163 in 2bad1f2
Final table