Halal logo detection
Collection
3 items โข Updated
How to use lew96123/yolov12-small-halal-logo-finetune with ultralytics:
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# pick the weights file from this repo's "Files and versions" tab
weights = hf_hub_download("lew96123/yolov12-small-halal-logo-finetune", "<weights>.pt")
model = YOLO(weights)
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)