Repository navigation
Conversation
MaskRCNN returns all detections above score 0.05 sorted by confidence, so +/-1 pixel bilinear resize rounding differences introduced in Pillow 13.0.0 reorder nearly-tied detections and toggle borderline detections near 0.05. Compare parsed label lists using exact top-5 match plus >= 0.8 multiset IoU so tests remain resilient across Pillow/PyTorch versions without mutating shared GCS golden files.
5 tasks
Contributor
Author
|
Replaced by native stacked PR #41646. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41641 +/- ##
=========================================
Coverage 58.03% 58.04%
Complexity 2844 2844
=========================================
Files 1210 1210
Lines 173259 173280 +21
Branches 2329 2329
=========================================
+ Hits 100554 100583 +29
+ Misses 69995 69987 -8
Partials 2710 2710
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Makes the two COCO MaskRCNN integration tests in
pytorch_inference_it_test.pyresilient to minor image-resizing rounding differences across Pillow/PyTorch versions:box_score_thresh=0.05sorted by score. Pillow13.0.0(used by Beam's Python 3.11–3.14 environments) produces a ±1/255 bilinear resize difference on two COCO val2017 images (000000006818.jpgand000000331352.jpg), which reorders nearly-tied detections and toggles borderline detections near0.05._assert_labels_matchto compare parsed detection label lists using an exact top-5 match plus>= 0.8multiset IoU, keeping the assertion meaningful across Pillow 10–13 without mutating the shared GCS golden files used by older release branches.(Note: the 15 missing COCO
val2017JPEG inputs referenced bygs://apache-beam-ml/testing/inputs/it_coco_validation_inputs.txthave also been restored togs://apache-beam-ml/datasets/coco/raw-data/val2017/.)Verification
direct:py313:torchInferenceTest(5/5 passed) locally and in PostCommit Python (3.13) run 45406881889 on Re-enable Direct and Dataflow inferencePostCommitIT in python313PostCommit #41595.Part of the stack leading up to re-enabling Python 3.13
inferencePostCommitITin #41595 (independent of the other prerequisite PRs; can be merged in any order).