Skip to content

Instantly share code, notes, and snippets.

View RobinBaumann's full-sized avatar
🐦

Robin Baumann RobinBaumann

🐦
View GitHub Profile
@RobinBaumann
RobinBaumann / cars196_convert.py
Last active November 12, 2020 18:27
Example of how to convert a dataset from TFDS to PASCAL VOC format used in TF Object Detection API
"""
Created by Robin Baumann <https://github.com/RobinBaumann> at October 08, 2020.
"""
import os
from absl import app
from absl import flags
import contextlib2
from object_detection.dataset_tools import tf_record_creation_util
from object_detection.utils import dataset_util