title: Create PASCAL Voc for Tensorflow Object Detection API
body: <p>This question is an extension of <a href="https://stackoverflow.com/q/44810459/4962554">this one</a>.</p>
  
  <p><strong>TLDR;</strong>
  I'm trying to train the TS Object Detection API using my own dataset. For proof of concept, I decided to adhere my dataset to the Pascal VOC 2012 benchmark.</p>
  
  <p>At the moment, I am trying to create a TFRecord from my Pascal VOC annotations.</p>
  
  <p>Looking at <a href="https://github.com/tensorflow/models/blob/master/object_detection/create_pascal_tf_record.py#L162" rel="nofollow noreferrer">this line</a> in their <em>create_pascal_tf_record.py</em> script, they're just grabbing the aeroplane's <em>descriptor</em>; lack of a better word, text file. Why is this so? What about the other classes' descriptors?</p>
  
  <p><strong>Side Note</strong></p>
  
  <p>This file; titled <em>aeroplane_train.txt</em>, was included along with the <a href="http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar" rel="nofollow noreferrer">Pascal VOC 2012 dataset</a> inside VOC2012/ImageSets/Main/.</p>
  
  <p>A peek into the file shows that the first column represents an image name and the -1 or 1 states whether that particular image consists of the class(aeroplane) we're interested in. </p>
  
  <p>Partial contents of the <em>aeroplane_train.txt</em> file:</p>
  
  <pre><code>2008_000008 -1
  2008_000015 -1
  2008_000019 -1
  2008_000023 -1
  2008_000028 -1
  2008_000033  1
  2008_000036 -1
  2008_000037  1
  2008_000041 -1
  2008_000045 -1
  2008_000053 -1
  2008_000060 -1
  2008_000066 -1
  2008_000070 -1
  2008_000074 -1
  2008_000085 -1
  2008_000089 -1
  2008_000093 -1
  2008_000095 -1
  2008_000096 -1
  2008_000097 -1
  2008_000099 -1
  2008_000103 -1
  2008_000105 -1
  2008_000109 -1
  2008_000112 -1
  2008_000128 -1
  2008_000131 -1
  2008_000132 -1
  2008_000141 -1
  </code></pre>