facebookresearch / facebookresearch/segment-anything
Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
- Dominant language
- Jupyter Notebook
- Stars
- 54.9k
- Forks
- 6.4k
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to run a code on MPS apple silicon. it is giving the following error
"Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead."
However, the code is running fine on colab with device = 'cuda'. What could be the possible reason.
[Untitled-1.txt](https://github.com/facebookresearch/segment-anything/files/11619332/Untitled-1.txt)
Contributor guide
Research direction
Read the attached Untitled-1.txt first, then reproduce the reported path on Apple silicon with device='mps' and compare it with the device='cuda' run. Trace where the MPS execution receives a float64 tensor and document the specific source and a verified way to complete the example without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pytorch
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100