The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Make LoadImage and LoadImageMask return masks in batch format.
comfyanonymous9546a798fba3
diff --git a/nodes.py b/nodes.pyindex 8a28e127e..4abb0d24d 100644--- a/nodes.py+++ b/nodes.py@@ -1369,7 +1369,7 @@ class LoadImage:mask = 1. - torch.from_numpy(mask)else:mask = torch.zeros((64,64), dtype=torch.float32, device="cpu")- return (image, mask)+ return (image, mask.unsqueeze(0))@classmethoddef IS_CHANGED(s, image):@@ -1416,7 +1416,7 @@ class LoadImageMask:mask = 1. - maskelse:mask = torch.zeros((64,64), dtype=torch.float32, device="cpu")- return (mask,)+ return (mask.unsqueeze(0),)@classmethoddef IS_CHANGED(s, image, channel):