HackerPapers

arXiv:2402.17113cs.CV

Transparent Image Layer Diffusion using Latent Transparency

Lvmin Zhang, Maneesh Agrawala

Abstract

We present LayerDiffuse, an approach enabling large-scale pretrained latent diffusion models to generate transparent images. The method allows generation of single transparent images or of multiple transparent layers. The method learns a "latent transparency" that encodes alpha channel transparency into the latent manifold of a pretrained latent diffusion model. It preserves the production-ready quality of the large diffusion model by regulating the added transparency as a latent offset with minimal changes to the original latent distribution of the pretrained model. In this way, any latent diffusion model can be converted into a transparent image generator by finetuning it with the adjusted latent space. We train the model with 1M transparent image layer pairs collected using a human-in-the-loop collection scheme. We show that latent transparency can be applied to different open source image generators, or be adapted to various conditional control systems to achieve applications like foreground/background-conditioned layer generation, joint layer generation, structural control of layer contents, etc. A user study finds that in most cases (97%) users prefer our natively generated transparent content over previous ad-hoc solutions such as generating and then matting. Users also report the quality of our generated transparent images is comparable to real commercial transparent assets like Adobe Stock.

arXiv comments
44 pages, 37 figures, github.com/layerdiffusion/LayerDiffuse
Journal reference
DOI
Subjects
cs.CVComputer Vision and Pattern Recognition cs.GRGraphics

On Hacker News

Linked by 2 identifiable commenters in 2 comments across 2 threads, from Mar 2024 to Oct 2024. Found in 1 HN submission from Feb 2024 to Feb 2024. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments2 threads

    • From the controlnet author: Transparent Image Layer Diffusion using Latent Transparency https://arxiv.org/abs/2402.17113 https://github.com/lllyasviel/sd-forge-layerdiffuse

      Vt71fcAqt7View on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.