grimoire/mmdetection-to-tensorrt

TypeError: __init__() got an unexpected keyword argument 'init_cfg'

xizi opened this issue · 1 comments

xizi commented

When i mmdet2trt faster_rcnn_r50_fpn_1x_coco.py faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth model, i get the error
anaconda3/lib/python3.7/site-packages/mmcv/utils/registry.py", line 179, in build_from_cfg
return obj_cls(**args)
TypeError: init() got an unexpected keyword argument 'init_cfg'

the library version as follow:
torch=1.6.0
tensorrt=7.2.1.6
cuda=10.2
mmcv-full=1.2.7
mmdet=2.10.0
mmdet2trt=0.4.0

xizi commented

faster_rcnn_r50_fpn_1x_coco.py is mmdet2.14 version, back to mmdet2.10 solved