Downloads · 30 days
0
NishithP2004/food-detector-yolo11n-smoke
food-detector-yolo11n-smoke is a machine learning model from NishithP2004. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Single-class object detection model that detects food items in images and returns bounding box coordinates. Trained on the zhiyingzou0202/objectdetectionbboxmergedcocofood dataset (37,639 training images).
Downloads · 30 days
0
Access
Public
Updated Jul 6, 2026
Repo size
54.1 MB
Likes
0
Public
Click a slice to open those files.
.onnx21.7 MB · 65%
From the Hugging Face model README
Single-class object detection model that detects food items in images and returns bounding box coordinates. Trained on the zhiyingzou0202/object_detection_bbox_merged_coco_food dataset (37,639 training images).
food)| Metric | Value |
|---|---|
| Precision | 0.0043 |
| Recall | 0.7647 |
| mAP50 | 0.0715 |
| mAP50-95 | 0.0199 |
| File | Description |
|---|---|
best.pt | Best PyTorch checkpoint |
best_dynamic.onnx | ONNX export (dynamic batch, for server) |
best_static.onnx | ONNX export (static batch=1, best for browser) |
data.yaml | Dataset configuration |
from ultralytics import YOLO
model = YOLO("best.pt")
results = model("path/to/image.jpg")
for result in results:
boxes = result.boxes
for box in boxes:
x1, y1, x2, y2 = box.xyxy[0].tolist()
conf = box.conf[0].item()
print(f"Food detected: bbox=({x1:.0f}, {y1:.0f}, {x2:.0f}, {y2:.0f}), confidence={conf:.2f}")
import * as ort from "onnxruntime-web";
const session = await ort.InferenceSession.create("best_static.onnx");
// Preprocess image to 640x640, normalize, create NCHW tensor
// Run inference, apply NMS, draw bounding boxes
This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.