Fix in-place downsampling of reference images in QwenImageEditPlusModel

Copy control images to avoid mutating the original list.
This commit is contained in:
Dawn-Lcg authored and GitHub committed 2026-09-10 19:48:19 +08:00
1 parent b1bf3e4381
commit 17e5f59f36
1 file changed
+1 -1
@@ -193,7 +193,7 @@ class QwenImageEditPlusModel(QwenImageModel):
prompt_embeds_mask_list = []
for b in range(len(prompt)):
batch_control_images = control_images[b]
batch_control_images = list(control_images[b]) # copy so we don't mutate the caller's list
for i in range(len(batch_control_images)):
if len(batch_control_images[i].shape) == 3: