Instructions to use elifergunes/background_only_game_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use elifergunes/background_only_game_2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("elifergunes/background_only_game_2") prompt = "[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." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| tags: | |
| - text-to-image | |
| - flux | |
| - lora | |
| - diffusers | |
| - template:sd-lora | |
| 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/1729185746436__000003750_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/1729185757650__000003750_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/1729185768878__000003750_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/1729185780108__000003750_3.jpg | |
| - text: '[trigger] style, illustration of an outdoor camp setting, mountain and | |
| lucious trees with blue tent in foreground' | |
| output: | |
| url: samples/1729185791336__000003750_4.jpg | |
| - text: '[trigger] style, illustration of an indoor fireplace setting, seeing snowy | |
| landscape through the window, fireplace is burning and there are comfy chairs | |
| in the foreground' | |
| output: | |
| url: samples/1729185802570__000003750_5.jpg | |
| - text: '[trigger] style, illustration of an outdoor cemetry setting, spooky tombstones | |
| with cobwebs, reflecting the halloween spirit' | |
| output: | |
| url: samples/1729185813790__000003750_6.jpg | |
| - text: '[trigger] style, illustration of an indoor work setting, many computers | |
| and desks next to each other' | |
| output: | |
| url: samples/1729185825119__000003750_7.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_only_game_2 | |
| Model trained with [AI Toolkit by Ostris](https://github.com/ostris/ai-toolkit) | |
| <Gallery /> | |
| ## Trigger words | |
| You should use `b0ckground` to trigger the image generation. | |
| ## Download model | |
| Weights for this model are available in Safetensors format. | |
| [Download](/elifergunes/background_only_game_2/tree/main) them in the Files & versions tab. | |