Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码问题 #19

Open
liangchen341 opened this issue Oct 26, 2022 · 0 comments
Open

代码问题 #19

liangchen341 opened this issue Oct 26, 2022 · 0 comments

Comments

@liangchen341
Copy link

1.gt_creator函数制作标签为什么放入的是(x1,y1,x2,y2),而不是(dx,dy,dw,dh)? 而且没有使用log生成dw,dh的相关操作,与decode_bbox函数对应不上。
2.yolov1中decode_bbox为什么是:
xy_pred = reg_pred[..., :2].sigmoid() + self.grid_xy
wh_pred = reg_pred[..., 2:].exp()
x1y1_pred = xywh_pred[..., :2] - xywh_pred[..., 2:] / 2
x2y2_pred = xywh_pred[..., :2] + xywh_pred[..., 2:] / 2
box_pred = box_pred * self.stride[0]

xy_pred对应的是0到1的值,wh_pred对应的是原图上的值,感觉这样加会有错误。

实在是看不太明白,希望得到作者的解答!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant