yuantn / MI-AOD

Code for Multiple Instance Active Learning for Object Detection, CVPR 2021
https://openaccess.thecvf.com/content/CVPR2021/papers/Yuan_Multiple_Instance_Active_Learning_for_Object_Detection_CVPR_2021_paper.pdf
Apache License 2.0
329 stars 43 forks source link

程序运行时报错:TypeError: forward() missing 1 required positional argument: 'x' #72

Closed zahidzqj closed 2 years ago

zahidzqj commented 2 years ago

我使用python tools/train.py configs/MIAOD.py --gpu-ids 1 开始训练代码,但是提示: /MI-AOD-master/mmdet/core/fp16/decorators.py", line 80, in new_func output = old_func(*new_args, **new_kwargs) TypeError: forward() missing 1 required positional argument: 'x' 不知道怎么解决。 我的环境是:mmcv-full 1.0.5 、mmdet 2.3.0 、pytorch1.6.0

zahidzqj commented 2 years ago

是因为自己没有复制epoch_based_runner.py导致的