nandiniseth0809 / Food-Vision-1

Using Deep Learning to Predict different types of Food Items.

Home Page:https://share.streamlit.io/raghavnarula/food-vision/main/app.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Food Vision

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

Few Examples

  • Ice-Cream predicted as Ice-Creame

  • Pizza predicted as Pizza

Run Locally

  • 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 

All Food Classes (101)

EFFICIENT-NET MODEL DESCRIPTION

  • 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.

Requirements (When building from Scratch)

Data File

Dependencies

Trained Model (Inception-Resnet-V2)

  • Training And Validation loss

  • Training And Validation Accuracy

Tech Stack

About

Using Deep Learning to Predict different types of Food Items.

https://share.streamlit.io/raghavnarula/food-vision/main/app.py


Languages

Language:Jupyter Notebook 99.8%Language:Python 0.2%