Add segmentation masks to COCO detection dataset
- SAM weights put to
weights
dir here - vit_h
- weights/sam_vit_h_4b8939.pth
- COCO json files put to
dataset
dir
- dataset/annotation.json
- dataset/images dir for image files
-
Install modules
pip install -r requirements.txt
-
Use help with
python segmentation_coco.py -h