Skip to content

jellyho/SAM-Segmentation-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

SAM-Segmentation-Tool

Simple mask making using SAM, QT UI included.

Installation

  • torch cuda envrionment required
  • PyQt5
  • segment_anything
    pip install git+https://github.com/facebookresearch/segment-anything.git
    pip install opencv-python pycocotools matplotlib onnxruntime onnx
    
  • download model weights to your BASE_DIR https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth

Prepare Images

Put your Image that you want to make Masks for to BASE_DIR/Img

Excute

  • Excute SST.py image

  • Select images and click to create Masks image

  • Select Mask layer that you want to make

    image image image

  • Then press Make, .npy file will be stored at BASE_DIR/Mask/(img_name)_mask.npy image

About

Simple mask making using SAM, qt ui included.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages