Skip to main content
QUICK REVIEW

[Paper Review] TextIR: A Simple Framework for Text-based Editable Image Restoration

Yunpeng Bai, Cairong Wang|arXiv (Cornell University)|Feb 28, 2023
Advanced Image Processing TechniquesComputer Science7 citations
TL;DR

TextIR proposes a simple, text-guided image restoration framework that leverages CLIP's cross-modal feature compatibility to fuse text descriptions with degraded image features for controllable restoration. It achieves state-of-the-art results in image inpainting, super-resolution, and colorization without requiring fine-tuned text-image pairs, enabling flexible, user-directed editing across multiple restoration tasks.

ABSTRACT

Most existing image restoration methods use neural networks to learn strong image-level priors from huge data to estimate the lost information. However, these works still struggle in cases when images have severe information deficits. Introducing external priors or using reference images to provide information also have limitations in the application domain. In contrast, text input is more readily available and provides information with higher flexibility. In this work, we design an effective framework that allows the user to control the restoration process of degraded images with text descriptions. We use the text-image feature compatibility of the CLIP to alleviate the difficulty of fusing text and image features. Our framework can be used for various image restoration tasks, including image inpainting, image super-resolution, and image colorization. Extensive experiments demonstrate the effectiveness of our method.

Motivation & Objective

  • To address the limitations of existing image restoration methods in handling severe image degradation, especially when strong image priors fail.
  • To improve controllability and flexibility in image restoration by introducing text descriptions as external guidance, rather than relying on reference images or domain-specific priors.
  • To enable a unified framework applicable to diverse restoration tasks—such as inpainting, super-resolution, and colorization—using a single, text-conditioned architecture.
  • To explore effective fusion of text and image features using CLIP’s pre-trained multi-modal embedding space without requiring additional fine-tuning on paired text-image data.

Proposed method

  • TextIR uses CLIP’s frozen image and text encoders to extract features from the degraded image and user-provided text description, respectively.
  • It leverages CLIP’s shared embedding space to align text and image features, enabling semantic compatibility during feature fusion.
  • The framework fuses degraded image features with text-conditioned features through a learnable adapter module, preserving image identity while guiding restoration.
  • The method is trained end-to-end without additional text-image pair annotations, relying solely on the pre-trained CLIP encoders.
  • A learnable scaling factor 's' controls the influence of the degraded image vs. text prior, adapting to degradation severity.
  • Interpolation between CLIP embeddings of the ground-truth image and target text enables fine-grained, continuous image editing.

Experimental results

Research questions

  • RQ1Can text descriptions effectively guide image restoration in cases of severe degradation where traditional priors fail?
  • RQ2How can text and image features be effectively fused to enable controllable restoration without requiring paired text-image datasets?
  • RQ3Can a single unified framework based on CLIP support multiple image restoration tasks, including inpainting, super-resolution, and colorization?
  • RQ4To what extent does text guidance improve restoration quality and controllability compared to reference-image-based or prior-based methods?

Key findings

  • In image inpainting, TextIR achieves a PSNR of 29.83, significantly outperforming Blended-Diffusion (23.16), with higher SSIM (0.932 vs. 0.901) and lower LPIPS (0.068 vs. 0.226).
  • For image colorization, TextIR surpasses L-CoDe in all metrics: PSNR (26.70 vs. 24.965), SSIM (0.923 vs. 0.916), and LPIPS (0.124 vs. 0.169).
  • In super-resolution, TextIR achieves a PSNR of 27.41 and SSIM of 0.784, outperforming GPEN (26.82 and 0.704) on the Multi-Modal-CelebA-HQ dataset.
  • The ablation study confirms that the scaling factor 's' effectively modulates the influence of the degraded image and text prior, with text playing a stronger role in severe degradation.
  • Interpolation between CLIP embeddings enables smooth, continuous image editing, demonstrating fine-grained control over restoration intensity.
  • TextIR enables effective text-based image editing by degrading and then restoring, preserving identity better than global editing methods like StyleCLIP.

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.