闲社服务运行正常AI智能体自动化平台

AltCLIP

BAAI/AltCLIP

发布机构北京智源人工智能研究院(BAAI)已核实

已核对来源国内镜像可用

名称 Name 任务 Task 语言 Language(s) 模型 Model Github AltCLIP text-image representation 中英文 Chinese&English CLIP FlagAI 简介 Brief Introduction

其他模型
模型详情

模型介绍

中文整理

AltCLIP

名称 Name 任务 Task 语言 Language(s) 模型 Model Github

:------------------: :----------: :-------------------: :--------: :------:

AltCLIP text-image representation 中英文 Chinese&English CLIP FlagAI

简介 Brief Introduction

我们提出了一个简单高效的方法去训练更加优秀的双语CLIP模型。命名为AltCLIP。AltCLIP基于 Stable Diffusiosn 训练,训练数据来自 WuDao数据集 和 LIAON

AltCLIP模型可以为本项目中的AltDiffusion模型提供支持,关于AltDiffusion模型的具体信息可查看此教程 。

模型代码已经在 FlagAI 上开源,权重位于我们搭建的 modelhub 上。我们还提供了微调,推理,验证的脚本,欢迎试用。

We propose a simple and efficient method to train a better bilingual CLIP model. Named AltCLIP. AltCLIP is trained based on Stable Diffusiosn with training data from WuDao dataset and Liaon.

The AltCLIP model can provide support for the AltDiffusion model in this project. Specific information on the AltDiffusion model can be found in this tutorial.

The model code has been open sourced on FlagAI and the weights are located on modelhub. We also provide scripts for fine-tuning, inference, and validation, so feel free to try them out.

引用

关于AltCLIP,我们已经推出了相关报告,有更多细节可以查阅,如对您的工作有帮助,欢迎引用。

If you find this work helpful, please consider to cite

训练 Training

训练共有两个阶段。

在平行知识蒸馏阶段,我们只是使用平行语料文本来进行蒸馏(平行语料相对于图文对更容易获取且数量更大)。在双语对比学习阶段,我们使用少量的中-英 图像-文本对(一共约2百万)来训练我们的文本编码器以更好地适应图像编码器。

There are two phases of training.

In the parallel knowledge distillation phase, we only use parallel corpus texts for distillation (parallel corpus is easier to obtain and larger in number compared to image text pairs). In the bilingual comparison learning phase, we use a small number of Chinese-English image-text pairs (about 2 million in total) to train our text encoder to better fit the image encoder.

下游效果 Performance

Language

Method

Text-to-Image Retrival

Image-to-Text Retrival

MR

R@1

R@5

R@10

R@1

R@5

R@10

English

CLIP

  • 0
  • 1
  • 2
  • 1
  • 3
  • 2
  • 6

Taiyi

  • 3
  • 2
  • 2
  • 3
  • 1
  • 6
  • 3

Wukong

-

-

-

-

-

-

-

R2D2

-

-

-

-

-

-

-

CN-CLIP

  • 5
  • 9
  • 8
  • 5
  • 2
  • 0
  • 3

AltCLIP

  • 3
  • 8
  • 7
  • 9
  • 7
  • 1
  • 3

AltCLIP∗

  • 5
  • 6
  • 4
  • 0
  • 0
  • 1
  • 4

Chinese

CLIP

  • 0
  • 4
  • 0
  • 3
  • 1
  • 6
  • 0

Taiyi

  • 7
  • 8
  • 6
  • 8
  • 5
  • 9
  • 4

Wukong

  • 7
  • 9
  • 3
  • 1
  • 8
  • 5
  • 9

R2D2

  • 9
  • 8
  • 7
  • 6
  • 7
  • 9
  • 6

CN-CLIP

  • 0
  • 7
  • 4
  • 2
  • 6
  • 2
  • 9

AltCLIP

  • 7
  • 3
  • 1
  • 7
  • 4
  • 7
  • 2

AltCLIP∗

  • 8
  • 9
  • 7
  • 8
  • 4
  • 8
  • 2

可视化效果 Visualization effects

基于AltCLIP,我们还开发了AltDiffusion模型,可视化效果如下。

Based on AltCLIP, we have also developed the AltDiffusion model, visualized as follows.

模型推理 Inference

Please download the code from FlagAI AltCLIP

优先采用原作者提供的中文模型卡片;仅有英文说明时由闲社AI翻译整理。重要参数、许可证和商用范围请以原文为准。

你将获得什么

所选固定版本的完整仓库文件,包括模型权重、配置、分词器,以及作者提供的说明和其他文件。自动保留目录结构,不需要逐个选择或下载。

完整仓库可能包含多个权重格式,因此需要的磁盘空间可能大于单一格式的模型大小。下载文件不等于完成模型部署。

使用前须知

运行环境

运行模型需要的设备、工具与依赖,以原作者说明为准。

授权范围

是否允许商用、修改和分发,请查看模型许可证。

闲社提供资料与镜像下载方法,不代表已运行模型或完成安全审计。下载的代码应先检查,再执行。

返回顶部