facebookresearch / segment-anything

The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
45.8k stars 5.42k forks source link

Visible masks of SA-1B dataset using opencv #539

Open mytk2012 opened 11 months ago

mytk2012 commented 11 months ago

I wonder if i can apply opencv to visualize the masks of SA-1B instead of matplotlib. How can i do? I have tried to do this by pycocotools.masks.decode(results), but it failed. And the value of pycocotools.masks.decode(results) seems 0 only.

ryouchinsa commented 11 months ago

RectLabel is an offline image annotation tool for object detection and segmentation. Although this is not an open source program, you can drag & drop the COCO RLE JSON file of the SA-1B dataset to the labels table to import mask annotations.

Segment Anything 1 Billion (SA-1B) is a dataset designed for training general-purpose object segmentation models from open world images.

dragDropRLEJSONFilesXML

ryouchinsa commented 9 months ago

Improved "Create polygon using SAM" feature so that you can label pixels using the pixels option. You can label Segment Anything 1 Billion (SA-1B) like dataset by yourself.

sam-pixels

IApple233 commented 8 months ago

I have encountered the same issue, have you solved the problem?