Generate a simple image to provide context (this is just for visualization)
Tips for using this demo
The layout planner works best with descriptive prompts
You can specify keywords to ensure they appear in the layout
Increase temperature for more diverse layouts
The context image is optional and just for visualization
Examples
Prompt
Optional Keywords (separated by /)
Width
Height
Temperature
Generate Context Image
About TextDiffuser-2
TextDiffuser-2 is a system that uses language models for text rendering in images. The layout planner component is responsible for determining where text should be positioned in the generated image.
This demo focuses only on the layout planning aspect, allowing you to generate and export layout information that can be used in your own HTML5 Canvas UI editor.
For the full TextDiffuser-2 implementation, please visit the official repository.