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

ciou_enclose_area #157

Open
lihualilee opened this issue Aug 9, 2021 · 1 comment
Open

ciou_enclose_area #157

lihualilee opened this issue Aug 9, 2021 · 1 comment

Comments

@lihualilee
Copy link

image
left and up why not tf.minimum()?why mot computer minimum is compute enclose_area?
left = tf.maximum(boxes1_coor[..., 0], boxes2_coor[..., 0])
up = tf.maximum(boxes1_coor[..., 1], boxes2_coor[..., 1])

@pythonlessons
Copy link
Owner

pythonlessons commented Oct 6, 2021

Unfortunately, this was not used in a code yet.

But you can see that we use:
left - [..., 0], up - [..., 1] ...

    left = tf.maximum(boxes1_coor[..., 0], boxes2_coor[..., 0])
    up = tf.maximum(boxes1_coor[..., 1], boxes2_coor[..., 1])
    right = tf.maximum(boxes1_coor[..., 2], boxes2_coor[..., 2])
    down = tf.maximum(boxes1_coor[..., 3], boxes2_coor[..., 3])

this is why we use maximum

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