Xharlie / BtcDet

Behind the Curtain: Learning Occluded Shapes for 3D Object Detection
Apache License 2.0
194 stars 43 forks source link

TypeError: load() missing 1 required positional argument: 'Loader' #30

Open 123jyw opened 2 years ago

123jyw commented 2 years ago

When you run this statement ,python -m btcdet.datasets.kitti.kitti_dataset create_kitti_infos tools/cfgs/dataset_configs/kitti_dataset.yaml the following error occurs TypeError: load() missing 1 required positional argument: 'Loader'

chasingw commented 2 years ago

pyyaml version issue, I fixed by downgrade the pyyaml version

pip install pyyaml==5.4.1
123jyw commented 2 years ago

Thank you very much! Sincerely!

DheerajYarlagadda commented 1 year ago

If you don't want to downgrade pyyaml, you can consider this change kitti_dataset.py line 539: dataset_cfg = EasyDict(yaml.load(open(sys.argv[2]),Loader=yaml.FullLoader))