Built an end-to-end CNN Image Classification Model which identifies the food in your image.
I have used an pre-trained Image Classification Model, EfficientNetB0, previously pre-trained on ImageNet, that comes with Tensorflow and then retrained it on Food 101 Dataset dataset.
This model actually beats the DeepFood Paper's model which also trained on the same dataset.
The Accuracy of DeepFood was 77.4% and our models is 79%. It is not much but, we take those.
Finally after training the model, I have exported as .h5
files and then integrated it with Streamlit Web App
Try it out yourself, Click Here!
Once the app is loaded,
- Choose the input type. Whether you want to upload an image or enter URL of an image
- For upload an image option, choose image from your computer.
- For URL option, erase the existing url and enter your own url and press enter
- Once you have done the above, the model will predict the output and display the Top-5 Predictions
- Clone the repo
git clone https://github.com/mSounak/Food-Vision
- install
requirements.txt
pip install -r requirements.txt
- run app.py
streamlit run app.py
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request