deepsparse icon indicating copy to clipboard operation
deepsparse copied to clipboard

What is the format of the boxes returned from a YOLO Pipeline?

Open EricPedley opened this issue 1 year ago • 2 comments

It's XYXY top left,bottom right. I guess the negative values are just the model predicting that the object extends outside the image. Leaving this open because it's still a problem that this isn't documented well.

~~Is it xyxy? xywh? If xywh, is the xy the center or top-left? I ran a yolo pipeline on an image and there are negative numbers in the bounding box ouput. Are the coordinates relative to the image center or something?~~ image

No info to be found in any of these places that would make sense

  • YOLOOutput class source code image
  • YOLOPipeline class source code
  • user guide
  • object detection use case guide (https://github.com/neuralmagic/deepsparse/blob/main/docs/use-cases/cv/object-detection-yolov5.md)

~~I would be more than happy to get a "RTFM" response if I could just get a link to where this is documented.~~

EricPedley avatar Aug 28 '24 06:08 EricPedley

Ok I figured it out myself by searching the project for the string cv2.rectangle since I knew this had to be parsed somewhere to do annotation. It's XYXY top left,bottom right. I guess the negative values are just the model predicting that the object extends outside the image image

Gonna leave the issue open because this should be documented somewhere.

EricPedley avatar Aug 28 '24 06:08 EricPedley

Respectfully, how the hell did you respond so fast and how does downloading this help me? I'm like 99% sure you're a bot r

this download link is virus.

ZhianLin avatar Aug 28 '24 12:08 ZhianLin

Per the main README announcement, DeepSparse is being deprecated by June 2, 2025. Closing the issue as further development has been suspended; thank you for the inputs and support!

jeanniefinks avatar May 09 '25 20:05 jeanniefinks