Views
No views yet


saraptah to trigger the image generation.1from diffusers import FluxPipeline
2import torch
3
4pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
5pipe.enable_model_cpu_offload() # ou .to("cuda")
6
7pipe.load_lora_weights('obann001/Saraptah_Flux1.Dev_LoRA_v1', weight_name='model.safetensors'))
8
9prompt = "your prompt"
10
11image = pipe(prompt, num_inference_steps=28, guidance_scale=3.5).images[0]
12image.save("output.png")