(dataset_dir, split, name, tfrecord_writer)
Loads data from image and annotations files and add them to a TFRecord.

    Args:
      dataset_dir: Dataset directory;
      split: train/val/test
      name: Image name;
      tfrecord_writer: The TFRecord writer to use for writing.
Loads data from image and annotations files and add them to a TFRecord.
Loads data from image and annotations files and add them to a TFRecord .
def _add_to_tfrecord(dataset_dir, split, name, tfrecord_writer):
    """Loads data from image and annotations files and add them to a TFRecord.

    Args:
      dataset_dir: Dataset directory;
      split: train/val/test
      name: Image name;
      tfrecord_writer: The TFRecord writer to use for writing.
    """
    example = _process_image(dataset_dir, split, name)
    tfrecord_writer.write(example.SerializeToString())
def _add_to_tfrecord ( dataset_dir , split , name , tfrecord_writer ) : example = _process_image ( dataset_dir , split , name ) tfrecord_writer . write ( example . SerializeToString ( ) )