alexnasa commited on
Commit
1df9ccd
·
verified ·
1 Parent(s): 9fb2d90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -215,13 +215,13 @@ def reconstruct(input_img, caption):
215
 
216
  update_scale(12)
217
 
218
- real_cpu = real_image_initial_latents.detach().cpu()
219
- inversed_cpu = [x.detach().cpu() for x in inversed_latents]
220
 
221
  return image_np, caption, 12, [
222
  caption,
223
- real_cpu,
224
- inversed_cpu,
225
  weights
226
  ]
227
 
 
215
 
216
  update_scale(12)
217
 
218
+ real_gpu = real_image_initial_latents.detach()
219
+ inversed_gpu = [x.detach() for x in inversed_latents]
220
 
221
  return image_np, caption, 12, [
222
  caption,
223
+ real_gpu,
224
+ inversed_gpu,
225
  weights
226
  ]
227