English

Trans-Adapter: A Plug-and-Play Framework for Transparent Image Inpainting

Computer Vision and Pattern Recognition 2025-08-05 v1

Abstract

RGBA images, with the additional alpha channel, are crucial for any application that needs blending, masking, or transparency effects, making them more versatile than standard RGB images. Nevertheless, existing image inpainting methods are designed exclusively for RGB images. Conventional approaches to transparent image inpainting typically involve placing a background underneath RGBA images and employing a two-stage process: image inpainting followed by image matting. This pipeline, however, struggles to preserve transparency consistency in edited regions, and matting can introduce jagged edges along transparency boundaries. To address these challenges, we propose Trans-Adapter, a plug-and-play adapter that enables diffusion-based inpainting models to process transparent images directly. Trans-Adapter also supports controllable editing via ControlNet and can be seamlessly integrated into various community models. To evaluate our method, we introduce LayerBench, along with a novel non-reference alpha edge quality evaluation metric for assessing transparency edge quality. We conduct extensive experiments on LayerBench to demonstrate the effectiveness of our approach.

Keywords

Cite

@article{arxiv.2508.01098,
  title  = {Trans-Adapter: A Plug-and-Play Framework for Transparent Image Inpainting},
  author = {Yuekun Dai and Haitian Li and Shangchen Zhou and Chen Change Loy},
  journal= {arXiv preprint arXiv:2508.01098},
  year   = {2025}
}

Comments

accepted to ICCV 2025

R2 v1 2026-07-01T04:30:23.134Z