liveBook · Manning

Digital image

As explained in Local Image Generation

An image is a generated visual artifact representing one candidate illustration for a panel in the example graphic-novel page.

A digital image is the visible result Stable Diffusion produces from a text prompt and generation settings. For a graphic-novel page, each image is a candidate illustration: generate several, then choose the one that best fits its panel. The first result is not sacred; it is a draft wearing pixels. section 3.4.5 section 4.2

A pipeline can return a list of images even when only one was requested. Access the first result with `.images[0]`; request multiple candidates with `num_images_per_prompt`, then select another position such as `.images[1]`. Keeping slow generation in its own notebook cell makes prompt and setting changes less annoying. section 3.4.5

For panel illustrations, treat each image as a configured deliverable rather than a random souvenir:

  • Give every panel its own prompt, width, and height so the illustrations support the intended page layout. section 3.5
  • Store panel configurations in a dictionary, then reuse one pipeline to generate candidates for every panel. section 3.5
  • Create a folder per panel and save each generated candidate, making later comparison and selection practical. section 3.5
  • Generate multiple images per prompt instead of betting the page on a single roll of the diffusion dice. section 3.4.5 section 3.5

Five-panel candidate set

Break a difficult poetic line into five concrete subjects, label the panels A–E, and assign each a prompt and shape. One panel might use a wide 1800×320 image for twin suns over a lake; another might use an 800×400 portrait-shaped image for a figure. Generate ten candidates for each panel, then place a chosen image with its text. section 3.5

Images also play a different role during custom LoRA training: they are examples of the subject the model should learn. A small collection should be clear, lightly compressed, near the intended output resolution, and varied in angle, distance, pose, and surroundings. Repeating the same accessory or background can blur what the model learns to associate with the subject. section 13.2.1

Before training changes anything, sample images reveal the baseline: prompts may produce results that do not resemble the intended subject. Those initial outputs give a before-and-after reference for judging whether training has made the generated images more useful. section 13.4

Figure 3.4 Images generated for panel E

Compare the generated candidates for one panel before choosing the illustration that will join the page. section 3.5

How Local Image Generation covers it

How deep it goes
Explains pipeline output access, batching, configuration, saving, and image collection criteria without diffusion internals.
Examples
Uses five differently sized comic panels, ten candidates per prompt, Keats photos, and pre-training sample outputs.
What it assumes
Introduces dictionary-based configuration while allowing loop details to remain optional for beginners.
What you can do after
Apply it via Stable Diffusion pipelines to generate, save, compare, and select panel-image candidates.
How it connects
Connects images with Stable Diffusion, text prompts, pipelines, dictionaries, LoRA training, and sample images.

Also explained in

Compare how 17 books explain digital image →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Local Image Generation. The section links point to the parts of the book it draws on.