I create a conda environment to run the sam3 model. My system is Windows 11. Here is what I've done:
Step 1. download sam3.pt
Step 2. conda create --name sam3 python=3.12
Step 3. conda activate sam3
Step 4. pip install torch==2.7.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
Step 5. git clone https://github.com/facebookresearch/sam3
Step 6. cd sam3
Step 7. pip install -e .
Step 8. pip install requests einops decord pycocotools psutil matplotlib pandas scikit-image scikit-learn triton-windows
Step 9. pip install opencv-python
Step 10. cd ..
Step 11. run "for video" basic usage demo code given in https://huggingface.co/facebook/sam3
Code can run. But after Step 9, it will report an error:
"ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sam3 0.1.0 requires numpy==1.26, but you have numpy 2.2.6 which is incompatible."