Views
No views yet













import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights('Alissonerdx/flux.1-dev-SRPO-LoRas', weight_name='srpo_128_base_R%26Q_model_fp16.safetensors')
pipe.to("cuda")
prompt = "aiyouxiketang, a man in armor with a beard and a beard"
image = pipe(
prompt,
num_inference_steps=28,
guidance_scale=5.0,
generator=torch.Generator("cpu").manual_seed(0)
).images[0]