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
mmdetection3d
Commits
e3b5253b
Commit
e3b5253b
authored
May 24, 2022
by
ZCMax
Committed by
ChaimZhu
Jul 20, 2022
Browse files
Update all registries and fix some ut problems
parent
8dd8da12
Changes
122
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
tests/test_core/test_bbox/test_bbox_coders.py
tests/test_core/test_bbox/test_bbox_coders.py
+1
-1
tests/test_utils/test_setup_env.py
tests/test_utils/test_setup_env.py
+5
-5
No files found.
tests/test_core/test_bbox/test_bbox_coders.py
View file @
e3b5253b
...
...
@@ -4,9 +4,9 @@ import torch
from
mmcv.cnn
import
Scale
from
torch
import
nn
as
nn
from
mmdet3d.core
import
build_bbox_coder
from
mmdet3d.core.bbox
import
(
CameraInstance3DBoxes
,
DepthInstance3DBoxes
,
LiDARInstance3DBoxes
)
from
mmdet.core
import
build_bbox_coder
def
test_partial_bin_based_box_coder
():
...
...
tests/test_utils/test_setup_env.py
View file @
e3b5253b
...
...
@@ -12,14 +12,14 @@ from mmdet3d.utils import register_all_modules, setup_multi_processes
def
test_register_all_modules
():
from
mmdet3d.registry
import
TRANSFORM
S
from
mmdet3d.registry
import
DATASET
S
sys
.
modules
.
pop
(
'mmdet3d.datasets'
,
None
)
sys
.
modules
.
pop
(
'mmdet3d.datasets.
pipelines
'
,
None
)
TRANSFORM
S
.
_module_dict
.
pop
(
'
PointSample
'
,
None
)
assert
'
PointSample'
not
in
TRANSFORM
S
.
module_dict
sys
.
modules
.
pop
(
'mmdet3d.datasets.
kitti_dataset
'
,
None
)
DATASET
S
.
_module_dict
.
pop
(
'
KittiDataset
'
,
None
)
assert
'
KittiDataset'
not
in
DATASET
S
.
module_dict
register_all_modules
(
init_default_scope
=
True
)
assert
'
PointSample'
in
TRANSFORM
S
.
module_dict
assert
'
KittiDataset'
in
DATASET
S
.
module_dict
assert
DefaultScope
.
get_current_instance
().
scope_name
==
'mmdet3d'
...
...
Prev
1
…
3
4
5
6
7
Next
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