| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Analyze images using a vision-capable GGUF language model.
This uses the same multimodal API that powers the OpenAI-compatible /v1/chat/completions endpoint for vision requests.
Requires a vision-capable model (e.g., LLaVA, Gemma 3 with vision encoder). Text-only models will ignore the image data.
go build -o vision-analysis ./examples/vision-analysis/
# Describe an image
./vision-analysis --model path/to/vision-model.gguf --image photo.jpg
# Ask a specific question about an image
./vision-analysis --model path/to/vision-model.gguf --image chart.png \
--prompt "What trend does this chart show?"
# With GPU
./vision-analysis --model path/to/vision-model.gguf --device cuda --image photo.jpg| Flag | Default | Description |
|---|---|---|
| --model | (required) | Path to a vision-capable GGUF model file |
| --image | (required) | Path to an image file (JPEG or PNG) |
| --device | cpu | Compute device: "cpu", "cuda" |
| --prompt | "Describe this image in detail." | Question or instruction about the image |
| --max-tokens | 512 | Maximum tokens to generate |
| Back | FazBrowse Home | New Git URL |