chore(tests): store instance segmentation accuracy results in native format#613
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the accuracy test framework to serialize and compare InstanceSegmentationResult outputs in a structured (native JSON) format rather than the previous string-based representation, aligning instance-segmentation accuracy baselines with other result types.
Changes:
- Added structured dump + comparator utilities for
InstanceSegmentationResult(objects + contours). - Refactored contour comparison into a shared
assert_contours_matchhelper. - Regenerated
public_scope.jsoninstance-segmentation references to the new JSON schema.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
model_api/tests/accuracy/test_accuracy.py |
Adds JSON dump/compare for instance segmentation and centralizes contour comparison logic. |
model_api/tests/accuracy/public_scope.json |
Updates stored accuracy references for instance segmentation to the new structured format. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tybulewicz
enabled auto-merge
June 26, 2026 12:17
mgumowsk
approved these changes
Jun 29, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jun 29, 2026
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?
Updates the accuracy test framework to serialize and compare
InstanceSegmentationResultoutputs in a structured (native JSON) format rather than the previous string-based representation, aligning instance-segmentation accuracy baselines with other result types.Changes:
InstanceSegmentationResult(objects + contours).assert_contours_matchhelper.public_scope.jsoninstance-segmentation references to the new JSON schema.Fixes #599
Before submitting