AB
AiBoss
project

EasyControl - An open-source image generation and control framework developed by Tiamat AI in collaboration with ShanghaiTech University and other institutions.

EasyControl is an open-source, high-efficiency, and flexible control framework based on the Diffusion Transformer (DiT) architecture from Tiamat AI. It independently processes conditional signals through a lightweight conditional injection LoRA module...

What is EasyControl?

EasyControl is an open-source, high-efficiency, and flexible control framework based on the Diffusion Transformer (DiT) architecture from Tiamat AI. Through a lightweight conditional injection LoRA module, it independently processes conditional signals, achieving plug-and-play functionality, compatibility with existing models, and support for zero-shot conditional multimodal pre-training, enhancing model flexibility and versatility. Its position-aware training paradigm standardizes input conditions to a fixed resolution, supporting generated images with arbitrary aspect ratios, optimizing computational efficiency, and improving the quality and flexibility of generated images. The combination of causal attention mechanisms and key-value caching significantly reduces image synthesis latency, improves inference efficiency, and enables the model to maintain high-quality output under both single-conditional and multi-conditional control, achieving text consistency and controllability.

EasyControl's main functions

  • Multi-condition control capabilityIt supports multiple control models, including Canny edge detection, depth information, HED edge sketching, image inpainting, human pose estimation, and semantic segmentation. Users can input different control signals to precisely guide the model to generate images that conform to specific structures, shapes, and layouts.
  • High-efficiency image generationIt supports image generation with various resolutions and aspect ratios, and is suitable for a variety of generation tasks, such as image generation, style transfer, and Ghibli animation lighting and color expression, generating high-quality images.

EasyControl's technical principles

  • Lightweight conditional injection LoRA moduleEasyControl introduces a lightweight conditional injection LoRA (Low-Rank Adaptation) module, which independently processes conditional signals and injects them into the pre-trained DiT model. This avoids modifying the weights of the base model, achieving plug-and-play functionality and supporting flexible conditional injection and efficient fusion of multiple conditions. Even when training on only single-conditional data, it supports zero-shot multi-conditional generalization.
  • Position Awareness Training ParadigmThe input conditions are standardized to a fixed resolution, allowing the model to generate images with arbitrary aspect ratios and flexible resolutions. Computational efficiency is optimized, enabling the model to adapt to diverse application scenarios.
  • Causal attention mechanism and key-value caching technologyEasyControl replaces the traditional full attention mechanism with a causal attention mechanism, combined with KV caching technology. In the initial diffusion time step, it pre-computes and caches key-value pairs of all conditional features. Subsequent time steps directly reuse these cached key-value pairs, significantly reducing computational load and inference latency.

EasyControl's project address

EasyControl application scenarios

  • Image generationIt provides high-quality image generation capabilities, supporting generation requirements for various resolutions and aspect ratios.
  • Style conversionIt supports converting ordinary images into specific styles, such as the Ghibli style, while maintaining content consistency and artistry.
  • Animation generationCapture complex spatiotemporal relationships to generate smooth and expressive animations.
  • Virtual try-onIt combines clothing images and human posture diagrams to generate realistic try-on effects, providing clothing designers with intuitive design references.
  • Image editingIt helps users precisely adjust image details, such as performing background replacement and object extraction by combining edge detection and depth maps.