Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
16071ed0
Unverified
Commit
16071ed0
authored
Sep 04, 2020
by
Wenwei Zhang
Committed by
GitHub
Sep 04, 2020
Browse files
[Fix]: fix missing pad_val in impad_to_multiple (#539)
parent
0664f9b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/image/geometric.py
mmcv/image/geometric.py
+1
-1
No files found.
mmcv/image/geometric.py
View file @
16071ed0
...
@@ -459,7 +459,7 @@ def impad_to_multiple(img, divisor, pad_val=0):
...
@@ -459,7 +459,7 @@ def impad_to_multiple(img, divisor, pad_val=0):
"""
"""
pad_h
=
int
(
np
.
ceil
(
img
.
shape
[
0
]
/
divisor
))
*
divisor
pad_h
=
int
(
np
.
ceil
(
img
.
shape
[
0
]
/
divisor
))
*
divisor
pad_w
=
int
(
np
.
ceil
(
img
.
shape
[
1
]
/
divisor
))
*
divisor
pad_w
=
int
(
np
.
ceil
(
img
.
shape
[
1
]
/
divisor
))
*
divisor
return
impad
(
img
,
shape
=
(
pad_h
,
pad_w
))
return
impad
(
img
,
shape
=
(
pad_h
,
pad_w
)
,
pad_val
=
pad_val
)
def
_get_shear_matrix
(
magnitude
,
direction
=
'horizontal'
):
def
_get_shear_matrix
(
magnitude
,
direction
=
'horizontal'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment