SketchingReality: From Freehand Scene Sketches To Photorealistic Images
Organizations: University of Surrey, UK · Universit´e de Montréal, Canada · Adobe Research, UK
Abstract
Recent years have witnessed remarkable progress in generative AI, with natural language emerging as the most common conditioning input. As underlying models grow more powerful, researchers are exploring increasingly diverse conditioning signals, such as depth maps, edge maps, camera parameters, and reference images, to give users finer control over generation. Among different modalities, sketches are a natural and long-standing form of human communication, enabling rapid expression of visual concepts. Previous literature has largely focused on edge maps, often misnamed 'sketches', yet algorithms that effectively handle true freehand sketches, with their inherent abstraction and distortions, remain underexplored. We pursue the challenging goal of balancing photorealism with sketch adherence when generating images from freehand input. A key obstacle is the absence of ground-truth, pixel-aligned images: by their nature, freehand sketches do not have a single correct alignment. To address this, we propose a modulation-based approach that prioritizes semantic interpretation of the sketch over strict adherence to individual edge positions. We further introduce a novel loss that enables training on freehand sketches without requiring ground-truth pixel-aligned images. We show that our method outperforms existing approaches in both semantic alignment with freehand sketch inputs and in the realism and overall quality of the generated images.
Figures & tables
| Method | Setup | FID | CLIP | LPIPS |
|---|---|---|---|---|
| Zero-shot | 135.595 | 1.136 | 0.773 | |
| only (syn) | 136.821 | 1.141 | 0.771 | |
| only (free) | 139.872 | 1.042 | 0.789 | |
| CntrlNet SD2.1 ( Zhang et al., 2023 ) | + | 135.891 | 1.196 | 0.768 |
| Zero-shot | 144.329 | -0.203 | 0.813 | |
| only | 138.479 | 0.318 | 0.779 |
Appendix figures & tables22 assets
Supplementary material from the paper’s appendix.
Appendix
| Baseline | Photorealism (%) | Sketch similarity (%) | Best trade-off (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Ours | Base | Und. | Ours | Base | Und. | Ours | Base | Und. | |
| SDXL T2I s=0.8 =0.2 | 47.2 | 34.9 | 17.9 | 46.4 | 37.1 | 16.5 | 66.0 | 20.6 | 13.4 |
| SDXL T2I s=0.8 =0.4 | 47.4 | 39.2 | 13.4 | 55.0 | 35.8 | 9.2 | 71.0 | 22.0 | 7.0 |
| ControlNet SDXL | 40.4 | 45.2 | 14.4 | 54.0 | 37.0 | 9.0 | 54.4 | 32.2 | 13.3 |
| ControlNet SD2 | 70.0 | 21.2 | 8.8 | 64.8 | 30.8 | 4.4 | 88.8 | 10.0 | 1.2 |
| Method | Setup | FID | CLIP | LPIPS | |
|---|---|---|---|---|---|
| #1 | CntrlNet SDXL ( Zhang et al., 2023 ) | Zero-shot | 174.462 | 0.027 | 0.825 |
| #2 | ControlNet branch LoRA | 177.243 | 0.046 | 0.813 | |
| #3 | ControlNet branch LoRA + main branch LoRA | 189.566 | 0.043 | 0.779 | |
| #4 | Ours SD2.1 | Modulation network training | 121.973 | 1.291 | 0.739 |
| #5 | Ours SDXL | Modulation network training | 117.025 | 1.331 | 0.708 |
| #6 | Ours SDXL | Modulation network training + backbone LoRA fine-tuning | 138.213 | 1.162 | 0.759 |
| Path/Block | Layer/Operation | Input Ch. | Output Ch. | Spatial Change |
| Sketch Path | DoubleConv | 512 | 256 | - |
| DoubleConv | 256 | 128 | - | |
| Interpolate (bilinear) | 128 | 128 | Match latent/noise size | |
| Noise Path | DoubleConv | 4 | 16 | - |
| MaxPool2d (2) | 16 | 16 | /2 | |
| DoubleConv | 16 | 32 | - |
| Baseline | Param | FID | LPIPS | |
|---|---|---|---|---|
| w0.2 | 141.46 | 0.911 | 0.780 | |
| w0.4 | 138.62 | 0.927 | 0.774 | |
| s0.6 | 135.60 | 1.136 | 0.773 | |
| w0.8 | 137.35 | 0.765 | 0.773 | |
| w1.0 | 143.42 | 0.668 | 0.786 | |
| ControlNet SD2 | w1.2 | 147.53 | 0.468 | 0.791 |
| Method | FID | CLIP | LPIPS |
|---|---|---|---|
| Freehand only | 142.27 | 0.955 | 0.750 |
| Ours (full) | 121.973 | 1.291 | 0.739 |
| Method | FID | CLIP | LPIPS |
|---|---|---|---|
| ControlNet SD2.1 | 124.57 | 1.247 | 0.458 |
| ControlNet SDXL | 112.69 | 1.286 | 0.432 |
| T2I-Adapter SDXL | 102.43 | 1.383 | 0.379 |
| Ours (synthetic) | 106.74 | 1.280 | 0.423 |
| Ours (full) | 109.08 | 1.193 | 0.484 |
| Method | FID | CLIP | LPIPS |
|---|---|---|---|
| ControlNet SD2.1 | 135.59 | 1.136 | 0.773 |
| ControlNet SDXL | 174.46 | 0.027 | 0.825 |
| T2I-Adapter SDXL | 159.82 | 0.213 | 0.819 |
| Ours (synthetic) | 132.17 | 0.817 | 0.793 |
| Ours (full) | 121.97 | 1.291 | 0.739 |
| Method | Setup | FID | CLIP | LPIPS |
|---|---|---|---|---|
| Zero-shot | 135.595 | 1.136 | 0.773 | |
| only (syn) | 136.821 | 1.141 | 0.771 | |
| only (free) | 139.872 | 1.042 | 0.789 | |
| + | 135.891 | 1.196 | 0.768 | |
| CntrlNet SD2.1 ( Zhang et al., 2023 ) | + + Mod. | 134.771 | 1.192 | 0.767 |
| Ours | Full | 121.973 | 1.291 | 0.739 |
Conditional Image Generation
Conditional image generation creates images guided by inputs such as text, sketches, layouts, masks, reference images, or physical measurements.
See all 160 papers