embellish comment

This commit is contained in:
Mayank Agarwal
2023-08-15 10:50:49 +05:30
parent a5c6fe57f6
commit dacce7aa5f
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -43,8 +43,11 @@ class Classifications:
@classmethod
@deprecated(
"This method is deprecated and removed in 0.16.0 release. Use sv.Classifications.from_ultralytics() instead"
"as it is more generic and can be used for detections from any ultralytics.engine.results.Results Object "
"""
This method is deprecated and removed in 0.16.0 release.
Use sv.Classifications.from_ultralytics() instead as it is more generic and
can be used for detections from any ultralytics.engine.results.Results Object
"""
)
def from_yolov8(cls, yolov8_results) -> Classifications:
"""
+5 -2
View File
@@ -179,8 +179,11 @@ class Detections:
@classmethod
@deprecated(
"This method is deprecated and removed in 0.16.0 release. Use sv.Detections.from_ultralytics() instead"
"as it is more generic and can be used for detections from any ultralytics.engine.results.Results Object "
"""
This method is deprecated and removed in 0.16.0 release.
Use sv.Classifications.from_ultralytics() instead as it is more generic and
can be used for detections from any ultralytics.engine.results.Results Object
"""
)
def from_yolov8(cls, yolov8_results) -> Detections:
"""