All systems operationalAI Agent Automation Platform
English
Language简体中文EnglishSelected

Choose your language

Taiyi-Stable-Diffusion-1B-Chinese-EN-v0.1

Fengshenbang/Taiyi-Stable-Diffusion-1B-Chinese-EN-v0.1

PublisherFengshenbang

Download access requirementsModelScope source

extra gated prompt: - One more step before getting this model. This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.

Image Generation
Model details

模型介绍

中文整理

extra gated prompt: -

One more step before getting this model.

This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.

The CreativeML OpenRAIL License specifies:

  • You can't use the model to deliberately produce nor share illegal or harmful outputs or content
  • IDEA-CCNL claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
  • You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)

Please read the full license here: https://huggingface.co/spaces/CompVis/stable-diffusion-license

By clicking on "Access repository" below, you accept that your *contact information* (email address and username) can be shared with the model authors as well.

extra gated fields:

I have read the License and agree with its terms: checkbox

Taiyi-Stable-Diffusion-1B-Chinese-EN-v0.1

Github: Fengshenbang-LM

Docs: Fengshenbang-Docs

简介 Brief Introduction

首个开源的中英双语Stable Diffusion模型,基于0.2亿筛选过的中文图文对训练。

The first open source Chinese&English Bilingual Stable diffusion, which was trained on 20M filtered Chinese image-text pairs.

模型分类 Model Taxonomy

需求 Demand 任务 Task 系列 Series 模型 Model 参数 Parameter 额外 Extra

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

特殊 Special 多模态 Multimodal 太乙 Taiyi Stable Diffusion 1B Chinese and English

模型信息 Model Information

我们将Noah-Wukong数据集(100M)和Zero数据集(23M)用作预训练的数据集,先用IDEA-CCNL/Taiyi-CLIP-RoBERTa-102M-ViT-L-Chinese对这两个数据集的图文对相似性进行打分,取CLIP Score大于0.2的图文对作为我们的训练集。 我们使用stable-diffusion-v1-4(论文)模型进行继续训练,其中训练分为两个stage。

第一个stage中冻住模型的其他部分,只训练text encoder,以便保留原始模型的生成能力且实现中文概念的对齐。

第二个stage中将全部模型解冻,一起训练text encoder和diffusion model,以便diffusion model更好的适配中文guidance。

第一个stage我们训练了80小时,第二个stage训练了100小时,两个stage都是用了8 x A100。该版本是一个初步的版本,我们将持续优化模型并开源,欢迎交流!

We use Noah-Wukong(100M) 和 Zero(23M) as our dataset, and take the image and text pairs with CLIP Score (based on IDEA-CCNL/Taiyi-CLIP-RoBERTa-102M-ViT-L-Chinese) greater than 0.2 as our Training set. We finetune the stable-diffusion-v1-4(paper) model for two stage.

Stage 1: To keep the powerful generative capability of stable diffusion and align Chinese concepts with the images, We only train the text encoder and freeze other part of the model in the first stage.

Stage 2: We unfreeze both the text encoder and the diffusion model, therefore the diffusion model can have a better compatibility for the Chinese language guidance.

It takes 80 hours to train the first stage, 100 hours to train the second stage, both stages are based on 8 x A100. This model is a preliminary version and we will update this model continuously and open sourse. Welcome to exchange!

Result

小桥流水人家,Van Gogh style。

小桥流水人家,水彩。

吃过桥米线的猫。

穿着宇航服的哈士奇。

使用 Usage

全精度 Full precision

半精度 Half precision FP16 (CUDA)

添加 torch dtype=torch.float16 和 device map="auto" 可以快速加载 FP16 的权重,以加快推理速度。

更多信息见 the optimization docs。

怎样微调 How to finetune

可以参考 refer

https://github.com/IDEA-CCNL/Fengshenbang-LM/tree/main/fengshen/examples/finetune taiyi stable diffusion

webui配置 Configure webui

可以参考 refer

https://github.com/IDEA-CCNL/stable-diffusion-webui/blob/master/README.md

DreamBooth

https://github.com/IDEA-CCNL/Fengshenbang-LM/tree/main/fengshen/examples/stable diffusion dreambooth

引用 Citation

如果您在您的工作中使用了我们的模型,可以引用我们的总论文:

If you are using the resource for your work, please cite the our paper:

也可以引用我们的网站:

You can also cite our website:

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

你将获得什么

完整仓库方式包含该固定版本中的权重、配置、分词器及说明文件;指定版本方式只下载所选文件或整组分片。多模态模型的投影文件、配置等依赖,请按作者说明配齐。

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

使用前须知

运行环境

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

授权范围

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

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

Back to top