Abstract
We introduce SemanticDraw, a new paradigm of interactive content creation where high-quality images are generated in near real-time from given multiple hand-drawn regions, each encoding prescribed semantic meaning. In order to maximize the productivity of content creators and to fully realize their artistic imagination, it requires both quick interactive interfaces and fine-grained regional controls in their tools. Despite astonishing generation quality from recent diffusion models, we find that existing approaches for regional controllability are very slow (52 seconds for 512 x 512 image) while not compatible with acceleration methods such as LCM, blocking their huge potential in interactive content creation. From this observation, we build our solution for interactive content creation in two steps: (1) we establish compatibility between region-based controls and acceleration techniques for diffusion models, maintaining high fidelity of multi-prompt image generation with x 10 reduced number of inference steps, (2) we increase the generation throughput with our new multi-prompt stream batch pipeline, enabling low-latency generation from multiple, region-based text prompts on a single RTX 2080 Ti GPU. Our proposed framework is generalizable to any existing diffusion models and acceleration schedulers, allowing sub-second (0.64 seconds) image content creation application upon well-established image diffusion models.
Introduction
While Diffusion Models have revolutionized content creation, they face a significant usability gap for artists. High-quality generation typically requires numerous denoising steps, and controlling the spatial placement of specific objects often necessitates "region-based" techniques like MultiDiffusion. These techniques are computationally expensive, often taking nearly a minute for a single 512x512 image. Furthermore, existing acceleration methods like Latent Consistency Models (LCMs) are incompatible with regional controls, producing blurry or noisy results due to mathematical conflicts in noise aggregation.
SemanticDraw addresses these challenges by establishing compatibility between region-based controls and acceleration techniques, enabling a fluid, interactive "semantic palette" that generates images in sub-second timeframes.
Methods
The framework introduces two primary innovations to bridge the gap between speed and control.
Stabilization Strategies
To resolve the incompatibility between fast schedulers and regional masks, SemanticDraw employs three key techniques:
- Latent Pre-Averaging: By splitting the denoising step and averaging the deterministic component before adding random noise, the model prevents the "noise cancellation" that typically occurs during regional aggregation.
- Mask-Centering Bootstrapping: Leveraging the inherent "center bias" of diffusion models, the system generates objects in the center during initial steps before shifting them to the user-defined mask location.
- Quantized Masks: The use of blurred, quantized masks ensures seamless transitions between regions, allowing boundaries to harmonize naturally as the image evolves.
Multi-Prompt Stream Batch Architecture
SemanticDraw utilizes a pipelined batch approach inspired by StreamDiffusion. Instead of sequential processing, the GPU handles a batch where each element is at a different denoising stage. This maximizes hardware utilization and provides a continuous stream of updated images as the user interacts with the canvas.
Evaluation and Results
The system was evaluated using the COCO validation dataset, using image captions as background prompts and object masks as foreground instructions.
Performance Metrics
- Speed: SemanticDraw achieves 1.57 FPS (0.64 seconds per image) on a single NVIDIA RTX 2080 Ti, representing a massive improvement over the 52-second baseline of MultiDiffusion.
- Efficiency: When integrated with a Tiny AutoEncoder (TAESD), the framework provides up to an 83.1x relative speedup.
- User Preference: In qualitative studies, 90.9% of participants preferred SemanticDraw over other accelerated regional control methods, citing superior prompt adherence and clarity.
Conclusion
SemanticDraw represents a significant step toward intuitive, real-time AI tools for artists. By re-engineering the interaction between noise schedulers and regional masks, it transforms text-to-image generation into a responsive drawing experience. Future work will explore extending this architecture to video generation and incorporating more nuanced brush controls like pressure and texture mapping.
Summary updated