Qwen-Image-Layered-MRP-MLX/src/flux_1_schnell/main.py
2024-08-14 11:12:30 +02:00

15 lines
785 B
Python

from flux_1_schnell.config.config import Config
from flux_1_schnell.models.flux import Flux1Schnell
flux = Flux1Schnell("/Users/filipstrand/.cache/FLUX.1-schnell/")
image = flux.generate_image(
seed=3,
prompt="Luxury food photograph of a birthday cake. In the middle it has three candles shaped like letters spelling the word 'MLX'. 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 cake. 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("/Users/filipstrand/Desktop/image.png")