Update README.md
Browse files
README.md
CHANGED
|
@@ -23,13 +23,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 23 |
|
| 24 |
These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were fine-tuned on the Shuhaib73/stablediffusion_celeba1k dataset. You can find some example images in the following.
|
| 25 |
|
| 26 |
-

|
| 27 |

|
| 28 |

|
| 29 |

|
| 30 |
|
| 31 |
-
|
| 32 |
-
LoRA for the text encoder was enabled: False.
|
| 33 |
|
| 34 |
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
| 35 |
|
|
@@ -39,7 +39,15 @@ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
|
| 39 |
#### How to use
|
| 40 |
|
| 41 |
```python
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
```
|
| 44 |
|
| 45 |
#### Limitations and bias
|
|
|
|
| 23 |
|
| 24 |
These are LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0. The weights were fine-tuned on the Shuhaib73/stablediffusion_celeba1k dataset. You can find some example images in the following.
|
| 25 |
|
| 26 |
+
<!-- 
|
| 27 |

|
| 28 |

|
| 29 |

|
| 30 |
|
| 31 |
+
-->
|
| 32 |
+
<!-- LoRA for the text encoder was enabled: False. -->
|
| 33 |
|
| 34 |
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
| 35 |
|
|
|
|
| 39 |
#### How to use
|
| 40 |
|
| 41 |
```python
|
| 42 |
+
import torch
|
| 43 |
+
from diffusers import DiffusionPipeline
|
| 44 |
+
|
| 45 |
+
model_path = "Shuhaib73/stablediffusion_fld"
|
| 46 |
+
|
| 47 |
+
trained_pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
|
| 48 |
+
trained_pipe.to("cuda")
|
| 49 |
+
trained_pipe.load_lora_weights(model_path)
|
| 50 |
+
|
| 51 |
```
|
| 52 |
|
| 53 |
#### Limitations and bias
|