mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-10 11:40:48 +08:00
possibly help with out of mem
This commit is contained in:
@@ -128,6 +128,10 @@ def play():
|
||||
colPrint("Go to https://github.com/cloveranon/Clover-Edition/ or email cloveranon@nuke.africa for bug reports, help, and feature requests.", colors['subsubtitle'])
|
||||
|
||||
while True:
|
||||
# May be needed to avoid out of mem
|
||||
gc.collect()
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
if story_manager.story != None:
|
||||
del story_manager.story
|
||||
|
||||
|
||||
Reference in New Issue
Block a user