Skip to main content
QUICK REVIEW

[Paper Review] ColorizeDiffusion: Adjustable Sketch Colorization with Reference Image and Text

Dingkun Yan, Liang Yuan|arXiv (Cornell University)|Jan 2, 2024
Generative Adversarial Networks and Image SynthesisComputer Science3 citations
TL;DR

ColorizeDiffusion proposes a reference-based sketch colorization method using image and text conditions in a latent diffusion framework, leveraging CLIP-encoded image tokens to enable progressive, zero-shot text-based manipulation. It achieves superior colorization quality and controllability compared to text-only baselines by addressing distribution shifts and enabling sequential attribute editing through weighted text prompts.

ABSTRACT

Diffusion models have recently demonstrated their effectiveness in generating extremely high-quality images and are now utilized in a wide range of applications, including automatic sketch colorization. Although many methods have been developed for guided sketch colorization, there has been limited exploration of the potential conflicts between image prompts and sketch inputs, which can lead to severe deterioration in the results. Therefore, this paper exhaustively investigates reference-based sketch colorization models that aim to colorize sketch images using reference color images. We specifically investigate two critical aspects of reference-based diffusion models: the "distribution problem", which is a major shortcoming compared to text-based counterparts, and the capability in zero-shot sequential text-based manipulation. We introduce two variations of an image-guided latent diffusion model utilizing different image tokens from the pre-trained CLIP image encoder and propose corresponding manipulation methods to adjust their results sequentially using weighted text inputs. We conduct comprehensive evaluations of our models through qualitative and quantitative experiments as well as a user study.

Motivation & Objective

  • To address the limitations of text-only conditional diffusion models in sketch colorization, particularly their inability to transfer fine-grained visual features from reference images.
  • To investigate the challenges of multi-conditioned generation in reference-based colorization, especially conflicting identity information between sketch and reference images.
  • To design effective training strategies for image-guided latent diffusion models that maintain fidelity to the sketch while adapting to reference color distributions.
  • To develop zero-shot, sequential text-based manipulation methods that enable progressive, controllable editing of visual attributes like hair color or background.
  • To evaluate the method through quantitative metrics, qualitative analysis, and a user study to validate usability, controllability, and perceptual quality.

Proposed method

  • The method employs a latent diffusion model conditioned on both a sketch image and a reference color image, using CLIP-encodings of the reference as image tokens for cross-attention.
  • Two variants are proposed: one using CLIP’s image patch tokens (CLS) and another using CLIP’s class token (CLS), both integrated into the denoising U-Net architecture.
  • For zero-shot manipulation, the model uses weighted text prompts to interpolate between anchor and target text embeddings, enabling progressive changes in attributes such as 'blue hair: 0.5' to 'blue hair: 1.5'.
  • A pixel-wise mask (PWM) is used to localize text-based edits, enabling local manipulation by focusing attention on specific image regions via projection of text embeddings.
  • The training strategy incorporates a loss function that balances reconstruction fidelity, CLIP-based image-text alignment, and attention consistency to mitigate distribution shifts.
  • The method supports both global and local manipulation: global for broad attribute changes, and local for region-specific edits using adaptive attention modulation.

Experimental results

Research questions

  • RQ1How do image-guided diffusion models compare to text-guided models in reference-based sketch colorization, particularly in terms of feature transfer and distribution shift?
  • RQ2What training strategies are most effective for stabilizing reference-based latent diffusion models and minimizing mode collapse or distribution shift?
  • RQ3Can zero-shot, sequential text-based manipulation be effectively achieved using CLIP-encoded image tokens and weighted text prompts?
  • RQ4How well can the model perform local manipulation with precise attribute control, and what are the limitations in segmentation and attention alignment?
  • RQ5To what extent does the proposed method outperform text-only baselines in image quality, similarity to reference, and user controllability?

Key findings

  • The proposed reference-based model outperforms text-only baselines in image quality and similarity to the reference image, with a user study showing high average ratings for quality, similarity, and controllability.
  • The model successfully enables progressive, sequential text-based manipulation, with qualitative results showing smooth transitions from 'blue hair: 0.5' to 'blue hair: 1.5'.
  • Local manipulation using PWM achieves region-specific edits, such as changing hair color or background, though heatmaps reveal segmentation errors that hinder precision.
  • The user study revealed strong satisfaction in image quality and controllability, but a relatively low usability score, indicating the need for simplified interaction design.
  • Ablation studies confirm that image-guided models with CLIP image tokens significantly reduce distribution shift issues compared to text-only counterparts.
  • The method struggles with semantically unrelated attribute changes (e.g., suitcase color shifting due to reference influence), indicating a limitation in attention localization.

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.