Add inference section
#1
by
nielsr
HF staff
- opened
This PR adds a code snippet showcasing end-to-end inference.
@nielsr
Thanks! Would you mind replacing the inference code and inference result as below? It is simpler and does not need the supervision
dependency. Thank you!
Inference code:
from ultralytics import YOLOv10
model = YOLOv10.from_pretrained('jameslahm/yolov10n')
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)
Thank you!
jameslahm
changed pull request status to
merged