(rm) coop8@adlab8:~/heci1/rcbevdet-master$ python tools/create_data_nuscenes_RC.py
Traceback (most recent call last):
File "tools/create_data_nuscenes_RC.py", line 13, in <module>
from data_converter import nuscenes_converter_RC as nuscenes_converter
File "/home/coop8/heci1/rcbevdet-master/tools/data_converter/nuscenes_converter_RC.py", line 20, in <
module>
from mmdet3d.datasets import NuScenesDataset_R
ImportError: cannot import name 'NuScenesDataset_R' from 'mmdet3d.datasets' (/home/coop8/anaconda3/envs
/rm/lib/python3.8/site-packages/mmdet3d/datasets/__init__.py)
我们发现该函数的命名为NuScenesDatasetRC
(rm) coop8@adlab8:~/heci1/rcbevdet-master$
(rm) coop8@adlab8:~/heci1/rcbevdet-master$ cd mmdet3d/datasets/
(rm) coop8@adlab8:~/heci1/rcbevdet-master/mmdet3d/datasets$ ls
builder.py __init__.py nuscenes_mono_dataset.py summarize_metrics_av2.py
coco_2d_dataset.py kitti2d_dataset.py occ_metrics.py sunrgbd_dataset.py
custom_3d.py kitti_dataset.py pipelines utils.py
custom_3d_radar.py kitti_mono_dataset.py s3dis_dataset.py waymo_dataset.py
custom_3d_seg.py lyft_dataset.py samplers
dataset_wrappers.py nuscenes_dataset.py scannet_dataset.py
eval_recall.py nuscenes_dataset_rc.py semantickitti_dataset.py
(rm) coop8@adlab8:~/heci1/rcbevdet-master/mmdet3d/datasets$ cat __init__.py
# Copyright (c) OpenMMLab. All rights reserved.
from mmdet.datasets.builder import build_dataloader
from .builder import DATASETS, PIPELINES, build_dataset
from .custom_3d import Custom3DDataset
from .custom_3d_seg import Custom3DSegDataset
from .kitti_dataset import KittiDataset
from .kitti_mono_dataset import KittiMonoDataset
from .lyft_dataset import LyftDataset
from .nuscenes_dataset import NuScenesDataset
from .nuscenes_dataset_rc import NuScenesDatasetRC
于是我们将from mmdet3d.datasets import NuScenesDataset_R
改为from mmdet3d.datasets import NuScenesDatasetRC as NuScenesDataset_R
即可