facebookresearch / facebookresearch/sam2
Error using VOS optimized inferences in vos_inference.py
- Dominant language
- Jupyter Notebook
- Stars
- 19.9k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
When setting the `--use_vos_optimized_video_predictor`
I get the following error
`torch._dynamo.exc.InternalTorchDynamoError: RuntimeError: Error: accessing tensor output of CUDAGraphs that has been overwritten by a subsequent run.`
This is my environment, I built it from SAM2's requirement.
```
antlr4-python3-runtime 4.9.3
filelock 3.16.1
fsspec 2024.10.0
hydra-core 1.3.2
iopath 0.1.10
Jinja2 3.1.4
MarkupSafe 3.0.2
mpmath 1.3.0
natsort 8.4.0
networkx 3.4.2
numpy 2.2.0
nvidia-cublas-cu12 12.4.5.8
nvidia-cuda-cupti-cu12 12.4.127
nvidia-cuda-nvrtc-cu12 12.4.127
nvidia-cuda-runtime-cu12 12.4.127
nvidia-cudnn-cu12 9.1.0.70
nvidia-cufft-cu12 11.2.1.3
nvidia-curand-cu12 10.3.5.147
nvidia-cusolver-cu12 11.6.1.9
nvidia-cusparse-cu12 12.3.1.170
nvidia-nccl-cu12 2.21.5
nvidia-nvjitlink-cu12 12.4.127
nvidia-nvtx-cu12 12.4.127
omegaconf 2.3.0
opencv-python 4.10.0.84
packaging 24.2
pandas 2.2.3
pillow 11.0.0
pip 24.2
portalocker 3.0.0
python-dateutil 2.9.0.post0
pytz 2024.2
PyYAML 6.0.2
SAM-2 1.0 /path/sam2
scipy 1.14.1
setuptools 75.6.0
six 1.17.0
sympy 1.13.1
torch 2.5.1
torchvision 0.20.1
tqdm 4.67.1
triton 3.1.0
typing_extensions 4.12.2
tzdata 2024.2
```
My OS `Ubuntu 22.04.5 LTS`
Would really appreciate the help!
Contributor guide
Assessment
This issue has not been assessed yet.