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
e387ec62
"git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "6cd230712b95c81cf3d0fc50000fb9618494b5de"
Commit
e387ec62
authored
May 08, 2020
by
liyinhao
Browse files
change test get, change registry to builder
parent
e0d892c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
mmdet3d/datasets/pipelines/indoor_loading.py
mmdet3d/datasets/pipelines/indoor_loading.py
+1
-1
tests/test_indoor_loading.py
tests/test_indoor_loading.py
+7
-7
No files found.
mmdet3d/datasets/pipelines/indoor_loading.py
View file @
e387ec62
...
@@ -2,7 +2,7 @@ import os.path as osp
...
@@ -2,7 +2,7 @@ import os.path as osp
import
numpy
as
np
import
numpy
as
np
from
mmdet.datasets.
registry
import
PIPELINES
from
mmdet.datasets.
builder
import
PIPELINES
@
PIPELINES
.
register_module
()
@
PIPELINES
.
register_module
()
...
...
tests/test_indoor_loading.py
View file @
e387ec62
...
@@ -17,7 +17,7 @@ def test_load_points_from_file():
...
@@ -17,7 +17,7 @@ def test_load_points_from_file():
sunrgbd_results
[
'pts_filename'
]
=
osp
.
join
(
data_path
,
'lidar'
,
sunrgbd_results
[
'pts_filename'
]
=
osp
.
join
(
data_path
,
'lidar'
,
'%06d.npy'
%
scan_name
)
'%06d.npy'
%
scan_name
)
sunrgbd_results
=
sunrgbd_load_points_from_file
(
sunrgbd_results
)
sunrgbd_results
=
sunrgbd_load_points_from_file
(
sunrgbd_results
)
sunrgbd_point_cloud
=
sunrgbd_results
.
get
(
'points'
,
None
)
sunrgbd_point_cloud
=
sunrgbd_results
[
'points'
]
assert
sunrgbd_point_cloud
.
shape
==
(
100
,
4
)
assert
sunrgbd_point_cloud
.
shape
==
(
100
,
4
)
scannet_info
=
mmcv
.
load
(
'./tests/data/scannet/scannet_infos.pkl'
)
scannet_info
=
mmcv
.
load
(
'./tests/data/scannet/scannet_infos.pkl'
)
...
@@ -31,7 +31,7 @@ def test_load_points_from_file():
...
@@ -31,7 +31,7 @@ def test_load_points_from_file():
scannet_results
[
'pts_filename'
]
=
osp
.
join
(
data_path
,
scannet_results
[
'pts_filename'
]
=
osp
.
join
(
data_path
,
scan_name
+
'_vert.npy'
)
scan_name
+
'_vert.npy'
)
scannet_results
=
scannet_load_data
(
scannet_results
)
scannet_results
=
scannet_load_data
(
scannet_results
)
scannet_point_cloud
=
scannet_results
.
get
(
'points'
,
None
)
scannet_point_cloud
=
scannet_results
[
'points'
]
assert
scannet_point_cloud
.
shape
==
(
100
,
4
)
assert
scannet_point_cloud
.
shape
==
(
100
,
4
)
...
@@ -71,11 +71,11 @@ def test_load_annotations3D():
...
@@ -71,11 +71,11 @@ def test_load_annotations3D():
scannet_results
[
'gt_labels'
]
=
scannet_gt_labels
scannet_results
[
'gt_labels'
]
=
scannet_gt_labels
scannet_results
[
'gt_bboxes_3d_mask'
]
=
scannet_gt_bboxes_3d_mask
scannet_results
[
'gt_bboxes_3d_mask'
]
=
scannet_gt_bboxes_3d_mask
scannet_results
=
scannet_load_annotations3D
(
scannet_results
)
scannet_results
=
scannet_load_annotations3D
(
scannet_results
)
scannet_gt_boxes
=
scannet_results
.
get
(
'gt_bboxes_3d'
,
None
)
scannet_gt_boxes
=
scannet_results
[
'gt_bboxes_3d'
]
scannet_gt_lbaels
=
scannet_results
.
get
(
'gt_labels'
,
None
)
scannet_gt_lbaels
=
scannet_results
[
'gt_labels'
]
scannet_gt_boxes_mask
=
scannet_results
.
get
(
'gt_bboxes_3d_mask'
,
None
)
scannet_gt_boxes_mask
=
scannet_results
[
'gt_bboxes_3d_mask'
]
scannet_pts_instance_mask
=
scannet_results
.
get
(
'pts_instance_mask'
,
None
)
scannet_pts_instance_mask
=
scannet_results
[
'pts_instance_mask'
]
scannet_pts_semantic_mask
=
scannet_results
.
get
(
'pts_semantic_mask'
,
None
)
scannet_pts_semantic_mask
=
scannet_results
[
'pts_semantic_mask'
]
assert
scannet_gt_boxes
.
shape
==
(
27
,
6
)
assert
scannet_gt_boxes
.
shape
==
(
27
,
6
)
assert
scannet_gt_lbaels
.
shape
==
(
27
,
1
)
assert
scannet_gt_lbaels
.
shape
==
(
27
,
1
)
assert
scannet_gt_boxes_mask
.
shape
==
(
27
,
1
)
assert
scannet_gt_boxes_mask
.
shape
==
(
27
,
1
)
...
...
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