autonomousvision/giraffe

Question about the coordinate system transformation

LeoXing1996 opened this issue · 1 comments

Thanks for the great work! However, I still have a question about the coordinate system transformation.

# Arange Pixels
pixels = arange_pixels((res, res), batch_size,
invert_y_axis=False)[1].to(device)
pixels[..., -1] *= -1.

In the above codes, you first generate the coordinates under the image coordinate system, then invert the y-axis. What is the purpose of this operation?

Looking forward to your reply.

This is how our coordinate system is defined: second axis goes from top to bottom as opposed to bottom to top. It is a common system when working with images!