We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Dat,
I just wonder why when create y_batch,
you don't consider about prior-anchor(created by k-mean clustering)
xc, yc, w, h = bbox.to_relative_size((float(width), float(height))) object_mask = np.concatenate([[xc, yc, w, h], [1.0], one_hot])
xc, yc, w, h = bbox.to_relative_size((float(width), float(height)))
object_mask = np.concatenate([[xc, yc, w, h], [1.0], one_hot])
center_x = xc * grid_w center_y = yc * grid_h r = int(np.floor(center_x)) c = int(np.floor(center_y)) if r < grid_w and c < grid_h: y_batch[i, c, r, :, :] = N_ANCHORS * [object_mask] # Construct Feature map ground truth
center_x = xc * grid_w
center_y = yc * grid_h
r = int(np.floor(center_x))
c = int(np.floor(center_y))
if r < grid_w and c < grid_h:
y_batch[i, c, r, :, :] = N_ANCHORS * [object_mask] # Construct Feature map ground truth
According to upper codes, Don't consider prior-anchors, and do not find best anchor to fit with ground-truth.
just assign same object mask to all ANCHORS , even ground truth is not fit to other ANCHORS
Can you explain why you do not use prior-anchors for create y_batch, please?
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi Dat,
I just wonder why when create y_batch,
you don't consider about prior-anchor(created by k-mean clustering)
xc, yc, w, h = bbox.to_relative_size((float(width), float(height)))
object_mask = np.concatenate([[xc, yc, w, h], [1.0], one_hot])
center_x = xc * grid_w
center_y = yc * grid_h
r = int(np.floor(center_x))
c = int(np.floor(center_y))
if r < grid_w and c < grid_h:
y_batch[i, c, r, :, :] = N_ANCHORS * [object_mask] # Construct Feature map ground truth
According to upper codes,
Don't consider prior-anchors, and do not find best anchor to fit with ground-truth.
just assign same object mask to all ANCHORS , even ground truth is not fit to other ANCHORS
Can you explain why you do not use prior-anchors for create y_batch, please?
Thank you
The text was updated successfully, but these errors were encountered: