Computer vision · teaching ablation

What does SAM actually add?

Segment Anything can feel like a free preprocessing upgrade. This page summarizes a matched fruit-classification check: does center-prompt SAM masking help when the training budget and split protocol stay fixed?

The question

For folder-labeled fruit images, does replacing each input with a SAM-masked crop improve classification under the same model family, seed, and data budget — or can aggressive foreground masking throw away cues the classifier was using?

Method sketch

Qualitative finding

SAM is not automatically a free lunch

In this exact center-prompt preprocessing policy, masking the fruit region before training did not deliver a free accuracy win for the matched ResNet ablation. The notebook reports a negative result for that specific masking recipe — not a verdict that SAM is generally harmful, and not a claim about other prompts, datasets, or tasks.

Background context, framing, and imperfect masks can matter as much as “clean” foreground. Read the full run tables and bootstrap interval on Kaggle rather than treating this page as a scoreboard.

What this page is not claiming

Read the experiment

Full protocol, limitations, and executed outputs live in the Kaggle notebook that this Space summarizes.

Open the Kaggle notebook Kernel: sankalpsthakur/fruit-classification-what-does-sam-actually-add