Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Update get_data_from_XML.py #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

abearman
Copy link

All objects in PASCAL VOC should only have one labeled ground truth bounding box. However, some objects (like 'person') have multiple "parts" labeled with bounding boxes (e.g., feet, hands). If you naively search the object XML path for the attribute 'bndbox' and take the last one (as the code was doing before), then you end up labeling some objects with a "part" bounding box (e.g., labeling only the foot of a person as 'person'!)

All objects in PASCAL VOC should only have one labeled ground truth bounding box. However, some objects (like 'person') have multiple "parts" labeled with bounding boxes (e.g., feet, hands). If you naively search the object XML path for the attribute 'bndbox' and take the last one (as the code was doing before), then you end up labeling some objects with a "part" bounding box (e.g., labeling only the foot of a person as 'person'!)
@yutaroyamanaka
Copy link

Thank you!
Nice Improvement!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants