Food Vision is an End-to-End CNN Image Classification Model
which identifies the food in your image.
It can identify over 100 different food classes
It is based upom a pre-trained Image Classification Model that comes with Keras and then retrained on the infamous Food101 Dataset.
Accuracy : 85%
Model 1: EfficientNetB1
Model 2: Inception-ResNet-V2
Dataset : Food101
- Clone the project
git clone https://github.com/r-narula/Food-Vision.git
- Go to the project directory
cd Food-Vision
- Create venv
python3 -m virtualenv venv
- Activate the venv
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Start the server
streamlit run app.py
-
EfficientNet is a convolutional neural network architecture and scaling method that uniformly scales all dimensions of depth/width/resolution using a compound coefficient. Unlike conventional practice that arbitrary scales these factors, the EfficientNet scaling method uniformly scales network width, depth, and resolution with a set of fixed scaling coefficients.
-
The compound scaling method is justified by the intuition that if the input image is bigger, then the network needs more layers to increase the receptive field and more channels to capture more fine-grained patterns on the bigger image.
-
The base EfficientNet-B0 network is based on the inverted bottleneck residual blocks of MobileNetV2, in addition to squeeze-and-excitation blocks.
-
EfficientNets also transfer well and achieve state-of-the-art accuracy on CIFAR-100 (91.7%), Flowers (98.8%), and 3 other transfer learning datasets, with an order of magnitude fewer parameters.
- Food-101 (4.67GB)
- Tensorflow
- Tensorflow-Hub
- Numpy
- Matplotlib
- Streamlit
- Model-1-Inception-Resnet-V2
- Model-2-EfficientNet(Used internally)
- Download Link (400+ MB)
- Above model all layers
- Front-End: Streamlit
- Cloud:Streamlit Cloud
- DL-Framework: Tensorflow