Sub topic 6
Iterating on results one change at a time
This chapter assumes you have a written creative brief and can build a prompt from its fields, as covered in the earlier chapters on briefs and prompt anatomy. You should also be comfortable running a short Python script.
Why one change at a time
A first generation rarely matches the brief. The common reaction is to rewrite the whole prompt and try again. That makes it impossible to tell which edit helped. If you change the lighting, the palette, and the composition together, a better result teaches you nothing you can reuse.
Systematic iteration means you change one element per round, compare the result against the brief, and keep a record. Over a few rounds you learn which words control which parts of the image.
The iteration loop
Control the variables
Image generators are random by nature. If you run the same prompt twice, you get different images. Before you attribute a difference to your edit, reduce the noise:
- Fix the seed if your tool offers one. A seed is a number that starts the random process, so the same seed and prompt give a similar result.
- Generate several images per round, such as four. One lucky or unlucky image can mislead you.
- Keep the model, size, and other settings the same between rounds.
If your tool has no seed control, judge each change by the pattern across a batch, not by a single image.
Change structured fields
The structured brief from the prompt chapter makes this easy. Each field is one variable, so you copy the dictionary, edit one value, and rebuild the prompt.
import copy
BRIEF = {
"subject": "a stainless steel water bottle on a flat rock beside a mountain lake",
"style": "clean product photography, soft natural light, shallow depth of field",
"palette": "cool blues and warm gray",
"composition": "bottle on the right third of the frame, empty space on the left for a headline",
"avoid": "text, logos, people",
}
def build_prompt(brief):
parts = [
brief["subject"],
brief["style"],
f"Color palette: {brief['palette']}",
f"Composition: {brief['composition']}",
f"Do not include: {brief['avoid']}",
]
return ". ".join(parts) + "."
def variant(brief, field, value):
changed = copy.deepcopy(brief)
changed[field] = value
return changed
round_2 = variant(BRIEF, "style", "clean product photography, golden hour light, shallow depth of field")
print(build_prompt(round_2))Only the style field differs from the original, so any change in the result comes from the light.
Keep an iteration log
Write down each round. A simple table is enough.
| Round | Field changed | New value | Result | Keep? |
|---|---|---|---|---|
| 1 | none (baseline) | n/a | Bottle too small, flat light | n/a |
| 2 | style | golden hour light | Warmer, better mood | Yes |
| 3 | composition | bottle fills half the frame | Bottle now large, headline space lost | No |
| 4 | composition | bottle on right third, closer | Good balance | Yes |
The log shows what you tried, so you do not repeat failed edits. It also gives you a tested prompt to reuse later in the campaign.
Common errors
- Changing several fields at once. You cannot tell which one worked. Split the edit into separate rounds.
- Judging from one image. Randomness can look like improvement. Compare batches.
- Drifting from the brief. A prettier image is not a better one if it loses the headline space or the mood. Check each result against the brief's goal, not your taste in the moment.
- Never stopping. Set a limit, such as six rounds. If the image is still wrong, the problem may be the brief or the tool, and you should revisit those.
Exercise
Your first image has the right subject but the lighting looks flat and the background is cluttered. How should you iterate, and why?
Show answer
Fix one variable per round. First change only the lighting words in the style field and generate a batch of several images with the same seed and settings. Compare, log the result, and keep the change if it helps. Then do a separate round that changes only the background, for example by adding "plain background" to the subject or a clutter term to the avoid field. Changing both at once would hide which edit caused each improvement.
Exercise
Why generate several images per round instead of one?
Show answer
Generation is random, so a single image may look better or worse by chance. A batch shows whether your edit changed results consistently.