r/computervision • • Sep 08 '26

Discussion Looking for best segmentation model.

Hi, I am looking for very accurate segmentation model (instance or semantic) that can perform very good even on small objects. I want to train or full finetune the base model on my dataset. Any suggestions. I have tried sam3, uunet, rfdter. But still i am not satisfied by results. Any suggestions?

6 Upvotes

15 comments sorted by

5

u/SwiftGoten Sep 08 '26

Is it mixed between small and large objects? If it is only small objects then predicting patches via sliding window might be a better way than trying to increase the model base resolution.
I know nnUnet has some auto ML parts which estimate an optimal crop size and can train a model for you at this resolution. I am not sure if they have convenience wrappers which automatically split an input image into patches, predicts them and aggregates them back to the original resolution.

Another idea to potentially try is first having a detection model narrow down the region you are interested in and only then use segmentation.

1

u/Commercial-Delay-596 Sep 08 '26

did you try different models for different sizes.

1

u/VirtualAd7985 Sep 08 '26

can you elobrate?

1

u/aloser Sep 08 '26

Are you sure your dataset isn't the problem?

1

u/RatePuzzleheaded6914 Sep 09 '26

The classical mmdetection

Or récent state of the art edge crafter editing the model configuration to produce a full res probability map

-1

u/appumani Sep 08 '26

Birefenet!

1

u/VirtualAd7985 Sep 08 '26

Isn't more like background removal thing.

0

u/appumani Sep 08 '26

It is, but it segments the foreground perfectly, it worked quite well on small objects, but yeah it does not classify the objects

4

u/[deleted] Sep 08 '26

[removed] — view removed comment

1

u/VirtualAd7985 Sep 08 '26

Its already 1024

1

u/Rusty-Swashplate Sep 08 '26

Same here: zoom in more or use a better resolution sensor (and if you use cameras with MJPEG stream, keep in mind that they will smush small objects by design). I use YOLO26 and it worked very well for detecting people, but if those people are 20 pixel high, then that didn't cut it.