--- tags: - text-to-image - flux - lora - diffusers - template:sd-lora - ai-toolkit widget: - text: '[trigger] style, A stone-paved courtyard surrounded by tall brick walls. In the center is a large fountain with water flowing down in layers. To the left, there is a bench under an old oak tree, casting long shadows on the ground. The sunlight is breaking through the branches, illuminating patches of the cobblestone path. A few birds are perched on the fountain''s edge.' output: url: samples/1728668812875__000003000_0.jpg - text: '[trigger] style, A modern city rooftop, with metal railings and a large glass dome in the center. A few metal vents are scattered across the gravel floor. There is a clear blue sky above, and the glass reflects the sunlight. On the left side, a tall antenna stretches upwards, surrounded by small potted plants placed along the railing.' output: url: samples/1728668828321__000003000_1.jpg - text: '[trigger] style, A small, cozy living room with a brick fireplace. The fire is burning war mly, casting a soft glow across the room. On the right side, a wooden bookshelf is filled with books and a small clock. A patterned rug covers the wooden floor, and two leather armchairs are placed facing the fire. The light from the window shows a snowy landscape outside.' output: url: samples/1728668843794__000003000_2.jpg - text: '[trigger] style, A grand marble hallway, with tall white pillars on both sides and intricate carvings on the walls. A long red carpet runs down the middle, leading to a large double door at the end. Above, a crystal chandelier hangs from the high ceiling, casting sparkling reflections on the marble floor. Sunlight pours in from the large windows on the left, illuminating the space with a golden hue.' output: url: samples/1728668859255__000003000_3.jpg base_model: black-forest-labs/FLUX.1-dev instance_prompt: b0ckground license: other license_name: flux-1-dev-non-commercial-license license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md --- # background_3 Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit) ## Trigger words You should use `b0ckground` to trigger the image generation. ## Download model and use it with ComfyUI, AUTOMATIC1111, SD.Next, Invoke AI, etc. Weights for this model are available in Safetensors format. [Download](/busetolunay/background/tree/main) them in the Files & versions tab. ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers) ```py from diffusers import AutoPipelineForText2Image import torch pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.bfloat16).to('cuda') pipeline.load_lora_weights('busetolunay/background', weight_name='background_3.safetensors') image = pipeline('[trigger] style, A stone-paved courtyard surrounded by tall brick walls. In the center is a large fountain with water flowing down in layers. To the left, there is a bench under an old oak tree, casting long shadows on the ground. The sunlight is breaking through the branches, illuminating patches of the cobblestone path. A few birds are perched on the fountain's edge.').images[0] image.save("my_image.png") ``` For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)