Skip to content

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 problem.

comfyanonymous721253cb0527
diff --git a/node_helpers.py b/node_helpers.py
index 4f805387f..c3e1a14ca 100644
--- a/node_helpers.py
+++ b/node_helpers.py
@@ -50,5 +50,5 @@ def image_alpha_fix(destination, source):
source = source[...,:destination.shape[-1]]
elif destination.shape[-1] > source.shape[-1]:
destination = torch.nn.functional.pad(destination, (0, 1))
- destination[..., -1] = source[..., -1]
+ destination[..., -1] = 1.0
return destination, source