Conversion du type d'annotation des données

Good morning! I hope you’re doing well!

When annotating my data I used two combined types, notably annotation in the form of polygons and in the form of bbox. Now after I realized that it was not possible to have both types for the same data set.

So I would like to know if it is a good idea to convert the polygons e, bbox or bbox into polygons or we must necessarily repeat the annotation.

Note that I had to convert but the metrics obtained are not at all good

You can convert polygons to bounding boxes automatically

okay thank you!

Avec plaisir !

Oui, convertir des polygones en bbox est généralement le plus propre. La doc des utilities Ultralytics montre justement segments2boxes() pour faire cette conversion. À l’inverse, convertir des bbox en polygones avec yolo_bbox2segment() reste une approximation, donc il est normal d’obtenir de moins bonnes métriques.

Donc si votre objectif final est la détection, convertissez les polygones en boîtes. Si votre objectif final est la segmentation, mieux vaut conserver ou corriger les polygones plutôt que repartir des bbox.

Si vous voulez, je peux aussi vous donner un petit script de conversion pour votre dataset.

D’accord merci bien pour votre apport!
Aussi j’aimerais savoir est ce bon d’avoir des box imbriquées lors de l’annotation, c’est dire une box dans une box?

Yes, you can have nested boxes.

AH la je ne comprend plus pourquoi modele ne pas performant! les metrics que j’ai spont alarmants