This commit is contained in:
AIGC_Zero 2025-12-05 02:18:11 +08:00 committed by GitHub
commit 01ec967e23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ class TextEncodeQwenImageEditPlus(io.ComfyNode):
height = round(samples.shape[2] * scale_by)
s = comfy.utils.common_upscale(samples, width, height, "area", "disabled")
images_vl.append(s.movedim(1, -1))
images_vl.append(s.movedim(1, -1)[:, :, :, :3])
if vae is not None:
total = int(1024 * 1024)
scale_by = math.sqrt(total / (samples.shape[3] * samples.shape[2]))