wildedge-python icon indicating copy to clipboard operation
wildedge-python copied to clipboard

ultralytics model.predict() is not tracked

Open piotrekno1 opened this issue 1 month ago • 0 comments

What happens

The ultralytics integration only patches YOLO.__call__. model.predict(...), the call the ultralytics docs use, records no inference event. model(...) is tracked.

model = YOLO("yolov8n.yaml")
model(image)          # tracked
model.predict(image)  # not tracked

This is the same shape as #64 (gguf): the patched method isn't the one every entry point goes through.

Expected

Patch predict (YOLO.__call__ delegates to it, so that covers both without double counting), and maybe track, which also runs predictions.

Repro

tests/compat/test_ultralytics_compat.py::test_yolo_predict_is_tracked (marked xfail(strict=True) until this is fixed). Checked on ultralytics 8.4.182.

🤖 Generated with Claude Code

piotrekno1 avatar Oct 20 '26 13:10 piotrekno1