Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pascal VOC 2012 dataset export does not export Attributes correctly #1518

Closed
matthaeusheer opened this issue May 9, 2020 · 4 comments · Fixed by #1792
Closed

Pascal VOC 2012 dataset export does not export Attributes correctly #1518

matthaeusheer opened this issue May 9, 2020 · 4 comments · Fixed by #1792
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@matthaeusheer
Copy link

Expected Behaviour

I am labelling a "person" with an attribute "pose" which can be either "y", "n" or "o". I expect this attribute to be accessible in the produced annotation file. I export as a dataset of pascal voc 2012 format and I am in labelling a video.
Screenshot from 2020-05-09 11-04-18

Current Behaviour

The following annotation is being produced where the "pose" field is set to "Unspecified" instead of "o".

<annotation>
	<folder/>
	<filename>52.jpg</filename>
	<source>
		<database>Unknown</database>
		<annotation>Unknown</annotation>
		<image>Unknown</image>
	</source>
	<size>
		<width>1920</width>
		<height>1080</height>
		<depth>3</depth>
	</size>
	<segmented>0</segmented>
	<object>
		<name>person</name>
		<pose>Unspecified</pose>
		<occluded>0</occluded>
		<bndbox>
			<xmin>970.3649338942307</xmin>
			<ymin>70.13979867788461</ymin>
			<xmax>1003.2655636714069</xmax>
			<ymax>112.42590015117933</ymax>
		</bndbox>
	</object>
</annotation>

Possible Solution

Append the attribute to the label to produce three labels person_o, person_y, person_n. Not nice and requires postprocessing after the labelling.

Your Environment

  • Git hash commit (git log -1): 034268e
  • Docker version docker version: Docker 19.03.8
  • Are you using Docker Swarm or Kubernetes? No
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 18.04
@zhiltsov-max
Copy link
Contributor

Hi, the only supported pose field values currently are: Unspecified, Left, Right, Frontal, Rear.

@matthaeusheer
Copy link
Author

Hey, does that mean that the "pose" attribute is some sort of default, predefined attribute name in voc2012? Do I have the freedom to chose other attribute names and use whatever values I want? Thanks for your support.

@zhiltsov-max
Copy link
Contributor

PASCAL VOC 2012 defines pose with only these values. If you have access to sources, you can modify this fragment of code to export any values.

@zhiltsov-max
Copy link
Contributor

Could you describe why do you need this functionality? Can you pick another format that supports attributes (cvat, datumaro, labelme)?

@zhiltsov-max zhiltsov-max self-assigned this Jun 8, 2020
@zhiltsov-max zhiltsov-max added the enhancement New feature or request label Jun 8, 2020
@zhiltsov-max zhiltsov-max added this to the 1.1.0-alpha milestone Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants