Coder Social home page Coder Social logo

janarez / food201 Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 239.45 MB

On device image segmentation of meals in Android application. Trained on the Food201 dataset.

Jupyter Notebook 99.96% Python 0.01% Java 0.04%
image-segmentation food-201 food-images

food201's Introduction

Image segmentation on the Food201 dataset

UniLj Mobile Sensing class, winter 2020

This repository contains code for food image segmantation model. The model has been trained on the Food201 dataset produced at Google [1] with the aim to run it on device in an Android application (see andoroid-application folder, which also features a video).

Paper summarizing the project is available in releases or here.

Background

Food201 is a dataset of food images along with segmentation masks. There are total of 201 food classes. The dataset is derived from the wellknown Food101 classification dataset.

  • Test set: 2439 images
  • Train set: 9654 images

From my research (Scopus, Google Scholar), I haven't found any other paper apart from [1] that would deal with this dataset.

Goal

The goal is to train a segmenation model convertable to Tensorflow Lite. The model must run on mobile devices without substantial delay.

This limits the scope of the project considerably. Most importantly, the two important architecture approaches employed in [1] are not relevant.

  1. CRF: To smooth the coarse segmentation CRF layer is used. However, this layer is not available in Tensorflow out of the box and requires building custom operations from C++. Although, open source libraries are available, it would still be required to define the ops for conversion to TF Lite.

  2. Classification context: To further aid the model they use results of a pretrained classification model. Again, this is not a suitable approach for mobile devices.

References

[1] Im2Calories: towards an automated mobile vision food diary

food201's People

Contributors

janarez avatar klemenkobau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

scumechanics

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.