- 博客(2)
- 收藏
- 关注
原创 mmdetection 训练COCO出现AttributeError ‘COCO‘ object has no attribute ‘get_cat_ids‘
mmdetection 训练COCO出现AttributeError: ‘COCO‘ object has no attribute ‘get_cat_ids‘原因mmdetection用到了pycocotools,本来接口是pycocotools.coco.getCatIds,但是mmdetection又在外包了一层,变成了get_cat_ids,而pycocotools.coco又没有这个成员函数,导致出错。解决方法方法1,参考github issue:revert the coco.py f
2020-07-16 17:42:32 2848
原创 Python 中bisect用法说明
Python 中bisect用法说明bisect是python内置模块,用于有序序列的插入和查找。查找:bisect(array, item)bisect_left(array, item)bisect_right(array, item)插入:insort(array,item)insort_left(array,item)insort_right(array,item)1.查找import bisectarr = [1,3,3,6,8,12,15]value =
2020-07-11 23:44:58 3206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人