Install EdgeTAM
mainEdgeTAM requires python>=3.10, torch>=2.3.1, and torchvision>=0.18.1. It is recommended to use an Anaconda environment.
To install the core package on a GPU machine:
git clone https://github.com/facebookresearch/EdgeTAM.git && cd EdgeTAM
pip install -e .Notes:
- If you have a PyTorch version lower than 2.3.1, the installation will attempt to upgrade it.
- The installation requires
nvccto compile a custom CUDA kernel. Ensure your CUDA toolkit version matches your PyTorch CUDA version. - If you see
Failed to build the SAM 2 CUDA extension, you can ignore it; the model will still work, though some post-processing might be limited.