Previous Article – https://wp.me/p6xoZs-3y
To do this there are few steps to follow, there are,
- Collect a few hundred images that contain your object – The bare minimum would be about 100, ideally more like 500+, but, the more images you have, the more tedious step 2 is…
- Annotate/label the images, ideally with a program. I personally used LabelImg. This process is basically drawing boxes around your object(s) in an image. The label program automatically will create an XML file that describes the object(s) in the pictures.
- Split this data into train/test samples
- Generate TF Records from these splits
- Setup a .config file for the model of choice (you could train your own from scratch, but we’ll be using transfer learning)
- Train
- Export graph from new trained model
- Detect custom objects in real time!
Next Article – https://wp.me/p6xoZs-3G