Merge pull request #1035 from ArcGleam/fix/qwen-edit-plus-control-image-inplace-downsample
Fix in-place downsampling of reference images in QwenImageEditPlusModel
This commit is contained in:
1 file changed
+1
-1
@@ -193,7 +193,7 @@ class QwenImageEditPlusModel(QwenImageModel):
|
|||||||
prompt_embeds_mask_list = []
|
prompt_embeds_mask_list = []
|
||||||
|
|
||||||
for b in range(len(prompt)):
|
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)):
|
for i in range(len(batch_control_images)):
|
||||||
if len(batch_control_images[i].shape) == 3:
|
if len(batch_control_images[i].shape) == 3:
|
||||||
|
|||||||
Reference in new issue
Block a user