Refactor Object Detection Transforms#835
Open
yutong-xiang-97 wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
/review |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What has changed and why?
Refactored the LT-DETR object detection transform implementation into a shared
ltdetr_transformspackage with separate base, object detection, and utility modules. Updates all the relevant task model call sites to use the new structure while preserving the existing object detection behavior.The new structure is split as follows:
ltdetr_transforms/base.pycontains the shared LT-DETR transform argument model, common transform pipeline construction, mosaic activation handling, and collate-function behavior that can be reused by LT-DETR-style tasks.ltdetr_transforms/object_detection.pycontains the object-detection-specific input/output types, transform subclass, mixup/copyblend/scale-jitter handling, bbox normalization, degenerate-box filtering, and batch transform wiring.ltdetr_transforms/utils.pycontains reusable helper functions for image-size resolution, activation schedules, albumentations transform ordering, bbox conversion/filtering, and normalization.Also refactored the unit test accordingly.
How has it been tested?
Parity verified by AI.
Did you update CHANGELOG.md?
Did you update the documentation?