Download custom_nodes/ComfyUI_experiments/__init__.py from StupidGame/MyComfySetUp: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/ComfyUI_experiments/__init__.py
- Command line
-
hf download hf://StupidGame/MyComfySetUp/custom_nodes/ComfyUI_experiments/__init__.py
-
curl -L -o __init__.py https://huggingface.co/StupidGame/MyComfySetUp/resolve/main/custom_nodes/ComfyUI_experiments/__init__.py
753 Bytes
| import importlib | |
| import os | |
| node_list = [ #Add list of .py files containing nodes here | |
| "advanced_model_merging", | |
| "reference_only", | |
| "sampler_rescalecfg", | |
| "sampler_tonemap", | |
| "sampler_tonemap_rescalecfg", | |
| "sdxl_model_merging" | |
| ] | |
| NODE_CLASS_MAPPINGS = {} | |
| NODE_DISPLAY_NAME_MAPPINGS = {} | |
| for module_name in node_list: | |
| imported_module = importlib.import_module(".{}".format(module_name), __name__) | |
| NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS} | |
| if hasattr(imported_module, "NODE_DISPLAY_NAME_MAPPINGS"): | |
| NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS} | |
| __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] | |