Conversation
|
Could this be related #394? The fix for that seems to be limiting |
|
@aruncveli Colab has setuptools v75.1.0 preinstalled, which meets |
|
Yes, sorry, I didn't test properly. Was randomly trying things to get the install to work. I'd installed a patched version of sam2 from source, with the |
|
|
|
@giswqs just installing the different setuptools version won't work, you need to install sam2 from an isolated build with the new setuptools version (tested and confirmed working by me with uv) or install from my git commit. I've tested and this works, we're using it JinsuaFeito-dev/segment-anything-2#1 Once that PR is merged and a new sam2 release is made then you can pin to that new sam2 version |
|
The breaking changes introduced by setuptools have been reverted. If you upgrade setuptools to the latest version v0.78.0.2, sam2 can be installed now. |

Some recent Colab updates break the sam2 installation. As a result, sam2 can no longer be installed. This PR makes sam2 an optional dependency.