Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def generate_image(prompt, ckpt):
|
|
36 |
num_inference_steps = checkpoints[ckpt][1]
|
37 |
|
38 |
if loaded != num_inference_steps:
|
39 |
-
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing"
|
40 |
pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
|
41 |
loaded = num_inference_steps
|
42 |
|
|
|
36 |
num_inference_steps = checkpoints[ckpt][1]
|
37 |
|
38 |
if loaded != num_inference_steps:
|
39 |
+
pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
40 |
pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
|
41 |
loaded = num_inference_steps
|
42 |
|