From 728ce94ad27f9c43a69f707dbbef0bbe4e0f96c8 Mon Sep 17 00:00:00 2001 From: AccidentallyOnPurpose <4935931+AccidentallyOnPurpose@users.noreply.github.com> Date: Tue, 24 Dec 2019 09:03:06 +0000 Subject: [PATCH] possibly help with out of mem --- play.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/play.py b/play.py index ae7fd18..9004bd7 100644 --- a/play.py +++ b/play.py @@ -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