File size: 3,421 Bytes
0536dc1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
license: other
license_name: bespoke-lora-trained-license
license_link: https://multimodal.art/civitai-licenses?allowNoCredit=True&allowCommercialUse=Rent&allowDerivatives=True&allowDifferentLicense=False
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- template:sd-lora
- skull
- x-ray
- style
- bones
- xray
- medical
- x ray

base_model: runwayml/stable-diffusion-v1-5
instance_prompt: xray
widget:
- text: 'xray crow in a tree'
  output:
    url: >-
      4560006.jpeg
- text: 'xray pirate ship'
  output:
    url: >-
      4560092.jpeg
- text: 'xray cat in a racecar'
  output:
    url: >-
      4560036.jpeg
- text: 'xray daft punk'
  output:
    url: >-
      4560046.jpeg
- text: 'xray eye of providence enclosed in a triangle'
  output:
    url: >-
      4560051.jpeg
- text: 'xray mountain sunset'
  output:
    url: >-
      4560056.jpeg
- text: 'xray mushroom cloud nuke explosion'
  output:
    url: >-
      4560063.jpeg
- text: 'xray rocket ship flying to mars'
  output:
    url: >-
      4560112.jpeg
- text: 'xray busy Tokyo city'
  output:
    url: >-
      4560026.jpeg

---

# Doctor Diffusion's Xray XL LoRA 

<Gallery />





## Model description

<p><span style="color:rgb(193, 194, 197)">Use "</span><strong>xray</strong><span style="color:rgb(193, 194, 197)">" in the front of your prompt.</span><br /><br /><strong>Experimental: </strong><span style="color:rgb(193, 194, 197)">This is the first version of this LoRA and it may not always work as desired. If you get poor results please share in the comments so I can improve v2.</span><br /><br /><span style="color:rgb(17, 17, 17)"></span><span style="color:rgb(193, 194, 197)">Like what I do? </span><span style="color:rgb(17, 17, 17)"></span><br /><span style="color:rgb(17, 17, 17)"></span><a target="_blank" rel="ugc" href="https://www.buymeacoffee.com/doctordiffusion">Donations allow me to continue to make more as an independent researcher</a><span style="color:rgb(193, 194, 197)">! </span><span style="color:rgb(17, 17, 17)"></span><br /><br /><strong>The history of x-rays:</strong><br />X-ray scans were first developed by Wilhelm Conrad Röntgen in 1895 and are widely used in medical diagnostics. They work by passing electromagnetic radiation through the body, capturing an image of internal structures like bones and organs based on their density. Over time, advancements have led to methods such as CT scans and MRI for more detailed imaging without ionizing radiation.</p>

## Trigger words
You should use `xray` to trigger the image generation.
    

## Download model

Weights for this model are available in Safetensors format.

[Download](/DoctorDiffusion/doctor-diffusion-s-xray-xl-lora/tree/main) them in the Files & versions tab.

## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)

```py
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('runwayml/stable-diffusion-v1-5', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('DoctorDiffusion/doctor-diffusion-s-xray-xl-lora', weight_name='DD-xray-v1.safetensors')
image = pipeline('xray busy Tokyo city').images[0]
```

For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)