INNER CODE UNIT · Python

NODE_CLASS_MAPPINGS

gokayfem/ComfyUI-fal-API · __init__.py:28

    NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
    NODE_DISPLAY_NAME_MAPPINGS = {
        **NODE_DISPLAY_NAME_MAPPINGS,
        **imported_module.NODE_DISPLAY_NAME_MAPPINGS,
    }

try:
    from .nodes.dynamic import get_dynamic_mappings

    dyn_classes, dyn_display = get_dynamic_mappings()
    # static nodes win on any key collision
    for k, v in dyn_classes.items():
        NODE_CLASS_MAPPINGS.setdefault(k, v)
    for k, v in dyn_display.items():
        NODE_DISPLAY_NAME_MAPPINGS.setdefault(k, v)
except Exception as _dynamic_error:  # never break static nodes
    import logging

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…