Views
No views yet
1from ultralytics import YOLO
2
3# Load the model directly from Hugging Face Hub
4model = YOLO("https://huggingface.co/<your-username>/<model-name>/resolve/main/model.pt")
5
6# Run inference on an image
7results = model("test.jpg")
8
9# Show results
10results[0].show()