there's no object in object detection on Pascal VOC data
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello there,
I am preparing a dataset for a object detection model of deep learning, which is based on images and their respective Pascal VOC data annotation (.xml) which describe the objects positions.
My question is if is coherent train the model of object detection with an image without objects, and how it is annotated in a Pascal VOC file.
Thank you very much!
댓글 수: 0
답변 (1개)
Sai Pavan
2023년 9월 26일
Hi Josep,
I understand that you are trying to know whether training an object detection model with images without target object is beneficial and want to know how such an image is annotated in Pascal VOC format.
It is generally not necessary to train an object detection model with images that do not contain any objects of interest. The purpose of object detection is to identify and localize objects within an image, however, by including images without objects, the model may learn to detect and classify non-existent objects or generate false positives, which can negatively impact the model's performance. Hence it is not recommended to include such images in the training dataset of the model.
The annotation of images without objects in Pascal VOC format can be created but the annotations should indicate that there are no objects present. For an image without objects, you can create an XML file with an empty <objects> tag or can omit the <object> tag entirely.
Here's a reference code of how an XML file for an image without objects may look like:
<annotation>
<folder>images</folder>
<filename>image_without_objects.jpg</filename>
<size>
<width>640</width>
<height>480</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<objects></objects>
</annotation>
Hope it helps.
Regards,
Sai Pavan
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Analytics Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!