This is a gradio web ui for sam with clip. You can extract the specific object from the sam model with some text prompts. Also, it will show the best text prompt with score.
-
Download the sam model from here
-
Install dependencies:
pip install torch opencv-python Pillow
pip install git+https://github.com/openai/CLIP.git
pip install git+https://github.com/facebookresearch/segment-anything.git
- Run the app.py