open-mmlab / mmrazor

OpenMMLab Model Compression Toolbox and Benchmark.
https://mmrazor.readthedocs.io/en/latest/
Apache License 2.0
1.48k stars 229 forks source link

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

Open kpyon-w opened 1 year ago

kpyon-w commented 1 year ago

Checklist

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

hehaodong530 commented 8 months ago

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

kpyon-w commented 8 months ago

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

no,i can‘t resolve it.