zhiweili
commited on
Commit
·
10cf594
1
Parent(s):
09b8263
apply num_inference_steps
Browse files- app_upscale.py +5 -1
app_upscale.py
CHANGED
|
@@ -35,7 +35,11 @@ def create_demo() -> gr.Blocks:
|
|
| 35 |
time_cost_str = ''
|
| 36 |
run_task_time = 0
|
| 37 |
run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
|
| 38 |
-
upscaled_image = upscale_pipe(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
|
| 40 |
|
| 41 |
return upscaled_image, time_cost_str
|
|
|
|
| 35 |
time_cost_str = ''
|
| 36 |
run_task_time = 0
|
| 37 |
run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
|
| 38 |
+
upscaled_image = upscale_pipe(
|
| 39 |
+
prompt=prompt,
|
| 40 |
+
image=input_image,
|
| 41 |
+
num_inference_steps=num_inference_steps,
|
| 42 |
+
).images[0]
|
| 43 |
run_task_time, time_cost_str = get_time_cost(run_task_time, time_cost_str)
|
| 44 |
|
| 45 |
return upscaled_image, time_cost_str
|