Repository navigation
Fail MMSeg evaluation on invalid ground truth - #3198
dajiaohuang wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesMMSeg mask error handling
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Invalid ground-truth masks now stop evaluation rather than allowing misaligned scoring. No merge-blocking issue is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks each mask in line, Comment |
|
This changes behavior in a maintenance-only integration (MM/Labelbox/COCO) rather than fixing a defect, and it has no owner review or integration run behind it. Holding it: it needs the integration owner to decide whether the new behavior is wanted. No action needed from you now. |
Fixes #3197.
MMSeg evaluation needs one ground-truth mask per prediction. Stop swallowing mask read/conversion failures in
get_gt_seg_maps; the previous skip/reuse behavior could shift prediction-to-mask alignment or score an incorrect repeated mask. Raise the existing typedInvalidSegmentErrorwith the mask column name.Validation:
git diff --check: passed.The host does not have MMSeg/MMCV installed; the exact generator method was exercised from source with a mocked mask column.
Summary by CodeRabbit