Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

empty cache after execute()

masterpiecebestquality3a83da7281b5
diff --git a/main.py b/main.py
index a162e1ed3..54c66dac6 100644
--- a/main.py
+++ b/main.py
@@ -209,6 +209,7 @@ class PromptExecutor:
executed = set(executed)
for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x])
+ torch.cuda.empty_cache()
def validate_inputs(prompt, item):
unique_id = item