Commit 36c6fd4
Add egocentric rotation support to centroid cropping inference
Extends centroid cropping with optional orientation-based rotation during inference. Images and keypoints are rotated to align orientation anchor points along the positive x-axis before cropping, then predictions are inverse-rotated back to original orientation.
Key changes:
- Add orientation_anchor_parts parameter to inference pipeline
- Apply egocentric rotation per instance in CentroidCrop
- Store rotation angles and apply inverse rotation in FindInstancePeaks
- Fix coordinate transformation from crop to full image space
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent be15732 commit 36c6fd4
File tree
6 files changed
+2548
-2218
lines changed- sleap_nn
- data
- inference
- training
6 files changed
+2548
-2218
lines changed
0 commit comments