python 3.10 pytorch clip transformers skimage pip install sqapi
git submodule add https://github.com/facebookresearch/sam2.git
cd sam2
pip install -e .
cd ..
wget -P ./models/ https://dl.fbaipublicfiles.com/segment_anything_2/092824/sam2.1_hiera_large.pt
wget -P ./models/ https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
git clone --recurse-submodules https://github.com/hdoi5324/AnnotationMapping
pip install segment-anything-py
3. (Optional) Install submodules
Within the main directory, run
git submodule update --init --recursive
to clone the relevant submodule for AnnotationMapping for creating the coco file.
git submodule update --init --recursive