I'd like to use the Tensorflow Object Detection API to identify objects in a series of webcam images. The Faster RCNN models pre-trained on the COCO dataset appear to be suitable, as they contain all the object categories I need.
However, I'd like to improve the performance of the model at identifying fairly small objects within each image. If I understand correctly, I need to edit the anchor scales
parameter in the config file to get the model to use smaller bounding boxes.
My questions are:
I'm currently feeding 1280x720 images to the model. At around 200x150 pixels I'm finding it harder to detect objects.
This API comes ready to use with pre-trained models which will get you detecting objects in images or videos in no time. The object detection API does not come standard with the TensorFlow installation.
I will be using the object detection inference walkthrough that’s available in the TensorFlow object detection API. The object detection API is not supported in TensorFlow versions earlier than 1.4.
By default, the TensorFlow Object Detection API uses Protobuf to configure model and training parameters, so we need this library to move on. Go to the official protoc release page and download an archive for the latest protobuf version compatible with your operation system and processor architecture. For example, I’m using Ubuntu.
Those are the questions that I had at the very beginning of my work with the TensorFlow Object Detection API. If you feel like it’s not clear for you as well, don’t worry! Luckily for us, there is a general approach that can be used for parameter tuning, which I found very convenient and easy to use.
You'll need to retrain completely unfortunately, since the weights do depend on the shape of the anchor.
Having a feature map with higher resolution should help (but slow down the process), so changing the feature extractor to get one with less input size reduction (max poolings with stride >1 is usually what reduces the space size) or upscaling the image a bit in the initial image resizer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With