Image classification using Convolutional Neural Network (CNN) in tensorflow.keras for Oxford IIIT Pet Image dataset.
Image classification using Deep CNN in tensorflow.keras for Oxford IIIT Pet image dataset.
Click on the image link above to redirect to the YouTube video.
The dataset for this project can be downloaded from any of the following links:
This dataset consists of 7390 images of pets spanning 37 classes with about 200 images per class. The images vary vastly in size, aspect ratio, pose, lightning, etc. All images in the dataset are within the same folder and the associated class information for each image is present in the file name itself.
The external libraries required for running Train.ipynb are:
The model used is a deep Convolutional Neural Network and was created using tensorflow.keras Sequential API.
The different layers used in this model are as follows:
The model makes sure of Early Stopping and Tensorboard callbacks to prevent overfitting and monitor training respectively.
Train | Validation | Test | |
---|---|---|---|
Count of Records | 5,985 | 666 | 739 |
Sparse Categorical Cross-entropy | 0.7314 | 1.1199 | 1.0731 |
Sparse Categorical Accuracy | 76.19% | 66.37% | 66.57% |
Use the command tensorboard —logdir tensorboard_logs/fit using the command line from the project’s root directory to open the TensorBoard GUI in your browser.
Developed by - Mayur Garg