-
-
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
Add keypoints to 3d #2217
Add keypoints to 3d #2217
Conversation
Reviewer's Guide by SourceryThis pull request adds keypoint support to various 3D augmentations, ensuring keypoint positions are correctly updated after transformations like padding, cropping, and rotations. It also introduces a new function to filter keypoints located within specified 3D holes/bounding boxes. Sequence diagram for keypoint filtering in CoarseDropout3DsequenceDiagram
participant T as Transform
participant F as filter_keypoints_in_holes3d
participant K as Keypoints
T->>F: Pass keypoints and holes
F->>K: Check keypoint positions
Note over F,K: Compare each keypoint against hole boundaries
F-->>T: Return filtered keypoints
Note over T: Only keypoints outside
Note over T: holes are preserved
Class diagram showing updated Transform3D hierarchy with keypoint supportclassDiagram
class Transform3D {
+apply_to_volume()
+apply_to_mask3d()
+apply_to_keypoints()
}
class BasePad3D {
-_targets: (VOLUME, MASK3D, KEYPOINTS)
+apply_to_keypoints()
}
class BaseCropAndPad3D {
-_targets: (VOLUME, MASK3D, KEYPOINTS)
+apply_to_keypoints()
}
class CoarseDropout3D {
-_targets: (VOLUME, MASK3D, KEYPOINTS)
+apply_to_keypoints()
}
class CubicSymmetry {
-_targets: (VOLUME, MASK3D, KEYPOINTS)
+apply_to_keypoints()
}
Transform3D <|-- BasePad3D
Transform3D <|-- BaseCropAndPad3D
Transform3D <|-- CoarseDropout3D
Transform3D <|-- CubicSymmetry
note for Transform3D "Added keypoints support"
note for BasePad3D "Handles keypoint shifting during padding"
note for BaseCropAndPad3D "Handles keypoint transformation during crop/pad"
note for CoarseDropout3D "Filters keypoints in dropout regions"
note for CubicSymmetry "Transforms keypoints during cube rotations"
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: 2 issues found
- 🟢 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 #2217 +/- ##
=========================================
+ Coverage 0 89.81% +89.81%
=========================================
Files 0 50 +50
Lines 0 9095 +9095
=========================================
+ Hits 0 8169 +8169
- Misses 0 926 +926 ☔ View full report in Codecov by Sentry. |
Summary by Sourcery
New Features: