Giter VIP home page Giter VIP logo

foodlifier's Introduction

Foodlifier

Welcome to Foodlifier, the AI-powered food classifier that can identify your favorite dishes with just a glance! This PyTorch project trains a convolutional neural network (CNN) to classify images of food into different categories using the Food-101 dataset. The training process is visualized using TensorBoard, and the accuracy of the trained network is evaluated on the test data.

Installation

To run Foodlifier, you will need to install the following dependencies:

  • PyTorch
  • TorchVision
  • NumPy
  • Matplotlib

You can install these dependencies using pip:

pip install torch torchvision numpy matplotlib

You will also need to download the Food-101 dataset and specify the path to the training and test data in the Python code.

Usage

To use Foodlifier, run the following command:

python train.py

This will start the training process, which will take several minutes to complete depending on your hardware.

Once the training is complete, the accuracy of the trained network on the test data will be printed out.

Visualization

To visualize the training process using TensorBoard, run the following command:

tensorboard --logdir=logs

This will start TensorBoard on your local machine, which you can access by navigating to http://localhost:6006 in your web browser. You should see a dashboard showing the training loss and test accuracy over time.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

Acknowledgments

This project was inspired by the PyTorch tutorial on Image Classification with PyTorch.

© Shafik Quoraishee 2023. All Rights Reserved.

foodlifier's People

Contributors

squoraishee avatar

Watchers

 avatar

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.