The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Use inference_mode instead of no_grad.
comfyanonymousf67c00622f12
diff --git a/execution.py b/execution.pyindex 30eeb6304..757e0d9f9 100644--- a/execution.py+++ b/execution.py@@ -143,7 +143,7 @@ class PromptExecutor:else:self.server.client_id = None- with torch.no_grad():+ with torch.inference_mode():for x in prompt:recursive_output_delete_if_changed(prompt, self.old_prompt, self.outputs, x)