Files
aigc-home/docs/hel-892/batch180-exact-engine/initial-generated/reused-aux-evidence.json
T

113 lines
11 KiB
JSON

{
"aux:AIO_Preprocessor": {
"source": {
"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
},
"properties": {
"RETURN_TYPES": [
"IMAGE"
],
"FUNCTION": "execute"
},
"original_class": {
"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"
},
"original_retrieval": "2026-10-29T15:47:36.895566+00:00",
"new_release_binding": "2026-11-01T22:32:39.614355+00:00",
"rechecked_at": "2026-11-01T22:52:03.419557+00:00"
},
"aux:DWPreprocessor": {
"source": {
"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
},
"properties": {
"RETURN_TYPES": [
"IMAGE",
"POSE_KEYPOINT"
],
"FUNCTION": "estimate_pose"
},
"original_class": {
"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"
},
"original_retrieval": null,
"new_release_binding": "2026-11-01T22:32:47.809630+00:00",
"rechecked_at": "2026-11-01T22:52:03.419560+00:00"
},
"aux:AnimalPosePreprocessor": {
"source": {
"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
},
"properties": {
"RETURN_TYPES": [
"IMAGE",
"POSE_KEYPOINT"
],
"FUNCTION": "estimate_pose"
},
"original_class": {
"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"
},
"original_retrieval": null,
"new_release_binding": "2026-11-01T22:32:47.809630+00:00",
"rechecked_at": "2026-11-01T22:52:03.419561+00:00"
}
}