Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
123jyw opened this issue May 8, 2022 · 3 comments
Open

Comments

@123jyw
Copy link

123jyw commented May 8, 2022

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
Copy link

pyyaml version issue, I fixed by downgrade the pyyaml version

pip install pyyaml==5.4.1

@123jyw
Copy link
Author

123jyw commented May 11, 2022

Thank you very much! Sincerely!

@DheerajYarlagadda
Copy link

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants