Skip to content
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

RuntimeError: The detected CUDA version (11.7) mismatches the version that was used to compile PyTorch (12.4). Please make sure to use the same CUDA versions. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building editable for SAM-2 Failed to build SAM-2 ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (SAM-2) #499

Open
GitxiaoxiaoBang opened this issue Dec 18, 2024 · 2 comments

Comments

@GitxiaoxiaoBang
Copy link

  RuntimeError:
  The detected CUDA version (11.7) mismatches the version that was used to compile
  PyTorch (12.4). Please make sure to use the same CUDA versions.
  
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for SAM-2
Failed to build SAM-2
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (SAM-2)

@GitxiaoxiaoBang
Copy link
Author

I don't know how to solve it

@chayryali
Copy link
Contributor

Did you try compiling pytorch with the detected cuda version of 11.7 instead of 12.4? Maybe worth getting help from pytorch forums or issues if that does not work, as this issue does not appear to be specific to SAM 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants