{ "AIO_Preprocessor": { "class_name": "AIO_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "__init__.py", "source_proof": { "name": "__init__.py", "flags": 0, "method": 8, "crc32": 280110504, "compressed_bytes": 2888, "bytes": 8822, "local_offset": 252534, "sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4", "file": "release-members/__init__.py", "retrieved_at": "2026-11-01T22:32:39.614355+00:00", "header_request": "member-00-header", "name_request": "member-00-name", "data_request": "member-00-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "preprocessor": { "type": "COMBO", "options": null, "default": "none", "default_known": true, "dynamic_options": true, "declaration": "INPUT.COMBO(PREPROCESSOR_OPTIONS, default=\"none\")" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 209, 216 ], "text": "NODE_CLASS_MAPPINGS = {\n **AUX_NODE_MAPPINGS,\n \"AIO_Preprocessor\": AIO_Preprocessor,\n \"ControlNetPreprocessorSelector\": ControlNetPreprocessorSelector,\n **HIE_NODE_CLASS_MAPPINGS,\n \"ExecuteAllControlNetPreprocessors\": ExecuteAllControlNetPreprocessors,\n \"ControlNetAuxSimpleAddText\": ControlNetAuxSimpleAddText\n}", "utf8_sha256": "538872bb50924b10b422eca1496b9203d5c19ba77ae6572b76141976fd824461" }, "class_excerpt": { "lines": [ 84, 130 ], "text": "class AIO_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n preprocessor=INPUT.COMBO(PREPROCESSOR_OPTIONS, default=\"none\"),\n resolution=INPUT.RESOLUTION()\n )\n\n RETURN_TYPES = (\"IMAGE\",)\n FUNCTION = \"execute\"\n\n CATEGORY = \"ControlNet Preprocessors\"\n\n def execute(self, preprocessor, image, resolution=512):\n if preprocessor == \"none\":\n return (image, )\n else:\n aux_class = AUX_NODE_MAPPINGS[preprocessor]\n input_types = aux_class.INPUT_TYPES()\n input_types = {\n **input_types[\"required\"],\n **(input_types[\"optional\"] if \"optional\" in input_types else {})\n }\n params = {}\n for name, input_type in input_types.items():\n if name == \"image\":\n params[name] = image\n continue\n\n if name == \"resolution\":\n params[name] = resolution\n continue\n\n if len(input_type) == 2 and (\"default\" in input_type[1]):\n params[name] = input_type[1][\"default\"]\n continue\n\n default_values = { \"INT\": 0, \"FLOAT\": 0.0 }\n if type(input_type[0]) is list:\n for input_type_value in input_type[0]:\n if input_type_value in default_values:\n params[name] = default_values[input_type[0]]\n else:\n if input_type[0] in default_values:\n params[name] = default_values[input_type[0]]\n\n return getattr(aux_class(), aux_class.FUNCTION)(**params)", "utf8_sha256": "029acfe42d66236c59dbd3b45647e8603125b454736d085faa1a4dbe92f758a0" }, "members": { "INPUT_TYPES": { "lines": [ 86, 90 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n preprocessor=INPUT.COMBO(PREPROCESSOR_OPTIONS, default=\"none\"),\n resolution=INPUT.RESOLUTION()\n )", "utf8_sha256": "a1eb70f9e872d492ff7daac360497cdfe80b390a96e3c2f89ff61e1a714d1e82" }, "execute": { "lines": [ 97, 130 ], "text": " def execute(self, preprocessor, image, resolution=512):\n if preprocessor == \"none\":\n return (image, )\n else:\n aux_class = AUX_NODE_MAPPINGS[preprocessor]\n input_types = aux_class.INPUT_TYPES()\n input_types = {\n **input_types[\"required\"],\n **(input_types[\"optional\"] if \"optional\" in input_types else {})\n }\n params = {}\n for name, input_type in input_types.items():\n if name == \"image\":\n params[name] = image\n continue\n\n if name == \"resolution\":\n params[name] = resolution\n continue\n\n if len(input_type) == 2 and (\"default\" in input_type[1]):\n params[name] = input_type[1][\"default\"]\n continue\n\n default_values = { \"INT\": 0, \"FLOAT\": 0.0 }\n if type(input_type[0]) is list:\n for input_type_value in input_type[0]:\n if input_type_value in default_values:\n params[name] = default_values[input_type[0]]\n else:\n if input_type[0] in default_values:\n params[name] = default_values[input_type[0]]\n\n return getattr(aux_class(), aux_class.FUNCTION)(**params)", "utf8_sha256": "ec45861f817c7416f049359b18a135671803063d776677b0cef9d3272cb8f1dc" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "FUNCTION": "execute" }, "bases": [], "function_defaults": { "execute": { "resolution": 512 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": "2026-10-29T15:47:36.895566+00:00", "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:39.614355+00:00" }, "DepthAnythingPreprocessor": { "class_name": "Depth_Anything_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/depth_anything.py", "source_proof": { "name": "node_wrappers/depth_anything.py", "flags": 0, "method": 8, "crc32": 481530161, "compressed_bytes": 628, "bytes": 2160, "local_offset": 25049098, "sha256": "f769ac091bd2725065f4d8cddc6fba9ae636d659d16c3d2a79b9c202b099ec17", "file": "release-members/node_wrappers__depth_anything.py", "retrieved_at": "2026-11-01T22:32:43.204603+00:00", "header_request": "member-05-header", "name_request": "member-05-name", "data_request": "member-05-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "ckpt_name": { "type": "COMBO", "options": [ "depth_anything_vitl14.pth", "depth_anything_vitb14.pth", "depth_anything_vits14.pth" ], "default": "depth_anything_vitl14.pth", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO(\n [\"depth_anything_vitl14.pth\", \"depth_anything_vitb14.pth\", \"depth_anything_vits14.pth\"]\n )" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 48, 51 ], "text": "NODE_CLASS_MAPPINGS = {\n \"DepthAnythingPreprocessor\": Depth_Anything_Preprocessor,\n \"Zoe_DepthAnythingPreprocessor\": Zoe_Depth_Anything_Preprocessor\n}", "utf8_sha256": "32cb818040ad3475dd3d017d49f351e75edefda3a75fe197a8d86e1eff09645e" }, "class_excerpt": { "lines": [ 4, 25 ], "text": "class Depth_Anything_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n ckpt_name=INPUT.COMBO(\n [\"depth_anything_vitl14.pth\", \"depth_anything_vitb14.pth\", \"depth_anything_vits14.pth\"]\n ),\n resolution=INPUT.RESOLUTION()\n )\n\n RETURN_TYPES = (\"IMAGE\",)\n FUNCTION = \"execute\"\n\n CATEGORY = \"ControlNet Preprocessors/Normal and Depth Estimators\"\n\n def execute(self, image, ckpt_name=\"depth_anything_vitl14.pth\", resolution=512, **kwargs):\n from custom_controlnet_aux.depth_anything import DepthAnythingDetector\n\n model = DepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device())\n out = common_annotator_call(model, image, resolution=resolution)\n del model\n return (out, )", "utf8_sha256": "f78c6da8dbf64097c294f90ae1c127f0703015d548cd791ffa9706f3efe6f79b" }, "members": { "INPUT_TYPES": { "lines": [ 6, 12 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n ckpt_name=INPUT.COMBO(\n [\"depth_anything_vitl14.pth\", \"depth_anything_vitb14.pth\", \"depth_anything_vits14.pth\"]\n ),\n resolution=INPUT.RESOLUTION()\n )", "utf8_sha256": "5736cc9fb3217d2d919d620690ca4131cf7134385e2fbe9b3998b53fc97fcac4" }, "execute": { "lines": [ 19, 25 ], "text": " def execute(self, image, ckpt_name=\"depth_anything_vitl14.pth\", resolution=512, **kwargs):\n from custom_controlnet_aux.depth_anything import DepthAnythingDetector\n\n model = DepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device())\n out = common_annotator_call(model, image, resolution=resolution)\n del model\n return (out, )", "utf8_sha256": "05813cf79cd446bbc9ad126a7c49f4ed42bade70fa32668947224313cd715b43" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "FUNCTION": "execute" }, "bases": [], "function_defaults": { "execute": { "ckpt_name": "depth_anything_vitl14.pth", "resolution": 512 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": "2026-10-29T15:47:36.895566+00:00", "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:43.204603+00:00" }, "CannyEdgePreprocessor": { "class_name": "Canny_Edge_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/canny.py", "source_proof": { "name": "node_wrappers/canny.py", "flags": 0, "method": 8, "crc32": 1129006603, "compressed_bytes": 449, "bytes": 992, "local_offset": 25047559, "sha256": "978dc783428aece63d04bfefb167790ffd6a7020ca4cc613da3b5287614d1fcc", "file": "release-members/node_wrappers__canny.py", "retrieved_at": "2026-11-01T22:32:43.949131+00:00", "header_request": "member-06-header", "name_request": "member-06-name", "data_request": "member-06-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "low_threshold": { "type": "INT", "default": 100, "min": 0, "max": 255, "step": 1, "default_known": true, "declaration": "INPUT.INT(default=100, max=255)" }, "high_threshold": { "type": "INT", "default": 200, "min": 0, "max": 255, "step": 1, "default_known": true, "declaration": "INPUT.INT(default=200, max=255)" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 25, 27 ], "text": "NODE_CLASS_MAPPINGS = {\n \"CannyEdgePreprocessor\": Canny_Edge_Preprocessor\n}", "utf8_sha256": "ff5639c0c11471b1d7dafca9520837346e3b728714a0db8ce4807a12a711410e" }, "class_excerpt": { "lines": [ 4, 21 ], "text": "class Canny_Edge_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n low_threshold=INPUT.INT(default=100, max=255),\n high_threshold=INPUT.INT(default=200, max=255),\n resolution=INPUT.RESOLUTION()\n )\n\n RETURN_TYPES = (\"IMAGE\",)\n FUNCTION = \"execute\"\n\n CATEGORY = \"ControlNet Preprocessors/Line Extractors\"\n\n def execute(self, image, low_threshold=100, high_threshold=200, resolution=512, **kwargs):\n from custom_controlnet_aux.canny import CannyDetector\n\n return (common_annotator_call(CannyDetector(), image, low_threshold=low_threshold, high_threshold=high_threshold, resolution=resolution), )", "utf8_sha256": "e50ebea3e94008e8972871ef71be96985188d3857219f6db77e26534fadd7e89" }, "members": { "INPUT_TYPES": { "lines": [ 6, 11 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n low_threshold=INPUT.INT(default=100, max=255),\n high_threshold=INPUT.INT(default=200, max=255),\n resolution=INPUT.RESOLUTION()\n )", "utf8_sha256": "83500e528a213517e64315726a9c56fe95fccaae8336a895513caa976368e9e1" }, "execute": { "lines": [ 18, 21 ], "text": " def execute(self, image, low_threshold=100, high_threshold=200, resolution=512, **kwargs):\n from custom_controlnet_aux.canny import CannyDetector\n\n return (common_annotator_call(CannyDetector(), image, low_threshold=low_threshold, high_threshold=high_threshold, resolution=resolution), )", "utf8_sha256": "95ab219f7a0f9693112c058005fc9ea28954490dfde54ab557c569e1f509727a" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "FUNCTION": "execute" }, "bases": [], "function_defaults": { "execute": { "low_threshold": 100, "high_threshold": 200, "resolution": 512 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:43.949131+00:00" }, "AnyLineArtPreprocessor_aux": { "class_name": "AnyLinePreprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/anyline.py", "source_proof": { "name": "node_wrappers/anyline.py", "flags": 0, "method": 8, "crc32": 3608155197, "compressed_bytes": 1341, "bytes": 4123, "local_offset": 25045682, "sha256": "552f22763ef0d3494d2a2e76f1d17e5798c7ebd0363feb80eb62918609e1a660", "file": "release-members/node_wrappers__anyline.py", "retrieved_at": "2026-11-01T22:32:44.699007+00:00", "header_request": "member-07-header", "name_request": "member-07-name", "data_request": "member-07-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "merge_with_lineart": { "type": "COMBO", "options": [ "lineart_standard", "lineart_realisitic", "lineart_anime", "manga_line" ], "default": "lineart_standard", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO([\"lineart_standard\", \"lineart_realisitic\", \"lineart_anime\", \"manga_line\"], default=\"lineart_standard\")" }, "resolution": { "type": "INT", "default": 1280, "min": 64, "max": 16384, "step": 8, "default_known": true, "declaration": "INPUT.RESOLUTION(default=1280, step=8)" }, "lineart_lower_bound": { "type": "FLOAT", "default": 0, "min": 0, "max": 1, "step": 0.01, "default_known": true, "declaration": "INPUT.FLOAT(default=0)" }, "lineart_upper_bound": { "type": "FLOAT", "default": 1, "min": 0, "max": 1, "step": 0.01, "default_known": true, "declaration": "INPUT.FLOAT(default=1)" }, "object_min_size": { "type": "INT", "default": 36, "min": 1, "max": 16384, "step": 1, "default_known": true, "declaration": "INPUT.INT(default=36, min=1)" }, "object_connectivity": { "type": "INT", "default": 1, "min": 1, "max": 16384, "step": 1, "default_known": true, "declaration": "INPUT.INT(default=1, min=1)" } }, "registration": { "lines": [ 82, 84 ], "text": "NODE_CLASS_MAPPINGS = {\n \"AnyLineArtPreprocessor_aux\": AnyLinePreprocessor\n}", "utf8_sha256": "a371ef78d14d0e49fba39822319d4b666d2f4ea2d856d008098db2be0065f730" }, "class_excerpt": { "lines": [ 21, 80 ], "text": "class AnyLinePreprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n merge_with_lineart=INPUT.COMBO([\"lineart_standard\", \"lineart_realisitic\", \"lineart_anime\", \"manga_line\"], default=\"lineart_standard\"),\n resolution=INPUT.RESOLUTION(default=1280, step=8),\n lineart_lower_bound=INPUT.FLOAT(default=0),\n lineart_upper_bound=INPUT.FLOAT(default=1),\n object_min_size=INPUT.INT(default=36, min=1),\n object_connectivity=INPUT.INT(default=1, min=1)\n )\n\n RETURN_TYPES = (\"IMAGE\",)\n RETURN_NAMES = (\"image\",)\n\n FUNCTION = \"get_anyline\"\n CATEGORY = \"ControlNet Preprocessors/Line Extractors\"\n\n def __init__(self):\n self.device = model_management.get_torch_device()\n\n def get_anyline(self, image, merge_with_lineart=\"lineart_standard\", resolution=512, lineart_lower_bound=0, lineart_upper_bound=1, object_min_size=36, object_connectivity=1):\n from custom_controlnet_aux.teed import TEDDetector\n from skimage import morphology\n pbar = comfy.utils.ProgressBar(3)\n\n # Process the image with MTEED model\n mteed_model = TEDDetector.from_pretrained(\"TheMistoAI/MistoLine\", \"MTEED.pth\", subfolder=\"Anyline\").to(self.device)\n mteed_result = common_annotator_call(mteed_model, image, resolution=resolution, show_pbar=False)\n mteed_result = mteed_result.numpy()\n del mteed_model\n pbar.update(1)\n\n # Process the image with the lineart standard preprocessor\n if merge_with_lineart == \"lineart_standard\":\n from custom_controlnet_aux.lineart_standard import LineartStandardDetector\n lineart_standard_detector = LineartStandardDetector()\n lineart_result = common_annotator_call(lineart_standard_detector, image, guassian_sigma=2, intensity_threshold=3, resolution=resolution, show_pbar=False).numpy()\n del lineart_standard_detector\n else:\n from custom_controlnet_aux.lineart import LineartDetector\n from custom_controlnet_aux.lineart_anime import LineartAnimeDetector\n from custom_controlnet_aux.manga_line import LineartMangaDetector\n lineart_detector = dict(lineart_realisitic=LineartDetector, lineart_anime=LineartAnimeDetector, manga_line=LineartMangaDetector)[merge_with_lineart]\n lineart_detector = lineart_detector.from_pretrained().to(self.device)\n lineart_result = common_annotator_call(lineart_detector, image, resolution=resolution, show_pbar=False).numpy()\n del lineart_detector\n pbar.update(1)\n \n final_result = []\n for i in range(len(image)):\n _lineart_result = get_intensity_mask(lineart_result[i], lower_bound=lineart_lower_bound, upper_bound=lineart_upper_bound)\n _cleaned = morphology.remove_small_objects(_lineart_result.astype(bool), min_size=object_min_size, connectivity=object_connectivity)\n _lineart_result = _lineart_result * _cleaned\n _mteed_result = mteed_result[i]\n\n # Combine the results\n final_result.append(torch.from_numpy(combine_layers(_mteed_result, _lineart_result)))\n pbar.update(1)\n return (torch.stack(final_result),)", "utf8_sha256": "1bd29b68fa9e10e56e5c5482f335f927e1229d36f37b7db8a791bf81e40e9cab" }, "members": { "INPUT_TYPES": { "lines": [ 23, 31 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n merge_with_lineart=INPUT.COMBO([\"lineart_standard\", \"lineart_realisitic\", \"lineart_anime\", \"manga_line\"], default=\"lineart_standard\"),\n resolution=INPUT.RESOLUTION(default=1280, step=8),\n lineart_lower_bound=INPUT.FLOAT(default=0),\n lineart_upper_bound=INPUT.FLOAT(default=1),\n object_min_size=INPUT.INT(default=36, min=1),\n object_connectivity=INPUT.INT(default=1, min=1)\n )", "utf8_sha256": "a947cb3625f5ebed64ade6246e9e50f48ba7d15ca018b291873319526b00074a" }, "__init__": { "lines": [ 39, 40 ], "text": " def __init__(self):\n self.device = model_management.get_torch_device()", "utf8_sha256": "10d6add4464ad1fcb8bff11c7a4e9f094b22945108837bb7e04fffae5f787b01" }, "get_anyline": { "lines": [ 42, 80 ], "text": " def get_anyline(self, image, merge_with_lineart=\"lineart_standard\", resolution=512, lineart_lower_bound=0, lineart_upper_bound=1, object_min_size=36, object_connectivity=1):\n from custom_controlnet_aux.teed import TEDDetector\n from skimage import morphology\n pbar = comfy.utils.ProgressBar(3)\n\n # Process the image with MTEED model\n mteed_model = TEDDetector.from_pretrained(\"TheMistoAI/MistoLine\", \"MTEED.pth\", subfolder=\"Anyline\").to(self.device)\n mteed_result = common_annotator_call(mteed_model, image, resolution=resolution, show_pbar=False)\n mteed_result = mteed_result.numpy()\n del mteed_model\n pbar.update(1)\n\n # Process the image with the lineart standard preprocessor\n if merge_with_lineart == \"lineart_standard\":\n from custom_controlnet_aux.lineart_standard import LineartStandardDetector\n lineart_standard_detector = LineartStandardDetector()\n lineart_result = common_annotator_call(lineart_standard_detector, image, guassian_sigma=2, intensity_threshold=3, resolution=resolution, show_pbar=False).numpy()\n del lineart_standard_detector\n else:\n from custom_controlnet_aux.lineart import LineartDetector\n from custom_controlnet_aux.lineart_anime import LineartAnimeDetector\n from custom_controlnet_aux.manga_line import LineartMangaDetector\n lineart_detector = dict(lineart_realisitic=LineartDetector, lineart_anime=LineartAnimeDetector, manga_line=LineartMangaDetector)[merge_with_lineart]\n lineart_detector = lineart_detector.from_pretrained().to(self.device)\n lineart_result = common_annotator_call(lineart_detector, image, resolution=resolution, show_pbar=False).numpy()\n del lineart_detector\n pbar.update(1)\n \n final_result = []\n for i in range(len(image)):\n _lineart_result = get_intensity_mask(lineart_result[i], lower_bound=lineart_lower_bound, upper_bound=lineart_upper_bound)\n _cleaned = morphology.remove_small_objects(_lineart_result.astype(bool), min_size=object_min_size, connectivity=object_connectivity)\n _lineart_result = _lineart_result * _cleaned\n _mteed_result = mteed_result[i]\n\n # Combine the results\n final_result.append(torch.from_numpy(combine_layers(_mteed_result, _lineart_result)))\n pbar.update(1)\n return (torch.stack(final_result),)", "utf8_sha256": "b88331116a75cab1b54eaaf0efa22229d5c752ffbed4b43ea91abf096dbbb7f7" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "RETURN_NAMES": [ "image" ], "FUNCTION": "get_anyline" }, "bases": [], "function_defaults": { "get_anyline": { "merge_with_lineart": "lineart_standard", "resolution": 512, "lineart_lower_bound": 0, "lineart_upper_bound": 1, "object_min_size": 36, "object_connectivity": 1 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:44.699007+00:00" }, "LineArtPreprocessor": { "class_name": "LineArt_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/lineart.py", "source_proof": { "name": "node_wrappers/lineart.py", "flags": 0, "method": 8, "crc32": 2261764289, "compressed_bytes": 483, "bytes": 985, "local_offset": 25055355, "sha256": "24efe04f9ee3a9b932adddf52f60a659b6d3c95991fec5f9182b7fde955e7ffa", "file": "release-members/node_wrappers__lineart.py", "retrieved_at": "2026-11-01T22:32:45.457561+00:00", "header_request": "member-08-header", "name_request": "member-08-name", "data_request": "member-08-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "coarse": { "type": "COMBO", "options": [ "disable", "enable" ], "default": "disable", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO(([\"disable\", \"enable\"]))" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 25, 27 ], "text": "NODE_CLASS_MAPPINGS = {\n \"LineArtPreprocessor\": LineArt_Preprocessor\n}", "utf8_sha256": "4ef18b211cbccc2a89f49bd52a64eb250a6a5f0fb8006b32f1f63d9ec3f8d815" }, "class_excerpt": { "lines": [ 4, 23 ], "text": "class LineArt_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n coarse=INPUT.COMBO(([\"disable\", \"enable\"])),\n resolution=INPUT.RESOLUTION()\n )\n\n RETURN_TYPES = (\"IMAGE\",)\n FUNCTION = \"execute\"\n\n CATEGORY = \"ControlNet Preprocessors/Line Extractors\"\n\n def execute(self, image, resolution=512, **kwargs):\n from custom_controlnet_aux.lineart import LineartDetector\n\n model = LineartDetector.from_pretrained().to(model_management.get_torch_device())\n out = common_annotator_call(model, image, resolution=resolution, coarse = kwargs[\"coarse\"] == \"enable\")\n del model\n return (out, )", "utf8_sha256": "71e01fd43899bca523d72daa02840e8683520276d2af671e51fac3eb62757c7e" }, "members": { "INPUT_TYPES": { "lines": [ 6, 10 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n coarse=INPUT.COMBO(([\"disable\", \"enable\"])),\n resolution=INPUT.RESOLUTION()\n )", "utf8_sha256": "faa69cbabbffa21b1dbfb1776998ec8a5bad704b56a562a21dc165c5a31d3380" }, "execute": { "lines": [ 17, 23 ], "text": " def execute(self, image, resolution=512, **kwargs):\n from custom_controlnet_aux.lineart import LineartDetector\n\n model = LineartDetector.from_pretrained().to(model_management.get_torch_device())\n out = common_annotator_call(model, image, resolution=resolution, coarse = kwargs[\"coarse\"] == \"enable\")\n del model\n return (out, )", "utf8_sha256": "9d999150e4ca2a285ec2911686a15fb22dba0c4233f6994a65dd76774cd1cb53" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "FUNCTION": "execute" }, "bases": [], "function_defaults": { "execute": { "resolution": 512 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:45.457561+00:00" }, "AnimeLineArtPreprocessor": { "class_name": "AnimeLineArt_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/lineart_anime.py", "source_proof": { "name": "node_wrappers/lineart_anime.py", "flags": 0, "method": 8, "crc32": 671653680, "compressed_bytes": 435, "bytes": 899, "local_offset": 25055892, "sha256": "f85b6515705bfeb5a49215a1e345e7b522af90d87a9bd20e1313330fd7ceae7f", "file": "release-members/node_wrappers__lineart_anime.py", "retrieved_at": "2026-11-01T22:32:46.226938+00:00", "header_request": "member-09-header", "name_request": "member-09-name", "data_request": "member-09-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 22, 24 ], "text": "NODE_CLASS_MAPPINGS = {\n \"AnimeLineArtPreprocessor\": AnimeLineArt_Preprocessor\n}", "utf8_sha256": "af16c248d4ade84c354079560d5cfa307c69f44637a32d94f1407cf2168714d0" }, "class_excerpt": { "lines": [ 4, 20 ], "text": "class AnimeLineArt_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(resolution=INPUT.RESOLUTION())\n\n RETURN_TYPES = (\"IMAGE\",)\n FUNCTION = \"execute\"\n\n CATEGORY = \"ControlNet Preprocessors/Line Extractors\"\n\n def execute(self, image, resolution=512, **kwargs):\n from custom_controlnet_aux.lineart_anime import LineartAnimeDetector\n\n model = LineartAnimeDetector.from_pretrained().to(model_management.get_torch_device())\n out = common_annotator_call(model, image, resolution=resolution)\n del model\n return (out, )", "utf8_sha256": "8b4dd03cdc2eb92e7ba754d87574d8aa5fbe70695279182a24bd6535d8dccb17" }, "members": { "INPUT_TYPES": { "lines": [ 6, 7 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(resolution=INPUT.RESOLUTION())", "utf8_sha256": "f8924cc53a90311aa026879f0ed42ca3a63a470a6c96a06ca4e9b0b50660717d" }, "execute": { "lines": [ 14, 20 ], "text": " def execute(self, image, resolution=512, **kwargs):\n from custom_controlnet_aux.lineart_anime import LineartAnimeDetector\n\n model = LineartAnimeDetector.from_pretrained().to(model_management.get_torch_device())\n out = common_annotator_call(model, image, resolution=resolution)\n del model\n return (out, )", "utf8_sha256": "088e7d5a233388c9f0abc516e0929189ef144e235195b8dbe66a5e6ef6cbeddc" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "FUNCTION": "execute" }, "bases": [], "function_defaults": { "execute": { "resolution": 512 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:46.226938+00:00" }, "LineartStandardPreprocessor": { "class_name": "Lineart_Standard_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/lineart_standard.py", "source_proof": { "name": "node_wrappers/lineart_standard.py", "flags": 0, "method": 8, "crc32": 2798083131, "compressed_bytes": 474, "bytes": 1071, "local_offset": 25056387, "sha256": "cf8773ecccb4cf18c1caf4d9da755972161e52d96a2a79005a8bf5f0796a7020", "file": "release-members/node_wrappers__lineart_standard.py", "retrieved_at": "2026-11-01T22:32:47.024551+00:00", "header_request": "member-10-header", "name_request": "member-10-name", "data_request": "member-10-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "guassian_sigma": { "type": "FLOAT", "default": 6.0, "min": 0, "max": 100.0, "step": 0.01, "default_known": true, "declaration": "INPUT.FLOAT(default=6.0, max=100.0)" }, "intensity_threshold": { "type": "INT", "default": 8, "min": 0, "max": 16, "step": 1, "default_known": true, "declaration": "INPUT.INT(default=8, max=16)" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 22, 24 ], "text": "NODE_CLASS_MAPPINGS = {\n \"LineartStandardPreprocessor\": Lineart_Standard_Preprocessor\n}", "utf8_sha256": "e53035a0c4812b8d75673327f136a4cc3e3ccd57a11bc6f8e69fe0734e9c0278" }, "class_excerpt": { "lines": [ 4, 20 ], "text": "class Lineart_Standard_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n guassian_sigma=INPUT.FLOAT(default=6.0, max=100.0),\n intensity_threshold=INPUT.INT(default=8, max=16),\n resolution=INPUT.RESOLUTION()\n )\n\n RETURN_TYPES = (\"IMAGE\",)\n FUNCTION = \"execute\"\n\n CATEGORY = \"ControlNet Preprocessors/Line Extractors\"\n\n def execute(self, image, guassian_sigma=6, intensity_threshold=8, resolution=512, **kwargs):\n from custom_controlnet_aux.lineart_standard import LineartStandardDetector\n return (common_annotator_call(LineartStandardDetector(), image, guassian_sigma=guassian_sigma, intensity_threshold=intensity_threshold, resolution=resolution), )", "utf8_sha256": "58c874325255f5eb0a71676e7e2091da6704e0519f707bb197feefb5eb9f671f" }, "members": { "INPUT_TYPES": { "lines": [ 6, 11 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n guassian_sigma=INPUT.FLOAT(default=6.0, max=100.0),\n intensity_threshold=INPUT.INT(default=8, max=16),\n resolution=INPUT.RESOLUTION()\n )", "utf8_sha256": "4ea49ba3dd54c2d1c9f6f0d7ee40a1ce43a0215ab7f0b5423e6a58deea13ef9c" }, "execute": { "lines": [ 18, 20 ], "text": " def execute(self, image, guassian_sigma=6, intensity_threshold=8, resolution=512, **kwargs):\n from custom_controlnet_aux.lineart_standard import LineartStandardDetector\n return (common_annotator_call(LineartStandardDetector(), image, guassian_sigma=guassian_sigma, intensity_threshold=intensity_threshold, resolution=resolution), )", "utf8_sha256": "63da7b9c2c0299119179588f1e2bc01eed3b7d1bf1f999c22ce9af5b7bc700b5" } }, "attributes": { "RETURN_TYPES": [ "IMAGE" ], "FUNCTION": "execute" }, "bases": [], "function_defaults": { "execute": { "guassian_sigma": 6, "intensity_threshold": 8, "resolution": 512 } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:47.024551+00:00" }, "DWPreprocessor": { "class_name": "DWPose_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/dwpose.py", "source_proof": { "name": "node_wrappers/dwpose.py", "flags": 0, "method": 8, "crc32": 2055699912, "compressed_bytes": 1621, "bytes": 7101, "local_offset": 25051909, "sha256": "3b08fb623ea3898cedf864e96cfd7993265101100a3dd9666a6c66b03c15e481", "file": "release-members/node_wrappers__dwpose.py", "retrieved_at": "2026-11-01T22:32:47.809630+00:00", "header_request": "member-11-header", "name_request": "member-11-name", "data_request": "member-11-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "detect_hand": { "type": "COMBO", "options": [ "enable", "disable" ], "default": "enable", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO([\"enable\", \"disable\"])" }, "detect_body": { "type": "COMBO", "options": [ "enable", "disable" ], "default": "enable", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO([\"enable\", \"disable\"])" }, "detect_face": { "type": "COMBO", "options": [ "enable", "disable" ], "default": "enable", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO([\"enable\", \"disable\"])" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" }, "bbox_detector": { "type": "COMBO", "options": [ "None", "yolox_l.torchscript.pt", "yolox_l.onnx", "yolo_nas_l_fp16.onnx", "yolo_nas_m_fp16.onnx", "yolo_nas_s_fp16.onnx" ], "default": "yolox_l.onnx", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO(\n [\"None\"] + [\"yolox_l.torchscript.pt\", \"yolox_l.onnx\", \"yolo_nas_l_fp16.onnx\", \"yolo_nas_m_fp16.onnx\", \"yolo_nas_s_fp16.onnx\"],\n default=\"yolox_l.onnx\"\n )" }, "pose_estimator": { "type": "COMBO", "options": [ "dw-ll_ucoco_384_bs5.torchscript.pt", "dw-ll_ucoco_384.onnx", "dw-ll_ucoco.onnx" ], "default": "dw-ll_ucoco_384_bs5.torchscript.pt", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO(\n [\"dw-ll_ucoco_384_bs5.torchscript.pt\", \"dw-ll_ucoco_384.onnx\", \"dw-ll_ucoco.onnx\"],\n default=\"dw-ll_ucoco_384_bs5.torchscript.pt\"\n )" }, "scale_stick_for_xinsr_cn": { "type": "COMBO", "options": [ "disable", "enable" ], "default": "disable", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO([\"disable\", \"enable\"])" } }, "registration": { "lines": [ 159, 162 ], "text": "NODE_CLASS_MAPPINGS = {\n \"DWPreprocessor\": DWPose_Preprocessor,\n \"AnimalPosePreprocessor\": AnimalPose_Preprocessor\n}", "utf8_sha256": "dc020911cfc86e4b4b06eec9359d806bee4b6742ced2b9177cd4d64db86e5d06" }, "class_excerpt": { "lines": [ 30, 96 ], "text": "class DWPose_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n detect_hand=INPUT.COMBO([\"enable\", \"disable\"]),\n detect_body=INPUT.COMBO([\"enable\", \"disable\"]),\n detect_face=INPUT.COMBO([\"enable\", \"disable\"]),\n resolution=INPUT.RESOLUTION(),\n bbox_detector=INPUT.COMBO(\n [\"None\"] + [\"yolox_l.torchscript.pt\", \"yolox_l.onnx\", \"yolo_nas_l_fp16.onnx\", \"yolo_nas_m_fp16.onnx\", \"yolo_nas_s_fp16.onnx\"],\n default=\"yolox_l.onnx\"\n ),\n pose_estimator=INPUT.COMBO(\n [\"dw-ll_ucoco_384_bs5.torchscript.pt\", \"dw-ll_ucoco_384.onnx\", \"dw-ll_ucoco.onnx\"],\n default=\"dw-ll_ucoco_384_bs5.torchscript.pt\"\n ),\n scale_stick_for_xinsr_cn=INPUT.COMBO([\"disable\", \"enable\"])\n )\n\n RETURN_TYPES = (\"IMAGE\", \"POSE_KEYPOINT\")\n FUNCTION = \"estimate_pose\"\n\n CATEGORY = \"ControlNet Preprocessors/Faces and Poses Estimators\"\n\n def estimate_pose(self, image, detect_hand=\"enable\", detect_body=\"enable\", detect_face=\"enable\", resolution=512, bbox_detector=\"yolox_l.onnx\", pose_estimator=\"dw-ll_ucoco_384.onnx\", scale_stick_for_xinsr_cn=\"disable\", **kwargs):\n if bbox_detector == \"None\":\n yolo_repo = DWPOSE_MODEL_NAME \n elif bbox_detector == \"yolox_l.onnx\":\n yolo_repo = DWPOSE_MODEL_NAME\n elif \"yolox\" in bbox_detector:\n yolo_repo = \"hr16/yolox-onnx\"\n elif \"yolo_nas\" in bbox_detector:\n yolo_repo = \"hr16/yolo-nas-fp16\"\n else:\n raise NotImplementedError(f\"Download mechanism for {bbox_detector}\")\n\n if pose_estimator == \"dw-ll_ucoco_384.onnx\":\n pose_repo = DWPOSE_MODEL_NAME\n elif pose_estimator.endswith(\".onnx\"):\n pose_repo = \"hr16/UnJIT-DWPose\"\n elif pose_estimator.endswith(\".torchscript.pt\"):\n pose_repo = \"hr16/DWPose-TorchScript-BatchSize5\"\n else:\n raise NotImplementedError(f\"Download mechanism for {pose_estimator}\")\n\n model = DwposeDetector.from_pretrained(\n pose_repo,\n yolo_repo,\n det_filename=(None if bbox_detector == \"None\" else bbox_detector), pose_filename=pose_estimator,\n torchscript_device=model_management.get_torch_device()\n )\n detect_hand = detect_hand == \"enable\"\n detect_body = detect_body == \"enable\"\n detect_face = detect_face == \"enable\"\n scale_stick_for_xinsr_cn = scale_stick_for_xinsr_cn == \"enable\"\n self.openpose_dicts = []\n def func(image, **kwargs):\n pose_img, openpose_dict = model(image, **kwargs)\n self.openpose_dicts.append(openpose_dict)\n return pose_img\n\n out = common_annotator_call(func, image, include_hand=detect_hand, include_face=detect_face, include_body=detect_body, image_and_json=True, resolution=resolution, xinsr_stick_scaling=scale_stick_for_xinsr_cn)\n del model\n return {\n 'ui': { \"openpose_json\": [json.dumps(self.openpose_dicts, indent=4)] },\n \"result\": (out, self.openpose_dicts)\n }", "utf8_sha256": "4d0807779ff6e9c139473dd4043e48dbcddd2f89f41fbf64c3cf2bb2a6781dc2" }, "members": { "INPUT_TYPES": { "lines": [ 32, 47 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n detect_hand=INPUT.COMBO([\"enable\", \"disable\"]),\n detect_body=INPUT.COMBO([\"enable\", \"disable\"]),\n detect_face=INPUT.COMBO([\"enable\", \"disable\"]),\n resolution=INPUT.RESOLUTION(),\n bbox_detector=INPUT.COMBO(\n [\"None\"] + [\"yolox_l.torchscript.pt\", \"yolox_l.onnx\", \"yolo_nas_l_fp16.onnx\", \"yolo_nas_m_fp16.onnx\", \"yolo_nas_s_fp16.onnx\"],\n default=\"yolox_l.onnx\"\n ),\n pose_estimator=INPUT.COMBO(\n [\"dw-ll_ucoco_384_bs5.torchscript.pt\", \"dw-ll_ucoco_384.onnx\", \"dw-ll_ucoco.onnx\"],\n default=\"dw-ll_ucoco_384_bs5.torchscript.pt\"\n ),\n scale_stick_for_xinsr_cn=INPUT.COMBO([\"disable\", \"enable\"])\n )", "utf8_sha256": "3f36845f68f7a6f6b3ec1476c8278ee5b45dae8c897941ab217cb7346aeec579" }, "estimate_pose": { "lines": [ 54, 96 ], "text": " def estimate_pose(self, image, detect_hand=\"enable\", detect_body=\"enable\", detect_face=\"enable\", resolution=512, bbox_detector=\"yolox_l.onnx\", pose_estimator=\"dw-ll_ucoco_384.onnx\", scale_stick_for_xinsr_cn=\"disable\", **kwargs):\n if bbox_detector == \"None\":\n yolo_repo = DWPOSE_MODEL_NAME \n elif bbox_detector == \"yolox_l.onnx\":\n yolo_repo = DWPOSE_MODEL_NAME\n elif \"yolox\" in bbox_detector:\n yolo_repo = \"hr16/yolox-onnx\"\n elif \"yolo_nas\" in bbox_detector:\n yolo_repo = \"hr16/yolo-nas-fp16\"\n else:\n raise NotImplementedError(f\"Download mechanism for {bbox_detector}\")\n\n if pose_estimator == \"dw-ll_ucoco_384.onnx\":\n pose_repo = DWPOSE_MODEL_NAME\n elif pose_estimator.endswith(\".onnx\"):\n pose_repo = \"hr16/UnJIT-DWPose\"\n elif pose_estimator.endswith(\".torchscript.pt\"):\n pose_repo = \"hr16/DWPose-TorchScript-BatchSize5\"\n else:\n raise NotImplementedError(f\"Download mechanism for {pose_estimator}\")\n\n model = DwposeDetector.from_pretrained(\n pose_repo,\n yolo_repo,\n det_filename=(None if bbox_detector == \"None\" else bbox_detector), pose_filename=pose_estimator,\n torchscript_device=model_management.get_torch_device()\n )\n detect_hand = detect_hand == \"enable\"\n detect_body = detect_body == \"enable\"\n detect_face = detect_face == \"enable\"\n scale_stick_for_xinsr_cn = scale_stick_for_xinsr_cn == \"enable\"\n self.openpose_dicts = []\n def func(image, **kwargs):\n pose_img, openpose_dict = model(image, **kwargs)\n self.openpose_dicts.append(openpose_dict)\n return pose_img\n\n out = common_annotator_call(func, image, include_hand=detect_hand, include_face=detect_face, include_body=detect_body, image_and_json=True, resolution=resolution, xinsr_stick_scaling=scale_stick_for_xinsr_cn)\n del model\n return {\n 'ui': { \"openpose_json\": [json.dumps(self.openpose_dicts, indent=4)] },\n \"result\": (out, self.openpose_dicts)\n }", "utf8_sha256": "60a15879e53844e62f0191188391bb2c477c8eab4dfabf98efe78320fb00e168" } }, "attributes": { "RETURN_TYPES": [ "IMAGE", "POSE_KEYPOINT" ], "FUNCTION": "estimate_pose" }, "bases": [], "function_defaults": { "estimate_pose": { "detect_hand": "enable", "detect_body": "enable", "detect_face": "enable", "resolution": 512, "bbox_detector": "yolox_l.onnx", "pose_estimator": "dw-ll_ucoco_384.onnx", "scale_stick_for_xinsr_cn": "disable" } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:47.809630+00:00" }, "AnimalPosePreprocessor": { "class_name": "AnimalPose_Preprocessor", "repository": "https://github.com/Fannovel16/comfyui_controlnet_aux", "version": "1.1.5", "file": "node_wrappers/dwpose.py", "source_proof": { "name": "node_wrappers/dwpose.py", "flags": 0, "method": 8, "crc32": 2055699912, "compressed_bytes": 1621, "bytes": 7101, "local_offset": 25051909, "sha256": "3b08fb623ea3898cedf864e96cfd7993265101100a3dd9666a6c66b03c15e481", "file": "release-members/node_wrappers__dwpose.py", "retrieved_at": "2026-11-01T22:32:47.809630+00:00", "header_request": "member-11-header", "name_request": "member-11-name", "data_request": "member-11-data", "whole_artifact_sha256": null, "git_release_commit": null }, "schema": { "image": { "type": "IMAGE", "required": true, "default_known": false }, "bbox_detector": { "type": "COMBO", "options": [ "None", "yolox_l.torchscript.pt", "yolox_l.onnx", "yolo_nas_l_fp16.onnx", "yolo_nas_m_fp16.onnx", "yolo_nas_s_fp16.onnx" ], "default": "yolox_l.torchscript.pt", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO(\n [\"None\"] + [\"yolox_l.torchscript.pt\", \"yolox_l.onnx\", \"yolo_nas_l_fp16.onnx\", \"yolo_nas_m_fp16.onnx\", \"yolo_nas_s_fp16.onnx\"],\n default=\"yolox_l.torchscript.pt\"\n )" }, "pose_estimator": { "type": "COMBO", "options": [ "rtmpose-m_ap10k_256_bs5.torchscript.pt", "rtmpose-m_ap10k_256.onnx" ], "default": "rtmpose-m_ap10k_256_bs5.torchscript.pt", "default_known": true, "dynamic_options": false, "declaration": "INPUT.COMBO(\n [\"rtmpose-m_ap10k_256_bs5.torchscript.pt\", \"rtmpose-m_ap10k_256.onnx\"],\n default=\"rtmpose-m_ap10k_256_bs5.torchscript.pt\"\n )" }, "resolution": { "type": "INT", "default": 512, "min": 64, "max": 16384, "step": 64, "default_known": true, "declaration": "INPUT.RESOLUTION()" } }, "registration": { "lines": [ 159, 162 ], "text": "NODE_CLASS_MAPPINGS = {\n \"DWPreprocessor\": DWPose_Preprocessor,\n \"AnimalPosePreprocessor\": AnimalPose_Preprocessor\n}", "utf8_sha256": "dc020911cfc86e4b4b06eec9359d806bee4b6742ced2b9177cd4d64db86e5d06" }, "class_excerpt": { "lines": [ 98, 157 ], "text": "class AnimalPose_Preprocessor:\n @classmethod\n def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n bbox_detector = INPUT.COMBO(\n [\"None\"] + [\"yolox_l.torchscript.pt\", \"yolox_l.onnx\", \"yolo_nas_l_fp16.onnx\", \"yolo_nas_m_fp16.onnx\", \"yolo_nas_s_fp16.onnx\"],\n default=\"yolox_l.torchscript.pt\"\n ),\n pose_estimator = INPUT.COMBO(\n [\"rtmpose-m_ap10k_256_bs5.torchscript.pt\", \"rtmpose-m_ap10k_256.onnx\"],\n default=\"rtmpose-m_ap10k_256_bs5.torchscript.pt\"\n ),\n resolution = INPUT.RESOLUTION()\n )\n\n RETURN_TYPES = (\"IMAGE\", \"POSE_KEYPOINT\")\n FUNCTION = \"estimate_pose\"\n\n CATEGORY = \"ControlNet Preprocessors/Faces and Poses Estimators\"\n\n def estimate_pose(self, image, resolution=512, bbox_detector=\"yolox_l.onnx\", pose_estimator=\"rtmpose-m_ap10k_256.onnx\", **kwargs):\n if bbox_detector == \"None\":\n yolo_repo = DWPOSE_MODEL_NAME \n elif bbox_detector == \"yolox_l.onnx\":\n yolo_repo = DWPOSE_MODEL_NAME\n elif \"yolox\" in bbox_detector:\n yolo_repo = \"hr16/yolox-onnx\"\n elif \"yolo_nas\" in bbox_detector:\n yolo_repo = \"hr16/yolo-nas-fp16\"\n else:\n raise NotImplementedError(f\"Download mechanism for {bbox_detector}\")\n\n if pose_estimator == \"dw-ll_ucoco_384.onnx\":\n pose_repo = DWPOSE_MODEL_NAME\n elif pose_estimator.endswith(\".onnx\"):\n pose_repo = \"hr16/UnJIT-DWPose\"\n elif pose_estimator.endswith(\".torchscript.pt\"):\n pose_repo = \"hr16/DWPose-TorchScript-BatchSize5\"\n else:\n raise NotImplementedError(f\"Download mechanism for {pose_estimator}\")\n\n model = AnimalposeDetector.from_pretrained(\n pose_repo,\n yolo_repo,\n det_filename=(None if bbox_detector == \"None\" else bbox_detector), pose_filename=pose_estimator,\n torchscript_device=model_management.get_torch_device()\n )\n\n self.openpose_dicts = []\n def func(image, **kwargs):\n pose_img, openpose_dict = model(image, **kwargs)\n self.openpose_dicts.append(openpose_dict)\n return pose_img\n\n out = common_annotator_call(func, image, image_and_json=True, resolution=resolution)\n del model\n return {\n 'ui': { \"openpose_json\": [json.dumps(self.openpose_dicts, indent=4)] },\n \"result\": (out, self.openpose_dicts)\n }", "utf8_sha256": "7d062098d4238255c00fc010a34d41aae2f42639178f155e3c11a1bffa8969fd" }, "members": { "INPUT_TYPES": { "lines": [ 100, 111 ], "text": " def INPUT_TYPES(s):\n return define_preprocessor_inputs(\n bbox_detector = INPUT.COMBO(\n [\"None\"] + [\"yolox_l.torchscript.pt\", \"yolox_l.onnx\", \"yolo_nas_l_fp16.onnx\", \"yolo_nas_m_fp16.onnx\", \"yolo_nas_s_fp16.onnx\"],\n default=\"yolox_l.torchscript.pt\"\n ),\n pose_estimator = INPUT.COMBO(\n [\"rtmpose-m_ap10k_256_bs5.torchscript.pt\", \"rtmpose-m_ap10k_256.onnx\"],\n default=\"rtmpose-m_ap10k_256_bs5.torchscript.pt\"\n ),\n resolution = INPUT.RESOLUTION()\n )", "utf8_sha256": "44d9cd14852499bde5ad0f6dfdea4929abd241d04fea6ff9973a5e9fd5b433ed" }, "estimate_pose": { "lines": [ 118, 157 ], "text": " def estimate_pose(self, image, resolution=512, bbox_detector=\"yolox_l.onnx\", pose_estimator=\"rtmpose-m_ap10k_256.onnx\", **kwargs):\n if bbox_detector == \"None\":\n yolo_repo = DWPOSE_MODEL_NAME \n elif bbox_detector == \"yolox_l.onnx\":\n yolo_repo = DWPOSE_MODEL_NAME\n elif \"yolox\" in bbox_detector:\n yolo_repo = \"hr16/yolox-onnx\"\n elif \"yolo_nas\" in bbox_detector:\n yolo_repo = \"hr16/yolo-nas-fp16\"\n else:\n raise NotImplementedError(f\"Download mechanism for {bbox_detector}\")\n\n if pose_estimator == \"dw-ll_ucoco_384.onnx\":\n pose_repo = DWPOSE_MODEL_NAME\n elif pose_estimator.endswith(\".onnx\"):\n pose_repo = \"hr16/UnJIT-DWPose\"\n elif pose_estimator.endswith(\".torchscript.pt\"):\n pose_repo = \"hr16/DWPose-TorchScript-BatchSize5\"\n else:\n raise NotImplementedError(f\"Download mechanism for {pose_estimator}\")\n\n model = AnimalposeDetector.from_pretrained(\n pose_repo,\n yolo_repo,\n det_filename=(None if bbox_detector == \"None\" else bbox_detector), pose_filename=pose_estimator,\n torchscript_device=model_management.get_torch_device()\n )\n\n self.openpose_dicts = []\n def func(image, **kwargs):\n pose_img, openpose_dict = model(image, **kwargs)\n self.openpose_dicts.append(openpose_dict)\n return pose_img\n\n out = common_annotator_call(func, image, image_and_json=True, resolution=resolution)\n del model\n return {\n 'ui': { \"openpose_json\": [json.dumps(self.openpose_dicts, indent=4)] },\n \"result\": (out, self.openpose_dicts)\n }", "utf8_sha256": "6dd35be0a8a4f97f273ad09e26a15db77950e30bfa9f40a90c210c03f9ecac82" } }, "attributes": { "RETURN_TYPES": [ "IMAGE", "POSE_KEYPOINT" ], "FUNCTION": "estimate_pose" }, "bases": [], "function_defaults": { "estimate_pose": { "resolution": 512, "bbox_detector": "yolox_l.onnx", "pose_estimator": "rtmpose-m_ap10k_256.onnx" } }, "acquisition": "exact registry release member, Git commit unknown", "earliest_known_prior_member_retrieval": null, "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:32:47.809630+00:00" }, "PreviewImage": { "class_name": "PreviewImage", "repository": "https://github.com/Comfy-Org/ComfyUI", "version": "0.21.1", "file": "nodes.py", "source_proof": { "version": "0.21.1", "tag": "v0.21.1", "commit": "26515acd23fa291a8f5ab53c5997258598de0701", "repository": "https://github.com/Comfy-Org/ComfyUI", "path": "nodes.py", "retained_path": "docs/hel-892/serialization-evidence/corev0.21.1__nodes.py", "git_blob_sha1": "2b63f9fbb7ddbf9c89e63c22c82a5ad80e3e74b6", "sha256": "e09534d2c275b2bd389ba7d28677a24d86ce174cdb2419f3d424ff5e50b5d62a", "tag_commit_tree_blob_verified": true, "rechecked_at": "2026-11-01T22:33:32.725688+00:00", "target_installed": false }, "schema": { "images": { "type": "IMAGE", "required": true, "default_known": false } }, "class_excerpt": { "lines": [ 1665, 1679 ], "text": "class PreviewImage(SaveImage):\n def __init__(self):\n self.output_dir = folder_paths.get_temp_directory()\n self.type = \"temp\"\n self.prefix_append = \"_temp_\" + ''.join(random.choice(\"abcdefghijklmnopqrstupvxyz\") for x in range(5))\n self.compress_level = 1\n\n SEARCH_ALIASES = [\"preview\", \"preview image\", \"show image\", \"view image\", \"display image\", \"image viewer\"]\n\n @classmethod\n def INPUT_TYPES(s):\n return {\"required\":\n {\"images\": (\"IMAGE\", ), },\n \"hidden\": {\"prompt\": \"PROMPT\", \"extra_pnginfo\": \"EXTRA_PNGINFO\"},\n }", "utf8_sha256": "5c1e3145c234fe8b4b5fb6d76fcd097ee2b523e0b78868adaa9818cad6005b0c" }, "members": { "__init__": { "lines": [ 1666, 1670 ], "text": " def __init__(self):\n self.output_dir = folder_paths.get_temp_directory()\n self.type = \"temp\"\n self.prefix_append = \"_temp_\" + ''.join(random.choice(\"abcdefghijklmnopqrstupvxyz\") for x in range(5))\n self.compress_level = 1", "utf8_sha256": "bed6031a2e549ddf7877e90c2f62948e7f5b4d16e17baf088daa07f9c6d267a7" }, "INPUT_TYPES": { "lines": [ 1675, 1679 ], "text": " def INPUT_TYPES(s):\n return {\"required\":\n {\"images\": (\"IMAGE\", ), },\n \"hidden\": {\"prompt\": \"PROMPT\", \"extra_pnginfo\": \"EXTRA_PNGINFO\"},\n }", "utf8_sha256": "e7c335d3592245f718d18488a4bbab16f6e7cb3e83c47636866c28959442df03" } }, "bases": [ "SaveImage" ], "acquisition": "retained bytes bound to exact tag/commit/tree/blob", "base_excerpt": { "lines": [ 1608, 1663 ], "text": "class SaveImage:\n def __init__(self):\n self.output_dir = folder_paths.get_output_directory()\n self.type = \"output\"\n self.prefix_append = \"\"\n self.compress_level = 4\n\n @classmethod\n def INPUT_TYPES(s):\n return {\n \"required\": {\n \"images\": (\"IMAGE\", {\"tooltip\": \"The images to save.\"}),\n \"filename_prefix\": (\"STRING\", {\"default\": \"ComfyUI\", \"tooltip\": \"The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes.\"})\n },\n \"hidden\": {\n \"prompt\": \"PROMPT\", \"extra_pnginfo\": \"EXTRA_PNGINFO\"\n },\n }\n\n RETURN_TYPES = ()\n FUNCTION = \"save_images\"\n\n OUTPUT_NODE = True\n\n CATEGORY = \"image\"\n ESSENTIALS_CATEGORY = \"Basics\"\n DESCRIPTION = \"Saves the input images to your ComfyUI output directory.\"\n SEARCH_ALIASES = [\"save\", \"save image\", \"export image\", \"output image\", \"write image\", \"download\"]\n\n def save_images(self, images, filename_prefix=\"ComfyUI\", prompt=None, extra_pnginfo=None):\n filename_prefix += self.prefix_append\n full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])\n results = list()\n for (batch_number, image) in enumerate(images):\n i = 255. * image.cpu().numpy()\n img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))\n metadata = None\n if not args.disable_metadata:\n metadata = PngInfo()\n if prompt is not None:\n metadata.add_text(\"prompt\", json.dumps(prompt))\n if extra_pnginfo is not None:\n for x in extra_pnginfo:\n metadata.add_text(x, json.dumps(extra_pnginfo[x]))\n\n filename_with_batch_num = filename.replace(\"%batch_num%\", str(batch_number))\n file = f\"{filename_with_batch_num}_{counter:05}_.png\"\n img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level)\n results.append({\n \"filename\": file,\n \"subfolder\": subfolder,\n \"type\": self.type\n })\n counter += 1\n\n return { \"ui\": { \"images\": results } }", "utf8_sha256": "fa88c26e5e03f788dcc545434a54124c5e9d03b559da67f0857b52faec0e97e7" }, "registration": { "file": "nodes.py", "mapping": "NODE_CLASS_MAPPINGS", "key": "PreviewImage" }, "earliest_known_prior_member_retrieval": "2026-10-29T15:20:30.344472+00:00", "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:33:32.725688+00:00" }, "LoadImage": { "class_name": "LoadImage", "repository": "https://github.com/Comfy-Org/ComfyUI", "version": "0.21.1", "file": "nodes.py", "source_proof": { "version": "0.21.1", "tag": "v0.21.1", "commit": "26515acd23fa291a8f5ab53c5997258598de0701", "repository": "https://github.com/Comfy-Org/ComfyUI", "path": "nodes.py", "retained_path": "docs/hel-892/serialization-evidence/corev0.21.1__nodes.py", "git_blob_sha1": "2b63f9fbb7ddbf9c89e63c22c82a5ad80e3e74b6", "sha256": "e09534d2c275b2bd389ba7d28677a24d86ce174cdb2419f3d424ff5e50b5d62a", "tag_commit_tree_blob_verified": true, "rechecked_at": "2026-11-01T22:33:32.725688+00:00", "target_installed": false }, "schema": { "image": { "type": "COMBO", "options": null, "dynamic_options": true, "default_known": false, "image_upload": true } }, "class_excerpt": { "lines": [ 1681, 1755 ], "text": "class LoadImage:\n @classmethod\n def INPUT_TYPES(s):\n input_dir = folder_paths.get_input_directory()\n files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]\n files = folder_paths.filter_files_content_types(files, [\"image\"])\n return {\"required\":\n {\"image\": (sorted(files), {\"image_upload\": True})},\n }\n\n CATEGORY = \"image\"\n ESSENTIALS_CATEGORY = \"Basics\"\n SEARCH_ALIASES = [\"load image\", \"open image\", \"import image\", \"image input\", \"upload image\", \"read image\", \"image loader\"]\n\n RETURN_TYPES = (\"IMAGE\", \"MASK\")\n FUNCTION = \"load_image\"\n\n def load_image(self, image):\n image_path = folder_paths.get_annotated_filepath(image)\n\n dtype = comfy.model_management.intermediate_dtype()\n device = comfy.model_management.intermediate_device()\n\n components = InputImpl.VideoFromFile(image_path).get_components()\n if components.images.shape[0] > 0:\n return (components.images.to(device=device, dtype=dtype), (1.0 - components.alpha[..., -1]).to(device=device, dtype=dtype) if components.alpha is not None else torch.zeros((components.images.shape[0], 64, 64), dtype=dtype, device=device))\n\n # This code is left here to handle animated webp which pyav does not support loading\n img = node_helpers.pillow(Image.open, image_path)\n\n output_images = []\n output_masks = []\n w, h = None, None\n\n for i in ImageSequence.Iterator(img):\n i = node_helpers.pillow(ImageOps.exif_transpose, i)\n\n image = i.convert(\"RGB\")\n\n if len(output_images) == 0:\n w = image.size[0]\n h = image.size[1]\n\n if image.size[0] != w or image.size[1] != h:\n continue\n\n image = np.array(image).astype(np.float32) / 255.0\n image = torch.from_numpy(image)[None,]\n if 'A' in i.getbands():\n mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0\n mask = 1. - torch.from_numpy(mask)\n else:\n mask = torch.zeros((64, 64), dtype=torch.float32, device=\"cpu\")\n output_images.append(image.to(dtype=dtype))\n output_masks.append(mask.unsqueeze(0).to(dtype=dtype))\n\n output_image = torch.cat(output_images, dim=0)\n output_mask = torch.cat(output_masks, dim=0)\n\n return (output_image.to(device=device, dtype=dtype), output_mask.to(device=device, dtype=dtype))\n\n @classmethod\n def IS_CHANGED(s, image):\n image_path = folder_paths.get_annotated_filepath(image)\n m = hashlib.sha256()\n with open(image_path, 'rb') as f:\n m.update(f.read())\n return m.digest().hex()\n\n @classmethod\n def VALIDATE_INPUTS(s, image):\n if not folder_paths.exists_annotated_filepath(image):\n return \"Invalid image file: {}\".format(image)\n\n return True", "utf8_sha256": "d8b1b2f45902cf549eb25a7a3b27bcb7a62478b968b17e5e43aadcfa52f62402" }, "members": { "INPUT_TYPES": { "lines": [ 1683, 1689 ], "text": " def INPUT_TYPES(s):\n input_dir = folder_paths.get_input_directory()\n files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]\n files = folder_paths.filter_files_content_types(files, [\"image\"])\n return {\"required\":\n {\"image\": (sorted(files), {\"image_upload\": True})},\n }", "utf8_sha256": "8c317a3a790dd2b1cdb594f8707e44d6ce8b15cab8e3807971b88e2d302075b2" }, "load_image": { "lines": [ 1698, 1740 ], "text": " def load_image(self, image):\n image_path = folder_paths.get_annotated_filepath(image)\n\n dtype = comfy.model_management.intermediate_dtype()\n device = comfy.model_management.intermediate_device()\n\n components = InputImpl.VideoFromFile(image_path).get_components()\n if components.images.shape[0] > 0:\n return (components.images.to(device=device, dtype=dtype), (1.0 - components.alpha[..., -1]).to(device=device, dtype=dtype) if components.alpha is not None else torch.zeros((components.images.shape[0], 64, 64), dtype=dtype, device=device))\n\n # This code is left here to handle animated webp which pyav does not support loading\n img = node_helpers.pillow(Image.open, image_path)\n\n output_images = []\n output_masks = []\n w, h = None, None\n\n for i in ImageSequence.Iterator(img):\n i = node_helpers.pillow(ImageOps.exif_transpose, i)\n\n image = i.convert(\"RGB\")\n\n if len(output_images) == 0:\n w = image.size[0]\n h = image.size[1]\n\n if image.size[0] != w or image.size[1] != h:\n continue\n\n image = np.array(image).astype(np.float32) / 255.0\n image = torch.from_numpy(image)[None,]\n if 'A' in i.getbands():\n mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0\n mask = 1. - torch.from_numpy(mask)\n else:\n mask = torch.zeros((64, 64), dtype=torch.float32, device=\"cpu\")\n output_images.append(image.to(dtype=dtype))\n output_masks.append(mask.unsqueeze(0).to(dtype=dtype))\n\n output_image = torch.cat(output_images, dim=0)\n output_mask = torch.cat(output_masks, dim=0)\n\n return (output_image.to(device=device, dtype=dtype), output_mask.to(device=device, dtype=dtype))", "utf8_sha256": "eb76b7dd84465d080bc6772d75ee9a89a10dbf9d74adf62b26242f4ac236cd82" }, "IS_CHANGED": { "lines": [ 1743, 1748 ], "text": " def IS_CHANGED(s, image):\n image_path = folder_paths.get_annotated_filepath(image)\n m = hashlib.sha256()\n with open(image_path, 'rb') as f:\n m.update(f.read())\n return m.digest().hex()", "utf8_sha256": "f0198ea6f17685b5cd978e95669a9b9b6cb0704f7263e9ece13fff2414e17b56" }, "VALIDATE_INPUTS": { "lines": [ 1751, 1755 ], "text": " def VALIDATE_INPUTS(s, image):\n if not folder_paths.exists_annotated_filepath(image):\n return \"Invalid image file: {}\".format(image)\n\n return True", "utf8_sha256": "854091d8690e1607bff6a4231b3a0a7d0546dea6bdf731b5e44e9312e79c0c97" } }, "bases": [], "acquisition": "retained bytes bound to exact tag/commit/tree/blob", "registration": { "file": "nodes.py", "mapping": "NODE_CLASS_MAPPINGS", "key": "LoadImage" }, "earliest_known_prior_member_retrieval": "2026-10-29T15:20:30.344472+00:00", "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:33:32.725688+00:00" }, "Canny": { "class_name": "Canny", "repository": "https://github.com/Comfy-Org/ComfyUI", "version": "0.21.1", "file": "comfy_extras/nodes_canny.py", "source_proof": { "version": "0.21.1", "tag": "v0.21.1", "commit": "26515acd23fa291a8f5ab53c5997258598de0701", "repository": "https://github.com/Comfy-Org/ComfyUI", "path": "comfy_extras/nodes_canny.py", "retained_path": "docs/hel-892/serialization-evidence/corev0.21.1__comfy_extras__nodes_canny.py", "git_blob_sha1": "648b4279d0eae624123bb92820a9e899fafe0744", "sha256": "c69f945190aaeb02fd3e81bbe21f5bf2dd70395a3bf17cbe8726261739146fff", "tag_commit_tree_blob_verified": true, "rechecked_at": "2026-11-01T22:33:33.205017+00:00", "target_installed": false }, "schema": { "image": { "type": "IMAGE", "default_known": false, "declaration": "io.Image.Input(\"image\")" }, "low_threshold": { "type": "FLOAT", "default": 0.4, "min": 0.01, "max": 0.99, "step": 0.01, "default_known": true, "declaration": "io.Float.Input(\"low_threshold\", default=0.4, min=0.01, max=0.99, step=0.01)" }, "high_threshold": { "type": "FLOAT", "default": 0.8, "min": 0.01, "max": 0.99, "step": 0.01, "default_known": true, "declaration": "io.Float.Input(\"high_threshold\", default=0.8, min=0.01, max=0.99, step=0.01)" } }, "class_excerpt": { "lines": [ 9, 35 ], "text": "class Canny(io.ComfyNode):\n @classmethod\n def define_schema(cls):\n return io.Schema(\n node_id=\"Canny\",\n display_name=\"Canny\",\n search_aliases=[\"edge detection\", \"outline\", \"contour detection\", \"line art\"],\n category=\"image/preprocessors\",\n essentials_category=\"Image Tools\",\n inputs=[\n io.Image.Input(\"image\"),\n io.Float.Input(\"low_threshold\", default=0.4, min=0.01, max=0.99, step=0.01),\n io.Float.Input(\"high_threshold\", default=0.8, min=0.01, max=0.99, step=0.01),\n ],\n outputs=[io.Image.Output()],\n )\n\n @classmethod\n def detect_edge(cls, image, low_threshold, high_threshold):\n # Deprecated: use the V3 schema's `execute` method instead of this.\n return cls.execute(image, low_threshold, high_threshold)\n\n @classmethod\n def execute(cls, image, low_threshold, high_threshold) -> io.NodeOutput:\n output = canny(image.to(device=comfy.model_management.get_torch_device(), dtype=torch.float32).movedim(-1, 1), low_threshold, high_threshold)\n img_out = output[1].to(device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype()).repeat(1, 3, 1, 1).movedim(1, -1)\n return io.NodeOutput(img_out)", "utf8_sha256": "7fd8dd2a4a8abb1c386dc7e1c164cdbd1cf3e1960ea200925872bd5f24a87438" }, "members": { "define_schema": { "lines": [ 11, 24 ], "text": " def define_schema(cls):\n return io.Schema(\n node_id=\"Canny\",\n display_name=\"Canny\",\n search_aliases=[\"edge detection\", \"outline\", \"contour detection\", \"line art\"],\n category=\"image/preprocessors\",\n essentials_category=\"Image Tools\",\n inputs=[\n io.Image.Input(\"image\"),\n io.Float.Input(\"low_threshold\", default=0.4, min=0.01, max=0.99, step=0.01),\n io.Float.Input(\"high_threshold\", default=0.8, min=0.01, max=0.99, step=0.01),\n ],\n outputs=[io.Image.Output()],\n )", "utf8_sha256": "05ae14b638032f6e86ff1d8c7aa11ce80bd86f6c50ce5366edfa15b659ac7148" }, "detect_edge": { "lines": [ 27, 29 ], "text": " def detect_edge(cls, image, low_threshold, high_threshold):\n # Deprecated: use the V3 schema's `execute` method instead of this.\n return cls.execute(image, low_threshold, high_threshold)", "utf8_sha256": "cf71e5b1fdf0e052d7353c2a7e50b2102023b6d3e1aa5c4fa0b6a23a258437d3" }, "execute": { "lines": [ 32, 35 ], "text": " def execute(cls, image, low_threshold, high_threshold) -> io.NodeOutput:\n output = canny(image.to(device=comfy.model_management.get_torch_device(), dtype=torch.float32).movedim(-1, 1), low_threshold, high_threshold)\n img_out = output[1].to(device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype()).repeat(1, 3, 1, 1).movedim(1, -1)\n return io.NodeOutput(img_out)", "utf8_sha256": "d0ec498c6599df1e41e99a51ca3562cc554ede5de92b2aea13105de18d63e793" } }, "bases": [ "io.ComfyNode" ], "acquisition": "retained bytes bound to exact tag/commit/tree/blob", "registration": { "lines": [ 44, 45 ], "text": "async def comfy_entrypoint() -> CannyExtension:\n return CannyExtension()", "utf8_sha256": "b573ee165fb7e2f5097554f199788699b6b23168891116bb370361d70d1c0e1b" }, "earliest_known_prior_member_retrieval": "2026-10-29T15:20:30.921972+00:00", "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:33:33.205017+00:00" }, "ImageStitch": { "class_name": "ImageStitch", "repository": "https://github.com/Comfy-Org/ComfyUI", "version": "0.17.0", "file": "comfy_extras/nodes_images.py", "source_proof": { "version": "0.17.0", "tag": "v0.17.0", "commit": "63d1bbdb407c69370d407ce5ced6ca3f917528a8", "repository": "https://github.com/Comfy-Org/ComfyUI", "path": "comfy_extras/nodes_images.py", "retained_path": "docs/hel-892/serialization-evidence/corev0.17.0__comfy_extras__nodes_images.py", "git_blob_sha1": "4c57bb5cba76209c4f6ea95a5bf206b3edaf1a05", "sha256": "40f22183dcbc9f871030145ca33d52f3dd9d8f64b21ceb071c2fdf6cd49ff501", "tag_commit_tree_blob_verified": true, "rechecked_at": "2026-11-01T22:33:35.133156+00:00", "target_installed": false }, "schema": { "image1": { "type": "IMAGE", "default_known": false, "declaration": "IO.Image.Input(\"image1\")" }, "direction": { "type": "COMBO", "options": [ "right", "down", "left", "up" ], "default": "right", "default_known": true, "declaration": "IO.Combo.Input(\"direction\", options=[\"right\", \"down\", \"left\", \"up\"], default=\"right\")" }, "match_image_size": { "type": "BOOLEAN", "default": true, "default_known": true, "declaration": "IO.Boolean.Input(\"match_image_size\", default=True)" }, "spacing_width": { "type": "INT", "default": 0, "min": 0, "max": 1024, "step": 2, "advanced": true, "default_known": true, "declaration": "IO.Int.Input(\"spacing_width\", default=0, min=0, max=1024, step=2, advanced=True)" }, "spacing_color": { "type": "COMBO", "options": [ "white", "black", "red", "green", "blue" ], "default": "white", "advanced": true, "default_known": true, "declaration": "IO.Combo.Input(\"spacing_color\", options=[\"white\", \"black\", \"red\", \"green\", \"blue\"], default=\"white\", advanced=True)" }, "image2": { "type": "IMAGE", "optional": true, "default_known": false, "declaration": "IO.Image.Input(\"image2\", optional=True)" } }, "class_excerpt": { "lines": [ 253, 426 ], "text": "class ImageStitch(IO.ComfyNode):\n \"\"\"Upstreamed from https://github.com/kijai/ComfyUI-KJNodes\"\"\"\n @classmethod\n def define_schema(cls):\n return IO.Schema(\n node_id=\"ImageStitch\",\n search_aliases=[\"combine images\", \"join images\", \"concatenate images\", \"side by side\"],\n display_name=\"Image Stitch\",\n description=\"Stitches image2 to image1 in the specified direction.\\n\"\n \"If image2 is not provided, returns image1 unchanged.\\n\"\n \"Optional spacing can be added between images.\",\n category=\"image/transform\",\n inputs=[\n IO.Image.Input(\"image1\"),\n IO.Combo.Input(\"direction\", options=[\"right\", \"down\", \"left\", \"up\"], default=\"right\"),\n IO.Boolean.Input(\"match_image_size\", default=True),\n IO.Int.Input(\"spacing_width\", default=0, min=0, max=1024, step=2, advanced=True),\n IO.Combo.Input(\"spacing_color\", options=[\"white\", \"black\", \"red\", \"green\", \"blue\"], default=\"white\", advanced=True),\n IO.Image.Input(\"image2\", optional=True),\n ],\n outputs=[IO.Image.Output()],\n )\n\n @classmethod\n def execute(\n cls,\n image1,\n direction,\n match_image_size,\n spacing_width,\n spacing_color,\n image2=None,\n ) -> IO.NodeOutput:\n if image2 is None:\n return IO.NodeOutput(image1)\n\n # Handle batch size differences\n if image1.shape[0] != image2.shape[0]:\n max_batch = max(image1.shape[0], image2.shape[0])\n if image1.shape[0] < max_batch:\n image1 = torch.cat(\n [image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]\n )\n if image2.shape[0] < max_batch:\n image2 = torch.cat(\n [image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]\n )\n\n # Match image sizes if requested\n if match_image_size:\n h1, w1 = image1.shape[1:3]\n h2, w2 = image2.shape[1:3]\n aspect_ratio = w2 / h2\n\n if direction in [\"left\", \"right\"]:\n target_h, target_w = h1, int(h1 * aspect_ratio)\n else: # up, down\n target_w, target_h = w1, int(w1 / aspect_ratio)\n\n image2 = comfy.utils.common_upscale(\n image2.movedim(-1, 1), target_w, target_h, \"lanczos\", \"disabled\"\n ).movedim(1, -1)\n\n color_map = {\n \"white\": 1.0,\n \"black\": 0.0,\n \"red\": (1.0, 0.0, 0.0),\n \"green\": (0.0, 1.0, 0.0),\n \"blue\": (0.0, 0.0, 1.0),\n }\n\n color_val = color_map[spacing_color]\n\n # When not matching sizes, pad to align non-concat dimensions\n if not match_image_size:\n h1, w1 = image1.shape[1:3]\n h2, w2 = image2.shape[1:3]\n pad_value = 0.0\n if not isinstance(color_val, tuple):\n pad_value = color_val\n\n if direction in [\"left\", \"right\"]:\n # For horizontal concat, pad heights to match\n if h1 != h2:\n target_h = max(h1, h2)\n if h1 < target_h:\n pad_h = target_h - h1\n pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2\n image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)\n if h2 < target_h:\n pad_h = target_h - h2\n pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2\n image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)\n else: # up, down\n # For vertical concat, pad widths to match\n if w1 != w2:\n target_w = max(w1, w2)\n if w1 < target_w:\n pad_w = target_w - w1\n pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2\n image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)\n if w2 < target_w:\n pad_w = target_w - w2\n pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2\n image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)\n\n # Ensure same number of channels\n if image1.shape[-1] != image2.shape[-1]:\n max_channels = max(image1.shape[-1], image2.shape[-1])\n if image1.shape[-1] < max_channels:\n image1 = torch.cat(\n [\n image1,\n torch.ones(\n *image1.shape[:-1],\n max_channels - image1.shape[-1],\n device=image1.device,\n ),\n ],\n dim=-1,\n )\n if image2.shape[-1] < max_channels:\n image2 = torch.cat(\n [\n image2,\n torch.ones(\n *image2.shape[:-1],\n max_channels - image2.shape[-1],\n device=image2.device,\n ),\n ],\n dim=-1,\n )\n\n # Add spacing if specified\n if spacing_width > 0:\n spacing_width = spacing_width + (spacing_width % 2) # Ensure even\n\n if direction in [\"left\", \"right\"]:\n spacing_shape = (\n image1.shape[0],\n max(image1.shape[1], image2.shape[1]),\n spacing_width,\n image1.shape[-1],\n )\n else:\n spacing_shape = (\n image1.shape[0],\n spacing_width,\n max(image1.shape[2], image2.shape[2]),\n image1.shape[-1],\n )\n\n spacing = torch.full(spacing_shape, 0.0, device=image1.device)\n if isinstance(color_val, tuple):\n for i, c in enumerate(color_val):\n if i < spacing.shape[-1]:\n spacing[..., i] = c\n if spacing.shape[-1] == 4: # Add alpha\n spacing[..., 3] = 1.0\n else:\n spacing[..., : min(3, spacing.shape[-1])] = color_val\n if spacing.shape[-1] == 4:\n spacing[..., 3] = 1.0\n\n # Concatenate images\n images = [image2, image1] if direction in [\"left\", \"up\"] else [image1, image2]\n if spacing_width > 0:\n images.insert(1, spacing)\n\n concat_dim = 2 if direction in [\"left\", \"right\"] else 1\n return IO.NodeOutput(torch.cat(images, dim=concat_dim))\n\n stitch = execute # TODO: remove", "utf8_sha256": "6f42f3974bf112faed213e2dda6f9dd725101263b7a93bcb5d59c49a1049d68e" }, "members": { "define_schema": { "lines": [ 256, 274 ], "text": " def define_schema(cls):\n return IO.Schema(\n node_id=\"ImageStitch\",\n search_aliases=[\"combine images\", \"join images\", \"concatenate images\", \"side by side\"],\n display_name=\"Image Stitch\",\n description=\"Stitches image2 to image1 in the specified direction.\\n\"\n \"If image2 is not provided, returns image1 unchanged.\\n\"\n \"Optional spacing can be added between images.\",\n category=\"image/transform\",\n inputs=[\n IO.Image.Input(\"image1\"),\n IO.Combo.Input(\"direction\", options=[\"right\", \"down\", \"left\", \"up\"], default=\"right\"),\n IO.Boolean.Input(\"match_image_size\", default=True),\n IO.Int.Input(\"spacing_width\", default=0, min=0, max=1024, step=2, advanced=True),\n IO.Combo.Input(\"spacing_color\", options=[\"white\", \"black\", \"red\", \"green\", \"blue\"], default=\"white\", advanced=True),\n IO.Image.Input(\"image2\", optional=True),\n ],\n outputs=[IO.Image.Output()],\n )", "utf8_sha256": "c890cd0b786abb98321f4522fc79c6c5014173c0e96ef124dd49ab8951a4575c" }, "execute": { "lines": [ 277, 424 ], "text": " def execute(\n cls,\n image1,\n direction,\n match_image_size,\n spacing_width,\n spacing_color,\n image2=None,\n ) -> IO.NodeOutput:\n if image2 is None:\n return IO.NodeOutput(image1)\n\n # Handle batch size differences\n if image1.shape[0] != image2.shape[0]:\n max_batch = max(image1.shape[0], image2.shape[0])\n if image1.shape[0] < max_batch:\n image1 = torch.cat(\n [image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]\n )\n if image2.shape[0] < max_batch:\n image2 = torch.cat(\n [image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]\n )\n\n # Match image sizes if requested\n if match_image_size:\n h1, w1 = image1.shape[1:3]\n h2, w2 = image2.shape[1:3]\n aspect_ratio = w2 / h2\n\n if direction in [\"left\", \"right\"]:\n target_h, target_w = h1, int(h1 * aspect_ratio)\n else: # up, down\n target_w, target_h = w1, int(w1 / aspect_ratio)\n\n image2 = comfy.utils.common_upscale(\n image2.movedim(-1, 1), target_w, target_h, \"lanczos\", \"disabled\"\n ).movedim(1, -1)\n\n color_map = {\n \"white\": 1.0,\n \"black\": 0.0,\n \"red\": (1.0, 0.0, 0.0),\n \"green\": (0.0, 1.0, 0.0),\n \"blue\": (0.0, 0.0, 1.0),\n }\n\n color_val = color_map[spacing_color]\n\n # When not matching sizes, pad to align non-concat dimensions\n if not match_image_size:\n h1, w1 = image1.shape[1:3]\n h2, w2 = image2.shape[1:3]\n pad_value = 0.0\n if not isinstance(color_val, tuple):\n pad_value = color_val\n\n if direction in [\"left\", \"right\"]:\n # For horizontal concat, pad heights to match\n if h1 != h2:\n target_h = max(h1, h2)\n if h1 < target_h:\n pad_h = target_h - h1\n pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2\n image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)\n if h2 < target_h:\n pad_h = target_h - h2\n pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2\n image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)\n else: # up, down\n # For vertical concat, pad widths to match\n if w1 != w2:\n target_w = max(w1, w2)\n if w1 < target_w:\n pad_w = target_w - w1\n pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2\n image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)\n if w2 < target_w:\n pad_w = target_w - w2\n pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2\n image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)\n\n # Ensure same number of channels\n if image1.shape[-1] != image2.shape[-1]:\n max_channels = max(image1.shape[-1], image2.shape[-1])\n if image1.shape[-1] < max_channels:\n image1 = torch.cat(\n [\n image1,\n torch.ones(\n *image1.shape[:-1],\n max_channels - image1.shape[-1],\n device=image1.device,\n ),\n ],\n dim=-1,\n )\n if image2.shape[-1] < max_channels:\n image2 = torch.cat(\n [\n image2,\n torch.ones(\n *image2.shape[:-1],\n max_channels - image2.shape[-1],\n device=image2.device,\n ),\n ],\n dim=-1,\n )\n\n # Add spacing if specified\n if spacing_width > 0:\n spacing_width = spacing_width + (spacing_width % 2) # Ensure even\n\n if direction in [\"left\", \"right\"]:\n spacing_shape = (\n image1.shape[0],\n max(image1.shape[1], image2.shape[1]),\n spacing_width,\n image1.shape[-1],\n )\n else:\n spacing_shape = (\n image1.shape[0],\n spacing_width,\n max(image1.shape[2], image2.shape[2]),\n image1.shape[-1],\n )\n\n spacing = torch.full(spacing_shape, 0.0, device=image1.device)\n if isinstance(color_val, tuple):\n for i, c in enumerate(color_val):\n if i < spacing.shape[-1]:\n spacing[..., i] = c\n if spacing.shape[-1] == 4: # Add alpha\n spacing[..., 3] = 1.0\n else:\n spacing[..., : min(3, spacing.shape[-1])] = color_val\n if spacing.shape[-1] == 4:\n spacing[..., 3] = 1.0\n\n # Concatenate images\n images = [image2, image1] if direction in [\"left\", \"up\"] else [image1, image2]\n if spacing_width > 0:\n images.insert(1, spacing)\n\n concat_dim = 2 if direction in [\"left\", \"right\"] else 1\n return IO.NodeOutput(torch.cat(images, dim=concat_dim))", "utf8_sha256": "a6f26d9a40ebec2482ac2c24ee8d83ef5f16afed73569b2f36f94f091ad6b071" } }, "bases": [ "IO.ComfyNode" ], "acquisition": "retained bytes bound to exact tag/commit/tree/blob", "registration": { "lines": [ 848, 849 ], "text": "async def comfy_entrypoint() -> ImagesExtension:\n return ImagesExtension()", "utf8_sha256": "8448fe6ad543ea93961656dfe1b4402dac7786aa90964545c90862027f874bc9" }, "earliest_known_prior_member_retrieval": "2026-10-29T15:20:32.983124+00:00", "prior_member_time_basis": "own exact historical member only; unknown stays null", "new_binding_time": "2026-11-01T22:33:35.133156+00:00" } }