The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
model_prefetch: syncrhonize all graph cleanups (#17178)
rattus7db08fe50232
diff --git a/comfy/model_prefetch.py b/comfy/model_prefetch.pyindex 2b5cd042a..54edb4c36 100644--- a/comfy/model_prefetch.py+++ b/comfy/model_prefetch.py@@ -97,6 +97,8 @@ def cleanup_malloc_graph():if graph._comfy_active:graph.abort()graph._comfy_active = False+ else:+ comfy.model_management.synchronize()for module in graph._comfy_cuda_graph_modules:_drop_graph(module)MALLOC_GRAPH_ROGUES += graph.rogue_count