bdd100k-models icon indicating copy to clipboard operation
bdd100k-models copied to clipboard

TypeError: TopDownBDD100KPoseDataset: TopDownCocoDataset.__init__() got an unexpected keyword argument 'dataset_info'

Open afnan29alofi opened this issue 2 years ago • 2 comments

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'

afnan29alofi avatar Jun 06 '23 18:06 afnan29alofi

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

thomasehuang avatar Jun 07 '23 12:06 thomasehuang

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

Marchetz avatar Jun 30 '23 15:06 Marchetz