Year: 2023
Type: dissertation
Abstract: Recent text-to-image models can generate high-quality, diverse result images only based on text prompts.However, it is difficult to correctly interpret instructions specifying the layout of compositional scene images using only text.When describing individual objects, text often requires lengthy sentences to convey constraints effectively.However, even lengthy text descriptions for complex scene images still fail to enable the diffusion models to comprehend the intricate spatial relationships and relative scales among objects.In addition, there is the issue of object loss in the conventional text-to-image diffusion models.In this thesis, we propose a sketch-based method to control the position of corresponding objects in image generation and solve the issue of object disappearance in state-of-the-art diffusion models.The pre-trained text-toimage latent diffusion model was utilized by the proposed method as the image generator without additional fine-tuning or training.We manipulate the cross-attention layers used by the model to connect textual and visual information via the input sketch and guide the image reconstruction with the given desired layout.Specifically, we partition the model into two stages.In the feature extraction stage, the sketches are segmented into individual objects using the image segmentation approach, and the obtained bounding boxes and labels are then used as position-guided inputs to the attention layers of the diffusion models.In the image generation stage, the proposed model utilizes Latent Diffusion Model (LDM) as the generator to generate corresponding images.In the early stages of the diffusion process, the object's position is influenced by the sketch's object position guidance in generating the attention maps.We conduct experiments quantitatively and qualitatively to evaluate the proposed model's effectiveness.In qualitative experiments, we show the position control of the proposed method.Compared with LDM, the proposed model can control the precise positions of objects in the generated image and effectively solve the issue of object loss.We also explore that the positions of objects in the generated image are determined early in the diffusion process.In addition, We further demonstrate its versatility by changing the position relationships and relative scales in sketches.We demonstrated that after altering the spatial relationships and relative scales among sketch objects, the generated objects in the image could change accordingly, even if it contradicts the content of the text.In quantitative experiments, we compared the proposed model with LDM and Generative Adversarial Networks (GANs).We show excellent image quality (21.04 FID value) than GANs (143.1 for pix2pix, 141.5 for SketchyGAN, 87.6 for SketchyCOCO).List of Tables 1.1 The FID values of well-known text-to-image generative models evaluated on the MS-COCO dataset.[9]. . . . . . . . . . . . . 3 5.1 The hyperparameters used in the proposed model.z-shape is the dimension of latent space, diffusion steps T and factor f are introduced in Section 3.2, α and β are introduced in Section 4.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 5.2 Comparison between the pre-trained LDM[1] and our model. .38 5.3 We compare the proposed method with image generation methods (pix2pix[8], SketchyGAN[6], and SketchyCOCO[7]) in image quality. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Author: 張, 天宇
Language: English
Subfield: Computer Vision and Pattern Recognition
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7061816974
