Workspace for evaluating multiple different VLMs
- Build Docker Image if not already done:
$ docker compose build - Allow visual display from the docker container:
$ xhost +local:docker - Start up docker container with:
$ docker compose run --rm vision_foundation_models bash
- When using CLIP-DINOiser, activate the respective conda environment:
$ conda activate clipdino - When using RADIO, activate the respective conda environment:
$ conda activate radio - When using all other models (SAM3, CLIP, Grounding-DINO, and Grounded-SAM):
$ conda activate gsam
- Log into hugging face within the docker container in the
conda activate gsamconda environment with:$ hf auth loginOR$ huggingface-cli login- Paste a generated authorization token from your hugging face account
- To access SAM3 model: Request access for the SAM3 model at: https://huggingface.co/facebook/sam3
Simple example implementations of each VLM and masking code is contained in the /workspace/notebooks folder.
Grounded-SAM and Grounding-DINO example code is contained in /workspace/projects/Grounded-Segment-Anything/grounded_sam.ipynb
CLIP-DINOiser example code is contained in /workspace/projects/clip_dinoiser/demo.ipynb
- Prompts for every class with "", and VLM outputs segmentation mask
- Computes per class mIoU, TP, FP, FN, TN,
- Compute across dataset (all classes): F-mIoU, AP, Runtime?