You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the reason of having negative values for some coordinates, when converting from (center x, center y, width, height) to (x1, y1, x2, y2) (in non_max_suppresion function)?
For example, the values for x1 coordinates are calculated as: box_corner[:, :, 0] = prediction[:, :, 0] - prediction[:, :, 2] / 2 and there are some negative values here.
box_corner[:, :, 0] <= 0 boils down to sigmoid(tx) + grid_x <= anchor_w * exp(tw) / 2.
How can this happen?
Thanks!
The text was updated successfully, but these errors were encountered:
There is not really a reason for having the model output negative values for the corner coordinates. It is of course penalized for doing so during training (since there won't be negative values occuring in the label set) but there is no explicit restriction set in place to hinder the model from outputting them. You could map negative values to zero if this is a problem for your use case.
What is the reason of having negative values for some coordinates, when converting from
(center x, center y, width, height)
to(x1, y1, x2, y2)
(innon_max_suppresion
function)?For example, the values for
x1
coordinates are calculated as:box_corner[:, :, 0] = prediction[:, :, 0] - prediction[:, :, 2] / 2
and there are some negative values here.box_corner[:, :, 0] <= 0
boils down tosigmoid(tx) + grid_x <= anchor_w * exp(tw) / 2
.How can this happen?
Thanks!
The text was updated successfully, but these errors were encountered: