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/carlav8nt",
6 filename="carlav8nt.pt"
7)
8
9model = YOLO(model_path)
10
11# Perform object detection on an image
12results = model("test.png") # Predict on an image
13results[0].show() # Display results