Skip to content

Coordinate Orientation #1640

Answered by talmo
jramborger78 asked this question in Help!
Dec 15, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @jramborger78,

Good question! We assume that the center of the pixel is the integer coordinate, with the edges being a half-pixel off. There's some info on that in the docstring for a relevant function in our data generation pipeline:

def make_centered_bboxes(
centroids: tf.Tensor, box_height: int, box_width: int
) -> tf.Tensor:
"""Generate bounding boxes centered on a set of centroid coordinates.
Args:
centroids: A tensor of shape (n_centroids, 2) and dtype tf.float32, where the
last axis corresponds to the (x, y) coordinates of each centroid.
box_height: Scala…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by talmo
Comment options

You must be logged in to vote
1 reply
@talmo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants