From 8716116ada220172c36aa34a138f0a0ebefdd684 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 2 Oct 2022 16:30:30 +0200 Subject: Fix img2img --- infer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'infer.py') diff --git a/infer.py b/infer.py index c40335c..f2c380f 100644 --- a/infer.py +++ b/infer.py @@ -28,7 +28,7 @@ default_cmds = { "prompt": None, "negative_prompt": None, "image": None, - "image_strength": .7, + "image_strength": .3, "width": 512, "height": 512, "batch_size": 1, @@ -225,6 +225,7 @@ def generate(output_dir, pipeline, args): guidance_scale=args.guidance_scale, generator=generator, latents=init_image, + strength=args.image_strength, ).images for j, image in enumerate(images): -- cgit v1.2.3-54-g00ecf