Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

object_info now returns if node is an output_node or not.

comfyanonymousdb27b0405a31
diff --git a/server.py b/server.py
index 8429a63fb..c0f79cbd5 100644
--- a/server.py
+++ b/server.py
@@ -272,6 +272,11 @@ class PromptServer():
info['display_name'] = nodes.NODE_DISPLAY_NAME_MAPPINGS[node_class] if node_class in nodes.NODE_DISPLAY_NAME_MAPPINGS.keys() else node_class
info['description'] = ''
info['category'] = 'sd'
+ if hasattr(obj_class, 'OUTPUT_NODE') and obj_class.OUTPUT_NODE == True:
+ info['output_node'] = True
+ else:
+ info['output_node'] = False
+
if hasattr(obj_class, 'CATEGORY'):
info['category'] = obj_class.CATEGORY
return info