Francois_Gervais:

create_pascal_tfrecord.py


Is that the specific TFrecord utility for Pascal dataset support only jpeg:

  

      github.com
  

  
    tensorflow/models/blob/master/research/object_detection/dataset_tools/create_pascal_tf_record.py#L83-L92 14



      
      
            ValueError: if the image pointed to by data['filename'] is not a valid JPEG
          """
          img_path = os.path.join(data['folder'], image_subdirectory, data['filename'])
          full_path = os.path.join(dataset_directory, img_path)
          with tf.gfile.GFile(full_path, 'rb') as fid:
            encoded_jpg = fid.read()
          encoded_jpg_io = io.BytesIO(encoded_jpg)
          image = PIL.Image.open(encoded_jpg_io)
          if image.format != 'JPEG':
            raise ValueError('Image format not JPEG')