This work presents three examples of using transfer-learning to do image classification and object detection
- uses MNIST dataset, which contains image with size
(28, 28, 1)
and classes of 10 (num 0 to 9) - classify the main subject in an image
- localize it by drawing bounding boxes around it.
example of drawing a box around a image, (original, with_bounding_ox)
and the final result can be evaluated by the iou parameter.
- uses
caltech_birds2010
dataset in thetensorflow_datasets
. - predict the location of bounding box using the MobileNet V2 network and fine-tune the model by moving the top layers.
The result:
- use the model from the tensorflow_hub, including
-
- ssd + mobilenet V2: small and fast.
-
- FasterRCNN + InceptionResNet V2: high accuracy
- image can be downloaded from the wikimedia or using local image
result:
- the online image:
- the photo of my office: