Skip to content
Reddit StableDiffusion · 创作者与工作流分享· /u/emilrueh·· 2026-10-14AI score50

How to Achieve a Transparent Background with Your Own LoRA: Render on White, Repaint on Black

How I get transparent backgrounds with my own LoRA: render on white, re-render on black

AI briefing

When making 2D game assets with FLUX.2 klein 4B plus a style LoRA, the author used the old film matting method (Smith & Blinn 1996) of "generate on a white background, then repaint onto a pure black background using the original image as reference" to obtain a transparent background, alpha = 1 - (white - black) / 255, with colors taken from the black-background image to avoid white fringes.

Open original reddit.com