Spaces:
Sleeping
Sleeping
typo
Browse files
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 |
-
|
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")
|