Skip to main content
QUICK REVIEW

[Paper Review] DeSRA: Detect and Delete the Artifacts of GAN-based Real-World Super-Resolution Models

Liangbin Xie, Xintao Wang|arXiv (Cornell University)|Jul 5, 2023
Advanced Image Processing TechniquesComputer Science11 citations
TL;DR

DeSRA detects GAN-inference artifacts in real-world GAN-SR outputs using a relative local-variance distance between MSE-SR and GAN-SR results, then fine-tunes the model with pseudo-ground-truth to delete artifacts with minimal data.

ABSTRACT

Image super-resolution (SR) with generative adversarial networks (GAN) has achieved great success in restoring realistic details. However, it is notorious that GAN-based SR models will inevitably produce unpleasant and undesirable artifacts, especially in practical scenarios. Previous works typically suppress artifacts with an extra loss penalty in the training phase. They only work for in-distribution artifact types generated during training. When applied in real-world scenarios, we observe that those improved methods still generate obviously annoying artifacts during inference. In this paper, we analyze the cause and characteristics of the GAN artifacts produced in unseen test data without ground-truths. We then develop a novel method, namely, DeSRA, to Detect and then Delete those SR Artifacts in practice. Specifically, we propose to measure a relative local variance distance from MSE-SR results and GAN-SR results, and locate the problematic areas based on the above distance and semantic-aware thresholds. After detecting the artifact regions, we develop a finetune procedure to improve GAN-based SR models with a few samples, so that they can deal with similar types of artifacts in more unseen real data. Equipped with our DeSRA, we can successfully eliminate artifacts from inference and improve the ability of SR models to be applied in real-world scenarios. The code will be available at https://github.com/TencentARC/DeSRA.

Motivation & Objective

  • Motivate and address GAN-inference artifacts that appear in unseen real-world data during inference rather than training.
  • Propose a quantitative, semantic-aware artifact detection mechanism that operates without ground-truth for real test data.
  • Provide a lightweight finetuning strategy to reduce artifacts using pseudo ground-truth derived from MSE-SR results.
  • Demonstrate effectiveness on Real-ESRGAN and LDL models with limited additional data.
  • Show improved perceptual quality and artifact suppression in real-world scenarios.

Proposed method

  • Compute local texture variance in MSE-SR and GAN-SR patches and derive a relative artifact distance D that is normalized and semantically adjusted.
  • Use SegFormer-based semantic regions to adapt artifact detection weights per class via 85th percentile statistics.
  • Generate a final artifact mask with morphological operations to delineate artifact regions.
  • Create pseudo ground-truth by merging MSE-SR results into GAN-SR outputs using the artifact mask, and finetune the GAN-SR model for a short run (~1k iterations).
  • Evaluate detection with IoU, Precision, and Recall against manually labeled artifact maps, and assess artifact removal with qualitative and user-study evidence.

Experimental results

Research questions

  • RQ1What kinds of GAN-inference artifacts appear in unseen real-world data during GAN-SR inference?
  • RQ2How can we automatically detect artifact regions without ground-truth on real data?
  • RQ3Can a lightweight fine-tuning strategy using pseudo ground-truth reduce GAN-inference artifacts on unseen data without degrading non-artifact regions?
  • RQ4How does DeSRA perform across state-of-the-art GAN-SR models (Real-ESRGAN and LDL) in real-world scenarios?

Key findings

  • DeSRA achieves higher artifact-detection IoU and precision than NIQE, PAL4Inpainting, and modified LDL baselines on Real-ESRGAN and LDL. IoU reaches 51.1 for DeSRA-det vs. 2.9–36.2 for baselines, with precision up to 0.7055.
  • Fine-tuning with DeSRA reduces artifact regions by 75.4% (IoU drop from 51.1 to 12.9 for Real-ESRGAN) and 74.97% (IoU drop from 44.5 to 13.9 for LDL), with no added artifacts.
  • User studies show 82.23% of participants judge fine-tuned results to have fewer artifacts than original GAN-SR outputs, and 93% find them more detailed than MSE-SR outputs.
  • The approach uses only a small dataset (50 training pairs) and about 1000 fine-tuning iterations to effectively suppress GAN-inference artifacts on unseen real data.

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.