Closed CatUnderTheLeaf closed 6 months ago
Hi @CatUnderTheLeaf
Thanks for reporting the issue. I have tested the code snippet and reproduces the reported behaviour. Attached gist file for reference.
We will look into the issue and update you the same.
@CatUnderTheLeaf looks like the bbox format is none of the standard ones specified in kerasCV. from what I am seeing in the custom implementation of yours is that the format of the bounding box is in this format rel_yxyx
but the values of Y
needs to be subtracted by 1.
Here is a quick test. The bounding box needs to be pre processed to correct rel_yxyx
format(y values need to be subtracted from 1) before being passed to the visualization function.
Current Behavior:
Before testing object detection pipelines with Kitti dataset from
tfds
I wanted to trykeras_cv
visualization tools.I used
keras_cv.visualization.plot_bounding_box_gallery()
and tried all Bounding Box Formats supported by KerasCV: 1. CENTER_XYWH 2. XYWH 3. XYXY 4. REL_XYXY 5. REL_XYWH 6. YXYX 7. REL_YXYX.As it appears bounding boxes are not in correct places. The best likelihood is with
REL_YXYX
becauseExpected Behavior:
The bounding boxes are correctly calculated, e.g. using this custom conversion:
Steps To Reproduce:
Google Colab