Order of Coordinates for Object Detection

Hi all,

Hope you are well. :slight_smile:

I am working on an object detection task, and the CSV file has the coordinates in the this order: ymin, xmin, ymax, and xmax.

Does fast.ai BBoxLblBlock accept input in this format: ‘xmin’, ‘ymin’, ‘xmax’, ‘ymax’

So, when reading the CSV input file, should I change the order to be this: ‘xmin’, ‘ymin’, ‘xmax’, ‘ymax’ and then, when creating the datablock with BBoxLblBlock, have the correct order of: ‘xmin’, ‘ymin’, ‘xmax’, ‘ymax’?

OR:
Should I keep the CSV file as-is and the datablock with BBoxLblBlock is still fine to have the order as: ‘xmin’, ‘ymin’, ‘xmax’, ‘ymax’ OR should it be changed to ymin, xmin, ymax, and xmax to reflect the order of the CSV file?

Thanks in advance. Much appreciated!

Zakia

2 Likes