# huchenlei/ComfyUI-layerdiffuse

Layer Diffuse custom nodes

Repository: https://github.com/huchenlei/ComfyUI-layerdiffuse
Canonical: https://ross.abutalabs.com/products/comfyui-layerdiffuse
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2025-02-25T16:35:50+00:00

## Health v2 (maintenance only)
Score: 29/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 8, release rhythm 35, longevity 65
- inputs: {"age_days": 914, "days_push": 554, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1779, forks 171 (observed 2026-08-28T04:05:35.254559+00:00)

## What it is
A ComfyUI custom node plugin implementing LayerDiffuse, enabling generation of transparent images with RGBA output and foreground/background layer separation using Stable Diffusion. It provides example workflows for generating foregrounds, blending layers, and extracting FG/BG from blended images.

## Use cases
- generate transparent PNG images with alpha channel from text prompts
- separate foreground and background layers from a blended image
- remove background from generated images
- blend a foreground layer onto a background layer
- create RGBA images directly in ComfyUI workflows

## When to choose
- you use ComfyUI and need transparent image generation or layer separation
- you want to generate images with alpha channels without external matting tools
- you need to extract or remove foreground/background from blended images

## When to avoid
- you use a different Stable Diffusion UI like A1111 or Forge (use the Forge extension instead)
- you need production-grade background removal for arbitrary photos rather than diffusion-generated images
- you cannot manage Python dependency conflicts around diffusers versions

## Facets
- artifact type: plugin
- maturity: active
- function: image-processing, machine-learning, stable-diffusion
- domain: image-processing, artificial-intelligence, deep-learning
- platform: python, cross-platform
- tags: comfyui, custom-nodes, layer-diffusion, transparent-images, alpha-channel, foreground-background-separation

## Member repositories
- huchenlei/ComfyUI-layerdiffuse (main) score 29

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:35.254559+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:24:39.136124+00:00, confidence not recorded.
  - readme: https://github.com/huchenlei/ComfyUI-layerdiffuse (fetched 2026-08-28T04:05:35.254559+00:00, sha 3caa0f63c559)
- Data as of 2026-08-30T08:39:29.467469+00:00.
