TextDiffuser-2 Layout Planner

This application focuses on the layout planning aspect of TextDiffuser-2. It allows you to:

  1. Generate text layouts for images based on prompts
  2. Visualize the layout with text positions and bounding boxes
  3. Export the layout information for use in your own HTML5 Canvas UI editor

Based on the paper "TextDiffuser-2: Unleashing the Power of Language Models for Text Rendering" by Jingye Chen et al.

0.1 2

Generate a simple image to provide context (this is just for visualization)

Tips for using this demo

  1. The layout planner works best with descriptive prompts
  2. You can specify keywords to ensure they appear in the layout
  3. Increase temperature for more diverse layouts
  4. 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.