Skip to content

Commit

Permalink
[Fix]fix browse dataset and mmcv max version (#1376)
Browse files Browse the repository at this point in the history
* fix browse dataset and mmcv max version

* fix code
  • Loading branch information
VVsssssk authored Apr 8, 2022
1 parent f747daa commit 22fdfde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def digit_version(version_str):


mmcv_minimum_version = '1.4.8'
mmcv_maximum_version = '1.5.0'
mmcv_maximum_version = '1.6.0'
mmcv_version = digit_version(mmcv.__version__)


Expand Down
6 changes: 6 additions & 0 deletions tools/misc/browse_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def build_data_cfg(config_path, skip_type, aug, cfg_options):
for i in range(len(cfg.train_pipeline)):
if cfg.train_pipeline[i]['type'] == 'LoadAnnotations3D':
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'] = [
x for x in show_pipeline if x['type'] not in skip_type
Expand Down

0 comments on commit 22fdfde

Please sign in to comment.