Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,8 @@ def generate_image(prompt, ckpt):
|
|
40 |
pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
|
41 |
loaded = num_inference_steps
|
42 |
|
43 |
-
|
|
|
44 |
results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=timesteps)
|
45 |
|
46 |
|
|
|
40 |
pipe.unet.load_state_dict(torch.load(hf_hub_download(repo, checkpoint), map_location="cuda"))
|
41 |
loaded = num_inference_steps
|
42 |
|
43 |
+
if num_inference_steps == 1:
|
44 |
+
timesteps = [399]
|
45 |
results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=timesteps)
|
46 |
|
47 |
|