/eye-of-segmento

segment-anything and ConvNeXt on webcam input

Primary LanguagePython

Eye of Segmento

Demo

demo.mp4

For demo purposes, camera input is replaced with video.

Install

git clone https://github.com/star-bits/eye-of-segmento.git
cd eye-of-segmento

pip install -r requirements.txt
pip install git+https://github.com/facebookresearch/segment-anything.git

Download models

ls ./models

__init__.py			layers.py
convnext.py			sam_vit_b_01ec64.pth
convnext_base_1k_224_ema.pth	sam_vit_h_4b8939.pth
convnext_small_1k_224_ema.pth	sam_vit_l_0b3195.pth
convnext_tiny_1k_224_ema.pth

Run

Ensure hud_font config points to the path of your font.

python run.py