wildedge-python
wildedge-python copied to clipboard
ultralytics model.predict() is not tracked
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