-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Feature] Add ResizeShortestEdge transform #2339
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
Conversation
Codecov ReportBase: 83.64% // Head: 83.19% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-1.x #2339 +/- ##
===========================================
- Coverage 83.64% 83.19% -0.45%
===========================================
Files 141 141
Lines 7973 7998 +25
Branches 1193 1198 +5
===========================================
- Hits 6669 6654 -15
- Misses 1115 1158 +43
+ Partials 189 186 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
* init * add ut * use mmcv.RandomChoiceResize as entry * minor change * add docstring * fix h,w order * update copyright
[Feature] Add ResizeShortestEdge transform
Motivation
Support resize shortest edge while keeping the aspect ratio unchanged.
Modifed from https://github.com/facebookresearch/detectron2/blob/main/detectron2/data/transforms/augmentation_impl.py#L130
Modification
ResizeShortestEdgeto mmseg/datasets/transforms/transforms.pyBC-breaking (Optional)
Depend on
mmcv >= 2.0.0rc3Use cases (Optional)
At
train_pipeline: