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
90e3b50e
Commit
90e3b50e
authored
May 14, 2020
by
liyinhao
Browse files
delete keys
parent
72350b2d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
mmdet3d/datasets/indoor_base_dataset.py
mmdet3d/datasets/indoor_base_dataset.py
+0
-3
mmdet3d/datasets/scannet_dataset.py
mmdet3d/datasets/scannet_dataset.py
+2
-3
mmdet3d/datasets/sunrgbd_dataset.py
mmdet3d/datasets/sunrgbd_dataset.py
+2
-3
tests/test_scannet_dataset.py
tests/test_scannet_dataset.py
+1
-1
tests/test_sunrgbd_dataset.py
tests/test_sunrgbd_dataset.py
+1
-1
No files found.
mmdet3d/datasets/indoor_base_dataset.py
View file @
90e3b50e
...
@@ -15,7 +15,6 @@ class IndoorBaseDataset(torch_data.Dataset):
...
@@ -15,7 +15,6 @@ class IndoorBaseDataset(torch_data.Dataset):
root_path
,
root_path
,
ann_file
,
ann_file
,
pipeline
=
None
,
pipeline
=
None
,
training
=
False
,
classes
=
None
,
classes
=
None
,
test_mode
=
False
,
test_mode
=
False
,
with_label
=
True
):
with_label
=
True
):
...
@@ -23,8 +22,6 @@ class IndoorBaseDataset(torch_data.Dataset):
...
@@ -23,8 +22,6 @@ class IndoorBaseDataset(torch_data.Dataset):
self
.
root_path
=
root_path
self
.
root_path
=
root_path
self
.
CLASSES
=
classes
if
classes
else
self
.
CLASSES
self
.
CLASSES
=
classes
if
classes
else
self
.
CLASSES
self
.
test_mode
=
test_mode
self
.
test_mode
=
test_mode
self
.
training
=
training
self
.
mode
=
'TRAIN'
if
self
.
training
else
'TEST'
self
.
label2cat
=
{
i
:
cat_id
for
i
,
cat_id
in
enumerate
(
self
.
CLASSES
)}
self
.
label2cat
=
{
i
:
cat_id
for
i
,
cat_id
in
enumerate
(
self
.
CLASSES
)}
mmcv
.
check_file_exist
(
ann_file
)
mmcv
.
check_file_exist
(
ann_file
)
self
.
data_infos
=
mmcv
.
load
(
ann_file
)
self
.
data_infos
=
mmcv
.
load
(
ann_file
)
...
...
mmdet3d/datasets/scannet_dataset.py
View file @
90e3b50e
...
@@ -18,12 +18,11 @@ class ScannetBaseDataset(IndoorBaseDataset):
...
@@ -18,12 +18,11 @@ class ScannetBaseDataset(IndoorBaseDataset):
root_path
,
root_path
,
ann_file
,
ann_file
,
pipeline
=
None
,
pipeline
=
None
,
training
=
False
,
classes
=
None
,
classes
=
None
,
test_mode
=
False
,
test_mode
=
False
,
with_label
=
True
):
with_label
=
True
):
super
().
__init__
(
root_path
,
ann_file
,
pipeline
,
training
,
classes
,
super
().
__init__
(
root_path
,
ann_file
,
pipeline
,
classes
,
test_mode
,
test_mode
,
with_label
)
with_label
)
self
.
data_path
=
osp
.
join
(
root_path
,
'scannet_train_instance_data'
)
self
.
data_path
=
osp
.
join
(
root_path
,
'scannet_train_instance_data'
)
...
...
mmdet3d/datasets/sunrgbd_dataset.py
View file @
90e3b50e
...
@@ -16,12 +16,11 @@ class SunrgbdBaseDataset(IndoorBaseDataset):
...
@@ -16,12 +16,11 @@ class SunrgbdBaseDataset(IndoorBaseDataset):
root_path
,
root_path
,
ann_file
,
ann_file
,
pipeline
=
None
,
pipeline
=
None
,
training
=
False
,
classes
=
None
,
classes
=
None
,
test_mode
=
False
,
test_mode
=
False
,
with_label
=
True
):
with_label
=
True
):
super
().
__init__
(
root_path
,
ann_file
,
pipeline
,
training
,
classes
,
super
().
__init__
(
root_path
,
ann_file
,
pipeline
,
classes
,
test_mode
,
test_mode
,
with_label
)
with_label
)
self
.
data_path
=
osp
.
join
(
root_path
,
'sunrgbd_trainval'
)
self
.
data_path
=
osp
.
join
(
root_path
,
'sunrgbd_trainval'
)
def
_get_pts_filename
(
self
,
sample_idx
):
def
_get_pts_filename
(
self
,
sample_idx
):
...
...
tests/test_scannet_dataset.py
View file @
90e3b50e
...
@@ -36,7 +36,7 @@ def test_getitem():
...
@@ -36,7 +36,7 @@ def test_getitem():
]),
]),
]
]
scannet_dataset
=
ScannetBaseDataset
(
root_path
,
ann_file
,
pipelines
,
True
)
scannet_dataset
=
ScannetBaseDataset
(
root_path
,
ann_file
,
pipelines
)
data
=
scannet_dataset
[
0
]
data
=
scannet_dataset
[
0
]
points
=
data
[
'points'
].
_data
points
=
data
[
'points'
].
_data
gt_bboxes_3d
=
data
[
'gt_bboxes_3d'
].
_data
gt_bboxes_3d
=
data
[
'gt_bboxes_3d'
].
_data
...
...
tests/test_sunrgbd_dataset.py
View file @
90e3b50e
...
@@ -28,7 +28,7 @@ def test_getitem():
...
@@ -28,7 +28,7 @@ def test_getitem():
dict
(
type
=
'Collect3D'
,
keys
=
[
'points'
,
'gt_bboxes_3d'
,
'gt_labels'
]),
dict
(
type
=
'Collect3D'
,
keys
=
[
'points'
,
'gt_bboxes_3d'
,
'gt_labels'
]),
]
]
sunrgbd_dataset
=
SunrgbdBaseDataset
(
root_path
,
ann_file
,
pipelines
,
True
)
sunrgbd_dataset
=
SunrgbdBaseDataset
(
root_path
,
ann_file
,
pipelines
)
data
=
sunrgbd_dataset
[
0
]
data
=
sunrgbd_dataset
[
0
]
points
=
data
[
'points'
].
_data
points
=
data
[
'points'
].
_data
gt_bboxes_3d
=
data
[
'gt_bboxes_3d'
].
_data
gt_bboxes_3d
=
data
[
'gt_bboxes_3d'
].
_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