facebookresearch / facebookresearch/segment-anything

Supporting Apple "mps" device.

Open
#453 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
54.9k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Description

Hello,

When I set device="mps" on Apple M1, I still see the error:

TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.

I see several have raised this issue, but I could not find a clear answer. Can someone help me? Does this feature requires specific version of some of the libs?

Thanks

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing device="mps" on an Apple M1 using the repository's example notebooks and record the installed library versions; compare the float64 failure with the documented runtime requirements. Done should be a confirmed compatibility path or a clear documented limitation.

Written by the indexing model from the issue text.

Assessment

Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.