ultralytics 8.0.145 Windows URL fix and Pose MPS warning (#4034)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
99cb549efe
commit
a02b7e6273
9 changed files with 30 additions and 18 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from ultralytics.engine.results import Results
|
||||
from ultralytics.models.yolo.detect.predict import DetectionPredictor
|
||||
from ultralytics.utils import DEFAULT_CFG, ROOT, ops
|
||||
from ultralytics.utils import DEFAULT_CFG, LOGGER, ROOT, ops
|
||||
|
||||
|
||||
class PosePredictor(DetectionPredictor):
|
||||
|
|
@ -10,6 +10,9 @@ class PosePredictor(DetectionPredictor):
|
|||
def __init__(self, cfg=DEFAULT_CFG, overrides=None, _callbacks=None):
|
||||
super().__init__(cfg, overrides, _callbacks)
|
||||
self.args.task = 'pose'
|
||||
if isinstance(self.args.device, str) and self.args.device.lower() == 'mps':
|
||||
LOGGER.warning("WARNING ⚠️ Apple MPS known Pose bug. Recommend 'device=cpu' for Pose models. "
|
||||
'See https://github.com/ultralytics/ultralytics/issues/4031.')
|
||||
|
||||
def postprocess(self, preds, img, orig_imgs):
|
||||
"""Return detection results for a given input image or list of images."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue