cookit is a deep learning model for object-detection of food ingredients on images. It's running on a webserver, deployed in a Docker container. The model used for predictions is FasterRCNN+InceptionResNetV2, trained on OpenImages v4
The frontend repository is running here. A user may upload there an image of certain food ingredients and the deep learning model will detect a list of ingredients which are on the image. The user can than edit and extend ingredients to find recipes which make the most of available ingredients at home.
Get the project
# Either
git clone [email protected]:csseries/cookit.git
# Or
git clone https://github.com/csseries/cookit.gitCreate virtualenv:
sudo apt-get install virtualenv python-pip python-dev
deactivate; virtualenv ~/venv ; source ~/venv/bin/activate ;\
pip install pip -U; pip install -r requirements.txtInstall requirements:
pip install -r requirementsNOTE: At the time of writing, Mac users with a M1 chip had to apply this command in addition:
pip uninstall tensorflow
pip install tensorflow-macos tensorflow-metalDownload model (optional):
make download_modelRun the backend
# Will run backend locally on http://localhost:8080/predict
make run_locallyTo test the performance of the model, run
make performance_testwhich will download a number of images, apply the detector and calculate an accuracy value. Based on the used set of test images, an average accuracy of 0.31 is reached.
This project was made within the scope of a Le Wagon Data Science bootcamp, batch #674 in Munich. 🚌