Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Feb 1, 2024
1 parent f4cd937 commit 374c0d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ultralytics/models/yolo/segment/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def postprocess(self, preds, img, orig_imgs):
orig_imgs = ops.convert_torch2numpy_batch(orig_imgs)

results = []
proto = (
preds[1][-1] if isinstance(preds[1], tuple) else preds[1]
) # second output is tuple if pt, but an array if exported
proto = preds[1][-1] if isinstance(preds[1], tuple) else preds[1] # second output is tuple if pt, but array if exported

Check warning on line 44 in ultralytics/models/yolo/segment/predict.py

View check run for this annotation

Codecov / codecov/patch

ultralytics/models/yolo/segment/predict.py#L44

Added line #L44 was not covered by tests
for i, pred in enumerate(p):
orig_img = orig_imgs[i]
img_path = self.batch[0][i]
Expand Down

0 comments on commit 374c0d0

Please sign in to comment.