Skip to main content
QUICK REVIEW

[논문 리뷰] MobileSAMv2: Faster Segment Anything to Everything

Chaoning Zhang, Dongshen Han|arXiv (Cornell University)|2023. 12. 15.
Advanced Neural Network ApplicationsComputer Science인용 수 10
한 줄 요약

MobileSAMv2는 YOLOv8의 객체 인식 박스 프롬프트를 사용하여 SegEvery를 가속화하고 프롬프트를 줄이며 경쟁적인 분할 품질을 유지하고, 증류된 이미지 인코더와 호환됩니다.

ABSTRACT

Segment anything model (SAM) addresses two practical yet challenging segmentation tasks: extbf{segment anything (SegAny)}, which utilizes a certain point to predict the mask for a single object of interest, and extbf{segment everything (SegEvery)}, which predicts the masks for all objects on the image. What makes SegAny slow for SAM is its heavyweight image encoder, which has been addressed by MobileSAM via decoupled knowledge distillation. The efficiency bottleneck of SegEvery with SAM, however, lies in its mask decoder because it needs to first generate numerous masks with redundant grid-search prompts and then perform filtering to obtain the final valid masks. We propose to improve its efficiency by directly generating the final masks with only valid prompts, which can be obtained through object discovery. Our proposed approach not only helps reduce the total time on the mask decoder by at least 16 times but also achieves superior performance. Specifically, our approach yields an average performance boost of 3.6\% (42.5\% extit{v.s.} 38.9\%) for zero-shot object proposal on the LVIS dataset with the mask AR@$K$ metric. Qualitative results show that our approach generates fine-grained masks while avoiding over-segmenting things. This project targeting faster SegEvery than the original SAM is termed MobileSAMv2 to differentiate from MobileSAM which targets faster SegAny. Moreover, we demonstrate that our new prompt sampling is also compatible with the distilled image encoders in MobileSAM, contributing to a unified framework for efficient SegAny and SegEvery. The code is available at the same link as MobileSAM Project \href{https://github.com/ChaoningZhang/MobileSAM}{ extcolor{red}{https://github.com/ChaoningZhang/MobileSAM}}. \end{abstract}

연구 동기 및 목표

  • 원래의 SAM을 넘어서 프롬프트 중복을 줄여 SegEvery(모두 분할)를 더 빠르게 만들기.
  • 오픈 월드 탐지기에서 얻은 바운딩 박스를 이용한 객체 인식 프롬프트 샘플링 전략 제안.
  • MobileSAM에서 객체 인식 프롬프트와 증류된 이미지 인코더의 호환성 시연.
  • 더 높은 효율성을 달성하면서 SegEvery의 성능을 보존하거나 향상시키는지 보여주기.

제안 방법

  • 그리드 탐색 포인트 프롬프트를 오픈 월드 탐지기(YOLOv8)에서 얻은 객체 인식 박스 프롬프트로 교체한다.
  • 오픈월드 데이터(SA-1B의 부분집합)에서 YOLOv8를 학습시켜 경계 상자와 마스크를 생성하고 NMS로 필터링한다.
  • 박스 프롬프트를 직접(또는 중심점)을 SAM 마스크 디코더의 프롬프트로 사용하여 다중 마스크의 모호성을 피한다.
  • 프롬프트 안내 마스크 디코딩은 SAM 디코더로 배치 단위로 수행되며, 이제 훨씬 적은 프롬프트를 사용한다(최대 320개의 박스).
  • 프롬프트 인코딩(사전 샘플링)과 마스크 디코딩(사후 필터링)을 분리하여 효율성을 비교하고, 프롬프트 수 감소로 인한 시간 감소를 강조한다.

실험 결과

연구 질문

  • RQ1객체 인식 박스 프롬프트가 마스크 품질을 희생하지 않으면서 SegEvery를 가속화할 수나?
  • RQ2LVIS의 AR@K 측면에서 박스 프롬프트가 그리드 검색 프롬프트와 어떻게 비교되는가?
  • RQ3MobileSAM에서 객체 인식 프롬프트 접근법이 증류된 이미지 인코더와 호환되는가?
  • RQ4SegEvery에서 프롬프트 양과 분할 정확도 간의 트레이드오프는 무엇인가?

주요 결과

  • 현저한 속도 향상: 객체 인식 프롬프트 샘플링이 그리드-서치 샘플링에 비해 마스크 디코더의 전체 시간을 최소 16배 감소시킴.
  • 평균 LVIS AR@K가 3.6% 향상( MobileSAMv2에서 42.5% vs 베이스라인 SAM에서 38.9%).
  • 320 박스 프롬프트로 MobileSAMv2는 59.3%의 마스크 AR@1000를 달성하고(64×64 그리드의 59.2% 대비) 훨씬 적은 프롬프트를 사용.
  • 박스 프롬프트는 점 프롬프트보다 더 높은 품질의 마스크를 제공하고 모호성이 적어 중후한 포스트 필터링 필요를 줄인다.
  • 증류된 이미지 인코더(EfficientViT-L2)를 사용하면 성능은 다소 하락하지만 속도 이득은 크게 나타나며( ViT-H 대비 56.3% 전체).
  • MobileSAMv2는 MobileSAM의 증류 인코더와 호환되어 효율적인 SegAny 및 SegEvery를 위한 통합 프레임워크를 가능하게 한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.