Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sv.FPSMonitor deprecation warnings #461

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

grzegorz-roboflow
Copy link
Contributor

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

@grzegorz-roboflow grzegorz-roboflow merged commit c838640 into main Jun 10, 2024
50 checks passed
@grzegorz-roboflow grzegorz-roboflow deleted the qol/remove_sv_FPSMonitor_deprecation_warning branch June 10, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants