Instructions to use johnowhitaker/lora_pn03_036sim with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use johnowhitaker/lora_pn03_036sim with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("playgroundai/playground-v2-1024px-aesthetic", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("johnowhitaker/lora_pn03_036sim") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
789d9bd
1
Parent(s): c71ca84
Update README.md
Browse files
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.
|
| 18 |
-
|
| 19 |

|
| 20 |

|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |

|
| 19 |

|
| 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.
|