This commit is contained in:
Pablerdo
2025-02-25 18:31:34 -05:00
parent 2b4e86ecc7
commit fc8ec63df2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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]