Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ def generate_image(prompt_embeds, image_list, width, height, num_inference_steps
|
|
| 183 |
|
| 184 |
def callback_fn(pipe, step, timestep, callback_kwargs):
|
| 185 |
print(f"[Step {step}] Timestep: {timestep}")
|
| 186 |
-
progress_value = (step+1.0)/num_inference_steps
|
| 187 |
progress(progress_value, desc=f"Image generating, {step + 1}/{num_inference_steps} steps")
|
| 188 |
return callback_kwargs
|
| 189 |
|
|
|
|
| 183 |
|
| 184 |
def callback_fn(pipe, step, timestep, callback_kwargs):
|
| 185 |
print(f"[Step {step}] Timestep: {timestep}")
|
| 186 |
+
progress_value = 0.3+((step+1.0)/num_inference_steps)*0.7
|
| 187 |
progress(progress_value, desc=f"Image generating, {step + 1}/{num_inference_steps} steps")
|
| 188 |
return callback_kwargs
|
| 189 |
|