CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
Firstly, I couldn’t run “git clone git@github.com:facebookresearch/segment-anything-2.git” command, this give permission denied.
So I used “git clone https://github.com/facebookresearch/segment-anything-2.git” command.
Then when I tried “pip install -e .” command, I take this error
CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
解决:
Try
pip install --no-build-isolation -e .
And of course don’t forget to properly set CUDA_HOME env var.