NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Block and Detail: Scaffolding Sketch-to-Image Generation

Vishnu Sarukkai, Lu Yuan, Mia Tang, Maneesh Agrawala, Kayvon Fatahalian

Professional artists rarely begin a masterpiece with a finished line. Instead, they follow an iterative workflow: first "blocking" in coarse shapes to establish composition and proportion, then adding "detail" strokes to define precise contours. However, most current sketch-to-image tools, such as standard ControlNet, fail to account for this hierarchy. They often treat every user-drawn line as a strict requirement, leading to a "Rigidity Trap" where a rough, lumpy initial sketch results in a distorted, unrealistic final image. Furthermore, these models often misinterpret empty space as intentional white space rather than "unspecified" regions, failing to suggest backgrounds or complete the scene.

To bridge this gap, researchers from Stanford have developed Block and Detail, a system that provides high-fidelity "scaffolding" images. This tool acts as a creative partner, helping users explore proportions and compositions without being penalized for the imperfections of a rough sketch.

The Block and Detail Framework

The system introduces a two-pass generation algorithm and a novel training strategy designed to mimic the artistic process.

Two-Pass Generation and Blended Renoising

The core of the system is a two-step approach that distinguishes between different types of strokes:

  1. Pass 1: The system uses a Partial-Sketch-Aware ControlNet to generate an initial image that strictly adheres to all user strokes.
  2. Pass 2 (Blended Renoising): To allow for "wiggle room" around blocking strokes, the system applies a second diffusion pass. It creates a renoising mask by dilating the blocking strokes and subtracting the dilated detail strokes. This allows the AI to refine the shape and proportions of "blocked" areas while keeping "detailed" areas (such as a specific facial feature or pattern) perfectly intact.

Partial-Sketch-Aware Training

To solve the "empty space" problem, the team developed a synthetic data pipeline. Using 45,000 images from the LAION-Art dataset, they extracted edges and converted them into vectorized strokes. They then simulated the artistic process by ordering strokes based on their distance from object boundaries and randomly deleting the final $X\%$ of them. This taught the model to "auto-complete" scenes from just a few initial lines, allowing it to suggest context—like a window sill for a sketched vase—that wasn't explicitly drawn.

Interpretable Control

Instead of relying on abstract "guidance strength" sliders, Block and Detail provides users with a dilation radius ($\sigma_b$). This parameter has a direct physical meaning: it defines how many pixels away from the stroke the AI is allowed to deviate. This gives the artist precise control over the AI's creative freedom, allowing the model to "fix" poorly proportioned blocking strokes while respecting the intended composition.

Key Results

The system was implemented on top of Stable Diffusion 1.5 and Dreamshaper 7. In comparative studies, the method demonstrated significant improvements over existing baselines:

  • User Preference: In a study with novice viewers, the Block and Detail method was preferred over the baseline Scribble ControlNet in 84% of image pairs.
  • Reduced Distortion: Viewers found the generated images had significantly less distortion (e.g., fewer "melted" or unrealistic shapes) in 81% of the pairs.
  • Interactive Efficiency: The tool generates a sample in just 1.0 seconds on an NVIDIA V100 GPU, making it fast enough for a real-time, iterative artistic workflow.

Discussion and Future Work

While Block and Detail represents a significant step forward in AI-assisted drawing, the authors note several areas for future exploration. Currently, the tool lacks a mechanism for "negative space"—a way for users to explicitly instruct the AI not to place objects in a certain area. Additionally, future iterations could include stroke-level granularity, allowing users to assign different dilation strengths to individual lines.

By treating a sketch as a flexible scaffold rather than a rigid blueprint, Block and Detail allows artists to use generative AI as a true collaborative partner in the creative process.

Summary updated

BibTeX
@inproceedings{sarukkai2024block,
  author = {Vishnu Sarukkai and Lu Yuan and Mia Tang and Maneesh Agrawala and Kayvon Fatahalian},
  title = {{Block and Detail: Scaffolding Sketch-to-Image Generation}},
  booktitle = {UIST},
  year = {2024},
  url = {https://openreview.net/forum?id=EOU20mruMG},
}
Figure