File size: 878 Bytes
b2fde1c b58bf08 b2fde1c b58bf08 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | ---
license: mit
base_model:
- Ultralytics/YOLOv8
pipeline_tag: object-detection
tags:
- cardilla
- weed
- yolo
---
# Model characteristics #
- Tiled-based inference mode. Optimal input must be 640x640px. Batch-based inference is recommended.
# Model Download and Inference #
Install dependencies:
```bash
pip install ultralytics huggingface_hub
```
And then run the following code for a simple image inference. You can do the inference with either images or videos, following the Ultralytics convention.
```python
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
model_path = hf_hub_download(
repo_id="jmartinpizarro/carlav8t",
filename="carlav8t.pt"
)
model = YOLO(model_path)
# Perform object detection on an image
results = model("test.png") # Predict on an image, assume 640x640 resolution
results[0].show() # Display results
``` |