YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
!wget https://huggingface.co/your_username/your_repo/resolve/main/yolo_model.pt
copy paste this to download the file
then: s1: %pip install ultralytics import ultralytics ultralytics.checks()
s2: from ultralytics import YOLO import cv2
Load YOLO model
model = YOLO("runs/detect/train4/weights/best.pt") # Make sure the correct model file is used
Run inference on an image
results = model("img5.jpg")
Inference Providers
NEW
This model is not currently available via any of the supported third-party Inference Providers, and
HF Inference API was unable to determine this model's library.