johnowhitaker commited on
Commit
789d9bd
1 Parent(s): c71ca84

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -4
README.md CHANGED
@@ -14,12 +14,25 @@ inference: true
14
 
15
  # LoRA text2image fine-tuning - johnowhitaker/lora_pn03_036sim
16
 
17
- These are LoRA adaption weights for playgroundai/playground-v2-1024px-aesthetic. The weights were fine-tuned on a custom dataset. You can find some example images in the following.
18
-
19
  ![img_0](./image_0.png)
20
  ![img_1](./image_1.png)
21
- ![img_2](./image_2.png)
22
- ![img_3](./image_3.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
 
25
  LoRA for the text encoder was enabled: False.
 
14
 
15
  # LoRA text2image fine-tuning - johnowhitaker/lora_pn03_036sim
16
 
17
+ These are LoRA adaption weights for playgroundai/playground-v2-1024px-aesthetic. The weights were fine-tuned on a custom dataset.
 
18
  ![img_0](./image_0.png)
19
  ![img_1](./image_1.png)
20
+
21
+ Usage:
22
+ ```python
23
+ import torch
24
+ from diffusers import DiffusionPipeline
25
+ device = "cuda:7"
26
+ pipe = DiffusionPipeline.from_pretrained(
27
+ 'playgroundai/playground-v2-1024px-aesthetic',
28
+ torch_dtype=torch.float16,
29
+ add_watermarker=False,
30
+ variant="fp16"
31
+ )
32
+ pipe.to(device)
33
+ pipe.load_lora_weights('johnowhitaker/lora_pn03_036sim')
34
+ pipe("An owl wearing a tophat and tie, studio lighting, black background").images[0]
35
+ ```
36
 
37
 
38
  LoRA for the text encoder was enabled: False.