visualqna

Visualqna Docker Image

这是一个视觉问答网关镜像,可基于图像与问题的组合输出自然语言答案,适用于无障碍、教育、电商及图像检索等场景。

下载次数: 0状态:社区镜像维护者:opea仓库类型:镜像最近更新:
下载命令
点击查看

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

  1. https://github.com/opea-project/GenAIExamples/blob/main/GenAIExamples/VisualQnA/README.md#architecture
  2. https://github.com/opea-project/GenAIExamples/blob/main/GenAIExamples/VisualQnA/README.md#deployment-options
  3. 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.

CategoryDeployment OptionDescription
On-premise DeploymentsDocker composehttps://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
Kuberneteshttps://github.com/opea-project/GenAIExamples/blob/main/./kubernetes/helm
https://github.com/opea-project/GenAIExamples/blob/main/./kubernetes/gmc

Validated Configurations

Deploy MethodLLM EngineLLM ModelHardware
Docker ComposeTGI, vLLMllava-hf/llava-v1.6-mistral-7b-hfIntel Xeon
Docker ComposeTGI, vLLMllava-hf/llava-1.5-7b-hfIntel Gaudi
Docker ComposeTGI, vLLMllava-hf/llava-v1.6-mistral-7b-hfAMD EPYC
Docker ComposeTGI, vLLMXkev/Llama-3.2V-11B-cotAMD ROCm
Helm ChartsTGI, vLLMllava-hf/llava-v1.6-mistral-7b-hfIntel Gaudi
Helm ChartsTGI, vLLMllava-hf/llava-v1.6-mistral-7b-hfIntel Xeon

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 visualqna 镜像标签

docker pull docker.xuanyuan.run/opea/visualqna:<标签>

DockerHub 原生拉取命令

docker pull opea/visualqna:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告