2024-03-04 01:24:56 -05:00
2024-03-04 01:24:56 -05:00
2024-03-02 17:55:16 -05:00
2024-03-02 17:55:16 -05:00
2024-03-02 17:55:16 -05:00
2024-03-04 00:55:49 -05:00
2024-03-02 18:00:49 -05:00
2024-03-04 00:48:49 -05:00
2024-03-03 18:31:48 -05:00

ComfyUI-layerdiffusion

ComfyUI implementation of https://github.com/layerdiffusion/LayerDiffusion.

Installation

run pip install -r requirements.txt to install python dependencies. You might experience version conflict on diffusers if you have other extensions that depends on other versions of diffusers.

Workflows

Generate foreground

rgba

Generate foreground (RGB + alpha)

If you want more control of getting RGB image and alpha channel mask separately, you can use this workflow. readme1

Blending (FG/BG)

Blending given FG fg_cond

Blending given BG bg_cond

Extract FG from Blended + BG

diff_bg

Extract BG from Blended + FG

Forge impl's sanity check sets Stop at to 0.5 to get better quality BG. This workflow might be inferior comparing to other object removal workflows. diff_fg

Note

TODO

  • Foreground conditioning
  • Background conditioning
  • Blended + foreground => background
  • Blended + background => foreground
  • Support Stop at param
S
Description
No description provided
Readme Apache-2.0
123 KiB
Languages
Python 100%