From 5023437e89b0a54232e0ecd05da6447ed2ea738d Mon Sep 17 00:00:00 2001 From: filipstrand Date: Tue, 13 Aug 2024 23:09:37 +0200 Subject: [PATCH] Remove loop from main script --- src/flux_1_schnell/main.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/flux_1_schnell/main.py b/src/flux_1_schnell/main.py index 758f18e..f9d98c3 100644 --- a/src/flux_1_schnell/main.py +++ b/src/flux_1_schnell/main.py @@ -3,13 +3,12 @@ from flux_1_schnell.models.flux import Flux1Schnell flux = Flux1Schnell("/Users/filipstrand/.cache/FLUX.1-schnell/") -for i in range(0, 10): - image = flux.generate_image( - seed=i, - prompt="Luxury food photograph of an italian Linguine pasta alle vongole dish with lots of clams. It has perfect lighting and a cozy background with big bokeh and shallow depth of field. The mood is a sunset balcony in tuscany. The photo is taken from the side of the plate. The pasta is shiny with sprinkled parmesan cheese and basil leaves on top. The scene is complemented by a warm, inviting light that highlights the textures and colors of the ingredients, giving it an appetizing and elegant look.", - config=Config( - num_inference_steps=2, - ) +image = flux.generate_image( + seed=3, + prompt="Luxury food photograph of an italian Linguine pasta alle vongole dish with lots of clams. It has perfect lighting and a cozy background with big bokeh and shallow depth of field. The mood is a sunset balcony in tuscany. The photo is taken from the side of the plate. The pasta is shiny with sprinkled parmesan cheese and basil leaves on top. The scene is complemented by a warm, inviting light that highlights the textures and colors of the ingredients, giving it an appetizing and elegant look.", + config=Config( + num_inference_steps=2, ) +) - image.save(f"/Users/filipstrand/Desktop/image_{i}.png") +image.save("/Users/filipstrand/Desktop/image.png")