Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
结论是宽度应为hs*sqrt(r),而非ws*sqrt(r)。 建议查看代码,multibox_prior函数中定义了w=s*sqrt(r)*h/w, h=s/sqrt(r),实际使用show_bboxes函数的时候乘上了bbox_scale=torch.tensor((w, h, w, h))。也就是说,实际生成的锚框的宽度应为s*sqrt(r)*h/w*w=hs*sqrt(r),高度为h*s/sqrt(r),锚框的实际宽高比就为r。希望可以帮助大家理解!这一节的难度很大,但是在此出错会在很大程度上阻碍大家理解!
- Loading branch information