Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flow_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ def __init__(self):
def INPUT_TYPES(cls):
inputs = {
"required": {
"image": ("IMAGE",),
"max_iterations": ("INT", {"default": 5, "min": 1, "max": 100}),
},
"optional": {
"image": ("IMAGE",),
"mask": ("MASK",),
},
"hidden": {
Expand All @@ -369,7 +369,7 @@ def loop_open(self, image, max_iterations, mask=None, unique_id=None,
print(f"SingleImageLoopOpen Processing iteration {iteration_count}")

# 确保维度正确
if len(image.shape) == 3:
if image is not None and len(image.shape) == 3:
image = image.unsqueeze(0)
if mask is not None and len(mask.shape) == 2:
mask = mask.unsqueeze(0)
Expand Down