Commit
•
967c36c
1
Parent(s):
a469cc8
Update README.md
Browse files
README.md
CHANGED
@@ -46,12 +46,17 @@ Weights for this model are available in Safetensors format.
|
|
46 |
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
47 |
|
48 |
```py
|
49 |
-
|
|
|
50 |
import torch
|
51 |
|
52 |
-
pipeline =
|
53 |
-
pipeline.load_lora_weights(
|
54 |
-
|
|
|
|
|
|
|
|
|
55 |
```
|
56 |
|
57 |
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)
|
|
|
46 |
## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
|
47 |
|
48 |
```py
|
49 |
+
|
50 |
+
from diffusers import DiffusionPipeline
|
51 |
import torch
|
52 |
|
53 |
+
pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0")
|
54 |
+
pipeline.load_lora_weights("artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl")
|
55 |
+
pipeline.enable_model_cpu_offload()
|
56 |
+
init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|
57 |
+
|
58 |
+
prompt = "playstation 1 graphics"
|
59 |
+
image = pipeline(prompt, image=init_image).images[0]
|
60 |
```
|
61 |
|
62 |
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)
|