Views
No views yet
runwayml/stable-diffusion-v1-5)| File | Description |
|---|---|
Helios_OrthoJoint_v1.safetensors | LoRA weights (safetensors format) |
1from diffusers import StableDiffusionPipeline
2import torch
3from huggingface_hub import hf_hub_download
4
5# Download LoRA weights
6lora_path = hf_hub_download(repo_id='devanshty/Helios-OrthoJoint', filename='Helios_OrthoJoint_v1.safetensors')
7
8# Load base pipeline
9pipe = StableDiffusionPipeline.from_pretrained(
10 "runwayml/stable-diffusion-v1-5",
11 torch_dtype=torch.float16
12).to("cuda")
13
14# Load LoRA weights
15pipe.load_lora_weights(lora_path)
16
17# Generate
18image = pipe("orthopedic knee joint X-ray, medical illustration, high detail").images[0]
19image.save("output.png")1from huggingface_hub import hf_hub_download
2lora_path = hf_hub_download(repo_id='devanshty/Helios-OrthoJoint', filename='Helios_OrthoJoint_v1.safetensors')