args fix
This commit is contained in:
@@ -38,7 +38,7 @@ class MultiCutAndDragOnPath:
|
||||
"frame_width": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}),
|
||||
"frame_height": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}),
|
||||
"inpaint": ("BOOLEAN", {"default": True}),
|
||||
"mode": (["translate", "translate_and_rotate"], {"default": "translate"}),
|
||||
"rotation": ("BOOLEAN", {"default": False}),
|
||||
},
|
||||
"optional": {
|
||||
"bg_image": ("IMAGE",),
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ class BatchImageToMask:
|
||||
FUNCTION = "batch_convert_to_mask"
|
||||
DESCRIPTION = "Converts RGB images to binary masks using grayscale conversion and thresholding, with optional morphological dilation"
|
||||
|
||||
def batch_convert_to_mask(self, images, threshold, dilation_amount, save_to_file=False, output_path="masks_output.png"):
|
||||
def batch_convert_to_mask(self, images, threshold, dilation_amount):
|
||||
# Handle case where images is a tuple (common in ComfyUI node system)
|
||||
if isinstance(images, tuple):
|
||||
images = images[0]
|
||||
|
||||
Reference in New Issue
Block a user