メインコンテンツへスキップ
見出し画像

【VRAM 12GB】画像生成AI「Qwen Image 2.1」でキャラLoRAを作成する完全ガイド(ai-toolkit)

    こんにちは、かみもとです!

    9/20夜にローカル画像生成界隈で新しいオープンウェイトモデル「Qwen Image 2.1」がリリースされましたね! 「この新しいベースモデルで、自分のオリジナルキャラクターのLoRAを学習させて動かしてみたい・・!」と思った方も多いのではないでしょうか?

    そこで今回は、手元のWindows環境(RTX 4070 12GB)と定番の学習ツール「AI Toolkit」を使って、実際にキャラLoRAの学習にチャレンジしてみました!

    今回はVRAM 12GB環境を前提に、1024×1024と512×512の2通りの学習設定を用意しました。

    前半では環境更新からライブラリの互換性対策、事前チェックまでの導入手順を分かりやすく解説します。

    そして後半では、実際に1024×1024で本番学習を完了させたLoRAを使って、「3場面 × LoRAなし・1.0・0.8・0.6」の計12枚でキャラクター再現性や画質の変化をじっくり比較検証してみました!

    ただし、結論から先に述べると「キャラLoRAの効きが悪くて、現状まだパラメータ調整中」です・・。なので学習方法だけ理解してもらえればOKです!


    そもそも「Qwen Image 2.1」とは?

    検証に入る前に、まずは今回ターゲットにする「Qwen Image 2.1」がどういうモデルなのか、その概要を簡単に整理しておきます。

    Qwen Image 2.1は、AlibabaのQwenチームが2026年9月に公開したオープンウェイトの画像生成・編集モデルです。主な特徴は以下のとおりです。

    • 生成と編集が1つのモデルで完結:

    従来のワークフローではテキストからの画像生成(Text-to-Image)と画像編集(Inpaintingや局所編集など)で別々のモデルやノード構成が必要になることが多かったですが、Qwen Image 2.1では約7Bパラメータのビジュアル生成コンポーネント(32層のSingle-Stream DiT)単一でこれらをシームレスに扱えるよう設計されています。つまり1モデルで画像生成も編集もできます。

    • テキストエンコーダーに「Qwen3-VL-8B」を採用:

    高性能な視覚・言語理解能力を持つマルチモーダルモデル「Qwen3-VL-8B」をテキストエンコーダーとして組み込んでおり、長文で細かなシーン指示やリファレンス画像との連携を高い精度で解釈できます。その分SSD容量を食いますが、プロンプト理解能力は高くなっています。

    • ネイティブ背景透過(RGBA)への対応:

    64チャネルのRGBA Autoencoderを内蔵しており、外部ツールで切り抜き加工を行わなくても、直接アルファチャネル付きの透過画像を生成・編集できます。地味に便利です。

    • Prefix KVキャッシュ再利用による効率化と2K解像度対応:

    プロンプトやリファレンス画像の事前計算を再利用する仕組み(Prefix KVキャッシュ)により推論時のメモリ効率や速度が向上しており、最大2048×2048(2K解像度)の高精細な出力にも対応しています。RTX4070でも2K解像度を70~90秒前後で作成できるようです。

    多機能で扱いやすく、ComfyUIやDiffusersなどのオープンコミュニティでの対応も急速に進んでいるため、今後のローカル生成環境のベースモデルとしても注目されています!


    今回の検証環境と学習データ

    今回の検証環境スペックです。いつものWindowsマシンで、AI Toolkit専用のvenv環境を使って構築しています。

    • OS: Windows 11 Pro

    • CPU: Core i3 12100F

    • MEM: DDR4 48GB

    • GPU: GeForce RTX4070 (VRAM 12GB)

    主要ライブラリのバージョン構成は以下のとおりです。

    • Python: 3.12.11

    • PyTorch: 2.13.0+cu130

    • Transformers: 5.5.3

    • Diffusers: 0.39.0.dev0(AI Toolkit指定のコミット版)

    • Hugging Face Hub: 1.23.0

    学習データセットの構成

    学習元データには、1024×1024解像度の画像31枚を用意しました。 各画像には同名のテキストキャプションファイル(.txt)をペアで配置し、すべてにトリガーワードを含めています。

    画像
    学習データの一部

    AI Toolkitのルートディレクトリから見たフォルダ構成は次の通り。

    ai-toolkit/
      venv/
      images/
        20_charsayaka/
          image001.png
          image001.txt
      config/
      run.py

    ちなみに、後述する512×512版でもこの同じ画像フォルダをそのまま使用します。AI Toolkit側の学習処理で自動的に512×512へリサイズされるため、元画像をリサイズして複製する必要はありません。なお、フォルダ名についている 20_ は整理用のもので、20回繰り返し学習する設定ではありません。
    (昔のsd-scriptsはフォルダ名の先頭に20_をつけると20回繰り返すという仕様だったので、その名残です)


    AI ToolkitをQwen Image 2.1対応版にする

    Qwen Image 2.1を学習するにあたって、AI Toolkit側では従来のQwen Image用とは異なる新しいモデル種別 qwen_image_2 を使用します。旧設定のモデル名だけを書き換えても同じ実装にはならないため注意が必要です。 (参考:AI Toolkit公式の対応実装)

    今回はAI Toolkitをコミット a8dfcf7d7e2b38ccc7b2fb68ece9c6358e61e7a7 に更新しました。既存の独自修正がある環境の場合は、変更を退避(git stash 等)してから更新し、競合部分を統合して適用してくださいね。

    もし新規に環境を用意する場合は、次のようにリポジトリを取得してセットアップできます。

    git clone https://github.com/ostris/ai-toolkit.git
    Set-Location ai-toolkit
    git checkout a8dfcf7d7e2b38ccc7b2fb68ece9c6358e61e7a7
    py -3.12 -m venv venv

    新規venvを作成したら、PyTorch公式のWindows/CUDA向け手順に沿ってPyTorchを導入します。インストールコマンドの pip は必ず .\venv\Scripts\python.exe -m pip に置き換えて実行してください。その後、同じvenvにAI Toolkitの依存関係を入れます。

    .\venv\Scripts\python.exe -m pip install --no-cache-dir -r requirements.txt

    なお、今回の私の既存venvは必要なimportを通過したため、依存ライブラリの再インストールはしていません。既存環境で独自修正がある場合は、上記のcheckoutや更新をそのまま実行せず、先に git status で変更内容を確認しておきましょう。


    モデルをダウンロードする

    学習に必要な重みファイルは次の3点です。Comfy-Org/Qwen-Image-2.1 から配布されているものを使用します。

    • diffusion_models/qwen_image_2.1_int8_convrot.safetensors:約7.26GB

    • text_encoders/qwen3vl_8b_int8_convrot.safetensors:約9.35GB

    • vae/qwen_image_2.1_vae_bf16.safetensors:約0.68GB

    私の環境ではDiTとVAEがすでに手元にあったので、テキストエンコーダーだけを追加ダウンロードしました。

    ここで1つ注意点として、テキストエンコーダーとして使用するのは Qwen3-VL-8B です。プロンプト拡張用の Qwen3.5-9B とは別ファイルなので、ダウンロード時に名前をしっかり確認してくださいね。

    ComfyUIのモデル置き場と共有する場合は、PowerShellでAI Toolkitのルートに移動し、以下のように実行してダウンロードします。ComfyUIパスは適宜書き換えてください。

    $models = Join-Path $env:SystemDrive '(comfyuiのパス)\ComfyUI\models'
    $env:HF_HOME = Join-Path $models 'huggingface'
    $env:HF_HUB_CACHE = Join-Path $env:HF_HOME 'hub'
    $env:HF_HUB_DISABLE_XET = '1'
    $env:PYTHONDONTWRITEBYTECODE = '1'
    Remove-Item Env:HF_HUB_OFFLINE -ErrorAction SilentlyContinue
    Remove-Item Env:TRANSFORMERS_OFFLINE -ErrorAction SilentlyContinue
    $comfyRevision = 'ace0edeb3791a594ddfa36ed5f41a178a394e921'
    $files = @(
      'diffusion_models/qwen_image_2.1_int8_convrot.safetensors',
      'text_encoders/qwen3vl_8b_int8_convrot.safetensors',
      'vae/qwen_image_2.1_vae_bf16.safetensors'
    )
    foreach ($file in $files) {
      if (-not (Test-Path (Join-Path $models $file))) {
        & .\venv\Scripts\hf.exe download Comfy-Org/Qwen-Image-2.1 $file --revision $comfyRevision --local-dir $models
        if ($LASTEXITCODE -ne 0) { throw "Download failed: $file" }
      }
    }

    既存ファイルはこのスクリプトではスキップされます。途中で中断したものや別配布元の同名ファイルがある場合は、ファイルサイズやチェックサムを別途確認しておくと安心です。

    さらに、重み本体に加えて、Qwen公式リポジトリ の設定ファイル群とprocessorも必要になります。こちらは巨大なDiffusers版重み全体を取得せず、必要な設定ファイルのみを同じモデル置き場のHFキャッシュへ保存します。

    $qwenRevision = 'b3179ad355be050328e483a9dfdd9e60cd62adfa'
    & .\venv\Scripts\hf.exe download Qwen/Qwen-Image-2.1 --revision $qwenRevision --include 'processor/*' --include '*/config.json' --include 'text_encoder/generation_config.json' --include 'scheduler/scheduler_config.json' --include 'model_index.json'
    if ($LASTEXITCODE -ne 0) { throw 'Config download failed' }
    
    # この専用キャッシュのオフライン参照先を、取得した固定版へ向ける
    $repoCache = Join-Path $env:HF_HUB_CACHE 'models--Qwen--Qwen-Image-2.1'
    $refs = Join-Path $repoCache 'refs'
    $refFile = Join-Path $refs 'main'
    if (Test-Path $refFile) {
      if ((Get-Content $refFile -Raw).Trim() -ne $qwenRevision) {
        throw 'A different cache reference exists. Review it before changing it.'
      }
    } else {
      New-Item -ItemType Directory -Path $refs -Force | Out-Null
      [IO.File]::WriteAllText($refFile, $qwenRevision)
    }

    設定の extras_name_or_path は Qwen/Qwen-Image-2.1 のままにしておきます。設定ファイルだけを置いたローカルフォルダへ変更してしまうと、この実装ではComfyUI形式の重みを見つける経路と噛み合わなくなるためです。


    Transformers 5.5.3で必要な互換修正

    今回の事前チェックを行っていたところ、processorの読み込みでエラーが発生しました! 調べてみると、Transformers 5.5.3の AutoTokenizer が、公式の processor フォルダには存在しない config.json を先に探してしまうことが原因でした。

    ライブラリ全体を入れ替える代わりに、AI Toolkitの extensions_built_in/diffusion_models/qwen_image_2/src/text_encoder.py にある QwenImage21TextEncoder クラスへ、次のメソッドを追加してサクッと対処しました。公式のtokenizer設定に合わせて qwen2 を明示しています。

        @classmethod
        def load_processor(cls, name_or_path=None, subfolder=None, **kwargs):
            kwargs.setdefault("tokenizer_type", "qwen2")
            return super().load_processor(name_or_path, subfolder=subfolder, **kwargs)

    上記の固定コミットとライブラリ版で確認した修正なので、将来のAI Toolkit側で対策された場合は重複して追加する必要はありません。(2026/9/21時点の情報です)


    1024×1024の学習設定

    今回の開始パラメータは、LoRA rank 16、alpha 16、学習率 0.0001、batch size 1、2000 stepsとしました。31枚に対して最適化しきった値というよりは、本番結果を見ながら調整していくための基準点となる設定ですね。

    DiTとテキストエンコーダーは配布ファイルに合わせて convrot8 量子化を指定し、レイヤーをCPUへオフロードしています。メモリ転送が発生するため最速設定ではありませんが、12GB VRAMで安定して動かすための現実的なチューニングです。また、学習途中のサンプル画像生成は無効にしています。見ても仕方ないので。

    # Qwen Image 2.1 T2I LoRA. Run the matching root BAT.
    # Prepared without running training. Source images are 1024x1024.
    job: extension
    config:
      name: charsayaka_qwen_image21_r16_1024
      process:
        - type: sd_trainer
          training_folder: output
          device: cuda:0
          # Existing captions already contain charsayaka. Do not inject it twice.
          network:
            type: lora
            linear: 16
            linear_alpha: 16
          save:
            dtype: float16
            save_every: 250
            max_step_saves_to_keep: 4
          datasets:
            - folder_path: images/20_charsayaka
              caption_ext: txt
              caption_dropout_rate: 0.0
              shuffle_tokens: false
              flip_x: false
              buckets: true
              square_crop: true
              resolution: [1024]
              cache_latents_to_disk: true
              cache_text_embeddings: true
              num_workers: 0
              cache_latents_num_workers: 1
          train:
            batch_size: 1
            steps: 2000
            gradient_accumulation: 1
            train_unet: true
            train_text_encoder: false
            gradient_checkpointing: true
            cache_text_embeddings: true
            noise_scheduler: flowmatch
            timestep_type: shift
            optimizer: adamw8bit
            lr: 0.0001
            dtype: bf16
            skip_first_sample: true
            disable_sampling: true
          model:
            name_or_path: Comfy-Org/Qwen-Image-2.1
            extras_name_or_path: Qwen/Qwen-Image-2.1
            arch: qwen_image_2
            quantize: true
            qtype: convrot8
            quantize_te: true
            qtype_te: convrot8
            low_vram: true
            layer_offloading: true
            layer_offloading_transformer_percent: 1.0
            layer_offloading_text_encoder_percent: 1.0
          sample:
            sampler: flowmatch
            sample_every: 250
            width: 1024
            height: 1024
            prompts:
              - charsayaka, portrait, plain background
            neg: ""
            seed: 42
            walk_seed: false
            guidance_scale: 3.0
            sample_steps: 40
    meta:
      name: "[name]"
      version: "1.0"

    キャプション側にあらかじめ トリガーワード が入っているため、設定ファイル側で同じトリガーワードを追加注入しないよう注意しています。生成時にLoRAを試す際も、プロンプトへ トリガーワード を含めます。

    512×512版を別に用意する

    VRAMの消費を抑えたい場合や軽量にテストしたい場合に備えて、1024用YAMLを複製し、新しいファイルとして保存します。変更するのは次の4か所だけです。

    • config.name:(名前を変える)

    • データセットの resolution:[512]

    • sample.width:512

    • sample.height:512

    サンプル生成自体は無効ですが、後から有効にする場合に備えて寸法を揃えています。学習名を変えておけば、1024版と512版の出力や再開先が混ざる心配はありません。


    バッチファイルから起動する

    コマンドラインから叩くのも面倒なので、最小起動用バッチファイルを用意しましょう。AI Toolkitのルートに train_qwen_image21.bat として保存してください。実行すると学習を開始します。ComfyUIのパス(モデルをDLしたパス)やconfigのyamlファイル名は適宜変更してください。

    @echo off
    setlocal
    cd /d "%~dp0"
    set "CUDA_VISIBLE_DEVICES=0"
    set "MODELS_PATH=%SystemDrive%\(ComfyUIのパス)\ComfyUI\models"
    set "HF_HOME=%MODELS_PATH%\huggingface"
    set "HF_HUB_CACHE=%HF_HOME%\hub"
    set "HF_HUB_OFFLINE=1"
    set "TRANSFORMERS_OFFLINE=1"
    set "PYTHONDONTWRITEBYTECODE=1"
    set "PYTHONNOUSERSITE=1"
    set "PYTHONPATH="
    set "NO_ALBUMENTATIONS_UPDATE=1"
    set "TOKENIZERS_PARALLELISM=false"
    set "PYTORCH_ALLOC_CONF=expandable_segments:True"
    set "SEED=42"
    "venv\Scripts\python.exe" -B run.py "config\(configのyamlファイル名)"
    exit /b %ERRORLEVEL%

    MODELS_PATH はダウンロード先と同じ場所に合わせます。GPUを複数搭載している場合は、nvidia-smi --query-gpu=index,uuid,name --format=csv,noheader で確認し、CUDA_VISIBLE_DEVICES に対象GPUのUUIDを指定すると使用GPUを固定できます。今回の作業用バッチもRTX 4070のUUIDで固定しています。(私のPCはマルチGPUなので)

    PowerShellからの起動例です。

    .\train_qwen_image21.bat

    今回の設定だと出力先は output/charsayaka_qwen_image21_r16_1024 になります。yamlファイルで変更すれば任意のフォルダ名に変えられます。

    250 stepsごとに保存し、中間チェックポイントの保持数は4にしています。同じ設定名を再使用すると既存出力から再開する場合があるので、完全に独立した実験を始める場合は学習名も変更しておくと安心です。

    学習を始めると、素材フォルダ内に必要な _latent_cache と _t_e_cache が作られます。これは次回以降も使う学習用キャッシュで、元画像の複製ではありません。


    3場面×LoRA強度(0.0・0.6・0.8・1.0)を比較

    ここからは後半の検証パートです!

    1024×1024設定で学習を回しました。RTX4070で2000step 31枚の画像で、3時間30分かかりました。メモリには余裕があります。

    画像

    生成に成功したら、ComfyUIの models/loras フォルダへ配置。あとはComfyUIテンプレートからQwen Image 2.1のワークフロー(テキストから画像生成)を選んで、LoadLoRAノードを追加して設定するだけです。

    一応、ワークフローも添付しておきます。LoRAだけ変更してください。

    今回は静止画の画像生成(T2I)での検証です。トリガーワード と「黒髪のお団子ヘア」を全条件に盛り込み、「学校」「カフェ」「砂浜」という雰囲気の異なる3場面を生成しました。

    生成条件まとめ

    以下の設定で画像生成しています。

    • 画像サイズ: 1024×1024

    • LoRA重み: 1.0

    • seed: 全画像42

    • サンプラー / スケジューラー: Euler / simple

    • ステップ数 / CFG: 25 steps / CFG 1.0 (denoise 1.0)

    • ネガティブプロンプト: 空欄(CFG 1.0だとネガティブプロンプトは使用不可です)

    • ベースモデルとテキストエンコーダー: 前半で用意したINT8 ConvRot版

    • ComfyUI: 0.36.0、RTX 4070、標準ノードのみ


    3場面の生成結果・プロンプト・強度比較

    場面1:制服で学校の机に向かって勉強

    A 2D anime illustration shows charsayaka studying at a classroom desk, with crisp outlines and flat cel shading in navy and cream. Behind her, a quiet classroom extends toward a pale green chalkboard, while tall windows occupy the left side and a row of empty wooden desks recedes on the right. Across the upper edge, the simple ceiling and straight window frames establish a calm, orderly setting, and a closed classroom door sits near the far right corner. In the center, charsayaka is an adult woman in her twenties with black hair gathered into a single neat bun at the back of her head. Her head tilts slightly downward toward an open textbook, and her attentive eyes follow the page while a small, relaxed smile gives her expression a gentle warmth. A few curved strands frame her face, and the rounded bun remains clearly visible against the light wall behind her head. She sits upright on a classroom chair with her shoulders relaxed, leaning just enough toward the desktop to make her studying action clear. Her school uniform consists of a navy blazer over a white blouse, a muted red ribbon at the collar, and a navy pleated skirt visible below the front edge of the desk. At the center of the desktop, an open cream-colored textbook lies beside a pale blue notebook, with small indistinct page markings suggesting study material. Her right hand holds a yellow pencil against the notebook, while her left hand rests lightly on the open textbook to hold the pages in place. Both forearms remain above the desktop, with the hands separated by the book and notebook so their actions are easy to read. Near the lower left corner, a rectangular pencil case rests beside the book, and a single eraser sits close to the writing hand. Along the lower edge, the wooden desk front and the upper part of her skirt establish the seated pose, while the metal chair frame appears at the lower right. A medium-distance, slightly elevated three-quarter viewpoint keeps her face, hair bun, shoulders, hands, and study materials together within the central composition. Daylight enters from the windows on the left, casting broad, pale-edged cel shadows beneath her chin, across the navy sleeves, and along the right side of the desk. The window glass carries a simple pale blue sky color, and the chalkboard remains a quiet green rectangle behind her without prominent lettering. Overall, the centered figure and receding classroom lines balance the composition, with restrained navy, cream, and pale green colors sustaining a calm anime study scene.

    画像
    生成結果

    なんか、元絵には似ていますが、効きが悪いですよね汗。画風もなんだかのっぺりしていますし。別のシーンも試してみます。


    場面2:Tシャツ姿でカフェのコーヒーとケーキ

    A 2D anime illustration shows charsayaka enjoying coffee and cake at a cafe table, with crisp outlines and warm, flat cel shading. Behind her, a comfortable cafe interior combines cream walls, honey-colored wooden furniture, and a broad window on the left overlooking softly simplified green foliage. Along the upper right edge, a short wooden shelf holds a few plain ceramic cups, while an empty neighboring table sits farther back at the right side. At the center, charsayaka is an adult woman in her twenties with black hair gathered into a single neat bun at the back of her head. The bun has a clear rounded silhouette against the cream wall, with a few curved strands falling beside her cheeks and smooth dark shapes defining the rest of her hair. Her face turns slightly toward the viewer, and her relaxed eyes and small smile convey the pleasant pause just before she takes a bite of cake. She sits comfortably on a wooden chair, with an upright torso and relaxed shoulders, wearing a plain white T-shirt with short sleeves and a soft crew neckline. A few broad folds follow the bend of her arms, and a muted blue skirt is partly visible beneath the table near the lower edge. On the left side of her body, her left hand holds the handle of a cream ceramic coffee cup at chest height, keeping the cup upright and its brown coffee surface visible. On the right side of her body, her right hand holds a small silver fork with one bite of cake lifted toward her slightly open mouth. The fork stays separate from the cup, and her bent elbows create an open arrangement that leaves both hands and their objects clearly readable. At the center foreground, a white plate supports a triangular slice of pale sponge cake with cream layers and a single red strawberry on top. A small portion is missing from the pointed end of the slice, connecting the cake on the plate to the bite on her raised fork. Near the lower left corner, the empty saucer for her coffee cup rests on the wooden tabletop beside a neatly folded beige napkin. The rounded table edge runs across the lower part of the image, while the back of her chair appears beside her right shoulder and hip. A medium-distance three-quarter view includes her head, bun, upper torso, both hands, the raised cup and fork, and the entire cake plate. Soft afternoon light enters from the left window, making broad cream highlights and gentle cel shadows beneath her chin, sleeves, cup, and plate. Overall, the central figure and low tabletop form a balanced cafe composition, with warm wood, cream, muted blue, and a small strawberry-red accent supporting the cheerful anime scene.

    画像
    生成結果

    先ほどと同様ですね。遠からず似ている感じの見た目です。使用したデータセットはAnima, Krea2でも使用した、実績のあるデータセットなんですけどねー。


    場面3:ビキニで砂浜のグラビアポーズ

    A 2D anime illustration shows charsayaka in a blue bikini on a sandy beach, with crisp outlines and bright, flat cel shading. Behind her, a turquoise sea stretches across the middle distance, with a low horizontal horizon separating the water from a pale blue sky and a few broad white clouds. Along the left edge, a shallow wave curves onto the sand, while the right side remains an open stretch of warm beige beach with a few small shell shapes near the lower corner. At the center, charsayaka is an adult woman in her twenties with black hair gathered into a single neat bun at the back of her head. The rounded bun rises clearly against the pale sky, and two loose curved strands near her cheeks move lightly in the sea breeze. Her head turns gently toward the viewer, with a relaxed smile and an open, cheerful expression that suits a summer swimsuit illustration. She stands in a gravure-style swimsuit fashion pose, placing most of her weight on her right leg while the left knee bends slightly and the left foot rests a little forward on the sand. Her shoulders turn subtly against the direction of her hips, creating an easy curve through the standing figure while keeping the pose balanced and comfortable. Her right hand rests on her right hip with the elbow angled outward, and her left arm hangs loosely beside her with relaxed fingers. She wears a simple cobalt-blue two-piece bikini with secure shoulder straps and matching bottoms, with smooth opaque fabric and a small pale blue trim following the garment edges. Broad, clean color areas describe the swimsuit, while restrained cel shadows define the natural bends at her waist, elbows, and knees. In the lower center, both bare feet remain fully visible on the sand, with shallow footprints and a soft cast shadow grounding her stance. Near the lower left corner, a thin line of white sea foam ends well behind her feet, keeping the figure unobstructed and the beach setting easy to read. Across the middle right, the shoreline recedes toward a faint headland rendered as a simple muted blue shape at the distant edge. A full-body, eye-level viewpoint gives her figure clear space above the bun and below the feet, and her face remains large enough to distinguish her expression. Bright sunlight falls from the upper left, creating broad warm highlights and distinct but gently edged cel shadows on her right side and the sand beside her. Small white shapes on the water suggest sunlight across the sea, while the clouds and distant coast remain visually quieter than the central figure. Overall, the upright pose and low shoreline balance the composition, with cobalt blue, turquoise, pale sky blue, and warm sand forming a lively summer anime palette.

    画像

    こちらも同様。のっぺり感が半端ないですね。アニメというかセル画というか、なんとなく1990年台を彷彿とさせる感じ。


    実際に試してみた所感・まとめ

    今回はQwen Image 2.1で自作キャラクターLoRAの学習と、ComfyUIでの強度別比較を行ってみました!

    2026/9/21現在、私の愛用するmusubi-tuner, sd-scriptsが対応していないため、ai-toolkitを使用してキャラLoRAを作成してみましたが、結果は残念な感じになってしまいました・・。

    同様の設定でも、Anima, Krea2は問題なく学習・再現できているので、もしかすると2Dアニメ絵がQwen Image 2.1弱いのかもしれません。Xのポストを見ると実写系は普通に生成できていそうなので。

    一応、他のパラメータ設定などでも色々トライしているので、進展があれば記事を更新します!最新情報はXをご覧くださいー。

    おまけ

    キャラLoRAではなく「参照画像をキャラLoRAがわりに使えるか?」という実験もやってます!よかったら見てみてくださいー。


    最後まで読んでいただき、ありがとうございました!

    もしこの記事が「面白かった!」「Qwen Image 2.1でのLoRA学習の参考になった!」と思っていただけたら、ぜひ画面下の【スキ(ハートマーク)】を押していただけると励みになります!

    これからもローカルAIのリアルな検証や実践ノウハウをお届けしていきますので、ぜひnoteのフォローもよろしくお願いいたします!


     
     
    かみもと ひろた(神下紘汰)。ソフトウェアエンジニア+R&Dエンジニア。Codex + Claude使い(Geminiはオマケ)。コスパの良いRTX4070のローカル環境で画像生成・音声生成・LLMを実行させたり、アプリ開発したり、最新技術のフォローアップをしたりします。

    あなたへのおすすめ