Downloads · 30 days
12
9% of all-time downloads
mertcan81/food-detection-model
food-detection-model is a machine learning model from mertcan81. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Bu model, gıda ve gıda dışı nesneleri sınıflandırmak için eğitilmiştir. Model, 270 farklı yemek kategorisini algılayabilir.
Downloads · 30 days
12
9% of all-time downloads
All-time downloads
132
Public
Parameters
878M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.5 GB · 100%
From the Hugging Face model README
## Model Özeti
Bu model, gıda ve gıda dışı nesneleri sınıflandırmak için eğitilmiştir. Model, **270 farklı yemek kategorisini** algılayabilir.
## Kullanım
Bu modeli kullanmak için aşağıdaki kodu çalıştırabilirsiniz:
```python
from transformers import CLIPModel, CLIPProcessor
model = CLIPModel.from_pretrained("mertcan81/food-detection-model")
processor = CLIPProcessor.from_pretrained("mertcan81/food-detection-model")
# Görsel üzerinde tahmin
from PIL import Image
image = Image.open("example.jpg")
inputs = processor(images=image, text=["food", "non-food"], return_tensors="pt")
outputs = model(**inputs)
logits_per_image = outputs.logits_per_image
probs = logits_per_image.softmax(dim=1)
print("Tahmin:", probs)
```
## Veri Kümesi
Model, [Food-101](https://data.vision.ee.ethz.ch/cvl/datasets_extra/food-101/) veri seti ile eğitilmiştir.
## Lisans
MIT Lisansı altında sunulmuştur.