Skip to main content
QUICK REVIEW

[Paper Review] Enhance Image-to-Image Generation with LLaVA-generated Prompts

Zhicheng Ding, Panfeng Li|arXiv (Cornell University)|Jun 4, 2024
Image Processing Techniques and ApplicationsEngineering13 citations
TL;DR

The paper uses LLaVA to generate positive and negative prompts from an input image and feeds these prompts along with the image into Stable Diffusion to improve image-to-image fidelity and similarity.

ABSTRACT

This paper presents a novel approach to enhance image-to-image generation by leveraging the multimodal capabilities of the Large Language and Vision Assistant (LLaVA). We propose a framework where LLaVA analyzes input images and generates textual descriptions, hereinafter LLaVA-generated prompts. These prompts, along with the original image, are fed into the image-to-image generation pipeline. This enriched representation guides the generation process towards outputs that exhibit a stronger resemblance to the input image. Extensive experiments demonstrate the effectiveness of LLaVA-generated prompts in promoting image similarity. We observe a significant improvement in the visual coherence between the generated and input images compared to traditional methods. Future work will explore fine-tuning LLaVA prompts for increased control over the creative process. By providing more specific details within the prompts, we aim to achieve a delicate balance between faithfulness to the original image and artistic expression in the generated outputs.

Motivation & Objective

  • Leverage LLaVA's image understanding to produce refined prompts that guide image-to-image generation.
  • Investigate whether LLaVA-generated prompts improve fidelity and visual similarity versus prompt-less generation.
  • Evaluate the impact of prompts on multiple image similarity metrics across several example images.

Proposed method

  • Feed input image to LLaVA to generate a positive prompt and a negative prompt.
  • Use Stable Diffusion v2.0 Img2Img with the input image and the LLaVA-generated prompts (and negative prompts) as inputs.
  • Compare image-to-image outputs with and without LLaVA prompts using standard similarity metrics (RMSE, PSNR, FSIM, SSIM, UIQ, SRE).
  • Optionally explore integration with SVM to boost performance.
  • Provide qualitative and quantitative comparisons across multiple example images.
Figure 1 : Framework of LLaVA-prompts-based image-to-image generation
Figure 1 : Framework of LLaVA-prompts-based image-to-image generation

Experimental results

Research questions

  • RQ1Does incorporating LLaVA-generated prompts improve fidelity and similarity of the generated image to the input image compared to prompt-less generation?
  • RQ2How do the LLaVA-generated prompts affect quantitative image similarity metrics across different target images?
  • RQ3What limitations exist in LLaVA-generated prompts and how might task instructions refine them?
  • RQ4Can additional classifiers (e.g., SVM) further boost performance when used with LLaVA prompts?

Key findings

  • LLaVA-generated prompts substantially improve image similarity metrics across tested images.
  • For dog: RMSE decreased from 0.01931 to 0.01008; PSNR increased from 34.2736 to 39.8750; SSIM increased from 0.78507 to 0.92199; UIQ increased from 0.03133 to 0.07616; SRE increased from 48.7848 to 51.6555.
  • For astronaut: RMSE decreased from 0.01798 to 0.01262; PSNR increased from 34.9009 to 37.9785; SSIM increased from 0.79330 to 0.88230; UIQ increased from 0.00104 to 0.02420; SRE increased from 51.0724 to 52.6086.
  • For plane: RMSE decreased from 0.01275 to 0.00767; PSNR increased from 37.7418 to 42.2708; FSIM increased from 0.31769 to 0.40353; SSIM increased from 0.92368 to 0.96597; UIQ increased from 0.00861 to 0.10995; SRE increased from 53.8197 to 55.7809.
  • For skyscraper: RMSE decreased from 0.02603 to 0.01839; PSNR increased from 31.6809 to 34.6985; FSIM increased from 0.27245 to 0.31015; SSIM increased from 0.58362 to 0.74276; UIQ increased from -0.00236 to 0.03159; SRE increased from 43.1745 to 44.6849.
Figure 2 : Comparison between image-to-image generation with and without LLaVA generated prompts
Figure 2 : Comparison between image-to-image generation with and without LLaVA generated prompts

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.