SSD using Inception

Download the following file and modify it:

cd /tf_files/SSD-Tensorflow/VOC2007

wget https://raw.githubusercontent.com/tensorflow/models/master/inception/inception/data/process_bounding_boxes.py

  1. 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

Now download this file:

wget https://raw.githubusercontent.com/tensorflow/models/master/inception/inception/data/build_imagenet_data.py

Some important links:

https://github.com/tensorflow/models/blob/master/slim/datasets/dataset_factory.py

https://github.com/tensorflow/models/tree/master/slim

https://github.com/tensorflow/models/blob/master/inception/README.md#getting-started

https://github.com/tensorflow/models/tree/master/inception

https://github.com/tensorflow/models/blob/4cc1fa0f58950b32532b5655aa46d3fb98bcd612/attention_ocr/python/data_provider_test.py

Last updated

Was this helpful?