Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Findings
Found that
grits.iou
function is outputting values that are slightly off compared to other libraries. Updated function to correct output. Additionally a duplicateiou
function was found in thepostprocessing.py
file, so it was instead replaced with the function imported from thegrits
module instead.Changes
Attempted to make minimal changes to fix the issue. Only the change in the function was tested, importing the function for reuse was not verified, but is expected to work.
Reproducing Errors
The following was used to verify that values calculated by original$0.089$ in the IoU score.
grits.iou
funciton were incorrect. Over a few iterations of running the example, the maximum difference observed was aroundExpand for code used to check for errors
Hopefully this is helpful for others. It's likely a minute difference in the scoring, but seemed like it could have an impact on model performance since$GriTS_{top}$ and $GriTS_{loc}$ .
iou
scoring is used for both