Downloads · 30 days
0
pinkieseb/carb_regression_model
carb_regression_model is a image classification model from pinkieseb. Use it when you need a label for an image.
This model predicts carbohydrate content from food images.
Downloads · 30 days
0
Access
Public
Updated Aug 12, 2024
Repo size
146 MB
Likes
1
Public
Click a slice to open those files.
.pt73.6 MB · 50%
From the Hugging Face model README
This model predicts carbohydrate content from food images.
from transformers import pipeline
classifier = pipeline("image-classification", model="pinkieseb/carb_regression_model")
result = classifier("path/to/image.jpg")
print(result)
Note: Although this model performs regression, we're using the "image-classification" pipeline as it's the closest standard pipeline for our task. The output will be a single value representing the predicted carbohydrate content.