Update README.md
Browse files
README.md
CHANGED
@@ -36,7 +36,14 @@ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
|
|
36 |
#### How to use
|
37 |
|
38 |
```python
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
```
|
41 |
|
42 |
#### Limitations and bias
|
|
|
36 |
#### How to use
|
37 |
|
38 |
```python
|
39 |
+
from diffusers import DiffusionPipeline
|
40 |
+
|
41 |
+
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
|
42 |
+
pipe.load_lora_weights("Bhaskar009/sdxl_trial")
|
43 |
+
pipe.to("cuda")
|
44 |
+
|
45 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
46 |
+
image = pipe(prompt).images[0]
|
47 |
```
|
48 |
|
49 |
#### Limitations and bias
|