From aeb377d90058d9f2303a31348ef0216e33901658 Mon Sep 17 00:00:00 2001 From: filipstrand Date: Tue, 20 Aug 2024 11:36:01 +0200 Subject: [PATCH 1/2] Fix: Use the correct seed variable --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 97b3f39..ce01fca 100644 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ def main(): flux = Flux1Schnell(args.model) image = flux.generate_image( - seed=args.seed, + seed=seed, prompt=args.prompt, config=Config( num_inference_steps=args.steps, From d94c9006a5dd8632f94334ce0ab19962641c874c Mon Sep 17 00:00:00 2001 From: filipstrand Date: Tue, 20 Aug 2024 18:10:00 +0200 Subject: [PATCH 2/2] Fix: Actually use the --output flag --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ce01fca..c55537a 100644 --- a/main.py +++ b/main.py @@ -36,7 +36,7 @@ def main(): ) ) - ImageUtil.save_image(image, "image.png") + ImageUtil.save_image(image, args.output) if __name__ == '__main__':