这是一个视觉问答网关镜像,可基于图像与问题的组合输出自然语言答案,适用于无障碍、教育、电商及图像检索等场景。
Visual Question and Answering
Visual Question Answering (VQA) is the task of answering open-ended questions based on an image. The input to models supporting this task is typically a combination of an image and a question, and the output is an answer expressed in natural language.
Some noteworthy use case examples for VQA include:
- Accessibility applications for visually impaired individuals.
- Education: posing questions about visual materials presented in lectures or textbooks. VQA can also be utilized in interactive museum exhibits or historical sites.
- Customer service and e-commerce: VQA can enhance user experience by letting users ask questions about products.
- Image retrieval: VQA models can be used to retrieve images with specific characteristics. For example, the user can ask “Is there a dog?” to find all images with dogs from a set of images.
Table of Contents
- https://github.com/opea-project/GenAIExamples/blob/main/GenAIExamples/VisualQnA/README.md#architecture
- https://github.com/opea-project/GenAIExamples/blob/main/GenAIExamples/VisualQnA/README.md#deployment-options
- https://github.com/opea-project/GenAIExamples/blob/main/GenAIExamples/VisualQnA/README.md#validated-configurations
Architecture
The VisualQnA example is implemented using the component-level microservices defined in https://github.com/opea-project/GenAIComps. The flow chart below shows the information flow between different microservices for this example.
mermaid--- config: flowchart: nodeSpacing: 400 rankSpacing: 100 curve: linear themeVariables: fontSize: 50px --- flowchart LR %% Colors %% classDef blue fill:#ADD8E6,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 classDef orange fill:#FBAA60,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 classDef orchid fill:#C26DBC,stroke:#ADD8E6,stroke-width:2px,fill-opacity:0.5 classDef invisible fill:transparent,stroke:transparent; style VisualQnA-MegaService stroke:#000000 %% Subgraphs %% subgraph VisualQnA-MegaService["VisualQnA MegaService "] direction LR LVM([LVM MicroService]):::blue end subgraph UserInterface[" User Interface "] direction LR a([User Input Query]):::orchid Ingest([Ingest data]):::orchid UI([UI server<br>]):::orchid end LVM_gen{{LVM Service <br>}} GW([VisualQnA GateWay<br>]):::orange NG([Nginx MicroService]):::blue %% Questions interaction direction LR Ingest[Ingest data] --> UI a[User Input Query] --> |Need Proxy Server|NG a[User Input Query] --> UI NG --> UI UI --> GW GW <==> VisualQnA-MegaService %% Embedding service flow direction LR LVM <-.-> LVM_gen
This example guides you through how to deploy a https://github.com/LLaVA-VL/LLaVA-NeXT (Open Large Multimodal Models) model on https://www.intel.com/content/www/us/en/products/details/processors/ai-accelerators/gaudi.html, https://www.intel.com/content/www/us/en/products/details/processors/xeon.html and https://www.amd.com/en/products/processors/server/epyc.html. We invite contributions from other hardware vendors to expand the OPEA ecosystem.
Deployment Options
The VisualQnA service can be effortlessly deployed on Intel Gaudi2 or Intel Xeon Scalable Processors and AMD EPYC™ Processors.
The table below lists currently available deployment options. They outline in detail the implementation of this example on selected hardware.
| Category | Deployment Option | Description |
|---|---|---|
| On-premise Deployments | Docker compose | https://github.com/opea-project/GenAIExamples/blob/main/./docker_compose/intel/cpu/xeon |
| https://github.com/opea-project/GenAIExamples/blob/main/./docker_compose/intel/hpu/gaudi | ||
| https://github.com/opea-project/GenAIExamples/blob/main/./docker_compose/amd/cpu/epyc | ||
| https://github.com/opea-project/GenAIExamples/blob/main/./docker_compose/amd/gpu/rocm | ||
| Kubernetes | https://github.com/opea-project/GenAIExamples/blob/main/./kubernetes/helm | |
| https://github.com/opea-project/GenAIExamples/blob/main/./kubernetes/gmc |
Validated Configurations
| Deploy Method | LLM Engine | LLM Model | Hardware |
|---|---|---|---|
| Docker Compose | TGI, vLLM | llava-hf/llava-v1.6-mistral-7b-hf | Intel Xeon |
| Docker Compose | TGI, vLLM | llava-hf/llava-1.5-7b-hf | Intel Gaudi |
| Docker Compose | TGI, vLLM | llava-hf/llava-v1.6-mistral-7b-hf | AMD EPYC |
| Docker Compose | TGI, vLLM | Xkev/Llama-3.2V-11B-cot | AMD ROCm |
| Helm Charts | TGI, vLLM | llava-hf/llava-v1.6-mistral-7b-hf | Intel Gaudi |
| Helm Charts | TGI, vLLM | llava-hf/llava-v1.6-mistral-7b-hf | Intel Xeon |
opea 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务