Skip to main content
QUICK REVIEW

[Paper Review] When SAM Meets Shadow Detection

Leiping Jie, Hui Zhang|arXiv (Cornell University)|May 19, 2023
Advanced Image and Video Retrieval TechniquesComputer Science8 citations
TL;DR

This paper probes Segment Anything Model (SAM) on shadow detection across four benchmarks and finds SAM underperforms versus specialized models, often generating numerous tiny masks; it analyzes mask distributions and evaluates two mask-selection strategies.

ABSTRACT

As a promptable generic object segmentation model, segment anything model (SAM) has recently attracted significant attention, and also demonstrates its powerful performance. Nevertheless, it still meets its Waterloo when encountering several tasks, e.g., medical image segmentation, camouflaged object detection, etc. In this report, we try SAM on an unexplored popular task: shadow detection. Specifically, four benchmarks were chosen and evaluated with widely used metrics. The experimental results show that the performance for shadow detection using SAM is not satisfactory, especially when comparing with the elaborate models. Code is available at https://github.com/LeipingJie/SAMSh.

Motivation & Objective

  • Assess SAM's generalization to shadow detection across multiple benchmarks.
  • Quantitatively compare SAM with state-of-the-art shadow detectors using BER as the primary metric.
  • Characterize SAM-generated mask distributions and investigate mask selection strategies.
  • Provide insights to guide adapting SAM for shadow-related tasks.

Proposed method

  • Use four shadow detection benchmarks: SBU, UCF, ISTD, CUHK, focusing on test splits.
  • Evaluate with Balance Error Rate (BER) as the primary metric.
  • Generate multiple masks per image with SAM in the no-prompt setting.
  • Compare two mask-selection strategies: Max F-measure and Max IoU.
  • Provide qualitative visualizations of SAM outputs and failure cases.
  • Discuss distributions of the number and size of predicted masks.

Experimental results

Research questions

  • RQ1How does SAM perform on shadow detection compared to specialized models across common benchmarks?
  • RQ2What is the impact of different mask-selection strategies on SAM's shadow detection performance?
  • RQ3What characteristics of SAM-generated masks (e.g., count, size distribution) affect performance on shadow tasks?
  • RQ4Can SAM be effectively adapted or guided for shadow detection beyond zero-shot usage?

Key findings

  • SAM's shadow detection performance is significantly worse than state-of-the-art methods (BER around 25 vs. ~3 on several datasets).
  • SAM tends to produce many tiny segmentation masks, with a wide distribution of counts (0 to ~500) across images.
  • Mask-selection via Max F-measure generally outperforms Max IoU for this task.
  • SAM struggles with complex shadows and shadows on cluttered backgrounds, indicating limited zero-shot generalization to shadow detection.
  • Qualitative results show successful simple-background cases but frequent failures on challenging scenes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.