You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the Supervision issues and found no similar feature requests.
Question
I keep getting the following warning in my console when I run the code SupervisionWarnings: __call__ is deprecated: FPSMonitor.callis deprecated and will be removed insupervision-0.22.0. Use FPSMonitor.fps instead
Here is the code
// inside the custom sink class
` def__init__(self,weights_path: str,zone_configuration_path: str,classes: List[int]):
self._model=YOLO(weights_path,task="segment")self.fps_monitor=sv.FPSMonitor()defon_prediction(self,result: dict,frame: VideoFrame)->None:
self.fps_monitor.tick()fps=self.fps_monitor
I tried this one as well in the on_prediction function fps = self.fps_monitor.fps() but still gettinig the warning.
What can I do to fix this?
My console is filled with this warning and I can't see any other log
supervision version : 0.21.0
Python: 3.11.8
Additional
No response
The text was updated successfully, but these errors were encountered:
Search before asking
Question
I keep getting the following warning in my console when I run the code
SupervisionWarnings: __call__ is deprecated:
FPSMonitor.callis deprecated and will be removed in
supervision-0.22.0. Use
FPSMonitor.fpsinstead
Here is the code
I tried this one as well in the on_prediction function
fps = self.fps_monitor.fps()
but still gettinig the warning.What can I do to fix this?
My console is filled with this warning and I can't see any other log
supervision version : 0.21.0
Python: 3.11.8
Additional
No response
The text was updated successfully, but these errors were encountered: