Add sigmoid smoothing to instance segmentation post-processing of YOLO models family in inference-models#2217
Open
PawelPeczek-Roboflow wants to merge 6 commits intomainfrom
Conversation
…O models family in inference-models
dkosowski87
previously approved these changes
Apr 9, 2026
| size_after_pre_processing=image_meta.size_after_pre_processing, | ||
| inference_size=image_meta.inference_size, | ||
| static_crop_offset=image_meta.static_crop_offset, | ||
| binarization_threshold=0.5, |
Contributor
There was a problem hiding this comment.
Let's move the binarization_threshold to a constant, as other INFERENCE_MODELS_YOLO_ULTRALYTICS_DEFAULT_... ones
Collaborator
Author
There was a problem hiding this comment.
the other are configurable - does it make sense since the sigmoid is enabled?
Maybe it's actually valid to expose a knob to enable/disable smoothing and then this threshold being configurable makes more sense (on non smoothed distribution, cutoff point makes much more expression power)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this PR do?
Change to align post-processing for instance-segmentation with the state of old
inference- usingsigmoid(...)smoothing and 0.5 thresholding.Type of Change
Testing
Test details:
Checklist
Additional Context