Shigaru
  • Tool
  • MOSS-Image

MOSS-Image Alpha LoRA - transparent PNG (proof of concept)

paralaif_xoxCivitai

First generation may take a bit longer.

Are you the creator?
Details
Type
Style
Base model
MOSS-Image
Price per use
Free

Proof of concept, checkpoint at step 1000 of 2000 (later steps overfit). 39 training images, rank 32, LR 3e-4, AdamW 8-bit. Use: end the prompt with isolated on a transparent background and decode with the RGBA VAE (trmz/flux2-klein-alpha) via the "Load RGBA VAE (Flux2)" node from huggingface.co/paralaif/MOSS-Image-Alpha-LoRA. With an 8-step DMD LoRA: 8 steps, CFG 1, er_sde/simple. Without DMD: 28 steps, CFG 4.

Text-to-image with a real alpha channel for MOSS-Image. End your prompt with isolated on a transparent background, decode with the RGBA VAE from trmz/flux2-klein-alpha, and get a transparent PNG straight from the sampler: no chroma key, no background removal, and partial transparency where it belongs (glass, fairy wings, gems, the Eiffel Tower's lattice). ⚠️ Proof of concept: trained on only 39 images in ~40 minutes on one 16 GB GPU. Not perfect (expect occasional halos or semi-transparent patches), but it shows MOSS-Image can learn alpha with very little data. Required (ComfyUI) • MOSS-Image SFT + Qwen3.5-9B text encoder (Comfy-Org/MOSS-Image) • RGBA VAE: vae/diffusion_pytorch_model.safetensors from trmz/flux2-klein-alpha (Apache-2.0) • The Load RGBA VAE (Flux2) custom node and the workflow, from paralaif/MOSS-Image-Alpha-LoRA (folder comfyui/). Stock ComfyUI can't load a 4-channel VAE. • Optional: an 8-step DMD LoRA for MOSS-Image SFT (e.g. lodestones/MOSS-Image-SFT-8-steps-dmd) Tips • Always keep isolated on a transparent background. Without it, prompts that imply a place (e.g. "the Eiffel Tower") get a full scene and the alpha breaks. • LoRA strength 1.0 (0.8 is fine; at 0.6 subjects turn see-through). With DMD: 8 steps, CFG 1, er_sde/simple. Without DMD: 28 steps, CFG 4. • Preview images here are flattened onto backgrounds because Civitai doesn't show transparency. Raw RGBA PNGs are on Hugging Face. How it was made The RGBA VAE shares FLUX.2's latent space, so it can decode MOSS latents, but plain MOSS latents give garbage alpha. We built a small dataset with MOSS as the image source and alpha "teachers" (Klein Base 4B + Extract-4B on composite/plate pairs, Qwen Image 2.1 for effects), filtered it automatically and trained a rank-32 LoRA at LR 3e-4 with ai-toolkit. Full research notes, training config and the ai-toolkit patch: huggingface.co/paralaif/MOSS-Image-Alpha-LoRA Licence Non-commercial research and evaluation use only. Built with Qwen: 8 of th