This commit is contained in:
AIGC_Zero 2026-03-28 20:36:13 +00:00 committed by GitHub
commit e5394105aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,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]))