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: TopDownBDD100KPoseDataset: TopDownCocoDataset.__init__() got an unexpected keyword argument 'dataset_info' #24

Open
afnan29alofi opened this issue Jun 6, 2023 · 2 comments

Comments

@afnan29alofi
Copy link

hi,
when i try run the pose test I get this error
code :
!python test.py /content/bdd100k-models/pose/configs/pose/hrnet_w32_256x192_1x_pose_bdd100k.py --gpu_collect --format-dir /content/

error :

Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/mmcv/utils/registry.py", line 51, in build_from_cfg
return obj_cls(**args)
TypeError: TopDownCocoDataset.init() got an unexpected keyword argument 'dataset_info'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/content/bdd100k-models/pose/test.py", line 132, in
main()
File "/content/bdd100k-models/pose/test.py", line 89, in main
dataset = build_dataset(cfg.data.test, dict(test_mode=True))
File "/usr/local/lib/python3.10/dist-packages/mmpose/datasets/builder.py", line 44, in build_dataset
dataset = build_from_cfg(cfg, DATASETS, default_args)
File "/usr/local/lib/python3.10/dist-packages/mmcv/utils/registry.py", line 54, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
TypeError: TopDownBDD100KPoseDataset: TopDownCocoDataset.init() got an unexpected keyword argument 'dataset_info'

@thomasehuang
Copy link
Collaborator

This may be due to the version of mmpose. Can you try installing mmpose==0.18.0 and running the code again?

@Marchetz
Copy link

Hi, I have the same problem and I have installed mmpose version 0.18.0. Maybe the problem is something else...

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