How to use strangerzonehf/Flux-Pixel-Background-LoRA 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", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("strangerzonehf/Flux-Pixel-Background-LoRA") prompt = "Pixel Background, An eye-level view of a mountain range, the mountain range is adorned with a vibrant shade of pink and purple. The mountains are set against a backdrop of a light blue sky, dotted with fluffy white clouds. In the foreground of the image, a field of wildflowers, a few houses, and a few trees are visible. The field is a vibrant green, and the houses are a reddish-brown color. The sky is a muted blue, with a few wispy clouds in the air." image = pipe(prompt).images[0]
The community tab is the place to discuss and collaborate with the HF community!