facebookresearch / facebookresearch/sam2

SAM2ImagePredictor returns significantly worse results than provided demo

Open
#622 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I was able to successfully install and run SAM2 on two different windows machines, as well as trying a linux installation with WSL on one of them. I also created a .py file that copies the code provided in "image_predictor_example.ipynb" exactly. One of these computers is a weaker laptop, while the other one has an NVIDIA GeForce RTX 3070.

In all 3 of my sam2 installs/environments, my demo code returns very poor masks, with an example seen below.

![Image](https://github.com/user-attachments/assets/ca6064d0-b130-4db1-b8f2-0ce164716a46)

Any help with solving this would be greatly appreciated, as far as I can tell I have followed all installation steps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.