HEL-892: add source-bound RTX image upscale reference document
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,11 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale."
|
||||
"json"
|
||||
): "87614be0487164c3edb0b2208117c6868a8c12ddb720e75fd6e0580a2fc3e667",
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/手动按分镜视频截取.json"
|
||||
|
||||
@@ -38279,7 +38279,505 @@
|
||||
"scope": [
|
||||
"结构及用途局部审校",
|
||||
"源具名参数/注释/连线/素材模型用途人工语义局部审校"
|
||||
]
|
||||
],
|
||||
"fixed_version_document": {
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
|
||||
"source_sha1": "cf6d032b1140d06e02e957860b48e90c988e40e2",
|
||||
"source_sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4",
|
||||
"canonical_sha256": "557fac85ee7223b49f298498d2fd5504fb690b82e01155c6d3e11e41c8d53347",
|
||||
"notice": "准确来源仅参考;RTX包Git绑定、Comparer身份、UE恢复与设备/效果未知,转换关闭、未实跑。",
|
||||
"user_overview": "这张图把输入图片交给RTX超分节点,再正式保存放大结果,同时用原图A与放大B作比较。保存倍率模式、JSON int 2和ULTRA仅源状态;输入尺寸、动态列表、素材、GPU/驱动和真实效果未核。Comparer无提供方版本、UE7.7与恢复/加载次序未知;仅固定参考,转换关闭、未实跑。",
|
||||
"versions": [
|
||||
"core0.16.4→a7a6335be538f55faa2abf7404c9b8e970847d1f;frontend1.39.19→d91c283b7b758787b4d29126c1a9ac39dc14d6a7。",
|
||||
"RTX准确Registry0.1.0发布包SHA另列,Git绑定未知;不借最新版。",
|
||||
"Comparer仅复用rgthree449c58fcdd612f7733e54c51f6758ead63fa180b固定参考,源身份未知;UE7.7及Comparer缺版本、恢复次序未知。"
|
||||
],
|
||||
"counts": {
|
||||
"saved_fields": 7,
|
||||
"source_nodes": 4,
|
||||
"physical_edges": 4,
|
||||
"source_notes": 0,
|
||||
"history_objects": 0,
|
||||
"linked_saved_fields": 0,
|
||||
"frontend_only": 2,
|
||||
"final_scalars": 0,
|
||||
"final_prompt_constructed": false
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"field": "filename_prefix",
|
||||
"label": "正式保存文件名前缀",
|
||||
"type": "STRING",
|
||||
"schema_default": "ComfyUI",
|
||||
"unit": "文本,无数值单位",
|
||||
"limits": "未声明文本长度范围;实际路径按output配置和保存命名规则处理",
|
||||
"effect": "保存ComfyUI,与默认一致。1放大结果经边2到3.images;若实际运行成功,按配置output目录写计数PNG,非Comparer临时预览。元数据受disable_metadata/prompt/extra_pnginfo条件控制;无实际写入或目录可用性证明。",
|
||||
"evidence": [
|
||||
7
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "3",
|
||||
"scope": "root",
|
||||
"class_type": "SaveImage",
|
||||
"pointer": "/nodes/0/widgets_values/0",
|
||||
"value": "ComfyUI",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "resize_type",
|
||||
"label": "放大尺寸模式",
|
||||
"type": "COMFY_DYNAMICCOMBO_V3",
|
||||
"schema_default": "schema未显式给默认;选项顺序为scale by multiplier、target dimensions",
|
||||
"unit": "模式标签",
|
||||
"limits": "准确包仅这两个分支;源保存模式为scale by multiplier",
|
||||
"effect": "选择倍率分支才使用resize_type.scale;target dimensions才读取width/height。源未保存目标宽高,不补1920/1080为当前值。标签不是实际尺寸或效果证明。",
|
||||
"evidence": [
|
||||
0,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "1",
|
||||
"scope": "root",
|
||||
"class_type": "RTXVideoSuperResolution",
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"value": "scale by multiplier",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "resize_type.scale",
|
||||
"label": "倍率分支的缩放因子",
|
||||
"type": "FLOAT(schema);原JSON int",
|
||||
"schema_default": "2.0",
|
||||
"unit": "无量纲倍率",
|
||||
"limits": "schema 1.0~4.0,step0.01;仅scale by multiplier分支有效",
|
||||
"effect": "原JSON int 2与FLOAT schema默认2.0分开。准确实现先int(w*scale)/int(h*scale),再各max(8,round(维度/8)*8);依赖输入尺寸和实际恢复,不把2直接称为实测双倍尺寸或保证清晰度。无物理外线覆盖。",
|
||||
"evidence": [
|
||||
0,
|
||||
1,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "1",
|
||||
"scope": "root",
|
||||
"class_type": "RTXVideoSuperResolution",
|
||||
"pointer": "/nodes/1/widgets_values/1",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "quality",
|
||||
"label": "超分质量档位",
|
||||
"type": "COMBO",
|
||||
"schema_default": "ULTRA",
|
||||
"unit": "枚举,无数值单位",
|
||||
"limits": "LOW / MEDIUM / HIGH / ULTRA",
|
||||
"effect": "保存ULTRA,准确包映射到nvvfx.effects.QualityLevel.ULTRA;未知值实现回退HIGH不等于允许非法输入。实现经VideoSuperRes.load/run、CUDA张量处理;算法内部、显存/耗时/实际画质及设备可用性未核,ULTRA不保证新增细节。",
|
||||
"evidence": [
|
||||
0,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "1",
|
||||
"scope": "root",
|
||||
"class_type": "RTXVideoSuperResolution",
|
||||
"pointer": "/nodes/1/widgets_values/2",
|
||||
"value": "ULTRA",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "image",
|
||||
"label": "输入图片引用",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态input图片枚举,无固定文件默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "目标input目录图片过滤并排序;实际列表/文件存在未知",
|
||||
"effect": "原样保存ComfyUI_01117_.png,仅文件名不证明已上传或可读。准确核心加载会RGB转换、EXIF方向处理;IMAGE经边1到RTX,另经边6到Comparer.image_a作原图A,MASK未接,不称本图在使用遮罩。",
|
||||
"evidence": [
|
||||
6
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "2",
|
||||
"scope": "root",
|
||||
"class_type": "LoadImage",
|
||||
"pointer": "/nodes/2/widgets_values/0",
|
||||
"value": "ComfyUI_01117_.png",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "upload",
|
||||
"label": "上传控件保存占位",
|
||||
"type": "IMAGEUPLOAD(前端)",
|
||||
"schema_default": "前端注入,无后端第二保存参数默认",
|
||||
"unit": "前端状态,无数值单位",
|
||||
"limits": "源保存image;未核宿主/UE加载次序,不当图片内容、路径或执行参数",
|
||||
"effect": "保存字符串image是上传控件占位,和上一个图片引用分开保留;不是第二张图、不是上传成功证明。准确前端仅给出注入依据;本轮不执行上传、不访问素材。",
|
||||
"evidence": [
|
||||
6,
|
||||
11
|
||||
],
|
||||
"role": "frontend_control",
|
||||
"node_id": "2",
|
||||
"scope": "root",
|
||||
"class_type": "LoadImage",
|
||||
"pointer": "/nodes/2/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "images",
|
||||
"label": "比较器的空图像列表",
|
||||
"type": "list(源JSON);控件身份未证",
|
||||
"schema_default": "本图身份/版本未知,不能给实际schema默认;固定参考构造images:[]",
|
||||
"unit": "前端保存列表,无数值单位",
|
||||
"limits": "原widgets_values=[[]]:唯一顶层位置值=[],不等于缺键、零保存或历史对象",
|
||||
"effect": "本图无cnr_id/aux_id/ver;只按固定rgthree参考假设解释空列表,不制造A/B缓存、URL或预览。Slide是独立properties.comparer_mode而非第二保存位置。原图A来自2,放大B来自1;准确固定参考实现继承PreviewImage向temp保存比较图,但不能据同名认定本图安装该版本,更不是3的正式output保存。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
10
|
||||
],
|
||||
"role": "frontend_control",
|
||||
"node_id": "7",
|
||||
"scope": "root",
|
||||
"class_type": "Image Comparer (rgthree)",
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"value": [],
|
||||
"json_type": "list",
|
||||
"execution_note": "原mode=0,仅活动保存态,未执行;版本声明不是目标安装证明,未构造prompt。"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "rtx",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../rtx-reference/rtx____init__.py",
|
||||
"url": "https://cdn.comfy.org/comfyui/comfyui_nvidia_rtx_nodes/0.1.0/node.zip",
|
||||
"commit": "发布包SHA256:90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"sha256": "f79d7b99efa48d55e813f645f09c4c7cbeebd2a87e4403b63fb539848953bfd9",
|
||||
"lines": [
|
||||
10,
|
||||
49
|
||||
],
|
||||
"claim": "准确Registry0.1.0的节点schema、动态分支、默认及范围;Git绑定未知"
|
||||
},
|
||||
{
|
||||
"id": "rtx",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../rtx-reference/rtx____init__.py",
|
||||
"url": "https://cdn.comfy.org/comfyui/comfyui_nvidia_rtx_nodes/0.1.0/node.zip",
|
||||
"commit": "发布包SHA256:90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"sha256": "f79d7b99efa48d55e813f645f09c4c7cbeebd2a87e4403b63fb539848953bfd9",
|
||||
"lines": [
|
||||
51,
|
||||
109
|
||||
],
|
||||
"claim": "准确包实现的尺寸计算、8倍数对齐、质量映射、CUDA与nvvfx调用;不执行"
|
||||
},
|
||||
{
|
||||
"id": "rtx",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../rtx-reference/rtx____init__.py",
|
||||
"url": "https://cdn.comfy.org/comfyui/comfyui_nvidia_rtx_nodes/0.1.0/node.zip",
|
||||
"commit": "发布包SHA256:90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"sha256": "f79d7b99efa48d55e813f645f09c4c7cbeebd2a87e4403b63fb539848953bfd9",
|
||||
"lines": [
|
||||
112,
|
||||
121
|
||||
],
|
||||
"claim": "准确包扩展入口与节点注册"
|
||||
},
|
||||
{
|
||||
"id": "rtx",
|
||||
"file": "pyproject.toml",
|
||||
"local_file": "../rtx-reference/rtx__pyproject.toml",
|
||||
"url": "https://cdn.comfy.org/comfyui/comfyui_nvidia_rtx_nodes/0.1.0/node.zip",
|
||||
"commit": "发布包SHA256:90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"sha256": "f8e9dbe9879157fa9c87671f1e4dd5ad66a94120f0c6f8ed1948a5c4c37cc042",
|
||||
"lines": [
|
||||
1,
|
||||
16
|
||||
],
|
||||
"claim": "发布包版本0.1.0、依赖nvidia-vfx及仓库声明,不证明Git commit"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "comfy_api/latest/_io.py",
|
||||
"local_file": "../rtx-reference/core__comfy_api__latest___io.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/a7a6335be538f55faa2abf7404c9b8e970847d1f/comfy_api/latest/_io.py",
|
||||
"commit": "a7a6335be538f55faa2abf7404c9b8e970847d1f",
|
||||
"sha256": "2c4d245f9c8c1856ecf44c6569e13925afd47d9e233125f096c35ce8a19ebc5d",
|
||||
"git_blob_sha1": "050031dc05468578b475323eb494915276dcde8a",
|
||||
"lines": [
|
||||
1090,
|
||||
1142
|
||||
],
|
||||
"claim": "core0.16.4 DynamicCombo schema与所选分支展开条件"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/core/graph/widgets/dynamicWidgets.ts",
|
||||
"local_file": "../rtx-reference/frontend__src__core__graph__widgets__dynamicWidgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/d91c283b7b758787b4d29126c1a9ac39dc14d6a7/src/core/graph/widgets/dynamicWidgets.ts",
|
||||
"commit": "d91c283b7b758787b4d29126c1a9ac39dc14d6a7",
|
||||
"sha256": "f7dbc6697582194ffdeef1010fd7510a444e563f43ebc85920be096a5dffd53e",
|
||||
"git_blob_sha1": "3058e8131066eb797a4a1228eb643e388335a9ee",
|
||||
"lines": [
|
||||
72,
|
||||
206
|
||||
],
|
||||
"claim": "前端1.39.19所选子控件插入/移除与值恢复回调;不证明UE次序"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../rtx-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/a7a6335be538f55faa2abf7404c9b8e970847d1f/nodes.py",
|
||||
"commit": "a7a6335be538f55faa2abf7404c9b8e970847d1f",
|
||||
"sha256": "bd6a3ba78328fd8ee88bed781d3c18a6abee83ee4097feb9922d6e2bf11a444b",
|
||||
"git_blob_sha1": "0ef23b6405216cd6a4d1852ff42bd18c9ee0f218",
|
||||
"lines": [
|
||||
1702,
|
||||
1779
|
||||
],
|
||||
"claim": "core0.16.4 LoadImage动态列表、RGB与遮罩、文件检查条件"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../rtx-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/a7a6335be538f55faa2abf7404c9b8e970847d1f/nodes.py",
|
||||
"commit": "a7a6335be538f55faa2abf7404c9b8e970847d1f",
|
||||
"sha256": "bd6a3ba78328fd8ee88bed781d3c18a6abee83ee4097feb9922d6e2bf11a444b",
|
||||
"git_blob_sha1": "0ef23b6405216cd6a4d1852ff42bd18c9ee0f218",
|
||||
"lines": [
|
||||
1629,
|
||||
1684
|
||||
],
|
||||
"claim": "core0.16.4 SaveImage output目录、PNG计数命名及元数据条件"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "../rtx-reference/core__folder_paths.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/a7a6335be538f55faa2abf7404c9b8e970847d1f/folder_paths.py",
|
||||
"commit": "a7a6335be538f55faa2abf7404c9b8e970847d1f",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8",
|
||||
"lines": [
|
||||
428,
|
||||
472
|
||||
],
|
||||
"claim": "准确核心output子目录、计数前缀与路径边界规则;不访问目录"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"local_file": "../rtx-reference/frontend__src__scripts__widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/d91c283b7b758787b4d29126c1a9ac39dc14d6a7/src/scripts/widgets.ts",
|
||||
"commit": "d91c283b7b758787b4d29126c1a9ac39dc14d6a7",
|
||||
"sha256": "a538a4d4dd033b4b336abc6ac68b19eb31dee600294f9eba8e57e0802322fafd",
|
||||
"git_blob_sha1": "071ebff3ee4a41d4ef719f60603b9e0bca7353d7",
|
||||
"lines": [
|
||||
295,
|
||||
310
|
||||
],
|
||||
"claim": "准确前端FLOAT/COMBO/IMAGEUPLOAD与动态控件注册"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../rtx-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/a7a6335be538f55faa2abf7404c9b8e970847d1f/nodes.py",
|
||||
"commit": "a7a6335be538f55faa2abf7404c9b8e970847d1f",
|
||||
"sha256": "bd6a3ba78328fd8ee88bed781d3c18a6abee83ee4097feb9922d6e2bf11a444b",
|
||||
"git_blob_sha1": "0ef23b6405216cd6a4d1852ff42bd18c9ee0f218",
|
||||
"lines": [
|
||||
1686,
|
||||
1700
|
||||
],
|
||||
"claim": "PreviewImage继承SaveImage但使用temp目录;与正式保存分开"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/extensions/core/uploadImage.ts",
|
||||
"local_file": "../rtx-reference/frontend__src__extensions__core__uploadImage.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/d91c283b7b758787b4d29126c1a9ac39dc14d6a7/src/extensions/core/uploadImage.ts",
|
||||
"commit": "d91c283b7b758787b4d29126c1a9ac39dc14d6a7",
|
||||
"sha256": "935687284bebc3bbb49616976ccaf83c31998dd7abba231e5c8eaab0e8aa9e04",
|
||||
"git_blob_sha1": "4cb910dae13d47bbaacc9733dc7bf0d38b9ae095",
|
||||
"lines": [
|
||||
1,
|
||||
53
|
||||
],
|
||||
"claim": "前端1.39.19媒体上传占位输入注入,非后端第二参数"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"commit": "449c58fcdd612f7733e54c51f6758ead63fa180b",
|
||||
"file": "py/image_comparer.py",
|
||||
"url": "https://raw.githubusercontent.com/rgthree/rgthree-comfy/449c58fcdd612f7733e54c51f6758ead63fa180b/py/image_comparer.py",
|
||||
"sha256": "ca1813747bb7742779b363aa4633841312392d5a64cd5e8402784e3a61018187",
|
||||
"local_file": "../rtx-reference/../qwen-edit-reference/rgthree__py__image_comparer.py",
|
||||
"identity_binding": "reference hypothesis only; source node has no provider/version",
|
||||
"lines": [
|
||||
1,
|
||||
45
|
||||
],
|
||||
"claim": "仅复用固定参考假设:比较A/B继承PreviewImage;本图无提供方版本,不能绑定"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"commit": "449c58fcdd612f7733e54c51f6758ead63fa180b",
|
||||
"file": "web/comfyui/image_comparer.js",
|
||||
"url": "https://raw.githubusercontent.com/rgthree/rgthree-comfy/449c58fcdd612f7733e54c51f6758ead63fa180b/web/comfyui/image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"local_file": "../rtx-reference/../qwen-edit-reference/rgthree__web__comfyui__image_comparer.js",
|
||||
"identity_binding": "reference hypothesis only; source node has no provider/version",
|
||||
"lines": [
|
||||
16,
|
||||
75
|
||||
],
|
||||
"claim": "仅固定参考假设:Slide属性与保存图像列表;不证明本图插件身份"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"commit": "449c58fcdd612f7733e54c51f6758ead63fa180b",
|
||||
"file": "web/comfyui/image_comparer.js",
|
||||
"url": "https://raw.githubusercontent.com/rgthree/rgthree-comfy/449c58fcdd612f7733e54c51f6758ead63fa180b/web/comfyui/image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"local_file": "../rtx-reference/../qwen-edit-reference/rgthree__web__comfyui__image_comparer.js",
|
||||
"identity_binding": "reference hypothesis only; source node has no provider/version",
|
||||
"lines": [
|
||||
183,
|
||||
229
|
||||
],
|
||||
"claim": "仅固定参考假设:Slide/Click选项与空列表;不制造预览"
|
||||
},
|
||||
{
|
||||
"id": "rtx",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../rtx-reference/rtx__LICENSE",
|
||||
"url": "https://cdn.comfy.org/comfyui/comfyui_nvidia_rtx_nodes/0.1.0/node.zip",
|
||||
"commit": "发布包SHA256:90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"git_commit_binding": "unknown",
|
||||
"package_sha256": "90563d63d95bc6c5893f9107e048549b158223f1c4ab5615921db32e423ad8ba",
|
||||
"sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
||||
"lines": [
|
||||
1,
|
||||
201
|
||||
],
|
||||
"claim": "准确提交/发布包许可原文;rgthree仅参考假设"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../rtx-reference/core__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/a7a6335be538f55faa2abf7404c9b8e970847d1f/LICENSE",
|
||||
"commit": "a7a6335be538f55faa2abf7404c9b8e970847d1f",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确提交/发布包许可原文;rgthree仅参考假设"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../rtx-reference/frontend__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/d91c283b7b758787b4d29126c1a9ac39dc14d6a7/LICENSE",
|
||||
"commit": "d91c283b7b758787b4d29126c1a9ac39dc14d6a7",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确提交/发布包许可原文;rgthree仅参考假设"
|
||||
},
|
||||
{
|
||||
"id": "rgthree",
|
||||
"commit": "449c58fcdd612f7733e54c51f6758ead63fa180b",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/rgthree/rgthree-comfy/449c58fcdd612f7733e54c51f6758ead63fa180b/LICENSE",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"local_file": "../rtx-reference/../qwen-edit-reference/rgthree__LICENSE",
|
||||
"identity_binding": "reference hypothesis only; source node has no provider/version",
|
||||
"lines": [
|
||||
1,
|
||||
21
|
||||
],
|
||||
"claim": "准确提交/发布包许可原文;rgthree仅参考假设"
|
||||
}
|
||||
],
|
||||
"comments": [],
|
||||
"flow": [
|
||||
"这张图把输入图片交给RTX超分节点,再正式保存放大结果,同时用原图A与放大B作比较。保存倍率模式、JSON int 2和ULTRA仅源状态;输入尺寸、动态列表、素材、GPU/驱动和真实效果未核。Comparer无提供方版本、UE7.7与恢复/加载次序未知;仅固定参考,转换关闭、未实跑。",
|
||||
"根4节点4物理边,全mode0,无子图/注释。边1:2.LoadImage.IMAGE→1.RTX.images;边2:1.upscaled_images→3.SaveImage.images;边5:1.upscaled_images→7.image_b(放大B);边6:2.IMAGE→7.image_a(原图A)。LoadImage.MASK未接,无音频/视频节点,不把节点名Video说成当前视频流程。",
|
||||
"RTX保存scale by multiplier、JSON int 2、ULTRA;resize_type.scale具名源口FLOAT且未接外线。准确0.1.0分支只在倍率模式用scale,先乘输入宽高转int再round到8倍数且至少8;target dimensions的默认1920/1080不当本图保存值。输入未知,不能推实际尺寸/清晰度/速度。",
|
||||
"准确包MAX_PIXELS=1024*1024*16用于按输出面积分批,batch_size至少1,不是显存保证。quality映射到nvvfx枚举,算法内部未知;实现batch.cuda()、VideoSuperRes.load/run。nvidia-vfx依赖及CUDA设备条件不是已装证明,未固定该运行库版本,硬件代际/驱动最低版本无本包文本依据,不以最新版补齐。目标硬件、驱动、运行库和许可适用性未知;未下载运行库/模型或执行GPU。",
|
||||
"3正式保存前缀ComfyUI,准确core0.16.4按output配置写PNG计数名;7比较器保存[[]]只有一个空列表,Slide仅属性,不是历史缓存。参考rgthree实现继承PreviewImage向temp写比较预览,与正式保存分开;本图无提供方/版本,无法把参考当实际插件身份,不创建预览、不请求/api/view。",
|
||||
"源声明frontend1.39.19、core0.16.4,准确tag与完整commit固定。RTX声明Comfy-Org/Nvidia_RTX_Nodes_ComfyUI、comfyui_nvidia_rtx_nodes 0.1.0,准确Registry包固定但Git绑定未知,仓库tag集合为空,不用当前main补齐。Comparer未声明身份,只复用已审固定rgthree文本作假设。",
|
||||
"SaveImage/RTX/LoadImage各UE7.7;Comparer的ue_properties缺version。frontendVersion与UE版本是源文本而非目标安装,空ue_links/links_added_by_ue和空可连接表不证明无回调;动态子控件恢复、扩展加载次序未核。不重复调查旧式SetGet/UE历史。",
|
||||
"7非注释保存位置=6标量(含上传占位)+1完整空列表,零源注释、无历史媒体对象。原文件不动;155完整定稿0/必要实跑0/新增转换0,145UI仍9参考候选136关闭。动态图片枚举、文件尺寸/权限、目标安装/设备与最终效果待核。",
|
||||
"原边 root [1, 2, 0, 1, 0, \"IMAGE\"]",
|
||||
"原边 root [2, 1, 0, 3, 0, \"IMAGE\"]",
|
||||
"原边 root [5, 1, 0, 7, 1, \"IMAGE\"]",
|
||||
"原边 root [6, 2, 0, 7, 0, \"IMAGE\"]",
|
||||
"原节点 root {\"id\": 3, \"type\": \"SaveImage\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图片\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 2}, {\"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"Node name for S&R\": \"SaveImage\", \"cnr_id\": \"comfy-core\", \"ver\": \"0.16.4\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.7\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 1, \"type\": \"RTXVideoSuperResolution\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"images\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 1}, {\"localized_name\": \"resize_type\", \"name\": \"resize_type\", \"type\": \"COMFY_DYNAMICCOMBO_V3\", \"widget\": {\"name\": \"resize_type\"}, \"link\": null}, {\"localized_name\": \"resize_type.scale\", \"name\": \"resize_type.scale\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"resize_type.scale\"}, \"link\": null}, {\"localized_name\": \"quality\", \"name\": \"quality\", \"type\": \"COMBO\", \"widget\": {\"name\": \"quality\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"upscaled_images\", \"name\": \"upscaled_images\", \"type\": \"IMAGE\", \"links\": [2, 5]}], \"properties\": {\"Node name for S&R\": \"RTXVideoSuperResolution\", \"aux_id\": \"Comfy-Org/Nvidia_RTX_Nodes_ComfyUI\", \"ver\": \"0.1.0\", \"cnr_id\": \"comfyui_nvidia_rtx_nodes\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.7\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 2, \"type\": \"LoadImage\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"COMBO\", \"widget\": {\"name\": \"image\"}, \"link\": null}, {\"localized_name\": \"选择文件上传\", \"name\": \"upload\", \"type\": \"IMAGEUPLOAD\", \"widget\": {\"name\": \"upload\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1, 6]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}], \"properties\": {\"Node name for S&R\": \"LoadImage\", \"cnr_id\": \"comfy-core\", \"ver\": \"0.16.4\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.7\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 7, \"type\": \"Image Comparer (rgthree)\", \"mode\": 0, \"inputs\": [{\"dir\": 3, \"label\": \"图像_A\", \"localized_name\": \"图像_A\", \"name\": \"image_a\", \"type\": \"IMAGE\", \"link\": 6}, {\"dir\": 3, \"label\": \"图像_B\", \"localized_name\": \"图像_B\", \"name\": \"image_b\", \"type\": \"IMAGE\", \"link\": 5}], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"comparer_mode\": \"Slide\"}}"
|
||||
],
|
||||
"flow_evidence": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18
|
||||
],
|
||||
"zero_saved_nodes": [],
|
||||
"steps": [
|
||||
"这张图把输入图片交给RTX超分节点,再正式保存放大结果,同时用原图A与放大B作比较。保存倍率模式、JSON int 2和ULTRA仅源状态;输入尺寸、动态列表、素材、GPU/驱动和真实效果未核。Comparer无提供方版本、UE7.7与恢复/加载次序未知;仅固定参考,转换关闭、未实跑。",
|
||||
"操作1:核原图A/放大B四条物理边及MASK未接,保持停用,不上传素材。",
|
||||
"操作2:区分倍率2的JSON类型、条件schema与未测尺寸/效果,核GPU/驱动条件但不执行。",
|
||||
"操作3:核ComfyUI正式前缀与Comparer空列表/Slide属性,未知身份只参考,不创建缓存。",
|
||||
"常见问题:动态图片列表/文件、运行库/设备、Comparer版本和UE恢复次序未知;当前不是可靠转换或生成入口。"
|
||||
]
|
||||
}
|
||||
},
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json": {
|
||||
"source_sha": "3a3b17a5bb55e250ed0430b9c2aeef396b7992c7",
|
||||
|
||||
@@ -0,0 +1,217 @@
|
||||
"RTX saved values, physical links, unknown identities and fail-closed binding."
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / "docs/hel-892/rtx-document-evidence"
|
||||
PATH = next(p for p in DEFINITIONS if p.endswith("/高清放大/RTX_image_upscale.json"))
|
||||
SOURCE = json.loads((REPO / PATH).read_bytes())
|
||||
REVIEW = review_for(PATH, hashlib.sha1((REPO / PATH).read_bytes()).hexdigest())
|
||||
BLOCK = REVIEW["fixed_version_document"]
|
||||
|
||||
|
||||
def pointer(obj, path):
|
||||
for part in path.strip("/").split("/"):
|
||||
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
|
||||
return obj
|
||||
|
||||
|
||||
def doc(source=None, review=None):
|
||||
return build_document(
|
||||
PATH,
|
||||
SOURCE if source is None else source,
|
||||
None,
|
||||
None,
|
||||
[],
|
||||
REVIEW if review is None else review,
|
||||
)
|
||||
|
||||
|
||||
def refuse(s, r):
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
r["caller_digest"] = hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_each_saved_value_type_pointer_and_exact_evidence(f):
|
||||
v = pointer(SOURCE, f["pointer"])
|
||||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||||
for k in [
|
||||
"label",
|
||||
"type",
|
||||
"schema_default",
|
||||
"unit",
|
||||
"limits",
|
||||
"effect",
|
||||
"execution_note",
|
||||
"role",
|
||||
]:
|
||||
assert f[k]
|
||||
for k in f["evidence"]:
|
||||
e = BLOCK["sources"][k]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
assert len(e["commit"]) == 40 or e["git_commit_binding"] == "unknown"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
@pytest.mark.parametrize("variant", ["value", "type", "text"])
|
||||
def test_each_saved_position_refuses_forged_source_or_definition(f, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
b = r["fixed_version_document"]
|
||||
bf = next(x for x in b["fields"] if x["pointer"] == f["pointer"])
|
||||
if variant == "text":
|
||||
bf["limits"] = "forged"
|
||||
else:
|
||||
parent, _, key = f["pointer"].rpartition("/")
|
||||
target = pointer(s, parent)
|
||||
target[int(key) if isinstance(target, list) else key] = (
|
||||
"forged" if variant == "type" else None
|
||||
)
|
||||
bf["value"] = pointer(s, f["pointer"])
|
||||
bf["json_type"] = type(bf["value"]).__name__
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("i", range(4))
|
||||
@pytest.mark.parametrize("variant", ["mode", "identity"])
|
||||
def test_each_node_mode_and_identity_bound(i, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
n = s["nodes"][i]
|
||||
if variant == "mode":
|
||||
n["mode"] = 0 if n["mode"] == 4 else 4
|
||||
else:
|
||||
n["properties"]["ver"] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("i", range(4))
|
||||
def test_each_physical_endpoint_bound_both_directions(i):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
s["links"][i][3] = 99999
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant",
|
||||
[
|
||||
"empty",
|
||||
"missing",
|
||||
"slide",
|
||||
"ue",
|
||||
"frontend",
|
||||
"summary",
|
||||
"citation",
|
||||
"source_sha",
|
||||
"path",
|
||||
"layout",
|
||||
"dynamic",
|
||||
"mask",
|
||||
],
|
||||
)
|
||||
def test_special_shapes_and_identity_fail_closed(variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
ns = {n["id"]: n for n in s["nodes"]}
|
||||
b = r["fixed_version_document"]
|
||||
if variant == "empty":
|
||||
ns[7]["widgets_values"] = []
|
||||
elif variant == "missing":
|
||||
del ns[7]["widgets_values"]
|
||||
elif variant == "slide":
|
||||
ns[7]["properties"]["comparer_mode"] = "Click"
|
||||
elif variant == "ue":
|
||||
ns[1]["properties"]["ue_properties"]["version"] = "forged"
|
||||
elif variant == "frontend":
|
||||
s["extra"]["frontendVersion"] = "forged"
|
||||
elif variant == "summary":
|
||||
b["user_overview"] = "forged"
|
||||
elif variant == "citation":
|
||||
b["sources"][0]["sha256"] = "0" * 64
|
||||
elif variant == "source_sha":
|
||||
b["source_sha1"] = "0" * 40
|
||||
elif variant == "path":
|
||||
b["source_path"] = "forged"
|
||||
elif variant == "layout":
|
||||
ns[1]["pos"][0] += 1
|
||||
elif variant == "dynamic":
|
||||
ns[1]["inputs"][2]["name"] = "width"
|
||||
elif variant == "mask":
|
||||
ns[2]["outputs"][1]["links"] = [1]
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
def test_independent_inventory_edges_and_reference_conditions():
|
||||
ns = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
assert len(ns) == 4 and len(SOURCE["links"]) == 4 and all(n["mode"] == 0 for n in ns.values())
|
||||
assert ns[1]["widgets_values"] == ["scale by multiplier", 2, "ULTRA"]
|
||||
assert type(ns[1]["widgets_values"][1]) is int
|
||||
assert ns[7]["widgets_values"] == [[]] and ns[7]["properties"]["comparer_mode"] == "Slide"
|
||||
assert not any(k in ns[7]["properties"] for k in ["cnr_id", "aux_id", "ver"])
|
||||
assert ns[2]["widgets_values"] == ["ComfyUI_01117_.png", "image"] and ns[3][
|
||||
"widgets_values"
|
||||
] == ["ComfyUI"]
|
||||
assert ns[2]["outputs"][1]["links"] is None
|
||||
assert ns[1]["inputs"][2]["type"] == "FLOAT" and ns[1]["inputs"][2]["link"] is None
|
||||
assert SOURCE["links"] == [
|
||||
[1, 2, 0, 1, 0, "IMAGE"],
|
||||
[2, 1, 0, 3, 0, "IMAGE"],
|
||||
[5, 1, 0, 7, 1, "IMAGE"],
|
||||
[6, 2, 0, 7, 0, "IMAGE"],
|
||||
]
|
||||
for e, src, slot, dst, inp, _ in SOURCE["links"]:
|
||||
assert e in ns[src]["outputs"][slot]["links"] and ns[dst]["inputs"][inp]["link"] == e
|
||||
assert len(BLOCK["fields"]) == len({f["pointer"] for f in BLOCK["fields"]}) == 7
|
||||
assert sum(isinstance(f["value"], list) for f in BLOCK["fields"]) == 1
|
||||
assert BLOCK["comments"] == [] and not doc()["source_notes"]
|
||||
assert doc()["fixed_version"]["matched"] and not BLOCK["counts"]["final_prompt_constructed"]
|
||||
assert doc()["dependencies"]["check_state"] == "unchecked"
|
||||
assert doc()["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
for word in [
|
||||
"原图A",
|
||||
"放大B",
|
||||
"round",
|
||||
"8",
|
||||
"Git绑定未知",
|
||||
"MAX_PIXELS",
|
||||
"CUDA",
|
||||
"temp",
|
||||
"output",
|
||||
"UE7.7",
|
||||
"缺version",
|
||||
"[[]]",
|
||||
]:
|
||||
assert word in " ".join(BLOCK["flow"])
|
||||
|
||||
|
||||
def test_old_28_review_objects_unchanged():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "82621b3:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
now[PATH].pop("fixed_version_document")
|
||||
assert now == old and len(DEFINITIONS) == 29
|
||||
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
|
||||
assert len(blocks) == 28 and sum(len(b["fields"]) for b in blocks) == 888
|
||||
assert (
|
||||
sum(
|
||||
len(
|
||||
build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], r)[
|
||||
"source_notes"
|
||||
]
|
||||
)
|
||||
for p, r in old.items()
|
||||
if "fixed_version_document" in r
|
||||
)
|
||||
== 21
|
||||
)
|
||||
assert review_for(PATH, "0" * 40) is None
|
||||
Reference in New Issue
Block a user