raoyongming / DenseCLIP

[CVPR 2022] DenseCLIP: Language-Guided Dense Prediction with Context-Aware Prompting
505 stars 38 forks source link

super(SingleStageDetector, self).__init__(init_cfg) TypeError: __init__() takes 1 positional argument but 2 were given #49

Open YangJae96 opened 7 months ago

YangJae96 commented 7 months ago

Hi. Thank you for your great work.

I tried to run the train code with command

"bash dist_train.sh configs/retinanet_denseclip_r50_fpn_1x_coco.py 1", but got the following error.

super(SingleStageDetector, self).init(init_cfg) TypeError: init() takes 1 positional argument but 2 were given

I did not change the code but I dont know why building the model gets error. Could I get some help?!

raoyongming commented 7 months ago

Hi, please check the version of your mmdet. Our codebase may not support the newest version of mmdet.