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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f139bc15b4
commit
6946cb450d
@@ -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]
|
||||
|
||||
+1
-1
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user