Are you sure you want to delete this access key?
comments | description | keywords |
---|---|---|
true | Ultralytics ํ๋ ์์ํฌ์์ MobileSAM์ ๋ค์ด๋ก๋ํ๊ณ ํ ์คํธํ๋ ๋ฐฉ๋ฒ, MobileSAM์ ๊ตฌํ ๋ฐฉ์, ์๋ณธ SAM๊ณผ์ ๋น๊ต, ๋ชจ๋ฐ์ผ ์ ํ๋ฆฌ์ผ์ด์ ํฅ์ ๋ฑ์ ๋ํด ์์ธํ ์์๋ณด์ธ์. ์ค๋๋ถํฐ ๋ชจ๋ฐ์ผ ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ฐ์ ํ์ธ์. | MobileSAM, Ultralytics, SAM, ๋ชจ๋ฐ์ผ ์ ํ๋ฆฌ์ผ์ด์ , Arxiv, GPU, API, ์ด๋ฏธ์ง ์ธ์ฝ๋, ๋ง์คํฌ ๋์ฝ๋, ๋ชจ๋ธ ๋ค์ด๋ก๋, ํ ์คํธ ๋ฐฉ๋ฒ |
MobileSAM ๋ ผ๋ฌธ์ ์ด์ arXiv์์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
MobileSAM์ CPU์์ ์คํํ๋ ๋ฐ๋ชจ๋ ์ด ๋ฐ๋ชจ ๋งํฌ์์ ํ์ธํ ์ ์์ต๋๋ค. Mac i5 CPU์์์ ์ฑ๋ฅ์ ์ฝ 3์ด์ ๋๋ค. Hugging Face ๋ฐ๋ชจ์์๋ ์ธํฐํ์ด์ค์ ๋ฎ์ ์ฑ๋ฅ์ CPU๊ฐ ๋๋ฆฐ ์๋ต์ผ๋ก ์ด์ด์ง์ง๋ง, ์ฌ์ ํ ํจ๊ณผ์ ์ผ๋ก ์๋ํฉ๋๋ค.
MobileSAM์ Grounding-SAM, AnyLabeling ๋ฐ Segment Anything in 3D๋ฅผ ๋น๋กฏํ ์ฌ๋ฌ ํ๋ก์ ํธ์์ ๊ตฌํ๋์์ต๋๋ค.
MobileSAM์ 1%์ ์๋ณธ ์ด๋ฏธ์ง๋ก ๊ตฌ์ฑ๋ 100k ๋ฐ์ดํฐ์ ์์ ํ๋ฃจ ์ด๋ด์ ๋จ์ผ GPU๋ก ํ์ต๋ฉ๋๋ค. ์ด ํ์ต์ ์ํ ์ฝ๋๋ ๋์ค์ ๊ณต๊ฐ๋ ์์ ์ ๋๋ค.
์ด ํ์์๋ ์ฌ์ฉ ๊ฐ๋ฅํ ๋ชจ๋ธ๊ณผ ํด๋น ๋ชจ๋ธ์ ๋ํ ์ฌ์ ํ๋ จ ๊ฐ์ค์น, ์ง์๋๋ ์์ , Inference, Validation, Training ๋ฐ Export์ ๊ฐ์ ๋ค์ํ ์๋ ๋ชจ๋์ ํธํ์ฑ์ ๋ํ๋ ๋๋ค. ์ง์๋๋ ๋ชจ๋๋ โ ์ด๋ชจ์ง๋ก ํ์๋๊ณ , ์ง์๋์ง ์๋ ๋ชจ๋๋ โ ์ด๋ชจ์ง๋ก ํ์๋ฉ๋๋ค.
๋ชจ๋ธ ์ ํ | ์ฌ์ ํ๋ จ ๊ฐ์ค์น | ์ง์๋๋ ์์ | Inference | Validation | Training | Export |
---|---|---|---|---|---|---|
MobileSAM | mobile_sam.pt |
์ธ์คํด์ค ์ธ๊ทธ๋ฉํ ์ด์ | โ | โ | โ | โ |
MobileSAM์ ์๋ณธ SAM๊ณผ ๋์ผํ ํ์ดํ๋ผ์ธ์ ์ ์งํ๋ฏ๋ก, ์๋ณธ์ ์ ์ฒ๋ฆฌ, ํ์ฒ๋ฆฌ ๋ฐ ๋ชจ๋ ๋ค๋ฅธ ์ธํฐํ์ด์ค๋ฅผ ํตํฉํ์ต๋๋ค. ๋ฐ๋ผ์ ํ์ฌ ์๋ณธ SAM์ ์ฌ์ฉ ์ค์ธ ๊ฒฝ์ฐ, MobileSAM์ผ๋ก ์ ํํ๋ ๋ฐ ์ต์ํ์ ๋ ธ๋ ฅ์ด ํ์ํฉ๋๋ค.
MobileSAM์ ์๋ณธ SAM๊ณผ ๋น๊ต ๊ฐ๋ฅํ ์ฑ๋ฅ์ ๋ฐํํ๋ฉฐ, ์ด๋ฏธ์ง ์ธ์ฝ๋๋ง ๋ณ๊ฒฝ๋์์ต๋๋ค. ๊ตฌ์ฒด์ ์ผ๋ก, ์๋ณธ์ ๋ฌด๊ฑฐ์ด ViT-H ์ธ์ฝ๋ (632M)๋ฅผ ๋ ์์ Tiny-ViT (5M)๋ก ๋์ฒดํ์ต๋๋ค. ๋จ์ผ GPU์์ MobileSAM์ ์ด๋ฏธ์ง ๋น ์ฝ 12ms์ ์์ ์๊ฐ์ด ์์๋ฉ๋๋ค. ์ด๋ฏธ์ง ์ธ์ฝ๋์๋ 8ms๊ฐ ์์๋๊ณ , ๋ง์คํฌ ๋์ฝ๋์๋ 4ms๊ฐ ์์๋ฉ๋๋ค.
๋ค์ ํ๋ ViT ๊ธฐ๋ฐ ์ด๋ฏธ์ง ์ธ์ฝ๋๋ฅผ ๋น๊ตํฉ๋๋ค:
์ด๋ฏธ์ง ์ธ์ฝ๋ | ์๋ณธ SAM | MobileSAM |
---|---|---|
๋งค๊ฐ๋ณ์ | 611M | 5M |
์๋ | 452ms | 8ms |
์๋ณธ SAM๊ณผ MobileSAM์ ๋์ผํ ํ๋กฌํํธ ๊ฐ์ด๋ ๋ง์คํฌ ๋์ฝ๋๋ฅผ ์ฌ์ฉํฉ๋๋ค:
๋ง์คํฌ ๋์ฝ๋ | ์๋ณธ SAM | MobileSAM |
---|---|---|
๋งค๊ฐ๋ณ์ | 3.876M | 3.876M |
์๋ | 4ms | 4ms |
์ ์ฒด ํ์ดํ๋ผ์ธ์ ๋น๊ต๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
์ ์ฒด ํ์ดํ๋ผ์ธ (์ธ์ฝ๋+๋์ฝ๋) | ์๋ณธ SAM | MobileSAM |
---|---|---|
๋งค๊ฐ๋ณ์ | 615M | 9.66M |
์๋ | 456ms | 12ms |
MobileSAM๊ณผ ์๋ณธ SAM์ ์ฑ๋ฅ์ ํฌ์ธํธ ๋ฐ ๋ฐ์ค๋ฅผ ์ฌ์ฉํ ํ๋กฌํํธ๋ฅผ ํตํด ํ์ธํ ์ ์์ต๋๋ค.
MobileSAM์ ์ฐ์ํ ์ฑ๋ฅ์ ์๋ํ๋ฉฐ, ํ์ฌ์ FastSAM๋ณด๋ค ์ฝ 5๋ฐฐ ์๊ณ 7๋ฐฐ ๋น ๋ฆ ๋๋ค. ์์ธํ ๋ด์ฉ์ MobileSAM ํ๋ก์ ํธ ํ์ด์ง์์ ํ์ธํ ์ ์์ต๋๋ค.
์๋ณธ SAM๊ณผ ๋ง์ฐฌ๊ฐ์ง๋ก, ํฌ์ธํธ ๋ฐ ๋ฐ์ค ํ๋กฌํํธ ๋ชจ๋๋ฅผ ํฌํจํ Ultralytics์์ ๊ฐ๋จํ ํ ์คํธ ๋ฐฉ๋ฒ์ ์ ๊ณตํฉ๋๋ค.
๋ชจ๋ธ์ ์ฌ๊ธฐ์์ ๋ค์ด๋ก๋ํ ์ ์์ต๋๋ค.
!!! Example "์์ "
=== "Python"
```python
from ultralytics import SAM
# ๋ชจ๋ธ ๋ถ๋ฌ์ค๊ธฐ
model = SAM('mobile_sam.pt')
# ํฌ์ธํธ ํ๋กฌํํธ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ธ๊ทธ๋จผํธ ์์ธก
model.predict('ultralytics/assets/zidane.jpg', points=[900, 370], labels=[1])
```
!!! Example "์์ "
=== "Python"
```python
from ultralytics import SAM
# ๋ชจ๋ธ ๋ถ๋ฌ์ค๊ธฐ
model = SAM('mobile_sam.pt')
# ๋ฐ์ค ํ๋กฌํํธ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ธ๊ทธ๋จผํธ ์์ธก
model.predict('ultralytics/assets/zidane.jpg', bboxes=[439, 437, 524, 709])
```
MobileSAM
๊ณผ SAM
์ ๋์ผํ API๋ฅผ ์ฌ์ฉํ์ฌ ๊ตฌํ๋์์ต๋๋ค. ๋ ๋ง์ ์ฌ์ฉ๋ฒ์ ๋ํด์๋ SAM ํ์ด์ง๋ฅผ ์ฐธ์กฐํ์ธ์.
MobileSAM์ด ์ฐ๊ตฌ ๋๋ ๊ฐ๋ฐ์ ์ ์ฉํ๊ฒ ์ฌ์ฉ๋ ๊ฒฝ์ฐ, ๋ค์์ ๋ ผ๋ฌธ์ ์ธ์ฉํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค:
!!! Quote ""
=== "BibTeX"
```bibtex
@article{mobile_sam,
title={Faster Segment Anything: Towards Lightweight SAM for Mobile Applications},
author={Zhang, Chaoning and Han, Dongshen and Qiao, Yu and Kim, Jung Uk and Bae, Sung Ho and Lee, Seungkyu and Hong, Choong Seon},
journal={arXiv preprint arXiv:2306.14289},
year={2023}
}
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
ultralytics is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?