-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: Detections.from_inference supports compressed RLE masks #2178
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ddd135b
Detections.from_inference works on RLE-encoded masks
leeclemnet b9901eb
Apply suggestions from code review
Borda 5e7b476
fix: harden RLE handling in from_inference and decoder
Borda 44b817a
Merge branch 'develop' into from-inference-rle-mask
Borda 2d48889
Merge remote-tracking branch 'origin/develop' into from-inference-rle…
Borda 3d76bc5
lint: fix cv2.fillPoly color type in polygon_to_mask
Borda b37b4a2
fix: resize RLE mask to image dims when size mismatches
Borda 0dd9851
fix: pass RLE counts directly in coco_annotations_to_masks
Borda 9f0d7c1
test: document mixed RLE + box-only batch misalignment
Borda 535c079
test: add compressed RLE iscrowd case to coco_annotations_to_detections
Borda 57f2e64
fix: cast polygon mask to bool in process_roboflow_result
Borda cfe33df
fix: log warning when RLE decode fails in process_roboflow_result
Borda 061ee25
fix: replace assert with ValueError in rle_to_mask
Borda 40eed1f
test: add bytes invalid UTF-8 case to rle_to_mask tests
Borda 400a345
docs: note rle_to_mask dtype change from uint8 to bool in changelog
Borda fdea3ae
refactor: tighten rle_to_mask NDArray input type to np.integer[Any]
Borda 5659f37
refactor: drop mask_to_rle overloads; cast at call site
Borda 60231d2
docs: clarify COCO column-major RLE order in rle_to_mask/mask_to_rle
Borda 0f77703
refactor: update @deprecated annotations and docstrings for mask_to_r…
Borda 94d947b
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] cf3fd46
Update src/supervision/detection/utils/converters.py
Borda 1975ae1
uv lock
Borda 7d0e79d
refactor: replace mask_to_rle body with `void` function to suppress u…
Borda d6aab0b
Apply suggestions from code review
Borda 62c61c7
Apply suggestions from code review
Borda 516e9d9
Merge branch 'develop' into from-inference-rle-mask
Borda 1b9a1d4
linting
Borda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.