Views
No views yet
pip install ultralytics huggingface_hub1from huggingface_hub import hf_hub_download
2from ultralytics import YOLO
3
4model_path = hf_hub_download(
5 repo_id="jmartinpizarro/carlav26t",
6 filename="carlav26t.pt"
7)
8
9model = YOLO(model_path)
10
11# Perform object detection on an image
12results = model("test.png") # Predict on an image, assume 640x640 resolution
13results[0].show() # Display results