-
Notifications
You must be signed in to change notification settings - Fork 675
[Fix] swap width and height in Resize and Pad according to upstream codebases #2063
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 ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #2063 +/- ##
=======================================
Coverage 49.70% 49.70%
=======================================
Files 339 339
Lines 12976 12976
Branches 1900 1900
=======================================
Hits 6450 6450
Misses 6077 6077
Partials 449 449
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@AllentDan CI of test mmpretrain full pipeline failed. |
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.
LGTM
data["pad_fixed_size"].push_back(size_[1]); | ||
data["pad_fixed_size"].push_back(size_[0]); |
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.
pad_fixed_size seems to be in (w,h) format, although it is not used elsewhere
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.
That's weird. In mmcv's document, pad_shape is formed with (height, width) which should be self.size here.
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.
https://mmcv.readthedocs.io/en/2.x/understand_mmcv/data_transform.html