{ "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" } }