HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion

Xie Jinheng ; Li Yuexiang ; Huang Yawen ; Liu Haozhe ; Zhang Wentian ; Zheng Yefeng ; Shou Mike Zheng

BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained
  Diffusion

Abstract

Recent text-to-image diffusion models have demonstrated an astonishingcapacity to generate high-quality images. However, researchers mainly studiedthe way of synthesizing images with only text prompts. While some works haveexplored using other modalities as conditions, considerable paired data, e.g.,box/mask-image pairs, and fine-tuning time are required for nurturing models.As such paired data is time-consuming and labor-intensive to acquire andrestricted to a closed set, this potentially becomes the bottleneck forapplications in an open world. This paper focuses on the simplest form ofuser-provided conditions, e.g., box or scribble. To mitigate the aforementionedproblem, we propose a training-free method to control objects and contexts inthe synthesized images adhering to the given spatial conditions. Specifically,three spatial constraints, i.e., Inner-Box, Outer-Box, and Corner Constraints,are designed and seamlessly integrated into the denoising step of diffusionmodels, requiring no additional training and massive annotated layout data.Extensive experimental results demonstrate that the proposed constraints cancontrol what and where to present in the images while retaining the ability ofDiffusion models to synthesize with high fidelity and diverse concept coverage.The code is publicly available at https://github.com/showlab/BoxDiff.

Code Repositories

sierkinhane/boxdiff
Official
pytorch
Mentioned in GitHub
showlab/boxdiff
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
conditional-text-to-image-synthesis-on-coco-1Box-Diffusion (zero-shot)
instance success rate: 0.16
mIoU: 0.26

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp