From fb5ef3ead3e044bf9c9fb30e1ca706776cb43d7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:05:16 +0000 Subject: [PATCH] Add warning when multiple overlay images are detected Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com> --- efficiency_nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/efficiency_nodes.py b/efficiency_nodes.py index 9e5471e..ff9511c 100644 --- a/efficiency_nodes.py +++ b/efficiency_nodes.py @@ -3960,6 +3960,8 @@ class TSC_ImageOverlay: # Handle batch dimension - use first image if overlay_image is a batch if len(overlay_image.shape) == 4: + if overlay_image.shape[0] > 1: + print(f"{warning('Image Overlay Warning:')} Multiple overlay images detected ({overlay_image.shape[0]}), using only the first image.") overlay_image = overlay_image[0] overlay_image = tensor2pil(overlay_image)