/SAMPaCS

Extract Person and Clothing silhouettes using Meta's Segment Anything Model

Primary LanguagePython

SAMPaCS: Segment Anything Model Person and Clothes Silhouettes

Installation

Segment Anything

pip install git+https://github.com/facebookresearch/segment-anything.git

or clone the repository locally and install with

git clone git@github.com:facebookresearch/segment-anything.git
cd segment-anything; pip install -e .

Libraries

pip install -r requirements.txt

Model Checkpoints

wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth

Three model versions of the model are available with different backbone sizes. These models can be instantiated by running

from segment_anything import sam_model_registry
sam = sam_model_registry["<model_type>"](checkpoint="<path/to/checkpoint>")

Click the links below to download the checkpoint for the corresponding model type.