ultralytics 8.0.43
optimized Results
class and fixes (#1069)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alexander Duda <Alexander.Duda@me.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
@ -59,7 +59,7 @@ class SegmentationPredictor(DetectionPredictor):
|
||||
|
||||
result = results[idx]
|
||||
if len(result) == 0:
|
||||
return log_string
|
||||
return f'{log_string}(no detections), '
|
||||
det, mask = result.boxes, result.masks # getting tensors TODO: mask mask,box inherit for tensor
|
||||
|
||||
# Print results
|
||||
|
Reference in New Issue
Block a user