Training templates
LoRAs to train for Qwen Image Edit 2511: what each learns, what its source and target datasets should hold, and how to make them. Each one's link opens Create a LoRA with its model, instructions and numbers filled in; you pick your own datasets there.
A training learns from pairs: a source (before) and a target (after) of the same name, captioned by an instruction. How training works, its checkpoints and what it costs: Training and LoRAs. Every setting below can be changed on Create a LoRA before it starts, which shows what the training will cost; the learning rate and how often it keeps a checkpoint are the base model's preset defaults.
Upscale an image
Teaches the base model to turn a small or soft image into a sharp, high-resolution one that keeps everything in it: the same people, colours and layout, with fine detail restored.
- LoRA name
- upscaler
- Base model
- Qwen Image Edit 2511
- Pair set 1Instruction
- Upscale this image to high resolution. Restore fine detail and sharpness, and keep the content, colours and composition exactly the same.
- Pair set 1Source (before)
- You pick: the low-resolution or degraded copies
- Pair set 1Target (after)
- You pick: the originals, sharp and full size, each named like its copy
- Steps
- 2000
- Rank
- 32
- Resolution
- 1536 px
An upscaler learns from pairs of the same picture: a low-resolution or degraded copy (the source) and the original at full resolution (the target). It learns to add the detail the copy lost, not to change what the picture shows.
The pairs are easy to make from images you already have: take good, sharp photos of the kind you will upscale (faces, products, landscapes), keep them as the target, and save a copy of each at a quarter of its size, perhaps with some JPEG compression or blur, as the source, under the same file name. The more the copies look like the images you will really upscale, the better it does on them.
| Dataset | What it holds |
|---|---|
| Source (before) | the low-resolution or degraded copies |
| Target (after) | the originals, sharp and full size, each named like its copy |
It trains at the largest resolution, 1536 px, because detail is what it learns; a lower resolution trains faster and costs less. A few hundred varied pairs is plenty; 50 already helps.
Targets at least 1536 px on the long side; anything smaller teaches softness.
Degrade the copies the way your real inputs are degraded: resize, compression, noise, blur.
Vary the subjects: an upscaler trained only on faces invents faces.
Run the LoRA with the Upscale an image step, and judge its outputs with Upscale check.
Insert a person
Teaches the base model one person, "ohwx person", and to add them to any photo: standing, sitting or in a group, lit like the scene around them.
- LoRA name
- ohwx-person-insert
- Base model
- Qwen Image Edit 2511
- Pair set 1Instruction
- Add ohwx person to this photo, in a natural pose, lit and coloured to match the scene.
- Pair set 1Source (before)
- You pick: the scenes without the person
- Pair set 1Target (after)
- You pick: the same photos with the person, each named like its scene
- Pair set 1Per-image instructions
- You pick: optional: where to put the person in each photo
- Steps
- 2500
- Rank
- 32
- Resolution
- 1024 px
The LoRA learns two things at once: who the person is, and how to place someone new into a photo so they belong there. Each pair is the same photo without the person (the source) and with them (the target).
Start from photos of the person in many places, and make each source by removing them: the Remove a person step over the dataset gives you a matching empty scene for each photo, under the same file name. Check the sources: one where the person is still half there teaches the LoRA to leave ghosts.
| Dataset | What it holds |
|---|---|
| Source (before) | the scenes without the person |
| Target (after) | the same photos with the person, each named like its scene |
| Per-image instructions | optional: where to put the person in each photo |
Where they go differs from photo to photo; if it matters, add per-image instructions (a text dataset, a.txt for a.jpg) such as "Add ohwx person sitting on the bench on the left". Photos without one use the instruction. Try its checkpoints on a held-out dataset of scenes it has not seen.
20 to 60 photos of the person: varied angles, lighting, clothes and distances, their face clear in most.
Only the person differs between a source and its target; the rest of the photo is the same.
Keep the trigger word, "ohwx person", in every instruction, and use it in the step that runs the LoRA.
Run the LoRA with the Insert a person step, and judge its outputs with Person added.
Replace a person
Teaches the base model one person, "ohwx person", and to put them in place of whoever is in a photo, keeping the scene, the pose and the expression.
- LoRA name
- ohwx-person-replace
- Base model
- Qwen Image Edit 2511
- Pair set 1Instruction
- Replace the person in this photo with ohwx person. Keep the pose, expression, clothes and the rest of the photo the same.
- Pair set 1Source (before)
- You pick: the photos with someone else in place of the person
- Pair set 1Target (after)
- You pick: the same photos with the person, each named like its source
- Steps
- 2500
- Rank
- 32
- Resolution
- 1024 px
Each pair is a photo with someone else in it (the source) and the same photo with the person the LoRA learns (the target). The LoRA learns to change who the person is and nothing else: the clothes, pose, expression, hair length and the scene around them stay as they were.
Start from photos of the person and make each source by replacing them with someone else: a step with the prompt "Replace the person with a different person of a similar age and build" over the dataset does it, under the same file names. Vary who replaces them, so the LoRA learns to replace anyone, not one face.
| Dataset | What it holds |
|---|---|
| Source (before) | the photos with someone else in place of the person |
| Target (after) | the same photos with the person, each named like its source |
20 to 60 photos of the person: varied angles, lighting and expressions, their face clear and large enough.
Sources and targets match everywhere but the person: same framing, same scene.
Hold back a few photos as a held-out dataset to try its checkpoints on.
Run the LoRA with the Replace a person step, and judge its outputs with the Person swap (LoRA) judge: it checks the face is the LoRA's person, that the scene, pose and expression are kept, and that the edit looks real, with the LoRA's training images as its reference.