1from diffusers import AutoPipelineForText2Image
2import torch
3
4pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-dev', torch_dtype=torch.float16).to('cuda')
5pipeline.load_lora_weights('pharci/akira', weight_name='lora.safetensors')
6image = pipeline('your prompt').images[0]
To achieve the desired results with the model, formulate your prompts using the following structure:
"Fantasy, A dramatic battle scene between a brave knight and a fierce dragon, The knight in shining armor, showing determination, while the dragon breathes fire, low-angle shot, set in a dark forest illuminated by firelight, vibrant colors with sharp contours."
This model is based on the FLUX architecture and has been adapted using LoRA weights trained on a custom dataset consisting of 500 images. The dataset focuses on specific visual styles and characteristics.
For more details, including weighting, merging, and fusing LoRAs, refer to the
documentation on loading LoRAs in diffusers.