Move a few files from comfy -> comfy_execution.

Python code in the comfy folder should not import things from outside it.
This commit is contained in:
comfyanonymous 2024-08-15 09:37:30 -04:00
parent 5cfe38f41c
commit 5960f946a9
8 changed files with 11 additions and 12 deletions

View File

@ -1,10 +1,10 @@
import itertools
from typing import Sequence, Mapping
from comfy.graph import DynamicPrompt
from comfy_execution.graph import DynamicPrompt
import nodes
from comfy.graph_utils import is_link
from comfy_execution.graph_utils import is_link
class CacheKeySet:
def __init__(self, dynprompt, node_ids, is_changed_cache):

View File

@ -1,6 +1,6 @@
import nodes
from comfy.graph_utils import is_link
from comfy_execution.graph_utils import is_link
class DependencyCycleError(Exception):
pass

View File

@ -13,10 +13,9 @@ import torch
import nodes
import 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, CacheKeySetID
from comfy.cli_args import args
class ExecutionResult(Enum):

View File

@ -13,7 +13,7 @@ import uuid
import urllib.request
import urllib.parse
import urllib.error
from comfy.graph_utils import GraphBuilder, Node
from comfy_execution.graph_utils import GraphBuilder, Node
class RunResult:
def __init__(self, prompt_id: str):

View File

@ -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 ExecutionBlocker
from .tools import VariantSupport
NUM_FLOW_SOCKETS = 5

View File

@ -1,6 +1,6 @@
import torch
from .tools import VariantSupport
from comfy.graph_utils import GraphBuilder
from comfy_execution.graph_utils import GraphBuilder
class TestLazyMixImages:
@classmethod

View File

@ -1,4 +1,4 @@
from comfy.graph_utils import GraphBuilder
from comfy_execution.graph_utils import GraphBuilder
from .tools import VariantSupport
@VariantSupport()