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

Question about function 'flow_from_list' in data_generator.py #5

Open
DasolHan opened this issue Nov 10, 2017 · 0 comments
Open

Question about function 'flow_from_list' in data_generator.py #5

DasolHan opened this issue Nov 10, 2017 · 0 comments

Comments

@DasolHan
Copy link

DasolHan commented Nov 10, 2017

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

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