Vision service implementation using Moondream for local image analysis and question answering
MoondreamService
provides local image analysis and question-answering capabilities using the Moondream model. It runs entirely on your local machine, supporting various hardware acceleration options including CUDA, Intel XPU, and Apple MPS.
To use MoondreamService
, install the required dependencies:
You can obtain a Moondream API key by signing up at Moondream.
Hugging Face model identifier
Model revision/version
Force CPU usage instead of available accelerators
The service automatically detects and uses the best available hardware:
Image format (e.g., ‘RGB’, ‘RGBA’)
Image dimensions (width, height)
Raw image data
Question about the image
Generated description or answer about the image
Error information if processing fails
See the Vision base class methods for additional functionality.
The service collects processing metrics:
Relative performance by hardware:
Vision service implementation using Moondream for local image analysis and question answering
MoondreamService
provides local image analysis and question-answering capabilities using the Moondream model. It runs entirely on your local machine, supporting various hardware acceleration options including CUDA, Intel XPU, and Apple MPS.
To use MoondreamService
, install the required dependencies:
You can obtain a Moondream API key by signing up at Moondream.
Hugging Face model identifier
Model revision/version
Force CPU usage instead of available accelerators
The service automatically detects and uses the best available hardware:
Image format (e.g., ‘RGB’, ‘RGBA’)
Image dimensions (width, height)
Raw image data
Question about the image
Generated description or answer about the image
Error information if processing fails
See the Vision base class methods for additional functionality.
The service collects processing metrics:
Relative performance by hardware: