Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the format of the labels generated ? #145

Open
1 task done
charuu opened this issue Mar 29, 2024 · 2 comments
Open
1 task done

What is the format of the labels generated ? #145

charuu opened this issue Mar 29, 2024 · 2 comments
Labels
question Further information is requested

Comments

@charuu
Copy link

charuu commented Mar 29, 2024

Search before asking

  • 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 charuu added the question Further information is requested label Mar 29, 2024
@charuu
Copy link
Author

charuu commented Mar 29, 2024

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

@capjamesg
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants