This is an image classification project that includes data collection, cleaning, model training, deployment and API integration.
This model can classify 10
different types of flowers
The types are following:
- aster
- daffodil
- dahlia
- daisy
- dandelion
- iris
- orchid
- rose
- sunflower
- tulip
Data Collection: Downloaded from DuckDuckGo
using term name
DataLoader: Used fastai DataBlock API
to set up the DataLoader.
Data Augmentation: fastai provides default data augmentation which operates in GPU.
Details can be found in notebooks/data_prep.ipynb
Training: Fine-tuned a resnet34
model for 5 epochs (2 times) and got upto ~86% accuracy
.
Data Cleaning: I cleaned and updated data using fastai ImageClassifierCleaner
. I cleaned the data each time after training or fine tuning, except for the last time which was the final iteration of the model.
I deployed to model to HuggingFace Spaces Gradio App
. The implementation can be found in the app
folder and in the corresponding Space.
The deployed model API is integrated in GitHub Pages Website. Implementation and other details can be found in docs
folder.