Shuhaib73 commited on
Commit
21c2ee5
·
verified ·
1 Parent(s): bb422a3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -4
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
- ![img_0](./image_10.png)
27
  ![img_1](./image_11.png)
28
  ![img_2](./image_21.png)
29
  ![img_3](./image_31.png)
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
- # TODO: add an example code snippet for running this diffusion pipeline
 
 
 
 
 
 
 
 
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
+ <!-- ![img_0](./image_10.png)
27
  ![img_1](./image_11.png)
28
  ![img_2](./image_21.png)
29
  ![img_3](./image_31.png)
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