加载中…
加载中…
black-forest-labs/FLUX.1-devTrained on RTX3060 with ComfyUI:
You should use saraptah to trigger the image generation.
from diffusers import FluxPipeline
import torch
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.enable_model_cpu_offload() # ou .to("cuda")
pipe.load_lora_weights('obann001/Saraptah_Flux1.Dev_LoRA_v1', weight_name='model.safetensors'))
prompt = "your prompt"
image = pipe(prompt, num_inference_steps=28, guidance_scale=3.5).images[0]
image.save("output.png")
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers