From 6946cb450dc8c2f373d5c3c843ef07f19e6af889 Mon Sep 17 00:00:00 2001 From: Fillip Date: Fri, 27 Feb 2026 19:33:09 -0800 Subject: [PATCH] feat: FL_Inpaint_Stitch batch support for inpainted variations (v2.3.2) When the inpainted image has a larger batch size than the original (e.g., batch_size=4 from KSampler), the stitch node now duplicates the original image to match and outputs all variations instead of silently discarding extras. Co-Authored-By: Claude Opus 4.6 --- nodes/utility/FL_InpaintCrop.py | 5 +++++ pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nodes/utility/FL_InpaintCrop.py b/nodes/utility/FL_InpaintCrop.py index 3186a7b..bbe27dd 100644 --- a/nodes/utility/FL_InpaintCrop.py +++ b/nodes/utility/FL_InpaintCrop.py @@ -446,6 +446,11 @@ class FL_Inpaint_Stitch: original_image = stitch['original_image'] x = stitch['x'] # These are in ORIGINAL image coordinates - do NOT rescale! y = stitch['y'] + + # Expand original to match inpainted batch size + # e.g., 1 original + 4 inpainted variations → 4 copies of original + original_image = comfy.utils.repeat_to_batch_size(original_image, inpainted_image.shape[0]) + stitched_image = original_image.clone().movedim(-1, 1) inpaint_width = inpainted_image.shape[2] diff --git a/pyproject.toml b/pyproject.toml index 15175e8..abb145d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_fill-nodes" description = "Fill-Nodes is a versatile collection of custom nodes for ComfyUI that extends functionality across multiple domains. Features include advanced image processing (pixelation, slicing, masking), visual effects generation (glitch, halftone, pixel art), comprehensive file handling (PDF creation/extraction, Google Drive integration), AI model interfaces (GPT, DALL-E, Hugging Face), utility nodes for workflow enhancement, and specialized tools for video processing, captioning, and batch operations. The pack provides both practical workflow solutions and creative tools within a unified node collection." -version = "2.3.1" +version = "2.3.2" license = "LICENSE" dependencies = ["librosa", "sounddevice", "glitch_this", "PyOpenGL", "glfw", "scipy>=1.13.1", "requests", "aiohttp", "moviepy", "matplotlib", "reportlab", "openai", "PyPDF2", "pdf2image", "PyMuPDF", "reportlab", "PyPDF2", "ollama", "kornia", "opencv-python", "gdown", "open_clip_torch", "google-genai"]