git clone https://github.com/PaddlePaddle/PaddleSeg.git
cd PaddleSeg
pip install -r requirements.txt
pip install ftfy regex
cd contrib/SegmentAnything/
wget https://paddleseg.bj.bcebos.com/dygraph/demo/cityscapes_demo.png
wget https://bj.bcebos.com/paddleseg/dygraph/bpe_vocab_16e6/bpe_simple_vocab_16e6.txt.gz
다운로드가 제대로 안된다면 직접 다운로드 후 아래와 같이 위치시킴
- PaddleSeg/contrib
├── SegmentAnything
│ ├── examples
│ │ └── cityscapes_demo.png
│ ├── segment_anything
│ ├── scripts
│ └── bpe_simple_vocab_16e6.txt.gz
pip install gradio
※ model type
- There are three SAM model options for you, vit_b, vit_l and vit_h, represent vit_base, vit_large and vit_huge. Large model is more accurate but slower. You can choose the suitable model size based on your device.
- 이 중 가장 경량화된 모델(vit_b)를 사용
가장 경량화된 모델을 사용해서인지 정확도가 다소 떨어지는 것을 확인
- input radiant jpg
- output
- output mask
이런 유용한 정보를 나눠주셔서 감사합니다.