-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to install SAM 2 on M1 Macbook, but with CUDA error #122
Comments
Hi @sangwf, we have recently made the CUDA extension step optional (in #155) as a workaround to this problem. You can pull the latest code and reinstall via # run the line below inside the SAM 2 repo
git pull;
pip uninstall -y SAM-2;
rm -f sam2/*.so;
pip install -e ".[demo]" which allows using SAM 2 without CUDA extension (the results should stay the same in most cases, see |
@ronghanghu I tried following the steps specified in INSTALL.md for the latest code.
The installation is successful but when I call I'm following the steps in "video predictor example" notebook. What could I be doing wrong? |
@albertjo do you have a GPU in your machine and installed a CUDA version of PyTorch? Currently the SAM 2 repo doesn't support CPU-only or other devices yet (we might provide this support later). At this moment, if you don't have a GPU on your machine, you may use a few community adaptation in #71 (comment) or #123 |
Does that mean I can't do it right now?
Thanks.
The text was updated successfully, but these errors were encountered: