Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
refactor: remove unused graph validation helpers
JPPhotoceceace3ab4a
diff --git a/invokeai/app/services/shared/graph_validation.py b/invokeai/app/services/shared/graph_validation.pyindex 650536abb1..36bcba1bc7 100644--- a/invokeai/app/services/shared/graph_validation.py+++ b/invokeai/app/services/shared/graph_validation.py@@ -752,9 +752,6 @@ class Graph(BaseModel):self._add_edge(edge, allow_inputless_source_collector=False)- def _add_execution_edge(self, edge: Edge) -> None:- self._add_edge(edge, allow_inputless_source_collector=True)-def _add_edge(self, edge: Edge, allow_inputless_source_collector: bool) -> None:self._validate_edge(edge, allow_inputless_source_collector)if edge not in self.edges:@@ -1161,14 +1158,6 @@ class Graph(BaseModel):return Nonereturn linkage_edges[0].destination.node_id- def _get_linked_for_id(self, return_node_id: str) -> str | None:- linkage_edges = [- edge for edge in self._get_loop_linkage_edges(return_node_id) if edge.destination.node_id == return_node_id- ]- if len(linkage_edges) != 1:- return None- return linkage_edges[0].source.node_id-def _get_for_iteration_output_edges(self, node_id: str) -> list[Edge]:node = self.get_node(node_id)return [