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
d59c3be9
Commit
d59c3be9
authored
May 04, 2022
by
ZwwWayne
Committed by
zhouzaida
Jul 19, 2022
Browse files
Use mmengine registry and fix the LoadAnnotations not in registry
parent
ab0aa4ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
mmcv/transforms/builder.py
mmcv/transforms/builder.py
+1
-3
mmcv/transforms/loading.py
mmcv/transforms/loading.py
+1
-0
No files found.
mmcv/transforms/builder.py
View file @
d59c3be9
# Copyright (c) OpenMMLab. All rights reserved.
# Copyright (c) OpenMMLab. All rights reserved.
from
..utils.registry
import
Registry
from
mmengine.registry
import
TRANSFORMS
TRANSFORMS
=
Registry
(
'transform'
)
mmcv/transforms/loading.py
View file @
d59c3be9
...
@@ -84,6 +84,7 @@ class LoadImageFromFile(BaseTransform):
...
@@ -84,6 +84,7 @@ class LoadImageFromFile(BaseTransform):
return
repr_str
return
repr_str
@
TRANSFORMS
.
register_module
()
class
LoadAnnotations
(
BaseTransform
):
class
LoadAnnotations
(
BaseTransform
):
"""Load and process the ``instances`` and ``seg_map`` annotation provided
"""Load and process the ``instances`` and ``seg_map`` annotation provided
by dataset.
by dataset.
...
...
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