Interactive scene segmentation tool using Segment Anything
- A graphic card that is compatible with cuda, see compatible graphic cards
- Anaconda, see install Anaconda
-
Download the repository
-
Do:
cd interactive_scene_segmentationconda create --name iss python=3.11conda activate isspip install -r requirements.txt -
Download a pretrained model from Segment Anything, vit_b
Run user interface:
python main.py --dir directory_with_training_images, --model path_to_model
Run training:
python train.py
For adjusting parameters run:
python train.py --help
1/2/3-> to change the interaction type to "point"/ "area" / "polygon"w/s-> to segment finer/coarserd-> to save the image and get to the next oneq-> to quit the program
[1] Kirillov, Alexander and Mintun, Eric and Ravi, Nikhila and Mao, Hanzi and Rolland, Chloe and Gustafson, Laura and Xiao, Tete and Whitehead, Spencer and Berg, Alexander C. and Lo, Wan-Yen and Dollär, Piotr and Girshick, Ross (2023). Segment Anything. arXiv:2304.02643.
