Skip to Content
Mastering Computer Vision with TensorFlow 2.x
book

Mastering Computer Vision with TensorFlow 2.x

by Krishnendu Kar
May 2020
Beginner to intermediate
430 pages
10h 39m
English
Packt Publishing
Content preview from Mastering Computer Vision with TensorFlow 2.x

Converting a .xml file to JSON format

AWS SageMaker annotation data uses a JSON format instead of .xml, which we used before. Convert .xml files to COCO JSON format with the help of the following steps:

  1. Download or clone the repository from https://github.com/yukkyo/voc2coco.
  2. Once you clone the repository and download it, go the directory where the voc2coco.py Python file resides in the terminal.
  3. Create a directory called trainxml, which contains all the .xml files. This directory should reside in the same main directory as voc2coco.py.
  4. In the same main directory, create a file called trainlist.txt, which should list all of the .xml file names. You can copy this in the terminal and copy and paste all the .xml files into a text file to create ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Computer Vision with TensorFlow 2

Hands-On Computer Vision with TensorFlow 2

Benjamin Planche, Eliot Andres

Publisher Resources

ISBN: 9781838827069Supplemental Content