Repository navigation
Handle empty per-image boxes in MMDetection COCO conversion - #3271
dajiaohuang wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe Pascal fractional and YOLO pixel box converters now assign an empty ChangesEmpty Box Converters
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Boxless images in mixed datasets now produce empty results instead of failing or reusing stale boxes. No introduced merge-blocking risk is evident. 🚥 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 box with care, Comment |
Impact: Bug fix. ### Description: Fixes #3266. Initialize an empty (0, 4) box result for images with no boxes in the two affected converters, preventing unbound locals and stale boxes from a previous image. Validation: git diff --check passed. No tests or builds were run per assignment. ### Things to be aware of: The fix is scoped to the reported call path and preserves the existing API. ### Things to worry about: Tests and runtime validation were not run. ### Additional Context: No additional dependency or migration changes.
Summary by CodeRabbit