mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Cleanup memory after model run
This commit is contained in:
parent
1a9f552a75
commit
5151798a16
@ -53,5 +53,6 @@ class LaMA:
|
||||
|
||||
del model
|
||||
gc.collect()
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
return infilled_image
|
||||
|
Loading…
Reference in New Issue
Block a user