@devilloser
2018-09-10T06:25:14.000000Z
字数 596
阅读 993
deeplearning
以38*38的feature map为例
step 1
初始化x,y
y=array([[0,0.....0],[1,1.....1],.....[38,38...38]])x=array([[0,1,....38],[0,1,....38],...[0,1,....38]])
将x,y归一到0-1
y=(y+offset)*step/img_shape[0] #step为img_shape[0]/feature_shape[0]
初始化w,h
计算ymin,ymax,xmin,xmax
计算IoU
保留大于threshold大小的anchor box作为正样本
SSD目标函数分为两个部分:对应默认框的位置loss(loc)和类别置信度loss(conf)。定义