The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Move a few files from comfy -> comfy_execution.
comfyanonymous5960f946a935
diff --git a/comfy/caching.py b/comfy_execution/caching.pysimilarity index 99%rename from comfy/caching.pyrename to comfy_execution/caching.pyindex abcf68ae4..6664a3428 100644--- a/comfy/caching.py+++ b/comfy_execution/caching.py@@ -1,10 +1,10 @@import itertoolsfrom typing import Sequence, Mapping-from comfy.graph import DynamicPrompt+from comfy_execution.graph import DynamicPromptimport nodes-from comfy.graph_utils import is_link+from comfy_execution.graph_utils import is_linkclass CacheKeySet:def __init__(self, dynprompt, node_ids, is_changed_cache):diff --git a/comfy/graph.py b/comfy_execution/graph.pysimilarity index 99%rename from comfy/graph.pyrename to comfy_execution/graph.pyindex 8980c693c..303ccae31 100644--- a/comfy/graph.py+++ b/comfy_execution/graph.py@@ -1,6 +1,6 @@import nodes-from comfy.graph_utils import is_link+from comfy_execution.graph_utils import is_linkclass DependencyCycleError(Exception):passdiff --git a/comfy/graph_utils.py b/comfy_execution/graph_utils.pysimilarity index 100%rename from comfy/graph_utils.pyrename to comfy_execution/graph_utils.pydiff --git a/execution.py b/execution.pyindex ee6758933..9018ddabb 100644--- a/execution.py+++ b/execution.py@@ -13,10 +13,9 @@ import torchimport nodesimport comfy.model_management-import comfy.graph_utils-from comfy.graph import get_input_info, ExecutionList, DynamicPrompt, ExecutionBlocker-from comfy.graph_utils import is_link, GraphBuilder-from comfy.caching import HierarchicalCache, LRUCache, CacheKeySetInputSignature, CacheKeySetID+from comfy_execution.graph import get_input_info, ExecutionList, DynamicPrompt, ExecutionBlocker+from comfy_execution.graph_utils import is_link, GraphBuilder+from comfy_execution.caching import HierarchicalCache, LRUCache, CacheKeySetInputSignature, CacheKeySetIDfrom comfy.cli_args import argsclass ExecutionResult(Enum):diff --git a/tests/inference/test_execution.py b/tests/inference/test_execution.pyindex 8616ca1e8..9df1d7df8 100644--- a/tests/inference/test_execution.py+++ b/tests/inference/test_execution.py@@ -13,7 +13,7 @@ import uuidimport urllib.requestimport urllib.parseimport urllib.error-from comfy.graph_utils import GraphBuilder, Node+from comfy_execution.graph_utils import GraphBuilder, Nodeclass RunResult:def __init__(self, prompt_id: str):diff --git a/tests/inference/testing_nodes/testing-pack/flow_control.py b/tests/inference/testing_nodes/testing-pack/flow_control.pyindex 1ef1cf803..ba943be60 100644--- a/tests/inference/testing_nodes/testing-pack/flow_control.py+++ b/tests/inference/testing_nodes/testing-pack/flow_control.py@@ -1,5 +1,5 @@-from comfy.graph_utils import GraphBuilder, is_link-from comfy.graph import ExecutionBlocker+from comfy_execution.graph_utils import GraphBuilder, is_link+from comfy_execution.graph import ExecutionBlockerfrom .tools import VariantSupportNUM_FLOW_SOCKETS = 5diff --git a/tests/inference/testing_nodes/testing-pack/specific_tests.py b/tests/inference/testing_nodes/testing-pack/specific_tests.pyindex 5884cae0c..b961d1b63 100644--- a/tests/inference/testing_nodes/testing-pack/specific_tests.py+++ b/tests/inference/testing_nodes/testing-pack/specific_tests.py@@ -1,6 +1,6 @@import torchfrom .tools import VariantSupport-from comfy.graph_utils import GraphBuilder+from comfy_execution.graph_utils import GraphBuilderclass TestLazyMixImages:@classmethoddiff --git a/tests/inference/testing_nodes/testing-pack/util.py b/tests/inference/testing_nodes/testing-pack/util.pyindex fea83e37a..ca116c16e 100644--- a/tests/inference/testing_nodes/testing-pack/util.py+++ b/tests/inference/testing_nodes/testing-pack/util.py@@ -1,4 +1,4 @@-from comfy.graph_utils import GraphBuilder+from comfy_execution.graph_utils import GraphBuilderfrom .tools import VariantSupport@VariantSupport()