Giter VIP home page Giter VIP logo

ml-food-rating's Introduction

ml-food-rating

TensorFlow Keras Docker Google Colab LICENSE Docker Version Docker Pulls

Food Rating Classification using Convolutional Neural Network (CNN) and deployed using TensorFlow Serving.

Notebook: MamMates Food Rating

Dataset: Food Rating Dataset

Features ๐Ÿ’ก

Using Mammates Food Rating, you can categorize food images into 3 classes.

Class Label
0 Rating 1 (MamRates โญ)
1 Rating 2 (MamRates โญโญ)
2 Rating 3 (MamRates ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ)

Prerequisites ๐Ÿ“‹

Usage โœจ

If you already have Docker installed, you only need to run the following command:

  • Pull the image from Docker Hub:
docker pull putuwaw/mammates-food-rating
  • Run the image:
docker run -p 8502:8502 --name ml-rating putuwaw/mammates-food-rating
curl -s https://raw.githubusercontent.com/MamMates/ml-food-rating/main/example.json | curl -X POST -d @- http://localhost:8502/v1/models/food_rating:predict
  • You will get the following response:
{
  "predictions": [[0.00170704955, 0.46321556, 0.535077393]]
}

Development ๐Ÿ’ป

If you want to develop this model, you can follow the steps below:

  • Clone this repository:
git clone https://github.com/MamMates/ml-food-rating.git
  • Update the model by changing the saved model in the model folder.

  • Build the Docker image:

docker build -t mammates-food-rating .
  • Run the image:
docker run -p 8502:8502 --name ml-rating mammates-food-rating
curl -d @example.json -X POST http://localhost:8502/v1/models/food_rating:predict
  • To stop the container:
docker stop ml-rating

Note

If you want to learn more about TensorFlow Serving, you can read the REST API documentation here.

License ๐Ÿ“

This project is licensed under the MIT License. See the LICENSE file for details.

ml-food-rating's People

Contributors

putuwaw avatar michelleek avatar

Watchers

 avatar

ml-food-rating's Issues

[DOCS] Set Up Repository

Background

As a developer, I want to make an easy process both in requesting features/report bugs and making pull requests.

Solution

Set up repository by adding .gitignore, README.md, and PR with issues template.

Additional information

Please also add LICENSE and .gitattributes to ignore .pb file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.