Views
No views yet
emj icon as the trigger phrase.1import torch
2from diffusers import Flux2KleinPipeline
3
4pipe = Flux2KleinPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-base-4B", torch_dtype=torch.bfloat16)
5pipe.load_lora_weights("Mike0021/flux2-klein-apple-emoji-lora", weight_name="pytorch_lora_weights.safetensors")
6pipe.enable_model_cpu_offload()
7
8image = pipe(
9 "emj icon of a smiling dragon, centered on a plain white background",
10 height=1024,
11 width=1024,
12 num_inference_steps=30,
13 guidance_scale=4.0,
14).images[0]black-forest-labs/FLUX.2-klein-base-4Bemj iconiamcal/emoji-dataemj icon for memory reasons