Bhaskar009 commited on
Commit
517806b
·
verified ·
1 Parent(s): fc11f85

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -1
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
- # TODO: add an example code snippet for running this diffusion pipeline
 
 
 
 
 
 
 
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