[Paper Review] DiffColor: Toward High Fidelity Text-Guided Image Colorization with Diffusion Models
DiffColor proposes a two-stage diffusion model framework for high-fidelity, text-guided image colorization that leverages pre-trained text-to-image models and CLIP-based contrastive loss to generate vivid, diverse, and semantically aligned colors without additional inputs. It enables in-context colorization and object-level control through optimized text embeddings and spatial alignment, outperforming prior methods in visual quality, color fidelity, and diversity.
Recent data-driven image colorization methods have enabled automatic or reference-based colorization, while still suffering from unsatisfactory and inaccurate object-level color control. To address these issues, we propose a new method called DiffColor that leverages the power of pre-trained diffusion models to recover vivid colors conditioned on a prompt text, without any additional inputs. DiffColor mainly contains two stages: colorization with generative color prior and in-context controllable colorization. Specifically, we first fine-tune a pre-trained text-to-image model to generate colorized images using a CLIP-based contrastive loss. Then we try to obtain an optimized text embedding aligning the colorized image and the text prompt, and a fine-tuned diffusion model enabling high-quality image reconstruction. Our method can produce vivid and diverse colors with a few iterations, and keep the structure and background intact while having colors well-aligned with the target language guidance. Moreover, our method allows for in-context colorization, i.e., producing different colorization results by modifying prompt texts without any fine-tuning, and can achieve object-level controllable colorization results. Extensive experiments and user studies demonstrate that DiffColor outperforms previous works in terms of visual quality, color fidelity, and diversity of colorization options.
Motivation & Objective
- To address the limitations of traditional and reference-based image colorization, which often produce dull, inconsistent, or ambiguous colors.
- To enable precise, diverse, and vivid colorization guided solely by natural language prompts, without requiring user-provided scribbles or reference images.
- To achieve in-context colorization—generating different color results by modifying only the text prompt—without retraining or fine-tuning.
- To support object-level controllable colorization by optimizing text embeddings to align with specific image regions.
- To preserve structural and background integrity while accurately transferring color semantics from text to image.
Proposed method
- Fine-tune a pre-trained text-to-image diffusion model using a CLIP-based contrastive loss that treats colorized images and their corresponding text prompts as positive pairs, and unrelated anti-color texts as negative pairs.
- Optimize the text embedding during inference to align the generated colorized image with the target text prompt, enabling in-context colorization without retraining.
- Apply a spatial alignment module using CoCosNet to transfer structural details from the input grayscale image to the diffusion-generated output, preserving image layout and fine details.
- Use a two-stage pipeline: first, generate initial colorization with generative color prior via contrastive fine-tuning; second, refine the result with optimized text embeddings and high-quality reconstruction.
- Leverage DDIM-based sampling for efficient and high-fidelity image generation, enabling almost perfect inversion and fast inference.
- Introduce an interpolation parameter η to balance content and color guidance, allowing flexible control under ambiguous or imprecise prompts.
Experimental results
Research questions
- RQ1Can a pre-trained diffusion model generate high-fidelity, diverse, and semantically accurate colorizations when conditioned only on a text prompt, without additional inputs?
- RQ2Can the method achieve in-context colorization—producing different color results by modifying only the prompt—without retraining or fine-tuning?
- RQ3Can the method enable object-level controllable colorization by aligning text embeddings with specific image regions?
- RQ4How effective is the spatial alignment module in preserving structural details while transferring colors from the diffusion model?
- RQ5To what extent does the contrastive loss improve color fidelity and diversity compared to baseline colorization methods?
Key findings
- DiffColor achieves the highest user study scores in both image quality and semantic consistency, outperforming previous state-of-the-art methods.
- The ablation study shows that spatial alignment improves PSNR from 21.13 to 29.83 and SSIM from 0.7643 to 0.9063 in the first stage, significantly enhancing structural preservation.
- The contrastive loss with CLIP-based positive/negative pairs effectively confines color outputs within a realistic color space and improves color fidelity.
- The second stage, when applied to real color images, demonstrates versatility as a semantic color editing tool, independent of the two-stage pipeline.
- The interpolation parameter η enables flexible control: increasing η allows users to explore color variations under ambiguous or imprecise prompts.
- User studies confirm that DiffColor produces more vivid, colorful, and semantically consistent results than baselines, especially in complex scenes with ambiguous object colors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.