roboflow / inference

A fast, easy-to-use, production-ready inference server for computer vision supporting deployment of many popular model architectures and fine-tuned models.
https://inference.roboflow.com
Other
1.3k stars 116 forks source link

Remove sv.FPSMonitor deprecation warnings #461

Closed grzegorz-roboflow closed 3 months ago

grzegorz-roboflow commented 3 months ago

Description

When running inference pipeline log is spammed with deprecation warnings:

SupervisionWarnings: __call__ is deprecated: `FPSMonitor.__call__` is deprecated and will be removed in `supervision-0.22.0`. Use `FPSMonitor.fps` instead.

Type of change

This is quality of life change.

How has this change been tested, please provide a testcase or example of how you tested the change?

from inference import InferencePipeline
from inference.core.interfaces.stream.sinks import render_boxes

pipeline = InferencePipeline.init(
    model_id="yolov8n-640",
    video_reference=0,
    on_prediction=render_boxes,
)

pipeline.start()
pipeline.join()

Any specific deployment considerations

N/A

Docs

N/A