https://github.com/syscall97/fruit-recognizer
Fruit image classifier with ResNet50, 83% accuracy, deployed via Hugging Face & GitHub Pages.
https://github.com/syscall97/fruit-recognizer
data-scraping fastai huggingface-spaces image-classification python
Last synced: 25 days ago
JSON representation
Fruit image classifier with ResNet50, 83% accuracy, deployed via Hugging Face & GitHub Pages.
- Host: GitHub
- URL: https://github.com/syscall97/fruit-recognizer
- Owner: SysCall97
- License: mit
- Created: 2025-02-12T02:50:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T17:42:14.000Z (over 1 year ago)
- Last Synced: 2025-02-24T06:35:26.227Z (over 1 year ago)
- Topics: data-scraping, fastai, huggingface-spaces, image-classification, python
- Language: Jupyter Notebook
- Homepage: https://syscall97.github.io/fruit-recognizer/
- Size: 7.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fruit-recognizer
## Objective
This is an image classifier project where I've focused on data collection, data cleaning, augmentation, model training, model deployment, API integration. The model can classify 11 differenct types of fruits, they are-
1. Mango
2. Jackfruit
3. Litchi
4. Guava
5. Coconut
6. Banana
7. Papaya
8. Starfruit
9. Watermelon
10. Wood Apple
11. Hog Plum
## Dataset Preparation
Data Collection: Downloaded form DuckDuckGo using term name
DataLoader: Used fastai DataBlock API to set up the DataLoader.
## Model Training and Data Cleaning:
Model Training: Fine-tuned a resnet50 model for 12 epochs and got upto ~83% accuracy.
Data cleaning: Manual data cleaning, since there are so many incorrect images that overlapped with different classes.
## Model Deployment:
I deployed the model in HuggingFace spaces Gradio app. You can finc the implementation under `huggingface-deployment` folder of this repo or [here](https://huggingface.co/spaces/SysCall97/Fruit_Recognizer/tree/main)

# API integration with GitHub Pages
The deployed model API is integrated [here](https://syscall97.github.io/fruit-recognizer/) in GitHub Pages Website. Implementation and other details can be found in `docs` folder.