inverse-cooking-v2 / README.md
522H0134-NguyenNhatHuy's picture
Update README.md
238ad99 verified
---
title: Inverse Cooking Version 2
emoji: πŸ‘€
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 5.32.0
app_file: app.py
pinned: false
license: mit
short_description: Generate recipes from food images using Facebook's model.
---
# Inverse Cooking - Recipe Generator from Images 🍽️
This Space deploys the [Inverse Cooking](https://github.com/facebookresearch/inversecooking) model developed by Facebook AI Research (FAIR).
Upload a food image and receive a predicted recipe with ingredients and cooking instructions.
> ⚠️ This model and code were originally developed by [facebookresearch/inversecooking](https://github.com/facebookresearch/inversecooking).
> This deployment is for demonstration purposes only and does not claim ownership of the model or training data.
---
## πŸ”§ How it works
1. A Transformer-based encoder-decoder architecture takes an image of food.
2. It predicts a list of ingredients.
3. Based on the predicted ingredients, it generates cooking instructions.
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/KXsKMHthJmqBYBCMXSsjO.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/5g4dNkPAz3MFL5c4b_Yic.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/bP74rsSF4vqfh35hXNBXc.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/KBbPpmI3ChLkFqZCNwXAW.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/wKUG1fZbLd0aGTMTV9rAn.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/QcD59EhwUCU0tymzVOzqD.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/NgzoE70x9NtarWvy1kJpz.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/kQTJiZx9eAlbCeu0B_GpG.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/suUWezLJxRYKG9JkXRAjN.png)
![image/png](https://cdn-uploads.huggingface.co/production/uploads/65f8530280481173afd9eba2/8w-h8STfW6UTF4El7aUUY.png)
---
## 🧠 Model Info
- Encoder: ResNet-based visual encoder
- Decoder: Transformer decoder
- Trained on: Recipe1M+ dataset
---
## πŸ“„ License
This deployment uses the original code and model weights licensed under **MIT License** from FacebookResearch.
---