---
title: "ContorlNet作者的研究！LayerDiffusion可生成商业素材级别透明PNG图片"
canonical: "https://96p.net/articles/stable-diffusion/41319/ContorlNet%E4%BD%9C%E8%80%85%E7%9A%84%E7%A0%94%E7%A9%B6%EF%BC%81LayerDiffusion%E5%8F%AF%E7%94%9F%E6%88%90%E5%95%86%E4%B8%9A%E7%B4%A0%E6%9D%90%E7%BA%A7%E5%88%AB%E9%80%8F%E6%98%8EPNG%E5%9B%BE%E7%89%87"
---

# ContorlNet作者的研究！LayerDiffusion可生成商业素材级别透明PNG图片

> 发布时间：2024-03-06
> 栏目：StableDiffusion

<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">用于生成图像的大规模模型已经成为计算机视觉的基础而图形，令人惊讶的是，很少有研究关注分层内容生成或透明图像生成。这种情况与巨大的市场需求形成鲜明对比。</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">ContorlNet的作者研究了一款名为LayerDiffusion项目，使得大型已经过预训练的潜在扩散模型（latent diffusion model）能够创造透明图像。LayerDiffusion可以用 SD 直接生成透明的 PNG 图片，也可以直接生成带有透明度分层的图片。</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;"><img class="aligncenter" title="《ContorlNet作者的研究！LayerDiffusion可生成商业素材级别透明PNG图片》- 投稿作者:路西法前沿瞭望 - 发布于:GetAI社区" src="https://www.96p.net/bizimg/mmbiz.qpic.cn/sz_mmbiz_jpg/XlfzwNlciaV74qMea48WIibjesQpJ8wo9SnMSIMoaew5cgR0t91y31m6mIDIpxvXvibTlttkU2CzA67iafRf2ia3neA/640" alt="《ContorlNet作者的研究！LayerDiffusion可生成商业素材级别透明PNG图片》- 投稿作者:路西法前沿瞭望 - 发布于:GetAI社区" data-imgfileid="100003398" data-ratio="1.0608695652173914" data-type="jpeg" data-w="575" /></span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">它通过一种被称为“潜在透明度”的方法，将透明度（即 alpha 通道）整合到预训练的潜在扩散模型的潜在结构中。这样做的好处是，它通过以潜在偏移的形式加入透明度，几乎不改变模型原有的潜在分布，从而保持了模型的高质量输出能力。基于这种方法，任何一个潜在扩散模型都可以通过对潜在空间的微调，转化为透明图像生成器。</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">研究人员在训练模型时采用了涉及人机互动的方法，收集了大量透明图像层数据。研究结果显示，潜在透明技术不仅可以应用于各种开源图像生成器，还可以适配多种条件控制系统，实现不同应用场景下的层生成和结构控制。</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;"><img class="aligncenter" style="width: 100%; height: auto;" title="《ContorlNet作者的研究！LayerDiffusion可生成商业素材级别透明PNG图片》- 投稿作者:路西法前沿瞭望 - 发布于:GetAI社区" src="https://www.96p.net/bizimg/mmbiz.qpic.cn/sz_mmbiz_png/XlfzwNlciaV74qMea48WIibjesQpJ8wo9Sv3fqe7xKPcQ2N5IibicicECzWft2vTqZTZc1AmS9Wdzibiao0Z3Z9a8iarUQ/640" alt="《ContorlNet作者的研究！LayerDiffusion可生成商业素材级别透明PNG图片》- 投稿作者:路西法前沿瞭望 - 发布于:GetAI社区" data-backh="511" data-backw="578" data-imgfileid="100003399" data-ratio="0.8839869281045751" data-type="png" data-w="612" /></span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">研究显示，这种潜在透明技术不仅可以应用于不同的开源图像生成器，还可以适配多种条件控制系统，实现例如基于前景/背景条件的层生成、层的联合生成、对层内容进行结构控制等多种应用。</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">一项用户研究发现，大多数情况下（97%），相比于之前的临时解决方案(如先生成图像再进行抠图处理)，用户更喜欢我们直接生成的透明内容。用户还表示，生成的透明图像在质量上可媲美真实的商业级透明素材，例如 Adobe Stock 提供的素材，展现出技术的强大和实用性。</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"><span style="font-size: 15px; letter-spacing: 1px;">论文入口：https://arxiv.org/pdf/2402.17113.pdf</span></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"></section>
<section></section>
<section style="line-height: 1.75em; margin-bottom: 16px; margin-top: 16px;"></section>
<p style="display: none;"></p>
