Files
livepeer-ComfyUI-Stream-Pack/__init__.py
T
Rick Staa 87e609d13a feat(node): expose Feature Bank node in ComfyUI
This commit sets up the necessary files to integrate the Feature Bank node
into ComfyUI, making it available for use.
2025-03-13 20:21:45 +01:00

19 lines
661 B
Python

"""ComfyUI Stream Pack Nodes."""
from .node_wrappers import feature_bank
# Collect all NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS from submodules.
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
# Import and update mappings from submodules.
for module in [feature_bank]:
if hasattr(module, "NODE_CLASS_MAPPINGS"):
NODE_CLASS_MAPPINGS.update(module.NODE_CLASS_MAPPINGS)
if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS"):
NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS)
NODE_DISPLAY_NAME_MAPPINGS["StreamPack"] = "Stream Pack Nodes"
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']