MCPcopy Index your code
hub / github.com/huchenlei/ComfyUI-layerdiffuse / decode

Method decode

layered_diffusion.py:197–200  ·  view source on GitHub ↗
(self, samples, images, sd_version: str, sub_batch_size: int)

Source from the content-addressed store, hash-verified

195 RETURN_TYPES = ("IMAGE",)
196
197 def decode(self, samples, images, sd_version: str, sub_batch_size: int):
198 image, mask = super().decode(samples, images, sd_version, sub_batch_size)
199 alpha = 1.0 - mask
200 return JoinImageWithAlpha().join_image_with_alpha(image, alpha)
201
202
203class LayeredDiffusionDecodeSplit(LayeredDiffusionDecodeRGBA):

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected