autodistill icon indicating copy to clipboard operation
autodistill copied to clipboard

What is the format of the labels generated ?

Open charuu opened this issue 1 year ago • 2 comments
trafficstars

Search before asking

  • [X] I have searched the Autodistill issues and found no similar feature requests.

Question

What is the format of the labels generated using autodistill. For example i have an image which contains 2 boxes. These 2 boxes have been identified but the labels generated contain more than 2 rows. What does that mean. Also the first column should signify the class number which should be 0 but it contains values from 0-8.

Additional

new_image2.txt new_image2

charuu avatar Mar 29 '24 07:03 charuu

I have attached the label file - new_image2.txt for this image

charuu avatar Mar 29 '24 10:03 charuu

Hello @charuu! What model are you using? If there are more than four values, it means the result is a polygon. Polygons can be transformed into xyxy coordinates if required using the supervision polygon_to_xyxy function: https://supervision.roboflow.com/detection/utils/#polygon_to_xyxy

With that said, if you are using a segmentation/detection combination model to get coordinates, you may only need the detection part. For instance, if you are using Grounded SAM, you may only need Grounding DINO.

capjamesg avatar May 17 '24 16:05 capjamesg