DenseCLIP icon indicating copy to clipboard operation
DenseCLIP copied to clipboard

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

Open YangJae96 opened this issue 1 year ago • 1 comments

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?!

YangJae96 avatar Jan 17 '24 03:01 YangJae96

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

raoyongming avatar Jan 17 '24 06:01 raoyongming