跳到正文
DEV Community· AI-KSK·· 2 小時前AI 評分46

使用 AI Toolkit 從零訓練 Qwen-Image-Edit-2511 LoRA:完整教學

Training a Qwen-Image-Edit-2511 LoRA from scratch: the AI Toolkit route, start to finish

AI 導讀

這份入門教學以 AI Toolkit 示範如何為 Qwen-Image-Edit-2511 訓練 LoRA,重點是數據集、圖片描述、訓練步驟及驗證,而非編輯流程。訓練光影概念時,應使用構圖和光線一致的數據,並在未見過的提示詞上測試不同強度。這不是現成工作流程;教學沒有附上數據集或權重。

正文

AI-KSK

Training a LoRA for Qwen-Image-Edit-2511 is not a ComfyUI problem - the editing graph is the easy part. The work is in the training loop: dataset, captions, steps, and then reading the loss curve honestly instead of waiting for a number you like.

This is an entry-level walkthrough of that loop, done with AI Toolkit. It assumes you can already run 2511 for editing and want to move from "using other people's LoRAs" to "making one for your own effect".

Watch the episode: https://youtu.be/hhZXg8Ovo6o
Chinese original: https://www.bilibili.com/video/BV1nKiKBgED8

Why train on 2511 at all

2511 is a mature editing base. That matters for training: when the base is stable, the LoRA learns your concept instead of fighting the base model's weaknesses. A LoRA trained on an unstable base produces results that look good in the trigger case and break everywhere else.

The four parts of the loop

  1. Dataset - consistent framing and lighting beats a large messy set. For a light-and-shadow concept, that means many angles of the same subject under controlled lighting, not many subjects.
  2. Captions - describe what the base would otherwise add. If the effect is light direction, say so; if it is a material response, name the material.
  3. Training - start conservative, watch a fixed validation prompt, and stop when the validation image stops improving. The loss number alone will happily keep going down while the images get worse.
  4. Validation - run the LoRA at several strengths on prompts it never saw during training. That is the only test that predicts how it behaves in your real workflow.

What "training a light concept" actually requires

A light-and-shadow LoRA is harder than a style LoRA because it changes how surfaces respond, not just how things are drawn. You are teaching a physical relationship - where light lands, what falls into shadow - not a texture. Expect to need more consistent data than a style concept, and expect the effect to degrade faster when you push strength.

Honest limits

  • A LoRA is not a fix for a bad base render. Compose first, train second.
  • Overfitting looks like "the trigger works, everything else drifts". Validate on unseen prompts or you will not catch it.
  • This is a training tutorial, not a packaged workflow. No dataset or weights are bundled; the process is what you take from the video.
  • Compute costs change. Treat any specific hardware offer mentioned in an older video as something to check on the platform itself, not as a current guarantee.

Where to go next

Train one narrow concept first - one lighting pattern, one material - and use it in real work before attempting a second. A LoRA you actually deploy teaches you more than three you only bench-test.

來源:DEV Community · dev.to