You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this is likely due to an error in building the SAM 2 CUDA extension, leading to the error above that prevents get_connected_components from working. You're probably using an earlier version of this repo -- after #155 and #175, this should become a warning now instead of an error.
From the error message in the screenshot, the root cause seems that the CUDA kernel is somehow not compiled towards your GPU capability (as mentioned in https://developer.nvidia.com/cuda-gpus).
Maybe you can try pulling the latest code and running the following via TORCH_CUDA_ARCH_LIST=9.0 8.0 8.6 8.9 7.0 7.2 6.0 to manually specify the CUDA capability version?
# run the line below inside the SAM 2 repo
git pull;
pip uninstall -y SAM-2;
rm -f sam2/*.so;
TORCH_CUDA_ARCH_LIST="9.0 8.0 8.6 8.9 7.0 7.2 6.0" \
pip install -e ".[demo]"
When I call this function, the following error occurs, and I find that none of the later cuda-related operations can be performed.
The text was updated successfully, but these errors were encountered: