跳到正文
CuteGuy☣️· 来源· @cutetoxicguy · X·· 31 分钟前精选AI 评分80
推荐理由

通过轻量级适配器为现有模型赋予原生透明通道,解决半透明材质处理难题。

正文 · 原文

Researchers found a way to give existing AI image generators a real transparency channel, without retraining the entire model. 🎨

And now the code and pretrained adapters are available.

Meet AlphaAnything, a new research project from Tsinghua University, ByteDance, and Peking University.

It transforms existing RGB image generators into RGBA models, allowing them to generate objects with transparent backgrounds or extract individual elements from existing images.

The interesting part? Transparency is generated by the model itself, not added afterward using background removal.

🧠 How does it work?

Instead of rebuilding a diffusion model from scratch, AlphaAnything adds two lightweight components:

▪️ Transformer LoRA: Adapts the original generative model to predict appearance and transparency together.

▪️ Alpha decoder: A separate branch attached to the frozen RGB VAE that predicts the opacity of each pixel.

The researchers also introduce Endpoint-Aware Alpha Loss, a training objective that improves transparency boundaries, including fully transparent regions, solid objects, and partially transparent materials.

The original RGB decoder remains unchanged for a fixed latent representation.

✨ What can it generate?

▪️ Transparent glass objects and reflections.

▪️ Fine feathers, fur, and delicate edges.

▪️ Lace, fabric, and translucent materials.

▪️ Stickers, illustrations, and graphic design elements.

▪️ Individual RGBA layers extracted from existing images.

The latest image-editing adapters can also extract background layers, making them useful for reconstructing editable compositions.

🔧 Four released checkpoints

▪️ FLUX.2 Klein Base 9B: Text-to-RGBA.

▪️ FLUX.2 Klein Base 9B: Image-to-RGBA.

▪️ Qwen-Image-2512: Text-to-RGBA.

▪️ Qwen-Image-Edit-2511: Image-to-RGBA.

Both FLUX adapters also work with the distilled 4-step FLUX.2 Klein 9B, allowing faster inference without retraining.

There's an important implementation detail: the LoRA and alpha decoder must be loaded together.

Simply loading the LoRA through standard Diffusers won't produce transparency.

💻 Already available

The researchers released the inference code, training scripts, datasets, and pretrained checkpoints on November 22.

The implementation also supports switching between ordinary RGB generation and RGBA output without reloading the base model.

⚠️ Licensing matters

▪️ Qwen adapters: Apache 2.0.

▪️ FLUX adapters: FLUX Non-Commercial License.

The corresponding base models have their own licensing requirements.

Why this matters

Background removal is useful, but it often struggles with semi-transparent materials, reflections, and fine details.

AlphaAnything approaches the problem at the generation level.

For game assets, UI elements, VFX, stickers, and layered illustrations, that could make AI-generated content much easier to integrate into real creative workflows.

🔗 Project: https://wluli.github.io/AlphaAnything/

🔗 GitHub: https://github.com/WLuLi/AlphaAnything

🔗 Weights: https://huggingface.co/WLuLi/AlphaAnything

#GenerativeAI #ImageGeneration #OpenSourceAI #DigitalArt #VFX

来源:CuteGuy☣️ · x.com