An Image classification Model from Data collection, cleaning, model training as well as deployment and API integration
The final app can classify 36 different types of shoes for both males and females.
Click Here to Visit Web aplication
- The Type of shoes or the name of the shoes
- The Category of a Shoe(Boots, Heels,Dress shoes .etc)
- The App can Produce the positive sides and best features as Pros.
- The App can also produce a negative side and possible problems of shoes as Con.
- The App can also provide the characteristics and key features of each shoe as Distinction.
Here is a sample of the Final application at work.
- Basketball shoes
- Ballet flats
- Climbing shoes
- Golf shoes
- High-tops shoes
- Ice-skates shoes
- Running shoes
- Soccer shoes
- Army boots
- Chelsea Boot
- Cowboy boots
- Hiking boots
- Knee high boots
- Uggs
- Wellington boots
- Chuck Taylor
- Flip flop
- Old skool
- Sandal
- Sneakers
- Moccasin
- Mule shoes
- Brogues
- Derby shoe
- Dress shoe
- Loafer
- Oxford shoe
- Cone heels
- Court shoes
- High heels
- Kitten heels
- Laced booties
- Lita shoe
- Mary Jane platforms
- Platform heels
- Wedges shoe
Data Collection: The data was collected by downloading from DuckDuckGo search using their term name
DataLoader: Used fastai DataBlock API to set up the DataLoader where Resnet34 was used and was fine-tuned multiple times.
Data Augmentation: fastai provides default data augmentation which operates in GPU.
Details can be found in notebooks/Data_prep_for_capstone2.ipynb
Training: Fine-tuned a resnet34 model for 5 epochs initially and then with 2 epochs 4 times and got up to 89.6% accuracy.
Data Cleaning: This part took the highest time. Since the collected data were from the browser, there were many noises. Also, there were images that contained Animations, adds as well as there were garbage data that contains irrelevant subjects. The was cleaned and updated by using fastai library ImageClassifierCleaner
.the data were cleaned each time after training and finetuning till the last time which was the final iteration of the model.
The final model was deployed in HuggingFace Spaces using Gradio App. The implementation can be found in deployment
folder or here.
The deployed model API is integrated here in GitHub Pages Website. Implementation and other details can be found in docs
folder.