facebookresearch / sam2

The repository provides code for running inference with the Meta Segment Anything Model 2 (SAM 2), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
11.25k stars 959 forks source link

ERROR: Failed building editable for SAM-2 #33

Open jc991206 opened 2 months ago

jc991206 commented 2 months ago

when I use cd segment-anything-2; pip install -e . the problem is: 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)

hazratpoladov commented 2 months ago

i do have the same problem, but pip install --no-build-isolation -e . when i use pip install -e . i get cuda_home path error, which is defined in the env paths.

jc991206 commented 2 months ago

i change the version of cuda to 12.1, which solve the problem.

AlexKTracerMain commented 2 months ago

Lol I had this issue in google colab and it turned out i forgot to use a runtime that had a GPU. So... protip for anyone else who ends up here ;)