Does labelling the whole object help in better detection of the parts? #25837
Replies: 3 comments 1 reply
|
👋 Hello @Shravasti221, thank you for your question! Adding a full-body or full-character label may provide additional context, but it does not guarantee better head recall. For the best results, annotate every head consistently and ensure the head boxes are accurate, sufficiently varied in size and appearance, and well represented across the dataset. A useful approach is to compare training with and without the additional Please share a few representative images and your training logs or configuration if you would like more specific guidance, and verify that you are following the Tips for Best Training Results. This is an automated response, and an Ultralytics engineer will assist you soon. |
|
Overlapping nested boxes for different classes are valid and should not inherently confuse YOLO, but adding a |
|
If the goal is to detect the individual face parts, I would not add a YOLO can handle overlapping bounding boxes, so the parts can be annotated independently. Adding a whole-face class is useful only if you also need the model to detect the complete face as a separate object. For better part detection, I would focus more on consistent annotations, enough examples for each class, class balance, and sufficient image resolution—especially because eyes and other facial parts are relatively small objects. So, if your required outputs are only the facial parts, I would start with separate classes such as 'eyes', 'nose', or 'mouth rather than adding an overlapping |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I take an example from another user's project where they detect parts of the face. Would this model perform better if the face also was annotated as a separate label? Or would the overlapping bounding boxes confide the model?

project credits: https://github.com/ignaciohrdz/yolo-face-parts-detector
I ask this as I am working on a project that detects body and head separately, and I am not able to get good results for the detection of the head label. So I was wondering if I marked the entire character also (3 labels: body, head, character) would it perform with higher recall? I am currently training with images at 1920px resolution.
The green is body, yellow is head, pink is human
All reactions