-
-
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
More cleanup #2265
More cleanup #2265
Conversation
Reviewer's Guide by SourceryThis PR removes unused code and simplifies some logic related to image augmentations. It also updates tests to reflect these changes and removes some outdated test files. Class diagram showing changes to image augmentation classesclassDiagram
class CustomTransform {
-custom_apply_fns
+__init__(p, name, image, mask, keypoints, bboxes)
}
note for CustomTransform "Removed global_label from custom_apply_fns"
class RingingOvershoot {
+InitSchema
+__init__()
}
note for RingingOvershoot "Simplified cutoff validation using AfterValidator"
class Spatter {
+InitSchema
-mean
-std
-gauss_sigma
-cutout_threshold
-intensity
-mode
-color
}
note for Spatter "Removed default values from InitSchema parameters"
class AutoContrast {
+__init__(p)
}
note for AutoContrast "Removed empty InitSchema class"
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 - here's some feedback:
Overall Comments:
- The removal of keypoint dropout functionality in apply_to_keypoints() appears to be a breaking change rather than cleanup. Consider handling this in a separate PR with proper deprecation notices.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2265 +/- ##
=========================================
+ Coverage 0 89.72% +89.72%
=========================================
Files 0 50 +50
Lines 0 8829 +8829
=========================================
+ Hits 0 7922 +7922
- Misses 0 907 +907
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Summary by Sourcery
Remove deprecated parameters and files, update default parameter values, and fix type annotations.