Vasudevakrishna commited on
Commit
2fe168c
1 Parent(s): efdf41c

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +5 -1
utils.py CHANGED
@@ -146,4 +146,8 @@ def generate_gradio_images(prompt, num_inference_steps, loss_flag = False):
146
  for seed_no, sd in zip(seed_list, sdconcepts):
147
  prompts = [f'{prompt} {sd}']
148
  latents = generate_latents(prompts,num_inference_steps, seed_no, loss_apply=loss_flag)
149
- latents_list.append(latents)
 
 
 
 
 
146
  for seed_no, sd in zip(seed_list, sdconcepts):
147
  prompts = [f'{prompt} {sd}']
148
  latents = generate_latents(prompts,num_inference_steps, seed_no, loss_apply=loss_flag)
149
+ latents_list.append(latents)
150
+ # show all
151
+ latents_list = torch.vstack(latents_list)
152
+ images = latents_to_pil(latents_list)
153
+ return images