ADLab-AutoDrive / BEVFusion

Offical PyTorch implementation of "BEVFusion: A Simple and Robust LiDAR-Camera Fusion Framework"
Apache License 2.0
752 stars 102 forks source link

vis result wrong #67

Open emlfaa opened 1 year ago

emlfaa commented 1 year ago

hi Thank you for your work! I want to get visual results with the command: python ./tools/misc/visualize_results.py configs/bevfusion/bevf_tf_4x8_6e_nusc.py --result ./work_dirs/bevfusion_tf.pkl --show-dir ./visresult but i get a error with this command. Can you help me to see what is the reason? Thanks `(bevfusion) ub@1:~/workspace/code/github/BEVFusion-main$ python ./tools/misc/visualize_results.py configs/bevfusion/bevf_tf_4x8_6e_nusc.py --result ./work_dirs/bevfusion_tf.pkl --show-dir ./visresult Traceback (most recent call last): File "/home/ub/anaconda3/envs/bevfusion/lib/python3.8/site-packages/mmcv/utils/registry.py", line 69, in build_from_cfg return obj_cls(**args) TypeError: init() got an unexpected keyword argument 'num_views'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./tools/misc/visualize_results.py", line 43, in main() File "./tools/misc/visualize_results.py", line 31, in main dataset = build_dataset(cfg.data.test) File "/home/ub/mmdetection3d/mmdet3d/datasets/builder.py", line 44, in build_dataset dataset = build_from_cfg(cfg, DATASETS, default_args) File "/home/ub/anaconda3/envs/bevfusion/lib/python3.8/site-packages/mmcv/utils/registry.py", line 72, in build_from_cfg raise type(e)(f'{obj_cls.name}: {e}') TypeError: NuScenesDataset: init() got an unexpected keyword argument 'num_views`

idealliu commented 1 year ago

Can you tell me how to generate .pkl format, the format I generate is .pth,thanks