Skip to main content

Generate xml annotations for TensorFlow object detection models.

Project description

auto-annotate-logo

Auto Annotation Tool for TensorFlow Object Detection

Are you tired to label your images by hand to work with object detection? Have hundreds or thousands of images to label? Then this project will make your life easier, just create some annotations and let the machine do the rest for you!

Contents

Requirements

How to run

  • Copy and paste the files generate_xml.py and visualization_utils.py into the research/object_detection/utils in the tensorflow repo.
  • Change the xml path in generate_xml.py to put your own local path.
  • Add the images you want to label into the images folder

TensorFlow < 2.x

  • Add your pre-treined model (as a fronzen inference graph) and label map into the 'graphs' folder.
  • Inside the auto_annotate folder run: python3 scripts/detection_images.py

TensorFlow >= 2.x

  • If you have TF 2.x, just run the following command:
python3 scripts/detection_img_tf2.py --saved_model /path-saved-model --labelmap /path-label-map.pbtxt --imgs /path-of-the-imgs
  • If it runs correctly, you will see the inference results and the xml in your respective folders!

Any trouble?

If you have trouble or doubt check my tutorial on medium. You can also open an issue and I'll hep you!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_annotate-1.0.0.tar.gz (45.2 kB view hashes)

Uploaded Source

Built Distribution

auto_annotate-1.0.0-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page