msong97 commited on
Commit
f3bcaf9
·
1 Parent(s): 384859e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ def generate_imgs(x: torch.Tensor,
122
  out_baseline_pil = to_pil(process_img(out_baseline)[0].to('cpu'))
123
 
124
 
125
- # Free memory
126
  del x, y, out, out_baseline, y_plot
127
  torch.cuda.empty_cache()
128
  print(f"[After inference] CUDA current allocated: {torch.cuda.memory_allocated() / 1024**2:.2f} MB")
 
122
  out_baseline_pil = to_pil(process_img(out_baseline)[0].to('cpu'))
123
 
124
 
125
+ ### Free memory
126
  del x, y, out, out_baseline, y_plot
127
  torch.cuda.empty_cache()
128
  print(f"[After inference] CUDA current allocated: {torch.cuda.memory_allocated() / 1024**2:.2f} MB")