要約
このペーパーでは、パフォーマンスの低下を最小限に抑えながらエッジ デバイス上で効率的に実行できるように最適化された、セグメント エニシング モデル (SAM) の高速化されたバージョンである EdgeSAM について説明します。
私たちのアプローチには、オリジナルの ViT ベースの SAM 画像エンコーダーを、エッジ デバイスにより適した純粋な CNN ベースのアーキテクチャに蒸留することが含まれます。
私たちはさまざまな蒸留戦略を慎重にベンチマークし、タスクに依存しないエンコーダー蒸留では SAM に組み込まれた完全な知識を取得できないことを実証しました。
このボトルネックを克服するために、蒸留プロセスにプロンプト エンコーダーとマスク デコーダーの両方を組み込み、ループ内にボックス プロンプトとポイント プロンプトを含めて、蒸留されたモデルがユーザー入力とマスク生成の間の複雑なダイナミクスを正確にキャプチャできるようにします。
ポイント プロンプト蒸留に起因するデータセットのバイアスの問題を軽減するために、エンコーダー内に軽量モジュールを組み込みます。
EdgeSAM は、元の SAM と比較して 40 倍の速度向上を達成し、MobileSAM よりも優れたパフォーマンスを発揮します。エッジ デバイスに導入すると 14 倍高速になり、COCO と LVIS の mIoU がそれぞれ 2.3 と 3.2 向上します。
これは、iPhone 14 上で 30 FPS 以上で実行できる初の SAM バリアントでもあります。コードとモデルは https://github.com/chongzhou96/EdgeSAM で入手できます。
要約(オリジナル)
This paper presents EdgeSAM, an accelerated variant of the Segment Anything Model (SAM), optimized for efficient execution on edge devices with minimal compromise in performance. Our approach involves distilling the original ViT-based SAM image encoder into a purely CNN-based architecture, better suited for edge devices. We carefully benchmark various distillation strategies and demonstrate that task-agnostic encoder distillation fails to capture the full knowledge embodied in SAM. To overcome this bottleneck, we include both the prompt encoder and mask decoder in the distillation process, with box and point prompts in the loop, so that the distilled model can accurately capture the intricate dynamics between user input and mask generation. To mitigate dataset bias issues stemming from point prompt distillation, we incorporate a lightweight module within the encoder. EdgeSAM achieves a 40-fold speed increase compared to the original SAM, and it also outperforms MobileSAM, being 14 times as fast when deployed on edge devices while enhancing the mIoUs on COCO and LVIS by 2.3 and 3.2 respectively. It is also the first SAM variant that can run at over 30 FPS on an iPhone 14. Code and models are available at https://github.com/chongzhou96/EdgeSAM.
arxiv情報
| 著者 | Chong Zhou,Xiangtai Li,Chen Change Loy,Bo Dai |
| 発行日 | 2023-12-11 18:59:52+00:00 |
| arxivサイト | arxiv_id(pdf) |
提供元, 利用サービス
arxiv.jp, Google