Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from diffusers import UNet2DConditionModel, DiffusionPipeline, LCMScheduler
|
2 |
|
3 |
unet = UNet2DConditionModel.from_pretrained("latent-consistency/lcm-sdxl", torch_dtype=torch.float16, variant="fp16")
|
@@ -8,4 +9,5 @@ pipe.set_progress_bar_config(disable=None)
|
|
8 |
|
9 |
prompt = "a red car standing on the side of the street"
|
10 |
|
11 |
-
image = pipe(prompt, num_inference_steps=4, guidance_scale=8.0).images[0]
|
|
|
|
1 |
+
```py
|
2 |
from diffusers import UNet2DConditionModel, DiffusionPipeline, LCMScheduler
|
3 |
|
4 |
unet = UNet2DConditionModel.from_pretrained("latent-consistency/lcm-sdxl", torch_dtype=torch.float16, variant="fp16")
|
|
|
9 |
|
10 |
prompt = "a red car standing on the side of the street"
|
11 |
|
12 |
+
image = pipe(prompt, num_inference_steps=4, guidance_scale=8.0).images[0]
|
13 |
+
```
|