Workflow Optimization
How to get exactly the image you have in mind — instead of something pretty but different.
In previous articles, you learned to generate images, use Stable Diffusion, and fine-tune with LoRA. But you have probably noticed: sometimes the pose is wrong, the resolution too low, or you cannot get that specific composition.
This article gives you the professional toolkit: ControlNet for precise spatial control, AI upscaling for print-ready resolution, and the 7-step workflow that turns random results into deliberate creations.
ControlNet — Steering Composition
Definition
ControlNet
Analogy
Definition
The core insight: The text prompt controls WHAT appears in the image. ControlNet controls WHERE it goes.
Example: OpenPose workflow. (1) Take a photo of yourself standing with arms crossed. (2) Run it through the OpenPose preprocessor to extract a skeleton.
(3) Combine the skeleton with the prompt "a medieval knight in full armor, castle background." (4) Result: a knight in YOUR exact pose. The pose is preserved, everything else is new.
Preprocessors extract control images automatically from photos. You need no technical knowledge — upload a reference photo, choose the mode, and the result appears immediately. Newer models like FLUX.2 also accept several reference images and pick up characters or style from them. If pose or edges must be followed reliably and with adjustable strength, ControlNet remains the better choice; it now exists for FLUX.2 as well.
Caution
Misconception: ControlNet is too complicated for beginners
The basic modes (OpenPose, Canny) require no technical knowledge. You upload a reference photo, the preprocessor does the extraction automatically, and the result is immediate. Advanced configuration is optional.
ControlNet freezes the image model and adds a trainable copy of its encoder part. The prompt is read as usual by the image model’s text encoder. A small network of four convolution layers prepares the control image, the copy processes it and feeds its signals into the frozen model through “zero convolutions” (convolution layers initialized with zeros). The control strength can be adjusted via a weight — at low weight, the AI interprets the structure more freely; at high weight, it follows more precisely.
Upscaling — From Small to Print-Ready
Why not simply generate at high resolution directly? Because models like SD 1.5 tend to produce severe artifacts above their training resolution: double heads, merged limbs, distorted bodies. The solution: generate small, scale big.
Pixels are stretched, blurry result, no new details, done instantly
New details are generated, sharp result, plausible textures, takes seconds
Simple resize is like zooming into a newspaper photo — you see bigger dots but no new information. AI upscaling is like a forensic artist who takes a blurry security camera image and paints in realistic skin texture, fabric patterns, and hair strands.
ESRGAN
Fast and deterministic. Ideal for photos and anime. Adds learned textures but no new image content, and processes images in seconds. 4x enlargement in ~2 seconds.
SD Upscale
Lightly re-noises the image and de-noises it again. Adds genuine new details (skin texture, fabric patterns). Slower but more creative. Ideal for print products.
Tiled Upscaling
Processes the image in tiles. Works with as little as 4 GB VRAM. Ideal for large images on limited hardware.
The core principle: Generate at your model's native base resolution (512×512 for SD 1.5, 1024×1024 for SDXL), then upscale. Never the other way around. Newer models push the limit: FLUX.2 generates images directly at up to 4 megapixels, the open model FLUX 3 Image Klein (since October 2026) even generates natively in 4K, and the image models from Google (Nano Banana) and OpenAI (GPT Image) deliver up to 4K on request. For them, the rule applies above their respective maximum resolution.
Concrete example: (1) Generate portrait at 512×512. (2) Apply ESRGAN 4× → 2048×2048 in about 2 seconds, fast and sharp, but without genuine new detail. Alternative: (1) Generate at 512×512. (2) SD Upscale 2× with denoising 0.3 → 1024×1024 with new details. (3) ESRGAN 2× → 2048×2048 final.
Caution
Misconception: Upscaling is just as good as native high-resolution
High resolution generated directly would have more genuine detail. But above the model’s native resolution, direct generation causes severe composition artifacts. Upscaling is the practical compromise: good composition at low resolution, then good detail through scaling.
ESRGAN is deterministic: same input always produces the same output. It adds learned, plausible textures but does not invent new image content. Ideal for fast results and consistent quality. SD Upscale lightly re-noises the image and lets the AI de-noise it again — creating genuine new details like skin texture or fabric folds. Ideal for print products where maximum detail matters. Downside: slower and may slightly alter the image.
The Professional Workflow — Putting It All Together
Professional image generation follows a 7-step iterative pipeline. It is not about typing one perfect prompt, but about iterative refinement:
- 1. Formulate prompt
- 2. Batch generate4–8 variants at base resolution, e.g. 512×512
- 3. Select best composition
- 4. ControlNet for structural refinement
- 5. Inpainting for detail fixesas learned in the previous article
- 6. Upscale to target resolution
- 7. Post-processingPhotoshop/GIMP
Why batch generation? Because you create 8 variants at 512×512 in 30 seconds. The chance of finding a good composition increases dramatically. Then you only refine the best variant further.
Tools like ComfyUI enable this workflow as a visual, node-based pipeline — each step is a building block you can connect, save, and reuse.
Example: Book cover workflow. (1) Prompt: "fantasy landscape, ancient tower, dramatic sky." (2) Generate 8 variants at 512×512 in 30 seconds. (3) Select best composition, note the seed.
(4) Apply ControlNet Depth for spatial arrangement. (5) Inpaint the title area to keep it clear. (6) SD Upscale 2× + ESRGAN 2× to 2048×2048. (7) Export as 300 DPI CMYK for print. At 300 DPI, 2048 pixels cover just over 17 cm (6.8 inches) per side; for a portrait-format paperback cover, generate in the matching aspect ratio from the start and upscale further accordingly.
Caution
Misconception: AI replaces graphic designers
AI is a tool FOR designers. The creative vision, composition decisions, refinement choices, and final polish remain human tasks. The 7-step workflow shows: AI generates raw material, the human shapes it into a finished product.
Interactive: The 7-Step Pipeline as a Node Diagram
In ComfyUI, you connect each processing step as a visual node. Click Play and watch the pipeline activate step by step — from the first prompt to print-ready export.
The 7-step pipeline as a node-based diagram — just like in ComfyUI. Each node represents a processing step.
Click "Play" to see the process step by step.
In ComfyUI, each step is a reusable building block. You can reorder steps, change parameters, and save and share entire workflows — a decisive advantage over linear tools.
Note
Key Takeaways
- ControlNet solves the "what goes where" problem: text prompts control content, ControlNet controls composition (pose, edges, depth, sketch).
- Always generate at your model's native base resolution (e.g. 512×512 for SD 1.5, 1024×1024 for SDXL) and upscale afterward — going beyond it causes severe artifacts.
- Professional image generation is an iterative 7-step pipeline, not a single prompt. Generate many, select the best, refine, upscale.
With this workflow, you now have the complete toolkit for generative image art. You know the path from first prompt to print-ready result — the same principles of iterative refinement apply to video generation and other generative AI workflows.
Check
Quiz: Workflow Optimization
You want to generate an image that preserves the spatial layout of an architecture photo, freely reinvents facades and details, and changes the style to "futuristic sci-fi city." Which ControlNet mode do you use?
Select one answer
1. You want to generate an image that preserves the spatial layout of an architecture photo, freely reinvents facades and details, and changes the style to "futuristic sci-fi city." Which ControlNet mode do you use?
2. Why do professionals using SD 1.5 generate images at 512×512 and upscale afterward, instead of generating directly at 2048×2048?
3. You have a photo of a person sitting cross-legged and want to generate a fantasy character in the exact same body position. Which ControlNet mode and workflow do you use?
4. You generated a portrait at 512×512 and want to print it as a photorealistic book cover at 2048×2048. You have two options: ESRGAN 4× (fast, deterministic) or SD Upscale 2× + ESRGAN 2× (slower, adds details). Which do you choose for the book cover?
5. A friend says: "I just type one prompt, take the first result, and resize it in Paint. That's my workflow." Evaluate this approach against the 7-step professional pipeline. What are the two biggest problems?
Check
Checkpoint
Can you explain this in your own words? Tick what you've got.
0 of 3 done