open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.32k stars 1.54k forks source link

When I run the demo,error occurs as follows #1687

Closed X-ray0214 closed 2 years ago

X-ray0214 commented 2 years ago

Traceback (most recent call last): File "demo/pcd_demo.py", line 28, in main() File "demo/pcd_demo.py", line 20, in main model = init_detector(args.config, args.checkpoint, device=args.device) File "/home1/ugv/autodriving/BEVFusion-main/mmdet3d/apis/inference.py", line 51, in init_detector model = build_detector(config.model, train_cfg=None, test_cfg=config.get('test_cfg')) File "/home1/ugv/autodriving/BEVFusion-main/mmdet3d/models/builder.py", line 48, in build_detector return DETECTORS.build(cfg, DETECTORS, dict(train_cfg=train_cfg, test_cfg=test_cfg)) File "/mnt/EXOS_AUTO/JIANG_FOLDER/anoconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv/utils/registry.py", line 212, in build return self.build_func(*args, **kwargs, registry=self) TypeError: build_model_from_cfg() got multiple values for argument 'registry'

Who can help me?

Tai-Wang commented 2 years ago

Please follow the template for re-implementation problems to provide more information about this issue.

X-ray0214 commented 2 years ago

Please follow the template for re-implementation problems to provide more information about this issue. Hello, I just simply run the example: python demo/pcd_demo.py demo/data/kitti/kitti_000008.bin configs/second/hv_second_secfpn_6x8_80e_kitti-3d-car.py checkpoints/hv_second_secfpn_6x8_80e_kitti-3d-car_20200620_230238-393f000c.pth

Maybe I need to modify "return self.build_func(*args, **kwargs, registry=self)" in registry.py?