Deep Edge-Aware Interactive Colorization against Color-Bleeding Effects

Eungyeup Kim, Sanghyeon Lee, Jeonghoon Park, Somi Choi, Choonghyun Seo, Jaegul Choo

TL;DR

Color-bleeding—where colors spill across object boundaries—remains a persistent flaw in deep learning-based image colorization. This paper introduces an interactive, edge-aware network that allows users to fix these artifacts with simple scribbles, refining the model's internal feature maps to produce sharp, realistic boundaries.

What Problem Does This Paper Address?

Automatic colorization models often struggle with "color-bleeding," particularly when adjacent objects have similar grayscale intensities or when the objects don't fall into common semantic categories. While automatic post-processing filters exist, they frequently fail to distinguish between true edges and texture.

The authors argue that while deep networks are great at predicting general color schemes, humans are far superior at identifying exactly where a boundary should be. However, most interactive tools require tedious, pixel-perfect masks. This paper seeks a middle ground: a system that achieves high-quality edge refinement with minimal user effort.

Methods

The researchers developed an "add-on" edge-enhancing network ($E$) designed to work with existing backbone colorization models.

  1. Feature-Level Refinement: Instead of just filtering the final image, the network takes intermediate activation maps from the backbone's encoder. It uses a residual connection to add a "correction" term to these maps based on user input.
  2. Interactive Scribbles: Users provide rough scribbles over bleeding edges. To train the network without needing thousands of human-drawn examples, the authors developed a pseudo-scribble generation process. By comparing the edges of a ground-truth image with those of a flawed baseline output, they automatically identify where the model failed and generate synthetic "user" scribbles to train against.
Figure 3: An overview of the pseudo-scribble generation. Two channels of Igt,ab and Iinit,ab represent an a and b chan- nel, respectively.
  1. Objective Functions: The model is trained using three specific losses:
  2. Edge-Enhancing Loss ($L_{edge}$): Uses Sobel filters to ensure the color gradient in the output matches the ground truth near the scribble.
  3. Feature-Regularization Loss ($L_{reg}$): Prevents the enhancement network from making excessive or "explosive" changes to the original feature maps.
  4. Consistency Loss ($L_{con}$): Ensures that colors outside the user-indicated region remain unchanged, preventing unintended distortions.
Figure 4: An overview of our proposed method. First, base colorization model (gray networks) colorize gray-scale image Iinput. After, multiple add-on edge-enhancing network E (yellow boxes) take the user-driven scribble Spseudo and refine the corresponding activation maps from the base model. We apply Ledge between the edges of Iab and Igt,ab.

Datasets

The model was evaluated across several diverse benchmarks:

  • ImageNet (ctest10k): For general object colorization.
  • COCO-Stuff & Place205: For complex scenes and varied textures.
  • Yumi’s Cells & Danbooru2017: Used specifically to test the method's effectiveness on sketch colorization, where line art provides explicit but often ignored boundaries.

Key Insights and Ideas

  • The "Aha" of Internal Refinement: The authors found that applying the enhancement to the encoder layers was more effective than the decoder. By refining the representation early, the rest of the network can naturally propagate the corrected colors through the remaining layers.
  • Robustness to "Messy" Input: Thanks to width augmentation during training (varying the thickness of pseudo-scribbles), the network is remarkably robust. Users don't need to draw precise lines; a rough stroke is enough for the network to "snap" the color to the nearest logical edge.
  • A New Metric (CDR): Standard metrics like PSNR and LPIPS often fail to capture edge quality—they might penalize a sharp image just because the hue is slightly different from the ground truth. The authors introduced the Cluster Discrepancy Ratio (CDR), which specifically measures how well colors are separated across boundaries using super-pixel clustering.

Key Results

The proposed method consistently outperformed baselines in both qualitative and quantitative measures.

  • Quantitative Gains: On ImageNet, the method improved the local PSNR (measured around edges) from 14.96 to 16.04 and boosted the CDR score from 0.418 to 0.543.
  • User Efficiency: In a user study, participants were able to identify and fix bleeding artifacts in an average of 17.6 seconds per image, typically requiring only ~3 scribbles.
  • Visual Quality: As seen in Figure 5, the model successfully handles difficult cases like the thin boundaries of colored pencils or the complex patterns on a hot air balloon where automatic models typically bleed colors together.
Figure 5: Qualitative examples of edge enhancement in gray-scale colorization. For each box, the left contains an original colorized image with artifacts, its magnified view, and given user scribble.

Limitations and Future Work

While the method significantly reduces the labor required for high-quality colorization, it still requires manual intervention. The authors acknowledge that while their CDR metric is useful for measuring bleeding, it can be "gamed" by over-saturated edges, suggesting it should be used alongside traditional metrics.

Future work could explore more complex user interactions or attempt to further automate the detection of bleeding regions to suggest "candidate" edges for the user to approve with a single click.

Summary updated

BibTeX
@misc{kim2021deep,
  author = {Eungyeup Kim and Sanghyeon Lee and Jeonghoon Park and Somi Choi and Choonghyun Seo and Jaegul Choo},
  title = {{Deep Edge-Aware Interactive Colorization against Color-Bleeding Effects}},
  year = {2021},
  eprint = {2107.01619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.01619},
}
Figure