Automatic High Resolution Wire Segmentation and Removal

Mang Tik Chiu, Xuaner Zhang, Zijun Wei, Yuqian Zhou, Eli Shechtman, Connelly Barnes, Zhe Lin, Florian Kainz, Sohrab Amirghodsi, Humphrey Shi

Introduction

Researchers from Adobe and the University of Illinois Urbana-Champaign (UIUC) have introduced a fully automated pipeline designed to segment and remove wires from high-resolution photographs. While powerlines and cables are essential infrastructure, they often serve as unwanted "photobombers" in architectural and landscape photography. Manually retouching these elements is a labor-intensive task that can take professional editors hours of meticulous work. The proposed system automates this process, cleaning complex scenes in seconds while maintaining high visual fidelity.

The Challenge of High-Resolution Wires

The primary difficulty in automated wire removal stems from the physical characteristics of the wires themselves. They are typically thin, lengthy, and sparse. In high-resolution images (e.g., 10,000 x 10,000 pixels), a wire might span only 2-3 pixels in width.

Examples of challenging wire scenarios including thin structures (b, g), complex backgrounds (c, h), and low contrast (f).

This creates two significant hurdles for computer vision models:

  1. Segmentation at Scale: Standard neural networks require images to be downsampled to fit into memory. During this process, thin wires often vanish entirely. Conversely, processing the image in high-resolution tiles causes the network to lose "global context," making it difficult to distinguish a powerline from a building's edge or a natural crack.
  2. Inpainting Artifacts: Once a wire is segmented and removed, the resulting gap must be filled. Wires frequently cross smooth gradients, such as clear blue skies. Even minor color inconsistencies in the inpainted "fill" are highly noticeable to the human eye, leading to "ghosting" or visible seams.

Methodology: Coarse-to-Fine Segmentation

To address these challenges, the authors developed a two-stage "coarse-to-fine" segmentation model that balances global awareness with local precision.

Coarse Stage

The network first analyzes a downsampled version of the entire image to establish global structure and identify regions likely to contain wires. To prevent thin wires from disappearing during downsampling, the researchers implemented MinMax feature augmentation. By concatenating min- and max-filtered luminance channels, the dark, thin lines of wires are effectively "thickened," ensuring they remain visible to the model even at lower resolutions.

Fine Stage

The system then focuses on high-resolution patches identified by the coarse stage. This sliding-window approach is highly efficient, as it only processes the "wire-heavy" areas of the image, ignoring the vast majority of the pixels that do not require editing. This sparsity-based efficiency allows the model to handle massive images without overwhelming computational resources.

Color-Consistent Inpainting

For the removal phase, the team adapted the LaMa (Large Mask Inpainting) architecture, which utilizes Fourier convolutions for effective structural completion. To solve the color consistency issue, they introduced an "onion-peel" color adjustment module. This module calculates the average color difference between the pixels immediately surrounding the wire (the "peel") and the inpainted result, applying a bias correction to ensure the new pixels blend seamlessly into the background.

The WireSegHR Dataset

A significant contribution of this research is WireSegHR, the first benchmark dataset specifically designed for high-resolution wire segmentation. The dataset contains 6,000 images with resolutions up to 15,000 pixels, covering a diverse range of urban, rural, and landscape scenes. This dataset provides a more representative challenge for general photography compared to existing aerial-image datasets like TTPLA.

Key Results and Qualitative Evaluation

The proposed model, utilizing a MiT-b2 backbone, achieved a 60.83 IoU (Intersection over Union), significantly outperforming standard segmentation models like DeepLabv3+ (48.66 IoU) and specialized refinement models like CascadePSP (26.85 IoU).

End-to-end results showing original images, segmentation masks (red), and final wire removal across various urban and landscape scenes.

Beyond quantitative metrics, the system is remarkably fast, processing high-resolution images in approximately 0.82 seconds. Qualitatively, the "onion-peel" adjustment effectively eliminates the color shifts and artifacts common in previous methods, particularly in sensitive areas like the sky.

Conclusion and Future Work

The system demonstrates robust performance across a variety of complex environments. However, certain "failure cases" remain, such as wires with extremely low contrast against their background or those heavily blurred by a shallow depth of field. Future research will focus on improving handling for these low-contrast scenarios and extending the pipeline to video, where maintaining temporal consistency between frames presents the next major technical hurdle.

Summary updated

BibTeX
@inproceedings{chiu2023automatic,
  author = {Mang Tik Chiu and Xuaner Zhang and Zijun Wei and Yuqian Zhou and Eli Shechtman and Connelly Barnes and Zhe Lin and Florian Kainz and Sohrab Amirghodsi and Humphrey Shi},
  title = {{Automatic High Resolution Wire Segmentation and Removal}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=JuK4qITuN7},
}
Figure