ISAT_with_sam/README-en.md
2023-04-20 00:57:39 +08:00

1.3 KiB
Raw Blame History

ISAT with segment anything

Image segmentation annotation tool with segment anything.

Quick annotate image by segment anything.

中文 English

INSTALL

1. 源码运行

# 创建虚拟环境
conda create -n ISAT_with_segment_anything python==3.8
conda activate ISAT_with_segment_anything
# Install Segment anything
git clone git@github.com:facebookresearch/segment-anything.git
cd segment-anything
pip install -e .
cd ..
# Install ISAT_with_segment_anything
git clone https://github.com/yatengLG/ISAT_with_segment_anything.git
cd ISAT_with_segment_anything
pip install -r requirements.txt
# Download Segment anything pretrained checkpoint.
Download the checkpointand save in the path: ISAT_with_segment_anything/segment_any
checkpoint link
   https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
   https://dl.fbaipublicfiles.com/segment_anything/sam_vit_l_0b3195.pth
   https://dl.fbaipublicfiles.com/segment_anything/sam_vit_b_01ec64.pth
The checkpoint named sam_vit_h_4b8939 has best effect, but need more resources
The checkpoint named sam_vit_b_01ec64 has poor effect, but need less resources
# Run the software
python main.py