Modify "process_bounding_boxes.py" as in /tf_files/SSD-Tensorflow/MY_PIPELINE and copy to
/tf_files/SSD-Tensorflow/VOC2007/ directory
Run it as:
python process_bounding_boxes.py trainval
python process_bounding_boxes.py test
Remember to have 2 levels of hierarchy to reach *.xml files
Running the modified script generates all necessary bounding box and synset files necessary to
convert to tf_records format
Worked on TinyImagenet data from Stanford
#Run the following to re-structure the TinyImagenet train/ directory:
cd /tf_files/SSD_TENSORFLOW/MY_PIPELINE
python process_bounding_boxes_for_tinyImagenet.py /tf_files/SSD-Tensorflow/TINY_IMAGENET/tiny-imagenet-200/train
#Run the following to re-structure the TinyImagenet val/ directory:
cd /tf_files/SSD_TENSORFLOW/MY_PIPELINE
python process_bounding_boxes_forTIval.py /tf_files/SSD-Tensorflow/TINY_IMAGENET/tiny-imagenet-200/val
# Then copy the *_bboxes.txt file one directory level up and concatenate them together
cat train_bboxes.txt newVal_bboxes.txt > train_val_bboxes.txt