Views
No views yet
1---
2license: creativeml-openrail-m
3base_model: black-forest-labs/FLUX.1-schnell
4tags:
5- flux
6- lora
7- text-to-image
8- diffusers
9- avatar
10instance_prompt: "a photo of KAKI"
11---
12
13# LoRA for FLUX: krystian-flux-avatar
14
15These are LoRA weights for the base model **[black-forest-labs/FLUX.1-schnell](https://huggingface.co/black-forest-labs/FLUX.1-schnell)**. The weights were trained on a custom dataset to generate images in a specific style, triggered by the word `KAKI`.
16
17## How to use
18
19First, make sure you have the `diffusers` library installed:
20```bash
21pip install diffusers transformers accelerate torch1import torch
2from diffusers import FluxPipeline
3
4# Load the base FLUX model
5model_id = "black-forest-labs/FLUX.1-schnell"
6pipe = FluxPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
7pipe.to("cuda")
8
9# Load the LoRA weights into the pipeline
10lora_repo_id = "krystian-kaczor/krystian-flux-avatar"
11pipe.load_lora_weights(lora_repo_id)
12
13# Generate an image using the trigger word
14prompt = "photo of a beautiful woman, KAKI style, cinematic, detailed, high resolution"
15
16# Generate the image
17image = pipe(
18 prompt=prompt,
19 num_inference_steps=8,
20 guidance_scale=0,
21).images[0]
22
23# Save the image
24image.save("generated_image.png")
25
26print("Image saved as generated_image.png")"KAKI style" or simply "KAKI".krystian-kaczor/train-flux-lora1000KAKI999krystian-kaczor/krystian-flux-avatar