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

The issue of calculate center_x and center_y #97

Open
MingtaoGuo opened this issue Jun 17, 2019 · 2 comments
Open

The issue of calculate center_x and center_y #97

MingtaoGuo opened this issue Jun 17, 2019 · 2 comments

Comments

@MingtaoGuo
Copy link

[(predict_boxes[..., 0] + offset) / self.cell_size,

predict_boxes_tran = tf.stack(
[(predict_boxes[..., 0] + offset) / self.cell_size,
(predict_boxes[..., 1] + offset_tran) / self.cell_size,
tf.square(predict_boxes[..., 2]),
tf.square(predict_boxes[..., 3])], axis=-1)

I think it is supposed to be as follow:

predict_boxes_tran = tf.stack(
[(predict_boxes[..., 0] + offset) * self.image_size/ self.cell_size,
(predict_boxes[..., 1] + offset_tran) * self.image_size/ self.cell_size,
tf.square(predict_boxes[..., 2]),
tf.square(predict_boxes[..., 3])], axis=-1)

@fgyong
Copy link

fgyong commented Dec 4, 2019

Does it work after you modified it like you said?

@MingtaoGuo
Copy link
Author

Does it work after you modified it like you said?

Sorry, I didn't use this code, because I reimplemented yolo1 and yolo2 in my repository by myself.

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

2 participants