Spaces:
Running
on
Zero
Running
on
Zero
| """ | |
| @author: Dr.Lt.Data | |
| @title: Inspire Pack | |
| @nickname: Inspire Pack | |
| @description: This extension provides various nodes to support Lora Block Weight, Regional Nodes, Backend Cache, Prompt Utils, List Utils and the Impact Pack. | |
| """ | |
| import importlib | |
| version_code = [1, 14] | |
| version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') | |
| print(f"### Loading: ComfyUI-Inspire-Pack ({version_str})") | |
| node_list = [ | |
| "lora_block_weight", | |
| "segs_support", | |
| "a1111_compat", | |
| "prompt_support", | |
| "inspire_server", | |
| "image_util", | |
| "regional_nodes", | |
| "sampler_nodes", | |
| "backend_support", | |
| "list_nodes", | |
| "conditioning_nodes", | |
| "model_nodes", | |
| "util_nodes" | |
| ] | |
| NODE_CLASS_MAPPINGS = {} | |
| NODE_DISPLAY_NAME_MAPPINGS = {} | |
| for module_name in node_list: | |
| imported_module = importlib.import_module(".inspire.{}".format(module_name), __name__) | |
| 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} | |
| WEB_DIRECTORY = "./js" | |
| __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] | |
| try: | |
| import cm_global | |
| cm_global.register_extension('ComfyUI-Inspire-Pack', | |
| {'version': version_code, | |
| 'name': 'Inspire Pack', | |
| 'nodes': set(NODE_CLASS_MAPPINGS.keys()), | |
| 'description': 'This extension provides various nodes to support Lora Block Weight and the Impact Pack. Provides many easily applicable regional features and applications for Variation Seed.', }) | |
| except: | |
| pass | |