ultralytics 8.0.221 fix Apple MPS inference bug (#6694)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Johnny <johnnync13@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
e504520448
commit
2e71f7f50e
4 changed files with 22 additions and 25 deletions
|
|
@ -117,8 +117,7 @@ class Results(SimpleClass):
|
|||
def update(self, boxes=None, masks=None, probs=None):
|
||||
"""Update the boxes, masks, and probs attributes of the Results object."""
|
||||
if boxes is not None:
|
||||
ops.clip_boxes(boxes, self.orig_shape) # clip boxes
|
||||
self.boxes = Boxes(boxes, self.orig_shape)
|
||||
self.boxes = Boxes(ops.clip_boxes(boxes, self.orig_shape), self.orig_shape)
|
||||
if masks is not None:
|
||||
self.masks = Masks(masks, self.orig_shape)
|
||||
if probs is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue