mmrazor icon indicating copy to clipboard operation
mmrazor copied to clipboard

TypeError: __init__() takes 1 positional argument but 2 were given

Open kpyon-w opened this issue 1 year ago • 2 comments

Checklist

  • I have checked the code for this bug, and when I changed the value of the argument I put in it to None, I still get an error (takes 1 positional argument but 2 were given)

Describe the question you meet

When I try to start NAS quickly and call the nas file of config directly, I get the following error: TypeError: init() takes 1 positional argument but 2 were given

Post related information

I run the following command

python ./tools/train.py configs/nas/mmdet/detnas/detnas_retina_shufflenet_supernet_coco_1x.py

image

kpyon-w avatar Nov 04 '23 02:11 kpyon-w

hi, have you solved this? I also face the error and have no idea.

hehaodong530 avatar Mar 12 '24 07:03 hehaodong530

hi, have you solved this? I also face the error and have no idea.

no,i can‘t resolve it.

kpyon-w avatar Mar 12 '24 15:03 kpyon-w