-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Added filtering on accept ratio #2311
Conversation
Reviewer's Guide by SourceryThis pull request introduces a new Class diagram showing updated BboxParams classclassDiagram
class BboxParams {
+str format
+float min_area
+float min_visibility
+float min_width
+float min_height
+bool check_each_transform
+bool clip
+bool filter_invalid_bboxes
+float|None max_accept_ratio
+__init__(format, label_fields, min_area, min_visibility, min_width, min_height, check_each_transform, clip, filter_invalid_bboxes, max_accept_ratio)
+to_dict_private() dict
}
note for BboxParams "Added max_accept_ratio parameter
to filter boxes by aspect ratio"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ternaus - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2311 +/- ##
=========================================
+ Coverage 0 89.82% +89.82%
=========================================
Files 0 50 +50
Lines 0 9024 +9024
=========================================
+ Hits 0 8106 +8106
- Misses 0 918 +918
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Fixes: #2308
Summary by Sourcery
Add filtering of bounding boxes by aspect ratio.
New Features:
max_accept_ratio
parameter toBboxParams
to control the filtering of bounding boxes based on their aspect ratio.Tests: