segment-anything icon indicating copy to clipboard operation
segment-anything copied to clipboard

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

Open 0xfocu5 opened this issue 1 year ago • 7 comments

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.

0xfocu5 avatar Apr 12 '23 03:04 0xfocu5

same question here

susigo avatar Apr 12 '23 06:04 susigo

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

Yuqifan1117 avatar Apr 12 '23 07:04 Yuqifan1117

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.

0xfocu5 avatar Apr 12 '23 07:04 0xfocu5

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

Yuqifan1117 avatar Apr 12 '23 07:04 Yuqifan1117

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?

AzulYang avatar Apr 14 '23 08:04 AzulYang

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

Karol-G avatar Apr 14 '23 17:04 Karol-G