Update README.md
Browse files
README.md
CHANGED
@@ -46,7 +46,9 @@ unet.load_state_dict(torch.load(hf_hub_download(repo_name, ckpt_name), map_locat
|
|
46 |
pipe = DiffusionPipeline.from_pretrained(base_model_id, unet=unet, torch_dtype=torch.float16, variant="fp16").to("cuda")
|
47 |
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
|
48 |
prompt="a photo of a cat"
|
49 |
-
|
|
|
|
|
50 |
```
|
51 |
|
52 |
#### 1-step generation
|
|
|
46 |
pipe = DiffusionPipeline.from_pretrained(base_model_id, unet=unet, torch_dtype=torch.float16, variant="fp16").to("cuda")
|
47 |
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
|
48 |
prompt="a photo of a cat"
|
49 |
+
|
50 |
+
# LCMScheduler's default timesteps are different from the one we used for training
|
51 |
+
image=pipe(prompt=prompt, num_inference_steps=4, guidance_scale=0, timesteps=[999, 749, 499, 249]).images[0]
|
52 |
```
|
53 |
|
54 |
#### 1-step generation
|