-
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
[Enhancement] Support resize or rescale to multiple #1121
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1121 +/- ##
==========================================
+ Coverage 67.64% 67.72% +0.08%
==========================================
Files 159 159
Lines 10295 10315 +20
Branches 1858 1865 +7
==========================================
+ Hits 6964 6986 +22
+ Misses 2965 2964 -1
+ Partials 366 365 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
LGTM, can be merged if @xvjiarui has no further comments. |
Motivation
To meet the requirement of some networks that the size of the input image should be multiple to the divisor
Modification
Add
divisor
argument toimresize
andimrescale
inmmcv.image
.This argument rounds up the resized or rescaled image size to the nearest value that can be divisible by the divisor.