support edit_image_auto_resize

This commit is contained in:
mi804
2025-08-20 12:36:26 +08:00
parent 9d0683df25
commit 29b12b2f4e
5 changed files with 34 additions and 11 deletions

View File

@@ -22,5 +22,5 @@ image.save("image.jpg")
prompt = "将裙子变成粉色"
image = image.resize((512, 384))
image = pipe(prompt, edit_image=image, seed=1, num_inference_steps=40, height=1024, width=768, edit_rope_interpolation=True)
image = pipe(prompt, edit_image=image, seed=1, num_inference_steps=40, height=1024, width=768, edit_rope_interpolation=True, edit_image_auto_resize=False)
image.save(f"image2.jpg")