Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,11 @@ def generate_image(prompt, ckpt="4-Step"):
|
|
42 |
loaded = num_inference_steps
|
43 |
|
44 |
if loaded == 1:
|
45 |
-
|
46 |
else:
|
47 |
-
|
48 |
-
|
49 |
|
|
|
50 |
return results.images[0]
|
51 |
|
52 |
|
|
|
42 |
loaded = num_inference_steps
|
43 |
|
44 |
if loaded == 1:
|
45 |
+
timesteps=[399]
|
46 |
else:
|
47 |
+
timesteps=[999, 749, 499, 249]
|
|
|
48 |
|
49 |
+
results = pipe(prompt, num_inference_steps=num_inference_steps, guidance_scale=0, timesteps=timesteps)
|
50 |
return results.images[0]
|
51 |
|
52 |
|