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
eb3bd34c
"vscode:/vscode.git/clone" did not exist on "638120ca9b7478cb9af1c394e23172161dcfa710"
Commit
eb3bd34c
authored
May 24, 2022
by
ly015
Committed by
zhouzaida
Jul 19, 2022
Browse files
fix incorrect remapping of ellipsis
parent
a7106c6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mmcv/transforms/wrappers.py
mmcv/transforms/wrappers.py
+7
-1
No files found.
mmcv/transforms/wrappers.py
View file @
eb3bd34c
...
...
@@ -291,7 +291,13 @@ class KeyMapper(BaseTransform):
results
.
update
(
_map
(
d_i
,
m_i
))
return
results
if
m
is
IgnoreKey
:
# ``m is ...`` means the key is marked ignored, in which case the
# inner resuls will not affect the outer results in remapping.
# Another case that will have ``data is IgnoreKey`` is that the
# key is missing in the inputs. In this case, if the inner key is
# created by the wrapped transforms, it will be remapped to the
# corresponding outer key during remapping.
if
m
is
...
or
data
is
IgnoreKey
:
return
{}
return
{
m
:
data
}
...
...
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