The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix latent composite node not working when source has alpha.
comfyanonymous0b4584c7413f
diff --git a/comfy_extras/nodes_mask.py b/comfy_extras/nodes_mask.pyindex 63fd13b9a..2dd826b2e 100644--- a/comfy_extras/nodes_mask.py+++ b/comfy_extras/nodes_mask.py@@ -87,6 +87,8 @@ class ImageCompositeMasked:CATEGORY = "image"def composite(self, destination, source, x, y, resize_source, mask = None):+ if destination.shape[-1] < source.shape[-1]:+ source = source[...,:destination.shape[-1]]destination = destination.clone().movedim(-1, 1)output = composite(destination, source.movedim(-1, 1), x, y, mask, 1, resize_source).movedim(1, -1)return (output,)