You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FiftyOne's load_zoo_model supports passing in device="mps" to enable hardware acceleration on Apple Silicon.
While this is working with foz.load_zoo_model("resnet18-imagenet-torch", device="mps"), it doesn't work with a YOLO model: foz.load_zoo_model("yolov8x-world-torch", device="mps").
With the YOLO model, inference runs, but it isn't using the GPU acceleration.
Running YOLO manually and directly on the same machine is able to use GPU acceleration:
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
Yes. I can contribute a fix for this bug independently
Yes. I would be willing to contribute a fix for this bug with guidance
from the FiftyOne community
No. I cannot contribute a bug fix at this time
The text was updated successfully, but these errors were encountered:
Describe the problem
FiftyOne's
load_zoo_model
supports passing indevice="mps"
to enable hardware acceleration on Apple Silicon.While this is working with
foz.load_zoo_model("resnet18-imagenet-torch", device="mps")
, it doesn't work with a YOLO model:foz.load_zoo_model("yolov8x-world-torch", device="mps")
.With the YOLO model, inference runs, but it isn't using the GPU acceleration.
Running YOLO manually and directly on the same machine is able to use GPU acceleration:
Code to reproduce issue
Observe lacking GPU utilization in comparison to running YOLO on the GPU.
System information
python --version
): Python 3.11.8fiftyone --version
): FiftyOne v1.0.2, Voxel51, Inc.Other info/logs
I already tried
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
, but that wasn't sufficient to make it work.Some additional validation on the MPS availability (but again, it also works when not running through FiftyOne, but with YOLO directly):
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
from the FiftyOne community
The text was updated successfully, but these errors were encountered: