From d0dfa6fcd2c158fd2652a44ec8600ddcf5ae9a97 Mon Sep 17 00:00:00 2001 From: VVsssssk Date: Thu, 7 Apr 2022 11:37:18 +0800 Subject: [PATCH 1/2] fix browse dataset and mmcv max version --- mmdet3d/__init__.py | 2 +- tools/misc/browse_dataset.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mmdet3d/__init__.py b/mmdet3d/__init__.py index da9fb30a9c..a5d0b292d8 100644 --- a/mmdet3d/__init__.py +++ b/mmdet3d/__init__.py @@ -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__) diff --git a/tools/misc/browse_dataset.py b/tools/misc/browse_dataset.py index 3c627c0808..1efa6c595d 100644 --- a/tools/misc/browse_dataset.py +++ b/tools/misc/browse_dataset.py @@ -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.insert(i, cfg.train_pipeline[i]) train_data_cfg['pipeline'] = [ x for x in show_pipeline if x['type'] not in skip_type From bf049a050b704195cbee4574136ada984f6c4a5a Mon Sep 17 00:00:00 2001 From: VVsssssk Date: Thu, 7 Apr 2022 11:49:05 +0800 Subject: [PATCH 2/2] fix code --- tools/misc/browse_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/browse_dataset.py b/tools/misc/browse_dataset.py index 1efa6c595d..e4451b124c 100644 --- a/tools/misc/browse_dataset.py +++ b/tools/misc/browse_dataset.py @@ -84,7 +84,7 @@ def build_data_cfg(config_path, skip_type, aug, cfg_options): if show_pipeline[-1]['type'] == 'Collect3D': show_pipeline[-1] = cfg.train_pipeline[i] else: - show_pipeline.insert(i, cfg.train_pipeline[i]) + show_pipeline.append(cfg.train_pipeline[i]) train_data_cfg['pipeline'] = [ x for x in show_pipeline if x['type'] not in skip_type