mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 12:54:40 +08:00
Update image_nodes.py
This commit is contained in:
parent
654fb27261
commit
90f639c6f5
@ -649,6 +649,10 @@ class ImagePadForOutpaintMasked:
|
||||
CATEGORY = "image"
|
||||
|
||||
def expand_image(self, image, left, top, right, bottom, feathering, mask=None):
|
||||
if mask is not None:
|
||||
if torch.allclose(mask, torch.zeros_like(mask)):
|
||||
print("Warning: The incoming mask is fully black. Handling it as None.")
|
||||
mask = None
|
||||
B, H, W, C = image.size()
|
||||
|
||||
new_image = torch.ones(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user