Skip to content
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

Feature/sg 1442 sliding window inference for yolonas #1979

Merged
merged 26 commits into from
May 22, 2024

Conversation

shaydeci
Copy link
Contributor

@shaydeci shaydeci commented May 5, 2024

I am opening this WIP PR as a draft, to discuss some small issues.
Implementing sliding window inference inside CustomizableDetector, it happens that a few arch params are now intersecting with some of the predict() ones.
As @BloodAxe suggested, I run NMS on each tile and finally run NMS (just the IOU part) on the aggregated predictions.
But for predict() we can also pass NMS parameters.
As a temporary solution I just added an IdentityPostPredictionCallback that in the case of sliding window would be used, and internally the user's specified NMS params that were passed in __ init __ would be used for the tiles.
What would be your take on how to handle both predict() specified NMS params and the ones passed in init for the sliding window ?
Is having a different IOU threshold for the final NMS also desired?
@BloodAxe @ofrimasad

Copy link
Contributor

@BloodAxe BloodAxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shaydeci shaydeci merged commit 217353a into master May 22, 2024
6 checks passed
@shaydeci shaydeci deleted the feature/SG-1442_sliding_window_inference_for_yolonas branch May 22, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants