Objective
This project was created to find the spinal disorder Stenosis.
This repository walks through the Object detection process including the custom dataset preparation, training with model congifuration setup and inference of the trained model.
- Python 3.6
- Numpy
- Opencv
- Pandas
- Matplotlib
- Tensorflow_gpu==1.15
- Lvis
Download the pretrained model(frozen graph) and the image dataset from the following link : https://drive.google.com/drive/folders/1ciCiNYvEpeCRIeP4QDzF5qIvnUCUj7UD?usp=sharing
With few data augmentation techniques such as rotate, flip, blur and translate, incereased the size of the dataset. Further details are in data_prep_img_process.py
Annotation Tool : MakeSense http://makesense.ai/ Annotated data is stored as a csv file and from that source csv file, the train.csv and test.csv are genearated. With the data available on the test.csv and train.csv, the image dataset is split into test_set and train_set.
Initially Tensorflow Object Detection API module is installed with all necessary packages.(tensorflow_gpu==1.15)
Generate the tfrecords for the test and training set using generate_tf_records.py
For quick training and better results, this object detection module was trained on Tensorflow's faster_rcnn_inception_v2 model.
1.num-steps = 5000 2.eval-steps=50 3.batch-size = 12 4.initial_learning_rate = 0.0002 5.num-classes = 1
Displayed using Tensorboard on the python notebook.