autodistill
autodistill copied to clipboard
What is the format of the labels generated ?
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
I have attached the label file - new_image2.txt for this image
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.