KristoVaultKristoVault

Pig YOLO Datasets: Bounding Boxes or Instance Masks?

Write down what the model should return. For pen-level counts or locating feeding pigs, start with bounding boxes. For visible area or boundaries between adjacent pigs, inspect instance masks. For tail biting, check whether the labels identify a whole animal, a contact region or an interaction.

Inspect TXT rows and class mappings

An Ultralytics detection row contains a class index and the normalized box center, width and height. An instance segmentation row uses pairs of normalized polygon coordinates after the class index. Pick several image-label pairs, confirm the class order in the YAML, then overlay the annotations on the source images.

Compare crowded-pen examples

Include occlusion, different viewpoints and animals near a feeder in your review. The feeding and posture package uses polygon labels. The multi-behavior package includes boxes for activities such as drinking and walking. The interaction package includes tail biting and ear biting. The linked product pages show annotation previews.

Format reference: Ultralytics object detection and instance segmentation.

Related datasets and products