LiUzHiAn / hf2vad

MIT License
124 stars 24 forks source link

关于:AttributeError: 'ConfigDict' object has no attribute 'nms'问题,尝试解决,能跑了,会不会影响性能未知 #29

Open RuHaodong opened 1 year ago

RuHaodong commented 1 year ago

test_cfg = dict( rpn=dict( nms_across_levels=False, nms_pre=1000, nms_post=1000, max_num=1000, nms_thr=0.7, min_bbox_size=0), 在pre_process/assets/latest_version_cascade_rcnn_r101_fpn_1x.py当中找到如上代码块,加上如下两行,在min_bbox_size的上边加 nms=dict(type='nms', iou_threshold=0.7), max_per_img=100,

zyakmd commented 1 year ago

You can also replace all the ones in rpn=dict(), which is inconsistent with the latest source code of mmdet. The key is to have this line nms=dict (type='nms', ...)

RuHaodong commented 1 year ago

okay, thanks