Cleanup memory after model run

This commit is contained in:
Sergey Borisov 2023-09-01 20:50:39 +03:00
parent 1a9f552a75
commit 5151798a16

View File

@ -53,5 +53,6 @@ class LaMA:
del model
gc.collect()
torch.cuda.empty_cache()
return infilled_image