@lillyguisnet: In 2023 I used a combination of SAM1 + a custom vit classifier to ID and automate the segmentation of my microscopy ima…
Summary
The author shares a method to automate microscopy image segmentation using SAM1 and SAM3.1, achieving 100% accuracy by grouping similar images and exploiting video-like propagation.
View Cached Full Text
Cached at: 08/24/26, 04:00 PM
In 2023 I used a combination of SAM1 + a custom vit classifier to ID and automate the segmentation of my microscopy images.
Today, SAM3.1 can do it zero-shot. (-ish)
The difficulty with extracting a mask from images such as those is that they are full of other crap you don’t care about. How can you direct the model to extract only your item of interest and not the other object-like things?
You could just click each image one by one and get beautiful masks, but that’s time consuming, trying to do better.
After trying a good bunch of approaches, something cool emerged. You can exploit the small similarity that exists between microscopy images to trick the model into propagating the object mask, as if it was a video.
The final best approach segmented 100% of the images.
Group the images by SSIM similarity give the model a single point prompt propagate on the group “video” use 2-3 overlap images from the first group as prompts to propagate in your second group continue jumping through groups establish failure flags that are known for your context (empty mask, size thresholds, position thresholds, etc) failed images are regrouped until pass
That’s it. A simple algorithm automates the task!
Text prompting per-image (with prompt optimization) also achieved 100% segmentation. BUT many images included false positives (multi-masks) which were not automatically filtered out. The single-ID video approach forces the model to return a single mask and our prompt targets the object of interest.
I like how today’s models with a little program optimization magic can solve your problems :)
The segmentation quality is not quite there tho, looking into that
Similar Articles
@MaximeRivest: this is a really cool and powerful trick for image segmentation with sam without prompting! > You can exploit the small…
A technique is shared for using the Segment Anything Model (SAM) to segment images without prompting by exploiting similarities in microscopy images, enabling zero-shot mask propagation similar to video.
@lillyguisnet: WEEE!!! I had not had the opportunity to try SAM3.1 yet, but simply prompting for "worm" perfectly segmented my images!…
A user shares enthusiastic feedback about SAM 3.1's ability to accurately segment images using simple text prompts like 'worm', highlighting significant improvements over SAM 1.
@lillyguisnet: Not quite done with the comparison, but I already love the small extra segmentation improvements from SAM3.1! It seems …
The tweet praises SAM3.1 for improved segmentation with faint borders and better tail coverage, leading to more accurate length measurements.
SAM 3: Segment Anything with Concepts
SAM 3 introduces a unified model for promptable concept segmentation and tracking, achieving state-of-the-art performance with a decoupled recognition and localization architecture and a scalable data engine.
@skalskip92: there's no catch; SAM3 is open source and really good one of the things it does really well is object tracking, even in…
SAM3 (Segment Anything Model 3) is open source and performs exceptionally well at object tracking even in complex scenes like basketball, making it a standout computer vision model.