This project provides a Tkinter-based GUI for interactive point-based segmentation using the SAM2 model.
- Load images and interactively select points for segmentation.
- Run SAM2 segmentation and visualize masks.
- Manage mask history (rename, delete, save).
- Pan (WASD) and zoom image view.
- Select multiple masks to combine into custom masks.
- Clone this repository.
- Install dependencies:
pip install pillow numpy pip install git+https://github.com/SauravMaheshkar/samv2.git
- Download the SAM2 checkpoints:
pwsh ./download_checkpoints.ps1
Run the GUI:
python sam2_select.pyThe script download_checkpoints.ps1 downloads the required model checkpoints:
sam2_hiera_tiny.ptsam2_hiera_small.ptsam2_hiera_base_plus.ptsam2_hiera_large.pt