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
ae0d138d
Commit
ae0d138d
authored
May 15, 2020
by
liyinhao
Browse files
fix merge bug
parent
bd20e7b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
tests/test_scannet_dataset.py
tests/test_scannet_dataset.py
+5
-5
tests/test_sunrgbd_dataset.py
tests/test_sunrgbd_dataset.py
+1
-1
No files found.
tests/test_scannet_dataset.py
View file @
ae0d138d
...
...
@@ -25,7 +25,7 @@ def test_getitem():
dict
(
type
=
'IndoorGlobalRotScale'
,
use_height
=
True
,
rot_range
=
[
-
np
.
pi
*
1
/
36
,
np
.
pi
*
1
/
36
],
rot_range
=
[
-
1
/
36
,
1
/
36
],
scale_range
=
None
),
dict
(
type
=
'DefaultFormatBundle3D'
,
class_names
=
class_names
),
dict
(
...
...
@@ -41,8 +41,8 @@ def test_getitem():
points
=
data
[
'points'
].
_data
gt_bboxes_3d
=
data
[
'gt_bboxes_3d'
].
_data
gt_labels
=
data
[
'gt_labels'
].
_data
pts_semantic_mask
=
data
[
'pts_semantic_mask'
]
pts_instance_mask
=
data
[
'pts_instance_mask'
]
pts_semantic_mask
=
data
[
'pts_semantic_mask'
]
.
_data
pts_instance_mask
=
data
[
'pts_instance_mask'
]
.
_data
expected_points
=
np
.
array
(
[[
-
2.9078157
,
-
1.9569951
,
2.3543026
,
2.389488
],
...
...
@@ -68,8 +68,8 @@ def test_getitem():
assert
gt_bboxes_3d
[:
5
].
shape
==
(
5
,
6
)
assert
np
.
allclose
(
gt_bboxes_3d
[:
5
],
expected_gt_bboxes_3d
)
assert
np
.
all
(
gt_labels
.
numpy
()
==
expected_gt_labels
)
assert
np
.
all
(
pts_semantic_mask
==
expected_pts_semantic_mask
)
assert
np
.
all
(
pts_instance_mask
==
expected_pts_instance_mask
)
assert
np
.
all
(
pts_semantic_mask
.
numpy
()
==
expected_pts_semantic_mask
)
assert
np
.
all
(
pts_instance_mask
.
numpy
()
==
expected_pts_instance_mask
)
def
test_evaluate
():
...
...
tests/test_sunrgbd_dataset.py
View file @
ae0d138d
...
...
@@ -21,7 +21,7 @@ def test_getitem():
dict
(
type
=
'IndoorGlobalRotScale'
,
use_height
=
True
,
rot_range
=
[
-
np
.
pi
/
6
,
np
.
pi
/
6
],
rot_range
=
[
-
1
/
6
,
1
/
6
],
scale_range
=
[
0.85
,
1.15
]),
dict
(
type
=
'IndoorPointSample'
,
num_points
=
5
),
dict
(
type
=
'DefaultFormatBundle3D'
,
class_names
=
class_names
),
...
...
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