In this paper, we study an object synthesis task that combines an object text with an object image to create a new object image. However, most diffusion models struggle with this task,i.e., often generating an object that predominantly reflects either the text or the image due to an imbalance between their inputs. To address this issue, we propose a simple yet effective method called Adaptive Text-Image Harmony (ATIH) to generate novel and surprising objects. First, we introduce a scale factor and an injection step to balance text and image features in cross-attention and to preserve image information in self-attention during the text-image inversion diffusion process, respectively. Second, to better integrate object text and image, we design a balanced loss function with a noise parameter, ensuring both optimal editability and fidelity of the object image. Third, to adaptively adjust these parameters, we present a novel similarity score function that not only maximizes the similarities between the generated object image and the input text/image but also balances these similarities to harmonize text and image integration.
Video character creation to stimulate imagination.
Created with luma Dream Machine based on the images generated by our method.
With adjust injection step i to balance fidelity and editability.(Demonstrate the fusion process)
airship
airship
cock
cock
badger
badger
bald eagle
bald eagle
Adaptively adjust the scale factor α for harmonizing text and image in 10 seconds.