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
47.65k stars 5.63k forks source link

Does "Segment Anything" support using scripts to segment a certain type of objects in a large number of images? #176

Open 0xfocu5 opened 1 year ago

0xfocu5 commented 1 year ago

Does "Segment Anything" support using scripts to segment a certain type of objects in a large number of images? Real-time detection, inference, and bounding box drawing, similar to the YOLO series.

If so, could you provide some tutorial cases? Thank you, looking forward to your reply.

susigo commented 1 year ago

same question here

Yuqifan1117 commented 1 year ago

You can focus on this annotation pipeline. https://github.com/Yuqifan1117/Annotation-anything-pipeline https://github.com/facebookresearch/segment-anything/issues/142#issue-1660266003

0xfocu5 commented 1 year ago

You can focus on this annotation pipeline. https://github.com/Yuqifan1117/Annotation-anything-pipeline #142 (comment)

I don't think this is quite suitable for me. I just want to infer a specific category of object in an image, rather than all of them, such as people passing by in real-time video surveillance.

Yuqifan1117 commented 1 year ago

https://github.com/Yuqifan1117/Annotation-anything-pipeline It also can infer a specific category of object in an image just given the specific label word in '--specific_label'. For more fine-grianed semantic labels, we will use other object detectors to refine in the future. For more fine-grained labels, you can also see in https://github.com/fudan-zvg/Semantic-Segment-Anything

AzulYang commented 1 year ago

Same question. by the way, the current SAM saves each instance. Can we only segment the certain of objects and save one mask, with only the type of objects on this mask?

Karol-G commented 1 year ago

You can create click-based semantic and instnce segmentations with SAM with this repo napari-sam

flameflows commented 1 month ago

I think this is helpful https://github.com/fudan-zvg/Semantic-Segment-Anything