mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-13 06:46:59 +08:00
Node FilterZeroMasksAndCorrespondingImages Edge case handle
This commit is contained in:
parent
2830476fd4
commit
ccd89290ed
2
nodes.py
2
nodes.py
@ -1864,7 +1864,7 @@ class FilterZeroMasksAndCorrespondingImages:
|
||||
|
||||
if also_process_images:
|
||||
non_zero_mask_images_out = torch.stack(non_zero_mask_images, dim=0)
|
||||
zero_mask_images_out = torch.stack(zero_mask_images, dim=0)
|
||||
zero_mask_images_out = torch.stack(zero_mask_images, dim=0) if len(zero_mask_images) > 0 else None
|
||||
else:
|
||||
non_zero_mask_images_out = zero_mask_images_out = None
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user