PJLab-ADG / 3DTrans

An open-source codebase for exploring autonomous driving pre-training
https://bobrown.github.io/Team_3DTrans.github.io/
Apache License 2.0
585 stars 72 forks source link

TypeError: __init__() missing 3 required positional arguments: 'num_class_s2', 'dataset_s2', and 'source_one_name'[] #19

Closed RhythmOfTheRain-Byte closed 10 months ago

RhythmOfTheRain-Byte commented 10 months ago

When I run the following command, python /tools/train_multi_db_merge_loss.py --cfg_file ./cfgs/MDF/nusc_kitti/nusc_kitti_voxel_rcnn_feat_3_uni3d.yaml I encounter the following problem: Can you help me to solve it ? Thank you very much Traceback (most recent call last): File "/home/hyh/westdigital_dataset/3DTrans/tools/train_multi_db_merge_loss.py", line 268, in main() File "/home/hyh/westdigital_dataset/3DTrans/tools/train_multi_db_merge_loss.py", line 135, in main model = build_network(model_cfg=cfg.MODEL, num_class=len(cfg.CLASS_NAMES), dataset=source_set) File "/home/hyh/westdigital_dataset/3DTrans/tools/../pcdet/models/init.py", line 16, in build_network model = build_detector( File "/home/hyh/westdigital_dataset/3DTrans/tools/../pcdet/models/detectors/init.py", line 73, in build_detector model = all[model_cfg.NAME]( TypeError: init() missing 3 required positional arguments: 'num_class_s2', 'dataset_s2', and 'source_one_name'

python /tools/train_multi_db_merge_loss.py --cfg_file ./cfgs/MDF/nusc_kitti/nusc_kitti_voxel_rcnn_feat_3_uni3d.yaml

RhythmOfTheRain-Byte commented 10 months ago

solved it, Thank you!