open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.21k stars 9.4k forks source link

预训练模型推理报错 #11749

Open HarryBarry123 opened 4 months ago

HarryBarry123 commented 4 months ago

当我使用您提供的python tools/test.py configs/mm_grounding_dino/grounding_dino_swin-t_pretrain_pseudo-labeling_cat.py \ grounding_dino_swin-t_pretrain_obj365_goldg_grit9m_v3det_20231204_095047-b448804b.pth的方式对我的图片进行标注时, File "/media/ubuntu/11632161-4946-47f0-8f2c-3fda15a5d5d7/projects/czy/mmdetection-main/mmdet/datasets/base_det_dataset.py", line 51, in init super().init(*args, **kwargs) TypeError: init() got an unexpected keyword argument 'label_map_file' 发生了上述报错,请问是什么原因呢