visualqna

Visualqna Docker 镜像

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

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

视觉问答

视觉问答(VQA)是基于图像回答开放式问题的任务,模型输入通常为图像与问题的组合,输出为自然语言表达的答案。

核心功能

  • 接收图像与问题输入,生成精准自然的语言答案
  • 支持在Intel Gaudi2、Intel Xeon、AMD EPYC等多类硬件上部署
  • 采用微服务架构,整合LVM组件实现高效数据流转与处理

使用场景

  • 无障碍应用:为视障人士提供图像内容理解服务
  • 教育领域:针对教材/展览视觉材料提问,辅助互动学习
  • 电商服务:让用户针对产品图像提问,提升购物体验
  • 图像检索:根据问题筛选具有特定特征的图像(如“是否包含小狗?”)

架构

基于GenAIComps组件级微服务实现,信息流转如下:

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

该示例支持在Intel Gaudi2、Intel Xeon及AMD EPYC处理器上部署LLaVA-NeXT多模态模型,欢迎硬件厂商贡献扩展生态。

部署选项

类别部署选项描述
本地部署Docker 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

验证配置

部署方法LLM引擎LLM模型硬件
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/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告