mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 21:22:13 -03:00
Fix Image Overlay node batch processing by extracting first image
Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
This commit is contained in:
BIN
__pycache__/efficiency_nodes.cpython-312.pyc
Normal file
BIN
__pycache__/efficiency_nodes.cpython-312.pyc
Normal file
Binary file not shown.
BIN
__pycache__/tsc_utils.cpython-312.pyc
Normal file
BIN
__pycache__/tsc_utils.cpython-312.pyc
Normal file
Binary file not shown.
@@ -3957,6 +3957,10 @@ class TSC_ImageOverlay:
|
||||
samples = overlay_image.movedim(-1, 1)
|
||||
overlay_image = comfy.utils.common_upscale(samples, overlay_image_size[0], overlay_image_size[1], resize_method, False)
|
||||
overlay_image = overlay_image.movedim(1, -1)
|
||||
|
||||
# Handle batch dimension - use first image if overlay_image is a batch
|
||||
if len(overlay_image.shape) == 4:
|
||||
overlay_image = overlay_image[0]
|
||||
|
||||
overlay_image = tensor2pil(overlay_image)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user