Views
No views yet
pytorch_lora_weights.safetensors (SHA256: 18c8e1c49ae8dc872ad7dd501e7af2baae11646edfe02b0ee3a092150cdbc5f0)1import torch
2from diffusers import Flux2Pipeline
3
4pipe = Flux2Pipeline.from_pretrained("black-forest-labs/FLUX.2-dev", torch_dtype=torch.bfloat16).to("cuda")
5pipe.load_lora_weights("danildushenev/pneumothorax-lora-flux-2-dev", weight_name="pytorch_lora_weights.safetensors")
6image = pipe("your prompt", num_inference_steps=24, guidance_scale=2.5).images[0]
7image.save("result.png")pytorch_lora_weights.safetensors from this repo.ComfyUI/models/loras/.a photo of Human with pneumothorax