> For the complete documentation index, see [llms.txt](https://docs.seaart.ai/guide-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seaart.ai/guide-1/ja/advanced-guide/lora-training/image-training.md).

# 画像トレーニング

画像からキャラクター、物体、ビジュアルスタイルを学習する画像LoRAのトレーニング方法を紹介します。

このガイドでは、ベースモデルの選択、データセットの準備とタグ付け、トレーニングの実行、保存したモデルのテストまでを順に説明します。

### 画像トレーニングの種類とおすすめ <a href="#image-training--image-training-type-recommendation" id="image-training--image-training-type-recommendation"></a>

まず、LoRAに何を学習させたいかを決めましょう。

写実的な被写体、アニメ調の被写体、またはビジュアルスタイルなど、目的に合ったベースモデルを選択してください。

<table><thead><tr><th width="170">カテゴリ</th><th>ベースモデル</th></tr></thead><tbody><tr><td>写実系</td><td>Krea 2 / Z-image-turbo / Klein-9b / Wan2.2 / Qwen 2511</td></tr><tr><td>アニメ系</td><td>Anima / Krea 2 / Illustrious / Pony / Z-image-turbo</td></tr><tr><td>スタイル</td><td>Krea 2 / Klein-9b / Wan2.2 / FLUX / Z-image-turbo</td></tr></tbody></table>

***

### データセットの準備 <a href="#image-training--dataset-preparation" id="image-training--dataset-preparation"></a>

#### 画像 <a href="#image-training--images" id="image-training--images"></a>

**枚数：** 20～40枚。画像が多いほど、モデルがさまざまなパターンに対応しやすくなります。ただし、低品質な素材を追加すると、かえってモデルの品質が低下します。

> <mark style="color:$warning;">**📝**</mark><mark style="color:$warning;background-color:yellow;">**画像選びのルール：**</mark>
>
> 1. **避けるべき低品質な画像**
>
> シーンを判別できないほど暗い画像、構図が不自然な画像、ぼやけた画像、再現しにくい細部を含む画像、メインとサブの被写体が不明確な画像、同じ特徴を繰り返し学習しにくい画像、不要な要素が写り込んだ画像、つなぎ合わせた画像によって被写体の一貫性が失われている画像、手足の形や位置が不自然な画像など。
>
> 2. **高品質な画像の条件**
>
> 統一されたスタイル、鮮明な画質、統一感のある特徴、透かしや文字がないこと、内容にバリエーションがあること、さまざまなアングルが含まれていること。
>
> 3. **トレーニング用ベースモデルの選択**
>
> スタイル、キャラクター、物体のいずれを学習する場合も、画像素材のスタイルに合ったベースモデルを選んでください。

#### トリガーワードとタグ付け <a href="#image-training--trigger-words-and-tagging" id="image-training--trigger-words-and-tagging"></a>

* **トリガーワード：** LoRAを最大限に活用するには、トリガーワードが必要です。プロンプト入力時に重要な役割を果たすため、ほかの単語と重複しない固有の単語を設定してください。
* **タグ付け：** まず自動タグ付けを行い、画像と一致しないタグを確認して削除します。
* **例：** キャラクタートレーニングで髪型などの特徴がすべての画像に共通している場合、その特徴をタグ付けする必要はありません。トリガーワードに統合されます。スタイルトレーニングでは、スタイルを表す単語を含むタグを削除してください。

#### タグ付けアルゴリズム <a href="#image-training--tagging-algorithms" id="image-training--tagging-algorithms"></a>

<table><thead><tr><th width="122">名称（自然言語）</th><th width="123">deepseek</th><th width="129">cogflorence</th><th width="116">qwen</th><th width="125">qwen vl 4b</th><th width="125">blip</th></tr></thead><tbody><tr><td>対応トレーニングタイプ</td><td colspan="5">flux、wan2.2、qwen、qwen2512、flux kre、flux2、3.5m、3.5l</td></tr><tr><td>1回のタグ付けで処理できる最大画像数</td><td>350</td><td>370</td><td>120</td><td>120</td><td>500</td></tr></tbody></table>

<table><thead><tr><th>名称（単語）</th><th>deepbooru</th><th>wd 1.4 tagger</th><th>wd-swinv2-tagger-v3</th><th>wd-eva02-large-tagger-v3</th></tr></thead><tbody><tr><td>対応トレーニングタイプ</td><td colspan="4">sd1.5、xl、il、pony、anima</td></tr><tr><td>1回のタグ付けで処理できる最大画像数</td><td>500</td><td>500</td><td>500</td><td>500</td></tr></tbody></table>

* **単語タグ付けのしきい値：** 値を小さくするほど、より細かく説明できます。
* **自然言語タグ付けのおすすめ順：** qwen ＞ qwen vl 4b ＞ deepseek ＞ cogflorence
* **単語タグ付けのおすすめ順：** wd-eva02-large-tagger-v3 ＞ wd 1.4 tagger ＞ wd-swinv2-tagger-v3

#### 画像の前処理 <a href="#image-training--image-preprocessing" id="image-training--image-preprocessing"></a>

* すべてのトレーニングで、画像をトリミングせずに使用できます。現在は、すべてのトレーニングでデフォルトのARBバケットが設定されています。

<table><thead><tr><th width="149"></th><th width="221">中心を切り抜く</th><th>トリミングなし</th></tr></thead><tbody><tr><td>モデルタイプ</td><td>sd1.5、xl</td><td>pony、il、flux、krea、wan2.2、z image、klein、qwen、qwen2512、anima</td></tr><tr><td>解像度</td><td>512*512、1024*1024</td><td>/</td></tr></tbody></table>

***

### 基本的なトレーニング手順 <a href="#image-training--general-training-workflow" id="image-training--general-training-workflow"></a>

<figure><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FHiLekuJsGhFommlrwCgD%2F1.gif?alt=media&#x26;token=d67e0ccd-6156-4fa7-ba20-26a814c360ad" alt=""><figcaption></figcaption></figure>

**トレーニングの流れ：**

画像をアップロード → トリガーワードを入力 → タグ付けを完了 → エポック数を調整 → トレーニングを開始

<figure><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FTwazbpzUfpFTBgTAdvXv%2F2.gif?alt=media&#x26;token=eeb8f42d-7819-45c7-8ef3-299022e47478" alt=""><figcaption></figcaption></figure>

**テストの流れ：**

トレーニング進捗ページ → モデルを保存 → 個人プロフィールへ移動 → モデル → モデル詳細ページ → 生成 → ワークフロー → トリガーワードとプロンプトを入力 → 生成をクリック

***

### Krea 2のトレーニング <a href="#image-training--krea-2-training" id="image-training--krea-2-training"></a>

* **タグ付けのおすすめ：** qwen（自然言語タグ付け）

単語タグ付けと自然言語タグ付けのどちらでも良好な結果を得られますが、公式では自然言語タグ付けを推奨しています。

* **トレーニング用ベースモデル：** krea 2 raw
* **生成用ベースモデル：** [Krea-2 - SeaArt AI Model](https://www.seaart.ai/ja/models/detail/d8u8iate878c73dk82bg?v=b9364d8153cb921fac0e1cfec0600a80)（turbo\_bf16）

<table><thead><tr><th width="94"></th><th width="84">タグ付け</th><th width="127">画像枚数</th><th width="113">ステップ数</th><th>スケジューラー</th><th width="119">オプティマイザー</th><th>Dim/Alpha</th></tr></thead><tbody><tr><td>写実系</td><td>qwen</td><td>10枚以上</td><td>500～1000</td><td>cosine_with_restarts</td><td>AdamW8bit</td><td>デフォルト</td></tr><tr><td>スタイル</td><td>qwen</td><td>40枚以上</td><td>500～1500</td><td>constant</td><td>Prodigy</td><td>デフォルト</td></tr><tr><td>アニメ</td><td>qwen</td><td>10枚以上</td><td>600～1500</td><td>constant</td><td>AdamW8bit</td><td>デフォルト</td></tr></tbody></table>

**自然言語タグ付けと単語タグ付けの比較**

以下の画像は、2種類のタグ付け方法で使用したデータセットと生成結果です。

{% columns %}
{% column width="50%" %}

<p align="center">データセットの元画像</p>
{% endcolumn %}

{% column width="50%" %}

<figure><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FKsxGVPHJPkGFePkxc0XX%2Fimage.png?alt=media&#x26;token=53de817d-fed1-464b-b069-1f59d4e08ddd" alt="" width="188"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

<table><thead><tr><th width="193">名称</th><th>自然言語</th><th>単語</th></tr></thead><tbody><tr><td>krea 2</td><td><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FRWFEFD22tKC8vEzxWo9t%2Funknown.webp?alt=media&#x26;token=4d658f81-5c17-4a41-88a3-79a5f9511b18" alt="" data-size="original"></td><td><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2Frx1mwWXQYr2BF6CtBM5h%2Funknown.webp?alt=media&#x26;token=33c21732-fd02-40f2-9222-4b7cbacd34a3" alt="" data-size="original"></td></tr></tbody></table>

> <mark style="color:$warning;background-color:yellow;">**結論：**</mark>
>
> 最終的な効果やスタイルの表現には、大きな差はありません。画像のトレーニングでも生成でも、自然言語のほうが構図や要素の位置を正確に表現でき、複雑な環境ではその違いがより明確になります。そのため、自然言語によるトレーニングをおすすめします。
>
> Krea 2は写実系モデルですが、アニメ調の出力品質はAnimaに近いため、Krea 2でアニメのスタイルやキャラクターをトレーニングしても、良好な結果が得られます。

***

### Animaのトレーニング <a href="#image-training--anima-training" id="image-training--anima-training"></a>

* **タグ付けのおすすめ：** wd-eva02-large-tagger-v3（単語タグ付け）、qwen（自然言語タグ付け）

どちらの方法でも良好な結果を得られますが、公式では自然言語タグ付けを推奨しています。

* **トレーニング用ベースモデル：** anima base
* **生成用ベースモデル：** Anima BASE - SeaArt AIモデル

<table><thead><tr><th width="108"></th><th width="101">タグ付け</th><th>画像枚数</th><th>ステップ数</th><th>スケジューラー</th><th>オプティマイザー</th><th>Dim/Alpha</th></tr></thead><tbody><tr><td>アニメキャラクター</td><td>qwen</td><td>10枚以上</td><td>1500～3000</td><td>cosine_with_restarts</td><td>AdamW8bit</td><td>デフォルト</td></tr><tr><td>スタイル</td><td>qwen</td><td>40枚以上</td><td>2000～3000</td><td>constant</td><td>Prodigy</td><td>デフォルト</td></tr></tbody></table>

<mark style="background-color:violet;">Animaの自然言語タグ付けと単語タグ付けによる学習効果の比較</mark>

{% columns %}
{% column %}

<p align="center">データセットの元画像</p>
{% endcolumn %}

{% column %}

<figure><img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FKsxGVPHJPkGFePkxc0XX%2Fimage.png?alt=media&#x26;token=53de817d-fed1-464b-b069-1f59d4e08ddd" alt="" width="188"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

| 名称   | 自然言語                                                                                                                                                                                                                                                          | 単語                                                                                                                                                                                                                                                            |
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| base | <img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FBLzY9OCVVSE66A0LUndh%2Funknown.webp?alt=media&#x26;token=bbcbc983-0103-4c5a-b890-6b9445ea2c4f" alt="" data-size="original"> | <img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FFexXSIN5MhqdVFtZwFNP%2Funknown.webp?alt=media&#x26;token=3adb99af-b812-49fc-aef9-198e1ae05c78" alt="" data-size="original"> |

> <mark style="color:$warning;background-color:yellow;">**結論：**</mark>
>
> 最終的な効果やスタイル表現には大きな差はありませんが、自然言語のほうが背景の細部をより正確に表現できます。
>
> 現在は、トレーニングに自然言語タグ付けを使用することをおすすめします。タグ付けの精度という点でも、自然言語タグ付けのほうが優れています。

<mark style="background-color:violet;">同じデータセットを使ったAnimaの各ベースモデルバージョンの比較</mark>

| 名称   | Anima preview                                                                                                                                                                                                                                                 | Anima preview2                                                                                                                                                                                                                                                | Anima preview3                                                                                                                                                                                                                                                | Anima base                                                                                                                                                                                                                                                    |
| ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 自然言語 | <img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FfrgyqavjskjMwVLA1Veo%2Funknown.webp?alt=media&#x26;token=d9d5d8f0-6433-4095-b06e-6da2e8c2ad24" alt="" data-size="original"> | <img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2Fq9oNBsiKYd6KittgeGqF%2Funknown.webp?alt=media&#x26;token=c07bcf45-0f57-443d-8b15-062906275eaa" alt="" data-size="original"> | <img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2FYPQQ5r5vdH5DBevt84Ua%2Funknown.webp?alt=media&#x26;token=aff05b12-cdd7-48cf-9326-964b4bec5d6c" alt="" data-size="original"> | <img src="https://2219884424-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FigAtVLBrlaI8jVruJfC8%2Fuploads%2Fy2kYtT8u37nx9MEbF6Se%2Funknown.webp?alt=media&#x26;token=bec4a177-eb40-4603-9cb3-f20ce0ca887b" alt="" data-size="original"> |

***

### Z Imageのトレーニング <a href="#image-training--z-image-training" id="image-training--z-image-training"></a>

* **タグ付けのおすすめ：** qwen（自然言語タグ付け）
* **トレーニング用ベースモデル：** z image turbo、z image base
* **生成用ベースモデル：** [Z Image Turbo - SeaArt AIモデル](https://www.seaart.ai/ja/models/detail/d4kssode878c7387fae0)

> <mark style="color:$warning;background-color:yellow;">**結論：**</mark>
>
> スタイルトレーニングでは、データセットによっては正常に学習できますが、別のデータセットではスタイルをうまく学習できない場合があります。
>
> スタイルのトレーニングには、z imageはおすすめしません。

### Wan2.2テキストから画像へのトレーニング

* **タグ付けのおすすめ：** qwen（自然言語タグ付け）、deepseek（自然言語タグ付け）
* **トレーニング用ベースモデル：** wan2.2 t2v-low
* **生成用ベースモデル：** SeaArt Infinity V2.0 - SeaArt AI Model

|           | タグ付け | 画像枚数  | ステップ数     | スケジューラー                | オプティマイザー  | Dim/Alpha |
| --------- | ---- | ----- | --------- | ---------------------- | --------- | --------- |
| アニメキャラクター | qwen | 10枚以上 | 1500～3000 | cosine\_with\_restarts | AdamW8bit | デフォルト     |
| スタイル      | qwen | 40枚以上 | 2000～3000 | constant               | Prodigy   | デフォルト     |

> <mark style="color:$warning;background-color:yellow;">**結論：**</mark>
>
> キャラクターでもスタイルでも、低ノイズモデルのトレーニングが必要です。
>
> 低ノイズモデルが担う要素は非常に重要です。低ノイズモデルは、キャラクターの顔立ちやスタイルの表現に影響します。
>
> 高ノイズモデルは構図や光と影に影響します。
>
> トレーニングの組み合わせは、低ノイズのみ、または低ノイズ＋高ノイズの2通りです。

### Qwen-Image、Qwen-2511のトレーニング

* **トリガーワード：** Qwenでタグ付けする場合、意味のない単語は使用しないでください。「A photo of a person named 」のように、一般的で説明的な表現を使います。
* **タグ付けのおすすめ：** qwen（自然言語タグ付け）、qwen vl 4b（自然言語タグ付け）、deepseek（自然言語タグ付け）
