Learning Continuous 3D Words for Text-to-Image Generation

CVPR 2024


1 University of Oxford
2 Adobe Research

*Work done during internship at Adobe Research
Continuous 3D Words Overview

TL;DR: We encode fine-grained attributes like illumination, non-rigid shape changes, and camera parameters as special tokens termed Continuous 3D words for text-to-image generation.

Abstract

Current controls over diffusion models (e.g., through text or ControlNet) for image generation fall short in recognizing abstract, continuous attributes like illumination direction or non-rigid shape change. In this paper, we present an approach for allowing users of text-to-image models to have fine-grained control of several attributes in an image. We do this by engineering special sets of input tokens that can be transformed in a continuous manner -- we call them Continuous 3D Words. These attributes can, for example, be represented as sliders and applied jointly with text prompts for fine-grained control over image generation. Given only a single mesh and a rendering engine, we show that our approach can be adopted to provide continuous user control over several 3D-aware attributes, including time-of-day illumination, bird wing orientation, dollyzoom effect, and object poses. Our method is capable of conditioning image creation with multiple Continuous 3D Words and text descriptions simultaneously while adding no overhead to the generative process.

Method Overview

Method Overview

Finetuning: Our finetuning is divided into two stages. In the first stage, we render a series of images using different attribute values (e.g., illumination and pose). We feed them into the text-to-image diffusion model to learn token embedding [obj] representing the single mesh used for training. In the second stage, we add the tokens representing individual attributes into the prompt embedding. The two stage training allows us to better disentangle the individual attributes against [obj]. Inference: Attributes can be applied to different objects for text-to-image generation.

Results

Illumination

Illumination 1
Illumination Icon

A [Illumination Icon] red car on the beach by the blue ocean.

Illumination 2
Illumination Icon

A [Illumination Icon] toy hippo with tropical forest in the back.

Illumination 3
Illumination Icon

A [Illumination Icon] toaster resting on a rustic wooden floor.



Non-Rigid Transformations

Running 1
Running Icon

A [Running Icon] fox on the highway.

Running 2
Running Icon

A [Running Icon] squirrel in the forest.

Wing 1
Wing Icon

A [wing pose Icon] colorful bird in the wild.

Wing 2
Wing Icon

A [wing pose Icon] owl at night.



Dolly Zoom

Dollyzoom 1
Wing Icon

A [Dollyzoom Icon] chair by the lake.

Dollyzoom 2
Wing Icon

A [Dollyzoom Icon] chair in front of Times Square.



Multi-Concept Control

(We provide only 4-5 orientations to speed up the website loading)


Multi-Concept 2
Orientation Icon
Illumination Icon

A [Orientation Icon] [Wing Icon] polar bear on ice glacier.

Multi-Concept 3
Orientation Icon
Wing Icon

A [Orientation Icon] [Wing Icon] seagull on a sand beach.



More results


Real World Image Editing

Real World Image Editing

Our method can be directly extended to perform image editing. We simply have to encode an image via a rare token with Dreambooth, then use the rare token in conjunction with our Continuous 3D Words. For the specific case of only changing orientation, we compare our results with Zero1-to-3.

BibTeX

@article{cheng2024learning,
  title={Learning Continuous 3D Words for Text-to-Image Generation},
  author={Cheng, Ta-Ying and Gadelha, Matheus and Groueix, Thibault and Fisher, Matthew and Mech, Radomir and Markham, Andrew and Trigoni, Niki},
  journal={arXiv preprint arXiv:2402.08654},
  year={2024}
}