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:
- Download or clone the repository from https://github.com/yukkyo/voc2coco.
- Once you clone the repository and download it, go the directory where the
voc2coco.py Python file resides in the terminal.
- Create a directory called trainxml, which contains all the .xml files. This directory should reside in the same main directory as voc2coco.py.
- 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 ...