Image Generation Models: Achieving Photorealistic and Controllable Output

    This article breaks down the shift in image generation models from producing images to producing them with control, focusing on three technical areas: physically consistent texture and lighting, spatially controllable instruction following, and consistency across multimodal references. It presents a four-stage production pipeline with practical guidance for each stage: structuring photorealistic prompts, running compliance preprocessing to replace real identities, generating structured scripts for downstream timing, and driving image-to-video with consistency strategies. It also covers quantitative quality gates, a troubleshooting checklist for common failure modes, and the engineering takeaway that reusable pipelines matter more than chasing a single model's output.

    1. The Technical Shift: From Generating Images to Controlling Them

    Recent discussion around the photorealistic quality of new image generation models looks like a surface-level change—“the images resemble photos now.” In practice, three technical curves are rising at the same time: physical consistency of texture and lighting, spatial controllability of instruction following, and consistency preservation across multimodal references. Only when these three overlap does the “generate an image first, then drive a video” pipeline become viable for production use.

    One common misconception needs clearing up: better realism does not mean the output can be used directly for automated production of real people’s portraits. Compliance and authorization boundaries still apply, and the engineering implementation must include identity and asset compliance checks early in the chain. This is covered separately below.

    From an engineering perspective, a stable content production chain usually consists of four decoupled modules:

    1. [Reference Image] -> [Compliance Preprocessing] -> [Script Structuring] -> [Video Driving]
    2. T2I Guard LLM I2V

    The value of decoupling is that any module can be replaced and rolled out gradually on its own, and a failure can be retried locally instead of rerunning the entire chain.

    2. Reference Image Generation: Prompt Structure for Photorealistic Portraits

    Instability in photorealistic style is usually not a model capability problem. It is more often caused by prompts that lack “photographic language” constraints. A five-part structure is recommended, locking down the camera, lighting, material, composition, and image quality separately:

    1. [Subject] + [Camera and Shot Size] + [Lighting Setup] + [Material and Detail] + [Image Quality and Aspect Ratio]

    An illustrative prompt (for structure demonstration only):

    1. Solo female narrator, medium shot, 35mm prime lens, f/2.0 shallow depth of field;
    2. top-down vertical spotlight + low-light rim light on the background;
    3. natural skin texture, pores and fine vellus hair preserved, clear fabric texture;
    4. centered composition, eyeline slightly above the camera, 9:16 aspect ratio, high dynamic range, low noise

    Practical points:

    • Write physical values for camera parameters. Focal length and aperture stabilize composition and depth of field far better than adjectives like “high definition.”
    • The lighting setup sets the realism ceiling. A single key light with rim separation is more durable than flat, multi-source lighting.
    • Use negative constraints to converge artifacts, for example suppressing over-smoothing, plastic-looking skin, extra fingers, and text or watermark artifacts.
    • Fix the random seed and iterate in small steps. Change one dimension at a time so you can identify which description is actually having an effect.

    3. Compliance Preprocessing: Engineering Constraints on Driving with Real Footage

    Many video models do not accept real human faces as driving input, due to portrait rights and abuse prevention. The common engineering approach is to separate “identity” from “appearance”: preserve the semantics of composition, pose, lighting, and clothing, replace the facial identity features, and produce an equivalent reference image with a non-real identity.

    The process can be abstracted into three steps:

    1. Structure preservation: lock the pose, camera, shot size, and background layout;
    2. Identity replacement: generate fictional facial features that do not point to any real individual;
    3. Consistency verification: compare composition similarity and semantic label consistency before and after processing.
    1. # Pseudocode: compliance preprocessing and consistency verification
    2. def sanitize_reference(img, keep=("pose", "framing", "light", "bg")):
    3. struct = extract_structure(img, keys=keep) # pose / composition / lighting / background
    4. fake = synthesize_identity(struct) # fictional identity, not pointing to a real person
    5. return compose(struct, fake)
    6. def verify(src, dst, thr=0.85):
    7. s_struct = similarity(structure_of(src), structure_of(dst))
    8. s_sem = label_consistency(src, dst) # clothing / scene / shot size labels
    9. return s_struct >= thr and s_sem >= thr

    This step is not optional; it is a prerequisite for whether the chain can go live. Asset authorization records and generation logs should also be retained for audit and traceability.

    4. Script Generation: Turning Raw Ideas into Machine-Executable Structured Data

    The key to the dialogue stage is not eloquence but parseable structure. Letting a language model output free-form text directly will cause loss of control over downstream duration control and shot segmentation. A more robust approach is to constrain the output to structured fields:

    1. {
    2. "topic": "workplace daily life",
    3. "duration_sec": 15,
    4. "beats": [
    5. {"t": 0.0, "type": "setup", "text": "..."},
    6. {"t": 5.0, "type": "conflict","text": "..."},
    7. {"t": 11.0,"type": "twist", "text": "..."}
    8. ],
    9. "subtitle_cues": [{"t": 0.5, "text": "key line one"}]
    10. }

    Design points:

    • Explicit duration and beat points let downstream systems align lip sync and subtitles on a timeline instead of relying on manual estimation.
    • One sentence per segment, no line breaks, to reduce sentence-segmentation ambiguity in speech synthesis.
    • Fix the twist position in the later portion, matching the attention curve of short-form video.
    • Enumerate topics to make coverage statistics and deduplication easier during batch generation.

    5. Video Driving: Trade-offs in Duration, Reference Mode, and Consistency

    Once you have the reference image and the structured script, you move to the image-to-video stage. The easiest pitfall here is “maxing out all parameters,” which amplifies jitter and deformation instead. The recommended tuning order:

    1. Set the aspect ratio and duration first; prioritize short durations to get the chain working end to end;
    2. Then enable multi-reference input to constrain the character, clothing, and scene at the same time;
    3. Finally, fine-tune motion amplitude—smaller is better than larger—to avoid breaking faces and hands.

    For consistency control, a “first-frame anchoring + segmented generation + last-frame continuation“ strategy works well: split a long clip into several short clips and use the last frame of the previous clip as the first-frame reference for the next one, so error does not accumulate linearly.

    1. seg1: ref -> clip(0-5s) last_frame_1
    2. seg2: last_frame_1 -> clip(5-10s) last_frame_2
    3. seg3: last_frame_2 -> clip(10-15s)

    6. Quality Evaluation: Quantitative Gates Before Going Live

    Without measurement there is no stable output. At least four categories of metrics are recommended:

    • Identity consistency: mean and variance of cross-frame facial feature similarity;
    • Structural stability: inter-frame jitter amplitude of pose and hand keypoints;
    • Audio-visual sync: time offset between lip movement and the audio track;
    • Text safety: compliance filter hit rate for subtitles and dialogue.

    In engineering terms, these metrics can be built into pipeline gates: if a metric falls below the threshold, the pipeline automatically falls back to the previous stage and retries, and failed samples are accumulated into a regression set. If the chain needs to handle batch workloads, it typically also introduces a container platform for elastic scaling, a message queue for peak shaving, object storage for intermediate artifacts, and logging, monitoring, and alerting services for full-chain tracing. These are all general cloud capability categories, and you can choose a combination based on your own scale.

    7. Common Failure Modes and Troubleshooting Checklist

    Symptom Likely Cause Direction
    Frame-by-frame face drift Motion amplitude too large, insufficient reference constraints Reduce motion intensity, add reference image constraints
    Broken hand structure Shot size too close, pose too complex Switch to a medium shot, simplify gestures
    Lip sync misalignment with speech Missing beat points Output a structured timeline
    Background flickering Conflicting lighting descriptions Fix the key light setup and seed
    Subtitles covering the subject No safe area reserved in composition Reserve a bottom safe margin in the prompt

    8. Conclusion

    What this round of photorealistic image capability improvements really changes is how production is organized: content production shifts from “relying on luck” to an engineering process that is measurable, rollback-capable, and batch-capable. For developers, the worthwhile investment is not chasing the single-run output of one model, but solidifying prompt structure, compliance-first processing, structured scripts, and consistency evaluation into a reusable pipeline. Baidu AI Cloud’s elastic compute and data pipeline support in related general capabilities can serve as one common infrastructure option for deploying this kind of pipeline.