HEL-892: add source-bound BiRefNet background removal reading notes

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 20:43:39 +08:00
co-authored by multica-agent
parent 6e1e47b8e7
commit fb93acc3b4
95 changed files with 30951 additions and 13 deletions
@@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
DEFINITIONS = {
(
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
"分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json"
): "184a0502f9833251fe0fbbf1f90be4ed59b7d855d3cc796dee5cf2f5b50d7e3b",
(
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
"分离-视频截取合并-图像视频放大/加载本地latent解码.json"
@@ -3122,7 +3122,525 @@
"scope": [
"结构及用途局部审校",
"源具名参数/注释/连线/素材模型用途人工语义局部审校"
]
],
"fixed_version_document": {
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"source_sha1": "9d99de736806f8eeffed114cc1ba075c16276b69",
"source_sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036",
"canonical_sha256": "d2424149db6ebbd2d49a9020457eb6349ac96d97f46de9dbf4ecc021692e6ea7",
"notice": "固定版本仅作参考;背景移除实现/遮罩极性、模型安装、UE恢复与目标环境未知,未实跑,转换保持关闭。",
"user_overview": "这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"versions": [
"源声明frontendVersion1.43.17,官方v1.43.17→f754141537fecaae53d635d94615f588b0e39f95,仅静态参考;UE全节点7.8,空绑定表不证明无钩子,真实恢复/回调次序未知。",
"只有LoadImage17明确cnr_id=comfy-core/ver0.19.3;官方v0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66。额外enableTabs/tabWidth/tabXOffset/hasSecondTab/secondTabText/secondTabOffset/secondTabWidth原文保留,不据cnr就断言未受UE影响。",
"其它六运行实体22/23/24/25/18/20均缺提供方和版本;InvertMask/JoinImageWithAlpha/PreviewImage/MaskPreview在固定core0.19.3确有定义,但本图这些实体只能作明确固定参考假设,不能继承LoadImage身份或当目标安装事实。",
"LoadBackgroundRemovalModel和RemoveBackground在该完整core树nodes.py及comfy_extras的有界静态检索未发现定义/注册;不扩查其它历史或最新版,默认/动态列表/推理算法/预处理/范围/输出极性未知。",
"许可分别保留固定core GPL-3.0与frontend GPL-3.0原文;未知背景节点提供方和模型权重许可另属未知。HuggingFace URL仅纯文本,不访问、下载或执行。"
],
"counts": {
"saved_fields": 3,
"scalar_saved_positions": 3,
"history_objects": 0,
"source_nodes": 8,
"physical_edges": 7,
"source_notes": 1,
"linked_saved_fields": 0,
"frontend_only": 1,
"final_scalars": 0,
"final_prompt_constructed": false
},
"fields": [
{
"field": "bg_removal_name",
"label": "背景移除模型引用",
"type": "源COMBO;定义未知",
"schema_default": "未知:core0.19.3有界树未找到该节点定义",
"unit": "模型文件引用",
"limits": "动态成员、默认/范围/加载条件未知,文件存在/架构/内存/设备/效果未知",
"effect": "保存birefnet.safetensors,仅为模型引用。23.bg_model按源槽0送22.bg_removal_model;两节点均缺提供方/版本,不能由名称或模型URL套用别版实现。本轮不加载权重或发网络下载。",
"evidence": [
3,
2
],
"role": "unconfirmed_model_reference",
"node_id": "23",
"definition_node_id": "23",
"class_type": "LoadBackgroundRemovalModel",
"scope": "root",
"pointer": "/nodes/3/widgets_values/0",
"value": "birefnet.safetensors",
"json_type": "str",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
},
{
"field": "image",
"label": "输入图片引用",
"type": "COMBO",
"schema_default": "运行时input目录图片文件排序列表,无固定schema默认",
"unit": "图片文件引用",
"limits": "由目标input目录及image内容类型过滤决定;实际可选值、尺寸/格式/文件存在未知",
"effect": "保存20260425_192628_Z-Image_00001_.png,仅纯文本。core0.19.3 LoadImage参考按annotated filepath读取,经EXIF校正、RGB/255;IMAGE槽0分流至22.image与25.image。MASK槽1虽可从源alpha生成1-alpha或无alpha时零mask,但本图未接,不能当背景移除遮罩。未读取图片。",
"evidence": [
0,
1,
14,
15
],
"role": "scalar",
"node_id": "17",
"definition_node_id": "17",
"class_type": "LoadImage",
"scope": "root",
"pointer": "/nodes/7/widgets_values/0",
"value": "20260425_192628_Z-Image_00001_.png",
"json_type": "str",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
},
{
"field": "upload",
"label": "图片上传控件保存状态",
"type": "IMAGEUPLOAD(前端)",
"schema_default": "image(按钮占位value);不是后台默认",
"unit": "前端状态",
"limits": "保存字符串image;不是图片名、已上传证明或服务端参数;真实恢复/UE条件未知",
"effect": "源第二位置image只作前端上传控件状态保存。固定前端在image_upload媒体combo上增加upload按钮,占位value=image,options.serialize=false;它控制prompt排除,与widget.serialize工作流持久化开关不同,因此保存位置仍原样保留。上传代码会POST /upload/image后更新引用,本轮不调用。即使恢复源码可定位,不能把这项作为LoadImage服务端upload参数或证明上传成功。",
"evidence": [
11,
12,
13,
14,
15,
16,
17,
18
],
"role": "frontend_control",
"node_id": "17",
"definition_node_id": "17",
"class_type": "LoadImage",
"scope": "root",
"pointer": "/nodes/7/widgets_values/1",
"value": "image",
"json_type": "str",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
}
],
"sources": [
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1700,
1783
],
"claim": "LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2041,
2065
],
"claim": "准确旧式LoadImage/PreviewImage注册映射"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2250,
2296
],
"claim": "旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2350,
2468
],
"claim": "有界core0.19.3内置扩展清单;没有另取历史或新版定义"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1627,
1698
],
"claim": "PreviewImage继承SaveImage写PNG/UI,但覆盖为temp目录,不是正式output导出"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
197,
216
],
"claim": "InvertMask新schema,mask→MASK,execute=1.0-mask,无显式限幅"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
403,
445
],
"claim": "MaskPreview新schema/输出节点/UI.PreviewMask及扩展注册;描述字符串不能代替实现"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
188,
226
],
"claim": "JoinImageWithAlpha新schema/注册;最小批次数,内部再次反转,RGB三通道接alpha"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
1,
9
],
"claim": "resize_mask为bilinear插值至image高宽,不是Join分支显式clamp"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
389,
411
],
"claim": "PreviewMask扩展灰度至三通道并委托PreviewImage,明确temp类型"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
76,
155
],
"claim": "临时预览PNG的CPU量化/clip、元数据与文件描述符,仅行为参考不实际写图"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "../birefnet-reference/frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"lines": [
1,
40
],
"claim": "按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"local_file": "../birefnet-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29",
"lines": [
1,
129
],
"claim": "准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"lines": [
296,
309
],
"claim": "IMAGEUPLOAD控件工厂注册"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
899,
938
],
"claim": "按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
963,
996
],
"claim": "保存widgets_values及onSerialize,保存态不直接等于最终prompt"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
1945,
1998
],
"claim": "addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"local_file": "../birefnet-reference/frontend__src__utils__executionUtil.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33",
"lines": [
83,
112
],
"claim": "graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"local_file": "../birefnet-reference/frontend__src__composables__node__useNodeImageUpload.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8",
"lines": [
20,
56
],
"claim": "上传POST与完成后路径更新仅源码说明;本轮不调用上传"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "LICENSE",
"local_file": "../birefnet-reference/core__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"local_file": "../birefnet-reference/frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
}
],
"comments": [
{
"node_id": "21",
"pointer": "/nodes/4/widgets_values/0",
"text": "## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n",
"meaning": "原文模型链接、目录树和报错指引完整保留,只作源注释,不计执行参数;不是安装事实、更新/下载授权或目标可用性证明。"
}
],
"flow": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"8节点全mode0、7运行实体加MarkdownNote21、7物理边,无子图。3个非注释顶层保存位置,1完整注释单计;22/24/25/18/20原widgets_values=[]零位置,与缺键/null/{}不同。",
"23.bg_model槽0→22.bg_removal_model输入槽1;17.IMAGE槽0→22.image输入槽0及25.image输入槽0。源类型BACKGROUND_REMOVAL/IMAGE只反映源端点,缺定义不补造prompt。",
"22.mask槽0 MASK→24.mask→25.alpha;另22.mask槽0直接→20.mask。25.IMAGE槽0→18.images。源双向端点吻合,LoadImage17的MASK槽1 links=null,未接入任何支路。",
"若24/25采用所固定core0.19.3实现,设RemoveBackground输出M:InvertMask给1-M,JoinImageWithAlpha再做1-resize(1-M);同尺寸且正常数值条件下alpha回到M,异尺寸经bilinear重采样,不保证逐像素相同。合成处未显式clamp,不把其它函数的clamp套用;保存PNG量化阶段才clip至0~255。alpha=1为不透明、0为透明的RGBA语义不等于已证明M的前景/背景方向。",
"因为RemoveBackground22和模型加载23的准确实现未知,M是否前景白/背景黑、范围是否0~1及实际效果均未知;不能仅凭InvertMask或节点名就声称背景必透明。模型推理/预处理/设备/内存/批量条件也未知。",
"MaskPreview20直接预览M,按固定参考UI实现把单通道展开成三通道灰度,未经过24反转或25合成;PreviewImage18预览的是原RGB与合成alpha的结果,两支路不可混同。",
"固定PreviewImage18是旧SaveImage子类,OUTPUT_NODE、RETURN_TYPES=(),覆盖目录为temp并返回UI images;MaskPreview20是新schema输出节点,委托UI.PreviewMask→PreviewImage→temp PNG。源无SaveImage实体,不能说已永久导出,临时文件、真实目录权限与实际输出未知。",
"LoadImage17按旧式INPUT_TYPES动态枚举input目录,读取EXIF校正/RGB归一化并返回IMAGE和MASK;source image引用不验证存在。上传控件不是后台参数,固定前端恢复/保存和上传实现仅静态说明,UE钩子顺序未确认。",
"七实体接口分别按源原文保留;24/25/20固定参考是新schema,17/18旧式注册,22/23无准确schema。节点身份未知与源端点原文分开;未修改线、创建执行出口、转换候选或启用资格。",
"Note21完整目录树、HuggingFace模型链接、更新提示与三个问题链接纯文本保留;models元数据同样只是源引用,不当目录存在、模型安装、许可或更新/下载授权。",
"源物理边:[17, 23, 0, 22, 1, \"BACKGROUND_REMOVAL\"]",
"源物理边:[18, 22, 0, 24, 0, \"MASK\"]",
"源物理边:[19, 24, 0, 25, 1, \"MASK\"]",
"源物理边:[20, 17, 0, 22, 0, \"IMAGE\"]",
"源物理边:[21, 17, 0, 25, 0, \"IMAGE\"]",
"源物理边:[22, 25, 0, 18, 0, \"IMAGE\"]",
"源物理边:[23, 22, 0, 20, 0, \"MASK\"]",
"节点22 RemoveBackground mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 20}, {\"localized_name\": \"bg_removal_model\", \"name\": \"bg_removal_model\", \"type\": \"BACKGROUND_REMOVAL\", \"link\": 17}];原outputs=[{\"localized_name\": \"mask\", \"name\": \"mask\", \"type\": \"MASK\", \"links\": [18, 23]}];原properties={\"Node name for S&R\": \"RemoveBackground\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点24 InvertMask mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 18}];原outputs=[{\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": [19]}];原properties={\"Node name for S&R\": \"InvertMask\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点25 JoinImageWithAlpha mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 21}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 19}];原outputs=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [22]}];原properties={\"Node name for S&R\": \"JoinImageWithAlpha\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点23 LoadBackgroundRemovalModel mode=0;保存位置=1(Note另计);原inputs=[{\"localized_name\": \"bg_removal_name\", \"name\": \"bg_removal_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"bg_removal_name\"}, \"link\": null}];原outputs=[{\"localized_name\": \"bg_model\", \"name\": \"bg_model\", \"type\": \"BACKGROUND_REMOVAL\", \"links\": [17]}];原properties={\"Node name for S&R\": \"LoadBackgroundRemovalModel\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"models\": [{\"name\": \"birefnet.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors\", \"directory\": \"background_removal\"}]}",
"节点21 MarkdownNote mode=0;保存位置=1(Note另计);原inputs=[];原outputs=[];原properties={\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点18 PreviewImage mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 22}];原outputs=[];原properties={\"Node name for S&R\": \"PreviewImage\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点20 MaskPreview mode=0;保存位置=0(Note另计);原inputs=[{\"label\": \"遮罩\", \"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 23}];原outputs=[];原properties={\"Node name for S&R\": \"MaskPreview\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点17 LoadImage mode=0;保存位置=2(Note另计);原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\": [20, 21]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}];原properties={\"Node name for S&R\": \"LoadImage\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}"
],
"flow_evidence": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
],
"zero_saved_nodes": [
{
"node_id": "22",
"class_type": "RemoveBackground",
"effect": "RemoveBackground只有源image/ bg_removal_model输入与mask槽0 MASK输出;core0.19.3有界树无该定义,推理算法、输出极性/范围、预处理、设备及效果未知。",
"evidence": [
3,
2
]
},
{
"node_id": "24",
"class_type": "InvertMask",
"effect": "固定core0.19.3参考:新schema输入mask,输出槽0 MASK,1.0-mask,不显式clamp。该实体没有提供方/版本声明,仅作假设,原[]零位置。",
"evidence": [
5,
2,
3
]
},
{
"node_id": "25",
"class_type": "JoinImageWithAlpha",
"effect": "固定core0.19.3参考:新schema image/alpha→槽0 IMAGE;按min(image批次,alpha批次),bilinear缩放mask到图像高宽,再1.0-mask,拼接image前三RGB通道和alpha;此分支无显式clamp。实体身份未知,仅作假设;原[]零位置。",
"evidence": [
7,
8,
2
]
},
{
"node_id": "18",
"class_type": "PreviewImage",
"effect": "固定core0.19.3参考:旧式PreviewImage images输入、无执行返回槽,OUTPUT_NODE继承SaveImage;写temp PNG并返回UI images,不是永久output保存。源未声明身份,仅参考假设;原[]零位置。",
"evidence": [
4,
1
]
},
{
"node_id": "20",
"class_type": "MaskPreview",
"effect": "固定core0.19.3参考:新schema mask输入、无数据输出槽、is_output_node;UI.PreviewMask将原mask展开三通道,经PreviewImage保存temp PNG/UI。schema描述虽称output,实际委托temp;实体身份未知,仅参考假设;原[]零位置。",
"evidence": [
6,
9,
10,
2
]
}
],
"steps": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"素材要求:一张待处理图片和与准确背景移除节点实现相匹配的模型。这里只保存引用,不索取/读取图片或权重;不能凭birefnet.safetensors文件名判断架构或显存。",
"操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。",
"操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区域。",
"操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。",
"常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、目录和运行环境,当前未知,不下载模型。",
"常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/UE次序均未核对,未定稿、未实跑。"
]
}
},
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json": {
"source_sha": "c249489330431c46157a8e12df9b6484ee003ba6",
@@ -190,6 +190,8 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent():
p = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ec3388a:" + p], cwd=REPO))
now = json.loads((REPO / p).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
# Freeze the historical eleven-document revision; the two grid additions are
# independently compared against 27e6d56 in test_grid_fixed_document.
# Gemma is separately checked against 9dac1b4 in test_gemma_fixed_document.
@@ -216,7 +218,7 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent():
assert len(additions) == 12
for p in additions:
now[p].pop("fixed_version_document")
historical = [p for p in DEFINITIONS if p not in additions]
historical = [p for p in DEFINITIONS if p not in additions and p != birefnet]
assert len(historical) == 11
for path in historical:
block = now[path]["fixed_version_document"]
@@ -0,0 +1,262 @@
"""One editorial addition: identity refusal, exact positions and media conditions."""
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/birefnet-document-evidence"
PATHS = [next(p for p in DEFINITIONS if p.endswith(n + ".json")) for n in ["birefnet_图像移除背景"]]
SOURCES = [json.loads((REPO / p).read_bytes()) for p in PATHS]
REVIEWS = [review_for(p, hashlib.sha1((REPO / p).read_bytes()).hexdigest()) for p in PATHS]
FIELDS = [(i, f) for i, r in enumerate(REVIEWS) for f in r["fixed_version_document"]["fields"]]
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(i, source=None, review=None):
return build_document(
PATHS[i],
SOURCES[i] if source is None else source,
None,
None,
[],
REVIEWS[i] if review is None else review,
)
@pytest.mark.parametrize("i,field", FIELDS)
def test_exact_positions_and_fixed_text_citations(i, field):
value = pointer(SOURCES[i], field["pointer"])
assert (
canonical(value) == canonical(field["value"]) and type(value).__name__ == field["json_type"]
)
for k in [
"label",
"type",
"schema_default",
"unit",
"limits",
"effect",
"execution_note",
"role",
]:
assert field[k]
for k in field["evidence"]:
e = REVIEWS[i]["fixed_version_document"]["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 and e["commit"] in e["url"]) or e.get(
"git_commit_binding"
) == "unknown"
@pytest.mark.parametrize("i,field", FIELDS)
@pytest.mark.parametrize("variant", ["saved", "type", "text"])
def test_every_position_refuses_even_recomputed_caller_digest(i, field, variant):
s, r = copy.deepcopy(SOURCES[i]), copy.deepcopy(REVIEWS[i])
b = r["fixed_version_document"]
f = next(f for f in b["fields"] if f["pointer"] == field["pointer"])
if variant == "text":
f["schema_default"] = "forged"
else:
parent, _, key = field["pointer"].rpartition("/")
target = pointer(s, parent)
target[int(key) if isinstance(target, list) else key] = (
"forged" if variant == "type" else ("changed-null" if field["value"] is None else None)
)
f["value"] = pointer(s, field["pointer"])
f["json_type"] = type(f["value"]).__name__
b["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
r["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest()
assert not doc(i, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("node", [22, 24, 25, 23, 21, 18, 20, 17])
@pytest.mark.parametrize("kind", ["mode", "ver", "cnr", "ue"])
def test_each_identity_and_mode_refuses_recomputed_digest(node, kind):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
n = next(n for n in s["nodes"] if n["id"] == node)
if kind == "mode":
n["mode"] = 2
elif kind == "ue":
n["properties"]["ue_properties"]["version"] = "forged"
else:
n["properties"]["ver" if kind == "ver" else "cnr_id"] = "forged"
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("node", [22, 24, 25, 18, 20])
@pytest.mark.parametrize("kind", ["missing", "null", "object"])
def test_zero_positions_are_not_missing_null_or_object(node, kind):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
n = next(n for n in s["nodes"] if n["id"] == node)
if kind == "missing":
del n["widgets_values"]
else:
n["widgets_values"] = None if kind == "null" else {}
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("edge", range(7))
@pytest.mark.parametrize("side", ["input", "output", "physical"])
def test_each_physical_and_dual_endpoint_refuses(edge, side):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
e = s["links"][edge]
nodes = {n["id"]: n for n in s["nodes"]}
if side == "input":
nodes[e[3]]["inputs"][e[4]]["link"] = None
elif side == "output":
nodes[e[1]]["outputs"][e[2]]["links"].remove(e[0])
else:
e[1] = 999
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize(
"kind",
[
"note",
"source_sha",
"citation",
"frontend",
"ue",
"models",
"tab",
"swap",
"unconnected_mask",
],
)
def test_source_note_references_and_binding_fail_closed(kind):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
nodes = {n["id"]: n for n in s["nodes"]}
if kind == "note":
nodes[21]["widgets_values"][0] = "forged"
r["fixed_version_document"]["comments"][0]["text"] = "forged"
elif kind == "source_sha":
r["source_sha"] = "0" * 40
elif kind == "citation":
r["fixed_version_document"]["sources"][0]["sha256"] = "0" * 64
elif kind == "frontend":
s["extra"]["frontendVersion"] = "forged"
elif kind == "ue":
s["extra"]["links_added_by_ue"] = [1]
elif kind == "models":
nodes[23]["properties"]["models"][0]["url"] = "forged"
elif kind == "tab":
nodes[17]["properties"]["enableTabs"] = True
elif kind == "unconnected_mask":
nodes[17]["outputs"][1]["links"] = []
else:
other = next(p for p in DEFINITIONS if p.endswith("/加载本地latent解码.json"))
r = copy.deepcopy(review_for(other, hashlib.sha1((REPO / other).read_bytes()).hexdigest()))
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(0, s, r)["fixed_version"]["matched"]
def test_actual_graph_counts_pointers_notes_unknowns_and_old_objects():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "6e1e47b:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
b = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 24
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
assert len(old_blocks) == 23 and sum(len(b["fields"]) for b in old_blocks) == 662
assert sum(len(b.get("comments", [])) for b in old_blocks) == 14 # ASR flow note separate
assert b["counts"] == dict(
saved_fields=3,
scalar_saved_positions=3,
history_objects=0,
source_nodes=8,
physical_edges=7,
source_notes=1,
linked_saved_fields=0,
frontend_only=1,
final_scalars=0,
final_prompt_constructed=False,
)
g = SOURCES[0]
nodes = {n["id"]: n for n in g["nodes"]}
assert len(g["nodes"]) == 8 and len(g["links"]) == 7
assert all(n["mode"] == 0 for n in g["nodes"])
assert {i for i, n in nodes.items() if n["widgets_values"] == []} == {22, 24, 25, 18, 20}
assert {n["node_id"] for n in b["zero_saved_nodes"]} == {"22", "24", "25", "18", "20"}
assert g["extra"]["frontendVersion"] == "1.43.17"
assert g["extra"]["ue_links"] == g["extra"]["links_added_by_ue"] == []
for n in g["nodes"]:
assert n["properties"]["ue_properties"]["version"] == "7.8"
if n["id"] == 17:
assert n["properties"]["cnr_id"] == "comfy-core" and n["properties"]["ver"] == "0.19.3"
else:
assert "cnr_id" not in n["properties"] and "ver" not in n["properties"]
assert g["links"] == [
[17, 23, 0, 22, 1, "BACKGROUND_REMOVAL"],
[18, 22, 0, 24, 0, "MASK"],
[19, 24, 0, 25, 1, "MASK"],
[20, 17, 0, 22, 0, "IMAGE"],
[21, 17, 0, 25, 0, "IMAGE"],
[22, 25, 0, 18, 0, "IMAGE"],
[23, 22, 0, 20, 0, "MASK"],
]
for eid, origin, slot, target, inp, typ in g["links"]:
assert eid in nodes[origin]["outputs"][slot]["links"]
assert nodes[origin]["outputs"][slot]["type"] == typ
assert nodes[target]["inputs"][inp]["link"] == eid
assert nodes[target]["inputs"][inp]["type"] == typ
assert nodes[17]["outputs"][1]["links"] is None
assert len(b["comments"]) == 1
note = b["comments"][0]
assert pointer(g, note["pointer"]) == note["text"] == nodes[21]["widgets_values"][0]
d = doc(0)
assert d["fixed_version"]["matched"] and all(step in d["steps"] for step in b["steps"])
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert review_for(PATHS[0], "0" * 40) is None
for token in [
"1-resize(1-M)",
"bilinear",
"未显式clamp",
"RGBA",
"极性未知",
"temp PNG",
"固定参考假设",
"有界静态检索",
"options.serialize=false",
"widget.serialize",
"未接",
"HuggingFace",
]:
assert token in json.dumps(b, ensure_ascii=False)
@pytest.mark.parametrize("other", [p for p in DEFINITIONS if p not in PATHS])
def test_every_old_block_and_new_block_cannot_be_swapped(other):
raw = (REPO / other).read_bytes()
old_source = json.loads(raw)
old_review = copy.deepcopy(review_for(other, hashlib.sha1(raw).hexdigest()))
new_review = copy.deepcopy(REVIEWS[0])
old_block = old_review["fixed_version_document"]
old_review["fixed_version_document"] = new_review["fixed_version_document"]
new_review["fixed_version_document"] = old_block
assert not doc(0, review=new_review)["fixed_version"]["matched"]
assert not build_document(other, old_source, None, None, [], old_review)["fixed_version"][
"matched"
]
@@ -162,13 +162,15 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "d1ba226:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
now[later].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
d = doc(0)
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
assert d["fixed_version"]["matched"] and len(b["fields"]) == 42
assert b["comments"] == [] and b["counts"]["history_objects"] == 3
assert b["counts"]["scalar_saved_positions"] == 39
@@ -203,7 +203,7 @@ def test_graph_specific_semantics_and_companion():
def test_other_documents_and_block_swaps():
assert len(DEFINITIONS) == 23
assert len(DEFINITIONS) == 24
for path in DEFINITIONS:
if path == PATH:
continue
@@ -162,10 +162,12 @@ def test_exact_graph_versions_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "9db8857:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
assert len(b["fields"]) == 31 and b["counts"]["history_objects"] == 3
assert b["counts"]["scalar_saved_positions"] == 28
assert b["comments"] == [] and b["counts"]["linked_saved_fields"] == 0
@@ -153,6 +153,8 @@ def test_real_document_and_frozen_old_thirteen_blocks():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "9dac1b4:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
@@ -174,7 +176,7 @@ def test_real_document_and_frozen_old_thirteen_blocks():
# SDPose is independently frozen against 7291887 in its own suite.
sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json"))
now[sdpose].pop("fixed_version_document")
assert len(now) == 156 and len(DEFINITIONS) == 23
assert len(now) == 156 and len(DEFINITIONS) == 24
assert len([r for r in old.values() if "fixed_version_document" in r]) == 13
assert (
sum(
@@ -136,6 +136,8 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ae625ac:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
@@ -155,7 +157,7 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
assert all(step in d["steps"] for step in b["steps"])
added = next(p for p in now if p.endswith("双图像或视频合并显示.json"))
now[added].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 18 and sum(len(b["fields"]) for b in blocks) == 516
gif = doc(0)["fixed_version"]
@@ -171,6 +171,8 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "27e6d56:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
@@ -195,7 +197,7 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
# Gemma addition is independently protected against 9dac1b4 in its own suite.
gemma = next(p for p in now if p.endswith("gemma4_提示词反推(图像视频音频).json"))
now[gemma].pop("fixed_version_document")
assert len(DEFINITIONS) == 23
assert len(DEFINITIONS) == 24
assert (
sum(
len(r["fixed_version_document"]["fields"])
@@ -162,8 +162,10 @@ def test_exact_graph_versions_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "256e6be:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
assert b["counts"] == dict(
saved_fields=13,
scalar_saved_positions=12,
@@ -260,6 +260,8 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
@@ -275,7 +277,7 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -286,6 +288,8 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
continue
if p.endswith(
@@ -202,6 +202,8 @@ def test_exact_document_topology_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
current = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in current if p.endswith("/birefnet_图像移除背景.json"))
current[birefnet].pop("fixed_version_document")
latent = next(p for p in current if p.endswith("/加载本地latent解码.json"))
current[latent].pop("fixed_version_document")
later = next(p for p in current if p.endswith("/截取视频每一帧.json"))
@@ -219,7 +221,7 @@ def test_exact_document_topology_and_preservation():
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
current[nlf].pop("fixed_version_document")
assert current[PATH].pop("fixed_version_document") == BLOCK
assert current == previous and len(DEFINITIONS) == 23
assert current == previous and len(DEFINITIONS) == 24
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
@@ -227,6 +229,8 @@ def test_exact_document_topology_and_preservation():
assert d["dependencies"]["check_state"] == "unchecked"
assert not doc(path="untrusted.json").get("fixed_version")
for p in DEFINITIONS:
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
continue
if p.endswith(
@@ -213,6 +213,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
for added in [
p
for p in now
@@ -228,7 +230,7 @@ def test_exact_graph_and_original_seventeen_unchanged():
]:
now[added].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
assert (
@@ -237,6 +239,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(
(
"视频转gif动图图片.json",
@@ -154,6 +154,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
p
for p in DEFINITIONS
if p != PATH
and not p.endswith("/birefnet_图像移除背景.json")
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json")
@@ -161,6 +162,8 @@ def test_real_document_and_frozen_old_fourteen_blocks():
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
@@ -186,7 +189,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
assert not doc(review=review)["fixed_version"]["matched"]
now[openpose].pop("fixed_version_document")
old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO))
assert len(now) == 156 and len(DEFINITIONS) == 23
assert len(now) == 156 and len(DEFINITIONS) == 24
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -0,0 +1,262 @@
# BiRefNet背景移除固定参考中文说明
3新顶层保存位置(模型引用、图片引用、上传状态)+1新注释;旧23图662保存位置+15注释逐对象不变。24图665位置+16注释展示,155定稿0、实跑0、新增转换0。
复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。来源索引local_file以docs/hel-892/birefnet-document-evidence为解析基准。
## birefnet_图像移除背景
这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。
固定版本仅作参考;背景移除实现/遮罩极性、模型安装、UE恢复与目标环境未知,未实跑,转换保持关闭。
源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json`
SHA1:9d99de736806f8eeffed114cc1ba075c16276b69
原字节SHA256:a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036
规范全图SHA256:d2424149db6ebbd2d49a9020457eb6349ac96d97f46de9dbf4ecc021692e6ea7
源声明frontendVersion1.43.17,官方v1.43.17→f754141537fecaae53d635d94615f588b0e39f95,仅静态参考;UE全节点7.8,空绑定表不证明无钩子,真实恢复/回调次序未知。
只有LoadImage17明确cnr_id=comfy-core/ver0.19.3;官方v0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66。额外enableTabs/tabWidth/tabXOffset/hasSecondTab/secondTabText/secondTabOffset/secondTabWidth原文保留,不据cnr就断言未受UE影响。
其它六运行实体22/23/24/25/18/20均缺提供方和版本;InvertMask/JoinImageWithAlpha/PreviewImage/MaskPreview在固定core0.19.3确有定义,但本图这些实体只能作明确固定参考假设,不能继承LoadImage身份或当目标安装事实。
LoadBackgroundRemovalModel和RemoveBackground在该完整core树nodes.py及comfy_extras的有界静态检索未发现定义/注册;不扩查其它历史或最新版,默认/动态列表/推理算法/预处理/范围/输出极性未知。
许可分别保留固定core GPL-3.0与frontend GPL-3.0原文;未知背景节点提供方和模型权重许可另属未知。HuggingFace URL仅纯文本,不访问、下载或执行。
### 具体连线与处理条件
这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。
8节点全mode0、7运行实体加MarkdownNote21、7物理边,无子图。3个非注释顶层保存位置,1完整注释单计;22/24/25/18/20原widgets_values=[]零位置,与缺键/null/{}不同。
23.bg_model槽0→22.bg_removal_model输入槽1;17.IMAGE槽0→22.image输入槽0及25.image输入槽0。源类型BACKGROUND_REMOVAL/IMAGE只反映源端点,缺定义不补造prompt。
22.mask槽0 MASK→24.mask→25.alpha;另22.mask槽0直接→20.mask。25.IMAGE槽0→18.images。源双向端点吻合,LoadImage17的MASK槽1 links=null,未接入任何支路。
若24/25采用所固定core0.19.3实现,设RemoveBackground输出M:InvertMask给1-M,JoinImageWithAlpha再做1-resize(1-M);同尺寸且正常数值条件下alpha回到M,异尺寸经bilinear重采样,不保证逐像素相同。合成处未显式clamp,不把其它函数的clamp套用;保存PNG量化阶段才clip至0~255。alpha=1为不透明、0为透明的RGBA语义不等于已证明M的前景/背景方向。
因为RemoveBackground22和模型加载23的准确实现未知,M是否前景白/背景黑、范围是否0~1及实际效果均未知;不能仅凭InvertMask或节点名就声称背景必透明。模型推理/预处理/设备/内存/批量条件也未知。
MaskPreview20直接预览M,按固定参考UI实现把单通道展开成三通道灰度,未经过24反转或25合成;PreviewImage18预览的是原RGB与合成alpha的结果,两支路不可混同。
固定PreviewImage18是旧SaveImage子类,OUTPUT_NODE、RETURN_TYPES=(),覆盖目录为temp并返回UI images;MaskPreview20是新schema输出节点,委托UI.PreviewMask→PreviewImage→temp PNG。源无SaveImage实体,不能说已永久导出,临时文件、真实目录权限与实际输出未知。
LoadImage17按旧式INPUT_TYPES动态枚举input目录,读取EXIF校正/RGB归一化并返回IMAGE和MASK;source image引用不验证存在。上传控件不是后台参数,固定前端恢复/保存和上传实现仅静态说明,UE钩子顺序未确认。
七实体接口分别按源原文保留;24/25/20固定参考是新schema,17/18旧式注册,22/23无准确schema。节点身份未知与源端点原文分开;未修改线、创建执行出口、转换候选或启用资格。
Note21完整目录树、HuggingFace模型链接、更新提示与三个问题链接纯文本保留;models元数据同样只是源引用,不当目录存在、模型安装、许可或更新/下载授权。
源物理边:[17, 23, 0, 22, 1, "BACKGROUND_REMOVAL"]
源物理边:[18, 22, 0, 24, 0, "MASK"]
源物理边:[19, 24, 0, 25, 1, "MASK"]
源物理边:[20, 17, 0, 22, 0, "IMAGE"]
源物理边:[21, 17, 0, 25, 0, "IMAGE"]
源物理边:[22, 25, 0, 18, 0, "IMAGE"]
源物理边:[23, 22, 0, 20, 0, "MASK"]
节点22 RemoveBackground mode=0;保存位置=0(Note另计);原inputs=[{"localized_name": "image", "name": "image", "type": "IMAGE", "link": 20}, {"localized_name": "bg_removal_model", "name": "bg_removal_model", "type": "BACKGROUND_REMOVAL", "link": 17}];原outputs=[{"localized_name": "mask", "name": "mask", "type": "MASK", "links": [18, 23]}];原properties={"Node name for S&R": "RemoveBackground", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
节点24 InvertMask mode=0;保存位置=0(Note另计);原inputs=[{"localized_name": "遮罩", "name": "mask", "type": "MASK", "link": 18}];原outputs=[{"localized_name": "遮罩", "name": "MASK", "type": "MASK", "links": [19]}];原properties={"Node name for S&R": "InvertMask", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
节点25 JoinImageWithAlpha mode=0;保存位置=0(Note另计);原inputs=[{"localized_name": "图像", "name": "image", "type": "IMAGE", "link": 21}, {"localized_name": "阿尔法", "name": "alpha", "type": "MASK", "link": 19}];原outputs=[{"localized_name": "图像", "name": "IMAGE", "type": "IMAGE", "links": [22]}];原properties={"Node name for S&R": "JoinImageWithAlpha", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
节点23 LoadBackgroundRemovalModel mode=0;保存位置=1(Note另计);原inputs=[{"localized_name": "bg_removal_name", "name": "bg_removal_name", "type": "COMBO", "widget": {"name": "bg_removal_name"}, "link": null}];原outputs=[{"localized_name": "bg_model", "name": "bg_model", "type": "BACKGROUND_REMOVAL", "links": [17]}];原properties={"Node name for S&R": "LoadBackgroundRemovalModel", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "models": [{"name": "birefnet.safetensors", "url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors", "directory": "background_removal"}]}
节点21 MarkdownNote mode=0;保存位置=1(Note另计);原inputs=[];原outputs=[];原properties={"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
节点18 PreviewImage mode=0;保存位置=0(Note另计);原inputs=[{"localized_name": "图像", "name": "images", "type": "IMAGE", "link": 22}];原outputs=[];原properties={"Node name for S&R": "PreviewImage", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
节点20 MaskPreview mode=0;保存位置=0(Note另计);原inputs=[{"label": "遮罩", "localized_name": "遮罩", "name": "mask", "type": "MASK", "link": 23}];原outputs=[];原properties={"Node name for S&R": "MaskPreview", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
节点17 LoadImage mode=0;保存位置=2(Note另计);原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": [20, 21]}, {"localized_name": "遮罩", "name": "MASK", "type": "MASK", "links": null}];原properties={"Node name for S&R": "LoadImage", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}
### 使用与核对
这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。
素材要求:一张待处理图片和与准确背景移除节点实现相匹配的模型。这里只保存引用,不索取/读取图片或权重;不能凭birefnet.safetensors文件名判断架构或显存。
操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。
操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区域。
操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。
常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、目录和运行环境,当前未知,不下载模型。
常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/UE次序均未核对,未定稿、未实跑。
### 逐保存位置说明
#### 1. 节点23 · 背景移除模型引用(bg_removal_name)
保存birefnet.safetensors,仅为模型引用。23.bg_model按源槽0送22.bg_removal_model;两节点均缺提供方/版本,不能由名称或模型URL套用别版实现。本轮不加载权重或发网络下载。
```json
"birefnet.safetensors"
```
类:LoadBackgroundRemovalModel;JSON类型:str;角色:unconfirmed_model_reference。
源位置:`/nodes/3/widgets_values/0`
定义默认:未知:core0.19.3有界树未找到该节点定义;单位:模型文件引用
范围/条件:动态成员、默认/范围/加载条件未知,文件存在/架构/内存/设备/效果未知
源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。
依据:
- [3] 有界core0.19.3内置扩展清单;没有另取历史或新版定义;nodes.py 2350~2468行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
- [2] 旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支;nodes.py 2250~2296行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
#### 2. 节点17 · 输入图片引用(image)
保存20260425_192628_Z-Image_00001_.png,仅纯文本。core0.19.3 LoadImage参考按annotated filepath读取,经EXIF校正、RGB/255;IMAGE槽0分流至22.image与25.image。MASK槽1虽可从源alpha生成1-alpha或无alpha时零mask,但本图未接,不能当背景移除遮罩。未读取图片。
```json
"20260425_192628_Z-Image_00001_.png"
```
类:LoadImage;JSON类型:str;角色:scalar。
源位置:`/nodes/7/widgets_values/0`
定义默认:运行时input目录图片文件排序列表,无固定schema默认;单位:图片文件引用
范围/条件:由目标input目录及image内容类型过滤决定;实际可选值、尺寸/格式/文件存在未知
源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。
依据:
- [0] LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出;nodes.py 1700~1783行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
- [1] 准确旧式LoadImage/PreviewImage注册映射;nodes.py 2041~2065行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
- [14] 按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure;src/lib/litegraph/src/LGraphNode.ts 899~938行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
- [15] 保存widgets_values及onSerialize,保存态不直接等于最终prompt;src/lib/litegraph/src/LGraphNode.ts 963~996行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
#### 3. 节点17 · 图片上传控件保存状态(upload)
源第二位置image只作前端上传控件状态保存。固定前端在image_upload媒体combo上增加upload按钮,占位value=image,options.serialize=false;它控制prompt排除,与widget.serialize工作流持久化开关不同,因此保存位置仍原样保留。上传代码会POST /upload/image后更新引用,本轮不调用。即使恢复源码可定位,不能把这项作为LoadImage服务端upload参数或证明上传成功。
```json
"image"
```
类:LoadImage;JSON类型:str;角色:frontend_control。
源位置:`/nodes/7/widgets_values/1`
定义默认:image(按钮占位value);不是后台默认;单位:前端状态
范围/条件:保存字符串image;不是图片名、已上传证明或服务端参数;真实恢复/UE条件未知
源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。
依据:
- [11] 按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数;src/extensions/core/uploadImage.ts 1~40行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts
- [12] 准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调;src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts 1~129行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts
- [13] IMAGEUPLOAD控件工厂注册;src/scripts/widgets.ts 296~309行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts
- [14] 按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure;src/lib/litegraph/src/LGraphNode.ts 899~938行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
- [15] 保存widgets_values及onSerialize,保存态不直接等于最终prompt;src/lib/litegraph/src/LGraphNode.ts 963~996行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
- [16] addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关;src/lib/litegraph/src/LGraphNode.ts 1945~1998行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
- [17] graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用;src/utils/executionUtil.ts 83~112行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts
- [18] 上传POST与完成后路径更新仅源码说明;本轮不调用上传;src/composables/node/useNodeImageUpload.ts 20~56行;commit f754141537fecaae53d635d94615f588b0e39f95;SHA256 11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts
### 零保存节点与源注释
22 RemoveBackground:RemoveBackground只有源image/ bg_removal_model输入与mask槽0 MASK输出;core0.19.3有界树无该定义,推理算法、输出极性/范围、预处理、设备及效果未知。
24 InvertMask:固定core0.19.3参考:新schema输入mask,输出槽0 MASK,1.0-mask,不显式clamp。该实体没有提供方/版本声明,仅作假设,原[]零位置。
25 JoinImageWithAlpha:固定core0.19.3参考:新schema image/alpha→槽0 IMAGE;按min(image批次,alpha批次),bilinear缩放mask到图像高宽,再1.0-mask,拼接image前三RGB通道和alpha;此分支无显式clamp。实体身份未知,仅作假设;原[]零位置。
18 PreviewImage:固定core0.19.3参考:旧式PreviewImage images输入、无执行返回槽,OUTPUT_NODE继承SaveImage;写temp PNG并返回UI images,不是永久output保存。源未声明身份,仅参考假设;原[]零位置。
20 MaskPreview:固定core0.19.3参考:新schema mask输入、无数据输出槽、is_output_node;UI.PreviewMask将原mask展开三通道,经PreviewImage保存temp PNG/UI。schema描述虽称output,实际委托temp;实体身份未知,仅参考假设;原[]零位置。
节点21,位置`/nodes/4/widgets_values/0`
原文模型链接、目录树和报错指引完整保留,只作源注释,不计执行参数;不是安装事实、更新/下载授权或目标可用性证明。
```text
## Model Link (for Local Users)
**background_removal**
- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)
## Model Storage Location
```
📂 ComfyUI/
├── 📂 models/
│ └── 📂 background_removal/
│ └── birefnet.safetensors
```
## Report Issue
Note: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.
- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)
- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)
- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)
```
### 固定原件索引
0. LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出;nodes.py 第1700~1783行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
1. 准确旧式LoadImage/PreviewImage注册映射;nodes.py 第2041~2065行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
2. 旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支;nodes.py 第2250~2296行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
3. 有界core0.19.3内置扩展清单;没有另取历史或新版定义;nodes.py 第2350~2468行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
4. PreviewImage继承SaveImage写PNG/UI,但覆盖为temp目录,不是正式output导出;nodes.py 第1627~1698行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
5. InvertMask新schema,mask→MASK,execute=1.0-mask,无显式限幅;comfy_extras/nodes_mask.py 第197~216行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py
6. MaskPreview新schema/输出节点/UI.PreviewMask及扩展注册;描述字符串不能代替实现;comfy_extras/nodes_mask.py 第403~445行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py
7. JoinImageWithAlpha新schema/注册;最小批次数,内部再次反转,RGB三通道接alpha;comfy_extras/nodes_compositing.py 第188~226行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py
8. resize_mask为bilinear插值至image高宽,不是Join分支显式clamp;comfy_extras/nodes_compositing.py 第1~9行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py
9. PreviewMask扩展灰度至三通道并委托PreviewImage,明确temp类型;comfy_api/latest/_ui.py 第389~411行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py
10. 临时预览PNG的CPU量化/clip、元数据与文件描述符,仅行为参考不实际写图;comfy_api/latest/_ui.py 第76~155行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py
11. 按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数;src/extensions/core/uploadImage.ts 第1~40行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts
12. 准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调;src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts 第1~129行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts
13. IMAGEUPLOAD控件工厂注册;src/scripts/widgets.ts 第296~309行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts
14. 按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure;src/lib/litegraph/src/LGraphNode.ts 第899~938行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
15. 保存widgets_values及onSerialize,保存态不直接等于最终prompt;src/lib/litegraph/src/LGraphNode.ts 第963~996行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
16. addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关;src/lib/litegraph/src/LGraphNode.ts 第1945~1998行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts
17. graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用;src/utils/executionUtil.ts 第83~112行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts
18. 上传POST与完成后路径更新仅源码说明;本轮不调用上传;src/composables/node/useNodeImageUpload.ts 第20~56行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts
19. 固定仓库许可原文,不为未确认节点提供方或权重许可背书;LICENSE 第1~674行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE
20. 固定仓库许可原文,不为未确认节点提供方或权重许可背书;LICENSE 第1~674行;提交f754141537fecaae53d635d94615f588b0e39f95;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE
@@ -0,0 +1,934 @@
{
"companion_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b",
"dependencies": {
"check_state": "unchecked",
"checked_at": null,
"missing": [],
"model_locations": "待目标机提供",
"models": [
"birefnet.safetensors"
],
"node_packs": [],
"node_types": [
"InvertMask",
"JoinImageWithAlpha",
"LoadBackgroundRemovalModel",
"LoadImage",
"MarkdownNote",
"MaskPreview",
"PreviewImage",
"RemoveBackground"
],
"source": null
},
"draft": true,
"errors": [
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:RemoveBackground"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:InvertMask"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:JoinImageWithAlpha"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:LoadBackgroundRemovalModel"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:PreviewImage"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:MaskPreview"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:LoadImage"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "未得到可执行节点"
}
],
"fixed_version": {
"canonical_sha256": "d2424149db6ebbd2d49a9020457eb6349ac96d97f46de9dbf4ecc021692e6ea7",
"comments": [
{
"meaning": "原文模型链接、目录树和报错指引完整保留,只作源注释,不计执行参数;不是安装事实、更新/下载授权或目标可用性证明。",
"node_id": "21",
"pointer": "/nodes/4/widgets_values/0",
"text": "## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
}
],
"counts": {
"final_prompt_constructed": false,
"final_scalars": 0,
"frontend_only": 1,
"history_objects": 0,
"linked_saved_fields": 0,
"physical_edges": 7,
"saved_fields": 3,
"scalar_saved_positions": 3,
"source_nodes": 8,
"source_notes": 1
},
"fields": [
{
"class_type": "LoadBackgroundRemovalModel",
"definition_node_id": "23",
"effect": "保存birefnet.safetensors,仅为模型引用。23.bg_model按源槽0送22.bg_removal_model;两节点均缺提供方/版本,不能由名称或模型URL套用别版实现。本轮不加载权重或发网络下载。",
"evidence": [
3,
2
],
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。",
"field": "bg_removal_name",
"json_type": "str",
"label": "背景移除模型引用",
"limits": "动态成员、默认/范围/加载条件未知,文件存在/架构/内存/设备/效果未知",
"node_id": "23",
"pointer": "/nodes/3/widgets_values/0",
"role": "unconfirmed_model_reference",
"schema_default": "未知:core0.19.3有界树未找到该节点定义",
"scope": "root",
"type": "源COMBO;定义未知",
"unit": "模型文件引用",
"value": "birefnet.safetensors"
},
{
"class_type": "LoadImage",
"definition_node_id": "17",
"effect": "保存20260425_192628_Z-Image_00001_.png,仅纯文本。core0.19.3 LoadImage参考按annotated filepath读取,经EXIF校正、RGB/255;IMAGE槽0分流至22.image与25.image。MASK槽1虽可从源alpha生成1-alpha或无alpha时零mask,但本图未接,不能当背景移除遮罩。未读取图片。",
"evidence": [
0,
1,
14,
15
],
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。",
"field": "image",
"json_type": "str",
"label": "输入图片引用",
"limits": "由目标input目录及image内容类型过滤决定;实际可选值、尺寸/格式/文件存在未知",
"node_id": "17",
"pointer": "/nodes/7/widgets_values/0",
"role": "scalar",
"schema_default": "运行时input目录图片文件排序列表,无固定schema默认",
"scope": "root",
"type": "COMBO",
"unit": "图片文件引用",
"value": "20260425_192628_Z-Image_00001_.png"
},
{
"class_type": "LoadImage",
"definition_node_id": "17",
"effect": "源第二位置image只作前端上传控件状态保存。固定前端在image_upload媒体combo上增加upload按钮,占位value=image,options.serialize=false;它控制prompt排除,与widget.serialize工作流持久化开关不同,因此保存位置仍原样保留。上传代码会POST /upload/image后更新引用,本轮不调用。即使恢复源码可定位,不能把这项作为LoadImage服务端upload参数或证明上传成功。",
"evidence": [
11,
12,
13,
14,
15,
16,
17,
18
],
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。",
"field": "upload",
"json_type": "str",
"label": "图片上传控件保存状态",
"limits": "保存字符串image;不是图片名、已上传证明或服务端参数;真实恢复/UE条件未知",
"node_id": "17",
"pointer": "/nodes/7/widgets_values/1",
"role": "frontend_control",
"schema_default": "image(按钮占位value);不是后台默认",
"scope": "root",
"type": "IMAGEUPLOAD(前端)",
"unit": "前端状态",
"value": "image"
}
],
"flow": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"8节点全mode0、7运行实体加MarkdownNote21、7物理边,无子图。3个非注释顶层保存位置,1完整注释单计;22/24/25/18/20原widgets_values=[]零位置,与缺键/null/{}不同。",
"23.bg_model槽0→22.bg_removal_model输入槽1;17.IMAGE槽0→22.image输入槽0及25.image输入槽0。源类型BACKGROUND_REMOVAL/IMAGE只反映源端点,缺定义不补造prompt。",
"22.mask槽0 MASK→24.mask→25.alpha;另22.mask槽0直接→20.mask。25.IMAGE槽0→18.images。源双向端点吻合,LoadImage17的MASK槽1 links=null,未接入任何支路。",
"若24/25采用所固定core0.19.3实现,设RemoveBackground输出M:InvertMask给1-M,JoinImageWithAlpha再做1-resize(1-M);同尺寸且正常数值条件下alpha回到M,异尺寸经bilinear重采样,不保证逐像素相同。合成处未显式clamp,不把其它函数的clamp套用;保存PNG量化阶段才clip至0~255。alpha=1为不透明、0为透明的RGBA语义不等于已证明M的前景/背景方向。",
"因为RemoveBackground22和模型加载23的准确实现未知,M是否前景白/背景黑、范围是否0~1及实际效果均未知;不能仅凭InvertMask或节点名就声称背景必透明。模型推理/预处理/设备/内存/批量条件也未知。",
"MaskPreview20直接预览M,按固定参考UI实现把单通道展开成三通道灰度,未经过24反转或25合成;PreviewImage18预览的是原RGB与合成alpha的结果,两支路不可混同。",
"固定PreviewImage18是旧SaveImage子类,OUTPUT_NODE、RETURN_TYPES=(),覆盖目录为temp并返回UI images;MaskPreview20是新schema输出节点,委托UI.PreviewMask→PreviewImage→temp PNG。源无SaveImage实体,不能说已永久导出,临时文件、真实目录权限与实际输出未知。",
"LoadImage17按旧式INPUT_TYPES动态枚举input目录,读取EXIF校正/RGB归一化并返回IMAGE和MASK;source image引用不验证存在。上传控件不是后台参数,固定前端恢复/保存和上传实现仅静态说明,UE钩子顺序未确认。",
"七实体接口分别按源原文保留;24/25/20固定参考是新schema,17/18旧式注册,22/23无准确schema。节点身份未知与源端点原文分开;未修改线、创建执行出口、转换候选或启用资格。",
"Note21完整目录树、HuggingFace模型链接、更新提示与三个问题链接纯文本保留;models元数据同样只是源引用,不当目录存在、模型安装、许可或更新/下载授权。",
"源物理边:[17, 23, 0, 22, 1, \"BACKGROUND_REMOVAL\"]",
"源物理边:[18, 22, 0, 24, 0, \"MASK\"]",
"源物理边:[19, 24, 0, 25, 1, \"MASK\"]",
"源物理边:[20, 17, 0, 22, 0, \"IMAGE\"]",
"源物理边:[21, 17, 0, 25, 0, \"IMAGE\"]",
"源物理边:[22, 25, 0, 18, 0, \"IMAGE\"]",
"源物理边:[23, 22, 0, 20, 0, \"MASK\"]",
"节点22 RemoveBackground mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 20}, {\"localized_name\": \"bg_removal_model\", \"name\": \"bg_removal_model\", \"type\": \"BACKGROUND_REMOVAL\", \"link\": 17}];原outputs=[{\"localized_name\": \"mask\", \"name\": \"mask\", \"type\": \"MASK\", \"links\": [18, 23]}];原properties={\"Node name for S&R\": \"RemoveBackground\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点24 InvertMask mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 18}];原outputs=[{\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": [19]}];原properties={\"Node name for S&R\": \"InvertMask\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点25 JoinImageWithAlpha mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 21}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 19}];原outputs=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [22]}];原properties={\"Node name for S&R\": \"JoinImageWithAlpha\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点23 LoadBackgroundRemovalModel mode=0;保存位置=1(Note另计);原inputs=[{\"localized_name\": \"bg_removal_name\", \"name\": \"bg_removal_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"bg_removal_name\"}, \"link\": null}];原outputs=[{\"localized_name\": \"bg_model\", \"name\": \"bg_model\", \"type\": \"BACKGROUND_REMOVAL\", \"links\": [17]}];原properties={\"Node name for S&R\": \"LoadBackgroundRemovalModel\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"models\": [{\"name\": \"birefnet.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors\", \"directory\": \"background_removal\"}]}",
"节点21 MarkdownNote mode=0;保存位置=1(Note另计);原inputs=[];原outputs=[];原properties={\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点18 PreviewImage mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 22}];原outputs=[];原properties={\"Node name for S&R\": \"PreviewImage\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点20 MaskPreview mode=0;保存位置=0(Note另计);原inputs=[{\"label\": \"遮罩\", \"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 23}];原outputs=[];原properties={\"Node name for S&R\": \"MaskPreview\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点17 LoadImage mode=0;保存位置=2(Note另计);原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\": [20, 21]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}];原properties={\"Node name for S&R\": \"LoadImage\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}"
],
"flow_evidence": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
],
"matched": true,
"notice": "固定版本仅作参考;背景移除实现/遮罩极性、模型安装、UE恢复与目标环境未知,未实跑,转换保持关闭。",
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"source_sha1": "9d99de736806f8eeffed114cc1ba075c16276b69",
"source_sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036",
"sources": [
{
"claim": "LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"id": "core",
"lines": [
1700,
1783
],
"local_file": "../birefnet-reference/core__nodes.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py"
},
{
"claim": "准确旧式LoadImage/PreviewImage注册映射",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"id": "core",
"lines": [
2041,
2065
],
"local_file": "../birefnet-reference/core__nodes.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py"
},
{
"claim": "旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"id": "core",
"lines": [
2250,
2296
],
"local_file": "../birefnet-reference/core__nodes.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py"
},
{
"claim": "有界core0.19.3内置扩展清单;没有另取历史或新版定义",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"id": "core",
"lines": [
2350,
2468
],
"local_file": "../birefnet-reference/core__nodes.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py"
},
{
"claim": "PreviewImage继承SaveImage写PNG/UI,但覆盖为temp目录,不是正式output导出",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"id": "core",
"lines": [
1627,
1698
],
"local_file": "../birefnet-reference/core__nodes.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py"
},
{
"claim": "InvertMask新schema,mask→MASK,execute=1.0-mask,无显式限幅",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"id": "core",
"lines": [
197,
216
],
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py"
},
{
"claim": "MaskPreview新schema/输出节点/UI.PreviewMask及扩展注册;描述字符串不能代替实现",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"id": "core",
"lines": [
403,
445
],
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py"
},
{
"claim": "JoinImageWithAlpha新schema/注册;最小批次数,内部再次反转,RGB三通道接alpha",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"id": "core",
"lines": [
188,
226
],
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py"
},
{
"claim": "resize_mask为bilinear插值至image高宽,不是Join分支显式clamp",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"id": "core",
"lines": [
1,
9
],
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py"
},
{
"claim": "PreviewMask扩展灰度至三通道并委托PreviewImage,明确temp类型",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"id": "core",
"lines": [
389,
411
],
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py"
},
{
"claim": "临时预览PNG的CPU量化/clip、元数据与文件描述符,仅行为参考不实际写图",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"id": "core",
"lines": [
76,
155
],
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py"
},
{
"claim": "按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"id": "frontend",
"lines": [
1,
40
],
"local_file": "../birefnet-reference/frontend__src__extensions__core__uploadImage.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts"
},
{
"claim": "准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"id": "frontend",
"lines": [
1,
129
],
"local_file": "../birefnet-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts"
},
{
"claim": "IMAGEUPLOAD控件工厂注册",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"id": "frontend",
"lines": [
296,
309
],
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts"
},
{
"claim": "按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"id": "frontend",
"lines": [
899,
938
],
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts"
},
{
"claim": "保存widgets_values及onSerialize,保存态不直接等于最终prompt",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"id": "frontend",
"lines": [
963,
996
],
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts"
},
{
"claim": "addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"id": "frontend",
"lines": [
1945,
1998
],
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts"
},
{
"claim": "graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"id": "frontend",
"lines": [
83,
112
],
"local_file": "../birefnet-reference/frontend__src__utils__executionUtil.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts"
},
{
"claim": "上传POST与完成后路径更新仅源码说明;本轮不调用上传",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"id": "frontend",
"lines": [
20,
56
],
"local_file": "../birefnet-reference/frontend__src__composables__node__useNodeImageUpload.ts",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts"
},
{
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "LICENSE",
"id": "core",
"lines": [
1,
674
],
"local_file": "../birefnet-reference/core__LICENSE",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE"
},
{
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"id": "frontend",
"lines": [
1,
674
],
"local_file": "../birefnet-reference/frontend__LICENSE",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE"
}
],
"steps": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"素材要求:一张待处理图片和与准确背景移除节点实现相匹配的模型。这里只保存引用,不索取/读取图片或权重;不能凭birefnet.safetensors文件名判断架构或显存。",
"操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。",
"操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区域。",
"操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。",
"常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、目录和运行环境,当前未知,不下载模型。",
"常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/UE次序均未核对,未定稿、未实跑。"
],
"user_overview": "这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"versions": [
"源声明frontendVersion1.43.17,官方v1.43.17→f754141537fecaae53d635d94615f588b0e39f95,仅静态参考;UE全节点7.8,空绑定表不证明无钩子,真实恢复/回调次序未知。",
"只有LoadImage17明确cnr_id=comfy-core/ver0.19.3;官方v0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66。额外enableTabs/tabWidth/tabXOffset/hasSecondTab/secondTabText/secondTabOffset/secondTabWidth原文保留,不据cnr就断言未受UE影响。",
"其它六运行实体22/23/24/25/18/20均缺提供方和版本;InvertMask/JoinImageWithAlpha/PreviewImage/MaskPreview在固定core0.19.3确有定义,但本图这些实体只能作明确固定参考假设,不能继承LoadImage身份或当目标安装事实。",
"LoadBackgroundRemovalModel和RemoveBackground在该完整core树nodes.py及comfy_extras的有界静态检索未发现定义/注册;不扩查其它历史或最新版,默认/动态列表/推理算法/预处理/范围/输出极性未知。",
"许可分别保留固定core GPL-3.0与frontend GPL-3.0原文;未知背景节点提供方和模型权重许可另属未知。HuggingFace URL仅纯文本,不访问、下载或执行。"
],
"zero_saved_nodes": [
{
"class_type": "RemoveBackground",
"effect": "RemoveBackground只有源image/ bg_removal_model输入与mask槽0 MASK输出;core0.19.3有界树无该定义,推理算法、输出极性/范围、预处理、设备及效果未知。",
"evidence": [
3,
2
],
"node_id": "22"
},
{
"class_type": "InvertMask",
"effect": "固定core0.19.3参考:新schema输入mask,输出槽0 MASK,1.0-mask,不显式clamp。该实体没有提供方/版本声明,仅作假设,原[]零位置。",
"evidence": [
5,
2,
3
],
"node_id": "24"
},
{
"class_type": "JoinImageWithAlpha",
"effect": "固定core0.19.3参考:新schema image/alpha→槽0 IMAGE;按min(image批次,alpha批次),bilinear缩放mask到图像高宽,再1.0-mask,拼接image前三RGB通道和alpha;此分支无显式clamp。实体身份未知,仅作假设;原[]零位置。",
"evidence": [
7,
8,
2
],
"node_id": "25"
},
{
"class_type": "PreviewImage",
"effect": "固定core0.19.3参考:旧式PreviewImage images输入、无执行返回槽,OUTPUT_NODE继承SaveImage;写temp PNG并返回UI images,不是永久output保存。源未声明身份,仅参考假设;原[]零位置。",
"evidence": [
4,
1
],
"node_id": "18"
},
{
"class_type": "MaskPreview",
"effect": "固定core0.19.3参考:新schema mask输入、无数据输出槽、is_output_node;UI.PreviewMask将原mask展开三通道,经PreviewImage保存temp PNG/UI。schema描述虽称output,实际委托temp;实体身份未知,仅参考假设;原[]零位置。",
"evidence": [
6,
9,
10,
2
],
"node_id": "20"
}
]
},
"io": {
"inputs": [],
"outputs": []
},
"materials": [],
"params": [],
"purpose": "BiRefNet 背景移除:LoadBackgroundRemovalModel、RemoveBackground、InvertMask 和 JoinImageWithAlpha 组成图像及遮罩预览分支。",
"snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b",
"source_links": [
{
"link": [
17,
23,
0,
22,
1,
"BACKGROUND_REMOVAL"
],
"scope": ""
},
{
"link": [
18,
22,
0,
24,
0,
"MASK"
],
"scope": ""
},
{
"link": [
19,
24,
0,
25,
1,
"MASK"
],
"scope": ""
},
{
"link": [
20,
17,
0,
22,
0,
"IMAGE"
],
"scope": ""
},
{
"link": [
21,
17,
0,
25,
0,
"IMAGE"
],
"scope": ""
},
{
"link": [
22,
25,
0,
18,
0,
"IMAGE"
],
"scope": ""
},
{
"link": [
23,
22,
0,
20,
0,
"MASK"
],
"scope": ""
}
],
"source_nodes": [
{
"class_type": "RemoveBackground",
"inputs": [
{
"link": 20,
"localized_name": "image",
"name": "image",
"type": "IMAGE"
},
{
"link": 17,
"localized_name": "bg_removal_model",
"name": "bg_removal_model",
"type": "BACKGROUND_REMOVAL"
}
],
"mode": 0,
"node_id": "22",
"source_values": [],
"title": null
},
{
"class_type": "InvertMask",
"inputs": [
{
"link": 18,
"localized_name": "遮罩",
"name": "mask",
"type": "MASK"
}
],
"mode": 0,
"node_id": "24",
"source_values": [],
"title": null
},
{
"class_type": "JoinImageWithAlpha",
"inputs": [
{
"link": 21,
"localized_name": "图像",
"name": "image",
"type": "IMAGE"
},
{
"link": 19,
"localized_name": "阿尔法",
"name": "alpha",
"type": "MASK"
}
],
"mode": 0,
"node_id": "25",
"source_values": [],
"title": null
},
{
"class_type": "LoadBackgroundRemovalModel",
"inputs": [
{
"link": null,
"localized_name": "bg_removal_name",
"name": "bg_removal_name",
"type": "COMBO",
"widget": {
"name": "bg_removal_name"
}
}
],
"mode": 0,
"node_id": "23",
"source_values": [
"birefnet.safetensors"
],
"title": null
},
{
"class_type": "MarkdownNote",
"inputs": [],
"mode": 0,
"node_id": "21",
"source_values": [
"## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
],
"title": "Model Link"
},
{
"class_type": "PreviewImage",
"inputs": [
{
"link": 22,
"localized_name": "图像",
"name": "images",
"type": "IMAGE"
}
],
"mode": 0,
"node_id": "18",
"source_values": [],
"title": null
},
{
"class_type": "MaskPreview",
"inputs": [
{
"label": "遮罩",
"link": 23,
"localized_name": "遮罩",
"name": "mask",
"type": "MASK"
}
],
"mode": 0,
"node_id": "20",
"source_values": [],
"title": null
},
{
"class_type": "LoadImage",
"inputs": [
{
"link": null,
"localized_name": "图像",
"name": "image",
"type": "COMBO",
"widget": {
"name": "image"
}
},
{
"link": null,
"localized_name": "选择文件上传",
"name": "upload",
"type": "IMAGEUPLOAD",
"widget": {
"name": "upload"
}
}
],
"mode": 0,
"node_id": "17",
"source_values": [
"20260425_192628_Z-Image_00001_.png",
"image"
],
"title": null
}
],
"source_notes": [
{
"content": [
"## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
],
"node_id": "21"
}
],
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"source_review": {
"complete": false,
"evidence": {
"link_count": 7,
"model_references": [
"birefnet.safetensors"
],
"named_value_count": 0,
"node_count": 8,
"note_node_ids": [
"21"
],
"unnamed_widget_node_ids": [
"23",
"17"
]
},
"instruction": "替换 LoadImage 后分别检查 MaskPreview 与带透明通道的 PreviewImage;模型引用 birefnet.safetensors 仍需核对实际位置。",
"purpose": "BiRefNet 背景移除:LoadBackgroundRemovalModel、RemoveBackground、InvertMask 和 JoinImageWithAlpha 组成图像及遮罩预览分支。",
"reviewed_named_fields": [],
"scope": [
"结构及用途局部审校",
"源具名参数/注释/连线/素材模型用途人工语义局部审校"
],
"semantic_review": {
"batch": "HEL-892-third",
"conclusions": [
"17图像同时送22分割与25合成",
"22输出MASK经24反相后进入25的alpha通道,20直接预览原遮罩。21注释列background_removal/birefnet.safetensors,23实际选择同名文件",
"先检查透明边缘与遮罩极性,注释目录不等于本机安装事实。"
],
"evidence_refs": {
"nodes": [
{
"node_id": "22",
"pointer": "/source_nodes/0"
},
{
"node_id": "24",
"pointer": "/source_nodes/1"
},
{
"node_id": "25",
"pointer": "/source_nodes/2"
},
{
"node_id": "23",
"pointer": "/source_nodes/3"
},
{
"node_id": "21",
"pointer": "/source_nodes/4"
},
{
"node_id": "20",
"pointer": "/source_nodes/6"
},
{
"node_id": "17",
"pointer": "/source_nodes/7"
}
],
"notes": [
{
"node_id": "21",
"pointer": "/source_notes/0"
}
],
"source_graph": "/source_links(按scope区分主图与子图;连线ID仅在各自scope内有效)"
},
"mechanical_inventory": {
"link_count": 7,
"named_value_count": 0,
"note_count": 1,
"position_widget_node_count": 2
},
"named_parameter_finding": "未发现可由源文件确认的具名参数",
"operation_check": "17图像同时送22分割与25合成;22输出MASK经24反相后进入25的alpha通道,20直接预览原遮罩。21注释列background_removal/birefnet.safetensors,23实际选择同名文件;先检查透明边缘与遮罩极性,注释目录不等于本机安装事实。",
"unknowns": [
"位置数组未按位置具名,具名字段单位/合法范围/调整效果未获定义验证",
"注释中的效果、性能、版本支持为源作者陈述,未作外部或环境验证",
"静音/旁路、虚拟节点、子图、开关与连线覆盖的实际执行结果待原前端API导出",
"模型/素材引用只表示源文件出现,实际安装、位置、可用性和输出编码待真实环境核对"
]
},
"source_sha": "9d99de736806f8eeffed114cc1ba075c16276b69",
"unconfirmed": [
"逐参数语义、单位、范围和调整效果未定稿",
"UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出",
"模型/节点包位置、素材可用性及实际输出未在目标环境核对"
]
},
"source_review_sha": "8a321a7476d38fb12c481e0d8debd41e442d8cc15239455daeeccb871f61ab47",
"status": {
"doc_done": false,
"exec_verified": false,
"imported": true
},
"steps": [
"替换 LoadImage 后分别检查 MaskPreview 与带透明通道的 PreviewImage;模型引用 birefnet.safetensors 仍需核对实际位置。",
"17图像同时送22分割与25合成;22输出MASK经24反相后进入25的alpha通道,20直接预览原遮罩。21注释列background_removal/birefnet.safetensors,23实际选择同名文件;先检查透明边缘与遮罩极性,注释目录不等于本机安装事实。",
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"素材要求:一张待处理图片和与准确背景移除节点实现相匹配的模型。这里只保存引用,不索取/读取图片或权重;不能凭birefnet.safetensors文件名判断架构或显存。",
"操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。",
"操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区域。",
"操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。",
"常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、目录和运行环境,当前未知,不下载模型。",
"常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/UE次序均未核对,未定稿、未实跑。"
],
"title": "birefnet_图像移除背景"
}
@@ -0,0 +1,24 @@
{
"total": 155,
"audit_scope": "current_delivery",
"source_files": 156,
"target_files": 155,
"user_excluded": 1,
"source_structure_purpose_partially_reviewed": 155,
"full_documents_completed": 0,
"files_with_selected_named_fields_reviewed": 41,
"selected_named_fields_reviewed": 1217,
"real_executions": 0,
"states": {
"pending_check": 16,
"needs_conversion": 139
},
"named_values_preserved": 1217,
"unnamed_widget_nodes": 3660,
"semantic_batch_files": 139,
"semantic_batch_without_named_fields": 114,
"semantic_batch_named_fields": 490,
"named_values_without_manual_field_review": 0,
"named_values_without_verified_units_ranges_effects": 1217,
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
}
@@ -0,0 +1,11 @@
ERROR: not found: /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bd24a3df1a14/workdir/aigc-home/calliope-backend/tests/test_concat_fixed_document.py::test_exact_graph_versions_and_preservation
(no match in any of [<Module test_concat_fixed_document.py>])
ERROR: not found: /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bd24a3df1a14/workdir/aigc-home/calliope-backend/tests/test_gif_images_fixed_document.py::test_exact_graph_versions_and_preservation
(no match in any of [<Module test_gif_images_fixed_document.py>])
ERROR: not found: /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bd24a3df1a14/workdir/aigc-home/calliope-backend/tests/test_reverse_fixed_document.py::test_exact_topology_and_preservation
(no match in any of [<Module test_reverse_fixed_document.py>])
1 warning in 0.37s
@@ -0,0 +1,398 @@
........................................................................ [ 62%]
...................................FFF..FF. [100%]
=================================== FAILURES ===================================
______________ test_exact_graph_and_original_seventeen_unchanged _______________
def test_exact_graph_and_original_seventeen_unchanged():
d = doc()
assert d["fixed_version"]["matched"]
assert len(BLOCK["fields"]) == 21 and BLOCK["comments"] == []
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
nodes = {n["id"]: n for n in SOURCE["nodes"]}
assert {k: len(n["widgets_values"]) for k, n in nodes.items()} == {20: 0, 21: 11, 1: 10, 15: 0}
assert all(n["mode"] == 0 for n in nodes.values())
assert "frontendVersion" not in SOURCE["extra"] and "definitions" not in SOURCE
assert SOURCE["links"] == [
[15, 1, 0, 20, 0, "IMAGE"],
[16, 20, 0, 15, 0, "IMAGE"],
[17, 20, 0, 21, 0, "IMAGE"],
[18, 1, 2, 21, 1, "AUDIO"],
]
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
assert eid in nodes[origin]["outputs"][slot]["links"]
assert nodes[origin]["outputs"][slot]["type"] == typ
assert nodes[target]["inputs"][inp]["link"] == eid
assert nodes[target]["inputs"][inp]["type"] == typ
fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
assert fields["1", "force_rate"]["value"] == fields["21", "frame_rate"]["value"] == 16
assert fields["1", "force_rate"]["json_type"] == "int"
assert fields["1", "choose video to upload"]["role"] == "frontend_control"
assert all(
f["role"] == "frontend_history" for f in BLOCK["fields"] if f["field"] == "videopreview"
)
text = "".join(BLOCK["flow"])
for token in [
"音频link18",
"绕过Reverse20",
"torch.flip(images,[0])",
"没有frontendVersion",
"-shortest",
"RETURN_TYPES",
"未接",
"历史",
"未知",
"内存",
"VHS1.7.7",
]:
assert token in text
assert not BLOCK["counts"]["final_prompt_constructed"]
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
"截取视频每一帧.json",
"加载本地latent解码.json",
)
)
]:
now[added].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 24
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
assert (
sum(len(b.get("comments", [])) for b in blocks) == 14
) # ASR historical note counted separately
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
"截取视频每一帧.json",
"加载本地latent解码.json",
)
):
continue
if p == PATH:
continue
r = copy.deepcopy(REVIEW)
> r["fixed_version_document"] = old[p]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_reverse_fixed_document.py:255: KeyError
__________ test_exact_topology_counts_modes_unknowns_and_old_objects ___________
def test_exact_topology_counts_modes_unknowns_and_old_objects():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert len(BLOCK["fields"]) == 74 and len(BLOCK["comments"]) == 0
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 3
assert sum(f["value"] is None for f in BLOCK["fields"]) == 1
assert sum(f["role"] == "unknown_saved" for f in BLOCK["fields"]) == 7
expected = {
203: 1,
334: 1,
340: 1,
137: 11,
339: 1,
373: 11,
364: 3,
362: 7,
363: 0,
106: 2,
374: 9,
370: 1,
130: 9,
208: 1,
376: 1,
375: 9,
365: 0,
335: 2,
372: 4,
}
nodes = {n["id"]: n for n in SOURCE["nodes"]}
assert {nid: len(n["widgets_values"]) for nid, n in nodes.items()} == expected
assert {nid for nid, n in nodes.items() if n["mode"] == 4} == {106, 375, 365}
assert len(SOURCE["links"]) == 22 and "definitions" not in SOURCE
assert [e[0] for e in SOURCE["links"]] == [
570,
621,
623,
624,
625,
627,
629,
648,
650,
651,
653,
654,
655,
656,
657,
658,
659,
660,
661,
662,
663,
665,
]
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
assert eid in nodes[origin]["outputs"][slot]["links"]
assert nodes[target]["inputs"][inp]["link"] == eid
assert nodes[target]["inputs"][inp]["type"] == (
{648: "INT", 661: "INT,FLOAT", 662: "INT,FLOAT"}.get(eid, typ)
)
text = "".join(BLOCK["flow"])
assert all(
t in text
for t in [
"没有warmup",
"没有per_batch",
"round(result)",
"两Combine.audio都未接",
"临时目录",
"UE",
"mode4",
"0新源注释",
"冲突不抹平",
"taichi",
"提供方",
"未实跑",
]
)
assert not BLOCK["counts"]["final_prompt_constructed"]
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
now[later].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
)
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 24
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
assert len(old_blocks) == 16 and sum(len(b["fields"]) for b in old_blocks) == 421
assert (
sum(len(b.get("comments", [])) for b in old_blocks) == 14
) # separate historical ASR flow note
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
continue
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
):
continue
if p == PATH or p.endswith("/视频倒放.json"):
continue
r = copy.deepcopy(REVIEW)
> r["fixed_version_document"] = old[p]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_nlf_fixed_document.py:300: KeyError
________________ test_exact_document_topology_and_preservation _________________
def test_exact_document_topology_and_preservation():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert len(BLOCK["fields"]) == 27 and len(BLOCK["comments"]) == 1
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
assert len(SOURCE["nodes"]) == 5 and len(SOURCE["links"]) == 4
assert SOURCE["links"] == [
[4, 1, 0, 4, 0, "IMAGE"],
[10, 2, 0, 1, 0, "IMAGE"],
[11, 2, 3, 9, 0, "VHS_VIDEOINFO"],
[12, 9, 0, 4, 4, "FLOAT"],
]
nodes = {n["id"]: n for n in SOURCE["nodes"]}
for edge, origin, slot, target, inp, typ in SOURCE["links"]:
assert edge in nodes[origin]["outputs"][slot]["links"]
assert nodes[target]["inputs"][inp]["link"] == edge
assert nodes[target]["inputs"][inp]["type"] == typ
assert nodes[9]["widgets_values"] == {} and type(nodes[9]["widgets_values"]) is dict
assert all(n["mode"] == 0 for n in SOURCE["nodes"])
assert pointer(SOURCE, BLOCK["comments"][0]["pointer"]) == BLOCK["comments"][0]["text"]
assert not BLOCK["counts"]["final_prompt_constructed"]
assert all(
s in "".join(BLOCK["flow"])
for s in [
"未实跑",
"包同字节不等于提交绑定",
"loaded_fps",
"外线覆盖",
"音频",
"UE7.5.2",
"空对象",
"不是缺键/null/[]",
]
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
current = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in current if p.endswith("/birefnet_图像移除背景.json"))
current[birefnet].pop("fixed_version_document")
latent = next(p for p in current if p.endswith("/加载本地latent解码.json"))
current[latent].pop("fixed_version_document")
later = next(p for p in current if p.endswith("/截取视频每一帧.json"))
current[later].pop("fixed_version_document")
for added in [
p
for p in current
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
)
]:
current[added].pop("fixed_version_document")
reverse = next(p for p in current if p.endswith("/视频倒放.json"))
current[reverse].pop("fixed_version_document")
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
current[nlf].pop("fixed_version_document")
assert current[PATH].pop("fixed_version_document") == BLOCK
assert current == previous and len(DEFINITIONS) == 24
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert not doc(path="untrusted.json").get("fixed_version")
for p in DEFINITIONS:
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
continue
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
):
continue
if p in [PATH, nlf, reverse]:
continue
r = copy.deepcopy(REVIEW)
> r["fixed_version_document"] = previous[p]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_openpose_fixed_document.py:241: KeyError
______________ test_real_document_and_frozen_old_fourteen_blocks _______________
def test_real_document_and_frozen_old_fourteen_blocks():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert "fixed_version" not in doc(path="untrusted.json")
review = copy.deepcopy(REVIEW)
other = next(
p
for p in DEFINITIONS
if p != PATH
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json")
)
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
now[later].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
)
)
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
now[nlf].pop("fixed_version_document")
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
> review["fixed_version_document"] = now[other]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_sdpose_fixed_document.py:187: KeyError
______ test_ten_documents_only_gain_overview_and_new_block_is_independent ______
def test_ten_documents_only_gain_overview_and_new_block_is_independent():
p = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ec3388a:" + p], cwd=REPO))
now = json.loads((REPO / p).read_bytes())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
# Freeze the historical eleven-document revision; the two grid additions are
# independently compared against 27e6d56 in test_grid_fixed_document.
# Gemma is separately checked against 9dac1b4 in test_gemma_fixed_document.
additions = [
p
for p in DEFINITIONS
if p.endswith(
(
"图像合并成四宫格.json",
"图像分割-多宫格分割.json",
"gemma4_提示词反推(图像视频音频).json",
"sdpose_视频人物姿势骨架提取.json",
"openpose-video-姿态检测.json",
"NLF_视频人物动作骨架获取.json",
"/视频倒放.json",
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
"截取视频每一帧.json",
"加载本地latent解码.json",
)
)
]
assert len(additions) == 12
for p in additions:
now[p].pop("fixed_version_document")
historical = [p for p in DEFINITIONS if p not in additions]
> assert len(historical) == 11
E AssertionError: assert 12 == 11
E + where 12 = len(['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json', 'example_ComfyUI_workflows/3-图像生成/Qw...图像视频放大/Minimax-H3提示词增强.json', 'example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json', ...])
calliope-backend/tests/test_background_fixed_document.py:222: AssertionError
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged
FAILED calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects
FAILED calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation
FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks
FAILED calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent
5 failed, 110 passed, 1 warning in 5.14s
@@ -0,0 +1,3 @@
........................................................................ [ 52%]
.................................................................. [100%]
138 passed, 1 warning in 5.24s
@@ -0,0 +1,728 @@
{
"base": "6e1e47b8e79cd5c5336dc840e607da6e8fbb9c45",
"files": [
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
},
{
"path": "calliope-backend/src/calliope/comfyui/registry.py",
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/client.py",
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
},
{
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
},
{
"path": "calliope-backend/src/calliope/routers/workflows.py",
"sha256": "3f1d5fdacc841080973dcafb9cd87a42433ec19080a3ff14a29561f13d512c97"
},
{
"path": "calliope-backend/src/calliope/queue/worker.py",
"sha256": "54f5505ae78802f77fedf23690579444c9ccfbb0949b32f9e96980e8d55c2d3b"
},
{
"path": "docs/hel-892/h3-chain-evidence/library.json",
"sha256": "667c09ebd5ba14c281366a1b9f7647d74f74e055a863b121d9324ac75a423cd4"
},
{
"path": "docs/hel-892/media-evidence/protected-six-cases.json",
"sha256": "c2b9dffd7f1a9c5f0de51c26c9dd81beedd3ad7f6b67a54aa3eb5cead55c8c5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
},
{
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
},
{
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
}
],
"originals": 163,
"old_twenty_three_blocks_unchanged": true,
"drawer_css_unchanged": true,
"drawer_whole_file_unchanged": true,
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
"conversion_rerun": false,
"profiles_28_candidates_9_diffs_6": "unchanged"
}
@@ -0,0 +1,703 @@
PASS 24图665保存位置
PASS 24图16源注释
PASS 1440 birefnet_图像移除背景默认中文用途
PASS 1440 birefnet_图像移除背景源审校默认折叠
PASS 1440 birefnet_图像移除背景技术范围默认折叠
PASS 1440 birefnet_图像移除背景默认无执行计数/实现标识
PASS 1440 birefnet_图像移除背景默认依据限制可见
PASS 1440 birefnet_图像移除背景 说明未定稿
PASS 1440 birefnet_图像移除背景 未验证实跑
PASS 1440 birefnet_图像移除背景 未检查
PASS 1440 birefnet_图像移除背景停用/时间戳空
PASS 1440 birefnet_图像移除背景参数全保留
PASS 1440 birefnet_图像移除背景默认无溢出
PASS 1440 birefnet_图像移除背景原用途/源路径展开保留
PASS 1440 birefnet_图像移除背景展开流程 0
PASS 1440 birefnet_图像移除背景展开流程 1
PASS 1440 birefnet_图像移除背景展开流程 2
PASS 1440 birefnet_图像移除背景展开流程 3
PASS 1440 birefnet_图像移除背景展开流程 4
PASS 1440 birefnet_图像移除背景展开流程 5
PASS 1440 birefnet_图像移除背景展开流程 6
PASS 1440 birefnet_图像移除背景展开流程 7
PASS 1440 birefnet_图像移除背景展开流程 8
PASS 1440 birefnet_图像移除背景展开流程 9
PASS 1440 birefnet_图像移除背景展开流程 10
PASS 1440 birefnet_图像移除背景展开流程 11
PASS 1440 birefnet_图像移除背景展开流程 12
PASS 1440 birefnet_图像移除背景展开流程 13
PASS 1440 birefnet_图像移除背景展开流程 14
PASS 1440 birefnet_图像移除背景展开流程 15
PASS 1440 birefnet_图像移除背景展开流程 16
PASS 1440 birefnet_图像移除背景展开流程 17
PASS 1440 birefnet_图像移除背景展开流程 18
PASS 1440 birefnet_图像移除背景展开流程 19
PASS 1440 birefnet_图像移除背景展开流程 20
PASS 1440 birefnet_图像移除背景展开流程 21
PASS 1440 birefnet_图像移除背景展开流程 22
PASS 1440 birefnet_图像移除背景展开流程 23
PASS 1440 birefnet_图像移除背景展开流程 24
PASS 1440 birefnet_图像移除背景展开流程 25
PASS 1440 birefnet_图像移除背景原件摘要可展开
PASS 1440 birefnet_图像移除背景版本 0
PASS 1440 birefnet_图像移除背景版本 1
PASS 1440 birefnet_图像移除背景版本 2
PASS 1440 birefnet_图像移除背景版本 3
PASS 1440 birefnet_图像移除背景版本 4
PASS 1440 23.bg_removal_name键盘展开
PASS 1440 23.bg_removal_name用途/单位/范围/来源条件
PASS 1440 23.bg_removal_name精确保留现值
PASS 1440 23.bg_removal_name指针默认折叠
PASS 1440 23.bg_removal_name精确源码/类型/指针
PASS 1440 23.bg_removal_name展开无溢出
PASS 1440 17.image键盘展开
PASS 1440 17.image用途/单位/范围/来源条件
PASS 1440 17.image精确保留现值
PASS 1440 17.image指针默认折叠
PASS 1440 17.image精确源码/类型/指针
PASS 1440 17.image展开无溢出
PASS 1440 17.upload键盘展开
PASS 1440 17.upload用途/单位/范围/来源条件
PASS 1440 17.upload精确保留现值
PASS 1440 17.upload指针默认折叠
PASS 1440 17.upload精确源码/类型/指针
PASS 1440 17.upload展开无溢出
PASS 1440注释21全文
PASS 1440注释21无溢出
PASS 1440Tab焦点保留
PASS 1440ShiftTab焦点保留
PASS 1440 birefnet_图像移除背景关闭归还焦点
PASS 1440 加载本地latent解码默认中文用途
PASS 1440 加载本地latent解码源审校默认折叠
PASS 1440 加载本地latent解码技术范围默认折叠
PASS 1440 加载本地latent解码默认无执行计数/实现标识
PASS 1440 加载本地latent解码默认依据限制可见
PASS 1440 加载本地latent解码 说明未定稿
PASS 1440 加载本地latent解码 未验证实跑
PASS 1440 加载本地latent解码 未检查
PASS 1440 加载本地latent解码停用/时间戳空
PASS 1440 加载本地latent解码参数全保留
PASS 1440 加载本地latent解码默认无溢出
PASS 1440 加载本地latent解码旧图归还焦点
PASS 1440 截取视频每一帧默认中文用途
PASS 1440 截取视频每一帧源审校默认折叠
PASS 1440 截取视频每一帧技术范围默认折叠
PASS 1440 截取视频每一帧默认无执行计数/实现标识
PASS 1440 截取视频每一帧默认依据限制可见
PASS 1440 截取视频每一帧 说明未定稿
PASS 1440 截取视频每一帧 未验证实跑
PASS 1440 截取视频每一帧 未检查
PASS 1440 截取视频每一帧停用/时间戳空
PASS 1440 截取视频每一帧参数全保留
PASS 1440 截取视频每一帧默认无溢出
PASS 1440 截取视频每一帧旧图归还焦点
PASS 1440 双图像或视频合并显示默认中文用途
PASS 1440 双图像或视频合并显示源审校默认折叠
PASS 1440 双图像或视频合并显示技术范围默认折叠
PASS 1440 双图像或视频合并显示默认无执行计数/实现标识
PASS 1440 双图像或视频合并显示默认依据限制可见
PASS 1440 双图像或视频合并显示 说明未定稿
PASS 1440 双图像或视频合并显示 未验证实跑
PASS 1440 双图像或视频合并显示 未检查
PASS 1440 双图像或视频合并显示停用/时间戳空
PASS 1440 双图像或视频合并显示参数全保留
PASS 1440 双图像或视频合并显示默认无溢出
PASS 1440 双图像或视频合并显示旧图归还焦点
PASS 1440 视频转gif动图图片默认中文用途
PASS 1440 视频转gif动图图片源审校默认折叠
PASS 1440 视频转gif动图图片技术范围默认折叠
PASS 1440 视频转gif动图图片默认无执行计数/实现标识
PASS 1440 视频转gif动图图片默认依据限制可见
PASS 1440 视频转gif动图图片 说明未定稿
PASS 1440 视频转gif动图图片 未验证实跑
PASS 1440 视频转gif动图图片 未检查
PASS 1440 视频转gif动图图片停用/时间戳空
PASS 1440 视频转gif动图图片参数全保留
PASS 1440 视频转gif动图图片默认无溢出
PASS 1440 视频转gif动图图片旧图归还焦点
PASS 1440 加载图片合成视频默认中文用途
PASS 1440 加载图片合成视频源审校默认折叠
PASS 1440 加载图片合成视频技术范围默认折叠
PASS 1440 加载图片合成视频默认无执行计数/实现标识
PASS 1440 加载图片合成视频默认依据限制可见
PASS 1440 加载图片合成视频 说明未定稿
PASS 1440 加载图片合成视频 未验证实跑
PASS 1440 加载图片合成视频 未检查
PASS 1440 加载图片合成视频停用/时间戳空
PASS 1440 加载图片合成视频参数全保留
PASS 1440 加载图片合成视频默认无溢出
PASS 1440 加载图片合成视频旧图归还焦点
PASS 1440 视频倒放默认中文用途
PASS 1440 视频倒放源审校默认折叠
PASS 1440 视频倒放技术范围默认折叠
PASS 1440 视频倒放默认无执行计数/实现标识
PASS 1440 视频倒放默认依据限制可见
PASS 1440 视频倒放 说明未定稿
PASS 1440 视频倒放 未验证实跑
PASS 1440 视频倒放 未检查
PASS 1440 视频倒放停用/时间戳空
PASS 1440 视频倒放参数全保留
PASS 1440 视频倒放默认无溢出
PASS 1440 视频倒放旧图归还焦点
PASS 1440 NLF_视频人物动作骨架获取默认中文用途
PASS 1440 NLF_视频人物动作骨架获取源审校默认折叠
PASS 1440 NLF_视频人物动作骨架获取技术范围默认折叠
PASS 1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识
PASS 1440 NLF_视频人物动作骨架获取默认依据限制可见
PASS 1440 NLF_视频人物动作骨架获取 说明未定稿
PASS 1440 NLF_视频人物动作骨架获取 未验证实跑
PASS 1440 NLF_视频人物动作骨架获取 未检查
PASS 1440 NLF_视频人物动作骨架获取停用/时间戳空
PASS 1440 NLF_视频人物动作骨架获取参数全保留
PASS 1440 NLF_视频人物动作骨架获取默认无溢出
PASS 1440 NLF_视频人物动作骨架获取旧图归还焦点
PASS 1440 openpose-video-姿态检测默认中文用途
PASS 1440 openpose-video-姿态检测源审校默认折叠
PASS 1440 openpose-video-姿态检测技术范围默认折叠
PASS 1440 openpose-video-姿态检测默认无执行计数/实现标识
PASS 1440 openpose-video-姿态检测默认依据限制可见
PASS 1440 openpose-video-姿态检测 说明未定稿
PASS 1440 openpose-video-姿态检测 未验证实跑
PASS 1440 openpose-video-姿态检测 未检查
PASS 1440 openpose-video-姿态检测停用/时间戳空
PASS 1440 openpose-video-姿态检测参数全保留
PASS 1440 openpose-video-姿态检测默认无溢出
PASS 1440 openpose-video-姿态检测旧图归还焦点
PASS 1440 sdpose_视频人物姿势骨架提取默认中文用途
PASS 1440 sdpose_视频人物姿势骨架提取源审校默认折叠
PASS 1440 sdpose_视频人物姿势骨架提取技术范围默认折叠
PASS 1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识
PASS 1440 sdpose_视频人物姿势骨架提取默认依据限制可见
PASS 1440 sdpose_视频人物姿势骨架提取 说明未定稿
PASS 1440 sdpose_视频人物姿势骨架提取 未验证实跑
PASS 1440 sdpose_视频人物姿势骨架提取 未检查
PASS 1440 sdpose_视频人物姿势骨架提取停用/时间戳空
PASS 1440 sdpose_视频人物姿势骨架提取参数全保留
PASS 1440 sdpose_视频人物姿势骨架提取默认无溢出
PASS 1440 sdpose_视频人物姿势骨架提取旧图归还焦点
PASS 1440 gemma4_提示词反推(图像视频音频)默认中文用途
PASS 1440 gemma4_提示词反推(图像视频音频)源审校默认折叠
PASS 1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠
PASS 1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识
PASS 1440 gemma4_提示词反推(图像视频音频)默认依据限制可见
PASS 1440 gemma4_提示词反推(图像视频音频) 说明未定稿
PASS 1440 gemma4_提示词反推(图像视频音频) 未验证实跑
PASS 1440 gemma4_提示词反推(图像视频音频) 未检查
PASS 1440 gemma4_提示词反推(图像视频音频)停用/时间戳空
PASS 1440 gemma4_提示词反推(图像视频音频)参数全保留
PASS 1440 gemma4_提示词反推(图像视频音频)默认无溢出
PASS 1440 gemma4_提示词反推(图像视频音频)旧图归还焦点
PASS 1440 图像合并成四宫格默认中文用途
PASS 1440 图像合并成四宫格源审校默认折叠
PASS 1440 图像合并成四宫格技术范围默认折叠
PASS 1440 图像合并成四宫格默认无执行计数/实现标识
PASS 1440 图像合并成四宫格默认依据限制可见
PASS 1440 图像合并成四宫格 说明未定稿
PASS 1440 图像合并成四宫格 未验证实跑
PASS 1440 图像合并成四宫格 未检查
PASS 1440 图像合并成四宫格停用/时间戳空
PASS 1440 图像合并成四宫格参数全保留
PASS 1440 图像合并成四宫格默认无溢出
PASS 1440 图像合并成四宫格旧图归还焦点
PASS 1440 图像分割-多宫格分割默认中文用途
PASS 1440 图像分割-多宫格分割源审校默认折叠
PASS 1440 图像分割-多宫格分割技术范围默认折叠
PASS 1440 图像分割-多宫格分割默认无执行计数/实现标识
PASS 1440 图像分割-多宫格分割默认依据限制可见
PASS 1440 图像分割-多宫格分割 说明未定稿
PASS 1440 图像分割-多宫格分割 未验证实跑
PASS 1440 图像分割-多宫格分割 未检查
PASS 1440 图像分割-多宫格分割停用/时间戳空
PASS 1440 图像分割-多宫格分割参数全保留
PASS 1440 图像分割-多宫格分割默认无溢出
PASS 1440 图像分割-多宫格分割旧图归还焦点
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认中文用途
PASS 1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠
PASS 1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见
PASS 1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿
PASS 1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑
PASS 1440 Qwen_image2.1_图像编辑_背景移除 未检查
PASS 1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空
PASS 1440 Qwen_image2.1_图像编辑_背景移除参数全保留
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无溢出
PASS 1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途
PASS 1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠
PASS 1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见
PASS 1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿
PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑
PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未检查
PASS 1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空
PASS 1440 Qwen_image2.1_图像编辑_提示词增强参数全保留
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出
PASS 1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点
PASS 1440 Qwen_image2.1_文生图_提示词增强默认中文用途
PASS 1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠
PASS 1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠
PASS 1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识
PASS 1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见
PASS 1440 Qwen_image2.1_文生图_提示词增强 说明未定稿
PASS 1440 Qwen_image2.1_文生图_提示词增强 未验证实跑
PASS 1440 Qwen_image2.1_文生图_提示词增强 未检查
PASS 1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空
PASS 1440 Qwen_image2.1_文生图_提示词增强参数全保留
PASS 1440 Qwen_image2.1_文生图_提示词增强默认无溢出
PASS 1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点
PASS 1440 ControlNet_aux_常用样例默认中文用途
PASS 1440 ControlNet_aux_常用样例源审校默认折叠
PASS 1440 ControlNet_aux_常用样例技术范围默认折叠
PASS 1440 ControlNet_aux_常用样例默认无执行计数/实现标识
PASS 1440 ControlNet_aux_常用样例默认依据限制可见
PASS 1440 ControlNet_aux_常用样例 说明未定稿
PASS 1440 ControlNet_aux_常用样例 未验证实跑
PASS 1440 ControlNet_aux_常用样例 未检查
PASS 1440 ControlNet_aux_常用样例停用/时间戳空
PASS 1440 ControlNet_aux_常用样例参数全保留
PASS 1440 ControlNet_aux_常用样例默认无溢出
PASS 1440 ControlNet_aux_常用样例旧图归还焦点
PASS 1440 Qwen3-ASR-语音转文字默认中文用途
PASS 1440 Qwen3-ASR-语音转文字源审校默认折叠
PASS 1440 Qwen3-ASR-语音转文字技术范围默认折叠
PASS 1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识
PASS 1440 Qwen3-ASR-语音转文字默认依据限制可见
PASS 1440 Qwen3-ASR-语音转文字 说明未定稿
PASS 1440 Qwen3-ASR-语音转文字 未验证实跑
PASS 1440 Qwen3-ASR-语音转文字 未检查
PASS 1440 Qwen3-ASR-语音转文字停用/时间戳空
PASS 1440 Qwen3-ASR-语音转文字参数全保留
PASS 1440 Qwen3-ASR-语音转文字默认无溢出
PASS 1440 Qwen3-ASR-语音转文字旧图归还焦点
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途
PASS 1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠
PASS 1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见
PASS 1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿
PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑
PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未检查
PASS 1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空
PASS 1440 Qwen3-ASR-Subtitle语音转字幕参数全保留
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出
PASS 1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点
PASS 1440 Minimax-H3提示词增强默认中文用途
PASS 1440 Minimax-H3提示词增强源审校默认折叠
PASS 1440 Minimax-H3提示词增强技术范围默认折叠
PASS 1440 Minimax-H3提示词增强默认无执行计数/实现标识
PASS 1440 Minimax-H3提示词增强默认依据限制可见
PASS 1440 Minimax-H3提示词增强 说明未定稿
PASS 1440 Minimax-H3提示词增强 未验证实跑
PASS 1440 Minimax-H3提示词增强 未检查
PASS 1440 Minimax-H3提示词增强停用/时间戳空
PASS 1440 Minimax-H3提示词增强参数全保留
PASS 1440 Minimax-H3提示词增强默认无溢出
PASS 1440 Minimax-H3提示词增强旧图归还焦点
PASS 1440 音频转MP3格式默认中文用途
PASS 1440 音频转MP3格式源审校默认折叠
PASS 1440 音频转MP3格式技术范围默认折叠
PASS 1440 音频转MP3格式默认无执行计数/实现标识
PASS 1440 音频转MP3格式默认依据限制可见
PASS 1440 音频转MP3格式 说明未定稿
PASS 1440 音频转MP3格式 未验证实跑
PASS 1440 音频转MP3格式 未检查
PASS 1440 音频转MP3格式停用/时间戳空
PASS 1440 音频转MP3格式参数全保留
PASS 1440 音频转MP3格式默认无溢出
PASS 1440 音频转MP3格式旧图归还焦点
PASS 1440 音频人声分离默认中文用途
PASS 1440 音频人声分离源审校默认折叠
PASS 1440 音频人声分离技术范围默认折叠
PASS 1440 音频人声分离默认无执行计数/实现标识
PASS 1440 音频人声分离默认依据限制可见
PASS 1440 音频人声分离 说明未定稿
PASS 1440 音频人声分离 未验证实跑
PASS 1440 音频人声分离 未检查
PASS 1440 音频人声分离停用/时间戳空
PASS 1440 音频人声分离参数全保留
PASS 1440 音频人声分离默认无溢出
PASS 1440 音频人声分离旧图归还焦点
PASS 1440 视频-音频分离默认中文用途
PASS 1440 视频-音频分离源审校默认折叠
PASS 1440 视频-音频分离技术范围默认折叠
PASS 1440 视频-音频分离默认无执行计数/实现标识
PASS 1440 视频-音频分离默认依据限制可见
PASS 1440 视频-音频分离 说明未定稿
PASS 1440 视频-音频分离 未验证实跑
PASS 1440 视频-音频分离 未检查
PASS 1440 视频-音频分离停用/时间戳空
PASS 1440 视频-音频分离参数全保留
PASS 1440 视频-音频分离默认无溢出
PASS 1440 视频-音频分离旧图归还焦点
PASS 1440 图像嵌入文字描述默认中文用途
PASS 1440 图像嵌入文字描述源审校默认折叠
PASS 1440 图像嵌入文字描述技术范围默认折叠
PASS 1440 图像嵌入文字描述默认无执行计数/实现标识
PASS 1440 图像嵌入文字描述默认依据限制可见
PASS 1440 图像嵌入文字描述 说明未定稿
PASS 1440 图像嵌入文字描述 未验证实跑
PASS 1440 图像嵌入文字描述 未检查
PASS 1440 图像嵌入文字描述停用/时间戳空
PASS 1440 图像嵌入文字描述参数全保留
PASS 1440 图像嵌入文字描述默认无溢出
PASS 1440 图像嵌入文字描述旧图归还焦点
PASS 390 birefnet_图像移除背景默认中文用途
PASS 390 birefnet_图像移除背景源审校默认折叠
PASS 390 birefnet_图像移除背景技术范围默认折叠
PASS 390 birefnet_图像移除背景默认无执行计数/实现标识
PASS 390 birefnet_图像移除背景默认依据限制可见
PASS 390 birefnet_图像移除背景 说明未定稿
PASS 390 birefnet_图像移除背景 未验证实跑
PASS 390 birefnet_图像移除背景 未检查
PASS 390 birefnet_图像移除背景停用/时间戳空
PASS 390 birefnet_图像移除背景参数全保留
PASS 390 birefnet_图像移除背景默认无溢出
PASS 390 birefnet_图像移除背景原用途/源路径展开保留
PASS 390 birefnet_图像移除背景展开流程 0
PASS 390 birefnet_图像移除背景展开流程 1
PASS 390 birefnet_图像移除背景展开流程 2
PASS 390 birefnet_图像移除背景展开流程 3
PASS 390 birefnet_图像移除背景展开流程 4
PASS 390 birefnet_图像移除背景展开流程 5
PASS 390 birefnet_图像移除背景展开流程 6
PASS 390 birefnet_图像移除背景展开流程 7
PASS 390 birefnet_图像移除背景展开流程 8
PASS 390 birefnet_图像移除背景展开流程 9
PASS 390 birefnet_图像移除背景展开流程 10
PASS 390 birefnet_图像移除背景展开流程 11
PASS 390 birefnet_图像移除背景展开流程 12
PASS 390 birefnet_图像移除背景展开流程 13
PASS 390 birefnet_图像移除背景展开流程 14
PASS 390 birefnet_图像移除背景展开流程 15
PASS 390 birefnet_图像移除背景展开流程 16
PASS 390 birefnet_图像移除背景展开流程 17
PASS 390 birefnet_图像移除背景展开流程 18
PASS 390 birefnet_图像移除背景展开流程 19
PASS 390 birefnet_图像移除背景展开流程 20
PASS 390 birefnet_图像移除背景展开流程 21
PASS 390 birefnet_图像移除背景展开流程 22
PASS 390 birefnet_图像移除背景展开流程 23
PASS 390 birefnet_图像移除背景展开流程 24
PASS 390 birefnet_图像移除背景展开流程 25
PASS 390 birefnet_图像移除背景原件摘要可展开
PASS 390 birefnet_图像移除背景版本 0
PASS 390 birefnet_图像移除背景版本 1
PASS 390 birefnet_图像移除背景版本 2
PASS 390 birefnet_图像移除背景版本 3
PASS 390 birefnet_图像移除背景版本 4
PASS 390 23.bg_removal_name键盘展开
PASS 390 23.bg_removal_name用途/单位/范围/来源条件
PASS 390 23.bg_removal_name精确保留现值
PASS 390 23.bg_removal_name指针默认折叠
PASS 390 23.bg_removal_name精确源码/类型/指针
PASS 390 23.bg_removal_name展开无溢出
PASS 390 17.image键盘展开
PASS 390 17.image用途/单位/范围/来源条件
PASS 390 17.image精确保留现值
PASS 390 17.image指针默认折叠
PASS 390 17.image精确源码/类型/指针
PASS 390 17.image展开无溢出
PASS 390 17.upload键盘展开
PASS 390 17.upload用途/单位/范围/来源条件
PASS 390 17.upload精确保留现值
PASS 390 17.upload指针默认折叠
PASS 390 17.upload精确源码/类型/指针
PASS 390 17.upload展开无溢出
PASS 390注释21全文
PASS 390注释21无溢出
PASS 390Tab焦点保留
PASS 390ShiftTab焦点保留
PASS 390 birefnet_图像移除背景关闭归还焦点
PASS 390 加载本地latent解码默认中文用途
PASS 390 加载本地latent解码源审校默认折叠
PASS 390 加载本地latent解码技术范围默认折叠
PASS 390 加载本地latent解码默认无执行计数/实现标识
PASS 390 加载本地latent解码默认依据限制可见
PASS 390 加载本地latent解码 说明未定稿
PASS 390 加载本地latent解码 未验证实跑
PASS 390 加载本地latent解码 未检查
PASS 390 加载本地latent解码停用/时间戳空
PASS 390 加载本地latent解码参数全保留
PASS 390 加载本地latent解码默认无溢出
PASS 390 加载本地latent解码旧图归还焦点
PASS 390 截取视频每一帧默认中文用途
PASS 390 截取视频每一帧源审校默认折叠
PASS 390 截取视频每一帧技术范围默认折叠
PASS 390 截取视频每一帧默认无执行计数/实现标识
PASS 390 截取视频每一帧默认依据限制可见
PASS 390 截取视频每一帧 说明未定稿
PASS 390 截取视频每一帧 未验证实跑
PASS 390 截取视频每一帧 未检查
PASS 390 截取视频每一帧停用/时间戳空
PASS 390 截取视频每一帧参数全保留
PASS 390 截取视频每一帧默认无溢出
PASS 390 截取视频每一帧旧图归还焦点
PASS 390 双图像或视频合并显示默认中文用途
PASS 390 双图像或视频合并显示源审校默认折叠
PASS 390 双图像或视频合并显示技术范围默认折叠
PASS 390 双图像或视频合并显示默认无执行计数/实现标识
PASS 390 双图像或视频合并显示默认依据限制可见
PASS 390 双图像或视频合并显示 说明未定稿
PASS 390 双图像或视频合并显示 未验证实跑
PASS 390 双图像或视频合并显示 未检查
PASS 390 双图像或视频合并显示停用/时间戳空
PASS 390 双图像或视频合并显示参数全保留
PASS 390 双图像或视频合并显示默认无溢出
PASS 390 双图像或视频合并显示旧图归还焦点
PASS 390 视频转gif动图图片默认中文用途
PASS 390 视频转gif动图图片源审校默认折叠
PASS 390 视频转gif动图图片技术范围默认折叠
PASS 390 视频转gif动图图片默认无执行计数/实现标识
PASS 390 视频转gif动图图片默认依据限制可见
PASS 390 视频转gif动图图片 说明未定稿
PASS 390 视频转gif动图图片 未验证实跑
PASS 390 视频转gif动图图片 未检查
PASS 390 视频转gif动图图片停用/时间戳空
PASS 390 视频转gif动图图片参数全保留
PASS 390 视频转gif动图图片默认无溢出
PASS 390 视频转gif动图图片旧图归还焦点
PASS 390 加载图片合成视频默认中文用途
PASS 390 加载图片合成视频源审校默认折叠
PASS 390 加载图片合成视频技术范围默认折叠
PASS 390 加载图片合成视频默认无执行计数/实现标识
PASS 390 加载图片合成视频默认依据限制可见
PASS 390 加载图片合成视频 说明未定稿
PASS 390 加载图片合成视频 未验证实跑
PASS 390 加载图片合成视频 未检查
PASS 390 加载图片合成视频停用/时间戳空
PASS 390 加载图片合成视频参数全保留
PASS 390 加载图片合成视频默认无溢出
PASS 390 加载图片合成视频旧图归还焦点
PASS 390 视频倒放默认中文用途
PASS 390 视频倒放源审校默认折叠
PASS 390 视频倒放技术范围默认折叠
PASS 390 视频倒放默认无执行计数/实现标识
PASS 390 视频倒放默认依据限制可见
PASS 390 视频倒放 说明未定稿
PASS 390 视频倒放 未验证实跑
PASS 390 视频倒放 未检查
PASS 390 视频倒放停用/时间戳空
PASS 390 视频倒放参数全保留
PASS 390 视频倒放默认无溢出
PASS 390 视频倒放旧图归还焦点
PASS 390 NLF_视频人物动作骨架获取默认中文用途
PASS 390 NLF_视频人物动作骨架获取源审校默认折叠
PASS 390 NLF_视频人物动作骨架获取技术范围默认折叠
PASS 390 NLF_视频人物动作骨架获取默认无执行计数/实现标识
PASS 390 NLF_视频人物动作骨架获取默认依据限制可见
PASS 390 NLF_视频人物动作骨架获取 说明未定稿
PASS 390 NLF_视频人物动作骨架获取 未验证实跑
PASS 390 NLF_视频人物动作骨架获取 未检查
PASS 390 NLF_视频人物动作骨架获取停用/时间戳空
PASS 390 NLF_视频人物动作骨架获取参数全保留
PASS 390 NLF_视频人物动作骨架获取默认无溢出
PASS 390 NLF_视频人物动作骨架获取旧图归还焦点
PASS 390 openpose-video-姿态检测默认中文用途
PASS 390 openpose-video-姿态检测源审校默认折叠
PASS 390 openpose-video-姿态检测技术范围默认折叠
PASS 390 openpose-video-姿态检测默认无执行计数/实现标识
PASS 390 openpose-video-姿态检测默认依据限制可见
PASS 390 openpose-video-姿态检测 说明未定稿
PASS 390 openpose-video-姿态检测 未验证实跑
PASS 390 openpose-video-姿态检测 未检查
PASS 390 openpose-video-姿态检测停用/时间戳空
PASS 390 openpose-video-姿态检测参数全保留
PASS 390 openpose-video-姿态检测默认无溢出
PASS 390 openpose-video-姿态检测旧图归还焦点
PASS 390 sdpose_视频人物姿势骨架提取默认中文用途
PASS 390 sdpose_视频人物姿势骨架提取源审校默认折叠
PASS 390 sdpose_视频人物姿势骨架提取技术范围默认折叠
PASS 390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识
PASS 390 sdpose_视频人物姿势骨架提取默认依据限制可见
PASS 390 sdpose_视频人物姿势骨架提取 说明未定稿
PASS 390 sdpose_视频人物姿势骨架提取 未验证实跑
PASS 390 sdpose_视频人物姿势骨架提取 未检查
PASS 390 sdpose_视频人物姿势骨架提取停用/时间戳空
PASS 390 sdpose_视频人物姿势骨架提取参数全保留
PASS 390 sdpose_视频人物姿势骨架提取默认无溢出
PASS 390 sdpose_视频人物姿势骨架提取旧图归还焦点
PASS 390 gemma4_提示词反推(图像视频音频)默认中文用途
PASS 390 gemma4_提示词反推(图像视频音频)源审校默认折叠
PASS 390 gemma4_提示词反推(图像视频音频)技术范围默认折叠
PASS 390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识
PASS 390 gemma4_提示词反推(图像视频音频)默认依据限制可见
PASS 390 gemma4_提示词反推(图像视频音频) 说明未定稿
PASS 390 gemma4_提示词反推(图像视频音频) 未验证实跑
PASS 390 gemma4_提示词反推(图像视频音频) 未检查
PASS 390 gemma4_提示词反推(图像视频音频)停用/时间戳空
PASS 390 gemma4_提示词反推(图像视频音频)参数全保留
PASS 390 gemma4_提示词反推(图像视频音频)默认无溢出
PASS 390 gemma4_提示词反推(图像视频音频)旧图归还焦点
PASS 390 图像合并成四宫格默认中文用途
PASS 390 图像合并成四宫格源审校默认折叠
PASS 390 图像合并成四宫格技术范围默认折叠
PASS 390 图像合并成四宫格默认无执行计数/实现标识
PASS 390 图像合并成四宫格默认依据限制可见
PASS 390 图像合并成四宫格 说明未定稿
PASS 390 图像合并成四宫格 未验证实跑
PASS 390 图像合并成四宫格 未检查
PASS 390 图像合并成四宫格停用/时间戳空
PASS 390 图像合并成四宫格参数全保留
PASS 390 图像合并成四宫格默认无溢出
PASS 390 图像合并成四宫格旧图归还焦点
PASS 390 图像分割-多宫格分割默认中文用途
PASS 390 图像分割-多宫格分割源审校默认折叠
PASS 390 图像分割-多宫格分割技术范围默认折叠
PASS 390 图像分割-多宫格分割默认无执行计数/实现标识
PASS 390 图像分割-多宫格分割默认依据限制可见
PASS 390 图像分割-多宫格分割 说明未定稿
PASS 390 图像分割-多宫格分割 未验证实跑
PASS 390 图像分割-多宫格分割 未检查
PASS 390 图像分割-多宫格分割停用/时间戳空
PASS 390 图像分割-多宫格分割参数全保留
PASS 390 图像分割-多宫格分割默认无溢出
PASS 390 图像分割-多宫格分割旧图归还焦点
PASS 390 Qwen_image2.1_图像编辑_背景移除默认中文用途
PASS 390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠
PASS 390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠
PASS 390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识
PASS 390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见
PASS 390 Qwen_image2.1_图像编辑_背景移除 说明未定稿
PASS 390 Qwen_image2.1_图像编辑_背景移除 未验证实跑
PASS 390 Qwen_image2.1_图像编辑_背景移除 未检查
PASS 390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空
PASS 390 Qwen_image2.1_图像编辑_背景移除参数全保留
PASS 390 Qwen_image2.1_图像编辑_背景移除默认无溢出
PASS 390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认中文用途
PASS 390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠
PASS 390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见
PASS 390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿
PASS 390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑
PASS 390 Qwen_image2.1_图像编辑_提示词增强 未检查
PASS 390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空
PASS 390 Qwen_image2.1_图像编辑_提示词增强参数全保留
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无溢出
PASS 390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点
PASS 390 Qwen_image2.1_文生图_提示词增强默认中文用途
PASS 390 Qwen_image2.1_文生图_提示词增强源审校默认折叠
PASS 390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠
PASS 390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识
PASS 390 Qwen_image2.1_文生图_提示词增强默认依据限制可见
PASS 390 Qwen_image2.1_文生图_提示词增强 说明未定稿
PASS 390 Qwen_image2.1_文生图_提示词增强 未验证实跑
PASS 390 Qwen_image2.1_文生图_提示词增强 未检查
PASS 390 Qwen_image2.1_文生图_提示词增强停用/时间戳空
PASS 390 Qwen_image2.1_文生图_提示词增强参数全保留
PASS 390 Qwen_image2.1_文生图_提示词增强默认无溢出
PASS 390 Qwen_image2.1_文生图_提示词增强旧图归还焦点
PASS 390 ControlNet_aux_常用样例默认中文用途
PASS 390 ControlNet_aux_常用样例源审校默认折叠
PASS 390 ControlNet_aux_常用样例技术范围默认折叠
PASS 390 ControlNet_aux_常用样例默认无执行计数/实现标识
PASS 390 ControlNet_aux_常用样例默认依据限制可见
PASS 390 ControlNet_aux_常用样例 说明未定稿
PASS 390 ControlNet_aux_常用样例 未验证实跑
PASS 390 ControlNet_aux_常用样例 未检查
PASS 390 ControlNet_aux_常用样例停用/时间戳空
PASS 390 ControlNet_aux_常用样例参数全保留
PASS 390 ControlNet_aux_常用样例默认无溢出
PASS 390 ControlNet_aux_常用样例旧图归还焦点
PASS 390 Qwen3-ASR-语音转文字默认中文用途
PASS 390 Qwen3-ASR-语音转文字源审校默认折叠
PASS 390 Qwen3-ASR-语音转文字技术范围默认折叠
PASS 390 Qwen3-ASR-语音转文字默认无执行计数/实现标识
PASS 390 Qwen3-ASR-语音转文字默认依据限制可见
PASS 390 Qwen3-ASR-语音转文字 说明未定稿
PASS 390 Qwen3-ASR-语音转文字 未验证实跑
PASS 390 Qwen3-ASR-语音转文字 未检查
PASS 390 Qwen3-ASR-语音转文字停用/时间戳空
PASS 390 Qwen3-ASR-语音转文字参数全保留
PASS 390 Qwen3-ASR-语音转文字默认无溢出
PASS 390 Qwen3-ASR-语音转文字旧图归还焦点
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认中文用途
PASS 390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠
PASS 390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见
PASS 390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿
PASS 390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑
PASS 390 Qwen3-ASR-Subtitle语音转字幕 未检查
PASS 390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空
PASS 390 Qwen3-ASR-Subtitle语音转字幕参数全保留
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无溢出
PASS 390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点
PASS 390 Minimax-H3提示词增强默认中文用途
PASS 390 Minimax-H3提示词增强源审校默认折叠
PASS 390 Minimax-H3提示词增强技术范围默认折叠
PASS 390 Minimax-H3提示词增强默认无执行计数/实现标识
PASS 390 Minimax-H3提示词增强默认依据限制可见
PASS 390 Minimax-H3提示词增强 说明未定稿
PASS 390 Minimax-H3提示词增强 未验证实跑
PASS 390 Minimax-H3提示词增强 未检查
PASS 390 Minimax-H3提示词增强停用/时间戳空
PASS 390 Minimax-H3提示词增强参数全保留
PASS 390 Minimax-H3提示词增强默认无溢出
PASS 390 Minimax-H3提示词增强旧图归还焦点
PASS 390 音频转MP3格式默认中文用途
PASS 390 音频转MP3格式源审校默认折叠
PASS 390 音频转MP3格式技术范围默认折叠
PASS 390 音频转MP3格式默认无执行计数/实现标识
PASS 390 音频转MP3格式默认依据限制可见
PASS 390 音频转MP3格式 说明未定稿
PASS 390 音频转MP3格式 未验证实跑
PASS 390 音频转MP3格式 未检查
PASS 390 音频转MP3格式停用/时间戳空
PASS 390 音频转MP3格式参数全保留
PASS 390 音频转MP3格式默认无溢出
PASS 390 音频转MP3格式旧图归还焦点
PASS 390 音频人声分离默认中文用途
PASS 390 音频人声分离源审校默认折叠
PASS 390 音频人声分离技术范围默认折叠
PASS 390 音频人声分离默认无执行计数/实现标识
PASS 390 音频人声分离默认依据限制可见
PASS 390 音频人声分离 说明未定稿
PASS 390 音频人声分离 未验证实跑
PASS 390 音频人声分离 未检查
PASS 390 音频人声分离停用/时间戳空
PASS 390 音频人声分离参数全保留
PASS 390 音频人声分离默认无溢出
PASS 390 音频人声分离旧图归还焦点
PASS 390 视频-音频分离默认中文用途
PASS 390 视频-音频分离源审校默认折叠
PASS 390 视频-音频分离技术范围默认折叠
PASS 390 视频-音频分离默认无执行计数/实现标识
PASS 390 视频-音频分离默认依据限制可见
PASS 390 视频-音频分离 说明未定稿
PASS 390 视频-音频分离 未验证实跑
PASS 390 视频-音频分离 未检查
PASS 390 视频-音频分离停用/时间戳空
PASS 390 视频-音频分离参数全保留
PASS 390 视频-音频分离默认无溢出
PASS 390 视频-音频分离旧图归还焦点
PASS 390 图像嵌入文字描述默认中文用途
PASS 390 图像嵌入文字描述源审校默认折叠
PASS 390 图像嵌入文字描述技术范围默认折叠
PASS 390 图像嵌入文字描述默认无执行计数/实现标识
PASS 390 图像嵌入文字描述默认依据限制可见
PASS 390 图像嵌入文字描述 说明未定稿
PASS 390 图像嵌入文字描述 未验证实跑
PASS 390 图像嵌入文字描述 未检查
PASS 390 图像嵌入文字描述停用/时间戳空
PASS 390 图像嵌入文字描述参数全保留
PASS 390 图像嵌入文字描述默认无溢出
PASS 390 图像嵌入文字描述旧图归还焦点
PASS 旧/空说明回退 旧工作流回退(隔离测试夹具)
PASS 旧/空说明回退 空说明回退(隔离测试夹具)
PASS 缺摘要自然中文回退
PASS 回退不暴露undefined
PASS 错绑定提示明确且不展示旧字段
PASS 回退不暴露undefined
PASS 摘要HTML仅纯文本不创建图像或请求
PASS 回退不暴露undefined
PASS 迟到BiRefNet图响应不覆盖旧latent摘要/13字段
PASS GET失败显示重试
PASS 读取失败隐藏旧摘要
PASS 重试恢复摘要
PASS 无脚本错误或禁止请求 []
PASS 全程本地GET无写/生成/目标/历史预览请求
All owned browser services stopped.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,703 @@
PASS 24图665保存位置
PASS 24图16源注释
PASS 1440 birefnet_图像移除背景默认中文用途
PASS 1440 birefnet_图像移除背景源审校默认折叠
PASS 1440 birefnet_图像移除背景技术范围默认折叠
PASS 1440 birefnet_图像移除背景默认无执行计数/实现标识
PASS 1440 birefnet_图像移除背景默认依据限制可见
PASS 1440 birefnet_图像移除背景 说明未定稿
PASS 1440 birefnet_图像移除背景 未验证实跑
PASS 1440 birefnet_图像移除背景 未检查
PASS 1440 birefnet_图像移除背景停用/时间戳空
PASS 1440 birefnet_图像移除背景参数全保留
PASS 1440 birefnet_图像移除背景默认无溢出
PASS 1440 birefnet_图像移除背景原用途/源路径展开保留
PASS 1440 birefnet_图像移除背景展开流程 0
PASS 1440 birefnet_图像移除背景展开流程 1
PASS 1440 birefnet_图像移除背景展开流程 2
PASS 1440 birefnet_图像移除背景展开流程 3
PASS 1440 birefnet_图像移除背景展开流程 4
PASS 1440 birefnet_图像移除背景展开流程 5
PASS 1440 birefnet_图像移除背景展开流程 6
PASS 1440 birefnet_图像移除背景展开流程 7
PASS 1440 birefnet_图像移除背景展开流程 8
PASS 1440 birefnet_图像移除背景展开流程 9
PASS 1440 birefnet_图像移除背景展开流程 10
PASS 1440 birefnet_图像移除背景展开流程 11
PASS 1440 birefnet_图像移除背景展开流程 12
PASS 1440 birefnet_图像移除背景展开流程 13
PASS 1440 birefnet_图像移除背景展开流程 14
PASS 1440 birefnet_图像移除背景展开流程 15
PASS 1440 birefnet_图像移除背景展开流程 16
PASS 1440 birefnet_图像移除背景展开流程 17
PASS 1440 birefnet_图像移除背景展开流程 18
PASS 1440 birefnet_图像移除背景展开流程 19
PASS 1440 birefnet_图像移除背景展开流程 20
PASS 1440 birefnet_图像移除背景展开流程 21
PASS 1440 birefnet_图像移除背景展开流程 22
PASS 1440 birefnet_图像移除背景展开流程 23
PASS 1440 birefnet_图像移除背景展开流程 24
PASS 1440 birefnet_图像移除背景展开流程 25
PASS 1440 birefnet_图像移除背景原件摘要可展开
PASS 1440 birefnet_图像移除背景版本 0
PASS 1440 birefnet_图像移除背景版本 1
PASS 1440 birefnet_图像移除背景版本 2
PASS 1440 birefnet_图像移除背景版本 3
PASS 1440 birefnet_图像移除背景版本 4
PASS 1440 23.bg_removal_name键盘展开
PASS 1440 23.bg_removal_name用途/单位/范围/来源条件
PASS 1440 23.bg_removal_name精确保留现值
PASS 1440 23.bg_removal_name指针默认折叠
PASS 1440 23.bg_removal_name精确源码/类型/指针
PASS 1440 23.bg_removal_name展开无溢出
PASS 1440 17.image键盘展开
PASS 1440 17.image用途/单位/范围/来源条件
PASS 1440 17.image精确保留现值
PASS 1440 17.image指针默认折叠
PASS 1440 17.image精确源码/类型/指针
PASS 1440 17.image展开无溢出
PASS 1440 17.upload键盘展开
PASS 1440 17.upload用途/单位/范围/来源条件
PASS 1440 17.upload精确保留现值
PASS 1440 17.upload指针默认折叠
PASS 1440 17.upload精确源码/类型/指针
PASS 1440 17.upload展开无溢出
PASS 1440注释21全文
PASS 1440注释21无溢出
PASS 1440Tab焦点保留
PASS 1440ShiftTab焦点保留
PASS 1440 birefnet_图像移除背景关闭归还焦点
PASS 1440 加载本地latent解码默认中文用途
PASS 1440 加载本地latent解码源审校默认折叠
PASS 1440 加载本地latent解码技术范围默认折叠
PASS 1440 加载本地latent解码默认无执行计数/实现标识
PASS 1440 加载本地latent解码默认依据限制可见
PASS 1440 加载本地latent解码 说明未定稿
PASS 1440 加载本地latent解码 未验证实跑
PASS 1440 加载本地latent解码 未检查
PASS 1440 加载本地latent解码停用/时间戳空
PASS 1440 加载本地latent解码参数全保留
PASS 1440 加载本地latent解码默认无溢出
PASS 1440 加载本地latent解码旧图归还焦点
PASS 1440 截取视频每一帧默认中文用途
PASS 1440 截取视频每一帧源审校默认折叠
PASS 1440 截取视频每一帧技术范围默认折叠
PASS 1440 截取视频每一帧默认无执行计数/实现标识
PASS 1440 截取视频每一帧默认依据限制可见
PASS 1440 截取视频每一帧 说明未定稿
PASS 1440 截取视频每一帧 未验证实跑
PASS 1440 截取视频每一帧 未检查
PASS 1440 截取视频每一帧停用/时间戳空
PASS 1440 截取视频每一帧参数全保留
PASS 1440 截取视频每一帧默认无溢出
PASS 1440 截取视频每一帧旧图归还焦点
PASS 1440 双图像或视频合并显示默认中文用途
PASS 1440 双图像或视频合并显示源审校默认折叠
PASS 1440 双图像或视频合并显示技术范围默认折叠
PASS 1440 双图像或视频合并显示默认无执行计数/实现标识
PASS 1440 双图像或视频合并显示默认依据限制可见
PASS 1440 双图像或视频合并显示 说明未定稿
PASS 1440 双图像或视频合并显示 未验证实跑
PASS 1440 双图像或视频合并显示 未检查
PASS 1440 双图像或视频合并显示停用/时间戳空
PASS 1440 双图像或视频合并显示参数全保留
PASS 1440 双图像或视频合并显示默认无溢出
PASS 1440 双图像或视频合并显示旧图归还焦点
PASS 1440 视频转gif动图图片默认中文用途
PASS 1440 视频转gif动图图片源审校默认折叠
PASS 1440 视频转gif动图图片技术范围默认折叠
PASS 1440 视频转gif动图图片默认无执行计数/实现标识
PASS 1440 视频转gif动图图片默认依据限制可见
PASS 1440 视频转gif动图图片 说明未定稿
PASS 1440 视频转gif动图图片 未验证实跑
PASS 1440 视频转gif动图图片 未检查
PASS 1440 视频转gif动图图片停用/时间戳空
PASS 1440 视频转gif动图图片参数全保留
PASS 1440 视频转gif动图图片默认无溢出
PASS 1440 视频转gif动图图片旧图归还焦点
PASS 1440 加载图片合成视频默认中文用途
PASS 1440 加载图片合成视频源审校默认折叠
PASS 1440 加载图片合成视频技术范围默认折叠
PASS 1440 加载图片合成视频默认无执行计数/实现标识
PASS 1440 加载图片合成视频默认依据限制可见
PASS 1440 加载图片合成视频 说明未定稿
PASS 1440 加载图片合成视频 未验证实跑
PASS 1440 加载图片合成视频 未检查
PASS 1440 加载图片合成视频停用/时间戳空
PASS 1440 加载图片合成视频参数全保留
PASS 1440 加载图片合成视频默认无溢出
PASS 1440 加载图片合成视频旧图归还焦点
PASS 1440 视频倒放默认中文用途
PASS 1440 视频倒放源审校默认折叠
PASS 1440 视频倒放技术范围默认折叠
PASS 1440 视频倒放默认无执行计数/实现标识
PASS 1440 视频倒放默认依据限制可见
PASS 1440 视频倒放 说明未定稿
PASS 1440 视频倒放 未验证实跑
PASS 1440 视频倒放 未检查
PASS 1440 视频倒放停用/时间戳空
PASS 1440 视频倒放参数全保留
PASS 1440 视频倒放默认无溢出
PASS 1440 视频倒放旧图归还焦点
PASS 1440 NLF_视频人物动作骨架获取默认中文用途
PASS 1440 NLF_视频人物动作骨架获取源审校默认折叠
PASS 1440 NLF_视频人物动作骨架获取技术范围默认折叠
PASS 1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识
PASS 1440 NLF_视频人物动作骨架获取默认依据限制可见
PASS 1440 NLF_视频人物动作骨架获取 说明未定稿
PASS 1440 NLF_视频人物动作骨架获取 未验证实跑
PASS 1440 NLF_视频人物动作骨架获取 未检查
PASS 1440 NLF_视频人物动作骨架获取停用/时间戳空
PASS 1440 NLF_视频人物动作骨架获取参数全保留
PASS 1440 NLF_视频人物动作骨架获取默认无溢出
PASS 1440 NLF_视频人物动作骨架获取旧图归还焦点
PASS 1440 openpose-video-姿态检测默认中文用途
PASS 1440 openpose-video-姿态检测源审校默认折叠
PASS 1440 openpose-video-姿态检测技术范围默认折叠
PASS 1440 openpose-video-姿态检测默认无执行计数/实现标识
PASS 1440 openpose-video-姿态检测默认依据限制可见
PASS 1440 openpose-video-姿态检测 说明未定稿
PASS 1440 openpose-video-姿态检测 未验证实跑
PASS 1440 openpose-video-姿态检测 未检查
PASS 1440 openpose-video-姿态检测停用/时间戳空
PASS 1440 openpose-video-姿态检测参数全保留
PASS 1440 openpose-video-姿态检测默认无溢出
PASS 1440 openpose-video-姿态检测旧图归还焦点
PASS 1440 sdpose_视频人物姿势骨架提取默认中文用途
PASS 1440 sdpose_视频人物姿势骨架提取源审校默认折叠
PASS 1440 sdpose_视频人物姿势骨架提取技术范围默认折叠
PASS 1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识
PASS 1440 sdpose_视频人物姿势骨架提取默认依据限制可见
PASS 1440 sdpose_视频人物姿势骨架提取 说明未定稿
PASS 1440 sdpose_视频人物姿势骨架提取 未验证实跑
PASS 1440 sdpose_视频人物姿势骨架提取 未检查
PASS 1440 sdpose_视频人物姿势骨架提取停用/时间戳空
PASS 1440 sdpose_视频人物姿势骨架提取参数全保留
PASS 1440 sdpose_视频人物姿势骨架提取默认无溢出
PASS 1440 sdpose_视频人物姿势骨架提取旧图归还焦点
PASS 1440 gemma4_提示词反推(图像视频音频)默认中文用途
PASS 1440 gemma4_提示词反推(图像视频音频)源审校默认折叠
PASS 1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠
PASS 1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识
PASS 1440 gemma4_提示词反推(图像视频音频)默认依据限制可见
PASS 1440 gemma4_提示词反推(图像视频音频) 说明未定稿
PASS 1440 gemma4_提示词反推(图像视频音频) 未验证实跑
PASS 1440 gemma4_提示词反推(图像视频音频) 未检查
PASS 1440 gemma4_提示词反推(图像视频音频)停用/时间戳空
PASS 1440 gemma4_提示词反推(图像视频音频)参数全保留
PASS 1440 gemma4_提示词反推(图像视频音频)默认无溢出
PASS 1440 gemma4_提示词反推(图像视频音频)旧图归还焦点
PASS 1440 图像合并成四宫格默认中文用途
PASS 1440 图像合并成四宫格源审校默认折叠
PASS 1440 图像合并成四宫格技术范围默认折叠
PASS 1440 图像合并成四宫格默认无执行计数/实现标识
PASS 1440 图像合并成四宫格默认依据限制可见
PASS 1440 图像合并成四宫格 说明未定稿
PASS 1440 图像合并成四宫格 未验证实跑
PASS 1440 图像合并成四宫格 未检查
PASS 1440 图像合并成四宫格停用/时间戳空
PASS 1440 图像合并成四宫格参数全保留
PASS 1440 图像合并成四宫格默认无溢出
PASS 1440 图像合并成四宫格旧图归还焦点
PASS 1440 图像分割-多宫格分割默认中文用途
PASS 1440 图像分割-多宫格分割源审校默认折叠
PASS 1440 图像分割-多宫格分割技术范围默认折叠
PASS 1440 图像分割-多宫格分割默认无执行计数/实现标识
PASS 1440 图像分割-多宫格分割默认依据限制可见
PASS 1440 图像分割-多宫格分割 说明未定稿
PASS 1440 图像分割-多宫格分割 未验证实跑
PASS 1440 图像分割-多宫格分割 未检查
PASS 1440 图像分割-多宫格分割停用/时间戳空
PASS 1440 图像分割-多宫格分割参数全保留
PASS 1440 图像分割-多宫格分割默认无溢出
PASS 1440 图像分割-多宫格分割旧图归还焦点
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认中文用途
PASS 1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠
PASS 1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见
PASS 1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿
PASS 1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑
PASS 1440 Qwen_image2.1_图像编辑_背景移除 未检查
PASS 1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空
PASS 1440 Qwen_image2.1_图像编辑_背景移除参数全保留
PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无溢出
PASS 1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途
PASS 1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠
PASS 1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见
PASS 1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿
PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑
PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未检查
PASS 1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空
PASS 1440 Qwen_image2.1_图像编辑_提示词增强参数全保留
PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出
PASS 1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点
PASS 1440 Qwen_image2.1_文生图_提示词增强默认中文用途
PASS 1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠
PASS 1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠
PASS 1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识
PASS 1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见
PASS 1440 Qwen_image2.1_文生图_提示词增强 说明未定稿
PASS 1440 Qwen_image2.1_文生图_提示词增强 未验证实跑
PASS 1440 Qwen_image2.1_文生图_提示词增强 未检查
PASS 1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空
PASS 1440 Qwen_image2.1_文生图_提示词增强参数全保留
PASS 1440 Qwen_image2.1_文生图_提示词增强默认无溢出
PASS 1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点
PASS 1440 ControlNet_aux_常用样例默认中文用途
PASS 1440 ControlNet_aux_常用样例源审校默认折叠
PASS 1440 ControlNet_aux_常用样例技术范围默认折叠
PASS 1440 ControlNet_aux_常用样例默认无执行计数/实现标识
PASS 1440 ControlNet_aux_常用样例默认依据限制可见
PASS 1440 ControlNet_aux_常用样例 说明未定稿
PASS 1440 ControlNet_aux_常用样例 未验证实跑
PASS 1440 ControlNet_aux_常用样例 未检查
PASS 1440 ControlNet_aux_常用样例停用/时间戳空
PASS 1440 ControlNet_aux_常用样例参数全保留
PASS 1440 ControlNet_aux_常用样例默认无溢出
PASS 1440 ControlNet_aux_常用样例旧图归还焦点
PASS 1440 Qwen3-ASR-语音转文字默认中文用途
PASS 1440 Qwen3-ASR-语音转文字源审校默认折叠
PASS 1440 Qwen3-ASR-语音转文字技术范围默认折叠
PASS 1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识
PASS 1440 Qwen3-ASR-语音转文字默认依据限制可见
PASS 1440 Qwen3-ASR-语音转文字 说明未定稿
PASS 1440 Qwen3-ASR-语音转文字 未验证实跑
PASS 1440 Qwen3-ASR-语音转文字 未检查
PASS 1440 Qwen3-ASR-语音转文字停用/时间戳空
PASS 1440 Qwen3-ASR-语音转文字参数全保留
PASS 1440 Qwen3-ASR-语音转文字默认无溢出
PASS 1440 Qwen3-ASR-语音转文字旧图归还焦点
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途
PASS 1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠
PASS 1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见
PASS 1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿
PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑
PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未检查
PASS 1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空
PASS 1440 Qwen3-ASR-Subtitle语音转字幕参数全保留
PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出
PASS 1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点
PASS 1440 Minimax-H3提示词增强默认中文用途
PASS 1440 Minimax-H3提示词增强源审校默认折叠
PASS 1440 Minimax-H3提示词增强技术范围默认折叠
PASS 1440 Minimax-H3提示词增强默认无执行计数/实现标识
PASS 1440 Minimax-H3提示词增强默认依据限制可见
PASS 1440 Minimax-H3提示词增强 说明未定稿
PASS 1440 Minimax-H3提示词增强 未验证实跑
PASS 1440 Minimax-H3提示词增强 未检查
PASS 1440 Minimax-H3提示词增强停用/时间戳空
PASS 1440 Minimax-H3提示词增强参数全保留
PASS 1440 Minimax-H3提示词增强默认无溢出
PASS 1440 Minimax-H3提示词增强旧图归还焦点
PASS 1440 音频转MP3格式默认中文用途
PASS 1440 音频转MP3格式源审校默认折叠
PASS 1440 音频转MP3格式技术范围默认折叠
PASS 1440 音频转MP3格式默认无执行计数/实现标识
PASS 1440 音频转MP3格式默认依据限制可见
PASS 1440 音频转MP3格式 说明未定稿
PASS 1440 音频转MP3格式 未验证实跑
PASS 1440 音频转MP3格式 未检查
PASS 1440 音频转MP3格式停用/时间戳空
PASS 1440 音频转MP3格式参数全保留
PASS 1440 音频转MP3格式默认无溢出
PASS 1440 音频转MP3格式旧图归还焦点
PASS 1440 音频人声分离默认中文用途
PASS 1440 音频人声分离源审校默认折叠
PASS 1440 音频人声分离技术范围默认折叠
PASS 1440 音频人声分离默认无执行计数/实现标识
PASS 1440 音频人声分离默认依据限制可见
PASS 1440 音频人声分离 说明未定稿
PASS 1440 音频人声分离 未验证实跑
PASS 1440 音频人声分离 未检查
PASS 1440 音频人声分离停用/时间戳空
PASS 1440 音频人声分离参数全保留
PASS 1440 音频人声分离默认无溢出
PASS 1440 音频人声分离旧图归还焦点
PASS 1440 视频-音频分离默认中文用途
PASS 1440 视频-音频分离源审校默认折叠
PASS 1440 视频-音频分离技术范围默认折叠
PASS 1440 视频-音频分离默认无执行计数/实现标识
PASS 1440 视频-音频分离默认依据限制可见
PASS 1440 视频-音频分离 说明未定稿
PASS 1440 视频-音频分离 未验证实跑
PASS 1440 视频-音频分离 未检查
PASS 1440 视频-音频分离停用/时间戳空
PASS 1440 视频-音频分离参数全保留
PASS 1440 视频-音频分离默认无溢出
PASS 1440 视频-音频分离旧图归还焦点
PASS 1440 图像嵌入文字描述默认中文用途
PASS 1440 图像嵌入文字描述源审校默认折叠
PASS 1440 图像嵌入文字描述技术范围默认折叠
PASS 1440 图像嵌入文字描述默认无执行计数/实现标识
PASS 1440 图像嵌入文字描述默认依据限制可见
PASS 1440 图像嵌入文字描述 说明未定稿
PASS 1440 图像嵌入文字描述 未验证实跑
PASS 1440 图像嵌入文字描述 未检查
PASS 1440 图像嵌入文字描述停用/时间戳空
PASS 1440 图像嵌入文字描述参数全保留
PASS 1440 图像嵌入文字描述默认无溢出
PASS 1440 图像嵌入文字描述旧图归还焦点
PASS 390 birefnet_图像移除背景默认中文用途
PASS 390 birefnet_图像移除背景源审校默认折叠
PASS 390 birefnet_图像移除背景技术范围默认折叠
PASS 390 birefnet_图像移除背景默认无执行计数/实现标识
PASS 390 birefnet_图像移除背景默认依据限制可见
PASS 390 birefnet_图像移除背景 说明未定稿
PASS 390 birefnet_图像移除背景 未验证实跑
PASS 390 birefnet_图像移除背景 未检查
PASS 390 birefnet_图像移除背景停用/时间戳空
PASS 390 birefnet_图像移除背景参数全保留
PASS 390 birefnet_图像移除背景默认无溢出
PASS 390 birefnet_图像移除背景原用途/源路径展开保留
PASS 390 birefnet_图像移除背景展开流程 0
PASS 390 birefnet_图像移除背景展开流程 1
PASS 390 birefnet_图像移除背景展开流程 2
PASS 390 birefnet_图像移除背景展开流程 3
PASS 390 birefnet_图像移除背景展开流程 4
PASS 390 birefnet_图像移除背景展开流程 5
PASS 390 birefnet_图像移除背景展开流程 6
PASS 390 birefnet_图像移除背景展开流程 7
PASS 390 birefnet_图像移除背景展开流程 8
PASS 390 birefnet_图像移除背景展开流程 9
PASS 390 birefnet_图像移除背景展开流程 10
PASS 390 birefnet_图像移除背景展开流程 11
PASS 390 birefnet_图像移除背景展开流程 12
PASS 390 birefnet_图像移除背景展开流程 13
PASS 390 birefnet_图像移除背景展开流程 14
PASS 390 birefnet_图像移除背景展开流程 15
PASS 390 birefnet_图像移除背景展开流程 16
PASS 390 birefnet_图像移除背景展开流程 17
PASS 390 birefnet_图像移除背景展开流程 18
PASS 390 birefnet_图像移除背景展开流程 19
PASS 390 birefnet_图像移除背景展开流程 20
PASS 390 birefnet_图像移除背景展开流程 21
PASS 390 birefnet_图像移除背景展开流程 22
PASS 390 birefnet_图像移除背景展开流程 23
PASS 390 birefnet_图像移除背景展开流程 24
PASS 390 birefnet_图像移除背景展开流程 25
PASS 390 birefnet_图像移除背景原件摘要可展开
PASS 390 birefnet_图像移除背景版本 0
PASS 390 birefnet_图像移除背景版本 1
PASS 390 birefnet_图像移除背景版本 2
PASS 390 birefnet_图像移除背景版本 3
PASS 390 birefnet_图像移除背景版本 4
PASS 390 23.bg_removal_name键盘展开
PASS 390 23.bg_removal_name用途/单位/范围/来源条件
PASS 390 23.bg_removal_name精确保留现值
PASS 390 23.bg_removal_name指针默认折叠
PASS 390 23.bg_removal_name精确源码/类型/指针
PASS 390 23.bg_removal_name展开无溢出
PASS 390 17.image键盘展开
PASS 390 17.image用途/单位/范围/来源条件
PASS 390 17.image精确保留现值
PASS 390 17.image指针默认折叠
PASS 390 17.image精确源码/类型/指针
PASS 390 17.image展开无溢出
PASS 390 17.upload键盘展开
PASS 390 17.upload用途/单位/范围/来源条件
PASS 390 17.upload精确保留现值
PASS 390 17.upload指针默认折叠
PASS 390 17.upload精确源码/类型/指针
PASS 390 17.upload展开无溢出
PASS 390注释21全文
PASS 390注释21无溢出
PASS 390Tab焦点保留
PASS 390ShiftTab焦点保留
PASS 390 birefnet_图像移除背景关闭归还焦点
PASS 390 加载本地latent解码默认中文用途
PASS 390 加载本地latent解码源审校默认折叠
PASS 390 加载本地latent解码技术范围默认折叠
PASS 390 加载本地latent解码默认无执行计数/实现标识
PASS 390 加载本地latent解码默认依据限制可见
PASS 390 加载本地latent解码 说明未定稿
PASS 390 加载本地latent解码 未验证实跑
PASS 390 加载本地latent解码 未检查
PASS 390 加载本地latent解码停用/时间戳空
PASS 390 加载本地latent解码参数全保留
PASS 390 加载本地latent解码默认无溢出
PASS 390 加载本地latent解码旧图归还焦点
PASS 390 截取视频每一帧默认中文用途
PASS 390 截取视频每一帧源审校默认折叠
PASS 390 截取视频每一帧技术范围默认折叠
PASS 390 截取视频每一帧默认无执行计数/实现标识
PASS 390 截取视频每一帧默认依据限制可见
PASS 390 截取视频每一帧 说明未定稿
PASS 390 截取视频每一帧 未验证实跑
PASS 390 截取视频每一帧 未检查
PASS 390 截取视频每一帧停用/时间戳空
PASS 390 截取视频每一帧参数全保留
PASS 390 截取视频每一帧默认无溢出
PASS 390 截取视频每一帧旧图归还焦点
PASS 390 双图像或视频合并显示默认中文用途
PASS 390 双图像或视频合并显示源审校默认折叠
PASS 390 双图像或视频合并显示技术范围默认折叠
PASS 390 双图像或视频合并显示默认无执行计数/实现标识
PASS 390 双图像或视频合并显示默认依据限制可见
PASS 390 双图像或视频合并显示 说明未定稿
PASS 390 双图像或视频合并显示 未验证实跑
PASS 390 双图像或视频合并显示 未检查
PASS 390 双图像或视频合并显示停用/时间戳空
PASS 390 双图像或视频合并显示参数全保留
PASS 390 双图像或视频合并显示默认无溢出
PASS 390 双图像或视频合并显示旧图归还焦点
PASS 390 视频转gif动图图片默认中文用途
PASS 390 视频转gif动图图片源审校默认折叠
PASS 390 视频转gif动图图片技术范围默认折叠
PASS 390 视频转gif动图图片默认无执行计数/实现标识
PASS 390 视频转gif动图图片默认依据限制可见
PASS 390 视频转gif动图图片 说明未定稿
PASS 390 视频转gif动图图片 未验证实跑
PASS 390 视频转gif动图图片 未检查
PASS 390 视频转gif动图图片停用/时间戳空
PASS 390 视频转gif动图图片参数全保留
PASS 390 视频转gif动图图片默认无溢出
PASS 390 视频转gif动图图片旧图归还焦点
PASS 390 加载图片合成视频默认中文用途
PASS 390 加载图片合成视频源审校默认折叠
PASS 390 加载图片合成视频技术范围默认折叠
PASS 390 加载图片合成视频默认无执行计数/实现标识
PASS 390 加载图片合成视频默认依据限制可见
PASS 390 加载图片合成视频 说明未定稿
PASS 390 加载图片合成视频 未验证实跑
PASS 390 加载图片合成视频 未检查
PASS 390 加载图片合成视频停用/时间戳空
PASS 390 加载图片合成视频参数全保留
PASS 390 加载图片合成视频默认无溢出
PASS 390 加载图片合成视频旧图归还焦点
PASS 390 视频倒放默认中文用途
PASS 390 视频倒放源审校默认折叠
PASS 390 视频倒放技术范围默认折叠
PASS 390 视频倒放默认无执行计数/实现标识
PASS 390 视频倒放默认依据限制可见
PASS 390 视频倒放 说明未定稿
PASS 390 视频倒放 未验证实跑
PASS 390 视频倒放 未检查
PASS 390 视频倒放停用/时间戳空
PASS 390 视频倒放参数全保留
PASS 390 视频倒放默认无溢出
PASS 390 视频倒放旧图归还焦点
PASS 390 NLF_视频人物动作骨架获取默认中文用途
PASS 390 NLF_视频人物动作骨架获取源审校默认折叠
PASS 390 NLF_视频人物动作骨架获取技术范围默认折叠
PASS 390 NLF_视频人物动作骨架获取默认无执行计数/实现标识
PASS 390 NLF_视频人物动作骨架获取默认依据限制可见
PASS 390 NLF_视频人物动作骨架获取 说明未定稿
PASS 390 NLF_视频人物动作骨架获取 未验证实跑
PASS 390 NLF_视频人物动作骨架获取 未检查
PASS 390 NLF_视频人物动作骨架获取停用/时间戳空
PASS 390 NLF_视频人物动作骨架获取参数全保留
PASS 390 NLF_视频人物动作骨架获取默认无溢出
PASS 390 NLF_视频人物动作骨架获取旧图归还焦点
PASS 390 openpose-video-姿态检测默认中文用途
PASS 390 openpose-video-姿态检测源审校默认折叠
PASS 390 openpose-video-姿态检测技术范围默认折叠
PASS 390 openpose-video-姿态检测默认无执行计数/实现标识
PASS 390 openpose-video-姿态检测默认依据限制可见
PASS 390 openpose-video-姿态检测 说明未定稿
PASS 390 openpose-video-姿态检测 未验证实跑
PASS 390 openpose-video-姿态检测 未检查
PASS 390 openpose-video-姿态检测停用/时间戳空
PASS 390 openpose-video-姿态检测参数全保留
PASS 390 openpose-video-姿态检测默认无溢出
PASS 390 openpose-video-姿态检测旧图归还焦点
PASS 390 sdpose_视频人物姿势骨架提取默认中文用途
PASS 390 sdpose_视频人物姿势骨架提取源审校默认折叠
PASS 390 sdpose_视频人物姿势骨架提取技术范围默认折叠
PASS 390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识
PASS 390 sdpose_视频人物姿势骨架提取默认依据限制可见
PASS 390 sdpose_视频人物姿势骨架提取 说明未定稿
PASS 390 sdpose_视频人物姿势骨架提取 未验证实跑
PASS 390 sdpose_视频人物姿势骨架提取 未检查
PASS 390 sdpose_视频人物姿势骨架提取停用/时间戳空
PASS 390 sdpose_视频人物姿势骨架提取参数全保留
PASS 390 sdpose_视频人物姿势骨架提取默认无溢出
PASS 390 sdpose_视频人物姿势骨架提取旧图归还焦点
PASS 390 gemma4_提示词反推(图像视频音频)默认中文用途
PASS 390 gemma4_提示词反推(图像视频音频)源审校默认折叠
PASS 390 gemma4_提示词反推(图像视频音频)技术范围默认折叠
PASS 390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识
PASS 390 gemma4_提示词反推(图像视频音频)默认依据限制可见
PASS 390 gemma4_提示词反推(图像视频音频) 说明未定稿
PASS 390 gemma4_提示词反推(图像视频音频) 未验证实跑
PASS 390 gemma4_提示词反推(图像视频音频) 未检查
PASS 390 gemma4_提示词反推(图像视频音频)停用/时间戳空
PASS 390 gemma4_提示词反推(图像视频音频)参数全保留
PASS 390 gemma4_提示词反推(图像视频音频)默认无溢出
PASS 390 gemma4_提示词反推(图像视频音频)旧图归还焦点
PASS 390 图像合并成四宫格默认中文用途
PASS 390 图像合并成四宫格源审校默认折叠
PASS 390 图像合并成四宫格技术范围默认折叠
PASS 390 图像合并成四宫格默认无执行计数/实现标识
PASS 390 图像合并成四宫格默认依据限制可见
PASS 390 图像合并成四宫格 说明未定稿
PASS 390 图像合并成四宫格 未验证实跑
PASS 390 图像合并成四宫格 未检查
PASS 390 图像合并成四宫格停用/时间戳空
PASS 390 图像合并成四宫格参数全保留
PASS 390 图像合并成四宫格默认无溢出
PASS 390 图像合并成四宫格旧图归还焦点
PASS 390 图像分割-多宫格分割默认中文用途
PASS 390 图像分割-多宫格分割源审校默认折叠
PASS 390 图像分割-多宫格分割技术范围默认折叠
PASS 390 图像分割-多宫格分割默认无执行计数/实现标识
PASS 390 图像分割-多宫格分割默认依据限制可见
PASS 390 图像分割-多宫格分割 说明未定稿
PASS 390 图像分割-多宫格分割 未验证实跑
PASS 390 图像分割-多宫格分割 未检查
PASS 390 图像分割-多宫格分割停用/时间戳空
PASS 390 图像分割-多宫格分割参数全保留
PASS 390 图像分割-多宫格分割默认无溢出
PASS 390 图像分割-多宫格分割旧图归还焦点
PASS 390 Qwen_image2.1_图像编辑_背景移除默认中文用途
PASS 390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠
PASS 390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠
PASS 390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识
PASS 390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见
PASS 390 Qwen_image2.1_图像编辑_背景移除 说明未定稿
PASS 390 Qwen_image2.1_图像编辑_背景移除 未验证实跑
PASS 390 Qwen_image2.1_图像编辑_背景移除 未检查
PASS 390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空
PASS 390 Qwen_image2.1_图像编辑_背景移除参数全保留
PASS 390 Qwen_image2.1_图像编辑_背景移除默认无溢出
PASS 390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认中文用途
PASS 390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠
PASS 390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见
PASS 390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿
PASS 390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑
PASS 390 Qwen_image2.1_图像编辑_提示词增强 未检查
PASS 390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空
PASS 390 Qwen_image2.1_图像编辑_提示词增强参数全保留
PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无溢出
PASS 390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点
PASS 390 Qwen_image2.1_文生图_提示词增强默认中文用途
PASS 390 Qwen_image2.1_文生图_提示词增强源审校默认折叠
PASS 390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠
PASS 390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识
PASS 390 Qwen_image2.1_文生图_提示词增强默认依据限制可见
PASS 390 Qwen_image2.1_文生图_提示词增强 说明未定稿
PASS 390 Qwen_image2.1_文生图_提示词增强 未验证实跑
PASS 390 Qwen_image2.1_文生图_提示词增强 未检查
PASS 390 Qwen_image2.1_文生图_提示词增强停用/时间戳空
PASS 390 Qwen_image2.1_文生图_提示词增强参数全保留
PASS 390 Qwen_image2.1_文生图_提示词增强默认无溢出
PASS 390 Qwen_image2.1_文生图_提示词增强旧图归还焦点
PASS 390 ControlNet_aux_常用样例默认中文用途
PASS 390 ControlNet_aux_常用样例源审校默认折叠
PASS 390 ControlNet_aux_常用样例技术范围默认折叠
PASS 390 ControlNet_aux_常用样例默认无执行计数/实现标识
PASS 390 ControlNet_aux_常用样例默认依据限制可见
PASS 390 ControlNet_aux_常用样例 说明未定稿
PASS 390 ControlNet_aux_常用样例 未验证实跑
PASS 390 ControlNet_aux_常用样例 未检查
PASS 390 ControlNet_aux_常用样例停用/时间戳空
PASS 390 ControlNet_aux_常用样例参数全保留
PASS 390 ControlNet_aux_常用样例默认无溢出
PASS 390 ControlNet_aux_常用样例旧图归还焦点
PASS 390 Qwen3-ASR-语音转文字默认中文用途
PASS 390 Qwen3-ASR-语音转文字源审校默认折叠
PASS 390 Qwen3-ASR-语音转文字技术范围默认折叠
PASS 390 Qwen3-ASR-语音转文字默认无执行计数/实现标识
PASS 390 Qwen3-ASR-语音转文字默认依据限制可见
PASS 390 Qwen3-ASR-语音转文字 说明未定稿
PASS 390 Qwen3-ASR-语音转文字 未验证实跑
PASS 390 Qwen3-ASR-语音转文字 未检查
PASS 390 Qwen3-ASR-语音转文字停用/时间戳空
PASS 390 Qwen3-ASR-语音转文字参数全保留
PASS 390 Qwen3-ASR-语音转文字默认无溢出
PASS 390 Qwen3-ASR-语音转文字旧图归还焦点
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认中文用途
PASS 390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠
PASS 390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见
PASS 390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿
PASS 390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑
PASS 390 Qwen3-ASR-Subtitle语音转字幕 未检查
PASS 390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空
PASS 390 Qwen3-ASR-Subtitle语音转字幕参数全保留
PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无溢出
PASS 390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点
PASS 390 Minimax-H3提示词增强默认中文用途
PASS 390 Minimax-H3提示词增强源审校默认折叠
PASS 390 Minimax-H3提示词增强技术范围默认折叠
PASS 390 Minimax-H3提示词增强默认无执行计数/实现标识
PASS 390 Minimax-H3提示词增强默认依据限制可见
PASS 390 Minimax-H3提示词增强 说明未定稿
PASS 390 Minimax-H3提示词增强 未验证实跑
PASS 390 Minimax-H3提示词增强 未检查
PASS 390 Minimax-H3提示词增强停用/时间戳空
PASS 390 Minimax-H3提示词增强参数全保留
PASS 390 Minimax-H3提示词增强默认无溢出
PASS 390 Minimax-H3提示词增强旧图归还焦点
PASS 390 音频转MP3格式默认中文用途
PASS 390 音频转MP3格式源审校默认折叠
PASS 390 音频转MP3格式技术范围默认折叠
PASS 390 音频转MP3格式默认无执行计数/实现标识
PASS 390 音频转MP3格式默认依据限制可见
PASS 390 音频转MP3格式 说明未定稿
PASS 390 音频转MP3格式 未验证实跑
PASS 390 音频转MP3格式 未检查
PASS 390 音频转MP3格式停用/时间戳空
PASS 390 音频转MP3格式参数全保留
PASS 390 音频转MP3格式默认无溢出
PASS 390 音频转MP3格式旧图归还焦点
PASS 390 音频人声分离默认中文用途
PASS 390 音频人声分离源审校默认折叠
PASS 390 音频人声分离技术范围默认折叠
PASS 390 音频人声分离默认无执行计数/实现标识
PASS 390 音频人声分离默认依据限制可见
PASS 390 音频人声分离 说明未定稿
PASS 390 音频人声分离 未验证实跑
PASS 390 音频人声分离 未检查
PASS 390 音频人声分离停用/时间戳空
PASS 390 音频人声分离参数全保留
PASS 390 音频人声分离默认无溢出
PASS 390 音频人声分离旧图归还焦点
PASS 390 视频-音频分离默认中文用途
PASS 390 视频-音频分离源审校默认折叠
PASS 390 视频-音频分离技术范围默认折叠
PASS 390 视频-音频分离默认无执行计数/实现标识
PASS 390 视频-音频分离默认依据限制可见
PASS 390 视频-音频分离 说明未定稿
PASS 390 视频-音频分离 未验证实跑
PASS 390 视频-音频分离 未检查
PASS 390 视频-音频分离停用/时间戳空
PASS 390 视频-音频分离参数全保留
PASS 390 视频-音频分离默认无溢出
PASS 390 视频-音频分离旧图归还焦点
PASS 390 图像嵌入文字描述默认中文用途
PASS 390 图像嵌入文字描述源审校默认折叠
PASS 390 图像嵌入文字描述技术范围默认折叠
PASS 390 图像嵌入文字描述默认无执行计数/实现标识
PASS 390 图像嵌入文字描述默认依据限制可见
PASS 390 图像嵌入文字描述 说明未定稿
PASS 390 图像嵌入文字描述 未验证实跑
PASS 390 图像嵌入文字描述 未检查
PASS 390 图像嵌入文字描述停用/时间戳空
PASS 390 图像嵌入文字描述参数全保留
PASS 390 图像嵌入文字描述默认无溢出
PASS 390 图像嵌入文字描述旧图归还焦点
PASS 旧/空说明回退 旧工作流回退(隔离测试夹具)
PASS 旧/空说明回退 空说明回退(隔离测试夹具)
PASS 缺摘要自然中文回退
PASS 回退不暴露undefined
PASS 错绑定提示明确且不展示旧字段
PASS 回退不暴露undefined
PASS 摘要HTML仅纯文本不创建图像或请求
PASS 回退不暴露undefined
PASS 迟到BiRefNet图响应不覆盖旧latent摘要/13字段
PASS GET失败显示重试
PASS 读取失败隐藏旧摘要
PASS 重试恢复摘要
PASS 无脚本错误或禁止请求 []
PASS 全程本地GET无写/生成/目标/历史预览请求
All owned browser services stopped.
@@ -0,0 +1,4 @@
Building source distribution...
Building wheel from source distribution...
Successfully built calliope-backend/dist/calliope-1.5.8.tar.gz
Successfully built calliope-backend/dist/calliope-1.5.8-py3-none-any.whl
@@ -0,0 +1,50 @@
"""Bind reviewed editorial data to exact static source; never execute upstream code."""
from __future__ import annotations
import hashlib
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
PATHS = [
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/"
"birefnet_图像移除背景.json"
]
def canonical(value):
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
def pointer(obj, path):
for part in path.strip("/").split("/"):
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
return obj
def build(index=0):
block = json.loads((OUT / "editorial.json").read_bytes())
raw = (REPO / PATHS[index]).read_bytes()
graph = json.loads(raw)
assert block["source_path"] == PATHS[index]
# Editorial meanings only apply to this original, including modes/UE/endpoints.
expected = json.loads((OUT / "original-binding.json").read_bytes())
assert hashlib.sha256(raw).hexdigest() == expected["raw_sha256"]
for source in block["sources"]:
data = (OUT / source["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == source["sha256"]
assert len(source["commit"]) == 40 and source["commit"] in source["url"]
assert 1 <= source["lines"][0] <= source["lines"][1] <= len(data.decode().splitlines())
for field in block["fields"]:
field["value"] = pointer(graph, field["pointer"])
field["json_type"] = type(field["value"]).__name__
for note in block["comments"]:
note["text"] = pointer(graph, note["pointer"])
block.update(
source_sha1=hashlib.sha1(raw).hexdigest(),
source_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
)
return block
@@ -0,0 +1,518 @@
{
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"source_sha1": "9d99de736806f8eeffed114cc1ba075c16276b69",
"source_sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036",
"canonical_sha256": "d2424149db6ebbd2d49a9020457eb6349ac96d97f46de9dbf4ecc021692e6ea7",
"notice": "固定版本仅作参考;背景移除实现/遮罩极性、模型安装、UE恢复与目标环境未知,未实跑,转换保持关闭。",
"user_overview": "这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"versions": [
"源声明frontendVersion1.43.17,官方v1.43.17→f754141537fecaae53d635d94615f588b0e39f95,仅静态参考;UE全节点7.8,空绑定表不证明无钩子,真实恢复/回调次序未知。",
"只有LoadImage17明确cnr_id=comfy-core/ver0.19.3;官方v0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66。额外enableTabs/tabWidth/tabXOffset/hasSecondTab/secondTabText/secondTabOffset/secondTabWidth原文保留,不据cnr就断言未受UE影响。",
"其它六运行实体22/23/24/25/18/20均缺提供方和版本;InvertMask/JoinImageWithAlpha/PreviewImage/MaskPreview在固定core0.19.3确有定义,但本图这些实体只能作明确固定参考假设,不能继承LoadImage身份或当目标安装事实。",
"LoadBackgroundRemovalModel和RemoveBackground在该完整core树nodes.py及comfy_extras的有界静态检索未发现定义/注册;不扩查其它历史或最新版,默认/动态列表/推理算法/预处理/范围/输出极性未知。",
"许可分别保留固定core GPL-3.0与frontend GPL-3.0原文;未知背景节点提供方和模型权重许可另属未知。HuggingFace URL仅纯文本,不访问、下载或执行。"
],
"counts": {
"saved_fields": 3,
"scalar_saved_positions": 3,
"history_objects": 0,
"source_nodes": 8,
"physical_edges": 7,
"source_notes": 1,
"linked_saved_fields": 0,
"frontend_only": 1,
"final_scalars": 0,
"final_prompt_constructed": false
},
"fields": [
{
"field": "bg_removal_name",
"label": "背景移除模型引用",
"type": "源COMBO;定义未知",
"schema_default": "未知:core0.19.3有界树未找到该节点定义",
"unit": "模型文件引用",
"limits": "动态成员、默认/范围/加载条件未知,文件存在/架构/内存/设备/效果未知",
"effect": "保存birefnet.safetensors,仅为模型引用。23.bg_model按源槽0送22.bg_removal_model;两节点均缺提供方/版本,不能由名称或模型URL套用别版实现。本轮不加载权重或发网络下载。",
"evidence": [
3,
2
],
"role": "unconfirmed_model_reference",
"node_id": "23",
"definition_node_id": "23",
"class_type": "LoadBackgroundRemovalModel",
"scope": "root",
"pointer": "/nodes/3/widgets_values/0",
"value": "birefnet.safetensors",
"json_type": "str",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
},
{
"field": "image",
"label": "输入图片引用",
"type": "COMBO",
"schema_default": "运行时input目录图片文件排序列表,无固定schema默认",
"unit": "图片文件引用",
"limits": "由目标input目录及image内容类型过滤决定;实际可选值、尺寸/格式/文件存在未知",
"effect": "保存20260425_192628_Z-Image_00001_.png,仅纯文本。core0.19.3 LoadImage参考按annotated filepath读取,经EXIF校正、RGB/255;IMAGE槽0分流至22.image与25.image。MASK槽1虽可从源alpha生成1-alpha或无alpha时零mask,但本图未接,不能当背景移除遮罩。未读取图片。",
"evidence": [
0,
1,
14,
15
],
"role": "scalar",
"node_id": "17",
"definition_node_id": "17",
"class_type": "LoadImage",
"scope": "root",
"pointer": "/nodes/7/widgets_values/0",
"value": "20260425_192628_Z-Image_00001_.png",
"json_type": "str",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
},
{
"field": "upload",
"label": "图片上传控件保存状态",
"type": "IMAGEUPLOAD(前端)",
"schema_default": "image(按钮占位value);不是后台默认",
"unit": "前端状态",
"limits": "保存字符串image;不是图片名、已上传证明或服务端参数;真实恢复/UE条件未知",
"effect": "源第二位置image只作前端上传控件状态保存。固定前端在image_upload媒体combo上增加upload按钮,占位value=image,options.serialize=false;它控制prompt排除,与widget.serialize工作流持久化开关不同,因此保存位置仍原样保留。上传代码会POST /upload/image后更新引用,本轮不调用。即使恢复源码可定位,不能把这项作为LoadImage服务端upload参数或证明上传成功。",
"evidence": [
11,
12,
13,
14,
15,
16,
17,
18
],
"role": "frontend_control",
"node_id": "17",
"definition_node_id": "17",
"class_type": "LoadImage",
"scope": "root",
"pointer": "/nodes/7/widgets_values/1",
"value": "image",
"json_type": "str",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
}
],
"sources": [
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1700,
1783
],
"claim": "LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2041,
2065
],
"claim": "准确旧式LoadImage/PreviewImage注册映射"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2250,
2296
],
"claim": "旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2350,
2468
],
"claim": "有界core0.19.3内置扩展清单;没有另取历史或新版定义"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1627,
1698
],
"claim": "PreviewImage继承SaveImage写PNG/UI,但覆盖为temp目录,不是正式output导出"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
197,
216
],
"claim": "InvertMask新schema,mask→MASK,execute=1.0-mask,无显式限幅"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
403,
445
],
"claim": "MaskPreview新schema/输出节点/UI.PreviewMask及扩展注册;描述字符串不能代替实现"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
188,
226
],
"claim": "JoinImageWithAlpha新schema/注册;最小批次数,内部再次反转,RGB三通道接alpha"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
1,
9
],
"claim": "resize_mask为bilinear插值至image高宽,不是Join分支显式clamp"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
389,
411
],
"claim": "PreviewMask扩展灰度至三通道并委托PreviewImage,明确temp类型"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
76,
155
],
"claim": "临时预览PNG的CPU量化/clip、元数据与文件描述符,仅行为参考不实际写图"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "../birefnet-reference/frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"lines": [
1,
40
],
"claim": "按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"local_file": "../birefnet-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29",
"lines": [
1,
129
],
"claim": "准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"lines": [
296,
309
],
"claim": "IMAGEUPLOAD控件工厂注册"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
899,
938
],
"claim": "按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
963,
996
],
"claim": "保存widgets_values及onSerialize,保存态不直接等于最终prompt"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
1945,
1998
],
"claim": "addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"local_file": "../birefnet-reference/frontend__src__utils__executionUtil.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33",
"lines": [
83,
112
],
"claim": "graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"local_file": "../birefnet-reference/frontend__src__composables__node__useNodeImageUpload.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8",
"lines": [
20,
56
],
"claim": "上传POST与完成后路径更新仅源码说明;本轮不调用上传"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "LICENSE",
"local_file": "../birefnet-reference/core__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"local_file": "../birefnet-reference/frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
}
],
"comments": [
{
"node_id": "21",
"pointer": "/nodes/4/widgets_values/0",
"text": "## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n",
"meaning": "原文模型链接、目录树和报错指引完整保留,只作源注释,不计执行参数;不是安装事实、更新/下载授权或目标可用性证明。"
}
],
"flow": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"8节点全mode0、7运行实体加MarkdownNote21、7物理边,无子图。3个非注释顶层保存位置,1完整注释单计;22/24/25/18/20原widgets_values=[]零位置,与缺键/null/{}不同。",
"23.bg_model槽0→22.bg_removal_model输入槽1;17.IMAGE槽0→22.image输入槽0及25.image输入槽0。源类型BACKGROUND_REMOVAL/IMAGE只反映源端点,缺定义不补造prompt。",
"22.mask槽0 MASK→24.mask→25.alpha;另22.mask槽0直接→20.mask。25.IMAGE槽0→18.images。源双向端点吻合,LoadImage17的MASK槽1 links=null,未接入任何支路。",
"若24/25采用所固定core0.19.3实现,设RemoveBackground输出M:InvertMask给1-M,JoinImageWithAlpha再做1-resize(1-M);同尺寸且正常数值条件下alpha回到M,异尺寸经bilinear重采样,不保证逐像素相同。合成处未显式clamp,不把其它函数的clamp套用;保存PNG量化阶段才clip至0~255。alpha=1为不透明、0为透明的RGBA语义不等于已证明M的前景/背景方向。",
"因为RemoveBackground22和模型加载23的准确实现未知,M是否前景白/背景黑、范围是否0~1及实际效果均未知;不能仅凭InvertMask或节点名就声称背景必透明。模型推理/预处理/设备/内存/批量条件也未知。",
"MaskPreview20直接预览M,按固定参考UI实现把单通道展开成三通道灰度,未经过24反转或25合成;PreviewImage18预览的是原RGB与合成alpha的结果,两支路不可混同。",
"固定PreviewImage18是旧SaveImage子类,OUTPUT_NODE、RETURN_TYPES=(),覆盖目录为temp并返回UI images;MaskPreview20是新schema输出节点,委托UI.PreviewMask→PreviewImage→temp PNG。源无SaveImage实体,不能说已永久导出,临时文件、真实目录权限与实际输出未知。",
"LoadImage17按旧式INPUT_TYPES动态枚举input目录,读取EXIF校正/RGB归一化并返回IMAGE和MASK;source image引用不验证存在。上传控件不是后台参数,固定前端恢复/保存和上传实现仅静态说明,UE钩子顺序未确认。",
"七实体接口分别按源原文保留;24/25/20固定参考是新schema,17/18旧式注册,22/23无准确schema。节点身份未知与源端点原文分开;未修改线、创建执行出口、转换候选或启用资格。",
"Note21完整目录树、HuggingFace模型链接、更新提示与三个问题链接纯文本保留;models元数据同样只是源引用,不当目录存在、模型安装、许可或更新/下载授权。",
"源物理边:[17, 23, 0, 22, 1, \"BACKGROUND_REMOVAL\"]",
"源物理边:[18, 22, 0, 24, 0, \"MASK\"]",
"源物理边:[19, 24, 0, 25, 1, \"MASK\"]",
"源物理边:[20, 17, 0, 22, 0, \"IMAGE\"]",
"源物理边:[21, 17, 0, 25, 0, \"IMAGE\"]",
"源物理边:[22, 25, 0, 18, 0, \"IMAGE\"]",
"源物理边:[23, 22, 0, 20, 0, \"MASK\"]",
"节点22 RemoveBackground mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 20}, {\"localized_name\": \"bg_removal_model\", \"name\": \"bg_removal_model\", \"type\": \"BACKGROUND_REMOVAL\", \"link\": 17}];原outputs=[{\"localized_name\": \"mask\", \"name\": \"mask\", \"type\": \"MASK\", \"links\": [18, 23]}];原properties={\"Node name for S&R\": \"RemoveBackground\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点24 InvertMask mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 18}];原outputs=[{\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": [19]}];原properties={\"Node name for S&R\": \"InvertMask\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点25 JoinImageWithAlpha mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 21}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 19}];原outputs=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [22]}];原properties={\"Node name for S&R\": \"JoinImageWithAlpha\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点23 LoadBackgroundRemovalModel mode=0;保存位置=1(Note另计);原inputs=[{\"localized_name\": \"bg_removal_name\", \"name\": \"bg_removal_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"bg_removal_name\"}, \"link\": null}];原outputs=[{\"localized_name\": \"bg_model\", \"name\": \"bg_model\", \"type\": \"BACKGROUND_REMOVAL\", \"links\": [17]}];原properties={\"Node name for S&R\": \"LoadBackgroundRemovalModel\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"models\": [{\"name\": \"birefnet.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors\", \"directory\": \"background_removal\"}]}",
"节点21 MarkdownNote mode=0;保存位置=1(Note另计);原inputs=[];原outputs=[];原properties={\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点18 PreviewImage mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 22}];原outputs=[];原properties={\"Node name for S&R\": \"PreviewImage\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点20 MaskPreview mode=0;保存位置=0(Note另计);原inputs=[{\"label\": \"遮罩\", \"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 23}];原outputs=[];原properties={\"Node name for S&R\": \"MaskPreview\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点17 LoadImage mode=0;保存位置=2(Note另计);原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\": [20, 21]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}];原properties={\"Node name for S&R\": \"LoadImage\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}"
],
"flow_evidence": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
],
"zero_saved_nodes": [
{
"node_id": "22",
"class_type": "RemoveBackground",
"effect": "RemoveBackground只有源image/ bg_removal_model输入与mask槽0 MASK输出;core0.19.3有界树无该定义,推理算法、输出极性/范围、预处理、设备及效果未知。",
"evidence": [
3,
2
]
},
{
"node_id": "24",
"class_type": "InvertMask",
"effect": "固定core0.19.3参考:新schema输入mask,输出槽0 MASK,1.0-mask,不显式clamp。该实体没有提供方/版本声明,仅作假设,原[]零位置。",
"evidence": [
5,
2,
3
]
},
{
"node_id": "25",
"class_type": "JoinImageWithAlpha",
"effect": "固定core0.19.3参考:新schema image/alpha→槽0 IMAGE;按min(image批次,alpha批次),bilinear缩放mask到图像高宽,再1.0-mask,拼接image前三RGB通道和alpha;此分支无显式clamp。实体身份未知,仅作假设;原[]零位置。",
"evidence": [
7,
8,
2
]
},
{
"node_id": "18",
"class_type": "PreviewImage",
"effect": "固定core0.19.3参考:旧式PreviewImage images输入、无执行返回槽,OUTPUT_NODE继承SaveImage;写temp PNG并返回UI images,不是永久output保存。源未声明身份,仅参考假设;原[]零位置。",
"evidence": [
4,
1
]
},
{
"node_id": "20",
"class_type": "MaskPreview",
"effect": "固定core0.19.3参考:新schema mask输入、无数据输出槽、is_output_node;UI.PreviewMask将原mask展开三通道,经PreviewImage保存temp PNG/UI。schema描述虽称output,实际委托temp;实体身份未知,仅参考假设;原[]零位置。",
"evidence": [
6,
9,
10,
2
]
}
],
"steps": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"素材要求:一张待处理图片和与准确背景移除节点实现相匹配的模型。这里只保存引用,不索取/读取图片或权重;不能凭birefnet.safetensors文件名判断架构或显存。",
"操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。",
"操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区域。",
"操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。",
"常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、目录和运行环境,当前未知,不下载模型。",
"常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/UE次序均未核对,未定稿、未实跑。"
]
}
@@ -0,0 +1,8 @@
本轮开发记录保留,最终有效结果以 backend.txt、browser.txt、lint.txt、format.txt 为准。
- 固定源码首次批量读取发生 TLS EOF;按相同精确 commit 重试,最终 101 份有界源码读取完整、无错误,逐份核 Git blob。早期 codeload 读取迟迟无结果,已仅终止自己启动的 Python PID 633512,未用该请求内容作依据。一次误写的前端控件源码路径返回 404,后按同一精确 tree 的实际路径读取;没有借用其它版本。
- 新图专项初次 90 通过,随后加入 23 个新旧块双向错配专项,最终新增 113 项。初次后台入口有 3 个旧函数名写错,backend-initial.txt 保留;该次未跑测试,不计通过数。
- 更正函数名后的 backend-snapshot-initial.txt 为 110 通过/5 失败:均为本轮新增说明块后,旧测试的历史集合/首个对照块选择未排除新块。逐一修正快照边界并增加新块双向错配测试,旧参数/拒绝断言保留;最终 138 通过/0失败。这 5 个开发中失败不是历史全套的 5 个基线既有失败,不能混淆。
- 构造器初版中文长行触发 Ruff;一次机械拆分相邻字符串造成 Python 语法错误,未进入生产资源或提交。改为独立 editorial.json 审阅数据+显式原件绑定重建,生成说明与受信摘要零差分。lint-initial.txt 保留早期长行证据;最终 23 个自写 Python 文件 check/format 通过,不格式化上游原件。
- 浏览初次 702 通过;目验发现 Alpha 段和 Note 截图滚动位置不理想,仅调整截图前滚动定位,再跑 702 通过。初次日志 browser-initial.txt 保留,重复运行不累计为 1404。最终 5 张截图均目验:两屏默认、模型引用展开、Alpha双反转/双支路、390完整Note。
- 全后台/全前端/冻结转换大套件及旧字段全量未重跑;历史全套失败/全仓 lint 仅沿用先前记录,不称全仓全绿。没有修改依赖、样式、执行链或环境配置。
@@ -0,0 +1,508 @@
{
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"notice": "固定版本仅作参考;背景移除实现/遮罩极性、模型安装、UE恢复与目标环境未知,未实跑,转换保持关闭。",
"user_overview": "这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"versions": [
"源声明frontendVersion1.43.17,官方v1.43.17→f754141537fecaae53d635d94615f588b0e39f95,仅静态参考;UE全节点7.8,空绑定表不证明无钩子,真实恢复/回调次序未知。",
"只有LoadImage17明确cnr_id=comfy-core/ver0.19.3;官方v0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66。额外enableTabs/tabWidth/tabXOffset/hasSecondTab/secondTabText/secondTabOffset/secondTabWidth原文保留,不据cnr就断言未受UE影响。",
"其它六运行实体22/23/24/25/18/20均缺提供方和版本;InvertMask/JoinImageWithAlpha/PreviewImage/MaskPreview在固定core0.19.3确有定义,但本图这些实体只能作明确固定参考假设,不能继承LoadImage身份或当目标安装事实。",
"LoadBackgroundRemovalModel和RemoveBackground在该完整core树nodes.py及comfy_extras的有界静态检索未发现定义/注册;不扩查其它历史或最新版,默认/动态列表/推理算法/预处理/范围/输出极性未知。",
"许可分别保留固定core GPL-3.0与frontend GPL-3.0原文;未知背景节点提供方和模型权重许可另属未知。HuggingFace URL仅纯文本,不访问、下载或执行。"
],
"counts": {
"saved_fields": 3,
"scalar_saved_positions": 3,
"history_objects": 0,
"source_nodes": 8,
"physical_edges": 7,
"source_notes": 1,
"linked_saved_fields": 0,
"frontend_only": 1,
"final_scalars": 0,
"final_prompt_constructed": false
},
"fields": [
{
"field": "bg_removal_name",
"label": "背景移除模型引用",
"type": "源COMBO;定义未知",
"schema_default": "未知:core0.19.3有界树未找到该节点定义",
"unit": "模型文件引用",
"limits": "动态成员、默认/范围/加载条件未知,文件存在/架构/内存/设备/效果未知",
"effect": "保存birefnet.safetensors,仅为模型引用。23.bg_model按源槽0送22.bg_removal_model;两节点均缺提供方/版本,不能由名称或模型URL套用别版实现。本轮不加载权重或发网络下载。",
"evidence": [
3,
2
],
"role": "unconfirmed_model_reference",
"node_id": "23",
"definition_node_id": "23",
"class_type": "LoadBackgroundRemovalModel",
"scope": "root",
"pointer": "/nodes/3/widgets_values/0",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
},
{
"field": "image",
"label": "输入图片引用",
"type": "COMBO",
"schema_default": "运行时input目录图片文件排序列表,无固定schema默认",
"unit": "图片文件引用",
"limits": "由目标input目录及image内容类型过滤决定;实际可选值、尺寸/格式/文件存在未知",
"effect": "保存20260425_192628_Z-Image_00001_.png,仅纯文本。core0.19.3 LoadImage参考按annotated filepath读取,经EXIF校正、RGB/255;IMAGE槽0分流至22.image与25.image。MASK槽1虽可从源alpha生成1-alpha或无alpha时零mask,但本图未接,不能当背景移除遮罩。未读取图片。",
"evidence": [
0,
1,
14,
15
],
"role": "scalar",
"node_id": "17",
"definition_node_id": "17",
"class_type": "LoadImage",
"scope": "root",
"pointer": "/nodes/7/widgets_values/0",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
},
{
"field": "upload",
"label": "图片上传控件保存状态",
"type": "IMAGEUPLOAD(前端)",
"schema_default": "image(按钮占位value);不是后台默认",
"unit": "前端状态",
"limits": "保存字符串image;不是图片名、已上传证明或服务端参数;真实恢复/UE条件未知",
"effect": "源第二位置image只作前端上传控件状态保存。固定前端在image_upload媒体combo上增加upload按钮,占位value=image,options.serialize=false;它控制prompt排除,与widget.serialize工作流持久化开关不同,因此保存位置仍原样保留。上传代码会POST /upload/image后更新引用,本轮不调用。即使恢复源码可定位,不能把这项作为LoadImage服务端upload参数或证明上传成功。",
"evidence": [
11,
12,
13,
14,
15,
16,
17,
18
],
"role": "frontend_control",
"node_id": "17",
"definition_node_id": "17",
"class_type": "LoadImage",
"scope": "root",
"pointer": "/nodes/7/widgets_values/1",
"execution_note": "源mode=0;frontend1.43.17为源声明,UE7.8及额外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
}
],
"sources": [
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1700,
1783
],
"claim": "LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2041,
2065
],
"claim": "准确旧式LoadImage/PreviewImage注册映射"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2250,
2296
],
"claim": "旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2350,
2468
],
"claim": "有界core0.19.3内置扩展清单;没有另取历史或新版定义"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1627,
1698
],
"claim": "PreviewImage继承SaveImage写PNG/UI,但覆盖为temp目录,不是正式output导出"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
197,
216
],
"claim": "InvertMask新schema,mask→MASK,execute=1.0-mask,无显式限幅"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
403,
445
],
"claim": "MaskPreview新schema/输出节点/UI.PreviewMask及扩展注册;描述字符串不能代替实现"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
188,
226
],
"claim": "JoinImageWithAlpha新schema/注册;最小批次数,内部再次反转,RGB三通道接alpha"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
1,
9
],
"claim": "resize_mask为bilinear插值至image高宽,不是Join分支显式clamp"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
389,
411
],
"claim": "PreviewMask扩展灰度至三通道并委托PreviewImage,明确temp类型"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
76,
155
],
"claim": "临时预览PNG的CPU量化/clip、元数据与文件描述符,仅行为参考不实际写图"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "../birefnet-reference/frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"lines": [
1,
40
],
"claim": "按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"local_file": "../birefnet-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29",
"lines": [
1,
129
],
"claim": "准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"lines": [
296,
309
],
"claim": "IMAGEUPLOAD控件工厂注册"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
899,
938
],
"claim": "按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
963,
996
],
"claim": "保存widgets_values及onSerialize,保存态不直接等于最终prompt"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
1945,
1998
],
"claim": "addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"local_file": "../birefnet-reference/frontend__src__utils__executionUtil.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33",
"lines": [
83,
112
],
"claim": "graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"local_file": "../birefnet-reference/frontend__src__composables__node__useNodeImageUpload.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8",
"lines": [
20,
56
],
"claim": "上传POST与完成后路径更新仅源码说明;本轮不调用上传"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "LICENSE",
"local_file": "../birefnet-reference/core__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"local_file": "../birefnet-reference/frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
}
],
"comments": [
{
"node_id": "21",
"pointer": "/nodes/4/widgets_values/0",
"meaning": "原文模型链接、目录树和报错指引完整保留,只作源注释,不计执行参数;不是安装事实、更新/下载授权或目标可用性证明。"
}
],
"flow": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"8节点全mode0、7运行实体加MarkdownNote21、7物理边,无子图。3个非注释顶层保存位置,1完整注释单计;22/24/25/18/20原widgets_values=[]零位置,与缺键/null/{}不同。",
"23.bg_model槽0→22.bg_removal_model输入槽1;17.IMAGE槽0→22.image输入槽0及25.image输入槽0。源类型BACKGROUND_REMOVAL/IMAGE只反映源端点,缺定义不补造prompt。",
"22.mask槽0 MASK→24.mask→25.alpha;另22.mask槽0直接→20.mask。25.IMAGE槽0→18.images。源双向端点吻合,LoadImage17的MASK槽1 links=null,未接入任何支路。",
"若24/25采用所固定core0.19.3实现,设RemoveBackground输出M:InvertMask给1-M,JoinImageWithAlpha再做1-resize(1-M);同尺寸且正常数值条件下alpha回到M,异尺寸经bilinear重采样,不保证逐像素相同。合成处未显式clamp,不把其它函数的clamp套用;保存PNG量化阶段才clip至0~255。alpha=1为不透明、0为透明的RGBA语义不等于已证明M的前景/背景方向。",
"因为RemoveBackground22和模型加载23的准确实现未知,M是否前景白/背景黑、范围是否0~1及实际效果均未知;不能仅凭InvertMask或节点名就声称背景必透明。模型推理/预处理/设备/内存/批量条件也未知。",
"MaskPreview20直接预览M,按固定参考UI实现把单通道展开成三通道灰度,未经过24反转或25合成;PreviewImage18预览的是原RGB与合成alpha的结果,两支路不可混同。",
"固定PreviewImage18是旧SaveImage子类,OUTPUT_NODE、RETURN_TYPES=(),覆盖目录为temp并返回UI images;MaskPreview20是新schema输出节点,委托UI.PreviewMask→PreviewImage→temp PNG。源无SaveImage实体,不能说已永久导出,临时文件、真实目录权限与实际输出未知。",
"LoadImage17按旧式INPUT_TYPES动态枚举input目录,读取EXIF校正/RGB归一化并返回IMAGE和MASK;source image引用不验证存在。上传控件不是后台参数,固定前端恢复/保存和上传实现仅静态说明,UE钩子顺序未确认。",
"七实体接口分别按源原文保留;24/25/20固定参考是新schema,17/18旧式注册,22/23无准确schema。节点身份未知与源端点原文分开;未修改线、创建执行出口、转换候选或启用资格。",
"Note21完整目录树、HuggingFace模型链接、更新提示与三个问题链接纯文本保留;models元数据同样只是源引用,不当目录存在、模型安装、许可或更新/下载授权。",
"源物理边:[17, 23, 0, 22, 1, \"BACKGROUND_REMOVAL\"]",
"源物理边:[18, 22, 0, 24, 0, \"MASK\"]",
"源物理边:[19, 24, 0, 25, 1, \"MASK\"]",
"源物理边:[20, 17, 0, 22, 0, \"IMAGE\"]",
"源物理边:[21, 17, 0, 25, 0, \"IMAGE\"]",
"源物理边:[22, 25, 0, 18, 0, \"IMAGE\"]",
"源物理边:[23, 22, 0, 20, 0, \"MASK\"]",
"节点22 RemoveBackground mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 20}, {\"localized_name\": \"bg_removal_model\", \"name\": \"bg_removal_model\", \"type\": \"BACKGROUND_REMOVAL\", \"link\": 17}];原outputs=[{\"localized_name\": \"mask\", \"name\": \"mask\", \"type\": \"MASK\", \"links\": [18, 23]}];原properties={\"Node name for S&R\": \"RemoveBackground\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点24 InvertMask mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 18}];原outputs=[{\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": [19]}];原properties={\"Node name for S&R\": \"InvertMask\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点25 JoinImageWithAlpha mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 21}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 19}];原outputs=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [22]}];原properties={\"Node name for S&R\": \"JoinImageWithAlpha\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点23 LoadBackgroundRemovalModel mode=0;保存位置=1(Note另计);原inputs=[{\"localized_name\": \"bg_removal_name\", \"name\": \"bg_removal_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"bg_removal_name\"}, \"link\": null}];原outputs=[{\"localized_name\": \"bg_model\", \"name\": \"bg_model\", \"type\": \"BACKGROUND_REMOVAL\", \"links\": [17]}];原properties={\"Node name for S&R\": \"LoadBackgroundRemovalModel\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"models\": [{\"name\": \"birefnet.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors\", \"directory\": \"background_removal\"}]}",
"节点21 MarkdownNote mode=0;保存位置=1(Note另计);原inputs=[];原outputs=[];原properties={\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点18 PreviewImage mode=0;保存位置=0(Note另计);原inputs=[{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 22}];原outputs=[];原properties={\"Node name for S&R\": \"PreviewImage\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点20 MaskPreview mode=0;保存位置=0(Note另计);原inputs=[{\"label\": \"遮罩\", \"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 23}];原outputs=[];原properties={\"Node name for S&R\": \"MaskPreview\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}",
"节点17 LoadImage mode=0;保存位置=2(Note另计);原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\": [20, 21]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}];原properties={\"Node name for S&R\": \"LoadImage\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}"
],
"flow_evidence": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20
],
"zero_saved_nodes": [
{
"node_id": "22",
"class_type": "RemoveBackground",
"effect": "RemoveBackground只有源image/ bg_removal_model输入与mask槽0 MASK输出;core0.19.3有界树无该定义,推理算法、输出极性/范围、预处理、设备及效果未知。",
"evidence": [
3,
2
]
},
{
"node_id": "24",
"class_type": "InvertMask",
"effect": "固定core0.19.3参考:新schema输入mask,输出槽0 MASK,1.0-mask,不显式clamp。该实体没有提供方/版本声明,仅作假设,原[]零位置。",
"evidence": [
5,
2,
3
]
},
{
"node_id": "25",
"class_type": "JoinImageWithAlpha",
"effect": "固定core0.19.3参考:新schema image/alpha→槽0 IMAGE;按min(image批次,alpha批次),bilinear缩放mask到图像高宽,再1.0-mask,拼接image前三RGB通道和alpha;此分支无显式clamp。实体身份未知,仅作假设;原[]零位置。",
"evidence": [
7,
8,
2
]
},
{
"node_id": "18",
"class_type": "PreviewImage",
"effect": "固定core0.19.3参考:旧式PreviewImage images输入、无执行返回槽,OUTPUT_NODE继承SaveImage;写temp PNG并返回UI images,不是永久output保存。源未声明身份,仅参考假设;原[]零位置。",
"evidence": [
4,
1
]
},
{
"node_id": "20",
"class_type": "MaskPreview",
"effect": "固定core0.19.3参考:新schema mask输入、无数据输出槽、is_output_node;UI.PreviewMask将原mask展开三通道,经PreviewImage保存temp PNG/UI。schema描述虽称output,实际委托temp;实体身份未知,仅参考假设;原[]零位置。",
"evidence": [
6,
9,
10,
2
]
}
],
"steps": [
"这张图把输入图片送入背景移除节点,同时预览原始遮罩和合成透明通道后的图片。保存了一个模型引用和两个图片控件位置;模型推理实现及前景/背景极性尚未确认,不能保证抠图效果。图中没有正式保存节点,预览不等于永久导出;未实跑,转换保持关闭。",
"素材要求:一张待处理图片和与准确背景移除节点实现相匹配的模型。这里只保存引用,不索取/读取图片或权重;不能凭birefnet.safetensors文件名判断架构或显存。",
"操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。",
"操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区域。",
"操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。",
"常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、目录和运行环境,当前未知,不下载模型。",
"常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/UE次序均未核对,未定稿、未实跑。"
]
}
@@ -0,0 +1,51 @@
"""Optional bounded textual-source replay; never follow model/media links or import plugins."""
from __future__ import annotations
import hashlib
import json
import urllib.request
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1] / "birefnet-reference"
def read(url):
with urllib.request.urlopen(url, timeout=30) as response:
return response.read()
def main():
entries = json.loads((ROOT / "sources.json").read_bytes())["sources"]
for entry in entries:
assert len(entry["commit"]) == 40 and entry["commit"] in entry["url"]
raw = read(entry["url"])
assert hashlib.sha256(raw).hexdigest() == entry["sha256"]
(ROOT / entry["local_file"]).write_bytes(raw)
ledger = json.loads((ROOT / "core-bounded-search.json").read_bytes())
matches = {key: [] for key in ledger["matches"]}
commit = ledger["commit"]
assert commit == "3086026401180c9216bcb6ace442a4e3587d2c66"
for entry in ledger["files"]:
path = entry["path"]
local = ROOT / ("core__" + path.replace("/", "__"))
raw = (
local.read_bytes()
if local.exists()
else read(f"https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{path}")
)
assert hashlib.sha256(raw).hexdigest() == entry["sha256"]
assert (
hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
== entry["git_blob_sha1"]
)
for key in matches:
hits = [i for i, line in enumerate(raw.decode().splitlines(), 1) if key in line]
if hits:
matches[key].append(dict(path=path, lines=hits))
assert matches == ledger["matches"]
print("PASS exact textual originals and bounded 101-file search replay; no upstream execution")
if __name__ == "__main__":
main()
@@ -0,0 +1,317 @@
[
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1700,
1783
],
"claim": "LoadImage旧式INPUT_TYPES、动态图片列表、读取/归一化、EXIF与MASK输出"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2041,
2065
],
"claim": "准确旧式LoadImage/PreviewImage注册映射"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2250,
2296
],
"claim": "旧映射和新comfy_entrypoint→get_node_list→GET_SCHEMA→node_id的注册分支"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
2350,
2468
],
"claim": "有界core0.19.3内置扩展清单;没有另取历史或新版定义"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "../birefnet-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"lines": [
1627,
1698
],
"claim": "PreviewImage继承SaveImage写PNG/UI,但覆盖为temp目录,不是正式output导出"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
197,
216
],
"claim": "InvertMask新schema,mask→MASK,execute=1.0-mask,无显式限幅"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"lines": [
403,
445
],
"claim": "MaskPreview新schema/输出节点/UI.PreviewMask及扩展注册;描述字符串不能代替实现"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
188,
226
],
"claim": "JoinImageWithAlpha新schema/注册;最小批次数,内部再次反转,RGB三通道接alpha"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "../birefnet-reference/core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"lines": [
1,
9
],
"claim": "resize_mask为bilinear插值至image高宽,不是Join分支显式clamp"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
389,
411
],
"claim": "PreviewMask扩展灰度至三通道并委托PreviewImage,明确temp类型"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
"lines": [
76,
155
],
"claim": "临时预览PNG的CPU量化/clip、元数据与文件描述符,仅行为参考不实际写图"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "../birefnet-reference/frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"lines": [
1,
40
],
"claim": "按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"local_file": "../birefnet-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29",
"lines": [
1,
129
],
"claim": "准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"lines": [
296,
309
],
"claim": "IMAGEUPLOAD控件工厂注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
899,
938
],
"claim": "按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
963,
996
],
"claim": "保存widgets_values及onSerialize,保存态不直接等于最终prompt"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
1945,
1998
],
"claim": "addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"local_file": "../birefnet-reference/frontend__src__utils__executionUtil.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33",
"lines": [
83,
112
],
"claim": "graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"local_file": "../birefnet-reference/frontend__src__composables__node__useNodeImageUpload.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8",
"lines": [
20,
56
],
"claim": "上传POST与完成后路径更新仅源码说明;本轮不调用上传"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "LICENSE",
"local_file": "../birefnet-reference/core__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"local_file": "../birefnet-reference/frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
}
]
@@ -0,0 +1 @@
23 files already formatted
@@ -0,0 +1,771 @@
{
"base": "6e1e47b8e79cd5c5336dc840e607da6e8fbb9c45",
"files": [
{
"path": "calliope-backend/src/calliope/comfyui/__init__.py",
"sha256": "1d3488bcc2eadcd8a8f2e84ab4f6e9bdf52096b8af637c4da399db041d5a0543"
},
{
"path": "calliope-backend/src/calliope/comfyui/client.py",
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
},
{
"path": "calliope-backend/src/calliope/comfyui/companions.py",
"sha256": "7dde205059bf489e3d39539a8b42333b3947c3989d890441f70a45cf67d9ab04"
},
{
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.json",
"sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6"
},
{
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.py",
"sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867"
},
{
"path": "calliope-backend/src/calliope/comfyui/dry_run.py",
"sha256": "f8bf4d1b91d959044de1dbc4aeb11bf0bb521f51f1928d36a46c670381a08ed7"
},
{
"path": "calliope-backend/src/calliope/comfyui/endpoints.py",
"sha256": "fc99a623850b581ae38843bbc3baf1b71ca9fd633e6103a34cb809a345e5a647"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/lint.py",
"sha256": "9b79bf162e13fb68321727fb17f96d6fc0c217d60db85de38235c4270bf9b4e3"
},
{
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
},
{
"path": "calliope-backend/src/calliope/comfyui/parser.py",
"sha256": "a02d583c6a1cf7f85e77341a20308823771c233fb95241118a264e202a5230a0"
},
{
"path": "calliope-backend/src/calliope/comfyui/patcher.py",
"sha256": "8ac1417f0f78d952cdb219b10811a6ed7d4ce3bb0d561708858c4a8f5d15b45d"
},
{
"path": "calliope-backend/src/calliope/comfyui/preflight.py",
"sha256": "6629961d33204cbe5b3fc3d8a5a0a4de0c86d235e73f542d191429cf7f4bd2ec"
},
{
"path": "calliope-backend/src/calliope/comfyui/profiles.py",
"sha256": "4ca33343fc3f20e0fb82558cb428548f6415af04fb90213a694fb759515732f2"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
},
{
"path": "calliope-backend/src/calliope/comfyui/registry.py",
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
},
{
"path": "calliope-backend/src/calliope/comfyui/roles.py",
"sha256": "cc0b45eac2d881a6f7cc5ea88ceadb03f71715240a45257fef3a76bfc53d56c4"
},
{
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
},
{
"path": "calliope-backend/src/calliope/comfyui/smart_fill.py",
"sha256": "adc34e80cca7a2b38cc834a713c9e64001caac84413af288389e5554e304bab6"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.py",
"sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419"
},
{
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
},
{
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
},
{
"path": "calliope-backend/src/calliope/comfyui/validate.py",
"sha256": "c27fca69a604705b06809fdd692975ca0e7a08d05d558172962f8910a6a0491d"
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
},
{
"path": "docs/hel-892/supplied-api/manifest.json",
"sha256": "f1367b4fa7a8377fb57512d17c80bc697d4d3abd0adb77adc3c06c6dedab69ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
}
],
"original_files": 156,
"all_unchanged": true
}
@@ -0,0 +1,69 @@
{
"base": "6e1e47b8e79cd5c5336dc840e607da6e8fbb9c45",
"first": {
"imported": 155,
"user_excluded": 1
},
"upgrade": {
"skipped": 154,
"updated": 1,
"user_excluded": 1
},
"repeat": {
"skipped": 155,
"user_excluded": 1
},
"restored_rows": 1,
"untouched_whole_rows": 154,
"eligibility_unchanged": true,
"redo": {
"skipped": 154,
"updated": 1,
"user_excluded": 1
},
"user_protection": [
{
"phase": "user-before",
"counts": {
"skipped": 154,
"conflict": 1,
"user_excluded": 1
},
"whole_rows": 1,
"columns": 29
},
{
"phase": "user-after",
"counts": {
"skipped": 154,
"conflict": 1,
"user_excluded": 1
},
"whole_rows": 1,
"columns": 29
}
],
"fresh": {
"imported": 155,
"user_excluded": 1
},
"fresh_repeat": {
"skipped": 155,
"user_excluded": 1
},
"states": {
"pending_check": 16,
"needs_conversion": 139
},
"source_named_fields": 1217,
"positional_widgets": 3660,
"companion_values": 294,
"new_saved": 3,
"new_notes": 1,
"old_saved": 662,
"old_notes": 15,
"overviews": 24,
"all_disabled": true,
"doc_done": 0,
"executed": 0
}
@@ -0,0 +1,56 @@
E501 Line too long (145 > 100)
--> docs/hel-892/birefnet-document-evidence/build_definition.py:182:72
|
180 | …
181 | …
182 | … 外属性原样保留。空UE绑定表不证明无钩子;目标安装、宿主恢复与UE次序未知;不构造prompt。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
183 | …
184 | …
|
E501 Line too long (101 > 100)
--> docs/hel-892/birefnet-document-evidence/build_definition.py:224:73
|
222 | "源第二位置image只作前端上传控件状态保存。固定前端在image_upload媒体combo上增加uploa"
223 | "d按钮,占位value=image,options.serialize=false;它控制prompt排除,与"
224 | "widget.serialize工作流持久化开关不同,因此保存位置仍原样保留。上传代码会POST /uploa"
| ^
225 | "d/image后更新引用,本轮不调用。即使恢复源码可定位,不能把这项作为LoadImage服务端upload参"
226 | "数或证明上传成功。"
|
E501 Line too long (139 > 100)
--> docs/hel-892/birefnet-document-evidence/build_definition.py:242:77
|
240 | …
241 | …
242 | … 槽0 MASK,1.0-mask,不显式clamp。该实体没有提供方/版本声明,仅作假设,原[]零位置。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
243 | …
244 | …
|
E501 Line too long (102 > 100)
--> docs/hel-892/birefnet-document-evidence/build_definition.py:374:69
|
372 | (
373 | "LoadImage17按旧式INPUT_TYPES动态枚举input目录,读取EXIF校正/RGB归一化并返回"
374 | "IMAGE和MASK;source image引用不验证存在。上传控件不是后台参数,固定前端恢复/保存和上传实"
| ^
375 | "现仅静态说明,UE钩子顺序未确认。"
376 | ),
|
E501 Line too long (133 > 100)
--> docs/hel-892/birefnet-document-evidence/build_definition.py:425:66
|
423 | … "操作1:未来获准执行前,核对22/23真正提供方与版本、动态模型选项及安装;本轮固定core0.19.3没有它们的定义,不能借新版补齐。",
424 | … "操作2:核图片引用与17两条IMAGE分流;17.MASK未接。确认24/25真实实现后再评估1-M与1-resize(1-M)的两次反转,不能靠节点名猜透明区…
425 | … "操作3:分别检查20的原遮罩预览和18的透明合成预览。当前无正式保存节点,不把temp PNG/UI预览当永久导出;保持停用、未检查。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
426 | … "常见问题:背景没有透明时先核M极性、24/25准确实现与尺寸/批次数,不能直接断言反转节点接错。模型列表缺项/推理报错需要真正定义、…
427 | … "常见问题:看不到永久文件不代表预览等于正式保存;Note里的目录树与链接仅是源文说明。目标权限/实际效果、模型设备和内存、宿主恢复/…
|
Found 5 errors.
@@ -0,0 +1 @@
All checks passed!
@@ -0,0 +1,4 @@
{
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"raw_sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
}
@@ -0,0 +1,23 @@
[
{
"file": "fixed_document.py",
"sha256": "94bb91a34b1113b23065e97b3107c8781c96f6dd4de00e13d0bd67198406bf6a",
"wheel": true,
"sdist": true,
"definitions": 24
},
{
"file": "source_reviews.json",
"sha256": "cb3001957ef5d1dccf3d2ff357765dfedfc0e55f014edd3247dc7970f5728847",
"wheel": true,
"sdist": true,
"definitions": 24
},
{
"file": "library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
"wheel": true,
"sdist": true,
"definitions": 24
}
]
@@ -0,0 +1,3 @@
{
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json": "184a0502f9833251fe0fbbf1f90be4ed59b7d855d3cc796dee5cf2f5b50d7e3b"
}
@@ -0,0 +1 @@
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
@@ -0,0 +1,64 @@
"""Add one reviewed definition; preserve every other review object exactly."""
from __future__ import annotations
import hashlib
import json
import subprocess
from build_definition import OUT, PATHS, REPO, build, canonical
BASE = "6e1e47b8e79cd5c5336dc840e607da6e8fbb9c45"
RESOURCE = "calliope-backend/src/calliope/comfyui/source_reviews.json"
def build_all():
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
reviews = json.loads(json.dumps(previous, ensure_ascii=False))
for i, path in enumerate(PATHS):
block = build(i)
assert reviews[path]["source_sha"] == block["source_sha1"]
assert "fixed_version_document" not in previous[path]
reviews[path]["fixed_version_document"] = block
return reviews, previous
def main():
current = json.loads((REPO / RESOURCE).read_bytes())
reviews, previous = build_all()
(REPO / RESOURCE).write_text(json.dumps(reviews, ensure_ascii=False, indent=2) + "\n")
pins = {}
for i, path in enumerate(PATHS):
block = reviews[path]["fixed_version_document"]
pins[path] = hashlib.sha256(canonical(block)).hexdigest()
(OUT / f"definition-{i}.json").write_text(
json.dumps(block, ensure_ascii=False, indent=2) + "\n"
)
# Explicit maintenance of the code-owned allowlist, never trust runtime caller digests.
module = REPO / "calliope-backend/src/calliope/comfyui/fixed_document.py"
text = module.read_text()
for path, digest in pins.items():
old_block = current[path].get("fixed_version_document")
old_digest = hashlib.sha256(canonical(old_block)).hexdigest() if old_block else None
if old_digest and old_digest in text:
text = text.replace(old_digest, digest)
elif digest in text:
pass
else:
text = text.replace(
"DEFINITIONS = {",
"DEFINITIONS = {\n (\n"
+ "".join(
" " + repr(path[i : i + 40]) + "\n" for i in range(0, len(path), 40)
)
+ " ): "
+ repr(digest)
+ ",",
)
module.write_text(text)
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
print("PASS one definition; other 155 reviews and old 23 blocks unchanged")
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS actual 6e1e47b upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 24 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,396 @@
"""Actual 6e1e47b upgrade, one-row protection/rollback, frozen boundaries and packages."""
from __future__ import annotations
import hashlib
import io
import json
import os
import sqlite3
import subprocess
import sys
import tarfile
import tempfile
import zipfile
from pathlib import Path
from build_definition import OUT, PATHS, REPO, canonical
from rebuild import BASE, RESOURCE, build_all
sys.path.insert(0, str(REPO / "calliope-backend"))
def write(name, value):
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
def require_packages():
dist = REPO / "calliope-backend/dist"
w = sorted(dist.glob("*.whl"))
s = sorted(dist.glob("*.tar.gz"))
if not w or not s:
raise SystemExit(
(
"缺少wheel/sdist包产物,请先在仓库根执行:"
"uv build --project calliop"
"e-backend --offline"
)
)
return w[-1], s[-1]
def main():
from calliope.comfyui.fixed_document import DEFINITIONS
from calliope.comfyui.library import rollback_batch
from scripts.audit_library_documents import audit
wheels, sdists = require_packages()
reference = OUT.parent / "birefnet-reference"
entries = json.loads((reference / "sources.json").read_bytes())["sources"]
for e in entries:
assert hashlib.sha256((reference / e["local_file"]).read_bytes()).hexdigest() == e["sha256"]
search = json.loads((reference / "core-bounded-search.json").read_bytes())
assert search["commit"] == "3086026401180c9216bcb6ace442a4e3587d2c66"
assert not search["tree_truncated"] and not search["errors"]
assert len(search["files"]) == 101
assert search["matches"]["LoadBackgroundRemovalModel"] == []
assert search["matches"]["RemoveBackground"] == []
for key in ["core", "frontend"]:
tree = json.loads((reference / (key + "-tree.json")).read_bytes())
assert not tree["truncated"]
write(
"source-check.json",
dict(
fixed_originals=len(entries),
local_file_base="docs/hel-892/birefnet-reference",
imported_upstream=False,
target_installation=False,
bounded_core_files=101,
unknown_nodes=["LoadBackgroundRemovalModel", "RemoveBackground"],
exact_commits=[
"3086026401180c9216bcb6ace442a4e3587d2c66",
"f754141537fecaae53d635d94615f588b0e39f95",
],
),
)
graphs = []
for path in PATHS:
raw = (REPO / path).read_bytes()
g = json.loads(raw)
by_id = {n["id"]: n for n in g["nodes"]}
assert len(g["nodes"]) == 8 and len(g["links"]) == 7
assert sum(len(n["widgets_values"]) for n in g["nodes"] if n["type"] != "MarkdownNote") == 3
assert g["extra"]["frontendVersion"] == "1.43.17"
assert all(n["mode"] == 0 for n in g["nodes"])
assert [i for i, n in by_id.items() if n["widgets_values"] == []] == [22, 24, 25, 18, 20]
assert by_id[23]["widgets_values"] == ["birefnet.safetensors"]
assert by_id[17]["widgets_values"] == ["20260425_192628_Z-Image_00001_.png", "image"]
assert by_id[17]["properties"]["ver"] == "0.19.3"
assert all("ver" not in n["properties"] for n in g["nodes"] if n["id"] != 17)
assert by_id[17]["outputs"][1]["links"] is None
assert g["links"] == [
[17, 23, 0, 22, 1, "BACKGROUND_REMOVAL"],
[18, 22, 0, 24, 0, "MASK"],
[19, 24, 0, 25, 1, "MASK"],
[20, 17, 0, 22, 0, "IMAGE"],
[21, 17, 0, 25, 0, "IMAGE"],
[22, 25, 0, 18, 0, "IMAGE"],
[23, 22, 0, 20, 0, "MASK"],
]
for eid, origin, slot, target, inp, typ in g["links"]:
assert eid in by_id[origin]["outputs"][slot]["links"]
assert by_id[origin]["outputs"][slot]["type"] == typ
assert by_id[target]["inputs"][inp]["link"] == eid
assert by_id[target]["inputs"][inp]["type"] == typ
graphs.append(
dict(
source_path=path,
sha1=hashlib.sha1(raw).hexdigest(),
raw_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
nodes=g["nodes"],
links=g["links"],
saved_fields=3,
history_objects=0,
)
)
write("source-graphs.json", graphs)
rebuilt, previous = build_all()
assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
old_blocks = {
p: r["fixed_version_document"] for p, r in previous.items() if "fixed_version_document" in r
}
assert len(old_blocks) == 23
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
write(
"review-delta.json",
dict(
base=BASE,
changed_paths=PATHS,
other_reviews_unchanged=len(previous) - 1,
old_blocks_unchanged=23,
old_saved=662,
old_notes=15,
new_saved=3,
new_notes=1,
total_documents=24,
total_saved=665,
total_notes=16,
),
)
for p, d in DEFINITIONS.items():
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
with tempfile.TemporaryDirectory() as directory:
work = Path(directory)
old = work / "old"
old.mkdir()
data = subprocess.check_output(["git", "archive", BASE, "calliope-backend/src"], cwd=REPO)
with tarfile.open(fileobj=io.BytesIO(data)) as a:
a.extractall(old, filter="data")
db = work / "library.db"
def run(name, historical=False):
out = work / name
env = {
**os.environ,
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
}
subprocess.run(
[
sys.executable,
"-m",
"calliope.comfyui.library_cli",
"import",
"--root",
str(REPO / "example_ComfyUI_workflows"),
"--db",
str(db),
"--source-commit",
BASE,
"--companions",
str(REPO / "docs/hel-892/supplied-api/manifest.json"),
"--output-dir",
str(out),
],
cwd=REPO,
env=env,
check=True,
stdout=subprocess.DEVNULL,
)
return json.loads((out / "import_report.json").read_bytes()), out
def rows():
with sqlite3.connect(db) as c:
c.row_factory = sqlite3.Row
return {
r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows")
}
first, _ = run("historical", True)
before = rows()
assert first["counts"] == {"imported": 155, "user_excluded": 1}
assert all("fixed_version" not in json.loads(before[p]["doc_json"]) for p in PATHS)
assert all(
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
for p in DEFINITIONS
if p not in PATHS
)
original = db
protected = []
def protect(name):
nonlocal db
db = work / (name + ".db")
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
src.backup(dst)
for p in PATHS:
dst.execute(
"UPDATE workflows SET description=? WHERE source_repo_path=?",
(name, p),
)
snapshot = rows()
r, _ = run(name)
assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
assert rows() == snapshot and all(len(snapshot[p]) == 29 for p in PATHS)
protected.append(dict(phase=name, counts=r["counts"], whole_rows=1, columns=29))
db = original
protect("user-before")
upgrade, exported = run("upgrade")
after = rows()
assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1}
for p, row in after.items():
if p not in PATHS:
assert row == before[p]
continue
assert len(row) == 29
assert all(
row[k] == before[p][k]
for k in row.keys() - {"doc_json", "batch_id", "imported_at", "library_fingerprint"}
)
d = json.loads(row["doc_json"])
assert d["fixed_version"]["matched"]
old_doc = json.loads(before[p]["doc_json"])
without = dict(d)
fixed = without.pop("fixed_version")
assert without["steps"] == old_doc["steps"][:-3] + fixed["steps"]
without["steps"] = old_doc["steps"]
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
assert without == old_doc
write("actual-" + Path(p).stem + ".json", d)
repeat, _ = run("repeat")
assert repeat["counts"] == {"skipped": 155, "user_excluded": 1}
with sqlite3.connect(db) as c:
c.row_factory = sqlite3.Row
r = rollback_batch(c, upgrade["batch_id"])
assert len(r["files"]) == 1 and all(f["result"] == "restored" for f in r["files"])
assert rows() == before
redo, _ = run("redo")
assert redo["counts"] == upgrade["counts"]
protect("user-after")
db = work / "fresh.db"
fresh, exported = run("fresh")
fresh_repeat, _ = run("fresh-repeat")
assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"]
assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139}
companion = 0
for row in rows().values():
d = json.loads(row["doc_json"])
companion += sum(p.get("value_origin") == "supplied_api_companion" for p in d["params"])
assert (
not row["is_enabled"]
and row["doc_completed_at"] is None
and row["exec_verified_at"] is None
)
assert not d["status"]["doc_done"] and not d["status"]["exec_verified"]
assert d["dependencies"]["check_state"] == "unchecked"
report = audit(REPO, exported)
assert (
report["named_values_preserved"] == 1217
and report["unnamed_widget_nodes"] == 3660
and companion == 294
)
assert report["full_documents_completed"] == report["real_executions"] == 0
write("audit-summary.json", {k: v for k, v in report.items() if k != "files"})
write(
"import-protection.json",
dict(
base=BASE,
first=first["counts"],
upgrade=upgrade["counts"],
repeat=repeat["counts"],
restored_rows=1,
untouched_whole_rows=154,
eligibility_unchanged=True,
redo=redo["counts"],
user_protection=protected,
fresh=fresh["counts"],
fresh_repeat=fresh_repeat["counts"],
states=fresh["states"],
source_named_fields=1217,
positional_widgets=3660,
companion_values=companion,
new_saved=3,
new_notes=1,
old_saved=662,
old_notes=15,
overviews=24,
all_disabled=True,
doc_done=0,
executed=0,
),
)
old_reviews = json.loads(
subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO)
)
current = json.loads((REPO / RESOURCE).read_bytes())
for p in PATHS:
current[p].pop("fixed_version_document")
assert current == old_reviews
boundaries = json.loads(
(REPO / "docs/hel-892/h3-document-evidence/unchanged-boundaries.json").read_bytes()
)
paths = (
[f["path"] for f in boundaries["files"]]
+ boundaries["frozen_conversion_and_audits"]
+ ["calliope-backend/src/calliope/comfyui/library.py"]
)
kept = []
for p in paths:
raw = (REPO / p).read_bytes()
assert raw == subprocess.check_output(["git", "show", f"{BASE}:{p}"], cwd=REPO)
kept.append(dict(path=p, sha256=hashlib.sha256(raw).hexdigest()))
ui = "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte"
drawer_bytes = (REPO / ui).read_bytes()
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
write(
"boundaries.json",
dict(
base=BASE,
files=kept,
originals=163,
old_twenty_three_blocks_unchanged=True,
drawer_css_unchanged=True,
drawer_whole_file_unchanged=True,
drawer_sha256=hashlib.sha256(drawer_bytes).hexdigest(),
conversion_rerun=False,
profiles_28_candidates_9_diffs_6="unchanged",
),
)
tracked = (
subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO)
.decode()
.rstrip("\0")
.split("\0")
)
frozen = [
p
for p in tracked
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
or p.startswith("calliope-backend/src/calliope/comfyui/")
and p not in [RESOURCE, "calliope-backend/src/calliope/comfyui/fixed_document.py"]
]
for p in frozen:
assert (REPO / p).read_bytes() == subprocess.check_output(
["git", "show", f"{BASE}:{p}"], cwd=REPO
)
write(
"frozen-resource-check.json",
dict(
base=BASE,
files=[
dict(path=p, sha256=hashlib.sha256((REPO / p).read_bytes()).hexdigest())
for p in frozen
],
original_files=sum(p.startswith("example_ComfyUI_workflows/") for p in frozen),
all_unchanged=True,
),
)
packages = []
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
raw = (REPO / "calliope-backend/src/calliope/comfyui" / name).read_bytes()
assert w.read("calliope/comfyui/" + name) == raw
member = next(n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name))
assert s.extractfile(member).read() == raw
packages.append(
dict(
file=name,
sha256=hashlib.sha256(raw).hexdigest(),
wheel=True,
sdist=True,
definitions=24,
)
)
write("package-check.json", packages)
print(
"PASS actual 6e1e47b upgrade1/skip154, repe"
"at155, rollback1, edits1/29cols, fresh155,"
" 1217/3660/294, 24 definitions, frozen bou"
"ndaries, wheel/sdist"
)
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS actual 6e1e47b upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 24 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,111 @@
"""Readable complete Chinese definitions and fixed source index from delivered data."""
from __future__ import annotations
import hashlib
import json
from pathlib import Path
OUT = Path(__file__).resolve().parent
def main():
lines = [
"# BiRefNet背景移除固定参考中文说明",
"",
"3新顶层保存位置(模型引用、图片引用、上传状态)+1新注释;旧23图662保存位置+15注释逐对象不变。24图665位置+16注释展示,155定稿0、实跑0、新增转换0。",
"",
"复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。来源索引local_file以docs/hel-892/birefnet-document-evidence为解析基准。",
"",
]
index = []
for i in range(1):
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
lines += [
"## " + Path(b["source_path"]).stem,
"",
b["user_overview"],
"",
b["notice"],
"",
"源路径:`" + b["source_path"] + "`",
"",
"SHA1:" + b["source_sha1"],
"",
"原字节SHA256:" + b["source_sha256"],
"",
"规范全图SHA256:" + b["canonical_sha256"],
"",
*[v + "\n" for v in b["versions"]],
"### 具体连线与处理条件",
"",
*[v + "\n" for v in b["flow"]],
"### 使用与核对",
"",
*[v + "\n" for v in b["steps"]],
"### 逐保存位置说明",
"",
]
for j, f in enumerate(b["fields"], 1):
lines += [
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
"",
f["effect"],
"",
"```json",
json.dumps(f["value"], ensure_ascii=False, indent=2),
"```",
"",
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
"",
"源位置:`" + f["pointer"] + "`",
"",
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
"",
"范围/条件:" + f["limits"],
"",
f["execution_note"],
"",
"依据:",
]
for k in f["evidence"]:
e = b["sources"][k]
lines += [
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
]
lines += [""]
lines += ["### 零保存节点与源注释", ""]
for z in b["zero_saved_nodes"]:
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
for n in b["comments"]:
lines += [
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
"",
n["meaning"],
"",
"```text",
n["text"],
"```",
"",
]
lines += ["### 固定原件索引", ""]
for k, e in enumerate(b["sources"]):
data = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
lines += [
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
"",
]
index.append(dict(document=b["source_path"], **e))
(OUT.parent / "BiRefNet背景移除固定参考中文说明.md").write_text(
"\n".join(lines).rstrip() + "\n"
)
(OUT / "fixed-source-index.json").write_text(
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
)
if __name__ == "__main__":
main()
@@ -0,0 +1,42 @@
"""Compare deterministic definitions and rendered artifacts without repeating unrelated tests."""
import hashlib
import json
from build_definition import OUT, REPO, canonical
from rebuild import RESOURCE, build_all
from render_report import main as render
def main():
a, old = build_all()
b, previous = build_all()
assert a == b and old == previous
assert a == json.loads((REPO / RESOURCE).read_bytes())
render()
paths = [
OUT / "fixed-source-index.json",
OUT.parent / "BiRefNet背景移除固定参考中文说明.md",
]
before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
render()
assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
(OUT / "repeatability.json").write_text(
json.dumps(
dict(
definitions=24,
repeated_build_equal=True,
repeated_render_equal=True,
resource_sha256=hashlib.sha256(canonical(a)).hexdigest(),
artifacts=before,
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print("PASS deterministic definitions and rendered artifacts: zero difference")
if __name__ == "__main__":
main()
@@ -0,0 +1,10 @@
{
"definitions": 24,
"repeated_build_equal": true,
"repeated_render_equal": true,
"resource_sha256": "41993abed33a010a84040f59094b7331b373bcc9c164c3de39b8813e8fea9eca",
"artifacts": {
"fixed-source-index.json": "3c3d749954932f84420f263a7d26dc680a5c60e97629787abd74b4b90052299e",
"BiRefNet背景移除固定参考中文说明.md": "6ae2115e9ff90554ede22e61ca28ab7b46118a0a2b31f7f5128e0546aa058d9d"
}
}
@@ -0,0 +1 @@
PASS deterministic definitions and rendered artifacts: zero difference
@@ -0,0 +1 @@
{"total": 86, "fixed_count": 80, "polling_count": 6, "paths": {"/api/workflows": 3, "/api/workflows/3": 4, "/api/workflows/9": 4, "/api/workflows/16": 3, "/api/workflows/10": 3, "/api/workflows/23": 3, "/api/workflows/8": 3, "/api/workflows/22": 3, "/api/workflows/5": 3, "/api/workflows/6": 3, "/api/workflows/7": 3, "/api/workflows/19": 3, "/api/workflows/13": 3, "/api/workflows/12": 3, "/api/workflows/64": 3, "/api/workflows/62": 3, "/api/workflows/70": 3, "/api/workflows/1": 3, "/api/workflows/36": 3, "/api/workflows/35": 3, "/api/workflows/2": 3, "/api/workflows/25": 3, "/api/workflows/24": 3, "/api/workflows/21": 3, "/api/workflows/14": 3, "/api/jobs": 6, "/api/settings": 1, "/api/workflows/156": 1, "/api/workflows/157": 1}, "readiness_included": 1, "reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"}
@@ -0,0 +1,39 @@
"""Count actual local server GETs separately from browser intercepted requests."""
import collections
import json
import re
from pathlib import Path
OUT = Path(__file__).resolve().parent
def main():
text = (OUT / "service-0.txt").read_text()
gets = re.findall(r'"GET ([^ ]+) HTTP/', text)
polling = [p for p in gets if p in ["/api/jobs", "/api/events"]]
result = dict(
total=len(gets),
fixed_count=len(gets) - len(polling),
polling_count=len(polling),
paths=dict(collections.Counter(gets)),
readiness_included=1,
reason=(
"就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,"
"服务日志只含真正到后端者,不机械等同。"
"轮询可随计时边界±1,禁止请求始终零容忍。"
),
)
browser = json.loads((OUT / "browser-results.json").read_bytes())
assert browser["errors"] == []
assert all(r["method"] == "GET" for r in browser["requests"])
assert all(not p.startswith("/api/view") for p in gets)
assert abs(result["polling_count"] - browser["request_accounting"]["polling_count"]) <= 1
(OUT / "server-request-accounting.json").write_text(
json.dumps(result, ensure_ascii=False, indent=2) + "\n"
)
print(json.dumps(result, ensure_ascii=False))
if __name__ == "__main__":
main()
@@ -0,0 +1,15 @@
{
"base": "6e1e47b8e79cd5c5336dc840e607da6e8fbb9c45",
"changed_paths": [
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json"
],
"other_reviews_unchanged": 155,
"old_blocks_unchanged": 23,
"old_saved": 662,
"old_notes": 15,
"new_saved": 3,
"new_notes": 1,
"total_documents": 24,
"total_saved": 665,
"total_notes": 16
}
@@ -0,0 +1,38 @@
{
"total": 86,
"fixed_count": 80,
"polling_count": 6,
"paths": {
"/api/workflows": 3,
"/api/workflows/3": 4,
"/api/workflows/9": 4,
"/api/workflows/16": 3,
"/api/workflows/10": 3,
"/api/workflows/23": 3,
"/api/workflows/8": 3,
"/api/workflows/22": 3,
"/api/workflows/5": 3,
"/api/workflows/6": 3,
"/api/workflows/7": 3,
"/api/workflows/19": 3,
"/api/workflows/13": 3,
"/api/workflows/12": 3,
"/api/workflows/64": 3,
"/api/workflows/62": 3,
"/api/workflows/70": 3,
"/api/workflows/1": 3,
"/api/workflows/36": 3,
"/api/workflows/35": 3,
"/api/workflows/2": 3,
"/api/workflows/25": 3,
"/api/workflows/24": 3,
"/api/workflows/21": 3,
"/api/workflows/14": 3,
"/api/jobs": 6,
"/api/settings": 1,
"/api/workflows/156": 1,
"/api/workflows/157": 1
},
"readiness_included": 1,
"reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"
}
@@ -0,0 +1,95 @@
INFO: Started server process [637888]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
{'counts': {'skipped': 155, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
INFO: 127.0.0.1:55310 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55326 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55322 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55340 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:55336 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 127.0.0.1:55344 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:55360 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41044 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:41054 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41058 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41072 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41082 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41096 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41104 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41120 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41128 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41142 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41144 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41150 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41160 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41174 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41190 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41206 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41218 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41228 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41238 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41250 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41264 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41280 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:41282 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41286 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41292 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:41300 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:41306 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36162 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36164 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36166 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36182 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36184 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36194 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36204 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36218 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36220 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36232 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36244 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36254 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36256 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36260 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36264 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36274 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36278 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36286 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36300 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:36314 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36330 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36338 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:36348 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36364 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36380 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36382 - "GET /api/workflows/156 HTTP/1.1" 200 OK
INFO: 127.0.0.1:36384 - "GET /api/workflows/157 HTTP/1.1" 200 OK
INFO: 127.0.0.1:52756 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:52760 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [637888]
@@ -0,0 +1,4 @@
VITE v6.4.3 ready in 289 ms
➜ Local: http://127.0.0.1:5173/
@@ -0,0 +1,15 @@
{
"fixed_originals": 21,
"local_file_base": "docs/hel-892/birefnet-reference",
"imported_upstream": false,
"target_installation": false,
"bounded_core_files": 101,
"unknown_nodes": [
"LoadBackgroundRemovalModel",
"RemoveBackground"
],
"exact_commits": [
"3086026401180c9216bcb6ace442a4e3587d2c66",
"f754141537fecaae53d635d94615f588b0e39f95"
]
}
@@ -0,0 +1,433 @@
[
{
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha1": "9d99de736806f8eeffed114cc1ba075c16276b69",
"raw_sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036",
"canonical_sha256": "d2424149db6ebbd2d49a9020457eb6349ac96d97f46de9dbf4ecc021692e6ea7",
"nodes": [
{
"id": 22,
"type": "RemoveBackground",
"pos": [
-6388.49883136883,
1933.967004261379
],
"size": [
302.25,
72
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": 20
},
{
"localized_name": "bg_removal_model",
"name": "bg_removal_model",
"type": "BACKGROUND_REMOVAL",
"link": 17
}
],
"outputs": [
{
"localized_name": "mask",
"name": "mask",
"type": "MASK",
"links": [
18,
23
]
}
],
"properties": {
"Node name for S&R": "RemoveBackground",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 24,
"type": "InvertMask",
"pos": [
-6384.180167915791,
2060.0817920441295
],
"size": [
285.984375,
48
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "遮罩",
"name": "mask",
"type": "MASK",
"link": 18
}
],
"outputs": [
{
"localized_name": "遮罩",
"name": "MASK",
"type": "MASK",
"links": [
19
]
}
],
"properties": {
"Node name for S&R": "InvertMask",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 25,
"type": "JoinImageWithAlpha",
"pos": [
-6379.171024549788,
2163.2711585504258
],
"size": [
284.96875,
72
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"localized_name": "图像",
"name": "image",
"type": "IMAGE",
"link": 21
},
{
"localized_name": "阿尔法",
"name": "alpha",
"type": "MASK",
"link": 19
}
],
"outputs": [
{
"localized_name": "图像",
"name": "IMAGE",
"type": "IMAGE",
"links": [
22
]
}
],
"properties": {
"Node name for S&R": "JoinImageWithAlpha",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 23,
"type": "LoadBackgroundRemovalModel",
"pos": [
-6394.605214959123,
1767.8227594880282
],
"size": [
311.484375,
85.515625
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "bg_removal_name",
"name": "bg_removal_name",
"type": "COMBO",
"widget": {
"name": "bg_removal_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "bg_model",
"name": "bg_model",
"type": "BACKGROUND_REMOVAL",
"links": [
17
]
}
],
"properties": {
"Node name for S&R": "LoadBackgroundRemovalModel",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
},
"models": [
{
"name": "birefnet.safetensors",
"url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors",
"directory": "background_removal"
}
]
},
"widgets_values": [
"birefnet.safetensors"
]
},
{
"id": 21,
"type": "MarkdownNote",
"pos": [
-7314.2511240714375,
1923.5548308282498
],
"size": [
497.234375,
630.953125
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Model Link",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"## Model Link (for Local Users)\n\n**background_removal**\n\n- [birefnet.safetensors](https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 background_removal/\n│ └── birefnet.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 18,
"type": "PreviewImage",
"pos": [
-6046.062478322433,
1940.1805319999396
],
"size": [
225,
280
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"localized_name": "图像",
"name": "images",
"type": "IMAGE",
"link": 22
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 20,
"type": "MaskPreview",
"pos": [
-5774.777845953135,
1941.0306597152894
],
"size": [
225,
280
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"label": "遮罩",
"localized_name": "遮罩",
"name": "mask",
"type": "MASK",
"link": 23
}
],
"outputs": [],
"properties": {
"Node name for S&R": "MaskPreview",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 17,
"type": "LoadImage",
"pos": [
-6716.521785193713,
1934.180571126952
],
"size": [
290,
340
],
"flags": {},
"order": 2,
"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": [
20,
21
]
},
{
"localized_name": "遮罩",
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"cnr_id": "comfy-core",
"ver": "0.19.3",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"20260425_192628_Z-Image_00001_.png",
"image"
]
}
],
"links": [
[
17,
23,
0,
22,
1,
"BACKGROUND_REMOVAL"
],
[
18,
22,
0,
24,
0,
"MASK"
],
[
19,
24,
0,
25,
1,
"MASK"
],
[
20,
17,
0,
22,
0,
"IMAGE"
],
[
21,
17,
0,
25,
0,
"IMAGE"
],
[
22,
25,
0,
18,
0,
"IMAGE"
],
[
23,
22,
0,
20,
0,
"MASK"
]
],
"saved_fields": 3,
"history_objects": 0
}
]
@@ -0,0 +1 @@
PASS 21 exact originals; bounded 101-file Git blob ledger; no upstream execution
@@ -0,0 +1,3 @@
........................................................................ [ 80%]
.................. [100%]
90 passed, 1 warning in 0.19s
@@ -0,0 +1,22 @@
# 仓库根;既有Python3.11/锁定依赖;不执行上游插件,不读取媒体/目标机。
uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
npm ci --prefix calliope-web --ignore-scripts --offline
python3 docs/hel-892/birefnet-document-evidence/verify_sources.py
python3 docs/hel-892/birefnet-document-evidence/rebuild.py
uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py
uv build --project calliope-backend --offline
uv run --project calliope-backend --offline python docs/hel-892/birefnet-document-evidence/recompute.py
python3 docs/hel-892/birefnet-document-evidence/repeat.py
uv run --project calliope-backend --offline pytest calliope-backend/tests/test_birefnet_fixed_document.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_latent_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_frames_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_concat_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_gif_images_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation calliope-backend/tests/test_grid_fixed_document.py::test_only_two_reviews_change_and_all_old_blocks_preserved calliope-backend/tests/test_gemma_fixed_document.py::test_real_document_and_frozen_old_thirteen_blocks calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent calliope-backend/tests/test_controlnet_fixed_document.py::test_other_documents_and_block_swaps -q --disable-warnings
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/birefnet-document-evidence e2e/run-birefnet-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_{birefnet,latent,frames,concat,gif_images,reverse,nlf,openpose,grid,gemma,sdpose,background,controlnet}_fixed_document.py
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/birefnet-document-evidence e2e/run-birefnet-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_{birefnet,latent,frames,concat,gif_images,reverse,nlf,openpose,grid,gemma,sdpose,background,controlnet}_fixed_document.py
node --check e2e/birefnet-document.mjs
LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-birefnet-document.py
# 浏览runner finally终止两个本地服务;产物按下列精确路径复制后复算请求:
cp .local-evidence/birefnet-document/browser/browser-results.json docs/hel-892/birefnet-document-evidence/browser-results.json
cp .local-evidence/birefnet-document/browser/service-0.log docs/hel-892/birefnet-document-evidence/service-0.txt
cp .local-evidence/birefnet-document/browser/service-1.log docs/hel-892/birefnet-document-evidence/service-1.txt
python3 docs/hel-892/birefnet-document-evidence/request_counts.py
# 可选:需要在线重新获取固定文本原件及复核101文件有界检索时(不读取权重/媒体):
# python3 docs/hel-892/birefnet-document-evidence/fetch_sources.py
@@ -0,0 +1,47 @@
"""Verify exact static originals and bounded-search provenance without running upstream."""
from __future__ import annotations
import hashlib
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1] / "birefnet-reference"
def main():
entries = json.loads((ROOT / "sources.json").read_bytes())["sources"]
trees = {
key: json.loads((ROOT / (key + "-tree.json")).read_bytes()) for key in ["core", "frontend"]
}
for tree in trees.values():
assert not tree["truncated"]
for entry in entries:
raw = (ROOT / entry["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == entry["sha256"]
assert len(entry["commit"]) == 40 and entry["commit"] in entry["url"]
blob = next(x for x in trees[entry["id"]]["tree"] if x["path"] == entry["file"])
assert (
hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() == blob["sha"]
)
search = json.loads((ROOT / "core-bounded-search.json").read_bytes())
assert not search["errors"] and not search["tree_truncated"]
expected = {
e["path"]: e["sha"]
for e in trees["core"]["tree"]
if e["path"] == "nodes.py"
or e["path"].startswith("comfy_extras/")
and e["path"].endswith(".py")
}
assert len(expected) == 101
assert {e["path"]: e["git_blob_sha1"] for e in search["files"]} == expected
assert search["matches"]["RemoveBackground"] == []
assert search["matches"]["LoadBackgroundRemovalModel"] == []
print(
f"PASS {len(entries)} exact originals; bounded 101-file Git blob ledger; "
"no upstream execution"
)
if __name__ == "__main__":
main()
@@ -0,0 +1,683 @@
{
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"scope": "nodes.py and every comfy_extras Python file in exact complete tree; no historical or newer versions",
"tree_truncated": false,
"files": [
{
"path": "comfy_extras/chainner_models/model_loading.py",
"sha256": "77a335bd0a09350d313d814c46bd030fa22c4766244a93fb659be39e7fc9c4a2",
"git_blob_sha1": "1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c",
"bytes": 260
},
{
"path": "comfy_extras/nodes_ace.py",
"sha256": "7afdf129aa76e2bc990dfac1848b21a35737777ac24379d725b24c99b588b36b",
"git_blob_sha1": "cbfaf913d8be3000e80c854eb999ee8cba388eb8",
"bytes": 6933
},
{
"path": "comfy_extras/nodes_advanced_samplers.py",
"sha256": "6431678bb0ec742625dfaf16e828b28f7617aa13c16961c96179fb8c79948c73",
"git_blob_sha1": "7f716cd76b29b4e8365f24b381ef91d2d48bda07",
"bytes": 4461
},
{
"path": "comfy_extras/nodes_align_your_steps.py",
"sha256": "c78c0ec0c8e407cda18ad5ae9f9eb7d456d6e204df857f3e9f8e8ebd8a21ee91",
"git_blob_sha1": "4fc511d2c4c01f9365ce8d53e9035537b7087156",
"bytes": 2686
},
{
"path": "comfy_extras/nodes_apg.py",
"sha256": "d0584e329425cc960478597dc4530c27f4b778ffacb943e522a21a07c78c0f63",
"git_blob_sha1": "fd561d3601e3908522f1dc420a9a9ee7a3db1c51",
"bytes": 3663
},
{
"path": "comfy_extras/nodes_attention_multiply.py",
"sha256": "bf17050a2146c27b21d933ddbd2003234490b9e47ff557adac1c2c64c42434a4",
"git_blob_sha1": "060a5c9bef6d0ea171cb02924e380f02e3c28f0b",
"bytes": 6515
},
{
"path": "comfy_extras/nodes_audio.py",
"sha256": "b31b607691d3c7a6deeac9e356328199824edb03c231043ce6677c6d7598acc8",
"git_blob_sha1": "a395392d86ee3fe95c9034dc652075cdb5de3cc1",
"bytes": 28736
},
{
"path": "comfy_extras/nodes_audio_encoder.py",
"sha256": "97cc72dd876f20d43fdff75aea52566d1728b668a76fbd348c8ad4078a6b6cb9",
"git_blob_sha1": "13aacd41a47e75e07cff83c7b2ff87e2c7343b30",
"bytes": 2050
},
{
"path": "comfy_extras/nodes_camera_trajectory.py",
"sha256": "88f78ce7dd65f9f2e8eacce8bb6e25f685528e9bb4fd45affc8337352420fd20",
"git_blob_sha1": "e7efa29ba87767c38ab34c3d81bb1900bd18931d",
"bytes": 9751
},
{
"path": "comfy_extras/nodes_canny.py",
"sha256": "c69f945190aaeb02fd3e81bbe21f5bf2dd70395a3bf17cbe8726261739146fff",
"git_blob_sha1": "648b4279d0eae624123bb92820a9e899fafe0744",
"bytes": 1717
},
{
"path": "comfy_extras/nodes_cfg.py",
"sha256": "d48ad5d3a84c1080e53550d4b259b2843e85d1b77502aef5026691ba6649ab40",
"git_blob_sha1": "4ebb4b51eef108fc11d2050e3ee652f2591a45b3",
"bytes": 2943
},
{
"path": "comfy_extras/nodes_chroma_radiance.py",
"sha256": "680884cf1fddd3a835f616ec9899672452d94c6176acaab2d01391e7f88d95ca",
"git_blob_sha1": "509436062c21dfda3261fb4ad18db3b539099ca3",
"bytes": 4327
},
{
"path": "comfy_extras/nodes_clip_sdxl.py",
"sha256": "f78dba317dc2a7b43801d32217709e5f60af63088a9993658409db4267d5d3ae",
"git_blob_sha1": "7a001af6f214be23b86165c34d982f619c399ebf",
"bytes": 3139
},
{
"path": "comfy_extras/nodes_color.py",
"sha256": "c04d77ae66c0481b81cbf27314272851bfeff1930c8a713d04fecf6c692c743b",
"git_blob_sha1": "80ba121cd8a76b0642cd0b2147d826989779bf18",
"bytes": 1181
},
{
"path": "comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
"bytes": 9119
},
{
"path": "comfy_extras/nodes_cond.py",
"sha256": "9672e44bc739bf5b0ce400dad25ae1ff6e32e6bf5ee29dae66048459f8bf6d44",
"git_blob_sha1": "86426a7809d8f7c7521f55300d7aa343f90ca4c2",
"bytes": 2310
},
{
"path": "comfy_extras/nodes_context_windows.py",
"sha256": "014c0bd17043e3b31e64ae5e9faf847c1f75098170c8953dea3db0ed30923923",
"git_blob_sha1": "0e43f2e4471176a0133d0d77727dda60c5f799c1",
"bytes": 7374
},
{
"path": "comfy_extras/nodes_controlnet.py",
"sha256": "d807ba4b48753d46c13c77e27e944b68f4a68f92350d14fa0c2946462974a1c6",
"git_blob_sha1": "847cb0bdf9dca4e63bf37a0d7dd92011ca3a4bff",
"bytes": 3298
},
{
"path": "comfy_extras/nodes_cosmos.py",
"sha256": "3beb089416e722270f6d1a2c8212008b5e600edc92e75540fe372815bc44c9b9",
"git_blob_sha1": "7dd129d199d2ebdcbbf7a0034d9c1a0889f5f1e2",
"bytes": 6591
},
{
"path": "comfy_extras/nodes_curve.py",
"sha256": "fc6a89e577a1d423387c8f198012c3eab1adae8bef38e9e40943e0c588dda9c5",
"git_blob_sha1": "9803e803491aba4c2fae743debb9aed33c2faaa2",
"bytes": 2743
},
{
"path": "comfy_extras/nodes_custom_sampler.py",
"sha256": "7e06b75ee557082508a3493cdddac9c131acd80c002c7e79fb8592c78f84dc5c",
"git_blob_sha1": "1e957c09beac12e6e68038ae9ea53f14938aeff0",
"bytes": 42838
},
{
"path": "comfy_extras/nodes_dataset.py",
"sha256": "ec26df2e49cefa07c396925cc135b8a93a9150331eb42e1dd5d3b11dc396faaf",
"git_blob_sha1": "98ed25d7ee234421f175554292e012c5a183a3b6",
"bytes": 53308
},
{
"path": "comfy_extras/nodes_differential_diffusion.py",
"sha256": "56ee7c6eb70a11bb64cd73d56dbec1ec11eca0b6800aba30e9a4d5cc1f55798d",
"git_blob_sha1": "34ffb9a89f4407ea53dde94fd9760d2b5ce2166d",
"bytes": 2534
},
{
"path": "comfy_extras/nodes_easycache.py",
"sha256": "a4345ef9841d6b1c94be367b4efae030d7873baa33933d067199591b6da5da30",
"git_blob_sha1": "923c2bb05b9403c12ac0ce1227469dfafa0832a7",
"bytes": 27158
},
{
"path": "comfy_extras/nodes_edit_model.py",
"sha256": "e8d03a4ca5f7b8025f565d0fa7b4f0119693f2f35837db2a4114361537f78da3",
"git_blob_sha1": "36da66f34e1d19e54ed2ffc8338a232bf8879945",
"bytes": 1263
},
{
"path": "comfy_extras/nodes_eps.py",
"sha256": "f1b04fb532598697c7b567c4ed4e466f6ae887999490bfba66065a5a7ece9c1f",
"git_blob_sha1": "0fb3871c8417ad8085209c82f8193f448621875c",
"bytes": 5896
},
{
"path": "comfy_extras/nodes_flux.py",
"sha256": "1539dc519622750dcd2bca2269c23383f7dc40c847c9ccb1a72cf07dce2593f1",
"git_blob_sha1": "3a23c7d04b7f8e5f62ddfcb77cb068702d9b5d80",
"bytes": 10337
},
{
"path": "comfy_extras/nodes_freelunch.py",
"sha256": "a2f79257fdfb7590df14846d7372d2281b72720a44e427993c356de7166342b0",
"git_blob_sha1": "248efdef38ee4cdf9d7b9a9e4d7c64ed24678c88",
"bytes": 5496
},
{
"path": "comfy_extras/nodes_fresca.py",
"sha256": "6985a670faf68c3ff9f056398159e743d6ef313980058c3f5d63bfd7c2a74fde",
"git_blob_sha1": "eab4f303fc8b903f8c8bc1f5717ed05590c22126",
"bytes": 3976
},
{
"path": "comfy_extras/nodes_gits.py",
"sha256": "5119d2e7b60275aaf58c9693149496018de89d298e4ee5c36ffe5fc335e14c6c",
"git_blob_sha1": "d484838629dc336fe17cde27877a97f16b2b3537",
"bytes": 46473
},
{
"path": "comfy_extras/nodes_glsl.py",
"sha256": "3f49ba4973a3fe547e0d7adf2f7b07c76e6a748f733e5e29053de704bc7743c2",
"git_blob_sha1": "ea7420a734cf4f19838c745e61249bfa09666f10",
"bytes": 37257
},
{
"path": "comfy_extras/nodes_hidream.py",
"sha256": "1d2cc590c282db3e848a4d59951cadbeffcb971ef4e1fb760e7fd2de17766d9a",
"git_blob_sha1": "e345fe51da1a651d2ea1640dbfcad8e4df487810",
"bytes": 2993
},
{
"path": "comfy_extras/nodes_hooks.py",
"sha256": "3719fd29474d17141f69286314a1fd29ebae73bb0ff551b48756e3423f1cc925",
"git_blob_sha1": "056369e8683e87aad53d4be800d54022489baaa7",
"bytes": 29120
},
{
"path": "comfy_extras/nodes_hunyuan.py",
"sha256": "cff4f6b68902048ac55fd7dff37fb294a09b299a2817f23acc039911931ce1e3",
"git_blob_sha1": "4ea93a499f78c699112b8a734cba340aaa3b0383",
"bytes": 19718
},
{
"path": "comfy_extras/nodes_hunyuan3d.py",
"sha256": "6239e51d4dbc5de2dbe8bdc14b20ad472a6ab6db424c936709910fae1b66b8a0",
"git_blob_sha1": "df0c3e4b1bd597b74e336ef52985a8590732833a",
"bytes": 22771
},
{
"path": "comfy_extras/nodes_hypernetwork.py",
"sha256": "f91cd2ebea4e38d83b89aa6dba7ab2d7b7dd78b08491d8e0ddb4d79e5e91ffc7",
"git_blob_sha1": "2a6a87a816fa0b04eeb89ac33af2e0d9614a14a3",
"bytes": 5053
},
{
"path": "comfy_extras/nodes_hypertile.py",
"sha256": "860457f0f5ec9053bc07457d10726b17d4561c02e7d4143c79cb03b8946eba29",
"git_blob_sha1": "354d96db1e2356570d74999e708f2ad7f96f13bd",
"bytes": 3441
},
{
"path": "comfy_extras/nodes_image_compare.py",
"sha256": "e0289cfdc36a652915663203760cd1049dbf34551a4eabdc12dfe9ca8aa6777d",
"git_blob_sha1": "3d943be67395b9097bc9d85eeecd48a6a4a03199",
"bytes": 1675
},
{
"path": "comfy_extras/nodes_images.py",
"sha256": "ab59367340794f9039c2c725f860d37e897bdf8d39417ec10b962184938763dd",
"git_blob_sha1": "a77f0641f6850af8a6b163286f553c19c5109ad5",
"bytes": 30375
},
{
"path": "comfy_extras/nodes_ip2p.py",
"sha256": "72b4992b1418e8112e0501816495fa10c4c1c0dc2d287a316a8a1769fb326554",
"git_blob_sha1": "78f29915db2e5038da2f62fc82fc30a3e1a0800d",
"bytes": 1964
},
{
"path": "comfy_extras/nodes_kandinsky5.py",
"sha256": "e1eb4cba5e95de5b3d8fb69fdc128f449230b73d0a9fce4777ad8bdd5fc213c0",
"git_blob_sha1": "346c50cde2aa33c1d7b0e428f2f10036e2e04dcd",
"bytes": 6188
},
{
"path": "comfy_extras/nodes_latent.py",
"sha256": "7afac8daa225e5dfd0e526e47545d1f929847ba2f4d1b6b9f5dac93585f05e6c",
"git_blob_sha1": "8bb368dec4295a51d0f0c0f4ea50079a5248d630",
"bytes": 17378
},
{
"path": "comfy_extras/nodes_load_3d.py",
"sha256": "3707b88a58c33b169d182a763b7bbd16012bd3f96beb6105494ca76b52e1a584",
"git_blob_sha1": "9112bdd0a49b5b9ccd77bbc778593b7dfa482cb6",
"bytes": 4815
},
{
"path": "comfy_extras/nodes_logic.py",
"sha256": "fc6d8f56346aa637266ccd2da4c8a942d6bfcf5c1d9dd66f761d08a2fd0afd4b",
"git_blob_sha1": "c066064acc40293a5cc41ffe81f3c53552a5c5b6",
"bytes": 9914
},
{
"path": "comfy_extras/nodes_lora_debug.py",
"sha256": "614d58ec5166e493c0d5a3dee525c434fff1c892f770c8f22cab87d86ed9f01b",
"git_blob_sha1": "937a0fbfba8e5e8f24b14dee3b04bab221b3896d",
"bytes": 3224
},
{
"path": "comfy_extras/nodes_lora_extract.py",
"sha256": "0b256573c6d37cd689fd66ab8d36a1dc7ae9452fdbb3d71333aa91ae5646ff57",
"git_blob_sha1": "975f90f456e49bc7723c0187e625ba65d98609f4",
"bytes": 5778
},
{
"path": "comfy_extras/nodes_lotus.py",
"sha256": "8a408ede6fd1b83e913bfce585394ae2c17c748bd6d80f596a603f020253a903",
"git_blob_sha1": "9f62ba2bf3b54a1d42e693b0db4696640ec0d354",
"bytes": 34027
},
{
"path": "comfy_extras/nodes_lt.py",
"sha256": "b324091efc81f7014d18481d211349bb6b3be156b9472cf84316c913be7b318a",
"git_blob_sha1": "d7c2e874470fd6fc6efaf748caf98e7abb7a3dd5",
"bytes": 31766
},
{
"path": "comfy_extras/nodes_lt_audio.py",
"sha256": "97f57848980915d9d8b41ca49ba4ce00407e48346ba4bda8da196f633b194191",
"git_blob_sha1": "3e4222264f221edef4780ff08e227b169a827c20",
"bytes": 7627
},
{
"path": "comfy_extras/nodes_lt_upsampler.py",
"sha256": "b2d5e0599007dcfa8cf243e1facfd7a74a049895dae923859404a304297524e8",
"git_blob_sha1": "f99ba13fb552203c7194809310aebad77d359ae6",
"bytes": 2330
},
{
"path": "comfy_extras/nodes_lumina2.py",
"sha256": "d6a19484ff4e92bd57129380f88a37b10eb9336914ea64ba09be86a88d81bac3",
"git_blob_sha1": "b35ab8b7dadfa24de70009f0f230c3000fd4f30b",
"bytes": 5535
},
{
"path": "comfy_extras/nodes_mahiro.py",
"sha256": "881256c8c527dc26bad32cb21739c740dce776e13cb78043a882cf37f112d9ac",
"git_blob_sha1": "a25226e6d7567a95adc0eddb6b3c3ab43ccc92aa",
"bytes": 2041
},
{
"path": "comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
"git_blob_sha1": "c446025974bcb83deea6abf11e870015f45da960",
"bytes": 16358
},
{
"path": "comfy_extras/nodes_math.py",
"sha256": "728643ca9f90c235e414a8c5ae54dc66889d618afabc0fd1013c5051307bf6d7",
"git_blob_sha1": "6417bacf1ed234de3e1bcea51945db4138bc02f3",
"bytes": 3485
},
{
"path": "comfy_extras/nodes_mochi.py",
"sha256": "70f2abd2f6f02249b70a2f24682189d902bfd4eee6ec062aac71f54af22e5d32",
"git_blob_sha1": "d750194fcc1932384a2a9d636ee50369b79604cb",
"bytes": 1367
},
{
"path": "comfy_extras/nodes_model_advanced.py",
"sha256": "0d908980223fc4b460d0e80b9b69e6ca3b7244bff76f052fdbc6f84381b5b705",
"git_blob_sha1": "8bf6a1afa0c72d5f66e3da23f9f9a42e70f38e12",
"bytes": 12565
},
{
"path": "comfy_extras/nodes_model_downscale.py",
"sha256": "378507298838f6ca381e714a99b1c441428b4af443433c7d4eaaef4dabaac0c4",
"git_blob_sha1": "24d47a9034c12ee9de8b4e4379b6dfeedcb44bfd",
"bytes": 2923
},
{
"path": "comfy_extras/nodes_model_merging.py",
"sha256": "236f6ac8cdf35798c8f42e64b989b7ff2be609e77b280dcb1c0d6c4c4c12ada3",
"git_blob_sha1": "5384ed531c52a78f9af681286c06486ca59d75bc",
"bytes": 14000
},
{
"path": "comfy_extras/nodes_model_merging_model_specific.py",
"sha256": "c5e7f3b7d9735ea6a8f52f513f30846868bead443d77d01643a586268d635473",
"git_blob_sha1": "55eb3ccfeadd4dd824932503ce244ecedc815f26",
"bytes": 11580
},
{
"path": "comfy_extras/nodes_model_patch.py",
"sha256": "916f0f8ce816ced96e08a2365262ed6c86c0fe49dba0a99cccddbf22b0fe3465",
"git_blob_sha1": "176e6bc2f7664c0ed437b3bb32cd3f5685117f27",
"bytes": 24626
},
{
"path": "comfy_extras/nodes_morphology.py",
"sha256": "913d84e358b3a726f3b0901d8129c42c1907f984805c8da2adea7a900915cf9a",
"git_blob_sha1": "4ab2fb7e8b8e670e2f3d4505ec6aabdf82f49a80",
"bytes": 3984
},
{
"path": "comfy_extras/nodes_nag.py",
"sha256": "239608d6afa81adad93c0c670216c44217a875df7119e42db6645fb03c8dd25c",
"git_blob_sha1": "b571818486f123b535e80d9d858d2708a252b599",
"bytes": 4266
},
{
"path": "comfy_extras/nodes_nop.py",
"sha256": "24aa9d23da794653c6e9084bea1696ed78c794335985d4c76be7be3b00949019",
"git_blob_sha1": "953061bcb77e5224c13b4ef2dd0f8d8fd7224f7d",
"bytes": 1331
},
{
"path": "comfy_extras/nodes_number_convert.py",
"sha256": "d6421f4b903eb7d05019ac4e8b4fd474345a7c30782f1059106e744b5412c498",
"git_blob_sha1": "cac7e736dfb8c9ac1e41b29b9fbdb392782a24f9",
"bytes": 2879
},
{
"path": "comfy_extras/nodes_optimalsteps.py",
"sha256": "4825d82e67eae07bb7774280db9a2c00d3545e30036a5ad7715860e5d2983050",
"git_blob_sha1": "73f0104d8bc5fcc503bde7c252fbd7d2c9b1263d",
"bytes": 2485
},
{
"path": "comfy_extras/nodes_pag.py",
"sha256": "aa810f29eb718dcd772963a62fdb2dc7c3352db9dd77b06f0009b1afafc2ed4d",
"git_blob_sha1": "79fea5f0cee47b953fc4b0026de58b9af6880c2e",
"bytes": 2181
},
{
"path": "comfy_extras/nodes_painter.py",
"sha256": "70abd5824d754a01a9df6bbef296eec2ab3267263150c5fe4b194c910cd87f00",
"git_blob_sha1": "e104c84802fd4d9cb2ff182e9592a98bdd03ebeb",
"bytes": 4125
},
{
"path": "comfy_extras/nodes_perpneg.py",
"sha256": "1efcafeb5a59e70ee7fde83fdb2cbad81e428b85f64a68b3c2a1c8683ec198d5",
"git_blob_sha1": "ed1467de9553cbd1358380bd45bc131876da56fd",
"bytes": 6551
},
{
"path": "comfy_extras/nodes_photomaker.py",
"sha256": "cfadf65f87a94cc2b7a8427c7f5f26125bbb402a647919056b73f4527be8633d",
"git_blob_sha1": "228183c074e2f946b21a5975507b7b17ac6fd257",
"bytes": 8099
},
{
"path": "comfy_extras/nodes_pixart.py",
"sha256": "17aa8bae15b3648c7bc9497bb314cd44897abcce63557a9b0ad6cb74e581e28e",
"git_blob_sha1": "2f1b73e60171ffd7670481c24e3ab72a1a0ac7f2",
"bytes": 1489
},
{
"path": "comfy_extras/nodes_post_processing.py",
"sha256": "99efdf998a8c255cdd57fe1d151d8f1cfb6a749e9c05998829fe446a20ddd868",
"git_blob_sha1": "9037c3d204308865b27aee19665b828e7179b4b0",
"bytes": 29669
},
{
"path": "comfy_extras/nodes_preview_any.py",
"sha256": "df7bcbbb6d123b7179b1b5a32f4aaada69590eb278fb0eae208e7caa798c6148",
"git_blob_sha1": "0a1558f2b24ce26a68fe1978609ac88ebdb9bcd4",
"bytes": 1301
},
{
"path": "comfy_extras/nodes_primitive.py",
"sha256": "3d89e428cb9259cee76f53932d9e6d53de8053cee98696072863190337b60a1b",
"git_blob_sha1": "9c2e98758ea35aa8e4be98fa0c1a6c5a6bf0d568",
"bytes": 2876
},
{
"path": "comfy_extras/nodes_qwen.py",
"sha256": "4069f973a0c54357b734a387b00e62d4c62d161bb2b312f3ceb38de37c81342c",
"git_blob_sha1": "6894367bebc71f48a8e0e4066f64ba6a2b162afd",
"bytes": 6013
},
{
"path": "comfy_extras/nodes_rebatch.py",
"sha256": "99d68e6aa9bb25b38fbe815a8b375b8157d2cd2ae571771d9d1ded089d87c66a",
"git_blob_sha1": "5f4e82aef2a06ad7c9a717f74d8d2880a85090be",
"bytes": 5655
},
{
"path": "comfy_extras/nodes_replacements.py",
"sha256": "f9f79a62cc770ed7cb802d454e99306c94342e546281f36b46d6e7da8ccc6543",
"git_blob_sha1": "7684e854cf1f1dde44540528e2edaf6f5bfe41bf",
"bytes": 3888
},
{
"path": "comfy_extras/nodes_resolution.py",
"sha256": "6f1612dc3e1bfe809cf46fe72916096f8d95c5a783fbe85420aef8a4f66477f8",
"git_blob_sha1": "520b4067e271b928d2a75f56bded77b63aabbdd6",
"bytes": 2851
},
{
"path": "comfy_extras/nodes_rope.py",
"sha256": "e7b9f88d785198bb3b647adc24e6d514817ab39a0e498c4e805ca014e1366bac",
"git_blob_sha1": "918ddc02b9d3ee73c14b8c11face19b3f5c1d52d",
"bytes": 1653
},
{
"path": "comfy_extras/nodes_rtdetr.py",
"sha256": "7587e89e24b246d842a5415ca382f4b93b75b929e63fae67d078c488292b06a6",
"git_blob_sha1": "7feaf3ab3b170e1616e536cc32770e20987fddee",
"bytes": 6278
},
{
"path": "comfy_extras/nodes_sag.py",
"sha256": "aeca7698ee4c01af5f08d8c9481018e7f1b3c4fede297a69e1773ec8796e1b4b",
"git_blob_sha1": "d9c47851c716caa5f3e8fef89d84f84bbdcd0cc1",
"bytes": 6597
},
{
"path": "comfy_extras/nodes_sd3.py",
"sha256": "feb7e2b1b0de0fe3f76259dbd07181da4798ed4cb474783a4e333f1d4a4e7e90",
"git_blob_sha1": "c43844a1a981e4ab7a6e85202422bd9fc13f7317",
"bytes": 8112
},
{
"path": "comfy_extras/nodes_sdpose.py",
"sha256": "ef260abcf6416087677487ae9b1ae0dea39dae82d6723217f1c7d291919ac234",
"git_blob_sha1": "7d54967d52002ec593a8cd1320babc323401f926",
"bytes": 34712
},
{
"path": "comfy_extras/nodes_sdupscale.py",
"sha256": "234e7183d43f89a6a12437d2db834d19d351a9501436296473d1b5a37564efcb",
"git_blob_sha1": "5877719d3f43447b30388d0298f90a081b6ac456",
"bytes": 2159
},
{
"path": "comfy_extras/nodes_slg.py",
"sha256": "3042fb89646636eea114df5fa0090bdd8de26231bcd30bbfec304041e9ee1213",
"git_blob_sha1": "8cc1f551ec5bf2f542cd3fa5025df2add0ed3630",
"bytes": 7161
},
{
"path": "comfy_extras/nodes_stable3d.py",
"sha256": "4e90a32e091f3363fb5ff1fc28bf117d1cc1acaf8e98962d8b2a92dd7f83ad59",
"git_blob_sha1": "829c837a1b9a9590990982b7ce81a38a4d8c4302",
"bytes": 7655
},
{
"path": "comfy_extras/nodes_stable_cascade.py",
"sha256": "78b60c70d106675f79935b0180a11b6c20d55c3ff897438d8cba3f3d08dca45f",
"git_blob_sha1": "8c1aebca9ceab9a107b494294e5414dd428a316a",
"bytes": 5567
},
{
"path": "comfy_extras/nodes_string.py",
"sha256": "58e4734aa886f9ff5e1a8294f04509f0a9eb3f1b85e622b36ef2036826855d0c",
"git_blob_sha1": "604076c4e28e503000a49959b012a8ce8f3ce488",
"bytes": 14488
},
{
"path": "comfy_extras/nodes_tcfg.py",
"sha256": "d5ff403cc129654eaeef0c7f90e5128e423b370323ad739b3f1f0d7f54242c12",
"git_blob_sha1": "1a6767770ee091c1a05eef0af9a8ca667b0c72dd",
"bytes": 2695
},
{
"path": "comfy_extras/nodes_textgen.py",
"sha256": "047482ccf72225430f955efd3de86f06567fb4c08ef3241507fcfc66975f1a26",
"git_blob_sha1": "1f46d820f11ed3a971cbed6fb40e425d278a75cb",
"bytes": 13102
},
{
"path": "comfy_extras/nodes_tomesd.py",
"sha256": "8788278a89618e67cfea1ecc19259e221c4e3942720d60224bdbc8c51cf26f80",
"git_blob_sha1": "87bf29b8fa02be0583619375cb3b1ea97de05bfd",
"bytes": 7063
},
{
"path": "comfy_extras/nodes_toolkit.py",
"sha256": "6874d3d787ad285084d19f4bdf6e99c7d8d2a1e6795c4ca3ddaa29226d3c6d9d",
"git_blob_sha1": "71faf72267925c4502a9bf0360852918c05620e3",
"bytes": 1453
},
{
"path": "comfy_extras/nodes_torch_compile.py",
"sha256": "d6bfc01bc049491632dc26f4b11023d7e7b7b72e4f440e74f08f74fe58456548",
"git_blob_sha1": "c9e2e0026f4a75ee0f3f1954a26f8521abaf061a",
"bytes": 1352
},
{
"path": "comfy_extras/nodes_train.py",
"sha256": "afee4bb97c7880d2e1e1af711138b10444ab7e98b2838cfa546620a26c3cb6e2",
"git_blob_sha1": "0616dfc2dc8e63c3279c587bb66d732b80e311b1",
"bytes": 53088
},
{
"path": "comfy_extras/nodes_upscale_model.py",
"sha256": "012935fa1f89930899e0a72a69c915b70508f648a003862f19b4967406a07850",
"git_blob_sha1": "d3ee3f1c196468a2507882f37fba040661864f89",
"bytes": 4249
},
{
"path": "comfy_extras/nodes_video.py",
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
"bytes": 10735
},
{
"path": "comfy_extras/nodes_video_model.py",
"sha256": "f63bec3e23925c0f972d1a6168b8f69e0c0ed7bd6608350cd22995b4b7ce1431",
"git_blob_sha1": "bf98e6b8283de7f378b9c75a98394929374348f1",
"bytes": 7569
},
{
"path": "comfy_extras/nodes_wan.py",
"sha256": "32a82e52af410ca8352c601e2373c6477b61cd767ca8dd3bed5681bf456188dd",
"git_blob_sha1": "e50bfcd2c0dbc60bcbbe53520e66ef93da40247c",
"bytes": 79125
},
{
"path": "comfy_extras/nodes_wanmove.py",
"sha256": "02d90f09e6d22da249232e93f1a41686e165cee31c01fc0b39e4b2d88f968e77",
"git_blob_sha1": "5acae03eba86cfc112b3ff0c3d6a776cf137be1a",
"bytes": 23967
},
{
"path": "comfy_extras/nodes_webcam.py",
"sha256": "2ae1486e5820ba791cfcbc8839e90a3cf18b93a74f343fde3af7fc9a1b53816d",
"git_blob_sha1": "6349ac017afcece4442c63c8ce17ad7ae659c0fa",
"bytes": 1068
},
{
"path": "comfy_extras/nodes_zimage.py",
"sha256": "1f4c82ecb33f7a283e2930ec9e79da364f8bd83f545f4e1c035e7147017cb196",
"git_blob_sha1": "70ddc4afa8606faf5aacc8d516680b9145bdf1c0",
"bytes": 3595
},
{
"path": "nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
"bytes": 104183
}
],
"errors": [],
"matches": {
"LoadBackgroundRemovalModel": [],
"RemoveBackground": [],
"InvertMask": [
{
"path": "comfy_extras/nodes_mask.py",
"lines": [
197,
201,
434
]
}
],
"JoinImageWithAlpha": [
{
"path": "comfy_extras/nodes_compositing.py",
"lines": [
188,
192,
221
]
}
],
"PreviewImage": [
{
"path": "comfy_extras/nodes_image_compare.py",
"lines": [
32
]
},
{
"path": "comfy_extras/nodes_images.py",
"lines": [
82
]
},
{
"path": "comfy_extras/nodes_painter.py",
"lines": [
106
]
},
{
"path": "comfy_extras/nodes_train.py",
"lines": [
1469,
1474
]
},
{
"path": "nodes.py",
"lines": [
1684,
2056,
2157
]
}
],
"MaskPreview": [
{
"path": "comfy_extras/nodes_mask.py",
"lines": [
403,
407,
440
]
}
]
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,475 @@
from __future__ import annotations
import json
import os
import random
import uuid
from io import BytesIO
import av
import numpy as np
import torch
try:
import torchaudio
TORCH_AUDIO_AVAILABLE = True
except:
TORCH_AUDIO_AVAILABLE = False
from PIL import Image as PILImage
from PIL.PngImagePlugin import PngInfo
import folder_paths
# used for image preview
from comfy.cli_args import args
from ._io import ComfyNode, FolderType, Image, _UIOutput
class SavedResult(dict):
def __init__(self, filename: str, subfolder: str, type: FolderType):
super().__init__(filename=filename, subfolder=subfolder,type=type.value)
@property
def filename(self) -> str:
return self["filename"]
@property
def subfolder(self) -> str:
return self["subfolder"]
@property
def type(self) -> FolderType:
return FolderType(self["type"])
class SavedImages(_UIOutput):
"""A UI output class to represent one or more saved images, potentially animated."""
def __init__(self, results: list[SavedResult], is_animated: bool = False):
super().__init__()
self.results = results
self.is_animated = is_animated
def as_dict(self) -> dict:
data = {"images": self.results}
if self.is_animated:
data["animated"] = (True,)
return data
class SavedAudios(_UIOutput):
"""UI wrapper around one or more audio files on disk (FLAC / MP3 / Opus)."""
def __init__(self, results: list[SavedResult]):
super().__init__()
self.results = results
def as_dict(self) -> dict:
return {"audio": self.results}
def _get_directory_by_folder_type(folder_type: FolderType) -> str:
if folder_type == FolderType.input:
return folder_paths.get_input_directory()
if folder_type == FolderType.output:
return folder_paths.get_output_directory()
return folder_paths.get_temp_directory()
class ImageSaveHelper:
"""A helper class with static methods to handle image saving and metadata."""
@staticmethod
def _convert_tensor_to_pil(image_tensor: torch.Tensor) -> PILImage.Image:
"""Converts a single torch tensor to a PIL Image."""
return PILImage.fromarray(np.clip(255.0 * image_tensor.cpu().numpy(), 0, 255).astype(np.uint8))
@staticmethod
def _create_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
"""Creates a PngInfo object with prompt and extra_pnginfo."""
if args.disable_metadata or cls is None or not cls.hidden:
return None
metadata = PngInfo()
if cls.hidden.prompt:
metadata.add_text("prompt", json.dumps(cls.hidden.prompt))
if cls.hidden.extra_pnginfo:
for x in cls.hidden.extra_pnginfo:
metadata.add_text(x, json.dumps(cls.hidden.extra_pnginfo[x]))
return metadata
@staticmethod
def _create_animated_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
"""Creates a PngInfo object with prompt and extra_pnginfo for animated PNGs (APNG)."""
if args.disable_metadata or cls is None or not cls.hidden:
return None
metadata = PngInfo()
if cls.hidden.prompt:
metadata.add(
b"comf",
"prompt".encode("latin-1", "strict")
+ b"\0"
+ json.dumps(cls.hidden.prompt).encode("latin-1", "strict"),
after_idat=True,
)
if cls.hidden.extra_pnginfo:
for x in cls.hidden.extra_pnginfo:
metadata.add(
b"comf",
x.encode("latin-1", "strict")
+ b"\0"
+ json.dumps(cls.hidden.extra_pnginfo[x]).encode("latin-1", "strict"),
after_idat=True,
)
return metadata
@staticmethod
def _create_webp_metadata(pil_image: PILImage.Image, cls: type[ComfyNode] | None) -> PILImage.Exif:
"""Creates EXIF metadata bytes for WebP images."""
exif_data = pil_image.getexif()
if args.disable_metadata or cls is None or cls.hidden is None:
return exif_data
if cls.hidden.prompt is not None:
exif_data[0x0110] = "prompt:{}".format(json.dumps(cls.hidden.prompt)) # EXIF 0x0110 = Model
if cls.hidden.extra_pnginfo is not None:
inital_exif_tag = 0x010F # EXIF 0x010f = Make
for key, value in cls.hidden.extra_pnginfo.items():
exif_data[inital_exif_tag] = "{}:{}".format(key, json.dumps(value))
inital_exif_tag -= 1
return exif_data
@staticmethod
def save_images(
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, compress_level = 4,
) -> list[SavedResult]:
"""Saves a batch of images as individual PNG files."""
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
)
results = []
metadata = ImageSaveHelper._create_png_metadata(cls)
for batch_number, image_tensor in enumerate(images):
img = ImageSaveHelper._convert_tensor_to_pil(image_tensor)
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.png"
img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level)
results.append(SavedResult(file, subfolder, folder_type))
counter += 1
return results
@staticmethod
def get_save_images_ui(images, filename_prefix: str, cls: type[ComfyNode] | None, compress_level=4) -> SavedImages:
"""Saves a batch of images and returns a UI object for the node output."""
return SavedImages(
ImageSaveHelper.save_images(
images,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
compress_level=compress_level,
)
)
@staticmethod
def save_animated_png(
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, fps: float, compress_level: int
) -> SavedResult:
"""Saves a batch of images as a single animated PNG."""
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
)
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
metadata = ImageSaveHelper._create_animated_png_metadata(cls)
file = f"{filename}_{counter:05}_.png"
save_path = os.path.join(full_output_folder, file)
pil_images[0].save(
save_path,
pnginfo=metadata,
compress_level=compress_level,
save_all=True,
duration=int(1000.0 / fps),
append_images=pil_images[1:],
)
return SavedResult(file, subfolder, folder_type)
@staticmethod
def get_save_animated_png_ui(
images, filename_prefix: str, cls: type[ComfyNode] | None, fps: float, compress_level: int
) -> SavedImages:
"""Saves an animated PNG and returns a UI object for the node output."""
result = ImageSaveHelper.save_animated_png(
images,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
fps=fps,
compress_level=compress_level,
)
return SavedImages([result], is_animated=len(images) > 1)
@staticmethod
def save_animated_webp(
images,
filename_prefix: str,
folder_type: FolderType,
cls: type[ComfyNode] | None,
fps: float,
lossless: bool,
quality: int,
method: int,
) -> SavedResult:
"""Saves a batch of images as a single animated WebP."""
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
)
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
pil_exif = ImageSaveHelper._create_webp_metadata(pil_images[0], cls)
file = f"{filename}_{counter:05}_.webp"
pil_images[0].save(
os.path.join(full_output_folder, file),
save_all=True,
duration=int(1000.0 / fps),
append_images=pil_images[1:],
exif=pil_exif,
lossless=lossless,
quality=quality,
method=method,
)
return SavedResult(file, subfolder, folder_type)
@staticmethod
def get_save_animated_webp_ui(
images,
filename_prefix: str,
cls: type[ComfyNode] | None,
fps: float,
lossless: bool,
quality: int,
method: int,
) -> SavedImages:
"""Saves an animated WebP and returns a UI object for the node output."""
result = ImageSaveHelper.save_animated_webp(
images,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
fps=fps,
lossless=lossless,
quality=quality,
method=method,
)
return SavedImages([result], is_animated=len(images) > 1)
class AudioSaveHelper:
"""A helper class with static methods to handle audio saving and metadata."""
_OPUS_RATES = [8000, 12000, 16000, 24000, 48000]
@staticmethod
def save_audio(
audio: dict,
filename_prefix: str,
folder_type: FolderType,
cls: type[ComfyNode] | None,
format: str = "flac",
quality: str = "128k",
) -> list[SavedResult]:
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type)
)
metadata = {}
if not args.disable_metadata and cls is not None:
if cls.hidden.prompt is not None:
metadata["prompt"] = json.dumps(cls.hidden.prompt)
if cls.hidden.extra_pnginfo is not None:
for x in cls.hidden.extra_pnginfo:
metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
results = []
for batch_number, waveform in enumerate(audio["waveform"].cpu()):
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.{format}"
output_path = os.path.join(full_output_folder, file)
# Use original sample rate initially
sample_rate = audio["sample_rate"]
# Handle Opus sample rate requirements
if format == "opus":
if sample_rate > 48000:
sample_rate = 48000
elif sample_rate not in AudioSaveHelper._OPUS_RATES:
# Find the next highest supported rate
for rate in sorted(AudioSaveHelper._OPUS_RATES):
if rate > sample_rate:
sample_rate = rate
break
if sample_rate not in AudioSaveHelper._OPUS_RATES: # Fallback if still not supported
sample_rate = 48000
# Resample if necessary
if sample_rate != audio["sample_rate"]:
if not TORCH_AUDIO_AVAILABLE:
raise Exception("torchaudio is not available; cannot resample audio.")
waveform = torchaudio.functional.resample(waveform, audio["sample_rate"], sample_rate)
# Create output with specified format
output_buffer = BytesIO()
output_container = av.open(output_buffer, mode="w", format=format)
# Set metadata on the container
for key, value in metadata.items():
output_container.metadata[key] = value
layout = "mono" if waveform.shape[0] == 1 else "stereo"
# Set up the output stream with appropriate properties
if format == "opus":
out_stream = output_container.add_stream("libopus", rate=sample_rate, layout=layout)
if quality == "64k":
out_stream.bit_rate = 64000
elif quality == "96k":
out_stream.bit_rate = 96000
elif quality == "128k":
out_stream.bit_rate = 128000
elif quality == "192k":
out_stream.bit_rate = 192000
elif quality == "320k":
out_stream.bit_rate = 320000
elif format == "mp3":
out_stream = output_container.add_stream("libmp3lame", rate=sample_rate, layout=layout)
if quality == "V0":
# TODO i would really love to support V3 and V5 but there doesn't seem to be a way to set the qscale level, the property below is a bool
out_stream.codec_context.qscale = 1
elif quality == "128k":
out_stream.bit_rate = 128000
elif quality == "320k":
out_stream.bit_rate = 320000
else: # format == "flac":
out_stream = output_container.add_stream("flac", rate=sample_rate, layout=layout)
frame = av.AudioFrame.from_ndarray(
waveform.movedim(0, 1).reshape(1, -1).float().numpy(),
format="flt",
layout=layout,
)
frame.sample_rate = sample_rate
frame.pts = 0
output_container.mux(out_stream.encode(frame))
# Flush encoder
output_container.mux(out_stream.encode(None))
# Close containers
output_container.close()
# Write the output to file
output_buffer.seek(0)
with open(output_path, "wb") as f:
f.write(output_buffer.getbuffer())
results.append(SavedResult(file, subfolder, folder_type))
counter += 1
return results
@staticmethod
def get_save_audio_ui(
audio, filename_prefix: str, cls: type[ComfyNode] | None, format: str = "flac", quality: str = "128k",
) -> SavedAudios:
"""Save and instantly wrap for UI."""
return SavedAudios(
AudioSaveHelper.save_audio(
audio,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
format=format,
quality=quality,
)
)
class PreviewImage(_UIOutput):
def __init__(self, image: Image.Type, animated: bool = False, cls: type[ComfyNode] = None, **kwargs):
self.values = ImageSaveHelper.save_images(
image,
filename_prefix="ComfyUI_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for _ in range(5)),
folder_type=FolderType.temp,
cls=cls,
compress_level=1,
)
self.animated = animated
def as_dict(self):
return {
"images": self.values,
"animated": (self.animated,)
}
class PreviewMask(PreviewImage):
def __init__(self, mask: PreviewMask.Type, animated: bool=False, cls: ComfyNode=None, **kwargs):
preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3)
super().__init__(preview, animated, cls, **kwargs)
class PreviewAudio(_UIOutput):
def __init__(self, audio: dict, cls: type[ComfyNode] = None, **kwargs):
self.values = AudioSaveHelper.save_audio(
audio,
filename_prefix="ComfyUI_temp_" + "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(5)),
folder_type=FolderType.temp,
cls=cls,
format="flac",
quality="128k",
)
def as_dict(self) -> dict:
return {"audio": self.values}
class PreviewVideo(_UIOutput):
def __init__(self, values: list[SavedResult | dict], **kwargs):
self.values = values
def as_dict(self):
return {"images": self.values, "animated": (True,)}
class PreviewUI3D(_UIOutput):
def __init__(self, model_file, camera_info, **kwargs):
self.model_file = model_file
self.camera_info = camera_info
self.bg_image_path = None
bg_image = kwargs.get("bg_image", None)
if bg_image is not None:
img_array = (bg_image[0].cpu().numpy() * 255).astype(np.uint8)
img = PILImage.fromarray(img_array)
temp_dir = folder_paths.get_temp_directory()
filename = f"bg_{uuid.uuid4().hex}.png"
bg_image_path = os.path.join(temp_dir, filename)
img.save(bg_image_path, compress_level=1)
self.bg_image_path = f"temp/{filename}"
def as_dict(self):
return {"result": [self.model_file, self.camera_info, self.bg_image_path]}
class PreviewText(_UIOutput):
def __init__(self, value: str, **kwargs):
self.value = value
def as_dict(self):
return {"text": (self.value,)}
__all__ = [
"SavedResult",
"SavedImages",
"SavedAudios",
"ImageSaveHelper",
"AudioSaveHelper",
"PreviewImage",
"PreviewMask",
"PreviewAudio",
"PreviewVideo",
"PreviewUI3D",
"PreviewText",
]
@@ -0,0 +1,226 @@
import torch
import comfy.utils
from enum import Enum
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
def resize_mask(mask, shape):
return torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(shape[0], shape[1]), mode="bilinear").squeeze(1)
class PorterDuffMode(Enum):
ADD = 0
CLEAR = 1
DARKEN = 2
DST = 3
DST_ATOP = 4
DST_IN = 5
DST_OUT = 6
DST_OVER = 7
LIGHTEN = 8
MULTIPLY = 9
OVERLAY = 10
SCREEN = 11
SRC = 12
SRC_ATOP = 13
SRC_IN = 14
SRC_OUT = 15
SRC_OVER = 16
XOR = 17
def porter_duff_composite(src_image: torch.Tensor, src_alpha: torch.Tensor, dst_image: torch.Tensor, dst_alpha: torch.Tensor, mode: PorterDuffMode):
# convert mask to alpha
src_alpha = 1 - src_alpha
dst_alpha = 1 - dst_alpha
# premultiply alpha
src_image = src_image * src_alpha
dst_image = dst_image * dst_alpha
# composite ops below assume alpha-premultiplied images
if mode == PorterDuffMode.ADD:
out_alpha = torch.clamp(src_alpha + dst_alpha, 0, 1)
out_image = torch.clamp(src_image + dst_image, 0, 1)
elif mode == PorterDuffMode.CLEAR:
out_alpha = torch.zeros_like(dst_alpha)
out_image = torch.zeros_like(dst_image)
elif mode == PorterDuffMode.DARKEN:
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
out_image = (1 - dst_alpha) * src_image + (1 - src_alpha) * dst_image + torch.min(src_image, dst_image)
elif mode == PorterDuffMode.DST:
out_alpha = dst_alpha
out_image = dst_image
elif mode == PorterDuffMode.DST_ATOP:
out_alpha = src_alpha
out_image = src_alpha * dst_image + (1 - dst_alpha) * src_image
elif mode == PorterDuffMode.DST_IN:
out_alpha = src_alpha * dst_alpha
out_image = dst_image * src_alpha
elif mode == PorterDuffMode.DST_OUT:
out_alpha = (1 - src_alpha) * dst_alpha
out_image = (1 - src_alpha) * dst_image
elif mode == PorterDuffMode.DST_OVER:
out_alpha = dst_alpha + (1 - dst_alpha) * src_alpha
out_image = dst_image + (1 - dst_alpha) * src_image
elif mode == PorterDuffMode.LIGHTEN:
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
out_image = (1 - dst_alpha) * src_image + (1 - src_alpha) * dst_image + torch.max(src_image, dst_image)
elif mode == PorterDuffMode.MULTIPLY:
out_alpha = src_alpha * dst_alpha
out_image = src_image * dst_image
elif mode == PorterDuffMode.OVERLAY:
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
out_image = torch.where(2 * dst_image < dst_alpha, 2 * src_image * dst_image,
src_alpha * dst_alpha - 2 * (dst_alpha - src_image) * (src_alpha - dst_image))
elif mode == PorterDuffMode.SCREEN:
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
out_image = src_image + dst_image - src_image * dst_image
elif mode == PorterDuffMode.SRC:
out_alpha = src_alpha
out_image = src_image
elif mode == PorterDuffMode.SRC_ATOP:
out_alpha = dst_alpha
out_image = dst_alpha * src_image + (1 - src_alpha) * dst_image
elif mode == PorterDuffMode.SRC_IN:
out_alpha = src_alpha * dst_alpha
out_image = src_image * dst_alpha
elif mode == PorterDuffMode.SRC_OUT:
out_alpha = (1 - dst_alpha) * src_alpha
out_image = (1 - dst_alpha) * src_image
elif mode == PorterDuffMode.SRC_OVER:
out_alpha = src_alpha + (1 - src_alpha) * dst_alpha
out_image = src_image + (1 - src_alpha) * dst_image
elif mode == PorterDuffMode.XOR:
out_alpha = (1 - dst_alpha) * src_alpha + (1 - src_alpha) * dst_alpha
out_image = (1 - dst_alpha) * src_image + (1 - src_alpha) * dst_image
else:
return None, None
# back to non-premultiplied alpha
out_image = torch.where(out_alpha > 1e-5, out_image / out_alpha, torch.zeros_like(out_image))
out_image = torch.clamp(out_image, 0, 1)
# convert alpha to mask
out_alpha = 1 - out_alpha
return out_image, out_alpha
class PorterDuffImageComposite(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PorterDuffImageComposite",
search_aliases=["alpha composite", "blend modes", "layer blend", "transparency blend"],
display_name="Porter-Duff Image Composite",
category="mask/compositing",
inputs=[
io.Image.Input("source"),
io.Mask.Input("source_alpha"),
io.Image.Input("destination"),
io.Mask.Input("destination_alpha"),
io.Combo.Input("mode", options=[mode.name for mode in PorterDuffMode], default=PorterDuffMode.DST.name),
],
outputs=[
io.Image.Output(),
io.Mask.Output(),
],
)
@classmethod
def execute(cls, source: torch.Tensor, source_alpha: torch.Tensor, destination: torch.Tensor, destination_alpha: torch.Tensor, mode) -> io.NodeOutput:
batch_size = min(len(source), len(source_alpha), len(destination), len(destination_alpha))
out_images = []
out_alphas = []
for i in range(batch_size):
src_image = source[i]
dst_image = destination[i]
assert src_image.shape[2] == dst_image.shape[2] # inputs need to have same number of channels
src_alpha = source_alpha[i].unsqueeze(2)
dst_alpha = destination_alpha[i].unsqueeze(2)
if dst_alpha.shape[:2] != dst_image.shape[:2]:
upscale_input = dst_alpha.unsqueeze(0).permute(0, 3, 1, 2)
upscale_output = comfy.utils.common_upscale(upscale_input, dst_image.shape[1], dst_image.shape[0], upscale_method='bicubic', crop='center')
dst_alpha = upscale_output.permute(0, 2, 3, 1).squeeze(0)
if src_image.shape != dst_image.shape:
upscale_input = src_image.unsqueeze(0).permute(0, 3, 1, 2)
upscale_output = comfy.utils.common_upscale(upscale_input, dst_image.shape[1], dst_image.shape[0], upscale_method='bicubic', crop='center')
src_image = upscale_output.permute(0, 2, 3, 1).squeeze(0)
if src_alpha.shape != dst_alpha.shape:
upscale_input = src_alpha.unsqueeze(0).permute(0, 3, 1, 2)
upscale_output = comfy.utils.common_upscale(upscale_input, dst_alpha.shape[1], dst_alpha.shape[0], upscale_method='bicubic', crop='center')
src_alpha = upscale_output.permute(0, 2, 3, 1).squeeze(0)
out_image, out_alpha = porter_duff_composite(src_image, src_alpha, dst_image, dst_alpha, PorterDuffMode[mode])
out_images.append(out_image)
out_alphas.append(out_alpha.squeeze(2))
return io.NodeOutput(torch.stack(out_images), torch.stack(out_alphas))
class SplitImageWithAlpha(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="SplitImageWithAlpha",
search_aliases=["extract alpha", "separate transparency", "remove alpha"],
display_name="Split Image with Alpha",
category="mask/compositing",
inputs=[
io.Image.Input("image"),
],
outputs=[
io.Image.Output(),
io.Mask.Output(),
],
)
@classmethod
def execute(cls, image: torch.Tensor) -> io.NodeOutput:
out_images = [i[:,:,:3] for i in image]
out_alphas = [i[:,:,3] if i.shape[2] > 3 else torch.ones_like(i[:,:,0]) for i in image]
return io.NodeOutput(torch.stack(out_images), 1.0 - torch.stack(out_alphas))
class JoinImageWithAlpha(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="JoinImageWithAlpha",
search_aliases=["add transparency", "apply alpha", "composite alpha", "RGBA"],
display_name="Join Image with Alpha",
category="mask/compositing",
inputs=[
io.Image.Input("image"),
io.Mask.Input("alpha"),
],
outputs=[io.Image.Output()],
)
@classmethod
def execute(cls, image: torch.Tensor, alpha: torch.Tensor) -> io.NodeOutput:
batch_size = min(len(image), len(alpha))
out_images = []
alpha = 1.0 - resize_mask(alpha, image.shape[1:])
for i in range(batch_size):
out_images.append(torch.cat((image[i][:,:,:3], alpha[i].unsqueeze(2)), dim=2))
return io.NodeOutput(torch.stack(out_images))
class CompositingExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
PorterDuffImageComposite,
SplitImageWithAlpha,
JoinImageWithAlpha,
]
async def comfy_entrypoint() -> CompositingExtension:
return CompositingExtension()
@@ -0,0 +1,54 @@
import nodes
from typing_extensions import override
from comfy_api.latest import IO, ComfyExtension
class ImageCompare(IO.ComfyNode):
"""Compares two images with a slider interface."""
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageCompare",
display_name="Image Compare",
description="Compares two images side by side with a slider.",
category="image",
essentials_category="Image Tools",
is_experimental=True,
is_output_node=True,
inputs=[
IO.Image.Input("image_a", optional=True),
IO.Image.Input("image_b", optional=True),
IO.ImageCompare.Input("compare_view"),
],
outputs=[],
)
@classmethod
def execute(cls, image_a=None, image_b=None, compare_view=None) -> IO.NodeOutput:
result = {"a_images": [], "b_images": []}
preview_node = nodes.PreviewImage()
if image_a is not None and len(image_a) > 0:
saved = preview_node.save_images(image_a, "comfy.compare.a")
result["a_images"] = saved["ui"]["images"]
if image_b is not None and len(image_b) > 0:
saved = preview_node.save_images(image_b, "comfy.compare.b")
result["b_images"] = saved["ui"]["images"]
return IO.NodeOutput(ui=result)
class ImageCompareExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
return [
ImageCompare,
]
async def comfy_entrypoint() -> ImageCompareExtension:
return ImageCompareExtension()
@@ -0,0 +1,851 @@
from __future__ import annotations
import nodes
import folder_paths
import json
import os
import re
import math
import torch
import comfy.utils
from server import PromptServer
from comfy_api.latest import ComfyExtension, IO, UI
from typing_extensions import override
SVG = IO.SVG.Type # TODO: temporary solution for backward compatibility, will be removed later.
MAX_RESOLUTION = nodes.MAX_RESOLUTION
class ImageCrop(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageCrop",
search_aliases=["trim"],
display_name="Image Crop (Deprecated)",
category="image/transform",
is_deprecated=True,
essentials_category="Image Tools",
inputs=[
IO.Image.Input("image"),
IO.Int.Input("width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, width, height, x, y) -> IO.NodeOutput:
x = min(x, image.shape[2] - 1)
y = min(y, image.shape[1] - 1)
to_x = width + x
to_y = height + y
img = image[:,y:to_y, x:to_x, :]
return IO.NodeOutput(img)
crop = execute # TODO: remove
class ImageCropV2(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageCropV2",
search_aliases=["trim"],
display_name="Image Crop",
category="image/transform",
essentials_category="Image Tools",
has_intermediate_output=True,
inputs=[
IO.Image.Input("image"),
IO.BoundingBox.Input("crop_region", component="ImageCrop"),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, crop_region) -> IO.NodeOutput:
x = crop_region.get("x", 0)
y = crop_region.get("y", 0)
width = crop_region.get("width", 512)
height = crop_region.get("height", 512)
x = min(x, image.shape[2] - 1)
y = min(y, image.shape[1] - 1)
to_x = width + x
to_y = height + y
img = image[:,y:to_y, x:to_x, :]
return IO.NodeOutput(img, ui=UI.PreviewImage(img))
class BoundingBox(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="PrimitiveBoundingBox",
display_name="Bounding Box",
category="utils/primitive",
inputs=[
IO.Int.Input("x", default=0, min=0, max=MAX_RESOLUTION),
IO.Int.Input("y", default=0, min=0, max=MAX_RESOLUTION),
IO.Int.Input("width", default=512, min=1, max=MAX_RESOLUTION),
IO.Int.Input("height", default=512, min=1, max=MAX_RESOLUTION),
],
outputs=[IO.BoundingBox.Output()],
)
@classmethod
def execute(cls, x, y, width, height) -> IO.NodeOutput:
return IO.NodeOutput({"x": x, "y": y, "width": width, "height": height})
class RepeatImageBatch(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="RepeatImageBatch",
search_aliases=["duplicate image", "clone image"],
category="image/batch",
inputs=[
IO.Image.Input("image"),
IO.Int.Input("amount", default=1, min=1, max=4096),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, amount) -> IO.NodeOutput:
s = image.repeat((amount, 1,1,1))
return IO.NodeOutput(s)
repeat = execute # TODO: remove
class ImageFromBatch(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageFromBatch",
search_aliases=["select image", "pick from batch", "extract image"],
category="image/batch",
inputs=[
IO.Image.Input("image"),
IO.Int.Input("batch_index", default=0, min=0, max=4095),
IO.Int.Input("length", default=1, min=1, max=4096),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, batch_index, length) -> IO.NodeOutput:
s_in = image
batch_index = min(s_in.shape[0] - 1, batch_index)
length = min(s_in.shape[0] - batch_index, length)
s = s_in[batch_index:batch_index + length].clone()
return IO.NodeOutput(s)
frombatch = execute # TODO: remove
class ImageAddNoise(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageAddNoise",
search_aliases=["film grain"],
category="image",
inputs=[
IO.Image.Input("image"),
IO.Int.Input(
"seed",
default=0,
min=0,
max=0xFFFFFFFFFFFFFFFF,
control_after_generate=True,
tooltip="The random seed used for creating the noise.",
),
IO.Float.Input("strength", default=0.5, min=0.0, max=1.0, step=0.01),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, seed, strength) -> IO.NodeOutput:
generator = torch.manual_seed(seed)
s = torch.clip((image + strength * torch.randn(image.size(), generator=generator, device="cpu").to(image)), min=0.0, max=1.0)
return IO.NodeOutput(s)
repeat = execute # TODO: remove
class SaveAnimatedWEBP(IO.ComfyNode):
COMPRESS_METHODS = {"default": 4, "fastest": 0, "slowest": 6}
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="SaveAnimatedWEBP",
category="image/animation",
inputs=[
IO.Image.Input("images"),
IO.String.Input("filename_prefix", default="ComfyUI"),
IO.Float.Input("fps", default=6.0, min=0.01, max=1000.0, step=0.01),
IO.Boolean.Input("lossless", default=True),
IO.Int.Input("quality", default=80, min=0, max=100),
IO.Combo.Input("method", options=list(cls.COMPRESS_METHODS.keys())),
# "num_frames": ("INT", {"default": 0, "min": 0, "max": 8192}),
],
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
is_output_node=True,
)
@classmethod
def execute(cls, images, fps, filename_prefix, lossless, quality, method, num_frames=0) -> IO.NodeOutput:
return IO.NodeOutput(
ui=UI.ImageSaveHelper.get_save_animated_webp_ui(
images=images,
filename_prefix=filename_prefix,
cls=cls,
fps=fps,
lossless=lossless,
quality=quality,
method=cls.COMPRESS_METHODS.get(method)
)
)
save_images = execute # TODO: remove
class SaveAnimatedPNG(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="SaveAnimatedPNG",
category="image/animation",
inputs=[
IO.Image.Input("images"),
IO.String.Input("filename_prefix", default="ComfyUI"),
IO.Float.Input("fps", default=6.0, min=0.01, max=1000.0, step=0.01),
IO.Int.Input("compress_level", default=4, min=0, max=9, advanced=True),
],
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
is_output_node=True,
)
@classmethod
def execute(cls, images, fps, compress_level, filename_prefix="ComfyUI") -> IO.NodeOutput:
return IO.NodeOutput(
ui=UI.ImageSaveHelper.get_save_animated_png_ui(
images=images,
filename_prefix=filename_prefix,
cls=cls,
fps=fps,
compress_level=compress_level,
)
)
save_images = execute # TODO: remove
class ImageStitch(IO.ComfyNode):
"""Upstreamed from https://github.com/kijai/ComfyUI-KJNodes"""
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageStitch",
search_aliases=["combine images", "join images", "concatenate images", "side by side"],
display_name="Image Stitch",
description="Stitches image2 to image1 in the specified direction.\n"
"If image2 is not provided, returns image1 unchanged.\n"
"Optional spacing can be added between images.",
category="image/transform",
inputs=[
IO.Image.Input("image1"),
IO.Combo.Input("direction", options=["right", "down", "left", "up"], default="right"),
IO.Boolean.Input("match_image_size", default=True),
IO.Int.Input("spacing_width", default=0, min=0, max=1024, step=2, advanced=True),
IO.Combo.Input("spacing_color", options=["white", "black", "red", "green", "blue"], default="white", advanced=True),
IO.Image.Input("image2", optional=True),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(
cls,
image1,
direction,
match_image_size,
spacing_width,
spacing_color,
image2=None,
) -> IO.NodeOutput:
if image2 is None:
return IO.NodeOutput(image1)
# Handle batch size differences
if image1.shape[0] != image2.shape[0]:
max_batch = max(image1.shape[0], image2.shape[0])
if image1.shape[0] < max_batch:
image1 = torch.cat(
[image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]
)
if image2.shape[0] < max_batch:
image2 = torch.cat(
[image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]
)
# Match image sizes if requested
if match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
aspect_ratio = w2 / h2
if direction in ["left", "right"]:
target_h, target_w = h1, int(h1 * aspect_ratio)
else: # up, down
target_w, target_h = w1, int(w1 / aspect_ratio)
image2 = comfy.utils.common_upscale(
image2.movedim(-1, 1), target_w, target_h, "lanczos", "disabled"
).movedim(1, -1)
color_map = {
"white": 1.0,
"black": 0.0,
"red": (1.0, 0.0, 0.0),
"green": (0.0, 1.0, 0.0),
"blue": (0.0, 0.0, 1.0),
}
color_val = color_map[spacing_color]
# When not matching sizes, pad to align non-concat dimensions
if not match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
pad_value = 0.0
if not isinstance(color_val, tuple):
pad_value = color_val
if direction in ["left", "right"]:
# For horizontal concat, pad heights to match
if h1 != h2:
target_h = max(h1, h2)
if h1 < target_h:
pad_h = target_h - h1
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
if h2 < target_h:
pad_h = target_h - h2
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
else: # up, down
# For vertical concat, pad widths to match
if w1 != w2:
target_w = max(w1, w2)
if w1 < target_w:
pad_w = target_w - w1
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
if w2 < target_w:
pad_w = target_w - w2
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
# Ensure same number of channels
if image1.shape[-1] != image2.shape[-1]:
max_channels = max(image1.shape[-1], image2.shape[-1])
if image1.shape[-1] < max_channels:
image1 = torch.cat(
[
image1,
torch.ones(
*image1.shape[:-1],
max_channels - image1.shape[-1],
device=image1.device,
),
],
dim=-1,
)
if image2.shape[-1] < max_channels:
image2 = torch.cat(
[
image2,
torch.ones(
*image2.shape[:-1],
max_channels - image2.shape[-1],
device=image2.device,
),
],
dim=-1,
)
# Add spacing if specified
if spacing_width > 0:
spacing_width = spacing_width + (spacing_width % 2) # Ensure even
if direction in ["left", "right"]:
spacing_shape = (
image1.shape[0],
max(image1.shape[1], image2.shape[1]),
spacing_width,
image1.shape[-1],
)
else:
spacing_shape = (
image1.shape[0],
spacing_width,
max(image1.shape[2], image2.shape[2]),
image1.shape[-1],
)
spacing = torch.full(spacing_shape, 0.0, device=image1.device)
if isinstance(color_val, tuple):
for i, c in enumerate(color_val):
if i < spacing.shape[-1]:
spacing[..., i] = c
if spacing.shape[-1] == 4: # Add alpha
spacing[..., 3] = 1.0
else:
spacing[..., : min(3, spacing.shape[-1])] = color_val
if spacing.shape[-1] == 4:
spacing[..., 3] = 1.0
# Concatenate images
images = [image2, image1] if direction in ["left", "up"] else [image1, image2]
if spacing_width > 0:
images.insert(1, spacing)
concat_dim = 2 if direction in ["left", "right"] else 1
return IO.NodeOutput(torch.cat(images, dim=concat_dim))
stitch = execute # TODO: remove
class ResizeAndPadImage(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ResizeAndPadImage",
search_aliases=["fit to size"],
category="image/transform",
inputs=[
IO.Image.Input("image"),
IO.Int.Input("target_width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("target_height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
IO.Combo.Input("padding_color", options=["white", "black"], advanced=True),
IO.Combo.Input("interpolation", options=["area", "bicubic", "nearest-exact", "bilinear", "lanczos"], advanced=True),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, target_width, target_height, padding_color, interpolation) -> IO.NodeOutput:
batch_size, orig_height, orig_width, channels = image.shape
scale_w = target_width / orig_width
scale_h = target_height / orig_height
scale = min(scale_w, scale_h)
new_width = int(orig_width * scale)
new_height = int(orig_height * scale)
image_permuted = image.permute(0, 3, 1, 2)
resized = comfy.utils.common_upscale(image_permuted, new_width, new_height, interpolation, "disabled")
pad_value = 0.0 if padding_color == "black" else 1.0
padded = torch.full(
(batch_size, channels, target_height, target_width),
pad_value,
dtype=image.dtype,
device=image.device
)
y_offset = (target_height - new_height) // 2
x_offset = (target_width - new_width) // 2
padded[:, :, y_offset:y_offset + new_height, x_offset:x_offset + new_width] = resized
output = padded.permute(0, 2, 3, 1)
return IO.NodeOutput(output)
resize_and_pad = execute # TODO: remove
class SaveSVGNode(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="SaveSVGNode",
search_aliases=["export vector", "save vector graphics"],
description="Save SVG files on disk.",
category="image/save",
inputs=[
IO.SVG.Input("svg"),
IO.String.Input(
"filename_prefix",
default="svg/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.",
),
],
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
is_output_node=True,
)
@classmethod
def execute(cls, svg: IO.SVG.Type, filename_prefix="svg/ComfyUI") -> IO.NodeOutput:
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, folder_paths.get_output_directory())
results: list[UI.SavedResult] = []
# Prepare metadata JSON
metadata_dict = {}
if cls.hidden.prompt is not None:
metadata_dict["prompt"] = cls.hidden.prompt
if cls.hidden.extra_pnginfo is not None:
metadata_dict.update(cls.hidden.extra_pnginfo)
# Convert metadata to JSON string
metadata_json = json.dumps(metadata_dict, indent=2) if metadata_dict else None
for batch_number, svg_bytes in enumerate(svg.data):
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.svg"
# Read SVG content
svg_bytes.seek(0)
svg_content = svg_bytes.read().decode('utf-8')
# Inject metadata if available
if metadata_json:
# Create metadata element with CDATA section
metadata_element = f""" <metadata>
<![CDATA[
{metadata_json}
]]>
</metadata>
"""
# Insert metadata after opening svg tag using regex with a replacement function
def replacement(match):
# match.group(1) contains the captured <svg> tag
return match.group(1) + '\n' + metadata_element
# Apply the substitution
svg_content = re.sub(r'(<svg[^>]*>)', replacement, svg_content, flags=re.UNICODE)
# Write the modified SVG to file
with open(os.path.join(full_output_folder, file), 'wb') as svg_file:
svg_file.write(svg_content.encode('utf-8'))
results.append(UI.SavedResult(filename=file, subfolder=subfolder, type=IO.FolderType.output))
counter += 1
return IO.NodeOutput(ui={"images": results})
save_svg = execute # TODO: remove
class GetImageSize(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="GetImageSize",
search_aliases=["dimensions", "resolution", "image info"],
display_name="Get Image Size",
description="Returns width and height of the image, and passes it through unchanged.",
category="image",
inputs=[
IO.Image.Input("image"),
],
outputs=[
IO.Int.Output(display_name="width"),
IO.Int.Output(display_name="height"),
IO.Int.Output(display_name="batch_size"),
],
hidden=[IO.Hidden.unique_id],
)
@classmethod
def execute(cls, image) -> IO.NodeOutput:
height = image.shape[1]
width = image.shape[2]
batch_size = image.shape[0]
# Send progress text to display size on the node
if cls.hidden.unique_id:
PromptServer.instance.send_progress_text(f"width: {width}, height: {height}\n batch size: {batch_size}", cls.hidden.unique_id)
return IO.NodeOutput(width, height, batch_size)
get_size = execute # TODO: remove
class ImageRotate(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageRotate",
display_name="Image Rotate",
search_aliases=["turn", "flip orientation"],
category="image/transform",
essentials_category="Image Tools",
inputs=[
IO.Image.Input("image"),
IO.Combo.Input("rotation", options=["none", "90 degrees", "180 degrees", "270 degrees"]),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, rotation) -> IO.NodeOutput:
rotate_by = 0
if rotation.startswith("90"):
rotate_by = 1
elif rotation.startswith("180"):
rotate_by = 2
elif rotation.startswith("270"):
rotate_by = 3
image = torch.rot90(image, k=rotate_by, dims=[2, 1])
return IO.NodeOutput(image)
rotate = execute # TODO: remove
class ImageFlip(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageFlip",
search_aliases=["mirror", "reflect"],
category="image/transform",
inputs=[
IO.Image.Input("image"),
IO.Combo.Input("flip_method", options=["x-axis: vertically", "y-axis: horizontally"]),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, flip_method) -> IO.NodeOutput:
if flip_method.startswith("x"):
image = torch.flip(image, dims=[1])
elif flip_method.startswith("y"):
image = torch.flip(image, dims=[2])
return IO.NodeOutput(image)
flip = execute # TODO: remove
class ImageScaleToMaxDimension(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageScaleToMaxDimension",
category="image/upscaling",
inputs=[
IO.Image.Input("image"),
IO.Combo.Input(
"upscale_method",
options=["area", "lanczos", "bilinear", "nearest-exact", "bilinear", "bicubic"],
),
IO.Int.Input("largest_size", default=512, min=0, max=MAX_RESOLUTION, step=1),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, image, upscale_method, largest_size) -> IO.NodeOutput:
height = image.shape[1]
width = image.shape[2]
if height > width:
width = round((width / height) * largest_size)
height = largest_size
elif width > height:
height = round((height / width) * largest_size)
width = largest_size
else:
height = largest_size
width = largest_size
samples = image.movedim(-1, 1)
s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled")
s = s.movedim(1, -1)
return IO.NodeOutput(s)
upscale = execute # TODO: remove
class SplitImageToTileList(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="SplitImageToTileList",
category="image/batch",
search_aliases=["split image", "tile image", "slice image"],
display_name="Split Image into List of Tiles",
description="Splits an image into a batched list of tiles with a specified overlap.",
inputs=[
IO.Image.Input("image"),
IO.Int.Input("tile_width", default=1024, min=64, max=MAX_RESOLUTION),
IO.Int.Input("tile_height", default=1024, min=64, max=MAX_RESOLUTION),
IO.Int.Input("overlap", default=128, min=0, max=4096),
],
outputs=[
IO.Image.Output(is_output_list=True),
],
)
@staticmethod
def get_grid_coords(width, height, tile_width, tile_height, overlap):
coords = []
stride_x = round(max(tile_width * 0.25, tile_width - overlap))
stride_y = round(max(tile_width * 0.25, tile_height - overlap))
y = 0
while y < height:
x = 0
y_end = min(y + tile_height, height)
y_start = max(0, y_end - tile_height)
while x < width:
x_end = min(x + tile_width, width)
x_start = max(0, x_end - tile_width)
coords.append((x_start, y_start, x_end, y_end))
if x_end >= width:
break
x += stride_x
if y_end >= height:
break
y += stride_y
return coords
@classmethod
def execute(cls, image, tile_width, tile_height, overlap):
b, h, w, c = image.shape
coords = cls.get_grid_coords(w, h, tile_width, tile_height, overlap)
output_list = []
for (x_start, y_start, x_end, y_end) in coords:
tile = image[:, y_start:y_end, x_start:x_end, :]
output_list.append(tile)
return IO.NodeOutput(output_list)
class ImageMergeTileList(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageMergeTileList",
display_name="Merge List of Tiles to Image",
category="image/batch",
search_aliases=["split image", "tile image", "slice image"],
is_input_list=True,
inputs=[
IO.Image.Input("image_list"),
IO.Int.Input("final_width", default=1024, min=64, max=32768),
IO.Int.Input("final_height", default=1024, min=64, max=32768),
IO.Int.Input("overlap", default=128, min=0, max=4096),
],
outputs=[
IO.Image.Output(is_output_list=False),
],
)
@classmethod
def execute(cls, image_list, final_width, final_height, overlap):
w = final_width[0]
h = final_height[0]
ovlp = overlap[0]
feather_str = 1.0
first_tile = image_list[0]
b, t_h, t_w, c = first_tile.shape
device = first_tile.device
dtype = first_tile.dtype
coords = SplitImageToTileList.get_grid_coords(w, h, t_w, t_h, ovlp)
canvas = torch.zeros((b, h, w, c), device=device, dtype=dtype)
weights = torch.zeros((b, h, w, 1), device=device, dtype=dtype)
if ovlp > 0:
y_w = torch.sin(math.pi * torch.linspace(0, 1, t_h, device=device, dtype=dtype))
x_w = torch.sin(math.pi * torch.linspace(0, 1, t_w, device=device, dtype=dtype))
y_w = torch.clamp(y_w, min=1e-5)
x_w = torch.clamp(x_w, min=1e-5)
sine_mask = (y_w.unsqueeze(1) * x_w.unsqueeze(0)).unsqueeze(0).unsqueeze(-1)
flat_mask = torch.ones_like(sine_mask)
weight_mask = torch.lerp(flat_mask, sine_mask, feather_str)
else:
weight_mask = torch.ones((1, t_h, t_w, 1), device=device, dtype=dtype)
for i, (x_start, y_start, x_end, y_end) in enumerate(coords):
if i >= len(image_list):
break
tile = image_list[i]
region_h = y_end - y_start
region_w = x_end - x_start
real_h = min(region_h, tile.shape[1])
real_w = min(region_w, tile.shape[2])
y_end_actual = y_start + real_h
x_end_actual = x_start + real_w
tile_crop = tile[:, :real_h, :real_w, :]
mask_crop = weight_mask[:, :real_h, :real_w, :]
canvas[:, y_start:y_end_actual, x_start:x_end_actual, :] += tile_crop * mask_crop
weights[:, y_start:y_end_actual, x_start:x_end_actual, :] += mask_crop
weights[weights == 0] = 1.0
merged_image = canvas / weights
return IO.NodeOutput(merged_image)
class ImagesExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
return [
ImageCrop,
ImageCropV2,
BoundingBox,
RepeatImageBatch,
ImageFromBatch,
ImageAddNoise,
SaveAnimatedWEBP,
SaveAnimatedPNG,
SaveSVGNode,
ImageStitch,
ResizeAndPadImage,
GetImageSize,
ImageRotate,
ImageFlip,
ImageScaleToMaxDimension,
SplitImageToTileList,
ImageMergeTileList,
]
async def comfy_entrypoint() -> ImagesExtension:
return ImagesExtension()
@@ -0,0 +1,445 @@
import numpy as np
import scipy.ndimage
import torch
import comfy.utils
import node_helpers
from typing_extensions import override
from comfy_api.latest import ComfyExtension, IO, UI
import nodes
def composite(destination, source, x, y, mask = None, multiplier = 8, resize_source = False):
source = source.to(destination.device)
if resize_source:
source = torch.nn.functional.interpolate(source, size=(destination.shape[-2], destination.shape[-1]), mode="bilinear")
source = comfy.utils.repeat_to_batch_size(source, destination.shape[0])
x = max(-source.shape[-1] * multiplier, min(x, destination.shape[-1] * multiplier))
y = max(-source.shape[-2] * multiplier, min(y, destination.shape[-2] * multiplier))
left, top = (x // multiplier, y // multiplier)
right, bottom = (left + source.shape[-1], top + source.shape[-2],)
if mask is None:
mask = torch.ones_like(source)
else:
mask = mask.to(destination.device, copy=True)
mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(source.shape[-2], source.shape[-1]), mode="bilinear")
mask = comfy.utils.repeat_to_batch_size(mask, source.shape[0])
# calculate the bounds of the source that will be overlapping the destination
# this prevents the source trying to overwrite latent pixels that are out of bounds
# of the destination
visible_width, visible_height = (destination.shape[-1] - left + min(0, x), destination.shape[-2] - top + min(0, y),)
mask = mask[:, :, :visible_height, :visible_width]
if mask.ndim < source.ndim:
mask = mask.unsqueeze(1)
inverse_mask = torch.ones_like(mask) - mask
source_portion = mask * source[..., :visible_height, :visible_width]
destination_portion = inverse_mask * destination[..., top:bottom, left:right]
destination[..., top:bottom, left:right] = source_portion + destination_portion
return destination
class LatentCompositeMasked(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="LatentCompositeMasked",
search_aliases=["overlay latent", "layer latent", "paste latent", "inpaint latent"],
category="latent",
inputs=[
IO.Latent.Input("destination"),
IO.Latent.Input("source"),
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=8),
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=8),
IO.Boolean.Input("resize_source", default=False),
IO.Mask.Input("mask", optional=True),
],
outputs=[IO.Latent.Output()],
)
@classmethod
def execute(cls, destination, source, x, y, resize_source, mask = None) -> IO.NodeOutput:
output = destination.copy()
destination = destination["samples"].clone()
source = source["samples"]
output["samples"] = composite(destination, source, x, y, mask, 8, resize_source)
return IO.NodeOutput(output)
composite = execute # TODO: remove
class ImageCompositeMasked(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageCompositeMasked",
search_aliases=["paste image", "overlay", "layer"],
category="image",
inputs=[
IO.Image.Input("destination"),
IO.Image.Input("source"),
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Boolean.Input("resize_source", default=False),
IO.Mask.Input("mask", optional=True),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, destination, source, x, y, resize_source, mask = None) -> IO.NodeOutput:
destination, source = node_helpers.image_alpha_fix(destination, source)
destination = destination.clone().movedim(-1, 1)
output = composite(destination, source.movedim(-1, 1), x, y, mask, 1, resize_source).movedim(1, -1)
return IO.NodeOutput(output)
composite = execute # TODO: remove
class MaskToImage(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="MaskToImage",
search_aliases=["convert mask"],
display_name="Convert Mask to Image",
category="mask",
inputs=[
IO.Mask.Input("mask"),
],
outputs=[IO.Image.Output()],
)
@classmethod
def execute(cls, mask) -> IO.NodeOutput:
result = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3)
return IO.NodeOutput(result)
mask_to_image = execute # TODO: remove
class ImageToMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageToMask",
search_aliases=["extract channel", "channel to mask"],
display_name="Convert Image to Mask",
category="mask",
inputs=[
IO.Image.Input("image"),
IO.Combo.Input("channel", options=["red", "green", "blue", "alpha"]),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, image, channel) -> IO.NodeOutput:
channels = ["red", "green", "blue", "alpha"]
mask = image[:, :, :, channels.index(channel)]
return IO.NodeOutput(mask)
image_to_mask = execute # TODO: remove
class ImageColorToMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ImageColorToMask",
search_aliases=["color keying", "chroma key"],
category="mask",
inputs=[
IO.Image.Input("image"),
IO.Int.Input("color", default=0, min=0, max=0xFFFFFF, step=1, display_mode=IO.NumberDisplay.number),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, image, color) -> IO.NodeOutput:
temp = (torch.clamp(image, 0, 1.0) * 255.0).round().to(torch.int)
temp = torch.bitwise_left_shift(temp[:,:,:,0], 16) + torch.bitwise_left_shift(temp[:,:,:,1], 8) + temp[:,:,:,2]
mask = torch.where(temp == color, 1.0, 0).float()
return IO.NodeOutput(mask)
image_to_mask = execute # TODO: remove
class SolidMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="SolidMask",
category="mask",
inputs=[
IO.Float.Input("value", default=1.0, min=0.0, max=1.0, step=0.01),
IO.Int.Input("width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, value, width, height) -> IO.NodeOutput:
out = torch.full((1, height, width), value, dtype=torch.float32, device="cpu")
return IO.NodeOutput(out)
solid = execute # TODO: remove
class InvertMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="InvertMask",
search_aliases=["reverse mask", "flip mask"],
category="mask",
inputs=[
IO.Mask.Input("mask"),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, mask) -> IO.NodeOutput:
out = 1.0 - mask
return IO.NodeOutput(out)
invert = execute # TODO: remove
class CropMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="CropMask",
search_aliases=["cut mask", "extract mask region", "mask slice"],
category="mask",
inputs=[
IO.Mask.Input("mask"),
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, mask, x, y, width, height) -> IO.NodeOutput:
mask = mask.reshape((-1, mask.shape[-2], mask.shape[-1]))
out = mask[:, y:y + height, x:x + width]
return IO.NodeOutput(out)
crop = execute # TODO: remove
class MaskComposite(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="MaskComposite",
search_aliases=["combine masks", "blend masks", "layer masks"],
category="mask",
inputs=[
IO.Mask.Input("destination"),
IO.Mask.Input("source"),
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Combo.Input("operation", options=["multiply", "add", "subtract", "and", "or", "xor"]),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, destination, source, x, y, operation) -> IO.NodeOutput:
output = destination.reshape((-1, destination.shape[-2], destination.shape[-1])).clone()
source = source.reshape((-1, source.shape[-2], source.shape[-1]))
left, top = (x, y,)
right, bottom = (min(left + source.shape[-1], destination.shape[-1]), min(top + source.shape[-2], destination.shape[-2]))
visible_width, visible_height = (right - left, bottom - top,)
source_portion = source[:, :visible_height, :visible_width]
destination_portion = output[:, top:bottom, left:right]
if operation == "multiply":
output[:, top:bottom, left:right] = destination_portion * source_portion
elif operation == "add":
output[:, top:bottom, left:right] = destination_portion + source_portion
elif operation == "subtract":
output[:, top:bottom, left:right] = destination_portion - source_portion
elif operation == "and":
output[:, top:bottom, left:right] = torch.bitwise_and(destination_portion.round().bool(), source_portion.round().bool()).float()
elif operation == "or":
output[:, top:bottom, left:right] = torch.bitwise_or(destination_portion.round().bool(), source_portion.round().bool()).float()
elif operation == "xor":
output[:, top:bottom, left:right] = torch.bitwise_xor(destination_portion.round().bool(), source_portion.round().bool()).float()
output = torch.clamp(output, 0.0, 1.0)
return IO.NodeOutput(output)
combine = execute # TODO: remove
class FeatherMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="FeatherMask",
search_aliases=["soft edge mask", "blur mask edges", "gradient mask edge"],
category="mask",
inputs=[
IO.Mask.Input("mask"),
IO.Int.Input("left", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("top", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("right", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
IO.Int.Input("bottom", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, mask, left, top, right, bottom) -> IO.NodeOutput:
output = mask.reshape((-1, mask.shape[-2], mask.shape[-1])).clone()
left = min(left, output.shape[-1])
right = min(right, output.shape[-1])
top = min(top, output.shape[-2])
bottom = min(bottom, output.shape[-2])
for x in range(left):
feather_rate = (x + 1.0) / left
output[:, :, x] *= feather_rate
for x in range(right):
feather_rate = (x + 1) / right
output[:, :, -x] *= feather_rate
for y in range(top):
feather_rate = (y + 1) / top
output[:, y, :] *= feather_rate
for y in range(bottom):
feather_rate = (y + 1) / bottom
output[:, -y, :] *= feather_rate
return IO.NodeOutput(output)
feather = execute # TODO: remove
class GrowMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="GrowMask",
search_aliases=["expand mask", "shrink mask"],
display_name="Grow Mask",
category="mask",
inputs=[
IO.Mask.Input("mask"),
IO.Int.Input("expand", default=0, min=-nodes.MAX_RESOLUTION, max=nodes.MAX_RESOLUTION, step=1),
IO.Boolean.Input("tapered_corners", default=True, advanced=True),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, mask, expand, tapered_corners) -> IO.NodeOutput:
c = 0 if tapered_corners else 1
kernel = np.array([[c, 1, c],
[1, 1, 1],
[c, 1, c]])
mask = mask.reshape((-1, mask.shape[-2], mask.shape[-1]))
out = []
for m in mask:
output = m.numpy()
for _ in range(abs(expand)):
if expand < 0:
output = scipy.ndimage.grey_erosion(output, footprint=kernel)
else:
output = scipy.ndimage.grey_dilation(output, footprint=kernel)
output = torch.from_numpy(output)
out.append(output)
return IO.NodeOutput(torch.stack(out, dim=0))
expand_mask = execute # TODO: remove
class ThresholdMask(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="ThresholdMask",
search_aliases=["binary mask"],
category="mask",
inputs=[
IO.Mask.Input("mask"),
IO.Float.Input("value", default=0.5, min=0.0, max=1.0, step=0.01),
],
outputs=[IO.Mask.Output()],
)
@classmethod
def execute(cls, mask, value) -> IO.NodeOutput:
mask = (mask > value).float()
return IO.NodeOutput(mask)
image_to_mask = execute # TODO: remove
# Mask Preview - original implement from
# https://github.com/cubiq/ComfyUI_essentials/blob/9d9f4bedfc9f0321c19faf71855e228c93bd0dc9/mask.py#L81
# upstream requested in https://github.com/Kosinkadink/rfcs/blob/main/rfcs/0000-corenodes.md#preview-nodes
class MaskPreview(IO.ComfyNode):
@classmethod
def define_schema(cls):
return IO.Schema(
node_id="MaskPreview",
search_aliases=["show mask", "view mask", "inspect mask", "debug mask"],
display_name="Preview Mask",
category="mask",
description="Saves the input images to your ComfyUI output directory.",
inputs=[
IO.Mask.Input("mask"),
],
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
is_output_node=True,
)
@classmethod
def execute(cls, mask, filename_prefix="ComfyUI") -> IO.NodeOutput:
return IO.NodeOutput(ui=UI.PreviewMask(mask))
class MaskExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
return [
LatentCompositeMasked,
ImageCompositeMasked,
MaskToImage,
ImageToMask,
ImageColorToMask,
SolidMask,
InvertMask,
CropMask,
MaskComposite,
FeatherMask,
GrowMask,
ThresholdMask,
MaskPreview,
]
async def comfy_entrypoint() -> MaskExtension:
return MaskExtension()
@@ -0,0 +1,128 @@
from __future__ import annotations
import hashlib
import os
import numpy as np
import torch
from PIL import Image
import folder_paths
import node_helpers
from comfy_api.latest import ComfyExtension, io, UI
from typing_extensions import override
def hex_to_rgb(hex_color: str) -> tuple[float, float, float]:
hex_color = hex_color.lstrip("#")
if len(hex_color) != 6:
return (0.0, 0.0, 0.0)
r = int(hex_color[0:2], 16) / 255.0
g = int(hex_color[2:4], 16) / 255.0
b = int(hex_color[4:6], 16) / 255.0
return (r, g, b)
class PainterNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="Painter",
display_name="Painter",
category="image",
has_intermediate_output=True,
inputs=[
io.Image.Input(
"image",
optional=True,
tooltip="Optional base image to paint over",
),
io.String.Input(
"mask",
default="",
socketless=True,
extra_dict={"widgetType": "PAINTER", "image_upload": True},
),
io.Int.Input(
"width",
default=512,
min=64,
max=4096,
step=64,
socketless=True,
extra_dict={"hidden": True},
),
io.Int.Input(
"height",
default=512,
min=64,
max=4096,
step=64,
socketless=True,
extra_dict={"hidden": True},
),
io.Color.Input("bg_color", default="#000000"),
],
outputs=[
io.Image.Output("IMAGE"),
io.Mask.Output("MASK"),
],
)
@classmethod
def execute(cls, mask, width, height, bg_color="#000000", image=None) -> io.NodeOutput:
if image is not None:
base_image = image[:1]
h, w = base_image.shape[1], base_image.shape[2]
else:
h, w = height, width
r, g, b = hex_to_rgb(bg_color)
base_image = torch.zeros((1, h, w, 3), dtype=torch.float32)
base_image[0, :, :, 0] = r
base_image[0, :, :, 1] = g
base_image[0, :, :, 2] = b
if mask and mask.strip():
mask_path = folder_paths.get_annotated_filepath(mask)
painter_img = node_helpers.pillow(Image.open, mask_path)
painter_img = painter_img.convert("RGBA")
if painter_img.size != (w, h):
painter_img = painter_img.resize((w, h), Image.LANCZOS)
painter_np = np.array(painter_img).astype(np.float32) / 255.0
painter_rgb = painter_np[:, :, :3]
painter_alpha = painter_np[:, :, 3:4]
mask_tensor = torch.from_numpy(painter_np[:, :, 3]).unsqueeze(0)
base_np = base_image[0].cpu().numpy()
composited = painter_rgb * painter_alpha + base_np * (1.0 - painter_alpha)
out_image = torch.from_numpy(composited).unsqueeze(0)
else:
mask_tensor = torch.zeros((1, h, w), dtype=torch.float32)
out_image = base_image
return io.NodeOutput(out_image, mask_tensor, ui=UI.PreviewImage(out_image))
@classmethod
def fingerprint_inputs(cls, mask, width, height, bg_color="#000000", image=None):
if mask and mask.strip():
mask_path = folder_paths.get_annotated_filepath(mask)
if os.path.exists(mask_path):
m = hashlib.sha256()
with open(mask_path, "rb") as f:
m.update(f.read())
return m.digest().hex()
return ""
class PainterExtension(ComfyExtension):
@override
async def get_node_list(self):
return [PainterNode]
async def comfy_entrypoint():
return PainterExtension()
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,149 @@
import { useNodeDragAndDrop } from '@/composables/node/useNodeDragAndDrop'
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
import { useNodePaste } from '@/composables/node/useNodePaste'
import { t } from '@/i18n'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import { useToastStore } from '@/platform/updates/common/toastStore'
import type { ResultItemType } from '@/schemas/apiSchema'
import { api } from '@/scripts/api'
import { useAssetsStore } from '@/stores/assetsStore'
const PASTED_IMAGE_EXPIRY_MS = 2000
const UPLOAD_TIMEOUT_MS = 120_000
interface ImageUploadFormFields {
/**
* The folder to upload the file to.
* @example 'input', 'output', 'temp'
*/
type: ResultItemType
}
const uploadFile = async (
file: File,
isPasted: boolean,
formFields: Partial<ImageUploadFormFields> = {}
) => {
const body = new FormData()
body.append('image', file)
if (isPasted) body.append('subfolder', 'pasted')
if (formFields.type) body.append('type', formFields.type)
const resp = await api.fetchApi('/upload/image', {
method: 'POST',
body,
signal: AbortSignal.timeout(UPLOAD_TIMEOUT_MS)
})
if (resp.status !== 200) {
useToastStore().addAlert(resp.status + ' - ' + resp.statusText)
return
}
const data = await resp.json()
// Update AssetsStore input assets when files are uploaded to input folder
if (formFields.type === 'input' || (!formFields.type && !isPasted)) {
const assetsStore = useAssetsStore()
await assetsStore.updateInputs()
}
return data.subfolder ? `${data.subfolder}/${data.name}` : data.name
}
interface ImageUploadOptions {
fileFilter?: (file: File) => boolean
onUploadComplete: (paths: string[]) => void
allow_batch?: boolean
/**
* The file types to accept.
* @example 'image/png,image/jpeg,image/webp,video/webm,video/mp4'
*/
accept?: string
/**
* The folder to upload the file to.
* @example 'input', 'output', 'temp'
*/
folder?: ResultItemType
onUploadStart?: (files: File[]) => void
onUploadError?: () => void
}
/**
* Adds image upload to a node via drag & drop, paste, and file input.
*/
export const useNodeImageUpload = (
node: LGraphNode,
options: ImageUploadOptions
) => {
const { fileFilter, onUploadComplete, allow_batch, accept } = options
const isPastedFile = (file: File): boolean =>
file.name === 'image.png' &&
file.lastModified - Date.now() < PASTED_IMAGE_EXPIRY_MS
const handleUpload = async (file: File) => {
try {
const path = await uploadFile(file, isPastedFile(file), {
type: options.folder
})
if (!path) return
return path
} catch (error) {
if (error instanceof DOMException && error.name === 'TimeoutError') {
useToastStore().addAlert(t('g.uploadTimedOut'))
} else {
useToastStore().addAlert(String(error))
}
}
}
const handleUploadBatch = async (files: File[]) => {
if (node.isUploading) {
useToastStore().addAlert(t('g.uploadAlreadyInProgress'))
return []
}
node.isUploading = true
try {
node.imgs = undefined
node.graph?.setDirtyCanvas(true)
options.onUploadStart?.(files)
const paths = await Promise.all(files.map(handleUpload))
const validPaths = paths.filter((p): p is string => !!p)
if (validPaths.length) {
onUploadComplete(validPaths)
} else {
options.onUploadError?.()
}
return validPaths
} finally {
node.isUploading = false
node.graph?.setDirtyCanvas(true)
}
}
// Handle drag & drop
useNodeDragAndDrop(node, {
fileFilter,
onDrop: handleUploadBatch
})
// Handle paste
useNodePaste(node, {
fileFilter,
allow_batch,
onPaste: handleUploadBatch
})
// Handle file input
const { openFileSelection } = useNodeFileInput(node, {
fileFilter,
allow_batch,
accept,
onSelect: handleUploadBatch
})
return { openFileSelection, handleUpload }
}
@@ -0,0 +1,40 @@
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import {
type ComfyNodeDef,
type InputSpec,
isMediaUploadComboInput
} from '@/schemas/nodeDefSchema'
import { app } from '../../scripts/app'
// Adds an upload button to the nodes
const createUploadInput = (
imageInputName: string,
imageInputOptions: InputSpec
): InputSpec => [
'IMAGEUPLOAD',
{
...imageInputOptions[1],
imageInputName
}
]
app.registerExtension({
name: 'Comfy.UploadImage',
beforeRegisterNodeDef(_nodeType: typeof LGraphNode, nodeData: ComfyNodeDef) {
const { input } = nodeData ?? {}
const { required } = input ?? {}
if (!required) return
const found = Object.entries(required).find(([_, input]) =>
isMediaUploadComboInput(input)
)
// If media combo input found, attach upload input
if (found) {
const [inputName, inputSpec] = found
required.upload = createUploadInput(inputName, inputSpec)
}
}
})
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,40 @@
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
import { BaseWidget } from './BaseWidget'
import type { DrawWidgetOptions } from './BaseWidget'
/**
* Wraps a legacy POJO custom widget, so that all widgets may be called via the same internal interface.
*
* Support will eventually be removed.
* @remarks Expect this class to undergo breaking changes without warning.
*/
export class LegacyWidget<TWidget extends IBaseWidget = IBaseWidget>
extends BaseWidget<TWidget>
implements IBaseWidget
{
override draw?(
ctx: CanvasRenderingContext2D,
node: LGraphNode,
widget_width: number,
y: number,
H: number,
lowQuality?: boolean
): void
override drawWidget(
ctx: CanvasRenderingContext2D,
options: DrawWidgetOptions
) {
const H = LiteGraph.NODE_WIDGET_HEIGHT
this.draw?.(ctx, this.node, options.width, this.y, H, !!options.showText)
}
override onClick() {
console.warn(
'Custom widget wrapper onClick was just called. Handling for third party widgets is done via LGraphCanvas - the mouse callback.'
)
}
}
@@ -0,0 +1,112 @@
import { fromZodError } from 'zod-validation-error'
import { t } from '@/i18n'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type {
IBaseWidget,
IWidgetAssetOptions
} from '@/lib/litegraph/src/types/widgets'
import { useAssetBrowserDialog } from '@/platform/assets/composables/useAssetBrowserDialog'
import {
assetFilenameSchema,
assetItemSchema
} from '@/platform/assets/schemas/assetSchema'
import { useToastStore } from '@/platform/updates/common/toastStore'
import { getAssetFilename } from '@/platform/assets/utils/assetMetadataUtils'
interface CreateAssetWidgetParams {
/** The node to add the widget to */
node: LGraphNode
/** The widget name */
widgetName: string
/** The node type to show in asset browser (may differ from node.comfyClass for PrimitiveNode) */
nodeTypeForBrowser: string
/** Input name for asset browser filtering (defaults to widgetName if not provided) */
inputNameForBrowser?: string
/** Default value for the widget */
defaultValue?: string
/** Callback when widget value changes */
onValueChange?: (
widget: IBaseWidget,
newValue: string,
oldValue: unknown
) => void
}
/**
* Creates an asset widget that opens the Asset Browser dialog for model selection.
* Used by both regular nodes (via useComboWidget) and PrimitiveNode.
*
* @param params - Configuration for the asset widget
* @returns The created asset widget
*/
export function createAssetWidget(
params: CreateAssetWidgetParams
): IBaseWidget {
const {
node,
widgetName,
nodeTypeForBrowser,
inputNameForBrowser,
defaultValue,
onValueChange
} = params
const displayLabel = defaultValue ?? t('widgets.selectModel')
const assetBrowserDialog = useAssetBrowserDialog()
async function openModal(widget: IBaseWidget) {
const toastStore = useToastStore()
await assetBrowserDialog.show({
nodeType: nodeTypeForBrowser,
inputName: inputNameForBrowser ?? widgetName,
currentValue: widget.value as string,
onAssetSelected: (asset) => {
const validatedAsset = assetItemSchema.safeParse(asset)
if (!validatedAsset.success) {
console.error(
'Invalid asset item:',
fromZodError(validatedAsset.error).message
)
toastStore.add({
severity: 'error',
summary: t('assetBrowser.invalidAsset'),
detail: t('assetBrowser.invalidAssetDetail')
})
return
}
const filename = getAssetFilename(validatedAsset.data)
const validatedFilename = assetFilenameSchema.safeParse(filename)
if (!validatedFilename.success) {
console.error(
'Invalid asset filename:',
validatedFilename.error.errors,
'for asset:',
validatedAsset.data.id
)
toastStore.add({
severity: 'error',
summary: t('assetBrowser.invalidFilename'),
detail: t('assetBrowser.invalidFilenameDetail')
})
return
}
const oldValue = widget.value
widget.value = validatedFilename.data
onValueChange?.(widget, validatedFilename.data, oldValue)
}
})
}
const options: IWidgetAssetOptions = {
openModal,
nodeType: nodeTypeForBrowser
}
return node.addWidget('asset', widgetName, displayLabel, () => {}, options)
}
@@ -0,0 +1,129 @@
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload'
import { t } from '@/i18n'
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
import type { IComboWidget } from '@/lib/litegraph/src/types/widgets'
import type { ResultItemType } from '@/schemas/apiSchema'
import type { InputSpec } from '@/schemas/nodeDefSchema'
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
import { useNodeOutputStore } from '@/stores/nodeOutputStore'
import { isImageUploadInput } from '@/types/nodeDefAugmentation'
import { createAnnotatedPath } from '@/utils/createAnnotatedPath'
import { addToComboValues } from '@/utils/litegraphUtil'
import {
ACCEPTED_IMAGE_TYPES,
ACCEPTED_VIDEO_TYPES
} from '@/utils/mediaUploadUtil'
const isImageFile = (file: File) => file.type.startsWith('image/')
const isVideoFile = (file: File) => file.type.startsWith('video/')
const findFileComboWidget = (
node: LGraphNode,
inputName: string
): IComboWidget | undefined =>
node.widgets?.find((w): w is IComboWidget => w.name === inputName)
export const useImageUploadWidget = () => {
const widgetConstructor: ComfyWidgetConstructor = (
node: LGraphNode,
inputName: string,
inputData: InputSpec
) => {
if (!isImageUploadInput(inputData)) {
throw new Error(
'Image upload widget requires imageInputName augmentation'
)
}
const inputOptions = inputData[1]
const { imageInputName, allow_batch, image_folder = 'input' } = inputOptions
const folder: ResultItemType | undefined = image_folder
const nodeOutputStore = useNodeOutputStore()
const isAnimated = !!inputOptions.animated_image_upload
const isVideo = !!inputOptions.video_upload
const accept = isVideo ? ACCEPTED_VIDEO_TYPES : ACCEPTED_IMAGE_TYPES
const { showPreview } = isVideo ? useNodeVideo(node) : useNodeImage(node)
const fileFilter = isVideo ? isVideoFile : isImageFile
const fileComboWidget = findFileComboWidget(node, imageInputName)
if (!fileComboWidget) {
throw new Error(`Widget "${imageInputName}" not found on node`)
}
const formatPath = (value: string) =>
createAnnotatedPath(value, { rootFolder: image_folder })
// Setup file upload handling
let rollback: (() => void) | undefined
const { openFileSelection } = useNodeImageUpload(node, {
allow_batch,
fileFilter,
accept,
folder,
onUploadStart: (files) => {
if (files.length > 0) {
const prev = fileComboWidget.value
fileComboWidget.value = files[0].name
rollback = () => {
fileComboWidget.value = prev
}
}
},
onUploadError: () => {
rollback?.()
rollback = undefined
},
onUploadComplete: (output) => {
rollback = undefined
const annotated = output.map(formatPath)
annotated.forEach((path) => {
addToComboValues(fileComboWidget, path)
})
const newValue = allow_batch ? annotated : annotated[0]
// @ts-expect-error litegraph combo value type does not support arrays yet
fileComboWidget.value = newValue
fileComboWidget.callback?.(newValue)
}
})
// Create the button widget for selecting the files
const uploadWidget = node.addWidget(
'button',
inputName,
'image',
() => openFileSelection(),
{
serialize: false,
canvasOnly: true
}
)
uploadWidget.label = t('g.choose_file_to_upload')
// Add our own callback to the combo widget to render an image when it changes
fileComboWidget.callback = function () {
node.imgs = undefined
nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), {
isAnimated
})
node.graph?.setDirtyCanvas(true)
}
// On load if we have a value then render the image
// The value isn't set immediately so we need to wait a moment
// No change callbacks seem to be fired on initial setting of the value
requestAnimationFrame(() => {
nodeOutputStore.setNodeOutputs(node, String(fileComboWidget.value), {
isAnimated
})
showPreview({ block: false })
})
return { widget: uploadWidget }
}
return widgetConstructor
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,320 @@
import { t } from '@/i18n'
import { type LGraphNode, isComboWidget } from '@/lib/litegraph/src/litegraph'
import type {
IBaseWidget,
IComboWidget,
IStringWidget
} from '@/lib/litegraph/src/types/widgets'
import { useSettingStore } from '@/platform/settings/settingStore'
import { dynamicWidgets } from '@/core/graph/widgets/dynamicWidgets'
import { useBooleanWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget'
import { useBoundingBoxWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBoundingBoxWidget'
import { useCurveWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useCurveWidget'
import { useChartWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useChartWidget'
import { useColorWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useColorWidget'
import { useComboWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useComboWidget'
import { useFloatWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useFloatWidget'
import { useGalleriaWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useGalleriaWidget'
import { useImageCompareWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useImageCompareWidget'
import { useImageUploadWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget'
import { useIntWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useIntWidget'
import { useMarkdownWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useMarkdownWidget'
import { usePainterWidget } from '@/renderer/extensions/vueNodes/widgets/composables/usePainterWidget'
import { useStringWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useStringWidget'
import { useTextareaWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useTextareaWidget'
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
import type { InputSpec } from '@/schemas/nodeDefSchema'
import type { ComfyApp } from './app'
import './domWidget'
import './errorNodeWidgets'
export type ComfyWidgetConstructorV2 = (
node: LGraphNode,
inputSpec: InputSpecV2
) => IBaseWidget
export type ComfyWidgetConstructor = (
node: LGraphNode,
inputName: string,
inputData: InputSpec,
app: ComfyApp,
widgetName?: string
) => { widget: IBaseWidget; minWidth?: number; minHeight?: number }
/**
* Transforms a V2 widget constructor to a V1 widget constructor.
* @param widgetConstructorV2 The V2 widget constructor to transform.
* @returns The transformed V1 widget constructor.
*/
const transformWidgetConstructorV2ToV1 = (
widgetConstructorV2: ComfyWidgetConstructorV2
): ComfyWidgetConstructor => {
return (node, inputName, inputData) => {
const inputSpec = transformInputSpecV1ToV2(inputData, {
name: inputName
})
const widget = widgetConstructorV2(node, inputSpec)
return {
widget,
minWidth: widget.options.minNodeSize?.[0],
minHeight: widget.options.minNodeSize?.[1]
}
}
}
function controlValueRunBefore() {
return useSettingStore().get('Comfy.WidgetControlMode') === 'before'
}
export function updateControlWidgetLabel(widget: IBaseWidget) {
if (controlValueRunBefore()) {
widget.label = t('g.control_before_generate')
} else {
widget.label = t('g.control_after_generate')
}
}
export const IS_CONTROL_WIDGET = Symbol()
const HAS_EXECUTED = Symbol()
export function addValueControlWidget(
node: LGraphNode,
targetWidget: IBaseWidget,
defaultValue?: string,
_values?: unknown,
widgetName?: string,
inputData?: InputSpec
): IComboWidget {
let name = inputData?.[1]?.control_after_generate
if (typeof name !== 'string') {
name = widgetName
}
const widgets = addValueControlWidgets(
node,
targetWidget,
defaultValue ?? 'randomize',
{
addFilterList: false,
controlAfterGenerateName: name
},
inputData
)
return widgets[0]
}
export function addValueControlWidgets(
node: LGraphNode,
targetWidget: IBaseWidget,
defaultValue?: string,
options?: Record<string, any>,
inputData?: InputSpec
): [IComboWidget, ...IStringWidget[]] {
if (!defaultValue) defaultValue = 'randomize'
if (!options) options = {}
const getName = (defaultName: string, optionName: string) => {
let name = defaultName
if (options[optionName]) {
name = options[optionName]
} else if (typeof inputData?.[1]?.[defaultName] === 'string') {
name = inputData?.[1]?.[defaultName]
} else if (inputData?.[1]?.control_prefix) {
name = inputData?.[1]?.control_prefix + ' ' + name
}
return name
}
const valueControl = node.addWidget(
'combo',
getName('control_after_generate', 'controlAfterGenerateName'),
defaultValue,
function () {},
{
values: ['fixed', 'increment', 'decrement', 'randomize'],
serialize: false, // Don't include this in prompt.
canvasOnly: true
}
) as IComboWidget
valueControl.tooltip =
'Allows the linked widget to be changed automatically, for example randomizing the noise seed.'
valueControl[IS_CONTROL_WIDGET] = true
updateControlWidgetLabel(valueControl)
Object.defineProperty(valueControl, 'disabled', {
get: () => targetWidget.computedDisabled
})
const widgets: [IComboWidget, ...IStringWidget[]] = [valueControl]
const isCombo = isComboWidget(targetWidget)
let comboFilter: IStringWidget
if (isCombo && valueControl.options.values) {
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
valueControl.options.values.push('increment-wrap')
}
if (isCombo && options.addFilterList !== false) {
comboFilter = node.addWidget(
'string',
getName('control_filter_list', 'controlFilterListName'),
'',
function () {},
{
serialize: false // Don't include this in prompt.
}
) as IStringWidget
updateControlWidgetLabel(comboFilter)
comboFilter.tooltip =
"Allows for filtering the list of values when changing the value via the control generate mode. Allows for RegEx matches in the format /abc/ to only filter to values containing 'abc'."
Object.defineProperty(comboFilter, 'disabled', {
get: () => targetWidget.computedDisabled
})
widgets.push(comboFilter)
}
const applyWidgetControl = () => {
var v = valueControl.value
if (isCombo && v !== 'fixed') {
let values = targetWidget.options.values ?? []
const filter = comboFilter?.value
if (filter) {
let check
if (filter.startsWith('/') && filter.endsWith('/')) {
try {
const regex = new RegExp(filter.substring(1, filter.length - 1))
check = (item: string) => regex.test(item)
} catch (error) {
console.error(
'Error constructing RegExp filter for node ' + node.id,
filter,
error
)
}
}
if (!check) {
const lower = filter.toLocaleLowerCase()
check = (item: string) => item.toLocaleLowerCase().includes(lower)
}
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
values = values.filter((item: string) => check(item))
if (!values.length && targetWidget.options.values?.length) {
console.warn(
'Filter for node ' + node.id + ' has filtered out all items',
filter
)
}
}
// @ts-expect-error targetWidget.value can be number or string
let current_index = values.indexOf(targetWidget.value)
let current_length = values.length
switch (v) {
case 'increment':
current_index += 1
break
case 'increment-wrap':
current_index += 1
if (current_index >= current_length) {
current_index = 0
}
break
case 'decrement':
current_index -= 1
break
case 'randomize':
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
current_index = Math.floor(Math.random() * current_length)
break
default:
break
}
current_index = Math.max(0, current_index)
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
current_index = Math.min(current_length - 1, current_index)
if (current_index >= 0) {
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
let value = values[current_index]
targetWidget.value = value
targetWidget.callback?.(value)
}
} else {
//number
let { min = 0, max = 1, step2 = 1 } = targetWidget.options
// limit to something that javascript can handle
max = Math.min(1125899906842624, max)
min = Math.max(-1125899906842624, min)
let range = (max - min) / step2
//adjust values based on valueControl Behaviour
switch (v) {
case 'fixed':
break
case 'increment':
// @ts-expect-error targetWidget.value can be number or string
targetWidget.value += step2
break
case 'decrement':
// @ts-expect-error targetWidget.value can be number or string
targetWidget.value -= step2
break
case 'randomize':
targetWidget.value = Math.floor(Math.random() * range) * step2 + min
break
default:
break
}
/*check if values are over or under their respective
* ranges and set them to min or max.*/
// @ts-expect-error targetWidget.value can be number or string
if (targetWidget.value < min) targetWidget.value = min
// @ts-expect-error targetWidget.value can be number or string
if (targetWidget.value > max) targetWidget.value = max
targetWidget.callback?.(targetWidget.value)
}
}
valueControl.beforeQueued = ({ isPartialExecution } = {}) => {
if (!isPartialExecution && controlValueRunBefore()) {
// Don't run on first execution
if (valueControl[HAS_EXECUTED]) {
applyWidgetControl()
}
}
valueControl[HAS_EXECUTED] = true
}
valueControl.afterQueued = ({ isPartialExecution } = {}) => {
if (!isPartialExecution && !controlValueRunBefore()) {
applyWidgetControl()
}
}
return widgets
}
export const ComfyWidgets = {
INT: transformWidgetConstructorV2ToV1(useIntWidget()),
FLOAT: transformWidgetConstructorV2ToV1(useFloatWidget()),
BOOLEAN: transformWidgetConstructorV2ToV1(useBooleanWidget()),
STRING: transformWidgetConstructorV2ToV1(useStringWidget()),
MARKDOWN: transformWidgetConstructorV2ToV1(useMarkdownWidget()),
COMBO: transformWidgetConstructorV2ToV1(useComboWidget()),
IMAGEUPLOAD: useImageUploadWidget(),
COLOR: transformWidgetConstructorV2ToV1(useColorWidget()),
IMAGECOMPARE: transformWidgetConstructorV2ToV1(useImageCompareWidget()),
BOUNDING_BOX: transformWidgetConstructorV2ToV1(useBoundingBoxWidget()),
CHART: transformWidgetConstructorV2ToV1(useChartWidget()),
GALLERIA: transformWidgetConstructorV2ToV1(useGalleriaWidget()),
PAINTER: transformWidgetConstructorV2ToV1(usePainterWidget()),
TEXTAREA: transformWidgetConstructorV2ToV1(useTextareaWidget()),
CURVE: transformWidgetConstructorV2ToV1(useCurveWidget()),
...dynamicWidgets
} as const
export function isValidWidgetType(
key: unknown
): key is keyof typeof ComfyWidgets {
return ComfyWidgets[key as keyof typeof ComfyWidgets] !== undefined
}
@@ -0,0 +1,159 @@
import type {
ExecutableLGraphNode,
ExecutionId,
LGraph
} from '@/lib/litegraph/src/litegraph'
import {
ExecutableNodeDTO,
LGraphEventMode
} from '@/lib/litegraph/src/litegraph'
import type {
ComfyApiWorkflow,
ComfyWorkflowJSON
} from '@/platform/workflow/validation/schemas/workflowSchema'
import { ExecutableGroupNodeDTO, isGroupNode } from './executableGroupNodeDto'
import { compressWidgetInputSlots } from './litegraphUtil'
/**
* Converts the current graph workflow for sending to the API.
* @note Node widgets are updated before serialization to prepare queueing.
*
* @param graph The graph to convert.
* @param options The options for the conversion.
* - `sortNodes`: Whether to sort the nodes by execution order.
* @returns The workflow and node links
*/
export const graphToPrompt = async (
graph: LGraph,
options: { sortNodes?: boolean } = {}
): Promise<{ workflow: ComfyWorkflowJSON; output: ComfyApiWorkflow }> => {
const { sortNodes = false } = options
for (const node of graph.computeExecutionOrder(false)) {
const innerNodes = node.getInnerNodes
? node.getInnerNodes(new Map())
: [node]
for (const innerNode of innerNodes) {
if (innerNode.isVirtualNode) {
innerNode.applyToGraph?.()
}
}
}
const workflow = graph.serialize({ sortNodes })
// Remove localized_name from the workflow
for (const node of workflow.nodes) {
for (const slot of node.inputs ?? []) {
delete slot.localized_name
}
for (const slot of node.outputs ?? []) {
delete slot.localized_name
}
}
compressWidgetInputSlots(workflow)
workflow.extra ??= {}
workflow.extra.frontendVersion = __COMFYUI_FRONTEND_VERSION__
const nodeDtoMap = new Map<ExecutionId, ExecutableLGraphNode>()
for (const node of graph.computeExecutionOrder(false)) {
const dto: ExecutableLGraphNode = isGroupNode(node)
? new ExecutableGroupNodeDTO(node, [], nodeDtoMap)
: new ExecutableNodeDTO(node, [], nodeDtoMap)
nodeDtoMap.set(dto.id, dto)
if (
node.mode === LGraphEventMode.NEVER ||
node.mode === LGraphEventMode.BYPASS
) {
continue
}
for (const innerNode of dto.getInnerNodes()) {
nodeDtoMap.set(innerNode.id, innerNode)
}
}
const output: ComfyApiWorkflow = {}
// Process nodes in order of execution
for (const node of nodeDtoMap.values()) {
// Don't serialize muted nodes
if (
node.isVirtualNode ||
node.mode === LGraphEventMode.NEVER ||
node.mode === LGraphEventMode.BYPASS
) {
continue
}
const inputs: ComfyApiWorkflow[string]['inputs'] = {}
const { widgets } = node
// Store all widget values in the API prompt.
// Note: widget.options.serialize controls prompt inclusion (checked here).
// widget.serialize controls workflow persistence (checked by LGraphNode).
if (widgets) {
for (const [i, widget] of widgets.entries()) {
if (!widget.name || widget.options?.serialize === false) continue
const widgetValue = widget.serializeValue
? await widget.serializeValue(node, i)
: widget.value
// By default, Array values are reserved to represent node connections.
// We need to wrap the array as an object to avoid the misinterpretation
// of the array as a node connection.
// The backend automatically unwraps the object to an array during
// execution.
inputs[widget.name] = Array.isArray(widgetValue)
? widget.type === 'curve'
? { __type__: 'CURVE', __value__: widgetValue }
: { __value__: widgetValue }
: widgetValue
}
}
// Store all node links
for (const [i, input] of node.inputs.entries()) {
const resolvedInput = node.resolveInput(i)
if (!resolvedInput) continue
// Resolved to an actual widget value rather than a node connection
if (resolvedInput.widgetInfo) {
const { value } = resolvedInput.widgetInfo
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
continue
}
inputs[input.name] = [
String(resolvedInput.origin_id),
// @ts-expect-error link.origin_slot is already number.
parseInt(resolvedInput.origin_slot)
]
}
output[String(node.id)] = {
inputs,
// TODO(huchenlei): Filter out all nodes that cannot be mapped to a
// comfyClass.
class_type: node.comfyClass!,
// Ignored by the backend.
_meta: {
title: node.title
}
}
}
// Remove inputs connected to removed nodes
for (const { inputs } of Object.values(output)) {
for (const [i, input] of Object.entries(inputs)) {
if (Array.isArray(input) && input.length === 2 && !output[input[0]]) {
delete inputs[i]
}
}
}
return { workflow: workflow as ComfyWorkflowJSON, output }
}
@@ -0,0 +1,193 @@
{
"sources": [
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "LICENSE",
"local_file": "core__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_io.py",
"local_file": "core__comfy_api__latest___io.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_io.py",
"sha256": "7808265ecb4ce92af76ec1e100ff92fd9880fd7e60d113621dad6e602f6f9bd5"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_api/latest/_ui.py",
"local_file": "core__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_compositing.py",
"local_file": "core__comfy_extras__nodes_compositing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_image_compare.py",
"local_file": "core__comfy_extras__nodes_image_compare.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_image_compare.py",
"sha256": "e0289cfdc36a652915663203760cd1049dbf34551a4eabdc12dfe9ca8aa6777d"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_images.py",
"local_file": "core__comfy_extras__nodes_images.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_images.py",
"sha256": "ab59367340794f9039c2c725f860d37e897bdf8d39417ec10b962184938763dd"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_mask.py",
"local_file": "core__comfy_extras__nodes_mask.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_painter.py",
"local_file": "core__comfy_extras__nodes_painter.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_painter.py",
"sha256": "70abd5824d754a01a9df6bbef296eec2ab3267263150c5fe4b194c910cd87f00"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "comfy_extras/nodes_train.py",
"local_file": "core__comfy_extras__nodes_train.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_train.py",
"sha256": "afee4bb97c7880d2e1e1af711138b10444ab7e98b2838cfa546620a26c3cb6e2"
},
{
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
"file": "nodes.py",
"local_file": "core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"local_file": "frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"local_file": "frontend__src__composables__node__useNodeImageUpload.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraph.ts",
"local_file": "frontend__src__lib__litegraph__src__LGraph.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraph.ts",
"sha256": "0a43fdd5a70943dbbd25255a9831c90090754054a60b1651c406ee5b759f55c6"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/widgets/LegacyWidget.ts",
"local_file": "frontend__src__lib__litegraph__src__widgets__LegacyWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/widgets/LegacyWidget.ts",
"sha256": "05d098254988191736f1c72f7efc57e3f350d97c82267a97f0b8c193d65daa96"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/platform/assets/utils/createAssetWidget.ts",
"local_file": "frontend__src__platform__assets__utils__createAssetWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/platform/assets/utils/createAssetWidget.ts",
"sha256": "cef3f86a5ad18478575a1e970389ddf9ed1acaf599bf9da19d83c15c4918cfa7"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"local_file": "frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/app.ts",
"local_file": "frontend__src__scripts__app.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/app.ts",
"sha256": "446020fa424f36557ab37306188279eb354a775be16f4994c0216a8c4437fab0"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d"
},
{
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"local_file": "frontend__src__utils__executionUtil.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33"
}
]
}
@@ -0,0 +1,10 @@
{
"core": {
"tag": "v0.19.3",
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66"
},
"frontend": {
"tag": "v1.43.17",
"commit": "f754141537fecaae53d635d94615f588b0e39f95"
}
}
+102
View File
@@ -0,0 +1,102 @@
// Local GET-only: three BiRefNet positions, one Note and twenty-three frozen summaries.
import fs from 'node:fs';
import assert from 'node:assert/strict';
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
const out='.local-evidence/birefnet-document/browser';fs.mkdirSync(out,{recursive:true});
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={};let group='aggregate';
function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);}
const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE});
try {
const page=await browser.newPage({viewport:{width:1440,height:1000}});
await page.route('**/*',route=>{
const u=new URL(route.request().url());
if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});}
if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();}
return route.continue();
});
page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});});
page.on('pageerror',e=>errors.push(e.message));
requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'});
const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json();
const names=['birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述'];
const details=[];
for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());}
check(details.length===24&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===665,'24图665保存位置');
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===16,'24图16源注释');
await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'});
const dialog=page.getByRole('dialog',{name:'工作流说明'});
const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})});
async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;}
async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));}
for(const width of [1440,390]){
await page.setViewportSize({width,height:width===390?844:1000});
for(const d of details){
group=details.indexOf(d)<1?'new_birefnet':'old_twenty_three';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded();
const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})});
check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`);
check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`);
check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`);
const visible=await fixedCard.innerText();
check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`);
check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`);
for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`);
check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`);
check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`);
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`);
await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0);
if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;}
await dialog.getByText('源图与审校记录',{exact:true}).click();
check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`);
await dialog.getByText('核对范围与来源依据',{exact:true}).click();
const flowText=await fixedCard.innerText();
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
if(width===1440){await fixedCard.getByText(b.flow.find(x=>x.includes('1-resize(1-M)')),{exact:true}).evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-alpha-flow.png`});}
await dialog.getByText('版本、源图与连线依据',{exact:true}).click();
check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`);
const versionText=await fixedCard.innerText();
for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`);
if(details.indexOf(d)<1){
for(const f of b.fields){
const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..');
check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`);
let text=await box.innerText();check(text.includes(f.effect)&&text.includes(f.limits)&&text.includes(f.schema_default)&&text.includes(f.execution_note)&&text.includes(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`);
check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`);
check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`);
await box.getByText('来源依据',{exact:true}).click();text=await box.innerText();
check(text.includes(f.pointer)&&text.includes(f.class_type)&&text.includes(f.json_type)&&f.evidence.every(i=>{const e=b.sources[i];return text.includes(e.commit)&&text.includes(e.sha256)&&text.includes(e.lines.join('~'));}),`${width} ${f.node_id}.${f.field}精确源码/类型/指针`);
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`);
if(width===1440&&f.field==='bg_removal_name')await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`});
await summary.click();
}
for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-note.png`});}await summary.click();}
await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`);
}
await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`);
}
}
group='shared_regressions';
for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');}
// Missing summary and mismatched bindings are tested with local GET fixtures, without writes.
for(const variant of ['missing-overview','mismatched','html-summary']){
const d=structuredClone(details[0]);
if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview;
if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'};
if(variant==='html-summary')d.doc_json.fixed_version.user_overview='<img src="https://example.invalid/forbidden">仅纯文本';
await page.route(`**/api/workflows/${d.id}`,route=>route.fulfill({json:d}));await begin(d.name);await loaded();
if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退');
if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段');
if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求');
check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`);
}
let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r);
await page.route(`**/api/workflows/${details[0].id}`,async route=>{entered();await hold;await route.fulfill({json:details[0]});delivered();});
await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done;
check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到BiRefNet图响应不覆盖旧latent摘要/13字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
await page.route(`**/api/workflows/${details[0].id}`,route=>route.fulfill({status:500,json:{detail:'隔离失败夹具'}}));await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape');
check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求');
const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname));
const fixed=requests.filter(r=>!polling.includes(r));
const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length]));
fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
} finally {await browser.close();}
+78
View File
@@ -0,0 +1,78 @@
"""Foreground local browser check; stop every owned service before returning."""
from __future__ import annotations
import os
import signal
import subprocess
import sys
import time
import urllib.error
import urllib.request
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
OUT = ROOT / ".local-evidence/birefnet-document/browser"
def main():
OUT.mkdir(parents=True, exist_ok=True)
# Refuse to reuse another operator's service or port.
import socket
for port in (8247, 5173):
with socket.socket() as sock:
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(("127.0.0.1", port))
processes = []
logs = []
try:
commands = [
([sys.executable, str(ROOT / "e2e/workflow-document-server.py")], ROOT),
(
["node", "node_modules/vite/bin/vite.js", "--host", "127.0.0.1"],
ROOT / "calliope-web",
),
]
for i, (command, cwd) in enumerate(commands):
log = (OUT / f"service-{i}.log").open("w")
logs.append(log)
processes.append(
subprocess.Popen(command, cwd=cwd, stdout=log, stderr=log, start_new_session=True)
)
for url in (
"http://127.0.0.1:8247/api/workflows",
"http://127.0.0.1:5173/connections",
):
deadline = time.monotonic() + 30
while True:
if any(p.poll() is not None for p in processes):
raise RuntimeError("Local service exited; inspect service logs")
try:
with urllib.request.urlopen(url, timeout=1) as response:
if response.status == 200:
break
except (urllib.error.URLError, TimeoutError):
pass
if time.monotonic() > deadline:
raise TimeoutError(url)
time.sleep(0.2)
names = ["birefnet"]
for name in names:
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
finally:
for p in processes:
if p.poll() is None:
os.killpg(p.pid, signal.SIGTERM)
try:
p.wait(timeout=10)
except subprocess.TimeoutExpired:
os.killpg(p.pid, signal.SIGKILL)
p.wait(timeout=5)
for log in logs:
log.close()
print("All owned browser services stopped.")
if __name__ == "__main__":
main()