Giter Site home page Giter Site logo

foodformer's Introduction

MSDS - MLOps course - Foodformer foodformer_logo

Python 3.10 Colab

Training

For model training, we harnessed the power of PyTorch Lightning to fine-tune our model using the Foodset 101 dataset, which is available through TorchVision.

Our model is built upon the VisionTransformer architecture, known for its excellent performance in multi label image recognition tasks.

We conducted training over a span of 10 epochs, optimizing the model to achieve results through distributed data parallelism. To explore the training progress, metrics, and insights, please visit the W&B dashboard.

Development

To setup this repo locally, create a virtual environment (e.g. with PyEnv):

brew install pyenv
pyenv init
pyenv install -s 3.10.10
pyenv virtualenv 3.10.10 foodformer
pyenv activate foodformer
pyenv local foodformer

then install the dependencies and pre-commit hooks:

pip install -r requirements.txt
pre-commit install

Demo

You can access the demo of the application at here

Testing the API

You can use API platforms like Postman or Insomnia, the command-line tool curl.

  • for the healthcheck endpoint: curl http://localhost:8080
  • for a post endpoint called predict:
curl -X 'POST' \
  'http://35.88.15.190//predict' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected];type=image/jpeg'

Load testing Reports

For load testing via locust, follow the instructions.

cd load_testing
docker build --no-cache -t my-image:latest .
docker run -p 8890:8089 my-image:latest

Set the load testing parameters and take required screenshots. Screenshots from my test runs are as follows:-

Image Alt Text

Other screenshots can be found here

  1. Image 1
  2. Image 2
  3. Image 3

Grafana Dashboard

You can access the Grafana dashboard snapshot here.

Explore valuable metrics and insights from our project on the dashboard.

foodformer's People

Contributors

maneelusf avatar nico-usf avatar nkthiebaut 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.