Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -182,7 +182,7 @@ def infer(ref_style_file, style_description, caption, progress):
|
|
182 |
lam_style=1, lam_txt_alignment=1.0,
|
183 |
use_ddim_sampler=True,
|
184 |
)
|
185 |
-
for (sampled_c, _, _) in
|
186 |
sampled_c = sampled_c
|
187 |
|
188 |
progress(0.7, "Starting Stage B reverse process")
|
@@ -195,7 +195,7 @@ def infer(ref_style_file, style_description, caption, progress):
|
|
195 |
models_b.generator, conditions_b, stage_b_latent_shape,
|
196 |
unconditions_b, device=device, **extras_b.sampling_configs,
|
197 |
)
|
198 |
-
for (sampled_b, _, _) in
|
199 |
sampled_b = sampled_b
|
200 |
sampled = models_b.stage_a.decode(sampled_b).float()
|
201 |
|
|
|
182 |
lam_style=1, lam_txt_alignment=1.0,
|
183 |
use_ddim_sampler=True,
|
184 |
)
|
185 |
+
for (sampled_c, _, _) in enumerate(tqdm(sampling_c, total=extras.sampling_configs['timesteps']), 1):
|
186 |
sampled_c = sampled_c
|
187 |
|
188 |
progress(0.7, "Starting Stage B reverse process")
|
|
|
195 |
models_b.generator, conditions_b, stage_b_latent_shape,
|
196 |
unconditions_b, device=device, **extras_b.sampling_configs,
|
197 |
)
|
198 |
+
for (sampled_b, _, _) in enumerate(tqdm(sampling_b, total=extras_b.sampling_configs['timesteps']), 1):
|
199 |
sampled_b = sampled_b
|
200 |
sampled = models_b.stage_a.decode(sampled_b).float()
|
201 |
|