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
22fdfde6
Unverified
Commit
22fdfde6
authored
Apr 08, 2022
by
VVsssssk
Committed by
GitHub
Apr 08, 2022
Browse files
[Fix]fix browse dataset and mmcv max version (#1376)
* fix browse dataset and mmcv max version * fix code
parent
f747daab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
mmdet3d/__init__.py
mmdet3d/__init__.py
+1
-1
tools/misc/browse_dataset.py
tools/misc/browse_dataset.py
+6
-0
No files found.
mmdet3d/__init__.py
View file @
22fdfde6
...
@@ -19,7 +19,7 @@ def digit_version(version_str):
...
@@ -19,7 +19,7 @@ def digit_version(version_str):
mmcv_minimum_version
=
'1.4.8'
mmcv_minimum_version
=
'1.4.8'
mmcv_maximum_version
=
'1.
5
.0'
mmcv_maximum_version
=
'1.
6
.0'
mmcv_version
=
digit_version
(
mmcv
.
__version__
)
mmcv_version
=
digit_version
(
mmcv
.
__version__
)
...
...
tools/misc/browse_dataset.py
View file @
22fdfde6
...
@@ -79,6 +79,12 @@ def build_data_cfg(config_path, skip_type, aug, cfg_options):
...
@@ -79,6 +79,12 @@ def build_data_cfg(config_path, skip_type, aug, cfg_options):
for
i
in
range
(
len
(
cfg
.
train_pipeline
)):
for
i
in
range
(
len
(
cfg
.
train_pipeline
)):
if
cfg
.
train_pipeline
[
i
][
'type'
]
==
'LoadAnnotations3D'
:
if
cfg
.
train_pipeline
[
i
][
'type'
]
==
'LoadAnnotations3D'
:
show_pipeline
.
insert
(
i
,
cfg
.
train_pipeline
[
i
])
show_pipeline
.
insert
(
i
,
cfg
.
train_pipeline
[
i
])
# Collect points as well as labels
if
cfg
.
train_pipeline
[
i
][
'type'
]
==
'Collect3D'
:
if
show_pipeline
[
-
1
][
'type'
]
==
'Collect3D'
:
show_pipeline
[
-
1
]
=
cfg
.
train_pipeline
[
i
]
else
:
show_pipeline
.
append
(
cfg
.
train_pipeline
[
i
])
train_data_cfg
[
'pipeline'
]
=
[
train_data_cfg
[
'pipeline'
]
=
[
x
for
x
in
show_pipeline
if
x
[
'type'
]
not
in
skip_type
x
for
x
in
show_pipeline
if
x
[
'type'
]
not
in
skip_type
...
...
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