---
title: 【Diffusion勉強会】OmniGen: Unified Image Generation
tags: 
author: [Deep Learning JP](https://docswell.com/user/DeepLearning2023)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/Y76Q6L5Q7V.jpg?width=480
description: 【Diffusion勉強会】OmniGen: Unified Image Generation by Deep Learning JP
published: October 30, 24
canonical: https://docswell.com/s/DeepLearning2023/ZMXLEX-2024-11-01-161614
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/Y76Q6L5Q7V.jpg)

OmniGen: Uniﬁed Image Genera/on
2024/10/30
Hiroto Osaka


# Page. 2

![Page Image](https://bcdn.docswell.com/page/G75R61Y2E4.jpg)

Paper Detail
q
Title：OmniGen: Unified Image Generation
q
Author
q
Shitao Xiao, Yueze Wang, Junjie Zhou, Huaying
Yuan, Xingrun Xing, Ruiran Yan, Shu7ng Wang,
Tiejun Huang, Zheng Liu
q
Abstract
q
VAE・Transformer で構成されたシンプルなモデル
q
全てのタスクを画像生成タスクとして単一のフレ
ームワークで処理できる
q
Code
q
h.ps://github.com/VectorSpaceLab/OmniGen
[1] OmniGen: Unified Image Generation
2


# Page. 3

![Page Image](https://bcdn.docswell.com/page/9J2DM1G1JR.jpg)

Background
q
q
人工汎用知能（AGI）の追求
q
単一のフレームワークで多様なタスクを処理できる生成基盤モデル
q
NLP における LLM （ChatGPT, Claude, Gemini...）
Visual GeneraAon において、上記のようなモデルは存在していない
q
Text-to-Image：StableDiﬀusion, DALL-E, Imagen
q
特定のタスク：ControlNet, T2i-Adapter, InstructPix2Pix
q
包括的な知識の理解と生成能力の欠如（普遍的なモデルには必要）
① 汎用的な生成モデル「OmniGen」
② 包括的な画像⽣成データセット「X2I」
3


# Page. 4

![Page Image](https://bcdn.docswell.com/page/DEY2XZV4EM.jpg)

OmniGen – Model Design
▍ 現状の問題点
q
能⼒拡張を⽬的としたネットワーク構造の追加
q
Text-to-Image 以外への応⽤の際は追加のネットワーク
構造の設計・統合が必要
q
タスク特化型のネットワーク
q
ネットワークは特定のタスクに依存しており、他のタ
スクに再利⽤が難しい
[2] Adding conditional control to text-to-image diffusion models
▍ 設計原則
q
普遍性：あらゆる形式の画像・テキスト入力を受け入れる
q
簡潔性：過度に複雑な構造やコンポーネントの追加を避ける
[3] Ip-adapter: Text compa;ble image prompt adapter for text-toimage diﬀusion models
4


# Page. 5

![Page Image](https://bcdn.docswell.com/page/VJN813M678.jpg)

OmniGen – Model Design
▍ モデルアーキテクチャ
② Transformer
③ Bidirectional
Attention
パッチ化された画像は全体でモデル化
⼊⼒条件に基づいて画像を⽣成
① VAE
画像から視覚特徴を抽出
5


# Page. 6

![Page Image](https://bcdn.docswell.com/page/YE9K59NRE3.jpg)

OmniGen – Training Strategy
▍ 学習⽅法
q
Rectified Flow を使⽤
q
変更が⽣じる領域で損失を増幅するように設計
（画像編集タスク）
▍ パイプライン
q
徐々に解像度の⾼いデータを使⽤するようにしてモデルを学習
Data-Eﬃcient
Aesthe@c
6


# Page. 7

![Page Image](https://bcdn.docswell.com/page/GE8RY9KGJD.jpg)

X2I Dataset - Text to Image
q
X2I = Anything to Image
q
X2I は全体約1億枚の画像で構成されている
q
Text-to-Image に関して、豊富なオープンデータセットをマージして作成
q
Recap-DataComp, SAM-LLaVA, ShareGPT4V, etc.
q
学習の中盤以降は、⾼品質な画像のみを使⽤する
q
詳細なキャプションを InternVL2 [4] により⽣成している
7


# Page. 8

![Page Image](https://bcdn.docswell.com/page/LELK4WZXJR.jpg)

X2I Dataset - Mul?-modal to Image
▍ Common Mixed-modal Prompts
q
q
複数の Task からデータを収集
q
Image EdiAng
q
Human MoAon
q
Virtual Try-on
q
Style Transfer
空間制御のための視覚条件データ
q
Canny, HED, Depth, Skelton, Bounding Box, SegmentaAon
これらのデータをマルチモーダルな入力として受け取り、条件に従った画像を生成
8


# Page. 9

![Page Image](https://bcdn.docswell.com/page/4JM2K9V3JW.jpg)

X2I Dataset - Mul?-modal to Image
▍ Subject-driven Image Generation
q
q
⼤規模な基盤データセット
q
GRIT-Entity
q
Copy &amp; Paste に陥る可能性
⾼品質な⾼度データセット
q
Web Images
q
ノイズを VLM により検知
9


# Page. 10

![Page Image](https://bcdn.docswell.com/page/PJRMXG2RE9.jpg)

X2I Dataset - Mul?-modal to Image
▍ Computer Vision Tasks
q
Low-level vision tasks
q
q
低照度画像の強調, ぼかし除去など
▍ Few-shot to Image
q
各タスクに対しランダムに例を選択
q
訓練リソースの制約で One-Shot
High-level vision tasks
q
Canny, セグメンテーションなど
10


# Page. 11

![Page Image](https://bcdn.docswell.com/page/PEXV6XDY7X.jpg)

Experiment - Image Genera?on
q
プロンプト記述に従って任意のアスペクト⽐の画像を⽣成
q
それぞれのタスクで競争⼒のある結果を残した
q
GenEval ベンチマークで評価 ➡ SD3 と同等の性能を⽰す
q
パラメータ数を⼤幅に削減しているところがポイント
11


# Page. 12

![Page Image](https://bcdn.docswell.com/page/3EKQ1WX4ED.jpg)

Experiment - Image Genera?on
▍ Image Edit
▍ DreamBooth
▍ Visual Conditional Controls
12


# Page. 13

![Page Image](https://bcdn.docswell.com/page/L73PQ15DE5.jpg)

Experiment - Computer Vision Tasks
q
Vision Tasks を処理できることを確認
q
単に視覚的条件を処理する能⼒にとどまらず、
視覚条件を解釈し新しい画像⽣成に直接応⽤できる汎⽤的な理解能⼒を備えていることを⽰す
13


# Page. 14

![Page Image](https://bcdn.docswell.com/page/87DL9XD2EG.jpg)

Further Analysis
Q: LLM と同じような汎化能⼒を持つのか？
▍ Emerging Capabilities
q
q
タスクの明⽰的 / 暗黙的な複合化
q
別タスクの同時処理
q
同タスクの複数の指⽰
In-Context Learning
q
未知のタスク
q
未知のドメイン
14


# Page. 15

![Page Image](https://bcdn.docswell.com/page/VJP2ZPXLJ8.jpg)

Further Analysis
▍ Reasoning Ability
q
明確にオブジェクトを指定しない指⽰での推論性能の確認
q
対象物を推論した後に編集などのタスクも実⾏可能
q
具現化知能分野（Robot など）での応⽤が期待される
15


# Page. 16

![Page Image](https://bcdn.docswell.com/page/2EVDW2L6EQ.jpg)

Further Analysis
▍ Chain of Thought
q
段階的に画像を⽣成し、徐々に画像を洗練させる Step by Step の描画プロセス
q
PAINTS-UNDO5 モデルを使⽤してデータセットを作成し Fine-tuning
q
誤った修正を取り⼊れて最終的な画像が乱れてしまい、品質は向上せず


# Page. 17

![Page Image](https://bcdn.docswell.com/page/57GYDRX27L.jpg)

Limita?ons
q
テキストレンダリング能⼒
q
q
q
⻑いテキストを正確に⽣成できない
細部の正確性
q
⼈間の⼿などの細部
q
顔特徴の不⼀致
未学習の画像タイプへの対応
q
法線推定⽤の画像
17


# Page. 18

![Page Image](https://bcdn.docswell.com/page/4EQM1V89JP.jpg)

Summary &amp; Impression
▍
Summary
q
多様なタスクを1つのモデルで処理できる OmniGen
q
VAE と Transformer で構成されたシンプルなアーキテクチャで、テキストと画像の任意の⼊⼒に対応
q
統一的なデータセットで学習を行うことで異なるタスク間での知識の共有と転移を可能に
▍
Impression
q
Transformer モデルにしかできない拡張方法
q
今後の汎用的な生成モデルへの先駆けとなる論文になりそう
18


# Page. 19

![Page Image](https://bcdn.docswell.com/page/KJ4VRM9RE1.jpg)

References
1.
Xiao, S., Wang, Y., Zhou, J., Yuan, H., Xing, X., Yan, R., Wang, S., Huang, T., &amp; Liu, Z. (2024). OmniGen: Uniﬁed
Image Genera7on. arXiv preprint arXiv:2409.11340.
2.
Zhang, L., Rao, A., &amp; Agrawala, M. (2023). Adding condi7onal control to text-to-image diﬀusion models. In
Proceedings of the IEEE/CVF Interna7onal Conference on Computer Vision (pp. 3836-3847).
3.
Ye, H., Zhang, J., Liu, S., Han, X., &amp; Yang, W. (2023). Ip-adapter: Text compa7ble image prompt adapter for
text-to-image diﬀusion models. arXiv preprint arXiv:2308.06721.
4.
Chen, Z., Wang, W., Tian, H., Ye, S., Gao, Z., Cui, E., ... &amp; Qiao, Y. (2024). How far are we to gpt-4v? closing the
gap to commercial mul7modal models with open-source suites. arXiv preprint arXiv:2404.16821.
19


# Page. 20

![Page Image](https://bcdn.docswell.com/page/LE13Q8KVJG.jpg)

Appendix


# Page. 21

![Page Image](https://bcdn.docswell.com/page/GEWPMZD3J2.jpg)

Result – Text-to-Image Task
21


# Page. 22

![Page Image](https://bcdn.docswell.com/page/47ZKQ1GG73.jpg)

Result – Subject Driven Generation
22


