分类:python
交并比(Intersection-over-Union,IoU),目标检测中使用的一个概念,是产生的候选框(candidatebound)与原标记框(groundtruthbound)的交叠率,即它们的交集与并集的比值。最理想情况是完全重叠,即比值为1。计算公式:Python实现代码:defcal_iou(box1,box2):""":parambox1:=[xmin1,ymin1,xmax1,ymax1]:parambox2:=[xmin2,ymin2,xmax2,ymax2]:return:"""xmin1,ymin1,xmax1,ymax1=box1xmin2,ym...
继续阅读 >
2020
09-27
2020
09-27
为了了解(正态)分布的方法和属性,我们首先引入norm>>>fromscipy.statsimportnorm>>>rv=norm()>>>dir(rv)#reformatted[‘__class__',‘__delattr__',‘__dict__',‘__doc__',‘__getattribute__',‘__hash__',‘__init__',‘__module__',‘__new__',‘__reduce__',‘__reduce_ex__',‘__repr__',‘__setattr__',‘__str__',‘__weakref__',‘args',‘cdf',‘dist',‘entropy',‘isf',‘kwds',‘mome...
继续阅读 >