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
39eb4ec6
Commit
39eb4ec6
authored
Jun 17, 2022
by
liyining
Committed by
zhouzaida
Jul 19, 2022
Browse files
Fix typos in processing.py
parent
a1fb0022
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmcv/transforms/processing.py
mmcv/transforms/processing.py
+3
-3
No files found.
mmcv/transforms/processing.py
View file @
39eb4ec6
...
...
@@ -1086,12 +1086,12 @@ class RandomFlip(BaseTransform):
else
:
raise
ValueError
(
f
"Flipping direction must be 'horizontal', 'vertical',
\
or 'diagnal', but got '
{
direction
}
'"
)
or 'diag
o
nal', but got '
{
direction
}
'"
)
return
flipped
def
flip_keypoints
(
self
,
keypoints
:
np
.
ndarray
,
img_shape
:
Tuple
[
int
,
int
],
direction
:
str
)
->
np
.
ndarray
:
"""Flip keypoints horizontally, vertically or diagnally.
"""Flip keypoints horizontally, vertically or diag
o
nally.
Args:
keypoints (numpy.ndarray): Keypoints, shape (..., 2)
...
...
@@ -1116,7 +1116,7 @@ class RandomFlip(BaseTransform):
else
:
raise
ValueError
(
f
"Flipping direction must be 'horizontal', 'vertical',
\
or 'diagnal', but got '
{
direction
}
'"
)
or 'diag
o
nal', but got '
{
direction
}
'"
)
flipped
=
np
.
concatenate
([
keypoints
,
meta_info
],
axis
=-
1
)
return
flipped
...
...
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