docs: bind SAM3 image and muted video reference explanation
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json"
|
||||
): "f38590f50690875872c362beff83e28f4419e30c40a298ad2dd7239acbeed1c2",
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/多视频合成分屏展示.json"
|
||||
|
||||
@@ -3731,7 +3731,910 @@
|
||||
"scope": [
|
||||
"结构及用途局部审校",
|
||||
"源具名参数/注释/连线/素材模型用途人工语义局部审校"
|
||||
]
|
||||
],
|
||||
"fixed_version_document": {
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"source_sha1": "c249489330431c46157a8e12df9b6484ee003ba6",
|
||||
"source_sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488",
|
||||
"canonical_sha256": "0dbeb9e7b57b11a86af676bb0aa3e355ec46c885c26d6736e8219c73f7ba26fd",
|
||||
"notice": "准确版本仅作参考;SAM3实现未找到、promoted/模型兼容/效果未知;视频静音,未实跑、转换保持关闭。",
|
||||
"user_overview": "这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。",
|
||||
"versions": [
|
||||
"core0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66;frontend1.42.15→4705b3186ecd621151daf95dd702009b266bd819;tag/完整树/必要源码及许可固定。",
|
||||
"UE7.8仅源声明;Muter无提供方/版本;准确核心有界未找到SAM3_Detect实现,不跨版本补缺。"
|
||||
],
|
||||
"counts": {
|
||||
"saved_fields": 18,
|
||||
"source_nodes": 15,
|
||||
"definition_nodes": 8,
|
||||
"physical_edges": 14,
|
||||
"definition_edges": 31,
|
||||
"source_notes": 3,
|
||||
"history_objects": 0,
|
||||
"linked_saved_fields": 1,
|
||||
"frontend_only": 2,
|
||||
"final_scalars": 0,
|
||||
"final_prompt_constructed": false
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"field": "file",
|
||||
"label": "视频文件引用(静音支路)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知",
|
||||
"effect": "保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。",
|
||||
"evidence": [
|
||||
9,
|
||||
10
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "132",
|
||||
"definition_node_id": "132",
|
||||
"class_type": "LoadVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"value": "drinking_unicorn.mp4",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "upload_state",
|
||||
"label": "视频上传控件保存状态",
|
||||
"type": "前端附加状态",
|
||||
"schema_default": "无服务端参数默认",
|
||||
"unit": "未知",
|
||||
"limits": "保存image;不是LoadVideo第二个服务端参数",
|
||||
"effect": "准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。",
|
||||
"evidence": [
|
||||
9,
|
||||
17
|
||||
],
|
||||
"role": "frontend_state_unknown",
|
||||
"node_id": "132",
|
||||
"definition_node_id": "132",
|
||||
"class_type": "LoadVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/1/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "fps",
|
||||
"label": "帧率保存值(被物理外线覆盖)",
|
||||
"type": "FLOAT",
|
||||
"schema_default": "30.0",
|
||||
"unit": "帧/秒",
|
||||
"limits": "schema为1~120,step1;源外线值未知",
|
||||
"effect": "保存30,但134.fps由133.fps经物理边314接入;133来自132的视频,实际FPS未知,不用保存30推算时长。133.audio也接134,137的audio/fps出口均未接。",
|
||||
"evidence": [
|
||||
9,
|
||||
11
|
||||
],
|
||||
"role": "linked_saved_value",
|
||||
"node_id": "134",
|
||||
"definition_node_id": "134",
|
||||
"class_type": "CreateVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"value": 30,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "filename_prefix",
|
||||
"label": "视频文件名前缀(静音)",
|
||||
"type": "STRING",
|
||||
"schema_default": "video/ComfyUI",
|
||||
"unit": "字符串/枚举",
|
||||
"limits": "字符串,源码无长度上限;目录与权限未知",
|
||||
"effect": "保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。",
|
||||
"evidence": [
|
||||
9,
|
||||
11,
|
||||
15
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "135",
|
||||
"definition_node_id": "135",
|
||||
"class_type": "SaveVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/4/widgets_values/0",
|
||||
"value": "video/ComfyUI",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "format",
|
||||
"label": "视频容器自动选择(静音)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "auto",
|
||||
"unit": "字符串/枚举",
|
||||
"limits": "auto/mp4;auto扩展名mp4,目标支持未知",
|
||||
"effect": "保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。",
|
||||
"evidence": [
|
||||
9,
|
||||
11,
|
||||
15
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "135",
|
||||
"definition_node_id": "135",
|
||||
"class_type": "SaveVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/4/widgets_values/1",
|
||||
"value": "auto",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "codec",
|
||||
"label": "视频编码器自动选择(静音)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "auto",
|
||||
"unit": "字符串/枚举",
|
||||
"limits": "auto/h264;实际编码器与Alpha保留未知",
|
||||
"effect": "保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。",
|
||||
"evidence": [
|
||||
9,
|
||||
11,
|
||||
15
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "135",
|
||||
"definition_node_id": "135",
|
||||
"class_type": "SaveVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/4/widgets_values/2",
|
||||
"value": "auto",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "image",
|
||||
"label": "活动图片文件引用",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "input图片动态成员,未核目录或文件存在",
|
||||
"effect": "保存微信图片文件名仅作源引用。152.IMAGE一支接154.image,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。",
|
||||
"evidence": [
|
||||
2
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "152",
|
||||
"definition_node_id": "152",
|
||||
"class_type": "LoadImage",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/13/widgets_values/0",
|
||||
"value": "微信图片_20260425191936_248_41.jpg",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "upload_state",
|
||||
"label": "图片上传控件保存状态",
|
||||
"type": "前端附加状态",
|
||||
"schema_default": "无服务端参数默认",
|
||||
"unit": "未知",
|
||||
"limits": "保存image,仅前端附加状态",
|
||||
"effect": "LoadImage服务端只定义image;第二位置不是模型参数或后台输入。未读取/上传该图片,宿主/UE恢复顺序未知。",
|
||||
"evidence": [
|
||||
2,
|
||||
17
|
||||
],
|
||||
"role": "frontend_state_unknown",
|
||||
"node_id": "152",
|
||||
"definition_node_id": "152",
|
||||
"class_type": "LoadImage",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/13/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "threshold",
|
||||
"label": "内部检测阈值保存位置",
|
||||
"type": "FLOAT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "137:101",
|
||||
"definition_node_id": "101",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/0",
|
||||
"value": 0.5,
|
||||
"json_type": "float",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "refine_iterations",
|
||||
"label": "内部细化次数保存位置",
|
||||
"type": "INT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知,次数仅字段名线索",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "137:101",
|
||||
"definition_node_id": "101",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/1",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "individual_masks",
|
||||
"label": "内部独立遮罩开关保存位置",
|
||||
"type": "BOOLEAN(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "布尔保存态",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "137:101",
|
||||
"definition_node_id": "101",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/2",
|
||||
"value": false,
|
||||
"json_type": "bool",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "ckpt_name",
|
||||
"label": "内部检查点引用(与推荐名冲突)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态checkpoints列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "模型/CLIP家族及实际目录、动态列表与SAM3支持未知",
|
||||
"effect": "两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。",
|
||||
"evidence": [
|
||||
1,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "137:102",
|
||||
"definition_node_id": "102",
|
||||
"class_type": "CheckpointLoaderSimple",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/1/widgets_values/0",
|
||||
"value": "sam3.1_multiplex.pt",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "text",
|
||||
"label": "内部潜在分割文本",
|
||||
"type": "STRING",
|
||||
"schema_default": "schema未显式默认,不能由现值当默认",
|
||||
"unit": "文本",
|
||||
"limits": "准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证",
|
||||
"effect": "视频定义内部保存unicorn,图片定义内部保存clothes,各自经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。",
|
||||
"evidence": [
|
||||
0,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "137:100",
|
||||
"definition_node_id": "100",
|
||||
"class_type": "CLIPTextEncode",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/4/widgets_values/0",
|
||||
"value": "unicorn",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "text",
|
||||
"label": "内部潜在分割文本",
|
||||
"type": "STRING",
|
||||
"schema_default": "schema未显式默认,不能由现值当默认",
|
||||
"unit": "文本",
|
||||
"limits": "准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证",
|
||||
"effect": "视频定义内部保存unicorn,图片定义内部保存clothes,各自经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。",
|
||||
"evidence": [
|
||||
0,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "154:78",
|
||||
"definition_node_id": "78",
|
||||
"class_type": "CLIPTextEncode",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/0/widgets_values/0",
|
||||
"value": "clothes",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "threshold",
|
||||
"label": "内部检测阈值保存位置",
|
||||
"type": "FLOAT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "154:75",
|
||||
"definition_node_id": "75",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/0",
|
||||
"value": 0.5,
|
||||
"json_type": "float",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "refine_iterations",
|
||||
"label": "内部细化次数保存位置",
|
||||
"type": "INT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知,次数仅字段名线索",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "154:75",
|
||||
"definition_node_id": "75",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/1",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "individual_masks",
|
||||
"label": "内部独立遮罩开关保存位置",
|
||||
"type": "BOOLEAN(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "布尔保存态",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "154:75",
|
||||
"definition_node_id": "75",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/2",
|
||||
"value": false,
|
||||
"json_type": "bool",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "ckpt_name",
|
||||
"label": "内部检查点引用(与推荐名冲突)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态checkpoints列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "模型/CLIP家族及实际目录、动态列表与SAM3支持未知",
|
||||
"effect": "两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。",
|
||||
"evidence": [
|
||||
1,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "154:77",
|
||||
"definition_node_id": "77",
|
||||
"class_type": "CheckpointLoaderSimple",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/2/widgets_values/0",
|
||||
"value": "sam3.1_multiplex.pt",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
59,
|
||||
81
|
||||
],
|
||||
"claim": "文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
588,
|
||||
610
|
||||
],
|
||||
"claim": "动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
1700,
|
||||
1779
|
||||
],
|
||||
"claim": "LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
1627,
|
||||
1699
|
||||
],
|
||||
"claim": "PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
|
||||
"lines": [
|
||||
188,
|
||||
226
|
||||
],
|
||||
"claim": "Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
|
||||
"lines": [
|
||||
1,
|
||||
30
|
||||
],
|
||||
"claim": "遮罩尺寸适配辅助函数及插值;未执行张量运算"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_mask.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_mask.py",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
|
||||
"git_blob_sha1": "c446025974bcb83deea6abf11e870015f45da960",
|
||||
"lines": [
|
||||
403,
|
||||
445
|
||||
],
|
||||
"claim": "MaskPreview注册并调用UI.PreviewMask"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"lines": [
|
||||
389,
|
||||
412
|
||||
],
|
||||
"claim": "PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"lines": [
|
||||
88,
|
||||
168
|
||||
],
|
||||
"claim": "ImageSaveHelper输出PNG及目录创建条件"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
|
||||
"lines": [
|
||||
68,
|
||||
205
|
||||
],
|
||||
"claim": "核心视频四节点的准确schema、fps外线、读取与保存调用"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
|
||||
"lines": [
|
||||
259,
|
||||
272
|
||||
],
|
||||
"claim": "视频扩展准确注册列表"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_util/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___util__video_types.py",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02",
|
||||
"git_blob_sha1": "fd3b5a510df4d1bd0b65141bd3d27953ec9cfc9a",
|
||||
"lines": [
|
||||
1,
|
||||
52
|
||||
],
|
||||
"claim": "视频组件和容器/编码器枚举"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
2016,
|
||||
2111
|
||||
],
|
||||
"claim": "核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
2330,
|
||||
2440
|
||||
],
|
||||
"claim": "扩展模块加载范围,未发现SAM3命名模块,非目标安装事实"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"sha256": "32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2",
|
||||
"git_blob_sha1": "3fc76441cc0fa19f8b0b07c2c6c2a606c3629b96",
|
||||
"lines": [
|
||||
993,
|
||||
1123
|
||||
],
|
||||
"claim": "准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_input_impl/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___input_impl__video_types.py",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918",
|
||||
"git_blob_sha1": "1b4993aa74c0fe91b8139aa60751a91c4f298cc9",
|
||||
"lines": [
|
||||
382,
|
||||
459
|
||||
],
|
||||
"claim": "VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/extensions/core/noteNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/extensions/core/noteNode.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__extensions__core__noteNode.ts",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2",
|
||||
"git_blob_sha1": "7e0ec56a6fb83f81c754efd30eb597b45bd5b072",
|
||||
"lines": [
|
||||
7,
|
||||
83
|
||||
],
|
||||
"claim": "Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
|
||||
"git_blob_sha1": "517e6f0e836f01df6c2ab08f3fe71d096d54aad6",
|
||||
"lines": [
|
||||
285,
|
||||
307
|
||||
],
|
||||
"claim": "准确前端控件模块;上传附加状态不是服务端参数"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
|
||||
"local_file": "../sam3-reference/core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确完整提交许可原文"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/LICENSE",
|
||||
"local_file": "../sam3-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确完整提交许可原文"
|
||||
}
|
||||
],
|
||||
"comments": [
|
||||
{
|
||||
"node_id": "112",
|
||||
"pointer": "/nodes/7/widgets_values",
|
||||
"scope": "root",
|
||||
"text": "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links (for Local Users)\n\n**checkpoints**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 checkpoints/\n│ └── sam3.1_multiplex_fp16.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": "完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。"
|
||||
},
|
||||
{
|
||||
"node_id": "113",
|
||||
"pointer": "/nodes/8/widgets_values",
|
||||
"scope": "root",
|
||||
"text": "Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels\n\n```\neye:2, window panels:4\n```\n\n\n\n",
|
||||
"meaning": "完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。"
|
||||
},
|
||||
{
|
||||
"node_id": "0925a49b-2fa2-44e9-8afc-aa70380d84e6/105",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/3/widgets_values",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"text": "Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels",
|
||||
"meaning": "完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。"
|
||||
}
|
||||
],
|
||||
"flow": [
|
||||
"这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。",
|
||||
"活动图片:152.IMAGE→154.image和153.image;154.masks→153.alpha与155.mask,153.IMAGE→151.images。152.MASK未接;154.bboxes出口为空,bboxes/positive_coords/negative_coords宿主输入都未接,不猜坐标格式或分割方向。",
|
||||
"准确VideoFromComponents保存仅接受auto/mp4与auto/h264,固定路径构造rgb24并转yuv420p;Join输出四通道,不声称透明视频能保存或保留Alpha,未实测后果。",
|
||||
"准确JoinImageWithAlpha先resize_mask再1-alpha;批次取min,拼原图前三RGB通道。这里只说明该准确核心运算,不由此推断SAM3的MASK哪边代表前景、边缘效果或最终透明区域。PreviewImage继承SaveImage写temp PNG;MaskPreview经UI.PreviewMask→RGB→temp PNG。无正式SaveImage节点,不称永久图片保存或保证无磁盘写入。",
|
||||
"视频组131/132/133/134/135/137/136均mode2静音。132.VIDEO同时到133.video、137.video;133.images→131.image,137.masks→131.alpha及136.mask,131.IMAGE→134.images,133.audio/fps→134→135。134保存30被物理边314的133.fps覆盖,实际FPS未知;137自己的audio/fps出口未接,不混同133输出。不模拟Muter或静音切换。",
|
||||
"两个子图UUID分别0925a49b-2fa2-44e9-8afc-aa70380d84e6与48668c69-3b7f-4f0a-9689-2590a4106289。137/154各widgets_values=[]、proxyWidgets各5绑定,定义widgets=[]。内部text为unicorn/clothes、threshold0.5/refine_iterations2/individual_masksfalse、ckpt_name均sam3.1_multiplex.pt。所有具名边界、数组与原指针分开保留,不把负ID边界当实体、不推算最终promoted值。视频内部5节点mode2,图片内部3节点mode0。",
|
||||
"两个Checkpoint的属性/源注释推荐sam3.1_multiplex_fp16.safetensors,但保存sam3.1_multiplex.pt;不替换、不承诺兼容、不下载权重。两CLIPTextEncode从各自Checkpoint.CLIP取值,VAE未接。动态模型列表、SAM3模型/CLIP家族和真实目录未知。",
|
||||
"准确core0.19.3完整树没有SAM3命名模块;有界核对nodes.py注册与扩展模块范围,未找到SAM3_Detect准确实现。不能把源cnr_id/ver当安装事实、不能借新版SAM3解释threshold/refine_iterations/individual_masks、bboxes与坐标、默认/范围/单位或模型支持。具体调查集合见bounded-investigation.json与sources.json,不无限搜索历史。",
|
||||
"Muter150原缺widgets_values、提供方和版本,UE7.8及扩展恢复顺序未知。准确前端源码仅固定宿主configure/proxyWidgets参考,未加载宿主/UE、模型或插件,不求值promoted。两个MarkdownNote和内部Note全文保留,32 tokens/逗号/:N仅源注释,不能当运行协议或下载授权。",
|
||||
"素材文件、视频FPS、编码器、动态模型列表、目录权限、目标安装/UE和效果未核实;不请求图片/视频/注释URL,不索取机器窗口。155完整定稿0/必要实跑0/新增转换0,保持停用未检查与原资格。",
|
||||
"作用域root:15实体节点/14物理或含边界记录;根边与定义边分别保留。",
|
||||
"原边 root [309, 133, 0, 131, 0, \"IMAGE\"]",
|
||||
"原边 root [310, 137, 0, 131, 1, \"MASK\"]",
|
||||
"原边 root [311, 132, 0, 133, 0, \"VIDEO\"]",
|
||||
"原边 root [312, 131, 0, 134, 0, \"IMAGE\"]",
|
||||
"原边 root [313, 133, 1, 134, 1, \"AUDIO\"]",
|
||||
"原边 root [314, 133, 2, 134, 2, \"FLOAT\"]",
|
||||
"原边 root [315, 134, 0, 135, 0, \"VIDEO\"]",
|
||||
"原边 root [316, 137, 0, 136, 0, \"MASK\"]",
|
||||
"原边 root [317, 132, 0, 137, 0, \"VIDEO\"]",
|
||||
"原边 root [328, 153, 0, 151, 0, \"IMAGE\"]",
|
||||
"原边 root [329, 152, 0, 153, 0, \"IMAGE\"]",
|
||||
"原边 root [330, 154, 0, 153, 1, \"MASK\"]",
|
||||
"原边 root [331, 152, 0, 154, 0, \"IMAGE\"]",
|
||||
"原边 root [332, 154, 0, 155, 0, \"MASK\"]",
|
||||
"原节点 root {\"id\": 131, \"type\": \"JoinImageWithAlpha\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 309}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 310}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [312]}], \"properties\": {\"Node name for S&R\": \"JoinImageWithAlpha\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 132, \"type\": \"LoadVideo\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"文件\", \"name\": \"file\", \"type\": \"COMBO\", \"widget\": {\"name\": \"file\"}, \"link\": null}, {\"localized_name\": \"选择要上传的文件\", \"name\": \"upload\", \"type\": \"IMAGEUPLOAD\", \"widget\": {\"name\": \"upload\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"视频\", \"name\": \"VIDEO\", \"type\": \"VIDEO\", \"links\": [311, 317]}], \"properties\": {\"Node name for S&R\": \"LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 133, \"type\": \"GetVideoComponents\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"视频\", \"name\": \"video\", \"type\": \"VIDEO\", \"link\": 311}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"links\": [309]}, {\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"links\": [313]}, {\"localized_name\": \"帧率\", \"name\": \"fps\", \"type\": \"FLOAT\", \"links\": [314]}], \"properties\": {\"Node name for S&R\": \"GetVideoComponents\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 134, \"type\": \"CreateVideo\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 312}, {\"localized_name\": \"音频\", \"name\": \"audio\", \"shape\": 7, \"type\": \"AUDIO\", \"link\": 313}, {\"localized_name\": \"帧率\", \"name\": \"fps\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"fps\"}, \"link\": 314}], \"outputs\": [{\"localized_name\": \"视频\", \"name\": \"VIDEO\", \"type\": \"VIDEO\", \"links\": [315]}], \"properties\": {\"Node name for S&R\": \"CreateVideo\", \"ue_properties\": {\"widget_ue_connectable\": {\"fps\": true}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 135, \"type\": \"SaveVideo\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"视频\", \"name\": \"video\", \"type\": \"VIDEO\", \"link\": 315}, {\"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"localized_name\": \"格式\", \"name\": \"format\", \"type\": \"COMBO\", \"widget\": {\"name\": \"format\"}, \"link\": null}, {\"localized_name\": \"编码器\", \"name\": \"codec\", \"type\": \"COMBO\", \"widget\": {\"name\": \"codec\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"Node name for S&R\": \"SaveVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 137, \"type\": \"0925a49b-2fa2-44e9-8afc-aa70380d84e6\", \"mode\": 2, \"inputs\": [{\"name\": \"video\", \"type\": \"VIDEO\", \"link\": 317}, {\"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": null}, {\"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"link\": null}, {\"name\": \"positive_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"negative_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": null}, {\"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": null}, {\"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": null}, {\"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [310, 316]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": []}, {\"name\": \"audio\", \"type\": \"AUDIO\", \"links\": null}, {\"name\": \"fps\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"proxyWidgets\": [[\"100\", \"text\"], [\"101\", \"threshold\"], [\"101\", \"refine_iterations\"], [\"101\", \"individual_masks\"], [\"102\", \"ckpt_name\"]], \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 136, \"type\": \"MaskPreview\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 316}], \"outputs\": [], \"properties\": {\"Node name for S&R\": \"MaskPreview\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 112, \"type\": \"MarkdownNote\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 113, \"type\": \"MarkdownNote\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 150, \"type\": \"Fast Groups Muter (rgthree)\", \"mode\": 0, \"inputs\": [], \"outputs\": [{\"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}], \"properties\": {\"matchColors\": \"\", \"matchTitle\": \"\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.8\"}}}",
|
||||
"原节点 root {\"id\": 151, \"type\": \"PreviewImage\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 328}], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"PreviewImage\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 root {\"id\": 153, \"type\": \"JoinImageWithAlpha\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 329}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 330}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [328]}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"JoinImageWithAlpha\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 root {\"id\": 155, \"type\": \"MaskPreview\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 332}], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"MaskPreview\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 root {\"id\": 152, \"type\": \"LoadImage\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"COMBO\", \"widget\": {\"name\": \"image\"}, \"link\": null}, {\"localized_name\": \"选择文件上传\", \"name\": \"upload\", \"type\": \"IMAGEUPLOAD\", \"widget\": {\"name\": \"upload\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [329, 331]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"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\"}}",
|
||||
"原节点 root {\"id\": 154, \"type\": \"48668c69-3b7f-4f0a-9689-2590a4106289\", \"mode\": 0, \"inputs\": [{\"label\": \"image\", \"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 331}, {\"label\": \"object\", \"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": null}, {\"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"link\": null}, {\"name\": \"positive_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"negative_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": null}, {\"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": null}, {\"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": null}, {\"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [330, 332]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": []}], \"properties\": {\"proxyWidgets\": [[\"78\", \"text\"], [\"75\", \"threshold\"], [\"75\", \"refine_iterations\"], [\"75\", \"individual_masks\"], [\"77\", \"ckpt_name\"]], \"ue_properties\": {\"widget_ue_connectable\": {\"text\": true}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"作用域0925a49b-2fa2-44e9-8afc-aa70380d84e6:5实体节点/17物理或含边界记录;根边与定义边分别保留。",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 237, \"origin_id\": 102, \"origin_slot\": 0, \"target_id\": 101, \"target_slot\": 0, \"type\": \"MODEL\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 200, \"origin_id\": 100, \"origin_slot\": 0, \"target_id\": 101, \"target_slot\": 2, \"type\": \"CONDITIONING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 240, \"origin_id\": 102, \"origin_slot\": 1, \"target_id\": 100, \"target_slot\": 0, \"type\": \"CLIP\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 231, \"origin_id\": 101, \"origin_slot\": 0, \"target_id\": -20, \"target_slot\": 0, \"type\": \"MASK\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 232, \"origin_id\": 101, \"origin_slot\": 1, \"target_id\": -20, \"target_slot\": 1, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 252, \"origin_id\": -10, \"origin_slot\": 0, \"target_id\": 104, \"target_slot\": 0, \"type\": \"VIDEO\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 253, \"origin_id\": 104, \"origin_slot\": 0, \"target_id\": 101, \"target_slot\": 1, \"type\": \"IMAGE\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 254, \"origin_id\": -10, \"origin_slot\": 1, \"target_id\": 100, \"target_slot\": 1, \"type\": \"STRING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 255, \"origin_id\": -10, \"origin_slot\": 2, \"target_id\": 101, \"target_slot\": 3, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 256, \"origin_id\": -10, \"origin_slot\": 3, \"target_id\": 101, \"target_slot\": 4, \"type\": \"STRING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 257, \"origin_id\": -10, \"origin_slot\": 4, \"target_id\": 101, \"target_slot\": 5, \"type\": \"STRING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 259, \"origin_id\": 104, \"origin_slot\": 1, \"target_id\": -20, \"target_slot\": 2, \"type\": \"AUDIO\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 260, \"origin_id\": 104, \"origin_slot\": 2, \"target_id\": -20, \"target_slot\": 3, \"type\": \"FLOAT\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 261, \"origin_id\": -10, \"origin_slot\": 5, \"target_id\": 101, \"target_slot\": 6, \"type\": \"FLOAT\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 262, \"origin_id\": -10, \"origin_slot\": 6, \"target_id\": 101, \"target_slot\": 7, \"type\": \"INT\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 263, \"origin_id\": -10, \"origin_slot\": 7, \"target_id\": 101, \"target_slot\": 8, \"type\": \"BOOLEAN\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 273, \"origin_id\": -10, \"origin_slot\": 8, \"target_id\": 102, \"target_slot\": 0, \"type\": \"COMBO\"}",
|
||||
"具名边界 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"inputs\": [{\"id\": \"680ffd88-32fe-48be-88d6-91ea44d5eaee\", \"name\": \"video\", \"type\": \"VIDEO\", \"linkIds\": [252], \"pos\": [-2143.630859375, -3430]}, {\"id\": \"ceaf249c-32d7-4624-8bf6-e590e347ed90\", \"name\": \"text\", \"type\": \"STRING\", \"linkIds\": [254], \"pos\": [-2143.630859375, -3410]}, {\"id\": \"1ffbff36-da0c-4854-8cb4-88ad31e64f99\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [255], \"pos\": [-2143.630859375, -3390]}, {\"id\": \"67b7f4c7-cec0-4e00-b154-23cc1abf880e\", \"name\": \"positive_coords\", \"type\": \"STRING\", \"linkIds\": [256], \"pos\": [-2143.630859375, -3370]}, {\"id\": \"b090a498-2bde-46b9-9554-18501401d687\", \"name\": \"negative_coords\", \"type\": \"STRING\", \"linkIds\": [257], \"pos\": [-2143.630859375, -3350]}, {\"id\": \"1a76dfcf-ce95-46af-bba5-c42160c683dd\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"linkIds\": [261], \"pos\": [-2143.630859375, -3330]}, {\"id\": \"999523fa-c476-4c53-80c3-0a2f554d18ab\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"linkIds\": [262], \"pos\": [-2143.630859375, -3310]}, {\"id\": \"d2371011-7fe5-4a39-b0c1-df2e0bbd6ece\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"linkIds\": [263], \"pos\": [-2143.630859375, -3290]}, {\"id\": \"675a8b37-17db-48d1-853c-2fe5d6a74582\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"linkIds\": [273], \"pos\": [-2143.630859375, -3270]}], \"outputs\": [{\"id\": \"ff50da09-1e59-4a58-9b7f-be1a00aa5913\", \"name\": \"masks\", \"type\": \"MASK\", \"linkIds\": [231], \"localized_name\": \"masks\", \"pos\": [-1030, -3490]}, {\"id\": \"8f622e40-8528-4078-b7d3-147e9f872194\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [232], \"localized_name\": \"bboxes\", \"pos\": [-1030, -3470]}, {\"id\": \"6c9924ec-f0fa-4509-83ea-8f97f5889bcc\", \"name\": \"audio\", \"type\": \"AUDIO\", \"linkIds\": [259], \"pos\": [-1030, -3450]}, {\"id\": \"82c1cddc-ab11-44eb-9e2f-1a5c7ea5645b\", \"name\": \"fps\", \"type\": \"FLOAT\", \"linkIds\": [260], \"pos\": [-1030, -3430]}], \"widgets\": []}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 101, \"type\": \"SAM3_Detect\", \"mode\": 2, \"inputs\": [{\"label\": \"model\", \"localized_name\": \"model\", \"name\": \"model\", \"type\": \"MODEL\", \"link\": 237}, {\"label\": \"image\", \"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 253}, {\"label\": \"conditioning\", \"localized_name\": \"conditioning\", \"name\": \"conditioning\", \"shape\": 7, \"type\": \"CONDITIONING\", \"link\": 200}, {\"label\": \"bboxes\", \"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"shape\": 7, \"type\": \"BOUNDING_BOX\", \"link\": 255}, {\"label\": \"positive_coords\", \"localized_name\": \"positive_coords\", \"name\": \"positive_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 256}, {\"label\": \"negative_coords\", \"localized_name\": \"negative_coords\", \"name\": \"negative_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 257}, {\"localized_name\": \"threshold\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": 261}, {\"localized_name\": \"refine_iterations\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": 262}, {\"localized_name\": \"individual_masks\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": 263}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [231]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": [232]}], \"properties\": {\"Node name for S&R\": \"SAM3_Detect\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 102, \"type\": \"CheckpointLoaderSimple\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"Checkpoint名称\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": 273}], \"outputs\": [{\"localized_name\": \"模型\", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [237]}, {\"localized_name\": \"CLIP\", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [240]}, {\"localized_name\": \"VAE\", \"name\": \"VAE\", \"type\": \"VAE\", \"links\": null}], \"properties\": {\"Node name for S&R\": \"CheckpointLoaderSimple\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"models\": [{\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"directory\": \"checkpoints\"}]}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 104, \"type\": \"GetVideoComponents\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"视频\", \"name\": \"video\", \"type\": \"VIDEO\", \"link\": 252}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"links\": [253]}, {\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"links\": [259]}, {\"localized_name\": \"帧率\", \"name\": \"fps\", \"type\": \"FLOAT\", \"links\": [260]}], \"properties\": {\"Node name for S&R\": \"GetVideoComponents\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 105, \"type\": \"Note\", \"mode\": 2, \"inputs\": [], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 100, \"type\": \"CLIPTextEncode\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"clip\", \"name\": \"clip\", \"type\": \"CLIP\", \"link\": 240}, {\"localized_name\": \"文本\", \"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": 254}], \"outputs\": [{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"links\": [200]}], \"properties\": {\"Node name for S&R\": \"CLIPTextEncode\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"作用域48668c69-3b7f-4f0a-9689-2590a4106289:3实体节点/14物理或含边界记录;根边与定义边分别保留。",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 237, \"origin_id\": 77, \"origin_slot\": 0, \"target_id\": 75, \"target_slot\": 0, \"type\": \"MODEL\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 200, \"origin_id\": 78, \"origin_slot\": 0, \"target_id\": 75, \"target_slot\": 2, \"type\": \"CONDITIONING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 240, \"origin_id\": 77, \"origin_slot\": 1, \"target_id\": 78, \"target_slot\": 0, \"type\": \"CLIP\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 231, \"origin_id\": 75, \"origin_slot\": 0, \"target_id\": -20, \"target_slot\": 0, \"type\": \"MASK\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 232, \"origin_id\": 75, \"origin_slot\": 1, \"target_id\": -20, \"target_slot\": 1, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 264, \"origin_id\": -10, \"origin_slot\": 0, \"target_id\": 75, \"target_slot\": 1, \"type\": \"IMAGE\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 265, \"origin_id\": -10, \"origin_slot\": 1, \"target_id\": 78, \"target_slot\": 1, \"type\": \"STRING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 266, \"origin_id\": -10, \"origin_slot\": 2, \"target_id\": 75, \"target_slot\": 3, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 267, \"origin_id\": -10, \"origin_slot\": 3, \"target_id\": 75, \"target_slot\": 4, \"type\": \"STRING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 268, \"origin_id\": -10, \"origin_slot\": 4, \"target_id\": 75, \"target_slot\": 5, \"type\": \"STRING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 269, \"origin_id\": -10, \"origin_slot\": 5, \"target_id\": 75, \"target_slot\": 6, \"type\": \"FLOAT\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 270, \"origin_id\": -10, \"origin_slot\": 6, \"target_id\": 75, \"target_slot\": 7, \"type\": \"INT\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 271, \"origin_id\": -10, \"origin_slot\": 7, \"target_id\": 75, \"target_slot\": 8, \"type\": \"BOOLEAN\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 272, \"origin_id\": -10, \"origin_slot\": 8, \"target_id\": 77, \"target_slot\": 0, \"type\": \"COMBO\"}",
|
||||
"具名边界 48668c69-3b7f-4f0a-9689-2590a4106289 {\"inputs\": [{\"id\": \"a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6\", \"name\": \"image\", \"type\": \"IMAGE\", \"linkIds\": [264], \"localized_name\": \"image\", \"label\": \"image\", \"pos\": [-2143.630859375, -3430]}, {\"id\": \"3cefd304-7631-4ff6-a5a0-5a0ffb120745\", \"name\": \"text\", \"type\": \"STRING\", \"linkIds\": [265], \"label\": \"object\", \"pos\": [-2143.630859375, -3410]}, {\"id\": \"1aec91c5-d8d2-441c-928c-49c14e7e80ed\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [266], \"pos\": [-2143.630859375, -3390]}, {\"id\": \"1ec7ce1a-8257-4719-8a81-60ebc8a98899\", \"name\": \"positive_coords\", \"type\": \"STRING\", \"linkIds\": [267], \"pos\": [-2143.630859375, -3370]}, {\"id\": \"c65f8b87-9bd7-48be-9fc2-823431e95019\", \"name\": \"negative_coords\", \"type\": \"STRING\", \"linkIds\": [268], \"pos\": [-2143.630859375, -3350]}, {\"id\": \"bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"linkIds\": [269], \"pos\": [-2143.630859375, -3330]}, {\"id\": \"b1439668-b050-490b-a5dc-fc4052c55666\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"linkIds\": [270], \"pos\": [-2143.630859375, -3310]}, {\"id\": \"86e239e5-c098-4302-b54d-d42a38bc0f89\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"linkIds\": [271], \"pos\": [-2143.630859375, -3290]}, {\"id\": \"f9e0b9d4-b2f1-4907-a4a5-305656576706\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"linkIds\": [272], \"pos\": [-2143.630859375, -3270]}], \"outputs\": [{\"id\": \"ff50da09-1e59-4a58-9b7f-be1a00aa5913\", \"name\": \"masks\", \"type\": \"MASK\", \"linkIds\": [231], \"localized_name\": \"masks\", \"pos\": [-980, -3440]}, {\"id\": \"8f622e40-8528-4078-b7d3-147e9f872194\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [232], \"localized_name\": \"bboxes\", \"pos\": [-980, -3420]}], \"widgets\": []}",
|
||||
"原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 78, \"type\": \"CLIPTextEncode\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"clip\", \"name\": \"clip\", \"type\": \"CLIP\", \"link\": 240}, {\"localized_name\": \"文本\", \"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": 265}], \"outputs\": [{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"links\": [200]}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"CLIPTextEncode\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 75, \"type\": \"SAM3_Detect\", \"mode\": 0, \"inputs\": [{\"label\": \"model\", \"localized_name\": \"model\", \"name\": \"model\", \"type\": \"MODEL\", \"link\": 237}, {\"label\": \"image\", \"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 264}, {\"label\": \"conditioning\", \"localized_name\": \"conditioning\", \"name\": \"conditioning\", \"shape\": 7, \"type\": \"CONDITIONING\", \"link\": 200}, {\"label\": \"bboxes\", \"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"shape\": 7, \"type\": \"BOUNDING_BOX\", \"link\": 266}, {\"label\": \"positive_coords\", \"localized_name\": \"positive_coords\", \"name\": \"positive_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 267}, {\"label\": \"negative_coords\", \"localized_name\": \"negative_coords\", \"name\": \"negative_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 268}, {\"localized_name\": \"threshold\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": 269}, {\"localized_name\": \"refine_iterations\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": 270}, {\"localized_name\": \"individual_masks\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": 271}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [231]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": [232]}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"SAM3_Detect\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 77, \"type\": \"CheckpointLoaderSimple\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"Checkpoint名称\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": 272}], \"outputs\": [{\"localized_name\": \"模型\", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [237]}, {\"localized_name\": \"CLIP\", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [240]}, {\"localized_name\": \"VAE\", \"name\": \"VAE\", \"type\": \"VAE\", \"links\": null}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"CheckpointLoaderSimple\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"models\": [{\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"directory\": \"checkpoints\"}]}}"
|
||||
],
|
||||
"flow_evidence": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
"zero_saved_nodes": [
|
||||
{
|
||||
"node_id": "131",
|
||||
"class_type": "JoinImageWithAlpha",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "133",
|
||||
"class_type": "GetVideoComponents",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "137",
|
||||
"class_type": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"effect": "原[]零位置;宿主/定义/内部值分开,promoted未知。"
|
||||
},
|
||||
{
|
||||
"node_id": "136",
|
||||
"class_type": "MaskPreview",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "150",
|
||||
"class_type": "Fast Groups Muter (rgthree)",
|
||||
"effect": "原缺widgets_values键,提供方/版本未知;不模拟Muter切换。"
|
||||
},
|
||||
{
|
||||
"node_id": "151",
|
||||
"class_type": "PreviewImage",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "153",
|
||||
"class_type": "JoinImageWithAlpha",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "155",
|
||||
"class_type": "MaskPreview",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "154",
|
||||
"class_type": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"effect": "原[]零位置;宿主/定义/内部值分开,promoted未知。"
|
||||
},
|
||||
{
|
||||
"node_id": "137:104",
|
||||
"class_type": "GetVideoComponents",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
"这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。",
|
||||
"操作1:先读活动图片与静音视频的差别;保持停用,不切换Muter或尝试生成。",
|
||||
"操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。",
|
||||
"操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。",
|
||||
"操作4:核Alpha反转、temp PNG及FPS外线;预览非永久导出。",
|
||||
"常见问题:源注释不证明协议;遮罩方向/坐标/模型/效果待核,不凭字段名推断。"
|
||||
]
|
||||
}
|
||||
},
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json": {
|
||||
"source_sha": "75571fe3bc184724942e7ef7493f3841cc82d002",
|
||||
|
||||
@@ -0,0 +1,272 @@
|
||||
"""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/sam3-document-evidence"
|
||||
PATHS = [
|
||||
next(p for p in DEFINITIONS if p.endswith(n + ".json"))
|
||||
for n in ["sam3_图像视频-提示词遮罩分割"]
|
||||
]
|
||||
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"]
|
||||
|
||||
|
||||
def refuse(source, review):
|
||||
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
|
||||
canonical(source)
|
||||
).hexdigest()
|
||||
review["caller_digest"] = hashlib.sha256(
|
||||
canonical(review["fixed_version_document"])
|
||||
).hexdigest()
|
||||
assert not doc(0, source, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
SCOPES = [("", SOURCES[0])] + [
|
||||
(f"/definitions/subgraphs/{i}", g) for i, g in enumerate(SOURCES[0]["definitions"]["subgraphs"])
|
||||
]
|
||||
NODES = [(p, i) for p, g in SCOPES for i, n in enumerate(g["nodes"])]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("prefix,index", NODES)
|
||||
@pytest.mark.parametrize("variant", ["mode", "identity", "saved_shape"])
|
||||
def test_root_and_scoped_identity_refusal(prefix, index, variant):
|
||||
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
|
||||
n = pointer(s, f"{prefix}/nodes/{index}")
|
||||
if variant == "mode":
|
||||
n["mode"] = 4
|
||||
elif variant == "identity":
|
||||
n["properties"]["ver"] = "forged"
|
||||
else:
|
||||
n["widgets_values"] = {} if n.get("widgets_values") != {} else []
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("prefix,edge", [(p, i) for p, g in SCOPES for i in range(len(g["links"]))])
|
||||
def test_root_and_definition_endpoints_refuse(prefix, edge):
|
||||
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
|
||||
g = pointer(s, prefix) if prefix else s
|
||||
e = g["links"][edge]
|
||||
if isinstance(e, list):
|
||||
e[3] = 99999
|
||||
else:
|
||||
e["target_slot"] = 99999
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant",
|
||||
[
|
||||
"host_empty",
|
||||
"proxy",
|
||||
"definition_widgets",
|
||||
"boundary",
|
||||
"frontend",
|
||||
"ue",
|
||||
"model",
|
||||
"missing_muter",
|
||||
"raw",
|
||||
"citation",
|
||||
"layout",
|
||||
"summary",
|
||||
"path",
|
||||
],
|
||||
)
|
||||
def test_restoration_model_layout_and_binding_refusal(variant):
|
||||
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
|
||||
ns = {n["id"]: n for n in s["nodes"]}
|
||||
d = s["definitions"]["subgraphs"][0]
|
||||
b = r["fixed_version_document"]
|
||||
if variant == "host_empty":
|
||||
ns[137]["widgets_values"] = ["unicorn"]
|
||||
elif variant == "proxy":
|
||||
ns[154]["properties"]["proxyWidgets"][0][0] = "100"
|
||||
elif variant == "definition_widgets":
|
||||
d["widgets"] = [0.5]
|
||||
elif variant == "boundary":
|
||||
d["inputs"][0]["linkIds"] = []
|
||||
elif variant == "frontend":
|
||||
s["extra"]["frontendVersion"] = "1.53.10"
|
||||
elif variant == "ue":
|
||||
ns[154]["properties"]["ue_properties"]["version"] = "7.5"
|
||||
elif variant == "model":
|
||||
next(n for n in d["nodes"] if n["type"] == "CheckpointLoaderSimple")["properties"][
|
||||
"models"
|
||||
][0]["name"] = "forged.pt"
|
||||
elif variant == "missing_muter":
|
||||
ns[150]["widgets_values"] = []
|
||||
elif variant == "raw":
|
||||
r["source_sha"] = "0" * 40
|
||||
elif variant == "citation":
|
||||
b["sources"][0]["sha256"] = "0" * 64
|
||||
elif variant == "layout":
|
||||
ns[154]["pos"][0] += 1
|
||||
elif variant == "summary":
|
||||
b["user_overview"] = "已可运行"
|
||||
else:
|
||||
b["source_path"] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
def test_source_counts_semantics_and_whole_old_reviews():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "8b4b9ca:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
b = now[PATHS[0]].pop("fixed_version_document")
|
||||
assert now == old and len(DEFINITIONS) == 27
|
||||
oldblocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
|
||||
assert len(oldblocks) == 26 and sum(len(b["fields"]) for b in oldblocks) == 820
|
||||
assert (
|
||||
sum(
|
||||
len(
|
||||
build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], old[p])[
|
||||
"source_notes"
|
||||
]
|
||||
)
|
||||
for p in old
|
||||
if "fixed_version_document" in old[p]
|
||||
)
|
||||
== 16
|
||||
)
|
||||
g = SOURCES[0]
|
||||
ns = {n["id"]: n for n in g["nodes"]}
|
||||
assert len(ns) == 15 and len(g["links"]) == 14
|
||||
assert {i for i, n in ns.items() if n["mode"] == 2} == {131, 132, 133, 134, 135, 137, 136}
|
||||
assert "widgets_values" not in ns[150]
|
||||
assert ns[137]["widgets_values"] == ns[154]["widgets_values"] == []
|
||||
assert (
|
||||
len(ns[137]["properties"]["proxyWidgets"])
|
||||
== len(ns[154]["properties"]["proxyWidgets"])
|
||||
== 5
|
||||
)
|
||||
assert len(b["fields"]) == len({f["pointer"] for f in b["fields"]}) == 18
|
||||
assert sum(f["scope"] == "root" for f in b["fields"]) == 8
|
||||
assert all(not isinstance(f["value"], (dict, list)) for f in b["fields"])
|
||||
assert ns[152]["outputs"][1]["links"] in ([], None)
|
||||
assert ns[154]["outputs"][1]["links"] == []
|
||||
assert all(ns[154]["inputs"][i]["link"] is None for i in [2, 3, 4])
|
||||
assert ns[134]["widgets_values"] == [30]
|
||||
assert next(i for i in ns[134]["inputs"] if i["name"] == "fps")["link"] == 314
|
||||
assert ns[137]["outputs"][2]["links"] is None and ns[137]["outputs"][3]["links"] is None
|
||||
for eid, src, slot, dst, inp, typ in g["links"]:
|
||||
assert eid in ns[src]["outputs"][slot]["links"]
|
||||
assert ns[src]["outputs"][slot]["type"] == typ
|
||||
assert ns[dst]["inputs"][inp]["link"] == eid and ns[dst]["inputs"][inp]["type"] == typ
|
||||
for i, d in enumerate(g["definitions"]["subgraphs"]):
|
||||
assert len(d["nodes"]) == [5, 3][i] and len(d["links"]) == [17, 14][i]
|
||||
assert d["widgets"] == []
|
||||
assert all(n["mode"] == [2, 0][i] for n in d["nodes"])
|
||||
nodes = {n["id"]: n for n in d["nodes"]}
|
||||
for e in d["links"]:
|
||||
origin, target = e["origin_id"], e["target_id"]
|
||||
if origin < 0:
|
||||
assert origin == d["inputNode"]["id"]
|
||||
assert e["id"] in d["inputs"][e["origin_slot"]]["linkIds"]
|
||||
else:
|
||||
assert e["id"] in nodes[origin]["outputs"][e["origin_slot"]]["links"]
|
||||
if target < 0:
|
||||
assert target == d["outputNode"]["id"]
|
||||
assert e["id"] in d["outputs"][e["target_slot"]]["linkIds"]
|
||||
else:
|
||||
assert nodes[target]["inputs"][e["target_slot"]]["link"] == e["id"]
|
||||
cp = next(n for n in d["nodes"] if n["type"] == "CheckpointLoaderSimple")
|
||||
assert cp["widgets_values"] == ["sam3.1_multiplex.pt"]
|
||||
assert cp["properties"]["models"][0]["name"] == "sam3.1_multiplex_fp16.safetensors"
|
||||
assert cp["outputs"][2]["links"] is None
|
||||
d = doc(0)
|
||||
assert d["fixed_version"]["matched"] and d["dependencies"]["check_state"] == "unchecked"
|
||||
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
assert len(d["source_notes"]) == len(b["comments"]) == 3
|
||||
for c in b["comments"]:
|
||||
assert pointer(g, c["pointer"]) == [c["text"]]
|
||||
assert next(n for n in d["source_notes"] if n["node_id"] == c["node_id"])["content"] == [
|
||||
c["text"]
|
||||
]
|
||||
assert not b["counts"]["final_prompt_constructed"]
|
||||
assert all(
|
||||
word in " ".join(b["flow"])
|
||||
for word in [
|
||||
"1-alpha",
|
||||
"temp PNG",
|
||||
"314",
|
||||
"VAE未接",
|
||||
"32 tokens/逗号/:N",
|
||||
"未找到",
|
||||
"promoted",
|
||||
]
|
||||
)
|
||||
@@ -0,0 +1,736 @@
|
||||
# SAM3提示词遮罩固定参考中文说明
|
||||
|
||||
新增18非注释位置+3完整源注释;旧26图820位置+16注释逐对象不变。27图838+19仅参考展示。155完整定稿0/实跑0/新增转换0。
|
||||
|
||||
来源local_file以docs/hel-892/sam3-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。
|
||||
|
||||
## sam3_图像视频-提示词遮罩分割
|
||||
|
||||
这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。
|
||||
|
||||
准确版本仅作参考;SAM3实现未找到、promoted/模型兼容/效果未知;视频静音,未实跑、转换保持关闭。
|
||||
|
||||
源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json`
|
||||
|
||||
SHA1:c249489330431c46157a8e12df9b6484ee003ba6
|
||||
|
||||
原字节SHA256:5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488
|
||||
|
||||
规范全图SHA256:0dbeb9e7b57b11a86af676bb0aa3e355ec46c885c26d6736e8219c73f7ba26fd
|
||||
|
||||
core0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66;frontend1.42.15→4705b3186ecd621151daf95dd702009b266bd819;tag/完整树/必要源码及许可固定。
|
||||
|
||||
UE7.8仅源声明;Muter无提供方/版本;准确核心有界未找到SAM3_Detect实现,不跨版本补缺。
|
||||
|
||||
### 具体连线与处理条件
|
||||
|
||||
这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。
|
||||
|
||||
活动图片:152.IMAGE→154.image和153.image;154.masks→153.alpha与155.mask,153.IMAGE→151.images。152.MASK未接;154.bboxes出口为空,bboxes/positive_coords/negative_coords宿主输入都未接,不猜坐标格式或分割方向。
|
||||
|
||||
准确VideoFromComponents保存仅接受auto/mp4与auto/h264,固定路径构造rgb24并转yuv420p;Join输出四通道,不声称透明视频能保存或保留Alpha,未实测后果。
|
||||
|
||||
准确JoinImageWithAlpha先resize_mask再1-alpha;批次取min,拼原图前三RGB通道。这里只说明该准确核心运算,不由此推断SAM3的MASK哪边代表前景、边缘效果或最终透明区域。PreviewImage继承SaveImage写temp PNG;MaskPreview经UI.PreviewMask→RGB→temp PNG。无正式SaveImage节点,不称永久图片保存或保证无磁盘写入。
|
||||
|
||||
视频组131/132/133/134/135/137/136均mode2静音。132.VIDEO同时到133.video、137.video;133.images→131.image,137.masks→131.alpha及136.mask,131.IMAGE→134.images,133.audio/fps→134→135。134保存30被物理边314的133.fps覆盖,实际FPS未知;137自己的audio/fps出口未接,不混同133输出。不模拟Muter或静音切换。
|
||||
|
||||
两个子图UUID分别0925a49b-2fa2-44e9-8afc-aa70380d84e6与48668c69-3b7f-4f0a-9689-2590a4106289。137/154各widgets_values=[]、proxyWidgets各5绑定,定义widgets=[]。内部text为unicorn/clothes、threshold0.5/refine_iterations2/individual_masksfalse、ckpt_name均sam3.1_multiplex.pt。所有具名边界、数组与原指针分开保留,不把负ID边界当实体、不推算最终promoted值。视频内部5节点mode2,图片内部3节点mode0。
|
||||
|
||||
两个Checkpoint的属性/源注释推荐sam3.1_multiplex_fp16.safetensors,但保存sam3.1_multiplex.pt;不替换、不承诺兼容、不下载权重。两CLIPTextEncode从各自Checkpoint.CLIP取值,VAE未接。动态模型列表、SAM3模型/CLIP家族和真实目录未知。
|
||||
|
||||
准确core0.19.3完整树没有SAM3命名模块;有界核对nodes.py注册与扩展模块范围,未找到SAM3_Detect准确实现。不能把源cnr_id/ver当安装事实、不能借新版SAM3解释threshold/refine_iterations/individual_masks、bboxes与坐标、默认/范围/单位或模型支持。具体调查集合见bounded-investigation.json与sources.json,不无限搜索历史。
|
||||
|
||||
Muter150原缺widgets_values、提供方和版本,UE7.8及扩展恢复顺序未知。准确前端源码仅固定宿主configure/proxyWidgets参考,未加载宿主/UE、模型或插件,不求值promoted。两个MarkdownNote和内部Note全文保留,32 tokens/逗号/:N仅源注释,不能当运行协议或下载授权。
|
||||
|
||||
素材文件、视频FPS、编码器、动态模型列表、目录权限、目标安装/UE和效果未核实;不请求图片/视频/注释URL,不索取机器窗口。155完整定稿0/必要实跑0/新增转换0,保持停用未检查与原资格。
|
||||
|
||||
作用域root:15实体节点/14物理或含边界记录;根边与定义边分别保留。
|
||||
|
||||
原边 root [309, 133, 0, 131, 0, "IMAGE"]
|
||||
|
||||
原边 root [310, 137, 0, 131, 1, "MASK"]
|
||||
|
||||
原边 root [311, 132, 0, 133, 0, "VIDEO"]
|
||||
|
||||
原边 root [312, 131, 0, 134, 0, "IMAGE"]
|
||||
|
||||
原边 root [313, 133, 1, 134, 1, "AUDIO"]
|
||||
|
||||
原边 root [314, 133, 2, 134, 2, "FLOAT"]
|
||||
|
||||
原边 root [315, 134, 0, 135, 0, "VIDEO"]
|
||||
|
||||
原边 root [316, 137, 0, 136, 0, "MASK"]
|
||||
|
||||
原边 root [317, 132, 0, 137, 0, "VIDEO"]
|
||||
|
||||
原边 root [328, 153, 0, 151, 0, "IMAGE"]
|
||||
|
||||
原边 root [329, 152, 0, 153, 0, "IMAGE"]
|
||||
|
||||
原边 root [330, 154, 0, 153, 1, "MASK"]
|
||||
|
||||
原边 root [331, 152, 0, 154, 0, "IMAGE"]
|
||||
|
||||
原边 root [332, 154, 0, 155, 0, "MASK"]
|
||||
|
||||
原节点 root {"id": 131, "type": "JoinImageWithAlpha", "mode": 2, "inputs": [{"localized_name": "图像", "name": "image", "type": "IMAGE", "link": 309}, {"localized_name": "阿尔法", "name": "alpha", "type": "MASK", "link": 310}], "outputs": [{"localized_name": "图像", "name": "IMAGE", "type": "IMAGE", "links": [312]}], "properties": {"Node name for S&R": "JoinImageWithAlpha", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 132, "type": "LoadVideo", "mode": 2, "inputs": [{"localized_name": "文件", "name": "file", "type": "COMBO", "widget": {"name": "file"}, "link": null}, {"localized_name": "选择要上传的文件", "name": "upload", "type": "IMAGEUPLOAD", "widget": {"name": "upload"}, "link": null}], "outputs": [{"localized_name": "视频", "name": "VIDEO", "type": "VIDEO", "links": [311, 317]}], "properties": {"Node name for S&R": "LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 133, "type": "GetVideoComponents", "mode": 2, "inputs": [{"localized_name": "视频", "name": "video", "type": "VIDEO", "link": 311}], "outputs": [{"localized_name": "图像", "name": "images", "type": "IMAGE", "links": [309]}, {"localized_name": "音频", "name": "audio", "type": "AUDIO", "links": [313]}, {"localized_name": "帧率", "name": "fps", "type": "FLOAT", "links": [314]}], "properties": {"Node name for S&R": "GetVideoComponents", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 134, "type": "CreateVideo", "mode": 2, "inputs": [{"localized_name": "图像", "name": "images", "type": "IMAGE", "link": 312}, {"localized_name": "音频", "name": "audio", "shape": 7, "type": "AUDIO", "link": 313}, {"localized_name": "帧率", "name": "fps", "type": "FLOAT", "widget": {"name": "fps"}, "link": 314}], "outputs": [{"localized_name": "视频", "name": "VIDEO", "type": "VIDEO", "links": [315]}], "properties": {"Node name for S&R": "CreateVideo", "ue_properties": {"widget_ue_connectable": {"fps": true}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 135, "type": "SaveVideo", "mode": 2, "inputs": [{"localized_name": "视频", "name": "video", "type": "VIDEO", "link": 315}, {"localized_name": "文件名前缀", "name": "filename_prefix", "type": "STRING", "widget": {"name": "filename_prefix"}, "link": null}, {"localized_name": "格式", "name": "format", "type": "COMBO", "widget": {"name": "format"}, "link": null}, {"localized_name": "编码器", "name": "codec", "type": "COMBO", "widget": {"name": "codec"}, "link": null}], "outputs": [], "properties": {"Node name for S&R": "SaveVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 137, "type": "0925a49b-2fa2-44e9-8afc-aa70380d84e6", "mode": 2, "inputs": [{"name": "video", "type": "VIDEO", "link": 317}, {"name": "text", "type": "STRING", "widget": {"name": "text"}, "link": null}, {"name": "bboxes", "type": "BOUNDING_BOX", "link": null}, {"name": "positive_coords", "type": "STRING", "link": null}, {"name": "negative_coords", "type": "STRING", "link": null}, {"name": "threshold", "type": "FLOAT", "widget": {"name": "threshold"}, "link": null}, {"name": "refine_iterations", "type": "INT", "widget": {"name": "refine_iterations"}, "link": null}, {"name": "individual_masks", "type": "BOOLEAN", "widget": {"name": "individual_masks"}, "link": null}, {"name": "ckpt_name", "type": "COMBO", "widget": {"name": "ckpt_name"}, "link": null}], "outputs": [{"localized_name": "masks", "name": "masks", "type": "MASK", "links": [310, 316]}, {"localized_name": "bboxes", "name": "bboxes", "type": "BOUNDING_BOX", "links": []}, {"name": "audio", "type": "AUDIO", "links": null}, {"name": "fps", "type": "FLOAT", "links": null}], "properties": {"proxyWidgets": [["100", "text"], ["101", "threshold"], ["101", "refine_iterations"], ["101", "individual_masks"], ["102", "ckpt_name"]], "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 136, "type": "MaskPreview", "mode": 2, "inputs": [{"localized_name": "遮罩", "name": "mask", "type": "MASK", "link": 316}], "outputs": [], "properties": {"Node name for S&R": "MaskPreview", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 root {"id": 112, "type": "MarkdownNote", "mode": 0, "inputs": [], "outputs": [], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}}
|
||||
|
||||
原节点 root {"id": 113, "type": "MarkdownNote", "mode": 0, "inputs": [], "outputs": [], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}}
|
||||
|
||||
原节点 root {"id": 150, "type": "Fast Groups Muter (rgthree)", "mode": 0, "inputs": [], "outputs": [{"name": "OPT_CONNECTION", "type": "*", "links": null}], "properties": {"matchColors": "", "matchTitle": "", "showNav": true, "showAllGraphs": true, "sort": "position", "customSortAlphabet": "", "toggleRestriction": "default", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.8"}}}
|
||||
|
||||
原节点 root {"id": 151, "type": "PreviewImage", "mode": 0, "inputs": [{"localized_name": "图像", "name": "images", "type": "IMAGE", "link": 328}], "outputs": [], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "Node name for S&R": "PreviewImage", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3"}}
|
||||
|
||||
原节点 root {"id": 153, "type": "JoinImageWithAlpha", "mode": 0, "inputs": [{"localized_name": "图像", "name": "image", "type": "IMAGE", "link": 329}, {"localized_name": "阿尔法", "name": "alpha", "type": "MASK", "link": 330}], "outputs": [{"localized_name": "图像", "name": "IMAGE", "type": "IMAGE", "links": [328]}], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "Node name for S&R": "JoinImageWithAlpha", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3"}}
|
||||
|
||||
原节点 root {"id": 155, "type": "MaskPreview", "mode": 0, "inputs": [{"localized_name": "遮罩", "name": "mask", "type": "MASK", "link": 332}], "outputs": [], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "Node name for S&R": "MaskPreview", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3"}}
|
||||
|
||||
原节点 root {"id": 152, "type": "LoadImage", "mode": 0, "inputs": [{"localized_name": "图像", "name": "image", "type": "COMBO", "widget": {"name": "image"}, "link": null}, {"localized_name": "选择文件上传", "name": "upload", "type": "IMAGEUPLOAD", "widget": {"name": "upload"}, "link": null}], "outputs": [{"localized_name": "图像", "name": "IMAGE", "type": "IMAGE", "links": [329, 331]}, {"localized_name": "遮罩", "name": "MASK", "type": "MASK", "links": null}], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "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"}}
|
||||
|
||||
原节点 root {"id": 154, "type": "48668c69-3b7f-4f0a-9689-2590a4106289", "mode": 0, "inputs": [{"label": "image", "localized_name": "image", "name": "image", "type": "IMAGE", "link": 331}, {"label": "object", "name": "text", "type": "STRING", "widget": {"name": "text"}, "link": null}, {"name": "bboxes", "type": "BOUNDING_BOX", "link": null}, {"name": "positive_coords", "type": "STRING", "link": null}, {"name": "negative_coords", "type": "STRING", "link": null}, {"name": "threshold", "type": "FLOAT", "widget": {"name": "threshold"}, "link": null}, {"name": "refine_iterations", "type": "INT", "widget": {"name": "refine_iterations"}, "link": null}, {"name": "individual_masks", "type": "BOOLEAN", "widget": {"name": "individual_masks"}, "link": null}, {"name": "ckpt_name", "type": "COMBO", "widget": {"name": "ckpt_name"}, "link": null}], "outputs": [{"localized_name": "masks", "name": "masks", "type": "MASK", "links": [330, 332]}, {"localized_name": "bboxes", "name": "bboxes", "type": "BOUNDING_BOX", "links": []}], "properties": {"proxyWidgets": [["78", "text"], ["75", "threshold"], ["75", "refine_iterations"], ["75", "individual_masks"], ["77", "ckpt_name"]], "ue_properties": {"widget_ue_connectable": {"text": true}, "version": "7.8", "input_ue_unconnectable": {}}, "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3"}}
|
||||
|
||||
作用域0925a49b-2fa2-44e9-8afc-aa70380d84e6:5实体节点/17物理或含边界记录;根边与定义边分别保留。
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 237, "origin_id": 102, "origin_slot": 0, "target_id": 101, "target_slot": 0, "type": "MODEL"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 200, "origin_id": 100, "origin_slot": 0, "target_id": 101, "target_slot": 2, "type": "CONDITIONING"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 240, "origin_id": 102, "origin_slot": 1, "target_id": 100, "target_slot": 0, "type": "CLIP"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 231, "origin_id": 101, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "MASK"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 232, "origin_id": 101, "origin_slot": 1, "target_id": -20, "target_slot": 1, "type": "BOUNDING_BOX"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 252, "origin_id": -10, "origin_slot": 0, "target_id": 104, "target_slot": 0, "type": "VIDEO"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 253, "origin_id": 104, "origin_slot": 0, "target_id": 101, "target_slot": 1, "type": "IMAGE"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 254, "origin_id": -10, "origin_slot": 1, "target_id": 100, "target_slot": 1, "type": "STRING"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 255, "origin_id": -10, "origin_slot": 2, "target_id": 101, "target_slot": 3, "type": "BOUNDING_BOX"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 256, "origin_id": -10, "origin_slot": 3, "target_id": 101, "target_slot": 4, "type": "STRING"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 257, "origin_id": -10, "origin_slot": 4, "target_id": 101, "target_slot": 5, "type": "STRING"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 259, "origin_id": 104, "origin_slot": 1, "target_id": -20, "target_slot": 2, "type": "AUDIO"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 260, "origin_id": 104, "origin_slot": 2, "target_id": -20, "target_slot": 3, "type": "FLOAT"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 261, "origin_id": -10, "origin_slot": 5, "target_id": 101, "target_slot": 6, "type": "FLOAT"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 262, "origin_id": -10, "origin_slot": 6, "target_id": 101, "target_slot": 7, "type": "INT"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 263, "origin_id": -10, "origin_slot": 7, "target_id": 101, "target_slot": 8, "type": "BOOLEAN"}
|
||||
|
||||
原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 273, "origin_id": -10, "origin_slot": 8, "target_id": 102, "target_slot": 0, "type": "COMBO"}
|
||||
|
||||
具名边界 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"inputs": [{"id": "680ffd88-32fe-48be-88d6-91ea44d5eaee", "name": "video", "type": "VIDEO", "linkIds": [252], "pos": [-2143.630859375, -3430]}, {"id": "ceaf249c-32d7-4624-8bf6-e590e347ed90", "name": "text", "type": "STRING", "linkIds": [254], "pos": [-2143.630859375, -3410]}, {"id": "1ffbff36-da0c-4854-8cb4-88ad31e64f99", "name": "bboxes", "type": "BOUNDING_BOX", "linkIds": [255], "pos": [-2143.630859375, -3390]}, {"id": "67b7f4c7-cec0-4e00-b154-23cc1abf880e", "name": "positive_coords", "type": "STRING", "linkIds": [256], "pos": [-2143.630859375, -3370]}, {"id": "b090a498-2bde-46b9-9554-18501401d687", "name": "negative_coords", "type": "STRING", "linkIds": [257], "pos": [-2143.630859375, -3350]}, {"id": "1a76dfcf-ce95-46af-bba5-c42160c683dd", "name": "threshold", "type": "FLOAT", "linkIds": [261], "pos": [-2143.630859375, -3330]}, {"id": "999523fa-c476-4c53-80c3-0a2f554d18ab", "name": "refine_iterations", "type": "INT", "linkIds": [262], "pos": [-2143.630859375, -3310]}, {"id": "d2371011-7fe5-4a39-b0c1-df2e0bbd6ece", "name": "individual_masks", "type": "BOOLEAN", "linkIds": [263], "pos": [-2143.630859375, -3290]}, {"id": "675a8b37-17db-48d1-853c-2fe5d6a74582", "name": "ckpt_name", "type": "COMBO", "linkIds": [273], "pos": [-2143.630859375, -3270]}], "outputs": [{"id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913", "name": "masks", "type": "MASK", "linkIds": [231], "localized_name": "masks", "pos": [-1030, -3490]}, {"id": "8f622e40-8528-4078-b7d3-147e9f872194", "name": "bboxes", "type": "BOUNDING_BOX", "linkIds": [232], "localized_name": "bboxes", "pos": [-1030, -3470]}, {"id": "6c9924ec-f0fa-4509-83ea-8f97f5889bcc", "name": "audio", "type": "AUDIO", "linkIds": [259], "pos": [-1030, -3450]}, {"id": "82c1cddc-ab11-44eb-9e2f-1a5c7ea5645b", "name": "fps", "type": "FLOAT", "linkIds": [260], "pos": [-1030, -3430]}], "widgets": []}
|
||||
|
||||
原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 101, "type": "SAM3_Detect", "mode": 2, "inputs": [{"label": "model", "localized_name": "model", "name": "model", "type": "MODEL", "link": 237}, {"label": "image", "localized_name": "image", "name": "image", "type": "IMAGE", "link": 253}, {"label": "conditioning", "localized_name": "conditioning", "name": "conditioning", "shape": 7, "type": "CONDITIONING", "link": 200}, {"label": "bboxes", "localized_name": "bboxes", "name": "bboxes", "shape": 7, "type": "BOUNDING_BOX", "link": 255}, {"label": "positive_coords", "localized_name": "positive_coords", "name": "positive_coords", "shape": 7, "type": "STRING", "link": 256}, {"label": "negative_coords", "localized_name": "negative_coords", "name": "negative_coords", "shape": 7, "type": "STRING", "link": 257}, {"localized_name": "threshold", "name": "threshold", "type": "FLOAT", "widget": {"name": "threshold"}, "link": 261}, {"localized_name": "refine_iterations", "name": "refine_iterations", "type": "INT", "widget": {"name": "refine_iterations"}, "link": 262}, {"localized_name": "individual_masks", "name": "individual_masks", "type": "BOOLEAN", "widget": {"name": "individual_masks"}, "link": 263}], "outputs": [{"localized_name": "masks", "name": "masks", "type": "MASK", "links": [231]}, {"localized_name": "bboxes", "name": "bboxes", "type": "BOUNDING_BOX", "links": [232]}], "properties": {"Node name for S&R": "SAM3_Detect", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 102, "type": "CheckpointLoaderSimple", "mode": 2, "inputs": [{"localized_name": "Checkpoint名称", "name": "ckpt_name", "type": "COMBO", "widget": {"name": "ckpt_name"}, "link": 273}], "outputs": [{"localized_name": "模型", "name": "MODEL", "type": "MODEL", "links": [237]}, {"localized_name": "CLIP", "name": "CLIP", "type": "CLIP", "links": [240]}, {"localized_name": "VAE", "name": "VAE", "type": "VAE", "links": null}], "properties": {"Node name for S&R": "CheckpointLoaderSimple", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "models": [{"name": "sam3.1_multiplex_fp16.safetensors", "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors", "directory": "checkpoints"}]}}
|
||||
|
||||
原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 104, "type": "GetVideoComponents", "mode": 2, "inputs": [{"localized_name": "视频", "name": "video", "type": "VIDEO", "link": 252}], "outputs": [{"localized_name": "图像", "name": "images", "type": "IMAGE", "links": [253]}, {"localized_name": "音频", "name": "audio", "type": "AUDIO", "links": [259]}, {"localized_name": "帧率", "name": "fps", "type": "FLOAT", "links": [260]}], "properties": {"Node name for S&R": "GetVideoComponents", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 105, "type": "Note", "mode": 2, "inputs": [], "outputs": [], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}}}
|
||||
|
||||
原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {"id": 100, "type": "CLIPTextEncode", "mode": 2, "inputs": [{"localized_name": "clip", "name": "clip", "type": "CLIP", "link": 240}, {"localized_name": "文本", "name": "text", "type": "STRING", "widget": {"name": "text"}, "link": 254}], "outputs": [{"localized_name": "条件", "name": "CONDITIONING", "type": "CONDITIONING", "links": [200]}], "properties": {"Node name for S&R": "CLIPTextEncode", "ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "cnr_id": "comfy-core", "ver": "0.19.3", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65}}
|
||||
|
||||
作用域48668c69-3b7f-4f0a-9689-2590a4106289:3实体节点/14物理或含边界记录;根边与定义边分别保留。
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 237, "origin_id": 77, "origin_slot": 0, "target_id": 75, "target_slot": 0, "type": "MODEL"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 200, "origin_id": 78, "origin_slot": 0, "target_id": 75, "target_slot": 2, "type": "CONDITIONING"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 240, "origin_id": 77, "origin_slot": 1, "target_id": 78, "target_slot": 0, "type": "CLIP"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 231, "origin_id": 75, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "MASK"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 232, "origin_id": 75, "origin_slot": 1, "target_id": -20, "target_slot": 1, "type": "BOUNDING_BOX"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 264, "origin_id": -10, "origin_slot": 0, "target_id": 75, "target_slot": 1, "type": "IMAGE"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 265, "origin_id": -10, "origin_slot": 1, "target_id": 78, "target_slot": 1, "type": "STRING"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 266, "origin_id": -10, "origin_slot": 2, "target_id": 75, "target_slot": 3, "type": "BOUNDING_BOX"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 267, "origin_id": -10, "origin_slot": 3, "target_id": 75, "target_slot": 4, "type": "STRING"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 268, "origin_id": -10, "origin_slot": 4, "target_id": 75, "target_slot": 5, "type": "STRING"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 269, "origin_id": -10, "origin_slot": 5, "target_id": 75, "target_slot": 6, "type": "FLOAT"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 270, "origin_id": -10, "origin_slot": 6, "target_id": 75, "target_slot": 7, "type": "INT"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 271, "origin_id": -10, "origin_slot": 7, "target_id": 75, "target_slot": 8, "type": "BOOLEAN"}
|
||||
|
||||
原边 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 272, "origin_id": -10, "origin_slot": 8, "target_id": 77, "target_slot": 0, "type": "COMBO"}
|
||||
|
||||
具名边界 48668c69-3b7f-4f0a-9689-2590a4106289 {"inputs": [{"id": "a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6", "name": "image", "type": "IMAGE", "linkIds": [264], "localized_name": "image", "label": "image", "pos": [-2143.630859375, -3430]}, {"id": "3cefd304-7631-4ff6-a5a0-5a0ffb120745", "name": "text", "type": "STRING", "linkIds": [265], "label": "object", "pos": [-2143.630859375, -3410]}, {"id": "1aec91c5-d8d2-441c-928c-49c14e7e80ed", "name": "bboxes", "type": "BOUNDING_BOX", "linkIds": [266], "pos": [-2143.630859375, -3390]}, {"id": "1ec7ce1a-8257-4719-8a81-60ebc8a98899", "name": "positive_coords", "type": "STRING", "linkIds": [267], "pos": [-2143.630859375, -3370]}, {"id": "c65f8b87-9bd7-48be-9fc2-823431e95019", "name": "negative_coords", "type": "STRING", "linkIds": [268], "pos": [-2143.630859375, -3350]}, {"id": "bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb", "name": "threshold", "type": "FLOAT", "linkIds": [269], "pos": [-2143.630859375, -3330]}, {"id": "b1439668-b050-490b-a5dc-fc4052c55666", "name": "refine_iterations", "type": "INT", "linkIds": [270], "pos": [-2143.630859375, -3310]}, {"id": "86e239e5-c098-4302-b54d-d42a38bc0f89", "name": "individual_masks", "type": "BOOLEAN", "linkIds": [271], "pos": [-2143.630859375, -3290]}, {"id": "f9e0b9d4-b2f1-4907-a4a5-305656576706", "name": "ckpt_name", "type": "COMBO", "linkIds": [272], "pos": [-2143.630859375, -3270]}], "outputs": [{"id": "ff50da09-1e59-4a58-9b7f-be1a00aa5913", "name": "masks", "type": "MASK", "linkIds": [231], "localized_name": "masks", "pos": [-980, -3440]}, {"id": "8f622e40-8528-4078-b7d3-147e9f872194", "name": "bboxes", "type": "BOUNDING_BOX", "linkIds": [232], "localized_name": "bboxes", "pos": [-980, -3420]}], "widgets": []}
|
||||
|
||||
原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 78, "type": "CLIPTextEncode", "mode": 0, "inputs": [{"localized_name": "clip", "name": "clip", "type": "CLIP", "link": 240}, {"localized_name": "文本", "name": "text", "type": "STRING", "widget": {"name": "text"}, "link": 265}], "outputs": [{"localized_name": "条件", "name": "CONDITIONING", "type": "CONDITIONING", "links": [200]}], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "Node name for S&R": "CLIPTextEncode", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3"}}
|
||||
|
||||
原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 75, "type": "SAM3_Detect", "mode": 0, "inputs": [{"label": "model", "localized_name": "model", "name": "model", "type": "MODEL", "link": 237}, {"label": "image", "localized_name": "image", "name": "image", "type": "IMAGE", "link": 264}, {"label": "conditioning", "localized_name": "conditioning", "name": "conditioning", "shape": 7, "type": "CONDITIONING", "link": 200}, {"label": "bboxes", "localized_name": "bboxes", "name": "bboxes", "shape": 7, "type": "BOUNDING_BOX", "link": 266}, {"label": "positive_coords", "localized_name": "positive_coords", "name": "positive_coords", "shape": 7, "type": "STRING", "link": 267}, {"label": "negative_coords", "localized_name": "negative_coords", "name": "negative_coords", "shape": 7, "type": "STRING", "link": 268}, {"localized_name": "threshold", "name": "threshold", "type": "FLOAT", "widget": {"name": "threshold"}, "link": 269}, {"localized_name": "refine_iterations", "name": "refine_iterations", "type": "INT", "widget": {"name": "refine_iterations"}, "link": 270}, {"localized_name": "individual_masks", "name": "individual_masks", "type": "BOOLEAN", "widget": {"name": "individual_masks"}, "link": 271}], "outputs": [{"localized_name": "masks", "name": "masks", "type": "MASK", "links": [231]}, {"localized_name": "bboxes", "name": "bboxes", "type": "BOUNDING_BOX", "links": [232]}], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "Node name for S&R": "SAM3_Detect", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3"}}
|
||||
|
||||
原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {"id": 77, "type": "CheckpointLoaderSimple", "mode": 0, "inputs": [{"localized_name": "Checkpoint名称", "name": "ckpt_name", "type": "COMBO", "widget": {"name": "ckpt_name"}, "link": 272}], "outputs": [{"localized_name": "模型", "name": "MODEL", "type": "MODEL", "links": [237]}, {"localized_name": "CLIP", "name": "CLIP", "type": "CLIP", "links": [240]}, {"localized_name": "VAE", "name": "VAE", "type": "VAE", "links": null}], "properties": {"ue_properties": {"widget_ue_connectable": {}, "version": "7.8", "input_ue_unconnectable": {}}, "Node name for S&R": "CheckpointLoaderSimple", "enableTabs": false, "tabWidth": 65, "tabXOffset": 10, "hasSecondTab": false, "secondTabText": "Send Back", "secondTabOffset": 80, "secondTabWidth": 65, "cnr_id": "comfy-core", "ver": "0.19.3", "models": [{"name": "sam3.1_multiplex_fp16.safetensors", "url": "https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors", "directory": "checkpoints"}]}}
|
||||
|
||||
### 使用与核对
|
||||
|
||||
这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。
|
||||
|
||||
操作1:先读活动图片与静音视频的差别;保持停用,不切换Muter或尝试生成。
|
||||
|
||||
操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。
|
||||
|
||||
操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。
|
||||
|
||||
操作4:核Alpha反转、temp PNG及FPS外线;预览非永久导出。
|
||||
|
||||
常见问题:源注释不证明协议;遮罩方向/坐标/模型/效果待核,不凭字段名推断。
|
||||
|
||||
### 逐保存位置说明
|
||||
|
||||
#### 1. 节点132 · 视频文件引用(静音支路)(file)
|
||||
|
||||
保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。
|
||||
|
||||
```json
|
||||
"drinking_unicorn.mp4"
|
||||
```
|
||||
|
||||
类:LoadVideo;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/0`
|
||||
|
||||
定义默认:动态列表,无固定默认;单位:文件引用
|
||||
|
||||
范围/条件:准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知
|
||||
|
||||
原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [9] 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 68~205行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
- [10] 视频扩展准确注册列表;comfy_extras/nodes_video.py 259~272行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
|
||||
#### 2. 节点132 · 视频上传控件保存状态(upload_state)
|
||||
|
||||
准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。
|
||||
|
||||
```json
|
||||
"image"
|
||||
```
|
||||
|
||||
类:LoadVideo;JSON类型:str;角色:frontend_state_unknown。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/1`
|
||||
|
||||
定义默认:无服务端参数默认;单位:未知
|
||||
|
||||
范围/条件:保存image;不是LoadVideo第二个服务端参数
|
||||
|
||||
原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [9] 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 68~205行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
- [17] 准确前端控件模块;上传附加状态不是服务端参数;src/scripts/widgets.ts 285~307行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts
|
||||
|
||||
#### 3. 节点134 · 帧率保存值(被物理外线覆盖)(fps)
|
||||
|
||||
保存30,但134.fps由133.fps经物理边314接入;133来自132的视频,实际FPS未知,不用保存30推算时长。133.audio也接134,137的audio/fps出口均未接。
|
||||
|
||||
```json
|
||||
30
|
||||
```
|
||||
|
||||
类:CreateVideo;JSON类型:int;角色:linked_saved_value。
|
||||
|
||||
源位置:`/nodes/3/widgets_values/0`
|
||||
|
||||
定义默认:30.0;单位:帧/秒
|
||||
|
||||
范围/条件:schema为1~120,step1;源外线值未知
|
||||
|
||||
原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [9] 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 68~205行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
- [11] 视频组件和容器/编码器枚举;comfy_api/latest/_util/video_types.py 1~52行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py
|
||||
|
||||
#### 4. 节点135 · 视频文件名前缀(静音)(filename_prefix)
|
||||
|
||||
保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。
|
||||
|
||||
```json
|
||||
"video/ComfyUI"
|
||||
```
|
||||
|
||||
类:SaveVideo;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/4/widgets_values/0`
|
||||
|
||||
定义默认:video/ComfyUI;单位:字符串/枚举
|
||||
|
||||
范围/条件:字符串,源码无长度上限;目录与权限未知
|
||||
|
||||
原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [9] 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 68~205行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
- [11] 视频组件和容器/编码器枚举;comfy_api/latest/_util/video_types.py 1~52行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py
|
||||
- [15] VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存;comfy_api/latest/_input_impl/video_types.py 382~459行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py
|
||||
|
||||
#### 5. 节点135 · 视频容器自动选择(静音)(format)
|
||||
|
||||
保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。
|
||||
|
||||
```json
|
||||
"auto"
|
||||
```
|
||||
|
||||
类:SaveVideo;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/4/widgets_values/1`
|
||||
|
||||
定义默认:auto;单位:字符串/枚举
|
||||
|
||||
范围/条件:auto/mp4;auto扩展名mp4,目标支持未知
|
||||
|
||||
原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [9] 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 68~205行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
- [11] 视频组件和容器/编码器枚举;comfy_api/latest/_util/video_types.py 1~52行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py
|
||||
- [15] VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存;comfy_api/latest/_input_impl/video_types.py 382~459行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py
|
||||
|
||||
#### 6. 节点135 · 视频编码器自动选择(静音)(codec)
|
||||
|
||||
保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。
|
||||
|
||||
```json
|
||||
"auto"
|
||||
```
|
||||
|
||||
类:SaveVideo;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/4/widgets_values/2`
|
||||
|
||||
定义默认:auto;单位:字符串/枚举
|
||||
|
||||
范围/条件:auto/h264;实际编码器与Alpha保留未知
|
||||
|
||||
原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [9] 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 68~205行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
- [11] 视频组件和容器/编码器枚举;comfy_api/latest/_util/video_types.py 1~52行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py
|
||||
- [15] VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存;comfy_api/latest/_input_impl/video_types.py 382~459行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py
|
||||
|
||||
#### 7. 节点152 · 活动图片文件引用(image)
|
||||
|
||||
保存微信图片文件名仅作源引用。152.IMAGE一支接154.image,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。
|
||||
|
||||
```json
|
||||
"微信图片_20260425191936_248_41.jpg"
|
||||
```
|
||||
|
||||
类:LoadImage;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/13/widgets_values/0`
|
||||
|
||||
定义默认:动态列表,无固定默认;单位:文件引用
|
||||
|
||||
范围/条件:input图片动态成员,未核目录或文件存在
|
||||
|
||||
原mode=0;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [2] LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接;nodes.py 1700~1779行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
#### 8. 节点152 · 图片上传控件保存状态(upload_state)
|
||||
|
||||
LoadImage服务端只定义image;第二位置不是模型参数或后台输入。未读取/上传该图片,宿主/UE恢复顺序未知。
|
||||
|
||||
```json
|
||||
"image"
|
||||
```
|
||||
|
||||
类:LoadImage;JSON类型:str;角色:frontend_state_unknown。
|
||||
|
||||
源位置:`/nodes/13/widgets_values/1`
|
||||
|
||||
定义默认:无服务端参数默认;单位:未知
|
||||
|
||||
范围/条件:保存image,仅前端附加状态
|
||||
|
||||
原mode=0;根保存态。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [2] LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接;nodes.py 1700~1779行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [17] 准确前端控件模块;上传附加状态不是服务端参数;src/scripts/widgets.ts 285~307行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts
|
||||
|
||||
#### 9. 节点137:101 · 内部检测阈值保存位置(threshold)
|
||||
|
||||
内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。
|
||||
|
||||
```json
|
||||
0.5
|
||||
```
|
||||
|
||||
类:SAM3_Detect;JSON类型:float;角色:internal_saved_unknown。
|
||||
|
||||
源位置:`/definitions/subgraphs/0/nodes/0/widgets_values/0`
|
||||
|
||||
定义默认:未知:准确核心有界注册/模块未找到该实现;单位:未知
|
||||
|
||||
范围/条件:未知:没有准确SAM3 schema/实现依据,不跨版本补齐
|
||||
|
||||
原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [12] 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 2016~2111行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [13] 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 2330~2440行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 10. 节点137:101 · 内部细化次数保存位置(refine_iterations)
|
||||
|
||||
内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。
|
||||
|
||||
```json
|
||||
2
|
||||
```
|
||||
|
||||
类:SAM3_Detect;JSON类型:int;角色:internal_saved_unknown。
|
||||
|
||||
源位置:`/definitions/subgraphs/0/nodes/0/widgets_values/1`
|
||||
|
||||
定义默认:未知:准确核心有界注册/模块未找到该实现;单位:未知,次数仅字段名线索
|
||||
|
||||
范围/条件:未知:没有准确SAM3 schema/实现依据,不跨版本补齐
|
||||
|
||||
原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [12] 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 2016~2111行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [13] 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 2330~2440行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 11. 节点137:101 · 内部独立遮罩开关保存位置(individual_masks)
|
||||
|
||||
内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。
|
||||
|
||||
```json
|
||||
false
|
||||
```
|
||||
|
||||
类:SAM3_Detect;JSON类型:bool;角色:internal_saved_unknown。
|
||||
|
||||
源位置:`/definitions/subgraphs/0/nodes/0/widgets_values/2`
|
||||
|
||||
定义默认:未知:准确核心有界注册/模块未找到该实现;单位:布尔保存态
|
||||
|
||||
范围/条件:未知:没有准确SAM3 schema/实现依据,不跨版本补齐
|
||||
|
||||
原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [12] 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 2016~2111行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [13] 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 2330~2440行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 12. 节点137:102 · 内部检查点引用(与推荐名冲突)(ckpt_name)
|
||||
|
||||
两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。
|
||||
|
||||
```json
|
||||
"sam3.1_multiplex.pt"
|
||||
```
|
||||
|
||||
类:CheckpointLoaderSimple;JSON类型:str;角色:internal_saved_potential。
|
||||
|
||||
源位置:`/definitions/subgraphs/0/nodes/1/widgets_values/0`
|
||||
|
||||
定义默认:动态checkpoints列表,无固定默认;单位:文件引用
|
||||
|
||||
范围/条件:模型/CLIP家族及实际目录、动态列表与SAM3支持未知
|
||||
|
||||
原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [1] 动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持;nodes.py 588~610行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 13. 节点137:100 · 内部潜在分割文本(text)
|
||||
|
||||
视频定义内部保存unicorn,图片定义内部保存clothes,各自经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。
|
||||
|
||||
```json
|
||||
"unicorn"
|
||||
```
|
||||
|
||||
类:CLIPTextEncode;JSON类型:str;角色:internal_saved_potential。
|
||||
|
||||
源位置:`/definitions/subgraphs/0/nodes/4/widgets_values/0`
|
||||
|
||||
定义默认:schema未显式默认,不能由现值当默认;单位:文本
|
||||
|
||||
范围/条件:准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证
|
||||
|
||||
原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [0] 文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族;nodes.py 59~81行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 14. 节点154:78 · 内部潜在分割文本(text)
|
||||
|
||||
视频定义内部保存unicorn,图片定义内部保存clothes,各自经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。
|
||||
|
||||
```json
|
||||
"clothes"
|
||||
```
|
||||
|
||||
类:CLIPTextEncode;JSON类型:str;角色:internal_saved_potential。
|
||||
|
||||
源位置:`/definitions/subgraphs/1/nodes/0/widgets_values/0`
|
||||
|
||||
定义默认:schema未显式默认,不能由现值当默认;单位:文本
|
||||
|
||||
范围/条件:准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证
|
||||
|
||||
原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [0] 文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族;nodes.py 59~81行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 15. 节点154:75 · 内部检测阈值保存位置(threshold)
|
||||
|
||||
内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。
|
||||
|
||||
```json
|
||||
0.5
|
||||
```
|
||||
|
||||
类:SAM3_Detect;JSON类型:float;角色:internal_saved_unknown。
|
||||
|
||||
源位置:`/definitions/subgraphs/1/nodes/1/widgets_values/0`
|
||||
|
||||
定义默认:未知:准确核心有界注册/模块未找到该实现;单位:未知
|
||||
|
||||
范围/条件:未知:没有准确SAM3 schema/实现依据,不跨版本补齐
|
||||
|
||||
原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [12] 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 2016~2111行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [13] 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 2330~2440行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 16. 节点154:75 · 内部细化次数保存位置(refine_iterations)
|
||||
|
||||
内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。
|
||||
|
||||
```json
|
||||
2
|
||||
```
|
||||
|
||||
类:SAM3_Detect;JSON类型:int;角色:internal_saved_unknown。
|
||||
|
||||
源位置:`/definitions/subgraphs/1/nodes/1/widgets_values/1`
|
||||
|
||||
定义默认:未知:准确核心有界注册/模块未找到该实现;单位:未知,次数仅字段名线索
|
||||
|
||||
范围/条件:未知:没有准确SAM3 schema/实现依据,不跨版本补齐
|
||||
|
||||
原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [12] 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 2016~2111行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [13] 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 2330~2440行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 17. 节点154:75 · 内部独立遮罩开关保存位置(individual_masks)
|
||||
|
||||
内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。
|
||||
|
||||
```json
|
||||
false
|
||||
```
|
||||
|
||||
类:SAM3_Detect;JSON类型:bool;角色:internal_saved_unknown。
|
||||
|
||||
源位置:`/definitions/subgraphs/1/nodes/1/widgets_values/2`
|
||||
|
||||
定义默认:未知:准确核心有界注册/模块未找到该实现;单位:布尔保存态
|
||||
|
||||
范围/条件:未知:没有准确SAM3 schema/实现依据,不跨版本补齐
|
||||
|
||||
原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [12] 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 2016~2111行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [13] 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 2330~2440行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
#### 18. 节点154:77 · 内部检查点引用(与推荐名冲突)(ckpt_name)
|
||||
|
||||
两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。
|
||||
|
||||
```json
|
||||
"sam3.1_multiplex.pt"
|
||||
```
|
||||
|
||||
类:CheckpointLoaderSimple;JSON类型:str;角色:internal_saved_potential。
|
||||
|
||||
源位置:`/definitions/subgraphs/1/nodes/2/widgets_values/0`
|
||||
|
||||
定义默认:动态checkpoints列表,无固定默认;单位:文件引用
|
||||
|
||||
范围/条件:模型/CLIP家族及实际目录、动态列表与SAM3支持未知
|
||||
|
||||
原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。
|
||||
|
||||
依据:
|
||||
- [1] 动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持;nodes.py 588~610行;commit 3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
- [14] 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 993~1123行;commit 4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
### 零保存节点与源注释
|
||||
|
||||
131 JoinImageWithAlpha:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
133 GetVideoComponents:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
137 0925a49b-2fa2-44e9-8afc-aa70380d84e6:原[]零位置;宿主/定义/内部值分开,promoted未知。
|
||||
|
||||
136 MaskPreview:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
150 Fast Groups Muter (rgthree):原缺widgets_values键,提供方/版本未知;不模拟Muter切换。
|
||||
|
||||
151 PreviewImage:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
153 JoinImageWithAlpha:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
155 MaskPreview:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
154 48668c69-3b7f-4f0a-9689-2590a4106289:原[]零位置;宿主/定义/内部值分开,promoted未知。
|
||||
|
||||
137:104 GetVideoComponents:原[]为零保存位置;按原节点模式保留,不虚构输入参数。
|
||||
|
||||
节点112,位置`/nodes/7/widgets_values`
|
||||
|
||||
完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。
|
||||
|
||||
```text
|
||||
Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)
|
||||
|
||||
## Model Links (for Local Users)
|
||||
|
||||
**checkpoints**
|
||||
|
||||
- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)
|
||||
|
||||
|
||||
## Model Storage Location
|
||||
|
||||
```
|
||||
📂 ComfyUI/
|
||||
├── 📂 models/
|
||||
│ └── 📂 checkpoints/
|
||||
│ └── sam3.1_multiplex_fp16.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)
|
||||
|
||||
```
|
||||
|
||||
节点113,位置`/nodes/8/widgets_values`
|
||||
|
||||
完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。
|
||||
|
||||
```text
|
||||
Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N
|
||||
|
||||
For example above test prompt finds 2 cakes, one apron, 4 window panels
|
||||
|
||||
```
|
||||
eye:2, window panels:4
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
节点0925a49b-2fa2-44e9-8afc-aa70380d84e6/105,位置`/definitions/subgraphs/0/nodes/3/widgets_values`
|
||||
|
||||
完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。
|
||||
|
||||
```text
|
||||
Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N
|
||||
|
||||
For example above test prompt finds 2 cakes, one apron, 4 window panels
|
||||
```
|
||||
|
||||
### 固定原件索引
|
||||
|
||||
0. 文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族;nodes.py 第59~81行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
1. 动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持;nodes.py 第588~610行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
2. LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接;nodes.py 第1700~1779行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
3. PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存;nodes.py 第1627~1699行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
4. Join先resize_mask再1-alpha,批次取较短,拼前三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
|
||||
|
||||
5. 遮罩尺寸适配辅助函数及插值;未执行张量运算;comfy_extras/nodes_compositing.py 第1~30行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py
|
||||
|
||||
6. MaskPreview注册并调用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. PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向;comfy_api/latest/_ui.py 第389~412行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py
|
||||
|
||||
8. ImageSaveHelper输出PNG及目录创建条件;comfy_api/latest/_ui.py 第88~168行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py
|
||||
|
||||
9. 核心视频四节点的准确schema、fps外线、读取与保存调用;comfy_extras/nodes_video.py 第68~205行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
|
||||
10. 视频扩展准确注册列表;comfy_extras/nodes_video.py 第259~272行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py
|
||||
|
||||
11. 视频组件和容器/编码器枚举;comfy_api/latest/_util/video_types.py 第1~52行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py
|
||||
|
||||
12. 核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现;nodes.py 第2016~2111行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
13. 扩展模块加载范围,未发现SAM3命名模块,非目标安装事实;nodes.py 第2330~2440行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py
|
||||
|
||||
14. 准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值;src/lib/litegraph/src/subgraph/SubgraphNode.ts 第993~1123行;提交4705b3186ecd621151daf95dd702009b266bd819;SHA256 32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts
|
||||
|
||||
15. VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存;comfy_api/latest/_input_impl/video_types.py 第382~459行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py
|
||||
|
||||
16. Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL;src/extensions/core/noteNode.ts 第7~83行;提交4705b3186ecd621151daf95dd702009b266bd819;SHA256 1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/extensions/core/noteNode.ts
|
||||
|
||||
17. 准确前端控件模块;上传附加状态不是服务端参数;src/scripts/widgets.ts 第285~307行;提交4705b3186ecd621151daf95dd702009b266bd819;SHA256 43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts
|
||||
|
||||
18. 准确完整提交许可原文;LICENSE 第1~674行;提交3086026401180c9216bcb6ace442a4e3587d2c66;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE
|
||||
|
||||
19. 准确完整提交许可原文;LICENSE 第1~674行;提交4705b3186ecd621151daf95dd702009b266bd819;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/LICENSE
|
||||
@@ -0,0 +1,2 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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,10 @@
|
||||
........................................................................ [ 33%]
|
||||
........................................................................ [ 67%]
|
||||
..................................................................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-b15650a071f9/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
213 passed, 1 warning in 4.73s
|
||||
@@ -0,0 +1,36 @@
|
||||
........................................................................ [ 33%]
|
||||
........................................................................ [ 67%]
|
||||
.......................................................F............. [100%]
|
||||
=================================== FAILURES ===================================
|
||||
______________ test_source_counts_semantics_and_whole_old_reviews ______________
|
||||
|
||||
def test_source_counts_semantics_and_whole_old_reviews():
|
||||
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
||||
old=json.loads(subprocess.check_output(['git','show','8b4b9ca:'+resource],cwd=REPO))
|
||||
now=json.loads((REPO/resource).read_bytes())
|
||||
b=now[PATHS[0]].pop('fixed_version_document')
|
||||
assert now==old and len(DEFINITIONS)==27
|
||||
oldblocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
||||
assert len(oldblocks)==26 and sum(len(b['fields']) for b in oldblocks)==820
|
||||
> assert sum(len(b['comments']) for b in oldblocks)==16
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
calliope-backend/tests/test_sam3_fixed_document.py:170:
|
||||
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
|
||||
.0 = <list_iterator object at 0x7fb3b409fbb0>
|
||||
|
||||
> assert sum(len(b['comments']) for b in oldblocks)==16
|
||||
^^^^^^^^^^^^^
|
||||
E KeyError: 'comments'
|
||||
|
||||
calliope-backend/tests/test_sam3_fixed_document.py:170: KeyError
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-b15650a071f9/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
=========================== short test summary info ============================
|
||||
FAILED calliope-backend/tests/test_sam3_fixed_document.py::test_source_counts_semantics_and_whole_old_reviews
|
||||
1 failed, 212 passed, 1 warning in 4.73s
|
||||
@@ -0,0 +1,28 @@
|
||||
........................................................................ [ 33%]
|
||||
........................................................................ [ 67%]
|
||||
.......................................................F............. [100%]
|
||||
=================================== FAILURES ===================================
|
||||
______________ test_source_counts_semantics_and_whole_old_reviews ______________
|
||||
|
||||
def test_source_counts_semantics_and_whole_old_reviews():
|
||||
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
||||
old=json.loads(subprocess.check_output(['git','show','8b4b9ca:'+resource],cwd=REPO))
|
||||
now=json.loads((REPO/resource).read_bytes())
|
||||
b=now[PATHS[0]].pop('fixed_version_document')
|
||||
assert now==old and len(DEFINITIONS)==27
|
||||
oldblocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
||||
assert len(oldblocks)==26 and sum(len(b['fields']) for b in oldblocks)==820
|
||||
> assert sum(len(b.get('comments', [])) for b in oldblocks)==16
|
||||
E assert 15 == 16
|
||||
E + where 15 = sum(<generator object test_source_counts_semantics_and_whole_old_reviews.<locals>.<genexpr> at 0x7fef871f9c60>)
|
||||
|
||||
calliope-backend/tests/test_sam3_fixed_document.py:170: AssertionError
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-b15650a071f9/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
=========================== short test summary info ============================
|
||||
FAILED calliope-backend/tests/test_sam3_fixed_document.py::test_source_counts_semantics_and_whole_old_reviews
|
||||
1 failed, 212 passed, 1 warning in 4.77s
|
||||
@@ -0,0 +1,10 @@
|
||||
........................................................................ [ 33%]
|
||||
........................................................................ [ 67%]
|
||||
..................................................................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-b15650a071f9/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
213 passed, 1 warning in 4.72s
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "8b4b9ca81720cf39606d4a46b008f5df9ee90f70",
|
||||
"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_six_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,94 @@
|
||||
{
|
||||
"scope": "Complete core tree path names plus only the listed necessary textual files. Not all core source contents; no historical/newer versions. SAM3 implementation remains unknown.",
|
||||
"tags": {
|
||||
"core": {
|
||||
"tag": "refs/tags/v0.19.3",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"tree_truncated": false
|
||||
},
|
||||
"frontend": {
|
||||
"tag": "refs/tags/v1.42.15",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"tree_truncated": false
|
||||
}
|
||||
},
|
||||
"core_tree_paths": 940,
|
||||
"sam3_path_matches": [],
|
||||
"sam3_detect_scanned_files": [
|
||||
{
|
||||
"path": "nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_extras/nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_extras/nodes_mask.py",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_extras/nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_api/latest/_input_impl/video_types.py",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_api/latest/_input/video_types.py",
|
||||
"sha256": "6a4cdb3085ed8a4289e63168536e9a530c95aad94c7e2de1eddf8738af11f5a7",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_api/latest/_util/video_types.py",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "comfy_api/latest/_io.py",
|
||||
"sha256": "7808265ecb4ce92af76ec1e100ff92fd9880fd7e60d113621dad6e602f6f9bd5",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"matches": []
|
||||
},
|
||||
{
|
||||
"path": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"matches": []
|
||||
}
|
||||
],
|
||||
"frontend_files": [
|
||||
"LICENSE",
|
||||
"src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"src/scripts/widgets.ts",
|
||||
"src/scripts/app.ts",
|
||||
"src/extensions/core/noteNode.ts",
|
||||
"src/extensions/core/widgetInputs.ts",
|
||||
"src/core/schemas/promotionSchema.ts",
|
||||
"src/core/graph/subgraph/resolvePromotedWidgetSource.ts",
|
||||
"src/core/graph/subgraph/legacyProxyWidgetNormalization.ts",
|
||||
"src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
|
||||
"src/stores/promotionStore.ts"
|
||||
],
|
||||
"unknown": [
|
||||
"SAM3_Detect schema/default/range/units/coords/model support",
|
||||
"target installation/UE/order",
|
||||
"Muter provider/version",
|
||||
"promoted final values"
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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,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,552 @@
|
||||
"""SAM3 source-bound editorial data, never an execution or conversion contract."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "sam3-reference"
|
||||
PATHS = [
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json"
|
||||
]
|
||||
|
||||
|
||||
def canonical(value):
|
||||
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
def build(index=0):
|
||||
path = PATHS[index]
|
||||
raw = (REPO / path).read_bytes()
|
||||
graph = json.loads(raw)
|
||||
entries = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
refs = []
|
||||
|
||||
def ref(key, file, first, last, claim):
|
||||
entry = next(e for e in entries if e["id"] == key and e["file"] == file)
|
||||
data = (REF / entry["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == entry["sha256"]
|
||||
assert 1 <= first <= last <= len(data.decode().splitlines())
|
||||
refs.append(
|
||||
{
|
||||
**entry,
|
||||
"local_file": "../sam3-reference/" + entry["local_file"],
|
||||
"lines": [first, last],
|
||||
"claim": claim,
|
||||
}
|
||||
)
|
||||
return len(refs) - 1
|
||||
|
||||
clip = ref(
|
||||
"core",
|
||||
"nodes.py",
|
||||
59,
|
||||
81,
|
||||
"文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族",
|
||||
)
|
||||
ckpt = ref(
|
||||
"core",
|
||||
"nodes.py",
|
||||
588,
|
||||
610,
|
||||
"动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持",
|
||||
)
|
||||
image = ref(
|
||||
"core", "nodes.py", 1700, 1779, "LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接"
|
||||
)
|
||||
ref(
|
||||
"core",
|
||||
"nodes.py",
|
||||
1627,
|
||||
1699,
|
||||
"PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存",
|
||||
)
|
||||
ref(
|
||||
"core",
|
||||
"comfy_extras/nodes_compositing.py",
|
||||
188,
|
||||
226,
|
||||
"Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha",
|
||||
)
|
||||
ref(
|
||||
"core",
|
||||
"comfy_extras/nodes_compositing.py",
|
||||
1,
|
||||
30,
|
||||
"遮罩尺寸适配辅助函数及插值;未执行张量运算",
|
||||
)
|
||||
ref("core", "comfy_extras/nodes_mask.py", 403, 445, "MaskPreview注册并调用UI.PreviewMask")
|
||||
ref(
|
||||
"core",
|
||||
"comfy_api/latest/_ui.py",
|
||||
389,
|
||||
412,
|
||||
"PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向",
|
||||
)
|
||||
ref("core", "comfy_api/latest/_ui.py", 88, 168, "ImageSaveHelper输出PNG及目录创建条件")
|
||||
video = ref(
|
||||
"core",
|
||||
"comfy_extras/nodes_video.py",
|
||||
68,
|
||||
205,
|
||||
"核心视频四节点的准确schema、fps外线、读取与保存调用",
|
||||
)
|
||||
vreg = ref("core", "comfy_extras/nodes_video.py", 259, 272, "视频扩展准确注册列表")
|
||||
types = ref("core", "comfy_api/latest/_util/video_types.py", 1, 52, "视频组件和容器/编码器枚举")
|
||||
# The bounded registry inspection explicitly cannot supply a SAM3 schema.
|
||||
reg = ref(
|
||||
"core", "nodes.py", 2016, 2111, "核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现"
|
||||
)
|
||||
extra = ref(
|
||||
"core", "nodes.py", 2330, 2440, "扩展模块加载范围,未发现SAM3命名模块,非目标安装事实"
|
||||
)
|
||||
host = ref(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
993,
|
||||
1123,
|
||||
"准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值",
|
||||
)
|
||||
vsave = ref(
|
||||
"core",
|
||||
"comfy_api/latest/_input_impl/video_types.py",
|
||||
382,
|
||||
459,
|
||||
"VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存",
|
||||
)
|
||||
ref(
|
||||
"frontend",
|
||||
"src/extensions/core/noteNode.ts",
|
||||
7,
|
||||
83,
|
||||
"Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL",
|
||||
)
|
||||
widgets = ref(
|
||||
"frontend",
|
||||
"src/scripts/widgets.ts",
|
||||
285,
|
||||
307,
|
||||
"准确前端控件模块;上传附加状态不是服务端参数",
|
||||
)
|
||||
for key in ("core", "frontend"):
|
||||
entry = next(e for e in entries if e["id"] == key and e["file"] == "LICENSE")
|
||||
ref(
|
||||
key,
|
||||
"LICENSE",
|
||||
1,
|
||||
len((REF / entry["local_file"]).read_text().splitlines()),
|
||||
"准确完整提交许可原文",
|
||||
)
|
||||
|
||||
specs = {}
|
||||
|
||||
def spec(cls, name, label, typ, default, unit, limits, effect, evidence, role="scalar"):
|
||||
specs[cls, name] = dict(
|
||||
field=name,
|
||||
label=label,
|
||||
type=typ,
|
||||
schema_default=default,
|
||||
unit=unit,
|
||||
limits=limits,
|
||||
effect=effect,
|
||||
evidence=evidence,
|
||||
role=role,
|
||||
)
|
||||
|
||||
spec(
|
||||
"LoadVideo",
|
||||
"file",
|
||||
"视频文件引用(静音支路)",
|
||||
"COMBO",
|
||||
"动态列表,无固定默认",
|
||||
"文件引用",
|
||||
"准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知",
|
||||
"保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。",
|
||||
[video, vreg],
|
||||
)
|
||||
spec(
|
||||
"LoadVideo",
|
||||
"upload_state",
|
||||
"视频上传控件保存状态",
|
||||
"前端附加状态",
|
||||
"无服务端参数默认",
|
||||
"未知",
|
||||
"保存image;不是LoadVideo第二个服务端参数",
|
||||
"准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。",
|
||||
[video, widgets],
|
||||
"frontend_state_unknown",
|
||||
)
|
||||
spec(
|
||||
"CreateVideo",
|
||||
"fps",
|
||||
"帧率保存值(被物理外线覆盖)",
|
||||
"FLOAT",
|
||||
"30.0",
|
||||
"帧/秒",
|
||||
"schema为1~120,step1;源外线值未知",
|
||||
(
|
||||
"保存30,但134.fps由133.fps经物理边314接入;133来自132的"
|
||||
"视频,实际FPS未知,不用保存30推算时长。133.audio也接134,137"
|
||||
"的audio/fps出口均未接。"
|
||||
),
|
||||
[video, types],
|
||||
"linked_saved_value",
|
||||
)
|
||||
for name, label, default, limits, effect in [
|
||||
(
|
||||
"filename_prefix",
|
||||
"视频文件名前缀(静音)",
|
||||
"video/ComfyUI",
|
||||
"字符串,源码无长度上限;目录与权限未知",
|
||||
"保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。",
|
||||
),
|
||||
(
|
||||
"format",
|
||||
"视频容器自动选择(静音)",
|
||||
"auto",
|
||||
"auto/mp4;auto扩展名mp4,目标支持未知",
|
||||
"保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。",
|
||||
),
|
||||
(
|
||||
"codec",
|
||||
"视频编码器自动选择(静音)",
|
||||
"auto",
|
||||
"auto/h264;实际编码器与Alpha保留未知",
|
||||
"保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。",
|
||||
),
|
||||
]:
|
||||
spec(
|
||||
"SaveVideo",
|
||||
name,
|
||||
label,
|
||||
"STRING" if name == "filename_prefix" else "COMBO",
|
||||
default,
|
||||
"字符串/枚举",
|
||||
limits,
|
||||
effect,
|
||||
[video, types, vsave],
|
||||
)
|
||||
spec(
|
||||
"LoadImage",
|
||||
"image",
|
||||
"活动图片文件引用",
|
||||
"COMBO",
|
||||
"动态列表,无固定默认",
|
||||
"文件引用",
|
||||
"input图片动态成员,未核目录或文件存在",
|
||||
(
|
||||
"保存微信图片文件名仅作源引用。152.IMAGE一支接154.image,另一支"
|
||||
"接153.image;152.MASK未接,不能把输入图Alpha的反向MASK"
|
||||
"误当SAM3输出。"
|
||||
),
|
||||
[image],
|
||||
)
|
||||
spec(
|
||||
"LoadImage",
|
||||
"upload_state",
|
||||
"图片上传控件保存状态",
|
||||
"前端附加状态",
|
||||
"无服务端参数默认",
|
||||
"未知",
|
||||
"保存image,仅前端附加状态",
|
||||
"LoadImage服务端只定义image;第二位置不是模型参数或后台输入。未读取/上传该图片,宿主/UE恢复顺序未知。",
|
||||
[image, widgets],
|
||||
"frontend_state_unknown",
|
||||
)
|
||||
spec(
|
||||
"CLIPTextEncode",
|
||||
"text",
|
||||
"内部潜在分割文本",
|
||||
"STRING",
|
||||
"schema未显式默认,不能由现值当默认",
|
||||
"文本",
|
||||
"准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证",
|
||||
(
|
||||
"视频定义内部保存unicorn,图片定义内部保存clothes,各自经Check"
|
||||
"point.CLIP编码。边界text有具名连线,宿主widgets_value"
|
||||
"s=[],最终promoted取值未知,不把内部值当提交值。"
|
||||
),
|
||||
[clip, host],
|
||||
"internal_saved_potential",
|
||||
)
|
||||
spec(
|
||||
"CheckpointLoaderSimple",
|
||||
"ckpt_name",
|
||||
"内部检查点引用(与推荐名冲突)",
|
||||
"COMBO",
|
||||
"动态checkpoints列表,无固定默认",
|
||||
"文件引用",
|
||||
"模型/CLIP家族及实际目录、动态列表与SAM3支持未知",
|
||||
(
|
||||
"两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3."
|
||||
"1_multiplex_fp16.safetensors,两者不一致,原样保留不"
|
||||
"承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与"
|
||||
"边界ckpt_name不等于已确定加载名。"
|
||||
),
|
||||
[ckpt, host],
|
||||
"internal_saved_potential",
|
||||
)
|
||||
for name, label, typ, unit, effect in [
|
||||
(
|
||||
"threshold",
|
||||
"内部检测阈值保存位置",
|
||||
"FLOAT(仅源口声明)",
|
||||
"未知",
|
||||
"内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。",
|
||||
),
|
||||
(
|
||||
"refine_iterations",
|
||||
"内部细化次数保存位置",
|
||||
"INT(仅源口声明)",
|
||||
"未知,次数仅字段名线索",
|
||||
"内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。",
|
||||
),
|
||||
(
|
||||
"individual_masks",
|
||||
"内部独立遮罩开关保存位置",
|
||||
"BOOLEAN(仅源口声明)",
|
||||
"布尔保存态",
|
||||
"内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。",
|
||||
),
|
||||
]:
|
||||
spec(
|
||||
"SAM3_Detect",
|
||||
name,
|
||||
label,
|
||||
typ,
|
||||
"未知:准确核心有界注册/模块未找到该实现",
|
||||
unit,
|
||||
"未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
effect
|
||||
+ (
|
||||
"两个作用域分别保留;宿主各5个proxyWidgets、widgets_valu"
|
||||
"es=[],定义widgets=[],不推算promoted最终值。bboxes"
|
||||
"/正负坐标宿主均未接,坐标格式/单位未知。"
|
||||
),
|
||||
[reg, extra, host],
|
||||
"internal_saved_unknown",
|
||||
)
|
||||
|
||||
fields, comments, zeros = [], [], []
|
||||
names = {
|
||||
"LoadVideo": ["file", "upload_state"],
|
||||
"CreateVideo": ["fps"],
|
||||
"SaveVideo": ["filename_prefix", "format", "codec"],
|
||||
"LoadImage": ["image", "upload_state"],
|
||||
"CLIPTextEncode": ["text"],
|
||||
"CheckpointLoaderSimple": ["ckpt_name"],
|
||||
"SAM3_Detect": ["threshold", "refine_iterations", "individual_masks"],
|
||||
}
|
||||
scopes = [("root", "", graph)] + [
|
||||
(d["id"], f"/definitions/subgraphs/{i}", d)
|
||||
for i, d in enumerate(graph["definitions"]["subgraphs"])
|
||||
]
|
||||
for scope, prefix, g in scopes:
|
||||
for i, n in enumerate(g["nodes"]):
|
||||
vals = n.get("widgets_values")
|
||||
ptr = f"{prefix}/nodes/{i}/widgets_values"
|
||||
nid = (
|
||||
str(n["id"])
|
||||
if scope == "root"
|
||||
else ("137" if scope == scopes[1][0] else "154") + ":" + str(n["id"])
|
||||
)
|
||||
if n["type"] in ("MarkdownNote", "Note"):
|
||||
comments.append(
|
||||
dict(
|
||||
node_id=str(n["id"]) if scope == "root" else scope + "/" + str(n["id"]),
|
||||
pointer=ptr,
|
||||
scope=scope,
|
||||
text=vals[0],
|
||||
meaning=(
|
||||
"完整源注释,只说明作者写下的内容。32 tokens/逗号/"
|
||||
":N、推荐模型与链接未证明运行规则,不打开URL、不作为下载"
|
||||
"或安装授权。"
|
||||
),
|
||||
)
|
||||
)
|
||||
continue
|
||||
if not vals:
|
||||
zeros.append(
|
||||
dict(
|
||||
node_id=nid,
|
||||
class_type=n["type"],
|
||||
effect=(
|
||||
"原缺widgets_values键,提供方/版本未知;不模拟Muter切换。"
|
||||
if vals is None
|
||||
else "原[]零位置;宿主/定义/内部值分开,promoted未知。"
|
||||
if n["type"] in [scopes[1][0], scopes[2][0]]
|
||||
else "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
),
|
||||
)
|
||||
)
|
||||
continue
|
||||
for k, v in vals.items() if isinstance(vals, dict) else enumerate(vals):
|
||||
name = k if isinstance(vals, dict) else names[n["type"]][k]
|
||||
fields.append(
|
||||
{
|
||||
**specs[n["type"], name],
|
||||
"node_id": nid,
|
||||
"definition_node_id": str(n["id"]),
|
||||
"class_type": n["type"],
|
||||
"scope": scope,
|
||||
"pointer": ptr + "/" + str(k),
|
||||
"value": v,
|
||||
"json_type": type(v).__name__,
|
||||
"execution_note": f"原mode={n['mode']};"
|
||||
+ (
|
||||
"根保存态。"
|
||||
if scope == "root"
|
||||
else "子图潜在值;边界与宿主空值分开,promoted未知。"
|
||||
)
|
||||
+ "源声明版本不是安装或效果证明;未构造prompt。",
|
||||
}
|
||||
)
|
||||
assert len(fields) == 18 and len(comments) == 3
|
||||
overview = (
|
||||
"这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于"
|
||||
"mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151"
|
||||
"预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存pro"
|
||||
"moted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐"
|
||||
".safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持"
|
||||
"和效果未知;仅参考说明,转换关闭、未实跑。"
|
||||
)
|
||||
flow = [
|
||||
overview,
|
||||
(
|
||||
"活动图片:152.IMAGE→154.image和153.image;154.m"
|
||||
"asks→153.alpha与155.mask,153.IMAGE→151.im"
|
||||
"ages。152.MASK未接;154.bboxes出口为空,bboxes/po"
|
||||
"sitive_coords/negative_coords宿主输入都未接,不猜坐"
|
||||
"标格式或分割方向。"
|
||||
),
|
||||
(
|
||||
"准确VideoFromComponents保存仅接受auto/mp4与auto/"
|
||||
"h264,固定路径构造rgb24并转yuv420p;Join输出四通道,不声称透"
|
||||
"明视频能保存或保留Alpha,未实测后果。"
|
||||
),
|
||||
(
|
||||
"准确JoinImageWithAlpha先resize_mask再1-alpha"
|
||||
";批次取min,拼原图前三RGB通道。这里只说明该准确核心运算,不由此推断SAM"
|
||||
"3的MASK哪边代表前景、边缘效果或最终透明区域。PreviewImage继承S"
|
||||
"aveImage写temp PNG;MaskPreview经UI.Preview"
|
||||
"Mask→RGB→temp PNG。无正式SaveImage节点,不称永久图片保"
|
||||
"存或保证无磁盘写入。"
|
||||
),
|
||||
(
|
||||
"视频组131/132/133/134/135/137/136均mode2静音。1"
|
||||
"32.VIDEO同时到133.video、137.video;133.image"
|
||||
"s→131.image,137.masks→131.alpha及136.mask"
|
||||
",131.IMAGE→134.images,133.audio/fps→134→"
|
||||
"135。134保存30被物理边314的133.fps覆盖,实际FPS未知;137"
|
||||
"自己的audio/fps出口未接,不混同133输出。不模拟Muter或静音切换。"
|
||||
),
|
||||
(
|
||||
"两个子图UUID分别0925a49b-2fa2-44e9-8afc-aa7038"
|
||||
"0d84e6与48668c69-3b7f-4f0a-9689-2590a4106"
|
||||
"289。137/154各widgets_values=[]、proxyWidge"
|
||||
"ts各5绑定,定义widgets=[]。内部text为unicorn/cloth"
|
||||
"es、threshold0.5/refine_iterations2/indiv"
|
||||
"idual_masksfalse、ckpt_name均sam3.1_multip"
|
||||
"lex.pt。所有具名边界、数组与原指针分开保留,不把负ID边界当实体、不推算最"
|
||||
"终promoted值。视频内部5节点mode2,图片内部3节点mode0。"
|
||||
),
|
||||
(
|
||||
"两个Checkpoint的属性/源注释推荐sam3.1_multiplex_fp"
|
||||
"16.safetensors,但保存sam3.1_multiplex.pt;不替"
|
||||
"换、不承诺兼容、不下载权重。两CLIPTextEncode从各自Checkpoi"
|
||||
"nt.CLIP取值,VAE未接。动态模型列表、SAM3模型/CLIP家族和真实目"
|
||||
"录未知。"
|
||||
),
|
||||
(
|
||||
"准确core0.19.3完整树没有SAM3命名模块;有界核对nodes.py注册"
|
||||
"与扩展模块范围,未找到SAM3_Detect准确实现。不能把源cnr_id/ve"
|
||||
"r当安装事实、不能借新版SAM3解释threshold/refine_itera"
|
||||
"tions/individual_masks、bboxes与坐标、默认/范围/单"
|
||||
"位或模型支持。具体调查集合见bounded-investigation.json"
|
||||
"与sources.json,不无限搜索历史。"
|
||||
),
|
||||
(
|
||||
"Muter150原缺widgets_values、提供方和版本,UE7.8及扩展"
|
||||
"恢复顺序未知。准确前端源码仅固定宿主configure/proxyWidgets"
|
||||
"参考,未加载宿主/UE、模型或插件,不求值promoted。两个Markdown"
|
||||
"Note和内部Note全文保留,32 tokens/逗号/:N仅源注释,不能当运"
|
||||
"行协议或下载授权。"
|
||||
),
|
||||
(
|
||||
"素材文件、视频FPS、编码器、动态模型列表、目录权限、目标安装/UE和效果未核实"
|
||||
";不请求图片/视频/注释URL,不索取机器窗口。155完整定稿0/必要实跑0/新"
|
||||
"增转换0,保持停用未检查与原资格。"
|
||||
),
|
||||
]
|
||||
for scope, prefix, g in scopes:
|
||||
flow.append(
|
||||
f"作用域{scope}:{len(g['nodes'])}实体节点/{len(g['links'])}物理或含边界记录;根边与定义边分别保留。"
|
||||
)
|
||||
for e in g["links"]:
|
||||
flow.append("原边 " + scope + " " + json.dumps(e, ensure_ascii=False))
|
||||
if scope != "root":
|
||||
flow.append(
|
||||
"具名边界 "
|
||||
+ scope
|
||||
+ " "
|
||||
+ json.dumps(
|
||||
{k: g[k] for k in ["inputs", "outputs", "widgets"]}, ensure_ascii=False
|
||||
)
|
||||
)
|
||||
for n in g["nodes"]:
|
||||
flow.append(
|
||||
"原节点 "
|
||||
+ scope
|
||||
+ " "
|
||||
+ json.dumps(
|
||||
{k: n[k] for k in ["id", "type", "mode", "inputs", "outputs", "properties"]},
|
||||
ensure_ascii=False,
|
||||
)
|
||||
)
|
||||
return dict(
|
||||
source_path=path,
|
||||
source_sha1=hashlib.sha1(raw).hexdigest(),
|
||||
source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
|
||||
notice="准确版本仅作参考;SAM3实现未找到、promoted/模型兼容/效果未知;视频静音,未实跑、转换保持关闭。",
|
||||
user_overview=overview,
|
||||
versions=[
|
||||
(
|
||||
"core0.19.3→3086026401180c9216bcb6ace442a"
|
||||
"4e3587d2c66;frontend1.42.15→4705b3186ecd"
|
||||
"621151daf95dd702009b266bd819;tag/完整树/必要源"
|
||||
"码及许可固定。"
|
||||
),
|
||||
"UE7.8仅源声明;Muter无提供方/版本;准确核心有界未找到SAM3_Detect实现,不跨版本补缺。",
|
||||
],
|
||||
counts=dict(
|
||||
saved_fields=18,
|
||||
source_nodes=15,
|
||||
definition_nodes=8,
|
||||
physical_edges=14,
|
||||
definition_edges=31,
|
||||
source_notes=3,
|
||||
history_objects=0,
|
||||
linked_saved_fields=1,
|
||||
frontend_only=2,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=refs,
|
||||
comments=comments,
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(refs))),
|
||||
zero_saved_nodes=zeros,
|
||||
steps=[
|
||||
overview,
|
||||
"操作1:先读活动图片与静音视频的差别;保持停用,不切换Muter或尝试生成。",
|
||||
"操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。",
|
||||
"操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。",
|
||||
"操作4:核Alpha反转、temp PNG及FPS外线;预览非永久导出。",
|
||||
"常见问题:源注释不证明协议;遮罩方向/坐标/模型/效果待核,不凭字段名推断。",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,678 @@
|
||||
{
|
||||
"base": "8b4b9ca81720cf39606d4a46b008f5df9ee90f70",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"status": "M",
|
||||
"sha256": "ac5a03a7b8f0b37fc93d023c83ebaa7a5bcadee43c88ae54a0ff04d674c656c3",
|
||||
"purpose": "固定说明受信绑定"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"status": "M",
|
||||
"sha256": "b117cba5d0367f23e1bfeaa13b8244d00c120f8dcc14e7cb31072a5c323a2035",
|
||||
"purpose": "唯一新增SAM3说明数据"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_sam3_fixed_document.py",
|
||||
"status": "A",
|
||||
"sha256": "5df402d6eeb0aeed5c61cae96564be44c04d390a7be0aa61053b26edbfe08730",
|
||||
"purpose": "固定说明受信绑定"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/SAM3提示词遮罩固定参考中文说明.md",
|
||||
"status": "A",
|
||||
"sha256": "3bb6275651598463b3c1662f3a737b06d6d9c9ebf8a63e0d2b235669b0b28d97",
|
||||
"purpose": "完整中文说明"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/.gitignore",
|
||||
"status": "A",
|
||||
"sha256": "6feaded4e28ea86e001a6751b4e3d960e8b7c31b9616ff9936b79297086e809b",
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-310.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-311.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/check_code.cpython-310.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-310.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-311.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/render_report.cpython-310.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/multivideo-document-evidence/__pycache__/verify_sources.cpython-311.pyc",
|
||||
"status": "D",
|
||||
"sha256": null,
|
||||
"purpose": "本轮缓存清理"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/.gitignore",
|
||||
"status": "A",
|
||||
"sha256": "6feaded4e28ea86e001a6751b4e3d960e8b7c31b9616ff9936b79297086e809b",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/actual-sam3_图像视频-提示词遮罩分割.json",
|
||||
"status": "A",
|
||||
"sha256": "1a542bce8a15a68b81649c6afa6f7c26fdf291a6ef83f7c8b15f280ae54a67df",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/audit-summary.json",
|
||||
"status": "A",
|
||||
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/backend-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "3b5ab7944d1bf02869617948982dedaf4885229dbfb5f6861383af1a8d134f14",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/backend-initial.txt",
|
||||
"status": "A",
|
||||
"sha256": "f9319656000e3f830f162c9567faeed013c8dda413e1699286aa0add410bc70f",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/backend-second.txt",
|
||||
"status": "A",
|
||||
"sha256": "0b8b2772ab76c6b211090b4f80535a2a2b6942074b53530f7a39736d48ab43ff",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/backend-third.txt",
|
||||
"status": "A",
|
||||
"sha256": "aa43a24c8b0e74686a97c751dec828aff4e67874b8273cdd9a0c2e691c5075c2",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/boundaries.json",
|
||||
"status": "A",
|
||||
"sha256": "a4752114d4497916974dfa59017412bec010055e26f454e8da4a27c34a0b63e4",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/bounded-investigation.json",
|
||||
"status": "A",
|
||||
"sha256": "303b53a0c41e9ad103354029262d21c2f231f4b2a6c15c335d60e3adee70b6d3",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/browser-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "cb43c04f37ff89423357f2be4c167d064c98c2116f91334ac69a2a44b34a0a5e",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/browser-initial.txt",
|
||||
"status": "A",
|
||||
"sha256": "cb43c04f37ff89423357f2be4c167d064c98c2116f91334ac69a2a44b34a0a5e",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/browser-results.json",
|
||||
"status": "A",
|
||||
"sha256": "f22a2dac9fa9b287f7dc3c661338e5f9c964aaa6527a73ee83f20f6067848b1d",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/build-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/build-initial.txt",
|
||||
"status": "A",
|
||||
"sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/build_definition.py",
|
||||
"status": "A",
|
||||
"sha256": "c6d304faa47e840147142eddac336b00acf2d4758d1972d2344c0a455d0a1cae",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/check_code.py",
|
||||
"status": "A",
|
||||
"sha256": "20a6f962e7b1361ac9f5e8c4cf83a8f7e6086a8568a550c3356df9fe0ecfc752",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/definition-0.json",
|
||||
"status": "A",
|
||||
"sha256": "fdf81b220422d18df3fe5be0506008e70f89832890d6d31f086b692ee2157dfd",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/delivery-summary.md",
|
||||
"status": "A",
|
||||
"sha256": "0793943c515f2306b2aff3fe4bcf0cbcc9ea511d089e9d546b4bc86e0ecb8008",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/development-notes.txt",
|
||||
"status": "A",
|
||||
"sha256": "581e761f1f865dbfac5fa8295d59463d1d29bf8bd4d38b22205badc5d2fdde3c",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/fetch-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "cabb966f850ecea9c96cd4d5b7399d383af48e169199c73cf904fa75e9213b3d",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/fetch.txt",
|
||||
"status": "A",
|
||||
"sha256": "3a0225432c26636d5e1ae732f2f8147a2066e9a3dc51295f3cb0cc878b21eab0",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/fetch_sources.py",
|
||||
"status": "A",
|
||||
"sha256": "5ea50f2cc8db07a6dfaa4c7626e7f27c636349b7d66671fd39544d595f50f6f2",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/fixed-source-index.json",
|
||||
"status": "A",
|
||||
"sha256": "b892321cf690b7c8c34041bb6c7d0dd1efdeb4607f535d98ac2596412cf255a0",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/format-second.txt",
|
||||
"status": "A",
|
||||
"sha256": "cbdb543094c76017142f70d7b276b79a38e8dcc7b4af47bad9dd46b33ba5e296",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/format-write.txt",
|
||||
"status": "A",
|
||||
"sha256": "1f2710bcb91f8781598fe0baa56619fd935f93ea3a1eb3434a930d3f41ac6894",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/frozen-resource-check.json",
|
||||
"status": "A",
|
||||
"sha256": "3971496d1b0ff0f29d23d210f6b9cf1c6554fd18f2366e8333d0b8e86d29eee1",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/import-protection.json",
|
||||
"status": "A",
|
||||
"sha256": "49c4d7a9c3d7447abe27c0b8d62a06d52e87cd4dddb14fa12f2d66b884168a8b",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/lint-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "82b3e6a6c090a57601d22943bd23fca9218d1031dbe5a7b754092f9a156b4f18",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/lint-initial.txt",
|
||||
"status": "A",
|
||||
"sha256": "650ff0fe5b8385d0b9ee193af6fe4b0c2a1ffaa4cfd5ffcd13ab591e70d7f112",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/lint-second.txt",
|
||||
"status": "A",
|
||||
"sha256": "a295d2231d7f15278fa12fa36b1e89b4e952944a94e316ce1a16ba3aba7b5919",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/lint-third.txt",
|
||||
"status": "A",
|
||||
"sha256": "7247b1945c027e28a1b2b84d39e8979e53881ba7fd3b0e4f59bcf3b0a414e126",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/npm-ci.txt",
|
||||
"status": "A",
|
||||
"sha256": "99aec36e74054441a1e4c2ee0d37b5e5cbe2e3ce61938cf82941f876a338315b",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/package-check.json",
|
||||
"status": "A",
|
||||
"sha256": "a8a0657ea224919b7cf4f75be70a2df94df4031f2f2ad69f10043dc022c9fbd6",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/pins.json",
|
||||
"status": "A",
|
||||
"sha256": "186e87cad083e8f6f18e1e49a83646820ec48bb15ee27eb54f209934491e492d",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/pr-before.json",
|
||||
"status": "A",
|
||||
"sha256": "d2f0efe64a7cac7531daa6b3636804f4498766522d4418bc1cafa358cc05c7f7",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/pr-link-table.json",
|
||||
"status": "A",
|
||||
"sha256": "3a4f43873a1c44156cc95ee9ecb591d8cc79d0e399f8ea58012384e8fb098abf",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/python-check-files.json",
|
||||
"status": "A",
|
||||
"sha256": "e0026f5e6d3b6c13b9d2e836465618f6fb2aba9d7e8c5c8004e2925fe90d826c",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/python-check-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "ba3ad488d916696d5b35456e7287d7d18bf5b5b11a65c8345c7fc47948bddea9",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/python-check.txt",
|
||||
"status": "A",
|
||||
"sha256": "3fd071c0af1e2947d34b9d56271c04b4802af58b4746d26aa592131ecbdca6ce",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/rebuild-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "5dcbc5d45f70f92b5e74c0eb325813ebab9947f8cf47b4825e6a1ac70484822c",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/rebuild.py",
|
||||
"status": "A",
|
||||
"sha256": "ed704b01f68b2717f6642ac6f8ab0687294cc771a1856ebc20484a7815dc53c7",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/rebuild.txt",
|
||||
"status": "A",
|
||||
"sha256": "5dcbc5d45f70f92b5e74c0eb325813ebab9947f8cf47b4825e6a1ac70484822c",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/recompute-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "7245c7c92acfaef16270c8f093492c652b0e2cc3f3a1c23e016b738df409559b",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/recompute-initial.txt",
|
||||
"status": "A",
|
||||
"sha256": "7245c7c92acfaef16270c8f093492c652b0e2cc3f3a1c23e016b738df409559b",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/recompute.py",
|
||||
"status": "A",
|
||||
"sha256": "4a46ed7b20440a6e9d07255661d5ac3f7b1d85a3dfa9d00282525f6ab3edeaf6",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/render_report.py",
|
||||
"status": "A",
|
||||
"sha256": "20b3665f36504fb43ca2295cec1d4bfd57dd2ef2461506db8dc728c723ee64f6",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/repeat-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/repeat.py",
|
||||
"status": "A",
|
||||
"sha256": "5ea621da2017d88526c20b303d3238eec66086faa7a6c3fc4337db7402495f83",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/repeat.txt",
|
||||
"status": "A",
|
||||
"sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/repeatability.json",
|
||||
"status": "A",
|
||||
"sha256": "75a0c68184e9b3f8ced0c90d252e2ed6778af86e62427e8ebf5390a6accf63b1",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/request-counts.txt",
|
||||
"status": "A",
|
||||
"sha256": "43efdfbd15ef170e86d6152fd3ab3e9c3d04ec31409e273a7ebfe48f01e00fcc",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/request_counts.py",
|
||||
"status": "A",
|
||||
"sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/review-delta.json",
|
||||
"status": "A",
|
||||
"sha256": "da9fe07de3faf78d927e7609e51b60a5d03d1f74f24f4ea992a1cf4de7577ad0",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/screenshots/1440-4-154:77-ckpt_name.png",
|
||||
"status": "A",
|
||||
"sha256": "1dc976ae686697ec8a61aa3f0b624ad67394d18bb32785d2d8e4eb8a22025bac",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/screenshots/1440-4-branch-flow.png",
|
||||
"status": "A",
|
||||
"sha256": "eb958409ff6b80e6864bd46c225b0ae2d68c3bba1020d60c6e031e5ea3803b16",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/screenshots/1440-4-default.png",
|
||||
"status": "A",
|
||||
"sha256": "42d0700fc90955784869d91467d35f07db1e1dc09425be746642ecc20cc1ddbd",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/screenshots/390-4-default.png",
|
||||
"status": "A",
|
||||
"sha256": "6c6b3291fe338aabcea47084afc4bbb0131f1dc48237a5fc79c3f4b9ee2c3d7e",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/screenshots/390-4-note.png",
|
||||
"status": "A",
|
||||
"sha256": "e0de7c05c0bebcc543f7f0aa3b7035fbb60ccecbc4074b17cfad5f4a3e4f30c5",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/server-request-accounting.json",
|
||||
"status": "A",
|
||||
"sha256": "f9d876e1c9b14d25c5dd16575965640c865149c0133e5393c29903744908a079",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/service-0.txt",
|
||||
"status": "A",
|
||||
"sha256": "5ba32cd179efb31049a8692a5d720a293746dc28940c31885a626b9bf7cefa53",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/service-1.txt",
|
||||
"status": "A",
|
||||
"sha256": "c63a9531b043ae66e70df349f331cb6fbdfc1367a237adc63ed089d624ee08e1",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/service-stop.json",
|
||||
"status": "A",
|
||||
"sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/source-check-final.txt",
|
||||
"status": "A",
|
||||
"sha256": "12eb7febc9c089660ee2723981edb86cc5ae211e351b163d9c4793fe1599e0b3",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/source-check.json",
|
||||
"status": "A",
|
||||
"sha256": "b8bbc23956c2ac3dcc38cb7e3e5a23750088d5108f1061f16506a276d445362d",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/source-check.txt",
|
||||
"status": "A",
|
||||
"sha256": "12eb7febc9c089660ee2723981edb86cc5ae211e351b163d9c4793fe1599e0b3",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/source-graphs.json",
|
||||
"status": "A",
|
||||
"sha256": "9b19dab71835b9775c13a31c2b6e07087e85ee33ddc6e738290f884708b11880",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/tested-files.json",
|
||||
"status": "A",
|
||||
"sha256": "03c88222002d5a28472015621f0e291cd5862e209e672f10428bbad501fdd351",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/validation-commands.txt",
|
||||
"status": "A",
|
||||
"sha256": "4b85cb2e073be9bcade8d21ca12871fb9c8c88664221ccb59597ce2c8d6ca67a",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/verify_sources.py",
|
||||
"status": "A",
|
||||
"sha256": "8fbf7cafa7b777a403bd4dfc14602957a613821752f55deb156f9f4ecf7334e3",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/visual-review.txt",
|
||||
"status": "A",
|
||||
"sha256": "e7a56dcd213184ff5cf38433e987ee21036baec621b14ab93738d50458a6da37",
|
||||
"purpose": "本轮可复现证据/日志/报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core-tag.json",
|
||||
"status": "A",
|
||||
"sha256": "daeac54ed95d852da08857ebd2d973272b5ea3a5d908a207a031db89c2551c8e",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core-tree.json",
|
||||
"status": "A",
|
||||
"sha256": "228997e489fd245e22b0f5abf7c1455373e198e87d59ca407ae3087c680e6611",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__LICENSE",
|
||||
"status": "A",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___input__video_types.py",
|
||||
"status": "A",
|
||||
"sha256": "6a4cdb3085ed8a4289e63168536e9a530c95aad94c7e2de1eddf8738af11f5a7",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___input_impl__video_types.py",
|
||||
"status": "A",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___io.py",
|
||||
"status": "A",
|
||||
"sha256": "7808265ecb4ce92af76ec1e100ff92fd9880fd7e60d113621dad6e602f6f9bd5",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"status": "A",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___util__video_types.py",
|
||||
"status": "A",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"status": "A",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_extras__nodes_mask.py",
|
||||
"status": "A",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"status": "A",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__folder_paths.py",
|
||||
"status": "A",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__nodes.py",
|
||||
"status": "A",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend-tag.json",
|
||||
"status": "A",
|
||||
"sha256": "49a14cfb9b47c37c9f68ef8a9f121f5d00ba89154e3e3fe573342a3a6dccf437",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend-tree.json",
|
||||
"status": "A",
|
||||
"sha256": "73b68ba9110c703d6621c49a2e9aa481feae7fd75967338695336f0f7a9c0117",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__LICENSE",
|
||||
"status": "A",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__graph__subgraph__legacyProxyWidgetNormalization.ts",
|
||||
"status": "A",
|
||||
"sha256": "4b49a05fd56513960c4e4b0fb623432b4743a8c2dff91ded1fb4984f59f3508a",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__graph__subgraph__resolvePromotedWidgetSource.ts",
|
||||
"status": "A",
|
||||
"sha256": "1adee97211025178f2a805e80e7331016aee16ac25daddd6dbd4d05db6d2b792",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__graph__subgraph__resolveSubgraphInputTarget.ts",
|
||||
"status": "A",
|
||||
"sha256": "cbd6d3d16cf94acc0ca3d333028a0b6b91f4c1a011fe5947345c4a31048ba6ed",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__schemas__promotionSchema.ts",
|
||||
"status": "A",
|
||||
"sha256": "9ac20e83b4edb612843b63fb9dd8545833ca839bd810cadbdfd36fd681d37208",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__extensions__core__noteNode.ts",
|
||||
"status": "A",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__extensions__core__widgetInputs.ts",
|
||||
"status": "A",
|
||||
"sha256": "e37bdb998b863483f51d07d31ae193dc2aa1657d4c450cc3b1640af51be5caea",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__lib__litegraph__src__subgraph__Subgraph.ts",
|
||||
"status": "A",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"status": "A",
|
||||
"sha256": "32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__scripts__app.ts",
|
||||
"status": "A",
|
||||
"sha256": "fbf38e4187868366276b2ece2b3c95ff9e0e8d4c9057e2f056b79dd554e8c65f",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__scripts__widgets.ts",
|
||||
"status": "A",
|
||||
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__stores__promotionStore.ts",
|
||||
"status": "A",
|
||||
"sha256": "9f81a45729996ab094907c300051f8a3ffdf92813faf7bf61c70849ff8e2eadb",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/sources.json",
|
||||
"status": "A",
|
||||
"sha256": "0c92357b0c0ead8f5c4e55a718e8e7d1a057d130952163a2bc3a3a91a7cb8902",
|
||||
"purpose": "准确版本文本或身份元数据(未执行)"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-sam3-document.py",
|
||||
"status": "A",
|
||||
"sha256": "00dff28b3aa5d9b207685d1015407fe77608cf1e96e6c5a211b2e5ffc4b693c9",
|
||||
"purpose": "专项验证"
|
||||
},
|
||||
{
|
||||
"path": "e2e/sam3-document.mjs",
|
||||
"status": "A",
|
||||
"sha256": "0734fcd54e26d9eab81380b8bd962f1f147908ba421e04a44041bb617bdf1143",
|
||||
"purpose": "专项验证"
|
||||
}
|
||||
],
|
||||
"note": "本清单自身最终SHA及完整提交差分见本卡final-head.json"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
"""Check changed authored Python only; upstream originals remain byte-for-byte."""
|
||||
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
FILES = [
|
||||
"calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"calliope-backend/tests/test_sam3_fixed_document.py",
|
||||
"e2e/run-sam3-document.py",
|
||||
] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))]
|
||||
|
||||
|
||||
def main():
|
||||
for command in [["check"], ["format", "--check"]]:
|
||||
subprocess.run(
|
||||
[
|
||||
"uv",
|
||||
"run",
|
||||
"--project",
|
||||
"calliope-backend",
|
||||
"--offline",
|
||||
"ruff",
|
||||
*command,
|
||||
"--config",
|
||||
"calliope-backend/pyproject.toml",
|
||||
*FILES,
|
||||
],
|
||||
cwd=ROOT,
|
||||
check=True,
|
||||
)
|
||||
subprocess.run(["node", "--check", "e2e/sam3-document.mjs"], cwd=ROOT, check=True)
|
||||
(OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n")
|
||||
print("PASS", len(FILES), "authored Python files and one JS syntax check")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,903 @@
|
||||
{
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"source_sha1": "c249489330431c46157a8e12df9b6484ee003ba6",
|
||||
"source_sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488",
|
||||
"canonical_sha256": "0dbeb9e7b57b11a86af676bb0aa3e355ec46c885c26d6736e8219c73f7ba26fd",
|
||||
"notice": "准确版本仅作参考;SAM3实现未找到、promoted/模型兼容/效果未知;视频静音,未实跑、转换保持关闭。",
|
||||
"user_overview": "这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。",
|
||||
"versions": [
|
||||
"core0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66;frontend1.42.15→4705b3186ecd621151daf95dd702009b266bd819;tag/完整树/必要源码及许可固定。",
|
||||
"UE7.8仅源声明;Muter无提供方/版本;准确核心有界未找到SAM3_Detect实现,不跨版本补缺。"
|
||||
],
|
||||
"counts": {
|
||||
"saved_fields": 18,
|
||||
"source_nodes": 15,
|
||||
"definition_nodes": 8,
|
||||
"physical_edges": 14,
|
||||
"definition_edges": 31,
|
||||
"source_notes": 3,
|
||||
"history_objects": 0,
|
||||
"linked_saved_fields": 1,
|
||||
"frontend_only": 2,
|
||||
"final_scalars": 0,
|
||||
"final_prompt_constructed": false
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"field": "file",
|
||||
"label": "视频文件引用(静音支路)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知",
|
||||
"effect": "保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。",
|
||||
"evidence": [
|
||||
9,
|
||||
10
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "132",
|
||||
"definition_node_id": "132",
|
||||
"class_type": "LoadVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"value": "drinking_unicorn.mp4",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "upload_state",
|
||||
"label": "视频上传控件保存状态",
|
||||
"type": "前端附加状态",
|
||||
"schema_default": "无服务端参数默认",
|
||||
"unit": "未知",
|
||||
"limits": "保存image;不是LoadVideo第二个服务端参数",
|
||||
"effect": "准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。",
|
||||
"evidence": [
|
||||
9,
|
||||
17
|
||||
],
|
||||
"role": "frontend_state_unknown",
|
||||
"node_id": "132",
|
||||
"definition_node_id": "132",
|
||||
"class_type": "LoadVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/1/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "fps",
|
||||
"label": "帧率保存值(被物理外线覆盖)",
|
||||
"type": "FLOAT",
|
||||
"schema_default": "30.0",
|
||||
"unit": "帧/秒",
|
||||
"limits": "schema为1~120,step1;源外线值未知",
|
||||
"effect": "保存30,但134.fps由133.fps经物理边314接入;133来自132的视频,实际FPS未知,不用保存30推算时长。133.audio也接134,137的audio/fps出口均未接。",
|
||||
"evidence": [
|
||||
9,
|
||||
11
|
||||
],
|
||||
"role": "linked_saved_value",
|
||||
"node_id": "134",
|
||||
"definition_node_id": "134",
|
||||
"class_type": "CreateVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"value": 30,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "filename_prefix",
|
||||
"label": "视频文件名前缀(静音)",
|
||||
"type": "STRING",
|
||||
"schema_default": "video/ComfyUI",
|
||||
"unit": "字符串/枚举",
|
||||
"limits": "字符串,源码无长度上限;目录与权限未知",
|
||||
"effect": "保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。",
|
||||
"evidence": [
|
||||
9,
|
||||
11,
|
||||
15
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "135",
|
||||
"definition_node_id": "135",
|
||||
"class_type": "SaveVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/4/widgets_values/0",
|
||||
"value": "video/ComfyUI",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "format",
|
||||
"label": "视频容器自动选择(静音)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "auto",
|
||||
"unit": "字符串/枚举",
|
||||
"limits": "auto/mp4;auto扩展名mp4,目标支持未知",
|
||||
"effect": "保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。",
|
||||
"evidence": [
|
||||
9,
|
||||
11,
|
||||
15
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "135",
|
||||
"definition_node_id": "135",
|
||||
"class_type": "SaveVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/4/widgets_values/1",
|
||||
"value": "auto",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "codec",
|
||||
"label": "视频编码器自动选择(静音)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "auto",
|
||||
"unit": "字符串/枚举",
|
||||
"limits": "auto/h264;实际编码器与Alpha保留未知",
|
||||
"effect": "保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。",
|
||||
"evidence": [
|
||||
9,
|
||||
11,
|
||||
15
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "135",
|
||||
"definition_node_id": "135",
|
||||
"class_type": "SaveVideo",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/4/widgets_values/2",
|
||||
"value": "auto",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "image",
|
||||
"label": "活动图片文件引用",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "input图片动态成员,未核目录或文件存在",
|
||||
"effect": "保存微信图片文件名仅作源引用。152.IMAGE一支接154.image,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。",
|
||||
"evidence": [
|
||||
2
|
||||
],
|
||||
"role": "scalar",
|
||||
"node_id": "152",
|
||||
"definition_node_id": "152",
|
||||
"class_type": "LoadImage",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/13/widgets_values/0",
|
||||
"value": "微信图片_20260425191936_248_41.jpg",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "upload_state",
|
||||
"label": "图片上传控件保存状态",
|
||||
"type": "前端附加状态",
|
||||
"schema_default": "无服务端参数默认",
|
||||
"unit": "未知",
|
||||
"limits": "保存image,仅前端附加状态",
|
||||
"effect": "LoadImage服务端只定义image;第二位置不是模型参数或后台输入。未读取/上传该图片,宿主/UE恢复顺序未知。",
|
||||
"evidence": [
|
||||
2,
|
||||
17
|
||||
],
|
||||
"role": "frontend_state_unknown",
|
||||
"node_id": "152",
|
||||
"definition_node_id": "152",
|
||||
"class_type": "LoadImage",
|
||||
"scope": "root",
|
||||
"pointer": "/nodes/13/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;根保存态。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "threshold",
|
||||
"label": "内部检测阈值保存位置",
|
||||
"type": "FLOAT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "137:101",
|
||||
"definition_node_id": "101",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/0",
|
||||
"value": 0.5,
|
||||
"json_type": "float",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "refine_iterations",
|
||||
"label": "内部细化次数保存位置",
|
||||
"type": "INT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知,次数仅字段名线索",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "137:101",
|
||||
"definition_node_id": "101",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/1",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "individual_masks",
|
||||
"label": "内部独立遮罩开关保存位置",
|
||||
"type": "BOOLEAN(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "布尔保存态",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "137:101",
|
||||
"definition_node_id": "101",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/2",
|
||||
"value": false,
|
||||
"json_type": "bool",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "ckpt_name",
|
||||
"label": "内部检查点引用(与推荐名冲突)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态checkpoints列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "模型/CLIP家族及实际目录、动态列表与SAM3支持未知",
|
||||
"effect": "两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。",
|
||||
"evidence": [
|
||||
1,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "137:102",
|
||||
"definition_node_id": "102",
|
||||
"class_type": "CheckpointLoaderSimple",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/1/widgets_values/0",
|
||||
"value": "sam3.1_multiplex.pt",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "text",
|
||||
"label": "内部潜在分割文本",
|
||||
"type": "STRING",
|
||||
"schema_default": "schema未显式默认,不能由现值当默认",
|
||||
"unit": "文本",
|
||||
"limits": "准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证",
|
||||
"effect": "视频定义内部保存unicorn,图片定义内部保存clothes,各自经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。",
|
||||
"evidence": [
|
||||
0,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "137:100",
|
||||
"definition_node_id": "100",
|
||||
"class_type": "CLIPTextEncode",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/4/widgets_values/0",
|
||||
"value": "unicorn",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=2;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "text",
|
||||
"label": "内部潜在分割文本",
|
||||
"type": "STRING",
|
||||
"schema_default": "schema未显式默认,不能由现值当默认",
|
||||
"unit": "文本",
|
||||
"limits": "准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证",
|
||||
"effect": "视频定义内部保存unicorn,图片定义内部保存clothes,各自经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。",
|
||||
"evidence": [
|
||||
0,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "154:78",
|
||||
"definition_node_id": "78",
|
||||
"class_type": "CLIPTextEncode",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/0/widgets_values/0",
|
||||
"value": "clothes",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "threshold",
|
||||
"label": "内部检测阈值保存位置",
|
||||
"type": "FLOAT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "154:75",
|
||||
"definition_node_id": "75",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/0",
|
||||
"value": 0.5,
|
||||
"json_type": "float",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "refine_iterations",
|
||||
"label": "内部细化次数保存位置",
|
||||
"type": "INT(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "未知,次数仅字段名线索",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "154:75",
|
||||
"definition_node_id": "75",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/1",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "individual_masks",
|
||||
"label": "内部独立遮罩开关保存位置",
|
||||
"type": "BOOLEAN(仅源口声明)",
|
||||
"schema_default": "未知:准确核心有界注册/模块未找到该实现",
|
||||
"unit": "布尔保存态",
|
||||
"limits": "未知:没有准确SAM3 schema/实现依据,不跨版本补齐",
|
||||
"effect": "内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。两个作用域分别保留;宿主各5个proxyWidgets、widgets_values=[],定义widgets=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。",
|
||||
"evidence": [
|
||||
12,
|
||||
13,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_unknown",
|
||||
"node_id": "154:75",
|
||||
"definition_node_id": "75",
|
||||
"class_type": "SAM3_Detect",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/2",
|
||||
"value": false,
|
||||
"json_type": "bool",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
},
|
||||
{
|
||||
"field": "ckpt_name",
|
||||
"label": "内部检查点引用(与推荐名冲突)",
|
||||
"type": "COMBO",
|
||||
"schema_default": "动态checkpoints列表,无固定默认",
|
||||
"unit": "文件引用",
|
||||
"limits": "模型/CLIP家族及实际目录、动态列表与SAM3支持未知",
|
||||
"effect": "两个定义各保存sam3.1_multiplex.pt,属性和源注释推荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。",
|
||||
"evidence": [
|
||||
1,
|
||||
14
|
||||
],
|
||||
"role": "internal_saved_potential",
|
||||
"node_id": "154:77",
|
||||
"definition_node_id": "77",
|
||||
"class_type": "CheckpointLoaderSimple",
|
||||
"scope": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"pointer": "/definitions/subgraphs/1/nodes/2/widgets_values/0",
|
||||
"value": "sam3.1_multiplex.pt",
|
||||
"json_type": "str",
|
||||
"execution_note": "原mode=0;子图潜在值;边界与宿主空值分开,promoted未知。源声明版本不是安装或效果证明;未构造prompt。"
|
||||
}
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
59,
|
||||
81
|
||||
],
|
||||
"claim": "文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
588,
|
||||
610
|
||||
],
|
||||
"claim": "动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
1700,
|
||||
1779
|
||||
],
|
||||
"claim": "LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
1627,
|
||||
1699
|
||||
],
|
||||
"claim": "PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
|
||||
"lines": [
|
||||
188,
|
||||
226
|
||||
],
|
||||
"claim": "Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
|
||||
"lines": [
|
||||
1,
|
||||
30
|
||||
],
|
||||
"claim": "遮罩尺寸适配辅助函数及插值;未执行张量运算"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_mask.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_mask.py",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
|
||||
"git_blob_sha1": "c446025974bcb83deea6abf11e870015f45da960",
|
||||
"lines": [
|
||||
403,
|
||||
445
|
||||
],
|
||||
"claim": "MaskPreview注册并调用UI.PreviewMask"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"lines": [
|
||||
389,
|
||||
412
|
||||
],
|
||||
"claim": "PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"lines": [
|
||||
88,
|
||||
168
|
||||
],
|
||||
"claim": "ImageSaveHelper输出PNG及目录创建条件"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
|
||||
"lines": [
|
||||
68,
|
||||
205
|
||||
],
|
||||
"claim": "核心视频四节点的准确schema、fps外线、读取与保存调用"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
|
||||
"lines": [
|
||||
259,
|
||||
272
|
||||
],
|
||||
"claim": "视频扩展准确注册列表"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_util/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___util__video_types.py",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02",
|
||||
"git_blob_sha1": "fd3b5a510df4d1bd0b65141bd3d27953ec9cfc9a",
|
||||
"lines": [
|
||||
1,
|
||||
52
|
||||
],
|
||||
"claim": "视频组件和容器/编码器枚举"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
2016,
|
||||
2111
|
||||
],
|
||||
"claim": "核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
2330,
|
||||
2440
|
||||
],
|
||||
"claim": "扩展模块加载范围,未发现SAM3命名模块,非目标安装事实"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"sha256": "32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2",
|
||||
"git_blob_sha1": "3fc76441cc0fa19f8b0b07c2c6c2a606c3629b96",
|
||||
"lines": [
|
||||
993,
|
||||
1123
|
||||
],
|
||||
"claim": "准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_input_impl/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___input_impl__video_types.py",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918",
|
||||
"git_blob_sha1": "1b4993aa74c0fe91b8139aa60751a91c4f298cc9",
|
||||
"lines": [
|
||||
382,
|
||||
459
|
||||
],
|
||||
"claim": "VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/extensions/core/noteNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/extensions/core/noteNode.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__extensions__core__noteNode.ts",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2",
|
||||
"git_blob_sha1": "7e0ec56a6fb83f81c754efd30eb597b45bd5b072",
|
||||
"lines": [
|
||||
7,
|
||||
83
|
||||
],
|
||||
"claim": "Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
|
||||
"git_blob_sha1": "517e6f0e836f01df6c2ab08f3fe71d096d54aad6",
|
||||
"lines": [
|
||||
285,
|
||||
307
|
||||
],
|
||||
"claim": "准确前端控件模块;上传附加状态不是服务端参数"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
|
||||
"local_file": "../sam3-reference/core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确完整提交许可原文"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/LICENSE",
|
||||
"local_file": "../sam3-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确完整提交许可原文"
|
||||
}
|
||||
],
|
||||
"comments": [
|
||||
{
|
||||
"node_id": "112",
|
||||
"pointer": "/nodes/7/widgets_values",
|
||||
"scope": "root",
|
||||
"text": "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links (for Local Users)\n\n**checkpoints**\n\n- [sam3.1_multiplex_fp16.safetensors](https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 checkpoints/\n│ └── sam3.1_multiplex_fp16.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": "完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。"
|
||||
},
|
||||
{
|
||||
"node_id": "113",
|
||||
"pointer": "/nodes/8/widgets_values",
|
||||
"scope": "root",
|
||||
"text": "Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels\n\n```\neye:2, window panels:4\n```\n\n\n\n",
|
||||
"meaning": "完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。"
|
||||
},
|
||||
{
|
||||
"node_id": "0925a49b-2fa2-44e9-8afc-aa70380d84e6/105",
|
||||
"pointer": "/definitions/subgraphs/0/nodes/3/widgets_values",
|
||||
"scope": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"text": "Max tokens for this model is only 32, to separately prompt multiple subjects you can separate prompts with comma, and set the max amount of objects detected for each prompt with :N\n\nFor example above test prompt finds 2 cakes, one apron, 4 window panels",
|
||||
"meaning": "完整源注释,只说明作者写下的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。"
|
||||
}
|
||||
],
|
||||
"flow": [
|
||||
"这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。",
|
||||
"活动图片:152.IMAGE→154.image和153.image;154.masks→153.alpha与155.mask,153.IMAGE→151.images。152.MASK未接;154.bboxes出口为空,bboxes/positive_coords/negative_coords宿主输入都未接,不猜坐标格式或分割方向。",
|
||||
"准确VideoFromComponents保存仅接受auto/mp4与auto/h264,固定路径构造rgb24并转yuv420p;Join输出四通道,不声称透明视频能保存或保留Alpha,未实测后果。",
|
||||
"准确JoinImageWithAlpha先resize_mask再1-alpha;批次取min,拼原图前三RGB通道。这里只说明该准确核心运算,不由此推断SAM3的MASK哪边代表前景、边缘效果或最终透明区域。PreviewImage继承SaveImage写temp PNG;MaskPreview经UI.PreviewMask→RGB→temp PNG。无正式SaveImage节点,不称永久图片保存或保证无磁盘写入。",
|
||||
"视频组131/132/133/134/135/137/136均mode2静音。132.VIDEO同时到133.video、137.video;133.images→131.image,137.masks→131.alpha及136.mask,131.IMAGE→134.images,133.audio/fps→134→135。134保存30被物理边314的133.fps覆盖,实际FPS未知;137自己的audio/fps出口未接,不混同133输出。不模拟Muter或静音切换。",
|
||||
"两个子图UUID分别0925a49b-2fa2-44e9-8afc-aa70380d84e6与48668c69-3b7f-4f0a-9689-2590a4106289。137/154各widgets_values=[]、proxyWidgets各5绑定,定义widgets=[]。内部text为unicorn/clothes、threshold0.5/refine_iterations2/individual_masksfalse、ckpt_name均sam3.1_multiplex.pt。所有具名边界、数组与原指针分开保留,不把负ID边界当实体、不推算最终promoted值。视频内部5节点mode2,图片内部3节点mode0。",
|
||||
"两个Checkpoint的属性/源注释推荐sam3.1_multiplex_fp16.safetensors,但保存sam3.1_multiplex.pt;不替换、不承诺兼容、不下载权重。两CLIPTextEncode从各自Checkpoint.CLIP取值,VAE未接。动态模型列表、SAM3模型/CLIP家族和真实目录未知。",
|
||||
"准确core0.19.3完整树没有SAM3命名模块;有界核对nodes.py注册与扩展模块范围,未找到SAM3_Detect准确实现。不能把源cnr_id/ver当安装事实、不能借新版SAM3解释threshold/refine_iterations/individual_masks、bboxes与坐标、默认/范围/单位或模型支持。具体调查集合见bounded-investigation.json与sources.json,不无限搜索历史。",
|
||||
"Muter150原缺widgets_values、提供方和版本,UE7.8及扩展恢复顺序未知。准确前端源码仅固定宿主configure/proxyWidgets参考,未加载宿主/UE、模型或插件,不求值promoted。两个MarkdownNote和内部Note全文保留,32 tokens/逗号/:N仅源注释,不能当运行协议或下载授权。",
|
||||
"素材文件、视频FPS、编码器、动态模型列表、目录权限、目标安装/UE和效果未核实;不请求图片/视频/注释URL,不索取机器窗口。155完整定稿0/必要实跑0/新增转换0,保持停用未检查与原资格。",
|
||||
"作用域root:15实体节点/14物理或含边界记录;根边与定义边分别保留。",
|
||||
"原边 root [309, 133, 0, 131, 0, \"IMAGE\"]",
|
||||
"原边 root [310, 137, 0, 131, 1, \"MASK\"]",
|
||||
"原边 root [311, 132, 0, 133, 0, \"VIDEO\"]",
|
||||
"原边 root [312, 131, 0, 134, 0, \"IMAGE\"]",
|
||||
"原边 root [313, 133, 1, 134, 1, \"AUDIO\"]",
|
||||
"原边 root [314, 133, 2, 134, 2, \"FLOAT\"]",
|
||||
"原边 root [315, 134, 0, 135, 0, \"VIDEO\"]",
|
||||
"原边 root [316, 137, 0, 136, 0, \"MASK\"]",
|
||||
"原边 root [317, 132, 0, 137, 0, \"VIDEO\"]",
|
||||
"原边 root [328, 153, 0, 151, 0, \"IMAGE\"]",
|
||||
"原边 root [329, 152, 0, 153, 0, \"IMAGE\"]",
|
||||
"原边 root [330, 154, 0, 153, 1, \"MASK\"]",
|
||||
"原边 root [331, 152, 0, 154, 0, \"IMAGE\"]",
|
||||
"原边 root [332, 154, 0, 155, 0, \"MASK\"]",
|
||||
"原节点 root {\"id\": 131, \"type\": \"JoinImageWithAlpha\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 309}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 310}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [312]}], \"properties\": {\"Node name for S&R\": \"JoinImageWithAlpha\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 132, \"type\": \"LoadVideo\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"文件\", \"name\": \"file\", \"type\": \"COMBO\", \"widget\": {\"name\": \"file\"}, \"link\": null}, {\"localized_name\": \"选择要上传的文件\", \"name\": \"upload\", \"type\": \"IMAGEUPLOAD\", \"widget\": {\"name\": \"upload\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"视频\", \"name\": \"VIDEO\", \"type\": \"VIDEO\", \"links\": [311, 317]}], \"properties\": {\"Node name for S&R\": \"LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 133, \"type\": \"GetVideoComponents\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"视频\", \"name\": \"video\", \"type\": \"VIDEO\", \"link\": 311}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"links\": [309]}, {\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"links\": [313]}, {\"localized_name\": \"帧率\", \"name\": \"fps\", \"type\": \"FLOAT\", \"links\": [314]}], \"properties\": {\"Node name for S&R\": \"GetVideoComponents\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 134, \"type\": \"CreateVideo\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 312}, {\"localized_name\": \"音频\", \"name\": \"audio\", \"shape\": 7, \"type\": \"AUDIO\", \"link\": 313}, {\"localized_name\": \"帧率\", \"name\": \"fps\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"fps\"}, \"link\": 314}], \"outputs\": [{\"localized_name\": \"视频\", \"name\": \"VIDEO\", \"type\": \"VIDEO\", \"links\": [315]}], \"properties\": {\"Node name for S&R\": \"CreateVideo\", \"ue_properties\": {\"widget_ue_connectable\": {\"fps\": true}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 135, \"type\": \"SaveVideo\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"视频\", \"name\": \"video\", \"type\": \"VIDEO\", \"link\": 315}, {\"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"localized_name\": \"格式\", \"name\": \"format\", \"type\": \"COMBO\", \"widget\": {\"name\": \"format\"}, \"link\": null}, {\"localized_name\": \"编码器\", \"name\": \"codec\", \"type\": \"COMBO\", \"widget\": {\"name\": \"codec\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"Node name for S&R\": \"SaveVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 137, \"type\": \"0925a49b-2fa2-44e9-8afc-aa70380d84e6\", \"mode\": 2, \"inputs\": [{\"name\": \"video\", \"type\": \"VIDEO\", \"link\": 317}, {\"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": null}, {\"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"link\": null}, {\"name\": \"positive_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"negative_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": null}, {\"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": null}, {\"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": null}, {\"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [310, 316]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": []}, {\"name\": \"audio\", \"type\": \"AUDIO\", \"links\": null}, {\"name\": \"fps\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"proxyWidgets\": [[\"100\", \"text\"], [\"101\", \"threshold\"], [\"101\", \"refine_iterations\"], [\"101\", \"individual_masks\"], [\"102\", \"ckpt_name\"]], \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 136, \"type\": \"MaskPreview\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 316}], \"outputs\": [], \"properties\": {\"Node name for S&R\": \"MaskPreview\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 root {\"id\": 112, \"type\": \"MarkdownNote\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 113, \"type\": \"MarkdownNote\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 root {\"id\": 150, \"type\": \"Fast Groups Muter (rgthree)\", \"mode\": 0, \"inputs\": [], \"outputs\": [{\"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}], \"properties\": {\"matchColors\": \"\", \"matchTitle\": \"\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.8\"}}}",
|
||||
"原节点 root {\"id\": 151, \"type\": \"PreviewImage\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 328}], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"PreviewImage\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 root {\"id\": 153, \"type\": \"JoinImageWithAlpha\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 329}, {\"localized_name\": \"阿尔法\", \"name\": \"alpha\", \"type\": \"MASK\", \"link\": 330}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [328]}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"JoinImageWithAlpha\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 root {\"id\": 155, \"type\": \"MaskPreview\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"遮罩\", \"name\": \"mask\", \"type\": \"MASK\", \"link\": 332}], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"MaskPreview\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 root {\"id\": 152, \"type\": \"LoadImage\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"图像\", \"name\": \"image\", \"type\": \"COMBO\", \"widget\": {\"name\": \"image\"}, \"link\": null}, {\"localized_name\": \"选择文件上传\", \"name\": \"upload\", \"type\": \"IMAGEUPLOAD\", \"widget\": {\"name\": \"upload\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [329, 331]}, {\"localized_name\": \"遮罩\", \"name\": \"MASK\", \"type\": \"MASK\", \"links\": null}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"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\"}}",
|
||||
"原节点 root {\"id\": 154, \"type\": \"48668c69-3b7f-4f0a-9689-2590a4106289\", \"mode\": 0, \"inputs\": [{\"label\": \"image\", \"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 331}, {\"label\": \"object\", \"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": null}, {\"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"link\": null}, {\"name\": \"positive_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"negative_coords\", \"type\": \"STRING\", \"link\": null}, {\"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": null}, {\"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": null}, {\"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": null}, {\"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [330, 332]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": []}], \"properties\": {\"proxyWidgets\": [[\"78\", \"text\"], [\"75\", \"threshold\"], [\"75\", \"refine_iterations\"], [\"75\", \"individual_masks\"], [\"77\", \"ckpt_name\"]], \"ue_properties\": {\"widget_ue_connectable\": {\"text\": true}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"作用域0925a49b-2fa2-44e9-8afc-aa70380d84e6:5实体节点/17物理或含边界记录;根边与定义边分别保留。",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 237, \"origin_id\": 102, \"origin_slot\": 0, \"target_id\": 101, \"target_slot\": 0, \"type\": \"MODEL\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 200, \"origin_id\": 100, \"origin_slot\": 0, \"target_id\": 101, \"target_slot\": 2, \"type\": \"CONDITIONING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 240, \"origin_id\": 102, \"origin_slot\": 1, \"target_id\": 100, \"target_slot\": 0, \"type\": \"CLIP\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 231, \"origin_id\": 101, \"origin_slot\": 0, \"target_id\": -20, \"target_slot\": 0, \"type\": \"MASK\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 232, \"origin_id\": 101, \"origin_slot\": 1, \"target_id\": -20, \"target_slot\": 1, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 252, \"origin_id\": -10, \"origin_slot\": 0, \"target_id\": 104, \"target_slot\": 0, \"type\": \"VIDEO\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 253, \"origin_id\": 104, \"origin_slot\": 0, \"target_id\": 101, \"target_slot\": 1, \"type\": \"IMAGE\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 254, \"origin_id\": -10, \"origin_slot\": 1, \"target_id\": 100, \"target_slot\": 1, \"type\": \"STRING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 255, \"origin_id\": -10, \"origin_slot\": 2, \"target_id\": 101, \"target_slot\": 3, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 256, \"origin_id\": -10, \"origin_slot\": 3, \"target_id\": 101, \"target_slot\": 4, \"type\": \"STRING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 257, \"origin_id\": -10, \"origin_slot\": 4, \"target_id\": 101, \"target_slot\": 5, \"type\": \"STRING\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 259, \"origin_id\": 104, \"origin_slot\": 1, \"target_id\": -20, \"target_slot\": 2, \"type\": \"AUDIO\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 260, \"origin_id\": 104, \"origin_slot\": 2, \"target_id\": -20, \"target_slot\": 3, \"type\": \"FLOAT\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 261, \"origin_id\": -10, \"origin_slot\": 5, \"target_id\": 101, \"target_slot\": 6, \"type\": \"FLOAT\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 262, \"origin_id\": -10, \"origin_slot\": 6, \"target_id\": 101, \"target_slot\": 7, \"type\": \"INT\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 263, \"origin_id\": -10, \"origin_slot\": 7, \"target_id\": 101, \"target_slot\": 8, \"type\": \"BOOLEAN\"}",
|
||||
"原边 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 273, \"origin_id\": -10, \"origin_slot\": 8, \"target_id\": 102, \"target_slot\": 0, \"type\": \"COMBO\"}",
|
||||
"具名边界 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"inputs\": [{\"id\": \"680ffd88-32fe-48be-88d6-91ea44d5eaee\", \"name\": \"video\", \"type\": \"VIDEO\", \"linkIds\": [252], \"pos\": [-2143.630859375, -3430]}, {\"id\": \"ceaf249c-32d7-4624-8bf6-e590e347ed90\", \"name\": \"text\", \"type\": \"STRING\", \"linkIds\": [254], \"pos\": [-2143.630859375, -3410]}, {\"id\": \"1ffbff36-da0c-4854-8cb4-88ad31e64f99\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [255], \"pos\": [-2143.630859375, -3390]}, {\"id\": \"67b7f4c7-cec0-4e00-b154-23cc1abf880e\", \"name\": \"positive_coords\", \"type\": \"STRING\", \"linkIds\": [256], \"pos\": [-2143.630859375, -3370]}, {\"id\": \"b090a498-2bde-46b9-9554-18501401d687\", \"name\": \"negative_coords\", \"type\": \"STRING\", \"linkIds\": [257], \"pos\": [-2143.630859375, -3350]}, {\"id\": \"1a76dfcf-ce95-46af-bba5-c42160c683dd\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"linkIds\": [261], \"pos\": [-2143.630859375, -3330]}, {\"id\": \"999523fa-c476-4c53-80c3-0a2f554d18ab\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"linkIds\": [262], \"pos\": [-2143.630859375, -3310]}, {\"id\": \"d2371011-7fe5-4a39-b0c1-df2e0bbd6ece\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"linkIds\": [263], \"pos\": [-2143.630859375, -3290]}, {\"id\": \"675a8b37-17db-48d1-853c-2fe5d6a74582\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"linkIds\": [273], \"pos\": [-2143.630859375, -3270]}], \"outputs\": [{\"id\": \"ff50da09-1e59-4a58-9b7f-be1a00aa5913\", \"name\": \"masks\", \"type\": \"MASK\", \"linkIds\": [231], \"localized_name\": \"masks\", \"pos\": [-1030, -3490]}, {\"id\": \"8f622e40-8528-4078-b7d3-147e9f872194\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [232], \"localized_name\": \"bboxes\", \"pos\": [-1030, -3470]}, {\"id\": \"6c9924ec-f0fa-4509-83ea-8f97f5889bcc\", \"name\": \"audio\", \"type\": \"AUDIO\", \"linkIds\": [259], \"pos\": [-1030, -3450]}, {\"id\": \"82c1cddc-ab11-44eb-9e2f-1a5c7ea5645b\", \"name\": \"fps\", \"type\": \"FLOAT\", \"linkIds\": [260], \"pos\": [-1030, -3430]}], \"widgets\": []}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 101, \"type\": \"SAM3_Detect\", \"mode\": 2, \"inputs\": [{\"label\": \"model\", \"localized_name\": \"model\", \"name\": \"model\", \"type\": \"MODEL\", \"link\": 237}, {\"label\": \"image\", \"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 253}, {\"label\": \"conditioning\", \"localized_name\": \"conditioning\", \"name\": \"conditioning\", \"shape\": 7, \"type\": \"CONDITIONING\", \"link\": 200}, {\"label\": \"bboxes\", \"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"shape\": 7, \"type\": \"BOUNDING_BOX\", \"link\": 255}, {\"label\": \"positive_coords\", \"localized_name\": \"positive_coords\", \"name\": \"positive_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 256}, {\"label\": \"negative_coords\", \"localized_name\": \"negative_coords\", \"name\": \"negative_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 257}, {\"localized_name\": \"threshold\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": 261}, {\"localized_name\": \"refine_iterations\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": 262}, {\"localized_name\": \"individual_masks\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": 263}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [231]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": [232]}], \"properties\": {\"Node name for S&R\": \"SAM3_Detect\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 102, \"type\": \"CheckpointLoaderSimple\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"Checkpoint名称\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": 273}], \"outputs\": [{\"localized_name\": \"模型\", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [237]}, {\"localized_name\": \"CLIP\", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [240]}, {\"localized_name\": \"VAE\", \"name\": \"VAE\", \"type\": \"VAE\", \"links\": null}], \"properties\": {\"Node name for S&R\": \"CheckpointLoaderSimple\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"models\": [{\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"directory\": \"checkpoints\"}]}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 104, \"type\": \"GetVideoComponents\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"视频\", \"name\": \"video\", \"type\": \"VIDEO\", \"link\": 252}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"links\": [253]}, {\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"links\": [259]}, {\"localized_name\": \"帧率\", \"name\": \"fps\", \"type\": \"FLOAT\", \"links\": [260]}], \"properties\": {\"Node name for S&R\": \"GetVideoComponents\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 105, \"type\": \"Note\", \"mode\": 2, \"inputs\": [], \"outputs\": [], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}}}",
|
||||
"原节点 0925a49b-2fa2-44e9-8afc-aa70380d84e6 {\"id\": 100, \"type\": \"CLIPTextEncode\", \"mode\": 2, \"inputs\": [{\"localized_name\": \"clip\", \"name\": \"clip\", \"type\": \"CLIP\", \"link\": 240}, {\"localized_name\": \"文本\", \"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": 254}], \"outputs\": [{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"links\": [200]}], \"properties\": {\"Node name for S&R\": \"CLIPTextEncode\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65}}",
|
||||
"作用域48668c69-3b7f-4f0a-9689-2590a4106289:3实体节点/14物理或含边界记录;根边与定义边分别保留。",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 237, \"origin_id\": 77, \"origin_slot\": 0, \"target_id\": 75, \"target_slot\": 0, \"type\": \"MODEL\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 200, \"origin_id\": 78, \"origin_slot\": 0, \"target_id\": 75, \"target_slot\": 2, \"type\": \"CONDITIONING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 240, \"origin_id\": 77, \"origin_slot\": 1, \"target_id\": 78, \"target_slot\": 0, \"type\": \"CLIP\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 231, \"origin_id\": 75, \"origin_slot\": 0, \"target_id\": -20, \"target_slot\": 0, \"type\": \"MASK\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 232, \"origin_id\": 75, \"origin_slot\": 1, \"target_id\": -20, \"target_slot\": 1, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 264, \"origin_id\": -10, \"origin_slot\": 0, \"target_id\": 75, \"target_slot\": 1, \"type\": \"IMAGE\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 265, \"origin_id\": -10, \"origin_slot\": 1, \"target_id\": 78, \"target_slot\": 1, \"type\": \"STRING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 266, \"origin_id\": -10, \"origin_slot\": 2, \"target_id\": 75, \"target_slot\": 3, \"type\": \"BOUNDING_BOX\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 267, \"origin_id\": -10, \"origin_slot\": 3, \"target_id\": 75, \"target_slot\": 4, \"type\": \"STRING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 268, \"origin_id\": -10, \"origin_slot\": 4, \"target_id\": 75, \"target_slot\": 5, \"type\": \"STRING\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 269, \"origin_id\": -10, \"origin_slot\": 5, \"target_id\": 75, \"target_slot\": 6, \"type\": \"FLOAT\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 270, \"origin_id\": -10, \"origin_slot\": 6, \"target_id\": 75, \"target_slot\": 7, \"type\": \"INT\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 271, \"origin_id\": -10, \"origin_slot\": 7, \"target_id\": 75, \"target_slot\": 8, \"type\": \"BOOLEAN\"}",
|
||||
"原边 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 272, \"origin_id\": -10, \"origin_slot\": 8, \"target_id\": 77, \"target_slot\": 0, \"type\": \"COMBO\"}",
|
||||
"具名边界 48668c69-3b7f-4f0a-9689-2590a4106289 {\"inputs\": [{\"id\": \"a6e75fa2-162a-4af0-a2fd-1e9c899a5ab6\", \"name\": \"image\", \"type\": \"IMAGE\", \"linkIds\": [264], \"localized_name\": \"image\", \"label\": \"image\", \"pos\": [-2143.630859375, -3430]}, {\"id\": \"3cefd304-7631-4ff6-a5a0-5a0ffb120745\", \"name\": \"text\", \"type\": \"STRING\", \"linkIds\": [265], \"label\": \"object\", \"pos\": [-2143.630859375, -3410]}, {\"id\": \"1aec91c5-d8d2-441c-928c-49c14e7e80ed\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [266], \"pos\": [-2143.630859375, -3390]}, {\"id\": \"1ec7ce1a-8257-4719-8a81-60ebc8a98899\", \"name\": \"positive_coords\", \"type\": \"STRING\", \"linkIds\": [267], \"pos\": [-2143.630859375, -3370]}, {\"id\": \"c65f8b87-9bd7-48be-9fc2-823431e95019\", \"name\": \"negative_coords\", \"type\": \"STRING\", \"linkIds\": [268], \"pos\": [-2143.630859375, -3350]}, {\"id\": \"bb4ba35a-ccfe-4c37-98e5-d9b0d69585fb\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"linkIds\": [269], \"pos\": [-2143.630859375, -3330]}, {\"id\": \"b1439668-b050-490b-a5dc-fc4052c55666\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"linkIds\": [270], \"pos\": [-2143.630859375, -3310]}, {\"id\": \"86e239e5-c098-4302-b54d-d42a38bc0f89\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"linkIds\": [271], \"pos\": [-2143.630859375, -3290]}, {\"id\": \"f9e0b9d4-b2f1-4907-a4a5-305656576706\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"linkIds\": [272], \"pos\": [-2143.630859375, -3270]}], \"outputs\": [{\"id\": \"ff50da09-1e59-4a58-9b7f-be1a00aa5913\", \"name\": \"masks\", \"type\": \"MASK\", \"linkIds\": [231], \"localized_name\": \"masks\", \"pos\": [-980, -3440]}, {\"id\": \"8f622e40-8528-4078-b7d3-147e9f872194\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"linkIds\": [232], \"localized_name\": \"bboxes\", \"pos\": [-980, -3420]}], \"widgets\": []}",
|
||||
"原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 78, \"type\": \"CLIPTextEncode\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"clip\", \"name\": \"clip\", \"type\": \"CLIP\", \"link\": 240}, {\"localized_name\": \"文本\", \"name\": \"text\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"link\": 265}], \"outputs\": [{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"links\": [200]}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"CLIPTextEncode\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 75, \"type\": \"SAM3_Detect\", \"mode\": 0, \"inputs\": [{\"label\": \"model\", \"localized_name\": \"model\", \"name\": \"model\", \"type\": \"MODEL\", \"link\": 237}, {\"label\": \"image\", \"localized_name\": \"image\", \"name\": \"image\", \"type\": \"IMAGE\", \"link\": 264}, {\"label\": \"conditioning\", \"localized_name\": \"conditioning\", \"name\": \"conditioning\", \"shape\": 7, \"type\": \"CONDITIONING\", \"link\": 200}, {\"label\": \"bboxes\", \"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"shape\": 7, \"type\": \"BOUNDING_BOX\", \"link\": 266}, {\"label\": \"positive_coords\", \"localized_name\": \"positive_coords\", \"name\": \"positive_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 267}, {\"label\": \"negative_coords\", \"localized_name\": \"negative_coords\", \"name\": \"negative_coords\", \"shape\": 7, \"type\": \"STRING\", \"link\": 268}, {\"localized_name\": \"threshold\", \"name\": \"threshold\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"threshold\"}, \"link\": 269}, {\"localized_name\": \"refine_iterations\", \"name\": \"refine_iterations\", \"type\": \"INT\", \"widget\": {\"name\": \"refine_iterations\"}, \"link\": 270}, {\"localized_name\": \"individual_masks\", \"name\": \"individual_masks\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"individual_masks\"}, \"link\": 271}], \"outputs\": [{\"localized_name\": \"masks\", \"name\": \"masks\", \"type\": \"MASK\", \"links\": [231]}, {\"localized_name\": \"bboxes\", \"name\": \"bboxes\", \"type\": \"BOUNDING_BOX\", \"links\": [232]}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"SAM3_Detect\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\"}}",
|
||||
"原节点 48668c69-3b7f-4f0a-9689-2590a4106289 {\"id\": 77, \"type\": \"CheckpointLoaderSimple\", \"mode\": 0, \"inputs\": [{\"localized_name\": \"Checkpoint名称\", \"name\": \"ckpt_name\", \"type\": \"COMBO\", \"widget\": {\"name\": \"ckpt_name\"}, \"link\": 272}], \"outputs\": [{\"localized_name\": \"模型\", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [237]}, {\"localized_name\": \"CLIP\", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [240]}, {\"localized_name\": \"VAE\", \"name\": \"VAE\", \"type\": \"VAE\", \"links\": null}], \"properties\": {\"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.8\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"CheckpointLoaderSimple\", \"enableTabs\": false, \"tabWidth\": 65, \"tabXOffset\": 10, \"hasSecondTab\": false, \"secondTabText\": \"Send Back\", \"secondTabOffset\": 80, \"secondTabWidth\": 65, \"cnr_id\": \"comfy-core\", \"ver\": \"0.19.3\", \"models\": [{\"name\": \"sam3.1_multiplex_fp16.safetensors\", \"url\": \"https://huggingface.co/Comfy-Org/sam3.1/resolve/main/checkpoints/sam3.1_multiplex_fp16.safetensors\", \"directory\": \"checkpoints\"}]}}"
|
||||
],
|
||||
"flow_evidence": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19
|
||||
],
|
||||
"zero_saved_nodes": [
|
||||
{
|
||||
"node_id": "131",
|
||||
"class_type": "JoinImageWithAlpha",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "133",
|
||||
"class_type": "GetVideoComponents",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "137",
|
||||
"class_type": "0925a49b-2fa2-44e9-8afc-aa70380d84e6",
|
||||
"effect": "原[]零位置;宿主/定义/内部值分开,promoted未知。"
|
||||
},
|
||||
{
|
||||
"node_id": "136",
|
||||
"class_type": "MaskPreview",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "150",
|
||||
"class_type": "Fast Groups Muter (rgthree)",
|
||||
"effect": "原缺widgets_values键,提供方/版本未知;不模拟Muter切换。"
|
||||
},
|
||||
{
|
||||
"node_id": "151",
|
||||
"class_type": "PreviewImage",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "153",
|
||||
"class_type": "JoinImageWithAlpha",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "155",
|
||||
"class_type": "MaskPreview",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
},
|
||||
{
|
||||
"node_id": "154",
|
||||
"class_type": "48668c69-3b7f-4f0a-9689-2590a4106289",
|
||||
"effect": "原[]零位置;宿主/定义/内部值分开,promoted未知。"
|
||||
},
|
||||
{
|
||||
"node_id": "137:104",
|
||||
"class_type": "GetVideoComponents",
|
||||
"effect": "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
"这张图用文字提示产生遮罩,再将原图与遮罩接成带Alpha图像供预览。图片支路处于mode0保存态:152原图→154图像SAM3宿主→153透明通道合并→151预览,遮罩另接155。视频组mode2静音,不能称可生成视频。宿主没有保存promoted值,内部unicorn/clothes及阈值仅潜在值;模型.pt与推荐.safetensors冲突未解。准确核心未找到SAM3实现,实际方向、模型支持和效果未知;仅参考说明,转换关闭、未实跑。",
|
||||
"操作1:先读活动图片与静音视频的差别;保持停用,不切换Muter或尝试生成。",
|
||||
"操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。",
|
||||
"操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。",
|
||||
"操作4:核Alpha反转、temp PNG及FPS外线;预览非永久导出。",
|
||||
"常见问题:源注释不证明协议;遮罩方向/坐标/模型/效果待核,不凭字段名推断。"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
SAM3提示词遮罩单图固定参考说明已接入实际doc_json、GET与既有抽屉,待总管一次功能+界面审核。新增18非注释保存位置(根8+内部10)与3完整源注释;旧26图820位置+16注释逐对象保持,27图838+19仅参考展示。155完整定稿0、必要实跑0、新增转换0,全量未完成。
|
||||
|
||||
继续PR #25、`agent/agent/a64a969a6a44`、base `main`。旧库基线`8b4b9ca81720cf39606d4a46b008f5df9ee90f70`;独立清理提交`981d2b023faed8afdfe2afa4dd19a4f5280a281f`删除7份自有pyc并局部忽略。本轮受测源码与最终推送提交摘要见交付附件`final-head.json`及`tested-files.json`,逐文件差分见`changed-files.json`。不改受测原件、旧日志或旧说明块。
|
||||
|
||||
- 根15实体/14物理边;definition0五实体/17含边界边,definition1三实体/14含边界边。根保存10含2注释、内部11含1注释;宿主137/154的[]、各5 proxyWidgets、定义widgets=[]和内部值分开,不把负ID边界计实体或空/缺键计值。
|
||||
- 图片152→154→153→151,原图另接153.image,遮罩另到155;152.MASK及bboxes/坐标未接。Join准确实现反转Alpha并适配尺寸,不猜SAM3遮罩方向。PreviewImage与MaskPreview的temp PNG链说明完整,无正式SaveImage。
|
||||
- 视频七实体mode2,不称可生成视频。132→133/137,133.images+137.mask到131;133.audio/fps经134→135。134保存30被133.fps物理外线覆盖,实际FPS未知;137自己的audio/fps未接。静音切换与Muter不模拟。
|
||||
- 内部unicorn/clothes、0.5/2/false、两份sam3.1_multiplex.pt保留具名边界/数组/作用域/原指针;模型属性/注释推荐sam3.1_multiplex_fp16.safetensors冲突保留。两Checkpoint.CLIP接各自文本编码器,VAE未接,不承诺模型支持、CLIP家族或真实目录。
|
||||
- core v0.19.3→3086026401180c9216bcb6ace442a4e3587d2c66,frontend v1.42.15→4705b3186ecd621151daf95dd702009b266bd819。23份准确Git文本(11核心含许可+12前端含许可)按完整树blob和SHA核验;2 tag JSON+2完整tree JSON单列,20准确行界引用。调查只限完整树路径名及列明必要源码,未找到SAM3_Detect实现,不称已检索全部源码。SAM3 schema/默认/范围/单位/坐标/支持未知;32 tokens/逗号/:N仅源注释,三个注释全文不删、不执行URL。
|
||||
- 213后台通过(200新专项+13库回归),0失败/1依赖弃用warning。覆盖现值与类型、全部作用域节点身份/模式/保存形状、根和定义边界变更、proxy/恢复/模型/布局/引用/pin拒绝;旧26块和其余155审校对象保持。
|
||||
- 真实旧代码建隔离库1update/154skip/1excluded,154整行不变;重导155skip,回退精确恢复,再导1update;升级前后编辑各1conflict保护29列。新库155/排除1、16/139与1217/3660/294不变,全停用未检查、定稿实跑时间戳空。156库原件+7配套收件(共163)、191冻结资源、28profiles/9候选hash/六配套差分和Drawer整文件不变。
|
||||
- wheel/sdist资源字节、双次定义/中文渲染确定性通过。12份本轮自写Python Ruff check/format与1份JS语法通过;上游原件不格式化。开发失败保留说明与日志,历史5个旧后台失败和旧I001只沿用,不称全仓全绿;未机械复跑无关全套。
|
||||
- 1070浏览检查通过:430新图+624旧26概要+2汇总+14共享。1440/390实际GET核18项/3注释、内部作用域/图片活动/视频静音/模型冲突/promoted未知/temp链;默认折叠、焦点、迟到/失败重试/旧空错绑定回退、无横溢通过;5图已实际目验。浏览固定94+轮询8;服务固定89(含就绪1)+轮询8,禁止请求0,字体CSS本地拦截。finally停止两项本地服务并核8247/5173释放,退出码-15/143为本轮主动停止。
|
||||
|
||||
主要代码只新增fixed_document受信路径/硬编码digest与source_reviews本图块;专项测试、构建/导入/审计/确定性/浏览复现和来源原件随附。完整中文见`docs/hel-892/SAM3提示词遮罩固定参考中文说明.md`,实际文档见`actual-sam3_图像视频-提示词遮罩分割.json`。来源local_file以`docs/hel-892/sam3-document-evidence`为基准。复现入口与样例报告见`validation-commands.txt`。
|
||||
|
||||
145UI仍9参考候选/136关闭。SAM3实现、真实宿主/UE与恢复次序、动态模型列表、素材/目录/FPS/编码器/权限与实际效果待后续核对;不索取机器窗口、不连接目标、不停TTS、不启ComfyUI、不提交prompt、不执行上游插件/模型/媒体/反序列化、不下载权重/素材/字体、不加依赖或付费、不写在线库、不合并部署。155全量完成并审核后发布门槛保持。
|
||||
@@ -0,0 +1,5 @@
|
||||
开发失败原日志保留,不计入最终通过数:backend-initial.txt读取早期无comments键失败1;backend-second.txt错误把旧fixed块comments数当完整source_notes失败1。已改为机械读取26个实际文档source_notes核16条,不修改旧块。
|
||||
增加Note注册引用时初写末行85,实际文件84行,build的引用行界断言拒绝,已改为7~83(注册与category均覆盖);未放宽检查。初次rebuild/verify异常在运行日志,后续source-check/recompute通过。
|
||||
lint-initial/second/third记录长行与未使用临时引用变量,格式与长行已修。格式修订未改上游原件,必要中文缩写已重建定义/硬编码pin并重跑213后台、1070浏览、包/升级/确定性。
|
||||
本checkout无Git身份配置;沿用原分支最近提交的leefer <hello@shengshentech.com>,仅git -c单命令使用,不改全局/共享配置。清理独立提交981d2b0;本轮原目标仍未全量完成。
|
||||
历史全后台5个既有业务失败、未改旧test_fixed_document.py的I001仅沿用上批证据,不称本次已复跑或全仓全绿。本次未机械复跑全后台/前端/转换大组。
|
||||
@@ -0,0 +1 @@
|
||||
PASS 23 exact-commit textual originals; metadata separate
|
||||
@@ -0,0 +1 @@
|
||||
PASS 19 exact-commit textual originals; metadata separate
|
||||
@@ -0,0 +1,100 @@
|
||||
"""Bounded exact-tag textual investigation; never import upstream code."""
|
||||
|
||||
import concurrent.futures
|
||||
import hashlib
|
||||
import json
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "sam3-reference"
|
||||
PINS = {
|
||||
"core": (
|
||||
"Comfy-Org/ComfyUI",
|
||||
"3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
[
|
||||
"nodes.py",
|
||||
"comfy_extras/nodes_compositing.py",
|
||||
"comfy_extras/nodes_mask.py",
|
||||
"comfy_extras/nodes_video.py",
|
||||
"comfy_api/latest/_input_impl/video_types.py",
|
||||
"comfy_api/latest/_input/video_types.py",
|
||||
"comfy_api/latest/_util/video_types.py",
|
||||
"comfy_api/latest/_ui.py",
|
||||
"comfy_api/latest/_io.py",
|
||||
"folder_paths.py",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
"frontend": ("Comfy-Org/ComfyUI_frontend", "4705b3186ecd621151daf95dd702009b266bd819", []),
|
||||
}
|
||||
|
||||
|
||||
def fetch(url):
|
||||
with urllib.request.urlopen(
|
||||
urllib.request.Request(url, headers={"User-Agent": "HEL-892-static-review"}), timeout=35
|
||||
) as r:
|
||||
return r.read()
|
||||
|
||||
|
||||
def one(item):
|
||||
key, repo, commit, file, blob = item
|
||||
url = f"https://raw.githubusercontent.com/{repo}/{commit}/{file}"
|
||||
cached = OUT.parent / "birefnet-reference" / (key + "__" + file.replace("/", "__"))
|
||||
if key == "core" and cached.exists():
|
||||
data = cached.read_bytes()
|
||||
assert hashlib.sha1(b"blob " + str(len(data)).encode() + b"\0" + data).hexdigest() == blob
|
||||
else:
|
||||
data = fetch(url)
|
||||
assert hashlib.sha1(b"blob " + str(len(data)).encode() + b"\0" + data).hexdigest() == blob
|
||||
name = key + "__" + file.replace("/", "__")
|
||||
(REF / name).write_bytes(data)
|
||||
return dict(
|
||||
id=key,
|
||||
commit=commit,
|
||||
file=file,
|
||||
url=url,
|
||||
local_file=name,
|
||||
sha256=hashlib.sha256(data).hexdigest(),
|
||||
git_blob_sha1=blob,
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
jobs = []
|
||||
for key, (repo, commit, files) in PINS.items():
|
||||
tree = json.loads((REF / (key + "-tree.json")).read_bytes())
|
||||
assert tree["sha"] == commit and not tree["truncated"]
|
||||
blobs = {x["path"]: x["sha"] for x in tree["tree"] if x["type"] == "blob"}
|
||||
if key == "frontend":
|
||||
# Bounded schema/host restoration modules; no unrelated history or dependencies.
|
||||
files = ["LICENSE"] + [
|
||||
p
|
||||
for p in blobs
|
||||
if p.startswith(("src/core/subgraph/", "src/lib/litegraph/src/subgraph/"))
|
||||
and p.endswith(("/SubgraphNode.ts", "/Subgraph.ts"))
|
||||
]
|
||||
files += [
|
||||
p
|
||||
for p in [
|
||||
"src/scripts/widgets.ts",
|
||||
"src/scripts/app.ts",
|
||||
"src/extensions/core/noteNode.ts",
|
||||
"src/extensions/core/widgetInputs.ts",
|
||||
"src/core/schemas/promotionSchema.ts",
|
||||
"src/core/graph/subgraph/resolvePromotedWidgetSource.ts",
|
||||
"src/core/graph/subgraph/legacyProxyWidgetNormalization.ts",
|
||||
"src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
|
||||
"src/stores/promotionStore.ts",
|
||||
]
|
||||
if p in blobs
|
||||
]
|
||||
jobs += [(key, repo, commit, f, blobs[f]) for f in files]
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=5) as pool:
|
||||
sources = list(pool.map(one, jobs))
|
||||
(REF / "sources.json").write_text(json.dumps(dict(sources=sources), indent=2) + "\n")
|
||||
print("PASS", len(sources), "exact-commit textual originals; metadata separate")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,302 @@
|
||||
[
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
59,
|
||||
81
|
||||
],
|
||||
"claim": "文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
588,
|
||||
610
|
||||
],
|
||||
"claim": "动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
1700,
|
||||
1779
|
||||
],
|
||||
"claim": "LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
1627,
|
||||
1699
|
||||
],
|
||||
"claim": "PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
|
||||
"lines": [
|
||||
188,
|
||||
226
|
||||
],
|
||||
"claim": "Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff",
|
||||
"lines": [
|
||||
1,
|
||||
30
|
||||
],
|
||||
"claim": "遮罩尺寸适配辅助函数及插值;未执行张量运算"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_mask.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_mask.py",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
|
||||
"git_blob_sha1": "c446025974bcb83deea6abf11e870015f45da960",
|
||||
"lines": [
|
||||
403,
|
||||
445
|
||||
],
|
||||
"claim": "MaskPreview注册并调用UI.PreviewMask"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"lines": [
|
||||
389,
|
||||
412
|
||||
],
|
||||
"claim": "PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"lines": [
|
||||
88,
|
||||
168
|
||||
],
|
||||
"claim": "ImageSaveHelper输出PNG及目录创建条件"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
|
||||
"lines": [
|
||||
68,
|
||||
205
|
||||
],
|
||||
"claim": "核心视频四节点的准确schema、fps外线、读取与保存调用"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "../sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951",
|
||||
"lines": [
|
||||
259,
|
||||
272
|
||||
],
|
||||
"claim": "视频扩展准确注册列表"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_util/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___util__video_types.py",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02",
|
||||
"git_blob_sha1": "fd3b5a510df4d1bd0b65141bd3d27953ec9cfc9a",
|
||||
"lines": [
|
||||
1,
|
||||
52
|
||||
],
|
||||
"claim": "视频组件和容器/编码器枚举"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
2016,
|
||||
2111
|
||||
],
|
||||
"claim": "核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "../sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7",
|
||||
"lines": [
|
||||
2330,
|
||||
2440
|
||||
],
|
||||
"claim": "扩展模块加载范围,未发现SAM3命名模块,非目标安装事实"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"sha256": "32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2",
|
||||
"git_blob_sha1": "3fc76441cc0fa19f8b0b07c2c6c2a606c3629b96",
|
||||
"lines": [
|
||||
993,
|
||||
1123
|
||||
],
|
||||
"claim": "准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_input_impl/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py",
|
||||
"local_file": "../sam3-reference/core__comfy_api__latest___input_impl__video_types.py",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918",
|
||||
"git_blob_sha1": "1b4993aa74c0fe91b8139aa60751a91c4f298cc9",
|
||||
"lines": [
|
||||
382,
|
||||
459
|
||||
],
|
||||
"claim": "VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/extensions/core/noteNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/extensions/core/noteNode.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__extensions__core__noteNode.ts",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2",
|
||||
"git_blob_sha1": "7e0ec56a6fb83f81c754efd30eb597b45bd5b072",
|
||||
"lines": [
|
||||
7,
|
||||
83
|
||||
],
|
||||
"claim": "Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts",
|
||||
"local_file": "../sam3-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
|
||||
"git_blob_sha1": "517e6f0e836f01df6c2ab08f3fe71d096d54aad6",
|
||||
"lines": [
|
||||
285,
|
||||
307
|
||||
],
|
||||
"claim": "准确前端控件模块;上传附加状态不是服务端参数"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
|
||||
"local_file": "../sam3-reference/core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确完整提交许可原文"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/LICENSE",
|
||||
"local_file": "../sam3-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "准确完整提交许可原文"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
1 file reformatted, 9 files left unchanged
|
||||
@@ -0,0 +1 @@
|
||||
8 files reformatted, 2 files left unchanged
|
||||
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "8b4b9ca81720cf39606d4a46b008f5df9ee90f70",
|
||||
"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": "8b4b9ca81720cf39606d4a46b008f5df9ee90f70",
|
||||
"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": 18,
|
||||
"new_notes": 3,
|
||||
"old_saved": 820,
|
||||
"old_notes": 16,
|
||||
"overviews": 27,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
All checks passed!
|
||||
@@ -0,0 +1,847 @@
|
||||
E501 Line too long (107 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:16:92
|
||||
|
|
||||
14 | REPO = Path(__file__).resolve().parents[2]
|
||||
15 | OUT = REPO / "docs/hel-892/sam3-document-evidence"
|
||||
16 | PATHS = [next(p for p in DEFINITIONS if p.endswith(n + ".json")) for n in ["sam3_图像视频-提示词遮罩分割"]]
|
||||
| ^^^^^^^
|
||||
17 | SOURCES = [json.loads((REPO / p).read_bytes()) for p in PATHS]
|
||||
18 | REVIEWS = [review_for(p, hashlib.sha1((REPO / p).read_bytes()).hexdigest()) for p in PATHS]
|
||||
|
|
||||
|
||||
E501 Line too long (104 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:89:101
|
||||
|
|
||||
88 | def refuse(source, review):
|
||||
89 | review['fixed_version_document']['canonical_sha256'] = hashlib.sha256(canonical(source)).hexdigest()
|
||||
| ^^^^
|
||||
90 | review['caller_digest'] = hashlib.sha256(canonical(review['fixed_version_document'])).hexdigest()
|
||||
91 | assert not doc(0, source, review)['fixed_version']['matched']
|
||||
|
|
||||
|
||||
E501 Line too long (101 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:90:101
|
||||
|
|
||||
88 | def refuse(source, review):
|
||||
89 | review['fixed_version_document']['canonical_sha256'] = hashlib.sha256(canonical(source)).hexdigest()
|
||||
90 | review['caller_digest'] = hashlib.sha256(canonical(review['fixed_version_document'])).hexdigest()
|
||||
| ^
|
||||
91 | assert not doc(0, source, review)['fixed_version']['matched']
|
||||
|
|
||||
|
||||
E501 Line too long (186 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:127:101
|
||||
|
|
||||
127 | …ts', 'boundary', 'frontend', 'ue', 'model', 'missing_muter', 'raw', 'citation', 'layout', 'summary', 'path'])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
128 | …
|
||||
129 | …
|
||||
|
|
||||
|
||||
E501 Line too long (123 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:146:101
|
||||
|
|
||||
144 | ns[154]['properties']['ue_properties']['version'] = '7.5'
|
||||
145 | elif variant == 'model':
|
||||
146 | next(n for n in d['nodes'] if n['type']=='CheckpointLoaderSimple')['properties']['models'][0]['name'] = 'forged.pt'
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
147 | elif variant == 'missing_muter':
|
||||
148 | ns[150]['widgets_values'] = []
|
||||
|
|
||||
|
||||
E501 Line too long (170 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:170:101
|
||||
|
|
||||
168 | …fixed_version_document' in r]
|
||||
169 | …ocks)==820
|
||||
170 | …), None, None, [], old[p])['source_notes']) for p in old if 'fixed_version_document' in old[p]) == 16
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
171 | …
|
||||
172 | …
|
||||
|
|
||||
|
||||
E702 Multiple statements on one line (semicolon)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:171:17
|
||||
|
|
||||
169 | assert len(oldblocks)==26 and sum(len(b['fields']) for b in oldblocks)==820
|
||||
170 | assert sum(len(build_document(p, json.loads((REPO/p).read_bytes()), None, None, [], old[p])['source_notes']) for p in old if 'fix…
|
||||
171 | g=SOURCES[0]; ns={n['id']:n for n in g['nodes']}
|
||||
| ^
|
||||
172 | assert len(ns)==15 and len(g['links'])==14
|
||||
173 | assert {i for i,n in ns.items() if n['mode']==2}=={131,132,133,134,135,137,136}
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:217:101
|
||||
|
|
||||
215 | for c in b['comments']:
|
||||
216 | assert pointer(g,c['pointer'])==[c['text']]
|
||||
217 | assert next(n for n in d['source_notes'] if n['node_id']==c['node_id'])['content']==[c['text']]
|
||||
| ^^^
|
||||
218 | assert not b['counts']['final_prompt_constructed']
|
||||
219 | assert all(word in ' '.join(b['flow']) for word in ['1-alpha','temp PNG','314','VAE未接','32 tokens/逗号/:N','未找到','promoted'])
|
||||
|
|
||||
|
||||
E501 Line too long (134 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:219:99
|
||||
|
|
||||
217 | assert next(n for n in d['source_notes'] if n['node_id']==c['node_id'])['content']==[c['text']]
|
||||
218 | assert not b['counts']['final_prompt_constructed']
|
||||
219 | assert all(word in ' '.join(b['flow']) for word in ['1-alpha','temp PNG','314','VAE未接','32 tokens/逗号/:N','未找到','promoted'])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:11:75
|
||||
|
|
||||
9 | OUT = Path(__file__).resolve().parent
|
||||
10 | REF = OUT.parent / 'sam3-reference'
|
||||
11 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json']
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (112 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:34:88
|
||||
|
|
||||
32 | return len(refs) - 1
|
||||
33 |
|
||||
34 | clip = ref('core', 'nodes.py', 59, 81, '文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族')
|
||||
| ^^^^^^^^^^^^
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
|
|
||||
|
||||
E501 Line too long (121 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:35:87
|
||||
|
|
||||
34 | clip = ref('core', 'nodes.py', 59, 81, '文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族')
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
|
|
||||
|
||||
E501 Line too long (107 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:36:88
|
||||
|
|
||||
34 | clip = ref('core', 'nodes.py', 59, 81, '文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族')
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
| ^^^^^^^
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
|
|
||||
|
||||
F841 Local variable `preview` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:37:5
|
||||
|
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
| ^^^^^^^
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
|
|
||||
help: Remove assignment to unused variable `preview`
|
||||
|
||||
E501 Line too long (121 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:37:90
|
||||
|
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
|
|
||||
|
||||
F841 Local variable `join` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:38:5
|
||||
|
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
| ^^^^
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
|
|
||||
help: Remove assignment to unused variable `join`
|
||||
|
||||
E501 Line too long (133 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:38:98
|
||||
|
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
|
|
||||
|
||||
F841 Local variable `resize` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:39:5
|
||||
|
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
| ^^^^^^
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
|
|
||||
help: Remove assignment to unused variable `resize`
|
||||
|
||||
E501 Line too long (114 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:39:86
|
||||
|
|
||||
37 | preview = ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
| ^^^^^^^^^^^^^^
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
|
|
||||
|
||||
F841 Local variable `mask` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:40:5
|
||||
|
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
| ^^^^
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
42 | png = ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
|
|
||||
help: Remove assignment to unused variable `mask`
|
||||
|
||||
E501 Line too long (101 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:40:96
|
||||
|
|
||||
38 | join = ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
| ^
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
42 | png = ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
|
|
||||
|
||||
F841 Local variable `maskui` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:41:5
|
||||
|
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
| ^^^^^^
|
||||
42 | png = ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
43 | video = ref('core', 'comfy_extras/nodes_video.py', 68, 205, '核心视频四节点的准确schema、fps外线、读取与保存调用')
|
||||
|
|
||||
help: Remove assignment to unused variable `maskui`
|
||||
|
||||
E501 Line too long (132 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:41:95
|
||||
|
|
||||
39 | resize = ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
42 | png = ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
43 | video = ref('core', 'comfy_extras/nodes_video.py', 68, 205, '核心视频四节点的准确schema、fps外线、读取与保存调用')
|
||||
|
|
||||
|
||||
F841 Local variable `png` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:42:5
|
||||
|
|
||||
40 | mask = ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
42 | png = ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
| ^^^
|
||||
43 | video = ref('core', 'comfy_extras/nodes_video.py', 68, 205, '核心视频四节点的准确schema、fps外线、读取与保存调用')
|
||||
44 | vreg = ref('core', 'comfy_extras/nodes_video.py', 259, 272, '视频扩展准确注册列表')
|
||||
|
|
||||
help: Remove assignment to unused variable `png`
|
||||
|
||||
E501 Line too long (118 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:43:88
|
||||
|
|
||||
41 | maskui = ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
42 | png = ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
43 | video = ref('core', 'comfy_extras/nodes_video.py', 68, 205, '核心视频四节点的准确schema、fps外线、读取与保存调用')
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
44 | vreg = ref('core', 'comfy_extras/nodes_video.py', 259, 272, '视频扩展准确注册列表')
|
||||
45 | types = ref('core', 'comfy_api/latest/_util/video_types.py', 1, 52, '视频组件和容器/编码器枚举')
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:47:77
|
||||
|
|
||||
45 | types = ref('core', 'comfy_api/latest/_util/video_types.py', 1, 52, '视频组件和容器/编码器枚举')
|
||||
46 | # The bounded registry inspection explicitly cannot supply a SAM3 schema.
|
||||
47 | reg = ref('core', 'nodes.py', 2016, 2111, '核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现')
|
||||
| ^^
|
||||
48 | extra = ref('core', 'nodes.py', 2330, 2440, '扩展模块加载范围,未发现SAM3命名模块,非目标安装事实')
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:48:78
|
||||
|
|
||||
46 | # The bounded registry inspection explicitly cannot supply a SAM3 schema.
|
||||
47 | reg = ref('core', 'nodes.py', 2016, 2111, '核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现')
|
||||
48 | extra = ref('core', 'nodes.py', 2330, 2440, '扩展模块加载范围,未发现SAM3命名模块,非目标安装事实')
|
||||
| ^^
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
|
|
||||
|
||||
E501 Line too long (163 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:49:97
|
||||
|
|
||||
47 | … 核对现有注册,不把源声明当SAM3实现')
|
||||
48 | … 未发现SAM3命名模块,非目标安装事实')
|
||||
49 | …phNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
50 | ….py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存')
|
||||
51 | …83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
|
|
||||
|
||||
E501 Line too long (161 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:50:101
|
||||
|
|
||||
48 | … ,未发现SAM3命名模块,非目标安装事实')
|
||||
49 | …aphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值')
|
||||
50 | …s.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
51 | … 83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
52 | …, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
|
|
||||
|
||||
F841 Local variable `note` is assigned to but never used
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:51:5
|
||||
|
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
51 | note = ref('frontend', 'src/extensions/core/noteNode.ts', 7, 83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
| ^^^^
|
||||
52 | widgets = ref('frontend', 'src/scripts/widgets.ts', 285, 307, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
53 | for key in ('core', 'frontend'):
|
||||
|
|
||||
help: Remove assignment to unused variable `note`
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:51:94
|
||||
|
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
51 | note = ref('frontend', 'src/extensions/core/noteNode.ts', 7, 83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
52 | widgets = ref('frontend', 'src/scripts/widgets.ts', 285, 307, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
53 | for key in ('core', 'frontend'):
|
||||
|
|
||||
|
||||
E501 Line too long (113 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:52:85
|
||||
|
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
51 | note = ref('frontend', 'src/extensions/core/noteNode.ts', 7, 83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
52 | widgets = ref('frontend', 'src/scripts/widgets.ts', 285, 307, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
| ^^^^^^^^^^^^
|
||||
53 | for key in ('core', 'frontend'):
|
||||
54 | entry = next(e for e in entries if e['id'] == key and e['file'] == 'LICENSE')
|
||||
|
|
||||
|
||||
E501 Line too long (111 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:55:96
|
||||
|
|
||||
53 | for key in ('core', 'frontend'):
|
||||
54 | entry = next(e for e in entries if e['id'] == key and e['file'] == 'LICENSE')
|
||||
55 | ref(key, 'LICENSE', 1, len((REF/entry['local_file']).read_text().splitlines()), '准确完整提交许可原文')
|
||||
| ^^^^^^^^^^
|
||||
56 |
|
||||
57 | specs = {}
|
||||
|
|
||||
|
||||
E501 Line too long (102 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:63:75
|
||||
|
|
||||
61 | unit=unit, limits=limits, effect=effect, evidence=evidence, role=role)
|
||||
62 |
|
||||
63 | spec('LoadVideo', 'file', '视频文件引用(静音支路)', 'COMBO', '动态列表,无固定默认', '文件引用',
|
||||
| ^^
|
||||
64 | '准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知',
|
||||
65 | '保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。', [video, vre…
|
||||
|
|
||||
|
||||
E501 Line too long (137 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:65:72
|
||||
|
|
||||
63 | … )', 'COMBO', '动态列表,无固定默认', '文件引用',
|
||||
64 | … 目标列表与路径未知',
|
||||
65 | …ode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。', [video, vreg])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
66 | … 存状态', '前端附加状态', '无服务端参数默认', '未知',
|
||||
67 | …
|
||||
|
|
||||
|
||||
E501 Line too long (105 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:66:77
|
||||
|
|
||||
64 | '准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知',
|
||||
65 | '保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。', [video, vre…
|
||||
66 | spec('LoadVideo', 'upload_state', '视频上传控件保存状态', '前端附加状态', '无服务端参数默认', '未知',
|
||||
| ^^^^
|
||||
67 | '保存image;不是LoadVideo第二个服务端参数',
|
||||
68 | '准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。', [video, …
|
||||
|
|
||||
|
||||
E501 Line too long (169 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:68:68
|
||||
|
|
||||
66 | … 状态', '无服务端参数默认', '未知',
|
||||
67 | …
|
||||
68 | … 前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。', [video, widgets], 'frontend_state_unknown')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
69 | …', '30.0', '帧/秒', 'schema为1~120,step1;源外线值未知',
|
||||
70 | … 实际FPS未知,不用保存30推算时长。133.audio也接134,137的audio/fps出口均未接。', [video, types], 'linked_saved_value')
|
||||
|
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:69:84
|
||||
|
|
||||
67 | '保存image;不是LoadVideo第二个服务端参数',
|
||||
68 | '准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。', [video, …
|
||||
69 | spec('CreateVideo', 'fps', '帧率保存值(被物理外线覆盖)', 'FLOAT', '30.0', '帧/秒', 'schema为1~120,step1;源外线值未知',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
70 | '保存30,但134.fps由133.fps经物理边314接入;133来自132的视频,实际FPS未知,不用保存30推算时长。133.audio也接134,137的audio/f…
|
||||
71 | for name, label, default, limits, effect in [
|
||||
|
|
||||
|
||||
E501 Line too long (188 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:70:71
|
||||
|
|
||||
68 | … 未加载宿主/UE,不当上传成功或媒体类型证明。', [video, widgets], 'frontend_state_unknown')
|
||||
69 | …, '帧/秒', 'schema为1~120,step1;源外线值未知',
|
||||
70 | …未知,不用保存30推算时长。133.audio也接134,137的audio/fps出口均未接。', [video, types], 'linked_saved_value')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
71 | …
|
||||
72 | … 源码无长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'),
|
||||
|
|
||||
|
||||
E501 Line too long (203 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:72:76
|
||||
|
|
||||
70 | … 用保存30推算时长。133.audio也接134,137的audio/fps出口均未接。', [video, types], 'linked_saved_value')
|
||||
71 | …
|
||||
72 | … 长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
73 | … 持未知', '保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。'),
|
||||
74 | …保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
|
|
||||
|
||||
E501 Line too long (173 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:73:77
|
||||
|
|
||||
71 | …
|
||||
72 | …'字符串,源码无长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'),
|
||||
73 | … 展名mp4,目标支持未知', '保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
74 | … 编码器与Alpha保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
75 | …
|
||||
|
|
||||
|
||||
E501 Line too long (168 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:74:76
|
||||
|
|
||||
72 | …', '字符串,源码无长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'…
|
||||
73 | …to扩展名mp4,目标支持未知', '保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。'),
|
||||
74 | … 际编码器与Alpha保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
75 | …
|
||||
76 | …refix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
|
|
||||
|
||||
E501 Line too long (151 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:76:101
|
||||
|
|
||||
74 | …o/h264;实际编码器与Alpha保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
75 | …
|
||||
76 | …lename_prefix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
77 | …'动态列表,无固定默认', '文件引用', 'input图片动态成员,未核目录或文件存在',
|
||||
78 | …mage,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。', [image])
|
||||
|
|
||||
|
||||
E501 Line too long (136 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:77:79
|
||||
|
|
||||
75 | …
|
||||
76 | …ame=='filename_prefix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
77 | …COMBO', '动态列表,无固定默认', '文件引用', 'input图片动态成员,未核目录或文件存在',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
78 | … 接154.image,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。', [image])
|
||||
79 | … 存状态', '前端附加状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
|
|
||||
|
||||
E501 Line too long (151 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:78:74
|
||||
|
|
||||
76 | …lename_prefix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
77 | …'动态列表,无固定默认', '文件引用', 'input图片动态成员,未核目录或文件存在',
|
||||
78 | …mage,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。', [image])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
79 | …, '前端附加状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
80 | … 台输入。未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
|
|
||||
|
||||
E501 Line too long (134 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:79:77
|
||||
|
|
||||
77 | …'COMBO', '动态列表,无固定默认', '文件引用', 'input图片动态成员,未核目录或文件存在',
|
||||
78 | … 接154.image,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。', [image])
|
||||
79 | … 存状态', '前端附加状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
80 | … 型参数或后台输入。未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
81 | … ', 'STRING', 'schema未显式默认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
|
|
||||
|
||||
E501 Line too long (156 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:80:65
|
||||
|
|
||||
78 | …ge,另一支接153.image;152.MASK未接,不能把输入图Alpha的反向MASK误当SAM3输出。', [image])
|
||||
79 | …'前端附加状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
80 | … 输入。未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
81 | …', 'schema未显式默认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
82 | … 经Checkpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。', [clip, host], 'intern…
|
||||
|
|
||||
|
||||
E501 Line too long (171 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:81:79
|
||||
|
|
||||
79 | … 状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
80 | … 未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
81 | …ema未显式默认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
82 | …ckpoint.CLIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。', [clip, host], 'internal_sav…
|
||||
83 | … 名冲突)', 'COMBO', '动态checkpoints列表,无固定默认', '文件引用', '模型/CLIP家族及实际目录、动态列表与SAM3支持未知',
|
||||
|
|
||||
|
||||
E501 Line too long (216 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:82:73
|
||||
|
|
||||
80 | … /UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
81 | … 当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
82 | …ext有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。', [clip, host], 'internal_saved_potential')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
83 | …动态checkpoints列表,无固定默认', '文件引用', '模型/CLIP家族及实际目录、动态列表与SAM3支持未知',
|
||||
84 | …rs,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。', [ckpt, …
|
||||
|
|
||||
|
||||
E501 Line too long (188 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:83:84
|
||||
|
|
||||
81 | … 认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
82 | …LIP编码。边界text有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。', [clip, host], 'internal_saved_potent…
|
||||
83 | … ', 'COMBO', '动态checkpoints列表,无固定默认', '文件引用', '模型/CLIP家族及实际目录、动态列表与SAM3支持未知',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
84 | …fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加…
|
||||
85 | …
|
||||
|
|
||||
|
||||
E501 Line too long (259 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:84:82
|
||||
|
|
||||
82 | …有具名连线,宿主widgets_values=[],最终promoted取值未知,不把内部值当提交值。', [clip, host], 'internal_saved_potential')
|
||||
83 | … checkpoints列表,无固定默认', '文件引用', '模型/CLIP家族及实际目录、动态列表与SAM3支持未知',
|
||||
84 | … 两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_name不等于已确定加载名。', [ckpt, host], 'internal_saved_potential')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
85 | …
|
||||
86 | … 造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
|
|
||||
|
||||
E501 Line too long (148 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:86:73
|
||||
|
|
||||
84 | … 荐sam3.1_multiplex_fp16.safetensors,两者不一致,原样保留不承诺兼容。MODEL接SAM3,CLIP接各自文本编码器,VAE未接。宿主空值与边界ckpt_…
|
||||
85 | …
|
||||
86 | … 声明)', '未知', '内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
87 | …(仅源口声明)', '未知,次数仅字段名线索', '内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。'),
|
||||
88 | …BOOLEAN(仅源口声明)', '布尔保存态', '内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。'),
|
||||
|
|
||||
|
||||
E501 Line too long (160 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:87:73
|
||||
|
|
||||
85 | …
|
||||
86 | … ', '未知', '内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
87 | … 声明)', '未知,次数仅字段名线索', '内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
88 | …N(仅源口声明)', '布尔保存态', '内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。'),
|
||||
89 | …
|
||||
|
|
||||
|
||||
E501 Line too long (156 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:88:76
|
||||
|
|
||||
86 | … )', '未知', '内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
87 | … 口声明)', '未知,次数仅字段名线索', '内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。'),
|
||||
88 | …EAN(仅源口声明)', '布尔保存态', '内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
89 | …
|
||||
90 | … 界注册/模块未找到该实现', unit,
|
||||
|
|
||||
|
||||
E501 Line too long (215 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:92:82
|
||||
|
|
||||
90 | …t,
|
||||
91 | …
|
||||
92 | …ts=[],不推算promoted最终值。bboxes/正负坐标宿主均未接,坐标格式/单位未知。', [reg, extra, host], 'internal_saved_unknown')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
93 | …
|
||||
94 | …
|
||||
|
|
||||
|
||||
E501 Line too long (138 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:99:101
|
||||
|
|
||||
97 | …aderSimple':['ckpt_name'],
|
||||
98 | …tions','individual_masks']}
|
||||
99 | …finitions/subgraphs/{i}', d) for i,d in enumerate(graph['definitions']['subgraphs'])]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
100 | …
|
||||
101 | …
|
||||
|
|
||||
|
||||
E501 Line too long (109 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:104:101
|
||||
|
|
||||
102 | … vals=n.get('widgets_values')
|
||||
103 | … ptr=f'{prefix}/nodes/{i}/widgets_values'
|
||||
104 | … nid=str(n['id']) if scope=='root' else ('137' if scope==scopes[1][0] else '154')+':'+str(n['id'])
|
||||
| ^^^^^^^^^
|
||||
105 | … if n['type'] in ('MarkdownNote','Note'):
|
||||
106 | … comments.append(dict(node_id=str(n['id']) if scope=='root' else scope+'/'+str(n['id']),pointer=ptr,scope=scope,text=vals[0],
|
||||
|
|
||||
|
||||
E501 Line too long (140 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:106:101
|
||||
|
|
||||
104 | …37' if scope==scopes[1][0] else '154')+':'+str(n['id'])
|
||||
105 | …
|
||||
106 | …']) if scope=='root' else scope+'/'+str(n['id']),pointer=ptr,scope=scope,text=vals[0],
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
107 | … 的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。'))
|
||||
108 | …
|
||||
|
|
||||
|
||||
E501 Line too long (148 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:107:72
|
||||
|
|
||||
105 | …
|
||||
106 | …if scope=='root' else scope+'/'+str(n['id']),pointer=ptr,scope=scope,text=vals[0],
|
||||
107 | … 容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。'))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
108 | …
|
||||
109 | …
|
||||
|
|
||||
|
||||
E501 Line too long (145 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:112:79
|
||||
|
|
||||
110 | …n['type'],effect=(
|
||||
111 | … ;不模拟Muter切换。' if vals is None else
|
||||
112 | … 义widgets与内部值分开,promoted未知。' if n['type'] in [scopes[1][0],scopes[2][0]] else
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
113 | … 虚构输入参数。')))
|
||||
114 | …
|
||||
|
|
||||
|
||||
E501 Line too long (104 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:117:101
|
||||
|
|
||||
115 | … for k,v in (vals.items() if isinstance(vals,dict) else enumerate(vals)):
|
||||
116 | … name=k if isinstance(vals,dict) else names[n['type']][k]
|
||||
117 | … fields.append({**specs[n['type'],name], 'node_id':nid,'definition_node_id':str(n['id']),
|
||||
| ^^^^
|
||||
118 | … 'class_type':n['type'],'scope':scope,'pointer':ptr+'/'+str(k),'value':v,'json_type':type(v).__name__,
|
||||
119 | … 'execution_note':f'原mode={n["mode"]};'+('根保存态。' if scope=='root' else '子图内部潜在保存值;具名边界外线与宿主空…
|
||||
|
|
||||
|
||||
E501 Line too long (169 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:119:93
|
||||
|
|
||||
117 | …,'definition_node_id':str(n['id']),
|
||||
118 | …r+'/'+str(k),'value':v,'json_type':type(v).__name__,
|
||||
119 | … 。' if scope=='root' else '子图内部潜在保存值;具名边界外线与宿主空保存态分开,不推算promoted。')+
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
120 | … 参考不证明安装或效果。未构造prompt。'})
|
||||
121 | …
|
||||
|
|
||||
|
||||
E501 Line too long (305 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:126:77
|
||||
|
|
||||
124 | …images。152.MASK未接;154.bboxes出口为空,bboxes/positive_coords/negative_coords宿主输入都未接,不猜坐标格式或分割方向。',
|
||||
125 | …n输出四通道,不声称透明视频能保存或保留Alpha,未实测后果。',
|
||||
126 | … 准确核心运算,不由此推断SAM3的MASK哪边代表前景、边缘效果或最终透明区域。PreviewImage继承SaveImage写temp PNG;MaskPreview经UI.PreviewMask→RGB→temp PNG。无正式SaveImage节点,不称永久图片保存或保证无磁盘写入。',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
127 | …images→131.image,137.masks→131.alpha及136.mask,131.IMAGE→134.images,133.audio/fps→134→135。134保存30被物理边314的133.fps覆盖,实际FPS未知;137自己的audio/fps出口未接,不混同133输出。不模拟Muter或静音切换。',
|
||||
128 | …289。137/154各widgets_values=[]、proxyWidgets各5绑定,定义widgets=[]。内部text为unicorn/clothes、threshold0.5/refine_iterations2/individual_masksfalse、ckpt_name均sam3.1_multiplex.pt。所有具名边界、数组与原指针分…
|
||||
|
|
||||
|
||||
E501 Line too long (260 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:131:70
|
||||
|
|
||||
129 | …ex.pt;不替换、不承诺兼容、不下载权重。两CLIPTextEncode从各自Checkpoint.CLIP取值,VAE未接。动态模型列表、SAM3模型/CLIP家族和真实目录未知。',
|
||||
130 | …etect准确实现。不能把源cnr_id/ver当安装事实、不能借新版SAM3解释threshold/refine_iterations/individual_masks、bboxes与坐标、默认/范围/单位或模型支持。具体调查集合见bounded…
|
||||
131 | … 主configure/proxyWidgets参考,未加载宿主/UE、模型或插件,不求值promoted。两个MarkdownNote和内部Note全文保留,32 tokens/逗号/:N仅源注释,不能当运行协议或下载授权。',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
132 | …视频/注释URL,不索取机器窗口。155完整定稿0/必要实跑0/新增转换0,保持停用未检查与原资格。']
|
||||
133 | …
|
||||
|
|
||||
|
||||
E501 Line too long (126 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:138:97
|
||||
|
|
||||
136 | … flow.append('原边 '+scope+' '+json.dumps(e,ensure_ascii=False))
|
||||
137 | … if scope!='root':
|
||||
138 | … flow.append('具名边界 '+scope+' '+json.dumps({k:g[k] for k in ['inputs','outputs','widgets']},ensure_ascii=False))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
139 | … for n in g['nodes']:
|
||||
140 | … flow.append('原节点 '+scope+' '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties']},ensure_as…
|
||||
|
|
||||
|
||||
E501 Line too long (146 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:140:98
|
||||
|
|
||||
138 | …{k:g[k] for k in ['inputs','outputs','widgets']},ensure_ascii=False))
|
||||
139 | …
|
||||
140 | …:n[k] for k in ['id','type','mode','inputs','outputs','properties']},ensure_ascii=False))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
141 | …(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
142 | ….hexdigest(),
|
||||
|
|
||||
|
||||
E501 Line too long (121 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:141:101
|
||||
|
|
||||
139 | for n in g['nodes']:
|
||||
140 | flow.append('原节点 '+scope+' '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties']},ensure_…
|
||||
141 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
142 | canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
|
||||
143 | notice='准确版本仅作参考;SAM3实现未找到、promoted/模型兼容/效果未知;视频静音,未实跑、转换保持关闭。',
|
||||
|
|
||||
|
||||
E501 Line too long (106 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:153:70
|
||||
|
|
||||
151 | … '操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。',
|
||||
152 | … '操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。',
|
||||
153 | … '操作4:核Alpha反转、temp PNG及视频FPS外线条件;图片预览不是永久导出,视频mode2不是产物。',
|
||||
| ^^^^^^
|
||||
154 | … '常见问题:32 tokens/逗号/:N仅源注释;遮罩方向/坐标格式/模型支持未知,不能凭参数名推断。素材、宿主/UE和真实效果待后续核实。'])
|
||||
|
|
||||
|
||||
E501 Line too long (141 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:154:67
|
||||
|
|
||||
152 | … VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。',
|
||||
153 | … 条件;图片预览不是永久导出,视频mode2不是产物。',
|
||||
154 | … 方向/坐标格式/模型支持未知,不能凭参数名推断。素材、宿主/UE和真实效果待后续核实。'])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (110 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:12:101
|
||||
|
|
||||
10 | PINS = {
|
||||
11 | 'core': ('Comfy-Org/ComfyUI', '3086026401180c9216bcb6ace442a4e3587d2c66', [
|
||||
12 | 'nodes.py', 'comfy_extras/nodes_compositing.py', 'comfy_extras/nodes_mask.py', 'comfy_extras/nodes_video.py',
|
||||
| ^^^^^^^^^^
|
||||
13 | 'comfy_api/latest/_input_impl/video_types.py', 'comfy_api/latest/_input/video_types.py',
|
||||
14 | 'comfy_api/latest/_util/video_types.py', 'comfy_api/latest/_ui.py',
|
||||
|
|
||||
|
||||
E501 Line too long (122 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:20:101
|
||||
|
|
||||
19 | def fetch(url):
|
||||
20 | with urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent':'HEL-892-static-review'}),timeout=35) as r:
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
21 | return r.read()
|
||||
|
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:36:101
|
||||
|
|
||||
34 | name=key+'__'+file.replace('/','__')
|
||||
35 | (REF/name).write_bytes(data)
|
||||
36 | return dict(id=key,commit=commit,file=file,url=url,local_file=name,sha256=hashlib.sha256(data).hexdigest(),git_blob_sha1=blob)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (166 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:47:101
|
||||
|
|
||||
45 | …
|
||||
46 | …or dependencies.
|
||||
47 | …ubgraph/','src/lib/litegraph/src/subgraph/')) and p.endswith(('/SubgraphNode.ts', '/Subgraph.ts'))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
48 | …ts','src/extensions/core/noteNode.ts','src/extensions/core/widgetInputs.ts','src/core/schemas/promotionSchema.ts','src/core/graph/sub…
|
||||
49 | …re_tree_paths=len(blobs),frontend_selected=files),indent=2)+'\n')
|
||||
|
|
||||
|
||||
E501 Line too long (400 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:48:101
|
||||
|
|
||||
46 | …
|
||||
47 | …/src/subgraph/')) and p.endswith(('/SubgraphNode.ts', '/Subgraph.ts'))]
|
||||
48 | …eNode.ts','src/extensions/core/widgetInputs.ts','s…src/stores/promotionStore.ts'] if p in blobs]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
49 | …ntend_selected=files),indent=2)+'\n')
|
||||
50 | …
|
||||
|
|
||||
|
||||
E501 Line too long (132 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/render_report.py:14:66
|
||||
|
|
||||
12 | def main():
|
||||
13 | lines = ["# SAM3提示词遮罩固定参考中文说明", "",
|
||||
14 | "新增18非注释位置+3完整源注释;旧26图820位置+16注释逐对象不变。27图838+19仅参考展示。155完整定稿0/实跑0/新增转换0。", "",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
15 | "来源local_file以docs/hel-892/sam3-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。", ""]
|
||||
16 | index = []
|
||||
|
|
||||
|
||||
E501 Line too long (131 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/render_report.py:15:81
|
||||
|
|
||||
13 | lines = ["# SAM3提示词遮罩固定参考中文说明", "",
|
||||
14 | "新增18非注释位置+3完整源注释;旧26图820位置+16注释逐对象不变。27图838+19仅参考展示。155完整定稿0/实跑0/新增转换0。", "",
|
||||
15 | "来源local_file以docs/hel-892/sam3-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。", ""]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
16 | index = []
|
||||
17 | for i in range(1):
|
||||
|
|
||||
|
||||
E501 Line too long (189 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/verify_sources.py:40:101
|
||||
|
|
||||
38 | …
|
||||
39 | …
|
||||
40 | …xtual files. Not all core source contents; no historical/newer versions. SAM3 implementation remains unknown.',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
41 | …
|
||||
42 | …
|
||||
|
|
||||
|
||||
E501 Line too long (200 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/verify_sources.py:44:101
|
||||
|
|
||||
42 | …
|
||||
43 | …
|
||||
44 | …get installation/UE/order', 'Muter provider/version', 'promoted final values']), ensure_ascii=False, indent=2)+'\n')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
45 | …
|
||||
46 | …
|
||||
|
|
||||
|
||||
Found 78 errors.
|
||||
No fixes available (7 hidden fixes can be enabled with the `--unsafe-fixes` option).
|
||||
@@ -0,0 +1,663 @@
|
||||
E501 Line too long (107 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:16:92
|
||||
|
|
||||
14 | REPO = Path(__file__).resolve().parents[2]
|
||||
15 | OUT = REPO / "docs/hel-892/sam3-document-evidence"
|
||||
16 | PATHS = [next(p for p in DEFINITIONS if p.endswith(n + ".json")) for n in ["sam3_图像视频-提示词遮罩分割"]]
|
||||
| ^^^^^^^
|
||||
17 | SOURCES = [json.loads((REPO / p).read_bytes()) for p in PATHS]
|
||||
18 | REVIEWS = [review_for(p, hashlib.sha1((REPO / p).read_bytes()).hexdigest()) for p in PATHS]
|
||||
|
|
||||
|
||||
E501 Line too long (104 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:89:101
|
||||
|
|
||||
88 | def refuse(source, review):
|
||||
89 | review['fixed_version_document']['canonical_sha256'] = hashlib.sha256(canonical(source)).hexdigest()
|
||||
| ^^^^
|
||||
90 | review['caller_digest'] = hashlib.sha256(canonical(review['fixed_version_document'])).hexdigest()
|
||||
91 | assert not doc(0, source, review)['fixed_version']['matched']
|
||||
|
|
||||
|
||||
E501 Line too long (101 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:90:101
|
||||
|
|
||||
88 | def refuse(source, review):
|
||||
89 | review['fixed_version_document']['canonical_sha256'] = hashlib.sha256(canonical(source)).hexdigest()
|
||||
90 | review['caller_digest'] = hashlib.sha256(canonical(review['fixed_version_document'])).hexdigest()
|
||||
| ^
|
||||
91 | assert not doc(0, source, review)['fixed_version']['matched']
|
||||
|
|
||||
|
||||
E501 Line too long (186 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:127:101
|
||||
|
|
||||
127 | …ts', 'boundary', 'frontend', 'ue', 'model', 'missing_muter', 'raw', 'citation', 'layout', 'summary', 'path'])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
128 | …
|
||||
129 | …
|
||||
|
|
||||
|
||||
E501 Line too long (123 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:146:101
|
||||
|
|
||||
144 | ns[154]['properties']['ue_properties']['version'] = '7.5'
|
||||
145 | elif variant == 'model':
|
||||
146 | next(n for n in d['nodes'] if n['type']=='CheckpointLoaderSimple')['properties']['models'][0]['name'] = 'forged.pt'
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
147 | elif variant == 'missing_muter':
|
||||
148 | ns[150]['widgets_values'] = []
|
||||
|
|
||||
|
||||
E501 Line too long (170 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:170:101
|
||||
|
|
||||
168 | …fixed_version_document' in r]
|
||||
169 | …ocks)==820
|
||||
170 | …), None, None, [], old[p])['source_notes']) for p in old if 'fixed_version_document' in old[p]) == 16
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
171 | …
|
||||
172 | …
|
||||
|
|
||||
|
||||
E702 Multiple statements on one line (semicolon)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:171:17
|
||||
|
|
||||
169 | assert len(oldblocks)==26 and sum(len(b['fields']) for b in oldblocks)==820
|
||||
170 | assert sum(len(build_document(p, json.loads((REPO/p).read_bytes()), None, None, [], old[p])['source_notes']) for p in old if 'fix…
|
||||
171 | g=SOURCES[0]; ns={n['id']:n for n in g['nodes']}
|
||||
| ^
|
||||
172 | assert len(ns)==15 and len(g['links'])==14
|
||||
173 | assert {i for i,n in ns.items() if n['mode']==2}=={131,132,133,134,135,137,136}
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:217:101
|
||||
|
|
||||
215 | for c in b['comments']:
|
||||
216 | assert pointer(g,c['pointer'])==[c['text']]
|
||||
217 | assert next(n for n in d['source_notes'] if n['node_id']==c['node_id'])['content']==[c['text']]
|
||||
| ^^^
|
||||
218 | assert not b['counts']['final_prompt_constructed']
|
||||
219 | assert all(word in ' '.join(b['flow']) for word in ['1-alpha','temp PNG','314','VAE未接','32 tokens/逗号/:N','未找到','promoted'])
|
||||
|
|
||||
|
||||
E501 Line too long (134 > 100)
|
||||
--> calliope-backend/tests/test_sam3_fixed_document.py:219:99
|
||||
|
|
||||
217 | assert next(n for n in d['source_notes'] if n['node_id']==c['node_id'])['content']==[c['text']]
|
||||
218 | assert not b['counts']['final_prompt_constructed']
|
||||
219 | assert all(word in ' '.join(b['flow']) for word in ['1-alpha','temp PNG','314','VAE未接','32 tokens/逗号/:N','未找到','promoted'])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:11:75
|
||||
|
|
||||
9 | OUT = Path(__file__).resolve().parent
|
||||
10 | REF = OUT.parent / 'sam3-reference'
|
||||
11 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json']
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (112 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:34:88
|
||||
|
|
||||
32 | return len(refs) - 1
|
||||
33 |
|
||||
34 | clip = ref('core', 'nodes.py', 59, 81, '文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族')
|
||||
| ^^^^^^^^^^^^
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
|
|
||||
|
||||
E501 Line too long (121 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:35:87
|
||||
|
|
||||
34 | clip = ref('core', 'nodes.py', 59, 81, '文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族')
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
|
|
||||
|
||||
E501 Line too long (107 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:36:88
|
||||
|
|
||||
34 | clip = ref('core', 'nodes.py', 59, 81, '文本schema及clip.tokenize/encode调用;不证明SAM3文本协议或CLIP家族')
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
| ^^^^^^^
|
||||
37 | ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
|
|
||||
|
||||
E501 Line too long (111 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:37:86
|
||||
|
|
||||
35 | ckpt = ref('core', 'nodes.py', 588, 610, '动态checkpoints列表、具名加载及MODEL/CLIP/VAE三出口,不证明SAM3模型受支持')
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
| ^^^^^^^^^^
|
||||
38 | ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
|
|
||||
|
||||
E501 Line too long (126 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:38:94
|
||||
|
|
||||
36 | image = ref('core', 'nodes.py', 1700, 1779, 'LoadImage动态图片列表、RGB及反向Alpha MASK;本图MASK未接')
|
||||
37 | ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
39 | ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
|
|
||||
|
||||
E501 Line too long (105 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:39:82
|
||||
|
|
||||
37 | ref('core', 'nodes.py', 1627, 1699, 'PreviewImage继承SaveImage,temp目录、随机后缀与PNG落盘,不是永久保存')
|
||||
38 | ref('core', 'comfy_extras/nodes_compositing.py', 188, 226, 'Join先resize_mask再1-alpha,批次取较短,拼前三RGB通道与Alpha')
|
||||
39 | ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
| ^^^^
|
||||
40 | ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
|
|
||||
|
||||
E501 Line too long (123 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:41:94
|
||||
|
|
||||
39 | ref('core', 'comfy_extras/nodes_compositing.py', 1, 30, '遮罩尺寸适配辅助函数及插值;未执行张量运算')
|
||||
40 | ref('core', 'comfy_extras/nodes_mask.py', 403, 445, 'MaskPreview注册并调用UI.PreviewMask')
|
||||
41 | ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
42 | ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
43 | video = ref('core', 'comfy_extras/nodes_video.py', 68, 205, '核心视频四节点的准确schema、fps外线、读取与保存调用')
|
||||
|
|
||||
|
||||
E501 Line too long (118 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:43:88
|
||||
|
|
||||
41 | ref('core', 'comfy_api/latest/_ui.py', 389, 412, 'PreviewMask展开为RGB,继承PreviewImage temp路径,不证明SAM3前景方向')
|
||||
42 | ref('core', 'comfy_api/latest/_ui.py', 88, 168, 'ImageSaveHelper输出PNG及目录创建条件')
|
||||
43 | video = ref('core', 'comfy_extras/nodes_video.py', 68, 205, '核心视频四节点的准确schema、fps外线、读取与保存调用')
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
44 | vreg = ref('core', 'comfy_extras/nodes_video.py', 259, 272, '视频扩展准确注册列表')
|
||||
45 | types = ref('core', 'comfy_api/latest/_util/video_types.py', 1, 52, '视频组件和容器/编码器枚举')
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:47:77
|
||||
|
|
||||
45 | types = ref('core', 'comfy_api/latest/_util/video_types.py', 1, 52, '视频组件和容器/编码器枚举')
|
||||
46 | # The bounded registry inspection explicitly cannot supply a SAM3 schema.
|
||||
47 | reg = ref('core', 'nodes.py', 2016, 2111, '核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现')
|
||||
| ^^
|
||||
48 | extra = ref('core', 'nodes.py', 2330, 2440, '扩展模块加载范围,未发现SAM3命名模块,非目标安装事实')
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:48:78
|
||||
|
|
||||
46 | # The bounded registry inspection explicitly cannot supply a SAM3 schema.
|
||||
47 | reg = ref('core', 'nodes.py', 2016, 2111, '核心旧式注册范围;仅核对现有注册,不把源声明当SAM3实现')
|
||||
48 | extra = ref('core', 'nodes.py', 2330, 2440, '扩展模块加载范围,未发现SAM3命名模块,非目标安装事实')
|
||||
| ^^
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
|
|
||||
|
||||
E501 Line too long (163 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:49:97
|
||||
|
|
||||
47 | … 核对现有注册,不把源声明当SAM3实现')
|
||||
48 | … 未发现SAM3命名模块,非目标安装事实')
|
||||
49 | …phNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
50 | ….py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存')
|
||||
51 | …te和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
|
|
||||
|
||||
E501 Line too long (161 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:50:101
|
||||
|
|
||||
48 | … ,未发现SAM3命名模块,非目标安装事实')
|
||||
49 | …aphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执行宿主或UE,不推算promoted值')
|
||||
50 | …s.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,不承诺四通道透明视频可保存')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
51 | …ote和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
52 | …, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
|
|
||||
|
||||
E501 Line too long (120 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:51:91
|
||||
|
|
||||
49 | host = ref('frontend', 'src/lib/litegraph/src/subgraph/SubgraphNode.ts', 993, 1123, '准确宿主configure/proxyWidgets恢复路径;不执…
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
51 | ref('frontend', 'src/extensions/core/noteNode.ts', 7, 83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
52 | widgets = ref('frontend', 'src/scripts/widgets.ts', 285, 307, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
53 | for key in ('core', 'frontend'):
|
||||
|
|
||||
|
||||
E501 Line too long (113 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:52:85
|
||||
|
|
||||
50 | vsave = ref('core', 'comfy_api/latest/_input_impl/video_types.py', 382, 459, 'VideoFromComponents仅MP4/H264、rgb24与yuv420p路径,…
|
||||
51 | ref('frontend', 'src/extensions/core/noteNode.ts', 7, 83, 'Note和MarkdownNote虚拟节点注册与文本保存,不执行注释URL')
|
||||
52 | widgets = ref('frontend', 'src/scripts/widgets.ts', 285, 307, '准确前端控件模块;上传附加状态不是服务端参数')
|
||||
| ^^^^^^^^^^^^
|
||||
53 | for key in ('core', 'frontend'):
|
||||
54 | entry = next(e for e in entries if e['id'] == key and e['file'] == 'LICENSE')
|
||||
|
|
||||
|
||||
E501 Line too long (111 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:55:96
|
||||
|
|
||||
53 | for key in ('core', 'frontend'):
|
||||
54 | entry = next(e for e in entries if e['id'] == key and e['file'] == 'LICENSE')
|
||||
55 | ref(key, 'LICENSE', 1, len((REF/entry['local_file']).read_text().splitlines()), '准确完整提交许可原文')
|
||||
| ^^^^^^^^^^
|
||||
56 |
|
||||
57 | specs = {}
|
||||
|
|
||||
|
||||
E501 Line too long (102 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:63:75
|
||||
|
|
||||
61 | unit=unit, limits=limits, effect=effect, evidence=evidence, role=role)
|
||||
62 |
|
||||
63 | spec('LoadVideo', 'file', '视频文件引用(静音支路)', 'COMBO', '动态列表,无固定默认', '文件引用',
|
||||
| ^^
|
||||
64 | '准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知',
|
||||
65 | '保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。', [video, vre…
|
||||
|
|
||||
|
||||
E501 Line too long (137 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:65:72
|
||||
|
|
||||
63 | … )', 'COMBO', '动态列表,无固定默认', '文件引用',
|
||||
64 | … 目标列表与路径未知',
|
||||
65 | …ode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。', [video, vreg])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
66 | … 存状态', '前端附加状态', '无服务端参数默认', '未知',
|
||||
67 | …
|
||||
|
|
||||
|
||||
E501 Line too long (105 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:66:77
|
||||
|
|
||||
64 | '准确核心扫描input目录文件并按video类型过滤;目标列表与路径未知',
|
||||
65 | '保存drinking_unicorn.mp4仅是源引用;132为mode2,不读取媒体、不称已上传或可生成视频。132的VIDEO分别接133和137。', [video, vre…
|
||||
66 | spec('LoadVideo', 'upload_state', '视频上传控件保存状态', '前端附加状态', '无服务端参数默认', '未知',
|
||||
| ^^^^
|
||||
67 | '保存image;不是LoadVideo第二个服务端参数',
|
||||
68 | '准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。', [video, …
|
||||
|
|
||||
|
||||
E501 Line too long (169 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:68:68
|
||||
|
|
||||
66 | … 状态', '无服务端参数默认', '未知',
|
||||
67 | …
|
||||
68 | … 前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。', [video, widgets], 'frontend_state_unknown')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
69 | …', '30.0', '帧/秒', 'schema为1~120,step1;源外线值未知',
|
||||
70 | …
|
||||
|
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:69:84
|
||||
|
|
||||
67 | '保存image;不是LoadVideo第二个服务端参数',
|
||||
68 | '准确schema只有file输入并带video上传声明;第二位置image仅保留前端状态。未加载宿主/UE,不当上传成功或媒体类型证明。', [video, …
|
||||
69 | spec('CreateVideo', 'fps', '帧率保存值(被物理外线覆盖)', 'FLOAT', '30.0', '帧/秒', 'schema为1~120,step1;源外线值未知',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
70 | ('保存30,但134.fps由133.fps经物理边314接入;133来自132的'
|
||||
71 | '视频,实际FPS未知,不用保存30推算时长。133.audio也接134,137'
|
||||
|
|
||||
|
||||
E501 Line too long (203 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:74:76
|
||||
|
|
||||
72 | …
|
||||
73 | …
|
||||
74 | … 长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
75 | … 持未知', '保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。'),
|
||||
76 | …保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
|
|
||||
|
||||
E501 Line too long (173 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:75:77
|
||||
|
|
||||
73 | …
|
||||
74 | …'字符串,源码无长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'),
|
||||
75 | … 展名mp4,目标支持未知', '保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
76 | … 编码器与Alpha保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
77 | …
|
||||
|
|
||||
|
||||
E501 Line too long (168 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:76:76
|
||||
|
|
||||
74 | …', '字符串,源码无长度上限;目录与权限未知', '保存video/ComfyUI。准确SaveVideo使用output目录和计数文件名,135为mode2,不宣称已落盘。'…
|
||||
75 | …to扩展名mp4,目标支持未知', '保存auto,不等于本图已经产生MP4或支持透明视频。实际编码容器和权限待核对。'),
|
||||
76 | … 际编码器与Alpha保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
77 | …
|
||||
78 | …refix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
|
|
||||
|
||||
E501 Line too long (151 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:78:101
|
||||
|
|
||||
76 | …o/h264;实际编码器与Alpha保留未知', '保存auto仅传入video.save_to;未执行媒体编码,不保证Alpha保留或效果。'),
|
||||
77 | …
|
||||
78 | …lename_prefix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
79 | …'动态列表,无固定默认', '文件引用', 'input图片动态成员,未核目录或文件存在',
|
||||
80 | …image,另一支'
|
||||
|
|
||||
|
||||
E501 Line too long (136 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:79:79
|
||||
|
|
||||
77 | …
|
||||
78 | …ame=='filename_prefix' else 'COMBO', default, '字符串/枚举', limits, effect, [video, types, vsave])
|
||||
79 | …COMBO', '动态列表,无固定默认', '文件引用', 'input图片动态成员,未核目录或文件存在',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
80 | … 接154.image,另一支'
|
||||
81 | …ASK'
|
||||
|
|
||||
|
||||
E501 Line too long (134 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:83:77
|
||||
|
|
||||
81 | …ASK'
|
||||
82 | …
|
||||
83 | … 存状态', '前端附加状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
84 | … 型参数或后台输入。未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
85 | … ', 'STRING', 'schema未显式默认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
|
|
||||
|
||||
E501 Line too long (156 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:84:65
|
||||
|
|
||||
82 | …
|
||||
83 | …'前端附加状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
84 | … 输入。未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
85 | …', 'schema未显式默认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
86 | … 自经Check'
|
||||
|
|
||||
|
||||
E501 Line too long (171 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:85:79
|
||||
|
|
||||
83 | … 状态', '无服务端参数默认', '未知', '保存image,仅前端附加状态',
|
||||
84 | … 未读取/上传该图片,宿主/UE恢复顺序未知。', [image, widgets], 'frontend_state_unknown')
|
||||
85 | …ema未显式默认,不能由现值当默认', '文本', '准确schema多行/dynamicPrompts;SAM3 token/逗号/:N规则未证',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
86 | …eck'
|
||||
87 | …
|
||||
|
|
||||
|
||||
E501 Line too long (188 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:89:84
|
||||
|
|
||||
87 | …
|
||||
88 | …aved_potential')
|
||||
89 | … ', 'COMBO', '动态checkpoints列表,无固定默认', '文件引用', '模型/CLIP家族及实际目录、动态列表与SAM3支持未知',
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
90 | …
|
||||
91 | …
|
||||
|
|
||||
|
||||
E501 Line too long (148 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:95:73
|
||||
|
|
||||
93 | …nal_saved_potential')
|
||||
94 | …
|
||||
95 | … 声明)', '未知', '内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
96 | …(仅源口声明)', '未知,次数仅字段名线索', '内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。'),
|
||||
97 | …BOOLEAN(仅源口声明)', '布尔保存态', '内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。'),
|
||||
|
|
||||
|
||||
E501 Line too long (160 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:96:73
|
||||
|
|
||||
94 | …
|
||||
95 | … ', '未知', '内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
96 | … 声明)', '未知,次数仅字段名线索', '内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
97 | …N(仅源口声明)', '布尔保存态', '内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。'),
|
||||
98 | …
|
||||
|
|
||||
|
||||
E501 Line too long (156 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:97:76
|
||||
|
|
||||
95 | … )', '未知', '内部保存0.5;不可编造默认、0~1范围、置信度阈值算法或实际筛选效果。'),
|
||||
96 | … 口声明)', '未知,次数仅字段名线索', '内部保存2;不可承诺执行两轮或编造范围、耗时与质量关系。'),
|
||||
97 | …EAN(仅源口声明)', '布尔保存态', '内部保存false;不猜合并/逐对象批次、遮罩方向或输出数量。'),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
98 | …
|
||||
99 | … 界注册/模块未找到该实现', unit,
|
||||
|
|
||||
|
||||
E501 Line too long (138 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:110:101
|
||||
|
|
||||
108 | …aderSimple':['ckpt_name'],
|
||||
109 | …tions','individual_masks']}
|
||||
110 | …finitions/subgraphs/{i}', d) for i,d in enumerate(graph['definitions']['subgraphs'])]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
111 | …
|
||||
112 | …
|
||||
|
|
||||
|
||||
E501 Line too long (109 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:115:101
|
||||
|
|
||||
113 | … vals=n.get('widgets_values')
|
||||
114 | … ptr=f'{prefix}/nodes/{i}/widgets_values'
|
||||
115 | … nid=str(n['id']) if scope=='root' else ('137' if scope==scopes[1][0] else '154')+':'+str(n['id'])
|
||||
| ^^^^^^^^^
|
||||
116 | … if n['type'] in ('MarkdownNote','Note'):
|
||||
117 | … comments.append(dict(node_id=str(n['id']) if scope=='root' else scope+'/'+str(n['id']),pointer=ptr,scope=scope,text=vals[0],
|
||||
|
|
||||
|
||||
E501 Line too long (140 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:117:101
|
||||
|
|
||||
115 | …37' if scope==scopes[1][0] else '154')+':'+str(n['id'])
|
||||
116 | …
|
||||
117 | …']) if scope=='root' else scope+'/'+str(n['id']),pointer=ptr,scope=scope,text=vals[0],
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
118 | … 的内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。'))
|
||||
119 | …
|
||||
|
|
||||
|
||||
E501 Line too long (148 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:118:72
|
||||
|
|
||||
116 | …
|
||||
117 | …if scope=='root' else scope+'/'+str(n['id']),pointer=ptr,scope=scope,text=vals[0],
|
||||
118 | … 容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。'))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
119 | …
|
||||
120 | …
|
||||
|
|
||||
|
||||
E501 Line too long (145 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:123:79
|
||||
|
|
||||
121 | …n['type'],effect=(
|
||||
122 | … ;不模拟Muter切换。' if vals is None else
|
||||
123 | … 义widgets与内部值分开,promoted未知。' if n['type'] in [scopes[1][0],scopes[2][0]] else
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
124 | … 虚构输入参数。')))
|
||||
125 | …
|
||||
|
|
||||
|
||||
E501 Line too long (104 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:128:101
|
||||
|
|
||||
126 | … for k,v in (vals.items() if isinstance(vals,dict) else enumerate(vals)):
|
||||
127 | … name=k if isinstance(vals,dict) else names[n['type']][k]
|
||||
128 | … fields.append({**specs[n['type'],name], 'node_id':nid,'definition_node_id':str(n['id']),
|
||||
| ^^^^
|
||||
129 | … 'class_type':n['type'],'scope':scope,'pointer':ptr+'/'+str(k),'value':v,'json_type':type(v).__name__,
|
||||
130 | … 'execution_note':f'原mode={n["mode"]};'+('根保存态。' if scope=='root' else '子图内部潜在保存值;具名边界外线与宿主空…
|
||||
|
|
||||
|
||||
E501 Line too long (169 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:130:93
|
||||
|
|
||||
128 | …,'definition_node_id':str(n['id']),
|
||||
129 | …r+'/'+str(k),'value':v,'json_type':type(v).__name__,
|
||||
130 | … 。' if scope=='root' else '子图内部潜在保存值;具名边界外线与宿主空保存态分开,不推算promoted。')+
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
131 | … 参考不证明安装或效果。未构造prompt。'})
|
||||
132 | …
|
||||
|
|
||||
|
||||
E501 Line too long (126 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:192:97
|
||||
|
|
||||
190 | … flow.append('原边 '+scope+' '+json.dumps(e,ensure_ascii=False))
|
||||
191 | … if scope!='root':
|
||||
192 | … flow.append('具名边界 '+scope+' '+json.dumps({k:g[k] for k in ['inputs','outputs','widgets']},ensure_ascii=False))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
193 | … for n in g['nodes']:
|
||||
194 | … flow.append('原节点 '+scope+' '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties']},ensure_as…
|
||||
|
|
||||
|
||||
E501 Line too long (146 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:194:98
|
||||
|
|
||||
192 | …{k:g[k] for k in ['inputs','outputs','widgets']},ensure_ascii=False))
|
||||
193 | …
|
||||
194 | …:n[k] for k in ['id','type','mode','inputs','outputs','properties']},ensure_ascii=False))
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
195 | …(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
196 | ….hexdigest(),
|
||||
|
|
||||
|
||||
E501 Line too long (121 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:195:101
|
||||
|
|
||||
193 | for n in g['nodes']:
|
||||
194 | flow.append('原节点 '+scope+' '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties']},ensure_…
|
||||
195 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
196 | canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
|
||||
197 | notice='准确版本仅作参考;SAM3实现未找到、promoted/模型兼容/效果未知;视频静音,未实跑、转换保持关闭。',
|
||||
|
|
||||
|
||||
E501 Line too long (106 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:210:70
|
||||
|
|
||||
208 | … '操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。',
|
||||
209 | … '操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。',
|
||||
210 | … '操作4:核Alpha反转、temp PNG及视频FPS外线条件;图片预览不是永久导出,视频mode2不是产物。',
|
||||
| ^^^^^^
|
||||
211 | … '常见问题:32 tokens/逗号/:N仅源注释;遮罩方向/坐标格式/模型支持未知,不能凭参数名推断。素材、宿主/UE和真实效果待后续核实。'])
|
||||
|
|
||||
|
||||
E501 Line too long (141 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:211:67
|
||||
|
|
||||
209 | … VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。',
|
||||
210 | … 条件;图片预览不是永久导出,视频mode2不是产物。',
|
||||
211 | … 方向/坐标格式/模型支持未知,不能凭参数名推断。素材、宿主/UE和真实效果待后续核实。'])
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (110 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:12:101
|
||||
|
|
||||
10 | PINS = {
|
||||
11 | 'core': ('Comfy-Org/ComfyUI', '3086026401180c9216bcb6ace442a4e3587d2c66', [
|
||||
12 | 'nodes.py', 'comfy_extras/nodes_compositing.py', 'comfy_extras/nodes_mask.py', 'comfy_extras/nodes_video.py',
|
||||
| ^^^^^^^^^^
|
||||
13 | 'comfy_api/latest/_input_impl/video_types.py', 'comfy_api/latest/_input/video_types.py',
|
||||
14 | 'comfy_api/latest/_util/video_types.py', 'comfy_api/latest/_ui.py',
|
||||
|
|
||||
|
||||
E501 Line too long (122 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:20:101
|
||||
|
|
||||
19 | def fetch(url):
|
||||
20 | with urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent':'HEL-892-static-review'}),timeout=35) as r:
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
21 | return r.read()
|
||||
|
|
||||
|
||||
E501 Line too long (127 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:36:101
|
||||
|
|
||||
34 | name=key+'__'+file.replace('/','__')
|
||||
35 | (REF/name).write_bytes(data)
|
||||
36 | return dict(id=key,commit=commit,file=file,url=url,local_file=name,sha256=hashlib.sha256(data).hexdigest(),git_blob_sha1=blob)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
E501 Line too long (166 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:47:101
|
||||
|
|
||||
45 | …
|
||||
46 | …or dependencies.
|
||||
47 | …ubgraph/','src/lib/litegraph/src/subgraph/')) and p.endswith(('/SubgraphNode.ts', '/Subgraph.ts'))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
48 | …ts','src/extensions/core/noteNode.ts','src/extensions/core/widgetInputs.ts','src/core/schemas/promotionSchema.ts','src/core/graph/sub…
|
||||
49 | …re_tree_paths=len(blobs),frontend_selected=files),indent=2)+'\n')
|
||||
|
|
||||
|
||||
E501 Line too long (400 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/fetch_sources.py:48:101
|
||||
|
|
||||
46 | …
|
||||
47 | …/src/subgraph/')) and p.endswith(('/SubgraphNode.ts', '/Subgraph.ts'))]
|
||||
48 | …eNode.ts','src/extensions/core/widgetInputs.ts','s…src/stores/promotionStore.ts'] if p in blobs]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
49 | …ntend_selected=files),indent=2)+'\n')
|
||||
50 | …
|
||||
|
|
||||
|
||||
E501 Line too long (132 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/render_report.py:14:66
|
||||
|
|
||||
12 | def main():
|
||||
13 | lines = ["# SAM3提示词遮罩固定参考中文说明", "",
|
||||
14 | "新增18非注释位置+3完整源注释;旧26图820位置+16注释逐对象不变。27图838+19仅参考展示。155完整定稿0/实跑0/新增转换0。", "",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
15 | "来源local_file以docs/hel-892/sam3-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。", ""]
|
||||
16 | index = []
|
||||
|
|
||||
|
||||
E501 Line too long (131 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/render_report.py:15:81
|
||||
|
|
||||
13 | lines = ["# SAM3提示词遮罩固定参考中文说明", "",
|
||||
14 | "新增18非注释位置+3完整源注释;旧26图820位置+16注释逐对象不变。27图838+19仅参考展示。155完整定稿0/实跑0/新增转换0。", "",
|
||||
15 | "来源local_file以docs/hel-892/sam3-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。", ""]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
16 | index = []
|
||||
17 | for i in range(1):
|
||||
|
|
||||
|
||||
E501 Line too long (200 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/verify_sources.py:49:101
|
||||
|
|
||||
47 | …
|
||||
48 | …
|
||||
49 | …get installation/UE/order', 'Muter provider/version', 'promoted final values']), ensure_ascii=False, indent=2)+'\n')
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
50 | …
|
||||
51 | …
|
||||
|
|
||||
|
||||
Found 62 errors.
|
||||
@@ -0,0 +1,67 @@
|
||||
E501 Line too long (151 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:363:74
|
||||
|
|
||||
361 | …
|
||||
362 | …
|
||||
363 | … 内容。32 tokens/逗号/:N、推荐模型与链接未证明运行规则,不打开URL、不作为下载或安装授权。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
364 | …
|
||||
365 | …
|
||||
|
|
||||
|
||||
E501 Line too long (109 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:375:82
|
||||
|
|
||||
373 | … "原缺widgets_values键,提供方/版本未知;不模拟Muter切换。"
|
||||
374 | … if vals is None
|
||||
375 | … else "原[]为零保存位置。宿主proxyWidgets/定义widgets与内部值分开,promoted未知。"
|
||||
| ^^^^^^^^^
|
||||
376 | … if n["type"] in [scopes[1][0], scopes[2][0]]
|
||||
377 | … else "原[]为零保存位置;按原节点模式保留,不虚构输入参数。"
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:398:72
|
||||
|
|
||||
396 | "根保存态。"
|
||||
397 | if scope == "root"
|
||||
398 | else "子图内部潜在保存值;具名边界外线与宿主空保存态分开,不推算promoted。"
|
||||
| ^^^
|
||||
399 | )
|
||||
400 | + "frontend1.42.15/core0.19.3/UE7.8仅源声明,准确源码参考不证明安装或效果。未构造prompt。",
|
||||
|
|
||||
|
||||
E501 Line too long (115 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:400:81
|
||||
|
|
||||
398 | else "子图内部潜在保存值;具名边界外线与宿主空保存态分开,不推算promoted。"
|
||||
399 | )
|
||||
400 | + "frontend1.42.15/core0.19.3/UE7.8仅源声明,准确源码参考不证明安装或效果。未构造prompt。",
|
||||
| ^^^^^^^^^^^^^^
|
||||
401 | }
|
||||
402 | )
|
||||
|
|
||||
|
||||
E501 Line too long (103 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:545:69
|
||||
|
|
||||
543 | … "操作2:分开核图片/视频定义的内部潜在文本、阈值和模型名;宿主未保存promoted值,不能按内部值造API。",
|
||||
544 | … "操作3:核.pt与.safetensors冲突、CLIP线与VAE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。",
|
||||
545 | … "操作4:核Alpha反转、temp PNG及视频FPS外线条件;图片预览不是永久导出,视频mode2不是产物。",
|
||||
| ^^
|
||||
546 | … "常见问题:32 tokens/逗号/:N仅源注释;遮罩方向/坐标格式/模型支持未知,不能凭参数名推断。素材、宿主/UE和真实效果待后续核实。…
|
||||
547 | … ],
|
||||
|
|
||||
|
||||
E501 Line too long (137 > 100)
|
||||
--> docs/hel-892/sam3-document-evidence/build_definition.py:546:65
|
||||
|
|
||||
544 | …AE未接、源注释完整文本;模型与规则未证,不下载、不运行链接。",
|
||||
545 | … 条件;图片预览不是永久导出,视频mode2不是产物。",
|
||||
546 | … 方向/坐标格式/模型支持未知,不能凭参数名推断。素材、宿主/UE和真实效果待后续核实。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
547 | …
|
||||
548 | …
|
||||
|
|
||||
|
||||
Found 6 errors.
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
added 255 packages, and audited 256 packages in 1s
|
||||
|
||||
59 packages are looking for funding
|
||||
run `npm fund` for details
|
||||
|
||||
found 0 vulnerabilities
|
||||
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "ac5a03a7b8f0b37fc93d023c83ebaa7a5bcadee43c88ae54a0ff04d674c656c3",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 27
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "b117cba5d0367f23e1bfeaa13b8244d00c120f8dcc14e7cb31072a5c323a2035",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 27
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 27
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json": "f38590f50690875872c362beff83e28f4419e30c40a298ad2dd7239acbeed1c2"
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
{
|
||||
"number": 25,
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532",
|
||||
"repo_id": 41,
|
||||
"repo": {
|
||||
"id": 41,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "leefer",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "\u767d\u6816\u77e5",
|
||||
"email": "2298888111@qq.com",
|
||||
"avatar_url": "http://gitea.xbay.cc/avatars/91b54124de25997159e246521e39a411c269d223991e40f108233dd43810b64c",
|
||||
"html_url": "http://gitea.xbay.cc/leefer",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-07-21T22:34:43+08:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "leefer"
|
||||
},
|
||||
"name": "aigc-home",
|
||||
"full_name": "leefer/aigc-home",
|
||||
"description": "AIGC\u5de5\u4f5c\u53f0",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 38358,
|
||||
"language": "",
|
||||
"languages_url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/languages",
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home",
|
||||
"url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home",
|
||||
"link": "",
|
||||
"ssh_url": "ssh://git@192.168.200.36:222/leefer/aigc-home.git",
|
||||
"clone_url": "http://gitea.xbay.cc/leefer/aigc-home.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 84,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 11,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-09-27T15:54:10+08:00",
|
||||
"updated_at": "2026-10-30T21:44:13+08:00",
|
||||
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": [
|
||||
"MIT"
|
||||
]
|
||||
}
|
||||
},
|
||||
"head": {
|
||||
"label": "agent/agent/a64a969a6a44",
|
||||
"ref": "agent/agent/a64a969a6a44",
|
||||
"sha": "981d2b023faed8afdfe2afa4dd19a4f5280a281f",
|
||||
"repo_id": 41,
|
||||
"repo": {
|
||||
"id": 41,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "leefer",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "\u767d\u6816\u77e5",
|
||||
"email": "2298888111@qq.com",
|
||||
"avatar_url": "http://gitea.xbay.cc/avatars/91b54124de25997159e246521e39a411c269d223991e40f108233dd43810b64c",
|
||||
"html_url": "http://gitea.xbay.cc/leefer",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-07-21T22:34:43+08:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "leefer"
|
||||
},
|
||||
"name": "aigc-home",
|
||||
"full_name": "leefer/aigc-home",
|
||||
"description": "AIGC\u5de5\u4f5c\u53f0",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 38358,
|
||||
"language": "",
|
||||
"languages_url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/languages",
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home",
|
||||
"url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home",
|
||||
"link": "",
|
||||
"ssh_url": "ssh://git@192.168.200.36:222/leefer/aigc-home.git",
|
||||
"clone_url": "http://gitea.xbay.cc/leefer/aigc-home.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 84,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 11,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-09-27T15:54:10+08:00",
|
||||
"updated_at": "2026-10-30T21:44:13+08:00",
|
||||
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": [
|
||||
"MIT"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"auto_complete": {
|
||||
"issue_disabled": false,
|
||||
"pull_request_ids": [],
|
||||
"state": "none",
|
||||
"target_status": "done",
|
||||
"workspace_enabled": true
|
||||
},
|
||||
"pull_requests": []
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
"calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"calliope-backend/tests/test_sam3_fixed_document.py",
|
||||
"e2e/run-sam3-document.py",
|
||||
"docs/hel-892/sam3-document-evidence/build_definition.py",
|
||||
"docs/hel-892/sam3-document-evidence/check_code.py",
|
||||
"docs/hel-892/sam3-document-evidence/fetch_sources.py",
|
||||
"docs/hel-892/sam3-document-evidence/rebuild.py",
|
||||
"docs/hel-892/sam3-document-evidence/recompute.py",
|
||||
"docs/hel-892/sam3-document-evidence/render_report.py",
|
||||
"docs/hel-892/sam3-document-evidence/repeat.py",
|
||||
"docs/hel-892/sam3-document-evidence/request_counts.py",
|
||||
"docs/hel-892/sam3-document-evidence/verify_sources.py"
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
All checks passed!
|
||||
12 files already formatted
|
||||
PASS 12 authored Python files and one JS syntax check
|
||||
@@ -0,0 +1,3 @@
|
||||
All checks passed!
|
||||
11 files already formatted
|
||||
PASS 11 authored Python files and one JS syntax check
|
||||
@@ -0,0 +1 @@
|
||||
PASS one definition; other 155 reviews and old 26 blocks unchanged
|
||||
@@ -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 = "8b4b9ca81720cf39606d4a46b008f5df9ee90f70"
|
||||
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 26 blocks unchanged"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
PASS one definition; other 155 reviews and old 26 blocks unchanged
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS 23 Git text originals, 2 tree metadata JSON, 20 citations
|
||||
PASS actual 8b4b9ca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 27 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS 23 Git text originals, 2 tree metadata JSON, 20 citations
|
||||
PASS actual 8b4b9ca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 27 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,330 @@
|
||||
"Actual 8b4b9ca 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()
|
||||
from verify_sources import main as verify_sources
|
||||
|
||||
verify_sources()
|
||||
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) == 26
|
||||
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
|
||||
assert sum(len(b["fields"]) for b in old_blocks.values()) == 820
|
||||
for p, d in DEFINITIONS.items():
|
||||
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
|
||||
write(
|
||||
"review-delta.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
changed_paths=PATHS,
|
||||
other_reviews_unchanged=155,
|
||||
old_blocks_unchanged=26,
|
||||
old_saved=820,
|
||||
old_notes=16,
|
||||
new_saved=18,
|
||||
new_notes=3,
|
||||
total_documents=27,
|
||||
total_saved=838,
|
||||
total_notes=19,
|
||||
),
|
||||
)
|
||||
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=18,
|
||||
new_notes=3,
|
||||
old_saved=820,
|
||||
old_notes=16,
|
||||
overviews=27,
|
||||
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_six_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=27,
|
||||
)
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
"PASS actual 8b4b9ca upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1/29cols, fresh155,"
|
||||
" 1217/3660/294, 27 definitions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,109 @@
|
||||
"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 = [
|
||||
"# SAM3提示词遮罩固定参考中文说明",
|
||||
"",
|
||||
"新增18非注释位置+3完整源注释;旧26图820位置+16注释逐对象不变。27图838+19仅参考展示。155完整定稿0/实跑0/新增转换0。",
|
||||
"",
|
||||
"来源local_file以docs/hel-892/sam3-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。",
|
||||
"",
|
||||
]
|
||||
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 / "SAM3提示词遮罩固定参考中文说明.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 @@
|
||||
PASS deterministic definitions and rendered artifacts: zero difference
|
||||
@@ -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 / "SAM3提示词遮罩固定参考中文说明.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=27,
|
||||
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 @@
|
||||
PASS deterministic definitions and rendered artifacts: zero difference
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"definitions": 27,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "219dab33ce76a7d4312b0884b50f7bb448d1931434c6c17ade9a36fe1ad87a90",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "b892321cf690b7c8c34041bb6c7d0dd1efdeb4607f535d98ac2596412cf255a0",
|
||||
"SAM3提示词遮罩固定参考中文说明.md": "3bb6275651598463b3c1662f3a737b06d6d9c9ebf8a63e0d2b235669b0b28d97"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"total": 97, "fixed_count": 89, "polling_count": 8, "paths": {"/api/workflows": 3, "/api/workflows/4": 4, "/api/workflows/15": 4, "/api/workflows/11": 3, "/api/workflows/3": 3, "/api/workflows/9": 3, "/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": 8, "/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": "8b4b9ca81720cf39606d4a46b008f5df9ee90f70",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 26,
|
||||
"old_saved": 820,
|
||||
"old_notes": 16,
|
||||
"new_saved": 18,
|
||||
"new_notes": 3,
|
||||
"total_documents": 27,
|
||||
"total_saved": 838,
|
||||
"total_notes": 19
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 336 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 406 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 290 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 90 KiB |
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"total": 97,
|
||||
"fixed_count": 89,
|
||||
"polling_count": 8,
|
||||
"paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/4": 4,
|
||||
"/api/workflows/15": 4,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/9": 3,
|
||||
"/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": 8,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"readiness_included": 1,
|
||||
"reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
INFO: Started server process [671706]
|
||||
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': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:34870 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34876 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34884 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34916 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:34900 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34920 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34936 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34942 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:35974 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35976 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35980 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35992 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36008 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36016 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36018 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36020 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36032 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36034 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36048 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36060 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36068 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36082 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36090 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36096 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:36108 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36116 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36132 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36136 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:36142 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36154 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36170 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:36186 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33638 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33642 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33656 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33658 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33664 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33678 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33684 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33698 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33712 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33720 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33728 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33730 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33746 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33752 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33758 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33762 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33776 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33778 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33788 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33794 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33810 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33826 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33830 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33136 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33150 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33158 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33174 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33178 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33194 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33206 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33218 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33226 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33228 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33238 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33248 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33252 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33254 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33258 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33272 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [671706]
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
VITE v6.4.3 ready in 284 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
@@ -0,0 +1 @@
|
||||
PASS 23 Git text originals, 2 tree metadata JSON, 20 citations
|
||||
@@ -0,0 +1,219 @@
|
||||
{
|
||||
"local_file_base": "docs/hel-892/sam3-reference",
|
||||
"git_texts": 23,
|
||||
"registry_texts": 0,
|
||||
"tree_metadata_json": 2,
|
||||
"unique_commits": 2,
|
||||
"files": [
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/nodes.py",
|
||||
"local_file": "core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c",
|
||||
"git_blob_sha1": "299b3d7585fb3ab27668dbe7add929b209cd65b7"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_compositing.py",
|
||||
"local_file": "core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb",
|
||||
"git_blob_sha1": "3bc9fccb3e85ffa57a83d23c02a089fc5eea3eff"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_mask.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_mask.py",
|
||||
"local_file": "core__comfy_extras__nodes_mask.py",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5",
|
||||
"git_blob_sha1": "c446025974bcb83deea6abf11e870015f45da960"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_extras/nodes_video.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_extras/nodes_video.py",
|
||||
"local_file": "core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575",
|
||||
"git_blob_sha1": "5c096c232e1bcdd8a797085db110cb931b44e951"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_input_impl/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input_impl/video_types.py",
|
||||
"local_file": "core__comfy_api__latest___input_impl__video_types.py",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918",
|
||||
"git_blob_sha1": "1b4993aa74c0fe91b8139aa60751a91c4f298cc9"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_input/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_input/video_types.py",
|
||||
"local_file": "core__comfy_api__latest___input__video_types.py",
|
||||
"sha256": "6a4cdb3085ed8a4289e63168536e9a530c95aad94c7e2de1eddf8738af11f5a7",
|
||||
"git_blob_sha1": "451e9526e86d21b966d938f722cce6f21f00ba4f"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_util/video_types.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_util/video_types.py",
|
||||
"local_file": "core__comfy_api__latest___util__video_types.py",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02",
|
||||
"git_blob_sha1": "fd3b5a510df4d1bd0b65141bd3d27953ec9cfc9a"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_ui.py",
|
||||
"local_file": "core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "comfy_api/latest/_io.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/comfy_api/latest/_io.py",
|
||||
"local_file": "core__comfy_api__latest___io.py",
|
||||
"sha256": "7808265ecb4ce92af76ec1e100ff92fd9880fd7e60d113621dad6e602f6f9bd5",
|
||||
"git_blob_sha1": "fdeffea2dbe562183f487607fbc0f95a253610a8"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "folder_paths.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/folder_paths.py",
|
||||
"local_file": "core__folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"commit": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/3086026401180c9216bcb6ace442a4e3587d2c66/LICENSE",
|
||||
"local_file": "core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/LICENSE",
|
||||
"local_file": "frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/Subgraph.ts",
|
||||
"local_file": "frontend__src__lib__litegraph__src__subgraph__Subgraph.ts",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2",
|
||||
"git_blob_sha1": "e1f2f0b255a703e9735761fd83d75ee3eb21334e"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"local_file": "frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"sha256": "32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2",
|
||||
"git_blob_sha1": "3fc76441cc0fa19f8b0b07c2c6c2a606c3629b96"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/widgets.ts",
|
||||
"local_file": "frontend__src__scripts__widgets.ts",
|
||||
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
|
||||
"git_blob_sha1": "517e6f0e836f01df6c2ab08f3fe71d096d54aad6"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/scripts/app.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/scripts/app.ts",
|
||||
"local_file": "frontend__src__scripts__app.ts",
|
||||
"sha256": "fbf38e4187868366276b2ece2b3c95ff9e0e8d4c9057e2f056b79dd554e8c65f",
|
||||
"git_blob_sha1": "44c6a63aa4761b8264c40b5eca1422fdeccf8393"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/extensions/core/noteNode.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/extensions/core/noteNode.ts",
|
||||
"local_file": "frontend__src__extensions__core__noteNode.ts",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2",
|
||||
"git_blob_sha1": "7e0ec56a6fb83f81c754efd30eb597b45bd5b072"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/extensions/core/widgetInputs.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/extensions/core/widgetInputs.ts",
|
||||
"local_file": "frontend__src__extensions__core__widgetInputs.ts",
|
||||
"sha256": "e37bdb998b863483f51d07d31ae193dc2aa1657d4c450cc3b1640af51be5caea",
|
||||
"git_blob_sha1": "b4a69a3e4a2b10ac2a07fc952b050da499564c3e"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/core/schemas/promotionSchema.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/core/schemas/promotionSchema.ts",
|
||||
"local_file": "frontend__src__core__schemas__promotionSchema.ts",
|
||||
"sha256": "9ac20e83b4edb612843b63fb9dd8545833ca839bd810cadbdfd36fd681d37208",
|
||||
"git_blob_sha1": "4e7e506ef99141f5b6e12b95f4941eb7bd730238"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/core/graph/subgraph/resolvePromotedWidgetSource.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/core/graph/subgraph/resolvePromotedWidgetSource.ts",
|
||||
"local_file": "frontend__src__core__graph__subgraph__resolvePromotedWidgetSource.ts",
|
||||
"sha256": "1adee97211025178f2a805e80e7331016aee16ac25daddd6dbd4d05db6d2b792",
|
||||
"git_blob_sha1": "3eaa565d4509c9ae7ce3a08197fdef7098245a70"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/core/graph/subgraph/legacyProxyWidgetNormalization.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/core/graph/subgraph/legacyProxyWidgetNormalization.ts",
|
||||
"local_file": "frontend__src__core__graph__subgraph__legacyProxyWidgetNormalization.ts",
|
||||
"sha256": "4b49a05fd56513960c4e4b0fb623432b4743a8c2dff91ded1fb4984f59f3508a",
|
||||
"git_blob_sha1": "0b56019dd3836b63f229056f4b494a77e92b8b77"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/core/graph/subgraph/resolveSubgraphInputTarget.ts",
|
||||
"local_file": "frontend__src__core__graph__subgraph__resolveSubgraphInputTarget.ts",
|
||||
"sha256": "cbd6d3d16cf94acc0ca3d333028a0b6b91f4c1a011fe5947345c4a31048ba6ed",
|
||||
"git_blob_sha1": "f5242c03028af4082ad73baf9b956aafa5459711"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"commit": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"file": "src/stores/promotionStore.ts",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/4705b3186ecd621151daf95dd702009b266bd819/src/stores/promotionStore.ts",
|
||||
"local_file": "frontend__src__stores__promotionStore.ts",
|
||||
"sha256": "9f81a45729996ab094907c300051f8a3ffdf92813faf7bf61c70849ff8e2eadb",
|
||||
"git_blob_sha1": "db3caefa08b4eedca0b41911ea1804e989d012b7"
|
||||
}
|
||||
],
|
||||
"citations": 20,
|
||||
"no_upstream_execution": true,
|
||||
"no_assets_fetched": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS 23 Git text originals, 2 tree metadata JSON, 20 citations
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
docs/hel-892/sam3-document-evidence/backend-initial.txt:18: trailing whitespace.
|
||||
+calliope-backend/tests/test_sam3_fixed_document.py:170:
|
||||
docs/hel-892/sam3-document-evidence/backend-initial.txt:19: trailing whitespace.
|
||||
+_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
docs/hel-892/sam3-reference/core__comfy_api__latest___util__video_types.py:51: new blank line at EOF.
|
||||
@@ -0,0 +1,201 @@
|
||||
{
|
||||
"base": "8b4b9ca81720cf39606d4a46b008f5df9ee90f70",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"sha256": "ac5a03a7b8f0b37fc93d023c83ebaa7a5bcadee43c88ae54a0ff04d674c656c3"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"sha256": "b117cba5d0367f23e1bfeaa13b8244d00c120f8dcc14e7cb31072a5c323a2035"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_sam3_fixed_document.py",
|
||||
"sha256": "5df402d6eeb0aeed5c61cae96564be44c04d390a7be0aa61053b26edbfe08730"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/SAM3提示词遮罩固定参考中文说明.md",
|
||||
"sha256": "3bb6275651598463b3c1662f3a737b06d6d9c9ebf8a63e0d2b235669b0b28d97"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/actual-sam3_图像视频-提示词遮罩分割.json",
|
||||
"sha256": "1a542bce8a15a68b81649c6afa6f7c26fdf291a6ef83f7c8b15f280ae54a67df"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/bounded-investigation.json",
|
||||
"sha256": "303b53a0c41e9ad103354029262d21c2f231f4b2a6c15c335d60e3adee70b6d3"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/build_definition.py",
|
||||
"sha256": "c6d304faa47e840147142eddac336b00acf2d4758d1972d2344c0a455d0a1cae"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/check_code.py",
|
||||
"sha256": "20a6f962e7b1361ac9f5e8c4cf83a8f7e6086a8568a550c3356df9fe0ecfc752"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/definition-0.json",
|
||||
"sha256": "fdf81b220422d18df3fe5be0506008e70f89832890d6d31f086b692ee2157dfd"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/fetch_sources.py",
|
||||
"sha256": "5ea50f2cc8db07a6dfaa4c7626e7f27c636349b7d66671fd39544d595f50f6f2"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/fixed-source-index.json",
|
||||
"sha256": "b892321cf690b7c8c34041bb6c7d0dd1efdeb4607f535d98ac2596412cf255a0"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/pins.json",
|
||||
"sha256": "186e87cad083e8f6f18e1e49a83646820ec48bb15ee27eb54f209934491e492d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/rebuild.py",
|
||||
"sha256": "ed704b01f68b2717f6642ac6f8ab0687294cc771a1856ebc20484a7815dc53c7"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/recompute.py",
|
||||
"sha256": "4a46ed7b20440a6e9d07255661d5ac3f7b1d85a3dfa9d00282525f6ab3edeaf6"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/render_report.py",
|
||||
"sha256": "20b3665f36504fb43ca2295cec1d4bfd57dd2ef2461506db8dc728c723ee64f6"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/repeat.py",
|
||||
"sha256": "5ea621da2017d88526c20b303d3238eec66086faa7a6c3fc4337db7402495f83"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/request_counts.py",
|
||||
"sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-document-evidence/verify_sources.py",
|
||||
"sha256": "8fbf7cafa7b777a403bd4dfc14602957a613821752f55deb156f9f4ecf7334e3"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core-tag.json",
|
||||
"sha256": "daeac54ed95d852da08857ebd2d973272b5ea3a5d908a207a031db89c2551c8e"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core-tree.json",
|
||||
"sha256": "228997e489fd245e22b0f5abf7c1455373e198e87d59ca407ae3087c680e6611"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___input__video_types.py",
|
||||
"sha256": "6a4cdb3085ed8a4289e63168536e9a530c95aad94c7e2de1eddf8738af11f5a7"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___input_impl__video_types.py",
|
||||
"sha256": "08f8d78ed0e1b75f8bbc8dbec2fdb7d992f939478159ead24f251a6ec9c0a918"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___io.py",
|
||||
"sha256": "7808265ecb4ce92af76ec1e100ff92fd9880fd7e60d113621dad6e602f6f9bd5"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_api__latest___util__video_types.py",
|
||||
"sha256": "b20939f97928f634bedbb39dd003c8b04e560118807cda57dbb5ed3b8ac71a02"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "3ef9f03b3a8aedb173f9bd96c063d5a1c1ce95be1b06984b226738892db36aeb"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_extras__nodes_mask.py",
|
||||
"sha256": "504946dc000194a6cd827cc355693195ec9c59f53b46563547aa2bfcf5aac9b5"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__comfy_extras__nodes_video.py",
|
||||
"sha256": "1dc7e77804692e66446b4b70e1fd83b99dbaa197d1a25d621ea6f1a139dbc575"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/core__nodes.py",
|
||||
"sha256": "b35b2cae768a5ee3b79b85ed154a6a167690f1dd56540ad644314c3c53559e1c"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend-tag.json",
|
||||
"sha256": "49a14cfb9b47c37c9f68ef8a9f121f5d00ba89154e3e3fe573342a3a6dccf437"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend-tree.json",
|
||||
"sha256": "73b68ba9110c703d6621c49a2e9aa481feae7fd75967338695336f0f7a9c0117"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__graph__subgraph__legacyProxyWidgetNormalization.ts",
|
||||
"sha256": "4b49a05fd56513960c4e4b0fb623432b4743a8c2dff91ded1fb4984f59f3508a"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__graph__subgraph__resolvePromotedWidgetSource.ts",
|
||||
"sha256": "1adee97211025178f2a805e80e7331016aee16ac25daddd6dbd4d05db6d2b792"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__graph__subgraph__resolveSubgraphInputTarget.ts",
|
||||
"sha256": "cbd6d3d16cf94acc0ca3d333028a0b6b91f4c1a011fe5947345c4a31048ba6ed"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__core__schemas__promotionSchema.ts",
|
||||
"sha256": "9ac20e83b4edb612843b63fb9dd8545833ca839bd810cadbdfd36fd681d37208"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__extensions__core__noteNode.ts",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__extensions__core__widgetInputs.ts",
|
||||
"sha256": "e37bdb998b863483f51d07d31ae193dc2aa1657d4c450cc3b1640af51be5caea"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__lib__litegraph__src__subgraph__Subgraph.ts",
|
||||
"sha256": "321403ca3ba2faa0b448dec6e8bf379e49ddea4bfbe8619547d29926e30d62d2"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"sha256": "32f2e5a4d4c8325d5c73cdb15719c33fec1fd52e7767a82c26a49b493959e2d2"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__scripts__app.ts",
|
||||
"sha256": "fbf38e4187868366276b2ece2b3c95ff9e0e8d4c9057e2f056b79dd554e8c65f"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/frontend__src__stores__promotionStore.ts",
|
||||
"sha256": "9f81a45729996ab094907c300051f8a3ffdf92813faf7bf61c70849ff8e2eadb"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/sam3-reference/sources.json",
|
||||
"sha256": "0c92357b0c0ead8f5c4e55a718e8e7d1a057d130952163a2bc3a3a91a7cb8902"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-sam3-document.py",
|
||||
"sha256": "00dff28b3aa5d9b207685d1015407fe77608cf1e96e6c5a211b2e5ffc4b693c9"
|
||||
},
|
||||
{
|
||||
"path": "e2e/sam3-document.mjs",
|
||||
"sha256": "0734fcd54e26d9eab81380b8bd962f1f147908ba421e04a44041bb617bdf1143"
|
||||
},
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
|
||||
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
# 仓库根执行,锁定既有依赖;不执行上游/模型/媒体,不连接目标。
|
||||
# 所有Python命令使用PYTHONDONTWRITEBYTECODE=1,防止再次入库字节缓存。
|
||||
PYTHONDONTWRITEBYTECODE=1 uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
|
||||
npm ci --prefix calliope-web --ignore-scripts --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/sam3-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/sam3-document-evidence/rebuild.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_sam3_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/sam3-document-evidence/check_code.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/sam3-document-evidence/recompute.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/sam3-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 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-sam3-document.py
|
||||
# runner同步结束并finally停两个服务;浏览产物在.local-evidence/sam3-document/browser。
|
||||
# 将browser-results.json/service-stop.json复制本目录,将service-0.log复制为service-0.txt后核对请求计数:
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/sam3-document-evidence/request_counts.py
|
||||
# 可选联网重取23个准确Git文本(只文本,tag与tree原件另附;不搜索历史或较新版本):
|
||||
# PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/sam3-document-evidence/fetch_sources.py
|
||||
# 示例报告:review-delta.json / import-protection.json / source-check.json /
|
||||
# bounded-investigation.json / package-check.json / repeatability.json / browser-results.json
|
||||
@@ -0,0 +1,109 @@
|
||||
"Verify exact Git blob bytes without importing upstream modules or reading media."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REF, REPO, build
|
||||
|
||||
|
||||
def main():
|
||||
entries = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
for e in entries:
|
||||
raw = (REF / e["local_file"]).read_bytes()
|
||||
tree = json.loads((REF / (e["id"] + "-tree.json")).read_bytes())
|
||||
assert tree["sha"] == e["commit"] and not tree["truncated"]
|
||||
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
assert (
|
||||
blob
|
||||
== e["git_blob_sha1"]
|
||||
== next(x["sha"] for x in tree["tree"] if x["path"] == e["file"])
|
||||
)
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
tags = {}
|
||||
for key in ["core", "frontend"]:
|
||||
tag = json.loads((REF / (key + "-tag.json")).read_bytes())
|
||||
tree = json.loads((REF / (key + "-tree.json")).read_bytes())
|
||||
assert tag["object"]["type"] == "commit" and tag["object"]["sha"] == tree["sha"]
|
||||
tags[key] = dict(tag=tag["ref"], commit=tree["sha"], tree_truncated=tree["truncated"])
|
||||
core_files = [e for e in entries if e["id"] == "core"]
|
||||
checked = []
|
||||
for e in core_files:
|
||||
text = (REF / e["local_file"]).read_text()
|
||||
hits = [i for i, line in enumerate(text.splitlines(), 1) if "SAM3_Detect" in line]
|
||||
assert not hits
|
||||
checked.append(dict(path=e["file"], sha256=e["sha256"], matches=hits))
|
||||
tree = json.loads((REF / "core-tree.json").read_bytes())
|
||||
paths = [e["path"] for e in tree["tree"]]
|
||||
matches = [p for p in paths if "sam3" in p.lower()]
|
||||
assert not matches
|
||||
(OUT / "bounded-investigation.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
scope=(
|
||||
"Complete core tree path names plus only "
|
||||
"the listed necessary textual files. Not "
|
||||
"all core source contents; no historical/"
|
||||
"newer versions. SAM3 implementation rema"
|
||||
"ins unknown."
|
||||
),
|
||||
tags=tags,
|
||||
core_tree_paths=len(paths),
|
||||
sam3_path_matches=matches,
|
||||
sam3_detect_scanned_files=checked,
|
||||
frontend_files=[e["file"] for e in entries if e["id"] == "frontend"],
|
||||
unknown=[
|
||||
"SAM3_Detect schema/default/range/units/coords/model support",
|
||||
"target installation/UE/order",
|
||||
"Muter provider/version",
|
||||
"promoted final values",
|
||||
],
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
b = build()
|
||||
g = json.loads((REPO / b["source_path"]).read_bytes())
|
||||
for e in b["sources"]:
|
||||
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())
|
||||
graphs = dict(
|
||||
source_path=b["source_path"],
|
||||
raw_sha256=b["source_sha256"],
|
||||
canonical_sha256=b["canonical_sha256"],
|
||||
nodes=g["nodes"],
|
||||
links=g["links"],
|
||||
extra=g["extra"],
|
||||
counts=b["counts"],
|
||||
missing_widgets=[150],
|
||||
definitions=g["definitions"],
|
||||
)
|
||||
(OUT / "source-graphs.json").write_text(json.dumps(graphs, ensure_ascii=False, indent=2) + "\n")
|
||||
(OUT / "source-check.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
local_file_base="docs/hel-892/sam3-reference",
|
||||
git_texts=len(entries),
|
||||
registry_texts=0,
|
||||
tree_metadata_json=2,
|
||||
unique_commits=2,
|
||||
files=entries,
|
||||
citations=len(b["sources"]),
|
||||
no_upstream_execution=True,
|
||||
no_assets_fetched=True,
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
f"PASS {len(entries)} Git text originals, 2 tree metadata JSON, "
|
||||
f"{len(b['sources'])} citations"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,5 @@
|
||||
实际目验最终5张截图:1440默认、390默认、1440流程、1440内部模型现值及来源、390完整内部Note。
|
||||
用途先读;技术来源默认折叠;标题与停用/未定稿/未实跑标识可读。活动图片/静音视频、模型名冲突及promoted未知明确。
|
||||
模型展开保留.pt现值、.safetensors冲突、内部作用域与原指针;内部Note完整纯文本展示,不运行链接。
|
||||
390px正文自动换行,无横向溢出;仅纵向滚动,不把截图下方内容裁切误当缺失。
|
||||
1070浏览断言与截图一致。未改Drawer/样式;未进行目标环境/真实媒体/模型/执行效果验收。
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"ref": "refs/tags/v0.19.3",
|
||||
"node_id": "REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMTkuMw",
|
||||
"url": "https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.19.3",
|
||||
"object": {
|
||||
"sha": "3086026401180c9216bcb6ace442a4e3587d2c66",
|
||||
"type": "commit",
|
||||
"url": "https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/3086026401180c9216bcb6ace442a4e3587d2c66"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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,128 @@
|
||||
from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
from fractions import Fraction
|
||||
from typing import Optional, Union, IO
|
||||
import io
|
||||
import av
|
||||
from .._util import VideoContainer, VideoCodec, VideoComponents
|
||||
|
||||
class VideoInput(ABC):
|
||||
"""
|
||||
Abstract base class for video input types.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def get_components(self) -> VideoComponents:
|
||||
"""
|
||||
Abstract method to get the video components (images, audio, and frame rate).
|
||||
|
||||
Returns:
|
||||
VideoComponents containing images, audio, and frame rate
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def save_to(
|
||||
self,
|
||||
path: Union[str, IO[bytes]],
|
||||
format: VideoContainer = VideoContainer.AUTO,
|
||||
codec: VideoCodec = VideoCodec.AUTO,
|
||||
metadata: Optional[dict] = None
|
||||
):
|
||||
"""
|
||||
Abstract method to save the video input to a file.
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def as_trimmed(
|
||||
self,
|
||||
start_time: float | None = None,
|
||||
duration: float | None = None,
|
||||
strict_duration: bool = False,
|
||||
) -> VideoInput | None:
|
||||
"""
|
||||
Create a new VideoInput which is trimmed to have the corresponding start_time and duration
|
||||
|
||||
Returns:
|
||||
A new VideoInput, or None if the result would have negative duration
|
||||
"""
|
||||
pass
|
||||
|
||||
def get_stream_source(self) -> Union[str, io.BytesIO]:
|
||||
"""
|
||||
Get a streamable source for the video. This allows processing without
|
||||
loading the entire video into memory.
|
||||
|
||||
Returns:
|
||||
Either a file path (str) or a BytesIO object that can be opened with av.
|
||||
|
||||
Default implementation creates a BytesIO buffer, but subclasses should
|
||||
override this for better performance when possible.
|
||||
"""
|
||||
buffer = io.BytesIO()
|
||||
self.save_to(buffer)
|
||||
buffer.seek(0)
|
||||
return buffer
|
||||
|
||||
# Provide a default implementation, but subclasses can provide optimized versions
|
||||
# if possible.
|
||||
def get_dimensions(self) -> tuple[int, int]:
|
||||
"""
|
||||
Returns the dimensions of the video input.
|
||||
|
||||
Returns:
|
||||
Tuple of (width, height)
|
||||
"""
|
||||
components = self.get_components()
|
||||
return components.images.shape[2], components.images.shape[1]
|
||||
|
||||
def get_duration(self) -> float:
|
||||
"""
|
||||
Returns the duration of the video in seconds.
|
||||
|
||||
Returns:
|
||||
Duration in seconds
|
||||
"""
|
||||
components = self.get_components()
|
||||
frame_count = components.images.shape[0]
|
||||
return float(frame_count / components.frame_rate)
|
||||
|
||||
def get_frame_count(self) -> int:
|
||||
"""
|
||||
Returns the number of frames in the video.
|
||||
|
||||
Default implementation uses :meth:`get_components`, which may require
|
||||
loading all frames into memory. File-based implementations should
|
||||
override this method and use container/stream metadata instead.
|
||||
|
||||
Returns:
|
||||
Total number of frames as an integer.
|
||||
"""
|
||||
return int(self.get_components().images.shape[0])
|
||||
|
||||
def get_frame_rate(self) -> Fraction:
|
||||
"""
|
||||
Returns the frame rate of the video.
|
||||
|
||||
Default implementation materializes the video into memory via
|
||||
`get_components()`. Subclasses that can inspect the underlying
|
||||
container (e.g. `VideoFromFile`) should override this with a more
|
||||
efficient implementation.
|
||||
|
||||
Returns:
|
||||
Frame rate as a Fraction.
|
||||
"""
|
||||
return self.get_components().frame_rate
|
||||
|
||||
def get_container_format(self) -> str:
|
||||
"""
|
||||
Returns the container format of the video (e.g., 'mp4', 'mov', 'avi').
|
||||
|
||||
Returns:
|
||||
Container format as string
|
||||
"""
|
||||
# Default implementation - subclasses should override for better performance
|
||||
source = self.get_stream_source()
|
||||
with av.open(source, mode="r") as container:
|
||||
return container.format.name
|
||||
@@ -0,0 +1,469 @@
|
||||
from __future__ import annotations
|
||||
from av.container import InputContainer
|
||||
from av.subtitles.stream import SubtitleStream
|
||||
from fractions import Fraction
|
||||
from typing import Optional
|
||||
from .._input import AudioInput, VideoInput
|
||||
import av
|
||||
import io
|
||||
import itertools
|
||||
import json
|
||||
import numpy as np
|
||||
import math
|
||||
import torch
|
||||
from .._util import VideoContainer, VideoCodec, VideoComponents
|
||||
|
||||
|
||||
def container_to_output_format(container_format: str | None) -> str | None:
|
||||
"""
|
||||
A container's `format` may be a comma-separated list of formats.
|
||||
E.g., iso container's `format` may be `mov,mp4,m4a,3gp,3g2,mj2`.
|
||||
However, writing to a file/stream with `av.open` requires a single format,
|
||||
or `None` to auto-detect.
|
||||
"""
|
||||
if not container_format:
|
||||
return None # Auto-detect
|
||||
|
||||
if "," not in container_format:
|
||||
return container_format
|
||||
|
||||
formats = container_format.split(",")
|
||||
return formats[0]
|
||||
|
||||
def get_open_write_kwargs(
|
||||
dest: str | io.BytesIO, container_format: str, to_format: str | None
|
||||
) -> dict:
|
||||
"""Get kwargs for writing a `VideoFromFile` to a file/stream with `av.open`"""
|
||||
open_kwargs = {
|
||||
"mode": "w",
|
||||
# If isobmff, preserve custom metadata tags (workflow, prompt, extra_pnginfo)
|
||||
"options": {"movflags": "use_metadata_tags"},
|
||||
}
|
||||
|
||||
is_write_to_buffer = isinstance(dest, io.BytesIO)
|
||||
if is_write_to_buffer:
|
||||
# Set output format explicitly, since it cannot be inferred from file extension
|
||||
if to_format == VideoContainer.AUTO:
|
||||
to_format = container_format.lower()
|
||||
elif isinstance(to_format, str):
|
||||
to_format = to_format.lower()
|
||||
open_kwargs["format"] = container_to_output_format(to_format)
|
||||
|
||||
return open_kwargs
|
||||
|
||||
|
||||
class VideoFromFile(VideoInput):
|
||||
"""
|
||||
Class representing video input from a file.
|
||||
"""
|
||||
|
||||
def __init__(self, file: str | io.BytesIO, *, start_time: float=0, duration: float=0):
|
||||
"""
|
||||
Initialize the VideoFromFile object based off of either a path on disk or a BytesIO object
|
||||
containing the file contents.
|
||||
"""
|
||||
self.__file = file
|
||||
self.__start_time = start_time
|
||||
self.__duration = duration
|
||||
|
||||
def get_stream_source(self) -> str | io.BytesIO:
|
||||
"""
|
||||
Return the underlying file source for efficient streaming.
|
||||
This avoids unnecessary memory copies when the source is already a file path.
|
||||
"""
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0)
|
||||
return self.__file
|
||||
|
||||
def get_dimensions(self) -> tuple[int, int]:
|
||||
"""
|
||||
Returns the dimensions of the video input.
|
||||
|
||||
Returns:
|
||||
Tuple of (width, height)
|
||||
"""
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0) # Reset the BytesIO object to the beginning
|
||||
with av.open(self.__file, mode='r') as container:
|
||||
for stream in container.streams:
|
||||
if stream.type == 'video':
|
||||
assert isinstance(stream, av.VideoStream)
|
||||
return stream.width, stream.height
|
||||
raise ValueError(f"No video stream found in file '{self.__file}'")
|
||||
|
||||
def get_duration(self) -> float:
|
||||
"""
|
||||
Returns the duration of the video in seconds.
|
||||
|
||||
Returns:
|
||||
Duration in seconds
|
||||
"""
|
||||
raw_duration = self._get_raw_duration()
|
||||
if self.__start_time < 0:
|
||||
duration_from_start = min(raw_duration, -self.__start_time)
|
||||
else:
|
||||
duration_from_start = raw_duration - self.__start_time
|
||||
if self.__duration:
|
||||
return min(self.__duration, duration_from_start)
|
||||
return duration_from_start
|
||||
|
||||
def _get_raw_duration(self) -> float:
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0)
|
||||
with av.open(self.__file, mode="r") as container:
|
||||
if container.duration is not None:
|
||||
return float(container.duration / av.time_base)
|
||||
|
||||
# Fallback: calculate from frame count and frame rate
|
||||
video_stream = next(
|
||||
(s for s in container.streams if s.type == "video"), None
|
||||
)
|
||||
if video_stream and video_stream.frames and video_stream.average_rate:
|
||||
return float(video_stream.frames / video_stream.average_rate)
|
||||
|
||||
# Last resort: decode frames to count them
|
||||
if video_stream and video_stream.average_rate:
|
||||
frame_count = 0
|
||||
container.seek(0)
|
||||
frame_iterator = (
|
||||
container.decode(video_stream)
|
||||
if video_stream.codec.capabilities & 0x100
|
||||
else container.demux(video_stream)
|
||||
)
|
||||
for packet in frame_iterator:
|
||||
frame_count += 1
|
||||
if frame_count > 0:
|
||||
return float(frame_count / video_stream.average_rate)
|
||||
|
||||
raise ValueError(f"Could not determine duration for file '{self.__file}'")
|
||||
|
||||
def get_frame_count(self) -> int:
|
||||
"""
|
||||
Returns the number of frames in the video without materializing them as
|
||||
torch tensors.
|
||||
"""
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0)
|
||||
|
||||
with av.open(self.__file, mode="r") as container:
|
||||
video_stream = self._get_first_video_stream(container)
|
||||
# 1. Prefer the frames field if available and usable
|
||||
if (
|
||||
video_stream.frames
|
||||
and video_stream.frames > 0
|
||||
and not self.__start_time
|
||||
and not self.__duration
|
||||
):
|
||||
return int(video_stream.frames)
|
||||
|
||||
# 2. Try to estimate from duration and average_rate using only metadata
|
||||
if (
|
||||
getattr(video_stream, "duration", None) is not None
|
||||
and getattr(video_stream, "time_base", None) is not None
|
||||
and video_stream.average_rate
|
||||
):
|
||||
raw_duration = float(video_stream.duration * video_stream.time_base)
|
||||
if self.__start_time < 0:
|
||||
duration_from_start = min(raw_duration, -self.__start_time)
|
||||
else:
|
||||
duration_from_start = raw_duration - self.__start_time
|
||||
duration_seconds = min(self.__duration, duration_from_start)
|
||||
estimated_frames = int(round(duration_seconds * float(video_stream.average_rate)))
|
||||
if estimated_frames > 0:
|
||||
return estimated_frames
|
||||
|
||||
# 3. Last resort: decode frames and count them (streaming)
|
||||
if self.__start_time < 0:
|
||||
start_time = max(self._get_raw_duration() + self.__start_time, 0)
|
||||
else:
|
||||
start_time = self.__start_time
|
||||
frame_count = 1
|
||||
start_pts = int(start_time / video_stream.time_base)
|
||||
end_pts = int((start_time + self.__duration) / video_stream.time_base)
|
||||
container.seek(start_pts, stream=video_stream)
|
||||
frame_iterator = (
|
||||
container.decode(video_stream)
|
||||
if video_stream.codec.capabilities & 0x100
|
||||
else container.demux(video_stream)
|
||||
)
|
||||
for frame in frame_iterator:
|
||||
if frame.pts >= start_pts:
|
||||
break
|
||||
else:
|
||||
raise ValueError(f"Could not determine frame count for file '{self.__file}'\nNo frames exist for start_time {self.__start_time}")
|
||||
for frame in frame_iterator:
|
||||
if frame.pts >= end_pts:
|
||||
break
|
||||
frame_count += 1
|
||||
return frame_count
|
||||
|
||||
def get_frame_rate(self) -> Fraction:
|
||||
"""
|
||||
Returns the average frame rate of the video using container metadata
|
||||
without decoding all frames.
|
||||
"""
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0)
|
||||
|
||||
with av.open(self.__file, mode="r") as container:
|
||||
video_stream = self._get_first_video_stream(container)
|
||||
# Preferred: use PyAV's average_rate (usually already a Fraction-like)
|
||||
if video_stream.average_rate:
|
||||
return Fraction(video_stream.average_rate)
|
||||
|
||||
# Fallback: estimate from frames + duration if available
|
||||
if video_stream.frames and container.duration:
|
||||
duration_seconds = float(container.duration / av.time_base)
|
||||
if duration_seconds > 0:
|
||||
return Fraction(video_stream.frames / duration_seconds).limit_denominator()
|
||||
|
||||
# Last resort: match get_components_internal default
|
||||
return Fraction(1)
|
||||
|
||||
def get_container_format(self) -> str:
|
||||
"""
|
||||
Returns the container format of the video (e.g., 'mp4', 'mov', 'avi').
|
||||
|
||||
Returns:
|
||||
Container format as string
|
||||
"""
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0)
|
||||
with av.open(self.__file, mode='r') as container:
|
||||
return container.format.name
|
||||
|
||||
def get_components_internal(self, container: InputContainer) -> VideoComponents:
|
||||
video_stream = self._get_first_video_stream(container)
|
||||
if self.__start_time < 0:
|
||||
start_time = max(self._get_raw_duration() + self.__start_time, 0)
|
||||
else:
|
||||
start_time = self.__start_time
|
||||
# Get video frames
|
||||
frames = []
|
||||
start_pts = int(start_time / video_stream.time_base)
|
||||
end_pts = int((start_time + self.__duration) / video_stream.time_base)
|
||||
container.seek(start_pts, stream=video_stream)
|
||||
for frame in container.decode(video_stream):
|
||||
if frame.pts < start_pts:
|
||||
continue
|
||||
if self.__duration and frame.pts >= end_pts:
|
||||
break
|
||||
img = frame.to_ndarray(format='rgb24') # shape: (H, W, 3)
|
||||
img = torch.from_numpy(img) / 255.0 # shape: (H, W, 3)
|
||||
frames.append(img)
|
||||
|
||||
images = torch.stack(frames) if len(frames) > 0 else torch.zeros(0, 3, 0, 0)
|
||||
|
||||
# Get frame rate
|
||||
frame_rate = Fraction(video_stream.average_rate) if video_stream.average_rate else Fraction(1)
|
||||
|
||||
# Get audio if available
|
||||
audio = None
|
||||
container.seek(start_pts, stream=video_stream)
|
||||
# Use last stream for consistency
|
||||
if len(container.streams.audio):
|
||||
audio_stream = container.streams.audio[-1]
|
||||
audio_frames = []
|
||||
resample = av.audio.resampler.AudioResampler(format='fltp').resample
|
||||
frames = itertools.chain.from_iterable(
|
||||
map(resample, container.decode(audio_stream))
|
||||
)
|
||||
|
||||
has_first_frame = False
|
||||
for frame in frames:
|
||||
offset_seconds = start_time - frame.pts * audio_stream.time_base
|
||||
to_skip = max(0, int(offset_seconds * audio_stream.sample_rate))
|
||||
if to_skip < frame.samples:
|
||||
has_first_frame = True
|
||||
break
|
||||
if has_first_frame:
|
||||
audio_frames.append(frame.to_ndarray()[..., to_skip:])
|
||||
|
||||
for frame in frames:
|
||||
if self.__duration and frame.time > start_time + self.__duration:
|
||||
break
|
||||
audio_frames.append(frame.to_ndarray()) # shape: (channels, samples)
|
||||
if len(audio_frames) > 0:
|
||||
audio_data = np.concatenate(audio_frames, axis=1) # shape: (channels, total_samples)
|
||||
if self.__duration:
|
||||
audio_data = audio_data[..., :int(self.__duration * audio_stream.sample_rate)]
|
||||
|
||||
audio_tensor = torch.from_numpy(audio_data).unsqueeze(0) # shape: (1, channels, total_samples)
|
||||
audio = AudioInput({
|
||||
"waveform": audio_tensor,
|
||||
"sample_rate": int(audio_stream.sample_rate) if audio_stream.sample_rate else 1,
|
||||
})
|
||||
|
||||
metadata = container.metadata
|
||||
return VideoComponents(images=images, audio=audio, frame_rate=frame_rate, metadata=metadata)
|
||||
|
||||
def get_components(self) -> VideoComponents:
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0) # Reset the BytesIO object to the beginning
|
||||
with av.open(self.__file, mode='r') as container:
|
||||
return self.get_components_internal(container)
|
||||
raise ValueError(f"No video stream found in file '{self.__file}'")
|
||||
|
||||
def save_to(
|
||||
self,
|
||||
path: str | io.BytesIO,
|
||||
format: VideoContainer = VideoContainer.AUTO,
|
||||
codec: VideoCodec = VideoCodec.AUTO,
|
||||
metadata: Optional[dict] = None,
|
||||
):
|
||||
if isinstance(self.__file, io.BytesIO):
|
||||
self.__file.seek(0) # Reset the BytesIO object to the beginning
|
||||
with av.open(self.__file, mode='r') as container:
|
||||
container_format = container.format.name
|
||||
video_encoding = container.streams.video[0].codec.name if len(container.streams.video) > 0 else None
|
||||
reuse_streams = True
|
||||
if format != VideoContainer.AUTO and format not in container_format.split(","):
|
||||
reuse_streams = False
|
||||
if codec != VideoCodec.AUTO and codec != video_encoding and video_encoding is not None:
|
||||
reuse_streams = False
|
||||
if self.__start_time or self.__duration:
|
||||
reuse_streams = False
|
||||
|
||||
if not reuse_streams:
|
||||
components = self.get_components_internal(container)
|
||||
video = VideoFromComponents(components)
|
||||
return video.save_to(
|
||||
path, format=format, codec=codec, metadata=metadata
|
||||
)
|
||||
|
||||
streams = container.streams
|
||||
|
||||
open_kwargs = get_open_write_kwargs(path, container_format, format)
|
||||
with av.open(path, **open_kwargs) as output_container:
|
||||
# Copy over the original metadata
|
||||
for key, value in container.metadata.items():
|
||||
if metadata is None or key not in metadata:
|
||||
output_container.metadata[key] = value
|
||||
|
||||
# Add our new metadata
|
||||
if metadata is not None:
|
||||
for key, value in metadata.items():
|
||||
if isinstance(value, str):
|
||||
output_container.metadata[key] = value
|
||||
else:
|
||||
output_container.metadata[key] = json.dumps(value)
|
||||
|
||||
# Add streams to the new container
|
||||
stream_map = {}
|
||||
for stream in streams:
|
||||
if isinstance(stream, (av.VideoStream, av.AudioStream, SubtitleStream)):
|
||||
out_stream = output_container.add_stream_from_template(template=stream, opaque=True)
|
||||
stream_map[stream] = out_stream
|
||||
|
||||
# Write packets to the new container
|
||||
for packet in container.demux():
|
||||
if packet.stream in stream_map and packet.dts is not None:
|
||||
packet.stream = stream_map[packet.stream]
|
||||
output_container.mux(packet)
|
||||
|
||||
def _get_first_video_stream(self, container: InputContainer):
|
||||
if len(container.streams.video):
|
||||
return container.streams.video[0]
|
||||
raise ValueError(f"No video stream found in file '{self.__file}'")
|
||||
|
||||
def as_trimmed(
|
||||
self, start_time: float = 0, duration: float = 0, strict_duration: bool = True
|
||||
) -> VideoInput | None:
|
||||
trimmed = VideoFromFile(
|
||||
self.get_stream_source(),
|
||||
start_time=start_time + self.__start_time,
|
||||
duration=duration,
|
||||
)
|
||||
if trimmed.get_duration() < duration and strict_duration:
|
||||
return None
|
||||
return trimmed
|
||||
|
||||
|
||||
class VideoFromComponents(VideoInput):
|
||||
"""
|
||||
Class representing video input from tensors.
|
||||
"""
|
||||
|
||||
def __init__(self, components: VideoComponents):
|
||||
self.__components = components
|
||||
|
||||
def get_components(self) -> VideoComponents:
|
||||
return VideoComponents(
|
||||
images=self.__components.images,
|
||||
audio=self.__components.audio,
|
||||
frame_rate=self.__components.frame_rate,
|
||||
)
|
||||
|
||||
def save_to(
|
||||
self,
|
||||
path: str,
|
||||
format: VideoContainer = VideoContainer.AUTO,
|
||||
codec: VideoCodec = VideoCodec.AUTO,
|
||||
metadata: Optional[dict] = None,
|
||||
):
|
||||
"""Save the video to a file path or BytesIO buffer."""
|
||||
if format != VideoContainer.AUTO and format != VideoContainer.MP4:
|
||||
raise ValueError("Only MP4 format is supported for now")
|
||||
if codec != VideoCodec.AUTO and codec != VideoCodec.H264:
|
||||
raise ValueError("Only H264 codec is supported for now")
|
||||
extra_kwargs = {}
|
||||
if isinstance(format, VideoContainer) and format != VideoContainer.AUTO:
|
||||
extra_kwargs["format"] = format.value
|
||||
elif isinstance(path, io.BytesIO):
|
||||
# BytesIO has no file extension, so av.open can't infer the format.
|
||||
# Default to mp4 since that's the only supported format anyway.
|
||||
extra_kwargs["format"] = "mp4"
|
||||
with av.open(path, mode='w', options={'movflags': 'use_metadata_tags'}, **extra_kwargs) as output:
|
||||
# Add metadata before writing any streams
|
||||
if metadata is not None:
|
||||
for key, value in metadata.items():
|
||||
output.metadata[key] = json.dumps(value)
|
||||
|
||||
frame_rate = Fraction(round(self.__components.frame_rate * 1000), 1000)
|
||||
# Create a video stream
|
||||
video_stream = output.add_stream('h264', rate=frame_rate)
|
||||
video_stream.width = self.__components.images.shape[2]
|
||||
video_stream.height = self.__components.images.shape[1]
|
||||
video_stream.pix_fmt = 'yuv420p'
|
||||
|
||||
# Create an audio stream
|
||||
audio_sample_rate = 1
|
||||
audio_stream: Optional[av.AudioStream] = None
|
||||
if self.__components.audio:
|
||||
audio_sample_rate = int(self.__components.audio['sample_rate'])
|
||||
waveform = self.__components.audio['waveform']
|
||||
waveform = waveform[0, :, :math.ceil((audio_sample_rate / frame_rate) * self.__components.images.shape[0])]
|
||||
layout = {1: 'mono', 2: 'stereo', 6: '5.1'}.get(waveform.shape[0], 'stereo')
|
||||
audio_stream = output.add_stream('aac', rate=audio_sample_rate, layout=layout)
|
||||
|
||||
# Encode video
|
||||
for i, frame in enumerate(self.__components.images):
|
||||
img = (frame * 255).clamp(0, 255).byte().cpu().numpy() # shape: (H, W, 3)
|
||||
frame = av.VideoFrame.from_ndarray(img, format='rgb24')
|
||||
frame = frame.reformat(format='yuv420p') # Convert to YUV420P as required by h264
|
||||
packet = video_stream.encode(frame)
|
||||
output.mux(packet)
|
||||
|
||||
# Flush video
|
||||
packet = video_stream.encode(None)
|
||||
output.mux(packet)
|
||||
|
||||
if audio_stream and self.__components.audio:
|
||||
frame = av.AudioFrame.from_ndarray(waveform.float().cpu().contiguous().numpy(), format='fltp', layout=layout)
|
||||
frame.sample_rate = audio_sample_rate
|
||||
frame.pts = 0
|
||||
output.mux(audio_stream.encode(frame))
|
||||
|
||||
# Flush encoder
|
||||
output.mux(audio_stream.encode(None))
|
||||
|
||||
def as_trimmed(
|
||||
self,
|
||||
start_time: float | None = None,
|
||||
duration: float | None = None,
|
||||
strict_duration: bool = True,
|
||||
) -> VideoInput | None:
|
||||
if self.get_duration() < start_time + duration:
|
||||
return None
|
||||
#TODO Consider tracking duration and trimming at time of save?
|
||||
return VideoFromFile(self.get_stream_source(), start_time=start_time, duration=duration)
|
||||
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,52 @@
|
||||
from __future__ import annotations
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum
|
||||
from fractions import Fraction
|
||||
from typing import Optional
|
||||
from .._input import ImageInput, AudioInput
|
||||
|
||||
class VideoCodec(str, Enum):
|
||||
AUTO = "auto"
|
||||
H264 = "h264"
|
||||
|
||||
@classmethod
|
||||
def as_input(cls) -> list[str]:
|
||||
"""
|
||||
Returns a list of codec names that can be used as node input.
|
||||
"""
|
||||
return [member.value for member in cls]
|
||||
|
||||
class VideoContainer(str, Enum):
|
||||
AUTO = "auto"
|
||||
MP4 = "mp4"
|
||||
|
||||
@classmethod
|
||||
def as_input(cls) -> list[str]:
|
||||
"""
|
||||
Returns a list of container names that can be used as node input.
|
||||
"""
|
||||
return [member.value for member in cls]
|
||||
|
||||
@classmethod
|
||||
def get_extension(cls, value) -> str:
|
||||
"""
|
||||
Returns the file extension for the container.
|
||||
"""
|
||||
if isinstance(value, str):
|
||||
value = cls(value)
|
||||
if value == VideoContainer.MP4 or value == VideoContainer.AUTO:
|
||||
return "mp4"
|
||||
return ""
|
||||
|
||||
@dataclass
|
||||
class VideoComponents:
|
||||
"""
|
||||
Dataclass representing the components of a video.
|
||||
"""
|
||||
|
||||
images: ImageInput
|
||||
frame_rate: Fraction
|
||||
audio: Optional[AudioInput] = None
|
||||
metadata: Optional[dict] = None
|
||||
|
||||
|
||||
@@ -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,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,272 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import av
|
||||
import torch
|
||||
import folder_paths
|
||||
import json
|
||||
from typing import Optional
|
||||
from typing_extensions import override
|
||||
from fractions import Fraction
|
||||
from comfy_api.latest import ComfyExtension, io, ui, Input, InputImpl, Types
|
||||
from comfy.cli_args import args
|
||||
|
||||
class SaveWEBM(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="SaveWEBM",
|
||||
search_aliases=["export webm"],
|
||||
category="image/video",
|
||||
is_experimental=True,
|
||||
inputs=[
|
||||
io.Image.Input("images"),
|
||||
io.String.Input("filename_prefix", default="ComfyUI"),
|
||||
io.Combo.Input("codec", options=["vp9", "av1"]),
|
||||
io.Float.Input("fps", default=24.0, min=0.01, max=1000.0, step=0.01),
|
||||
io.Float.Input("crf", default=32.0, min=0, max=63.0, step=1, tooltip="Higher crf means lower quality with a smaller file size, lower crf means higher quality higher filesize."),
|
||||
],
|
||||
hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, images, codec, fps, filename_prefix, crf) -> io.NodeOutput:
|
||||
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
|
||||
filename_prefix, folder_paths.get_output_directory(), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
|
||||
file = f"{filename}_{counter:05}_.webm"
|
||||
container = av.open(os.path.join(full_output_folder, file), mode="w")
|
||||
|
||||
if cls.hidden.prompt is not None:
|
||||
container.metadata["prompt"] = json.dumps(cls.hidden.prompt)
|
||||
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
container.metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
|
||||
|
||||
codec_map = {"vp9": "libvpx-vp9", "av1": "libsvtav1"}
|
||||
stream = container.add_stream(codec_map[codec], rate=Fraction(round(fps * 1000), 1000))
|
||||
stream.width = images.shape[-2]
|
||||
stream.height = images.shape[-3]
|
||||
stream.pix_fmt = "yuv420p10le" if codec == "av1" else "yuv420p"
|
||||
stream.bit_rate = 0
|
||||
stream.options = {'crf': str(crf)}
|
||||
if codec == "av1":
|
||||
stream.options["preset"] = "6"
|
||||
|
||||
for frame in images:
|
||||
frame = av.VideoFrame.from_ndarray(torch.clamp(frame[..., :3] * 255, min=0, max=255).to(device=torch.device("cpu"), dtype=torch.uint8).numpy(), format="rgb24")
|
||||
for packet in stream.encode(frame):
|
||||
container.mux(packet)
|
||||
container.mux(stream.encode())
|
||||
container.close()
|
||||
|
||||
return io.NodeOutput(ui=ui.PreviewVideo([ui.SavedResult(file, subfolder, io.FolderType.output)]))
|
||||
|
||||
class SaveVideo(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="SaveVideo",
|
||||
search_aliases=["export video"],
|
||||
display_name="Save Video",
|
||||
category="image/video",
|
||||
essentials_category="Basics",
|
||||
description="Saves the input images to your ComfyUI output directory.",
|
||||
inputs=[
|
||||
io.Video.Input("video", tooltip="The video to save."),
|
||||
io.String.Input("filename_prefix", default="video/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."),
|
||||
io.Combo.Input("format", options=Types.VideoContainer.as_input(), default="auto", tooltip="The format to save the video as."),
|
||||
io.Combo.Input("codec", options=Types.VideoCodec.as_input(), default="auto", tooltip="The codec to use for the video."),
|
||||
],
|
||||
hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, video: Input.Video, filename_prefix, format: str, codec) -> io.NodeOutput:
|
||||
width, height = video.get_dimensions()
|
||||
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
|
||||
filename_prefix,
|
||||
folder_paths.get_output_directory(),
|
||||
width,
|
||||
height
|
||||
)
|
||||
saved_metadata = None
|
||||
if not args.disable_metadata:
|
||||
metadata = {}
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
metadata.update(cls.hidden.extra_pnginfo)
|
||||
if cls.hidden.prompt is not None:
|
||||
metadata["prompt"] = cls.hidden.prompt
|
||||
if len(metadata) > 0:
|
||||
saved_metadata = metadata
|
||||
file = f"{filename}_{counter:05}_.{Types.VideoContainer.get_extension(format)}"
|
||||
video.save_to(
|
||||
os.path.join(full_output_folder, file),
|
||||
format=Types.VideoContainer(format),
|
||||
codec=codec,
|
||||
metadata=saved_metadata
|
||||
)
|
||||
|
||||
return io.NodeOutput(ui=ui.PreviewVideo([ui.SavedResult(file, subfolder, io.FolderType.output)]))
|
||||
|
||||
|
||||
class CreateVideo(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="CreateVideo",
|
||||
search_aliases=["images to video"],
|
||||
display_name="Create Video",
|
||||
category="image/video",
|
||||
description="Create a video from images.",
|
||||
inputs=[
|
||||
io.Image.Input("images", tooltip="The images to create a video from."),
|
||||
io.Float.Input("fps", default=30.0, min=1.0, max=120.0, step=1.0),
|
||||
io.Audio.Input("audio", optional=True, tooltip="The audio to add to the video."),
|
||||
],
|
||||
outputs=[
|
||||
io.Video.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, images: Input.Image, fps: float, audio: Optional[Input.Audio] = None) -> io.NodeOutput:
|
||||
return io.NodeOutput(
|
||||
InputImpl.VideoFromComponents(Types.VideoComponents(images=images, audio=audio, frame_rate=Fraction(fps)))
|
||||
)
|
||||
|
||||
class GetVideoComponents(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="GetVideoComponents",
|
||||
search_aliases=["extract frames", "split video", "video to images", "demux"],
|
||||
display_name="Get Video Components",
|
||||
category="image/video",
|
||||
description="Extracts all components from a video: frames, audio, and framerate.",
|
||||
inputs=[
|
||||
io.Video.Input("video", tooltip="The video to extract components from."),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(display_name="images"),
|
||||
io.Audio.Output(display_name="audio"),
|
||||
io.Float.Output(display_name="fps"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, video: Input.Video) -> io.NodeOutput:
|
||||
components = video.get_components()
|
||||
return io.NodeOutput(components.images, components.audio, float(components.frame_rate))
|
||||
|
||||
|
||||
class LoadVideo(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
input_dir = folder_paths.get_input_directory()
|
||||
files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]
|
||||
files = folder_paths.filter_files_content_types(files, ["video"])
|
||||
return io.Schema(
|
||||
node_id="LoadVideo",
|
||||
search_aliases=["import video", "open video", "video file"],
|
||||
display_name="Load Video",
|
||||
category="image/video",
|
||||
essentials_category="Basics",
|
||||
inputs=[
|
||||
io.Combo.Input("file", options=sorted(files), upload=io.UploadType.video),
|
||||
],
|
||||
outputs=[
|
||||
io.Video.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, file) -> io.NodeOutput:
|
||||
video_path = folder_paths.get_annotated_filepath(file)
|
||||
return io.NodeOutput(InputImpl.VideoFromFile(video_path))
|
||||
|
||||
@classmethod
|
||||
def fingerprint_inputs(s, file):
|
||||
video_path = folder_paths.get_annotated_filepath(file)
|
||||
mod_time = os.path.getmtime(video_path)
|
||||
# Instead of hashing the file, we can just use the modification time to avoid
|
||||
# rehashing large files.
|
||||
return mod_time
|
||||
|
||||
@classmethod
|
||||
def validate_inputs(s, file):
|
||||
if not folder_paths.exists_annotated_filepath(file):
|
||||
return "Invalid video file: {}".format(file)
|
||||
|
||||
return True
|
||||
|
||||
class VideoSlice(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="Video Slice",
|
||||
display_name="Video Slice",
|
||||
search_aliases=[
|
||||
"trim video duration",
|
||||
"skip first frames",
|
||||
"frame load cap",
|
||||
"start time",
|
||||
],
|
||||
category="image/video",
|
||||
essentials_category="Video Tools",
|
||||
inputs=[
|
||||
io.Video.Input("video"),
|
||||
io.Float.Input(
|
||||
"start_time",
|
||||
default=0.0,
|
||||
max=1e5,
|
||||
min=-1e5,
|
||||
step=0.001,
|
||||
tooltip="Start time in seconds",
|
||||
),
|
||||
io.Float.Input(
|
||||
"duration",
|
||||
default=0.0,
|
||||
min=0.0,
|
||||
step=0.001,
|
||||
tooltip="Duration in seconds, or 0 for unlimited duration",
|
||||
),
|
||||
io.Boolean.Input(
|
||||
"strict_duration",
|
||||
default=False,
|
||||
tooltip="If True, when the specified duration is not possible, an error will be raised.",
|
||||
),
|
||||
],
|
||||
outputs=[
|
||||
io.Video.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, video: io.Video.Type, start_time: float, duration: float, strict_duration: bool) -> io.NodeOutput:
|
||||
trimmed = video.as_trimmed(start_time, duration, strict_duration=strict_duration)
|
||||
if trimmed is not None:
|
||||
return io.NodeOutput(trimmed)
|
||||
raise ValueError(
|
||||
f"Failed to slice video:\nSource duration: {video.get_duration()}\nStart time: {start_time}\nTarget duration: {duration}"
|
||||
)
|
||||
|
||||
|
||||
class VideoExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
SaveWEBM,
|
||||
SaveVideo,
|
||||
CreateVideo,
|
||||
GetVideoComponents,
|
||||
LoadVideo,
|
||||
VideoSlice,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> VideoExtension:
|
||||
return VideoExtension()
|
||||
@@ -0,0 +1,496 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
import mimetypes
|
||||
import logging
|
||||
from typing import Literal, List
|
||||
from collections.abc import Collection
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
# --base-directory - Resets all default paths configured in folder_paths with a new base path
|
||||
if args.base_directory:
|
||||
base_path = os.path.abspath(args.base_directory)
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
models_dir = os.path.join(base_path, "models")
|
||||
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
|
||||
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
|
||||
|
||||
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
|
||||
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
|
||||
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
|
||||
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
|
||||
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
|
||||
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
|
||||
|
||||
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
|
||||
|
||||
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
# System User Protection - Protects system directories from HTTP endpoint access
|
||||
# System Users are internal-only users that cannot be accessed via HTTP endpoints.
|
||||
# They use the '__' prefix convention (similar to Python's private member convention).
|
||||
SYSTEM_USER_PREFIX = "__"
|
||||
|
||||
|
||||
def get_system_user_directory(name: str = "system") -> str:
|
||||
"""
|
||||
Get the path to a System User directory.
|
||||
|
||||
System User directories (prefixed with '__') are only accessible via internal API,
|
||||
not through HTTP endpoints. Use this for storing system-internal data that
|
||||
should not be exposed to users.
|
||||
|
||||
Args:
|
||||
name: System user name (e.g., "system", "cache"). Must be alphanumeric
|
||||
with underscores allowed, but cannot start with underscore.
|
||||
|
||||
Returns:
|
||||
Absolute path to the system user directory.
|
||||
|
||||
Raises:
|
||||
ValueError: If name is empty, invalid, or starts with underscore.
|
||||
|
||||
Example:
|
||||
>>> get_system_user_directory("cache")
|
||||
'/path/to/user/__cache'
|
||||
"""
|
||||
if not name or not isinstance(name, str):
|
||||
raise ValueError("System user name cannot be empty")
|
||||
if not name.replace("_", "").isalnum():
|
||||
raise ValueError(f"Invalid system user name: '{name}'")
|
||||
if name.startswith("_"):
|
||||
raise ValueError("System user name should not start with underscore")
|
||||
return os.path.join(get_user_directory(), f"{SYSTEM_USER_PREFIX}{name}")
|
||||
|
||||
|
||||
def get_public_user_directory(user_id: str) -> str | None:
|
||||
"""
|
||||
Get the path to a Public User directory for HTTP endpoint access.
|
||||
|
||||
This function provides structural security by returning None for any
|
||||
System User (prefixed with '__'). All HTTP endpoints should use this
|
||||
function instead of directly constructing user paths.
|
||||
|
||||
Args:
|
||||
user_id: User identifier from HTTP request.
|
||||
|
||||
Returns:
|
||||
Absolute path to the user directory, or None if user_id is invalid
|
||||
or refers to a System User.
|
||||
|
||||
Example:
|
||||
>>> get_public_user_directory("default")
|
||||
'/path/to/user/default'
|
||||
>>> get_public_user_directory("__system")
|
||||
None
|
||||
"""
|
||||
if not user_id or not isinstance(user_id, str):
|
||||
return None
|
||||
if user_id.startswith(SYSTEM_USER_PREFIX):
|
||||
return None
|
||||
return os.path.join(get_user_directory(), user_id)
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"ref": "refs/tags/v1.42.15",
|
||||
"node_id": "REF_kwDOMIrOxrJyZWZzL3RhZ3MvdjEuNDIuMTU",
|
||||
"url": "https://api.github.com/repos/Comfy-Org/ComfyUI_frontend/git/refs/tags/v1.42.15",
|
||||
"object": {
|
||||
"sha": "4705b3186ecd621151daf95dd702009b266bd819",
|
||||
"type": "commit",
|
||||
"url": "https://api.github.com/repos/Comfy-Org/ComfyUI_frontend/git/commits/4705b3186ecd621151daf95dd702009b266bd819"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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>.
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
import type { PromotedWidgetSource } from '@/core/graph/subgraph/promotedWidgetTypes'
|
||||
import { resolveConcretePromotedWidget } from '@/core/graph/subgraph/resolveConcretePromotedWidget'
|
||||
import type { SubgraphNode } from '@/lib/litegraph/src/subgraph/SubgraphNode'
|
||||
|
||||
const LEGACY_PROXY_WIDGET_PREFIX_PATTERN = /^\s*(\d+)\s*:\s*(.+)$/
|
||||
|
||||
type PromotedWidgetPatch = Omit<PromotedWidgetSource, 'sourceNodeId'>
|
||||
|
||||
function canResolve(
|
||||
hostNode: SubgraphNode,
|
||||
sourceNodeId: string,
|
||||
widgetName: string,
|
||||
disambiguator?: string
|
||||
): boolean {
|
||||
return (
|
||||
resolveConcretePromotedWidget(
|
||||
hostNode,
|
||||
sourceNodeId,
|
||||
widgetName,
|
||||
disambiguator
|
||||
).status === 'resolved'
|
||||
)
|
||||
}
|
||||
|
||||
function tryResolveCandidate(
|
||||
hostNode: SubgraphNode,
|
||||
sourceNodeId: string,
|
||||
widgetName: string,
|
||||
disambiguator?: string
|
||||
): PromotedWidgetPatch | undefined {
|
||||
if (!canResolve(hostNode, sourceNodeId, widgetName, disambiguator))
|
||||
return undefined
|
||||
|
||||
return {
|
||||
sourceWidgetName: widgetName,
|
||||
...(disambiguator && { disambiguatingSourceNodeId: disambiguator })
|
||||
}
|
||||
}
|
||||
|
||||
function resolveLegacyPrefixedEntry(
|
||||
hostNode: SubgraphNode,
|
||||
sourceNodeId: string,
|
||||
sourceWidgetName: string,
|
||||
disambiguatingSourceNodeId?: string
|
||||
): PromotedWidgetPatch | undefined {
|
||||
let remaining = sourceWidgetName
|
||||
|
||||
while (true) {
|
||||
const match = LEGACY_PROXY_WIDGET_PREFIX_PATTERN.exec(remaining)
|
||||
if (!match) return undefined
|
||||
|
||||
const [, legacySourceNodeId, unprefixed] = match
|
||||
remaining = unprefixed
|
||||
|
||||
const disambiguators = [
|
||||
legacySourceNodeId,
|
||||
...(disambiguatingSourceNodeId ? [disambiguatingSourceNodeId] : []),
|
||||
undefined
|
||||
]
|
||||
|
||||
for (const disambiguator of disambiguators) {
|
||||
const resolved = tryResolveCandidate(
|
||||
hostNode,
|
||||
sourceNodeId,
|
||||
remaining,
|
||||
disambiguator
|
||||
)
|
||||
if (resolved) return resolved
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function normalizeLegacyProxyWidgetEntry(
|
||||
hostNode: SubgraphNode,
|
||||
sourceNodeId: string,
|
||||
sourceWidgetName: string,
|
||||
disambiguatingSourceNodeId?: string
|
||||
): PromotedWidgetSource {
|
||||
if (
|
||||
canResolve(
|
||||
hostNode,
|
||||
sourceNodeId,
|
||||
sourceWidgetName,
|
||||
disambiguatingSourceNodeId
|
||||
)
|
||||
) {
|
||||
return {
|
||||
sourceNodeId,
|
||||
sourceWidgetName,
|
||||
...(disambiguatingSourceNodeId && { disambiguatingSourceNodeId })
|
||||
}
|
||||
}
|
||||
|
||||
const patch = resolveLegacyPrefixedEntry(
|
||||
hostNode,
|
||||
sourceNodeId,
|
||||
sourceWidgetName,
|
||||
disambiguatingSourceNodeId
|
||||
)
|
||||
|
||||
const patchDisambiguatingSourceNodeId =
|
||||
patch?.disambiguatingSourceNodeId ?? disambiguatingSourceNodeId
|
||||
|
||||
return {
|
||||
sourceNodeId,
|
||||
sourceWidgetName: patch?.sourceWidgetName ?? sourceWidgetName,
|
||||
...(patchDisambiguatingSourceNodeId && {
|
||||
disambiguatingSourceNodeId: patchDisambiguatingSourceNodeId
|
||||
})
|
||||
}
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import type { ResolvedPromotedWidget } from '@/core/graph/subgraph/promotedWidgetTypes'
|
||||
import { isPromotedWidgetView } from '@/core/graph/subgraph/promotedWidgetTypes'
|
||||
import { resolveConcretePromotedWidget } from '@/core/graph/subgraph/resolveConcretePromotedWidget'
|
||||
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||
|
||||
export function resolvePromotedWidgetSource(
|
||||
hostNode: LGraphNode,
|
||||
widget: IBaseWidget
|
||||
): ResolvedPromotedWidget | undefined {
|
||||
if (!isPromotedWidgetView(widget)) return undefined
|
||||
if (!hostNode.isSubgraphNode()) return undefined
|
||||
|
||||
const result = resolveConcretePromotedWidget(
|
||||
hostNode,
|
||||
widget.sourceNodeId,
|
||||
widget.sourceWidgetName,
|
||||
widget.disambiguatingSourceNodeId
|
||||
)
|
||||
if (result.status === 'resolved') return result.resolved
|
||||
|
||||
return undefined
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||
|
||||
import { isPromotedWidgetView } from './promotedWidgetTypes'
|
||||
import { resolveSubgraphInputLink } from './resolveSubgraphInputLink'
|
||||
|
||||
type ResolvedSubgraphInputTarget = {
|
||||
nodeId: string
|
||||
widgetName: string
|
||||
sourceNodeId?: string
|
||||
}
|
||||
|
||||
export function resolveSubgraphInputTarget(
|
||||
node: LGraphNode,
|
||||
inputName: string
|
||||
): ResolvedSubgraphInputTarget | undefined {
|
||||
return resolveSubgraphInputLink(
|
||||
node,
|
||||
inputName,
|
||||
({ inputNode, targetInput, getTargetWidget }) => {
|
||||
if (inputNode.isSubgraphNode()) {
|
||||
const targetWidget = getTargetWidget()
|
||||
if (!targetWidget) return undefined
|
||||
|
||||
if (isPromotedWidgetView(targetWidget)) {
|
||||
return {
|
||||
nodeId: String(inputNode.id),
|
||||
widgetName: targetWidget.sourceWidgetName,
|
||||
sourceNodeId:
|
||||
targetWidget.disambiguatingSourceNodeId ??
|
||||
targetWidget.sourceNodeId
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
nodeId: String(inputNode.id),
|
||||
widgetName: targetInput.name
|
||||
}
|
||||
}
|
||||
|
||||
const targetWidget = getTargetWidget()
|
||||
if (!targetWidget) return undefined
|
||||
|
||||
return {
|
||||
nodeId: String(inputNode.id),
|
||||
widgetName: targetWidget.name
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { z } from 'zod'
|
||||
import { fromZodError } from 'zod-validation-error'
|
||||
|
||||
import type { NodeProperty } from '@/lib/litegraph/src/LGraphNode'
|
||||
|
||||
const proxyWidgetTupleSchema = z.union([
|
||||
z.tuple([z.string(), z.string(), z.string()]),
|
||||
z.tuple([z.string(), z.string()])
|
||||
])
|
||||
const proxyWidgetsPropertySchema = z.array(proxyWidgetTupleSchema)
|
||||
type ProxyWidgetsProperty = z.infer<typeof proxyWidgetsPropertySchema>
|
||||
|
||||
export function parseProxyWidgets(
|
||||
property: NodeProperty | undefined
|
||||
): ProxyWidgetsProperty {
|
||||
try {
|
||||
if (typeof property === 'string') property = JSON.parse(property)
|
||||
const result = proxyWidgetsPropertySchema.safeParse(
|
||||
typeof property === 'string' ? JSON.parse(property) : property
|
||||
)
|
||||
if (result.success) return result.data
|
||||
|
||||
const error = fromZodError(result.error)
|
||||
console.warn(`Invalid assignment for properties.proxyWidgets:\n${error}`)
|
||||
} catch (e) {
|
||||
console.warn('Failed to parse properties.proxyWidgets:', e)
|
||||
}
|
||||
return []
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||
|
||||
import { app } from '../../scripts/app'
|
||||
import { ComfyWidgets } from '../../scripts/widgets'
|
||||
|
||||
// Node that add notes to your project
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.NoteNode',
|
||||
registerCustomNodes() {
|
||||
class NoteNode extends LGraphNode {
|
||||
static override category: string
|
||||
static collapsable: boolean
|
||||
static title_mode: number
|
||||
|
||||
groupcolor = LGraphCanvas.node_colors.yellow.groupcolor
|
||||
override isVirtualNode: boolean
|
||||
|
||||
constructor(title: string) {
|
||||
super(title)
|
||||
|
||||
this.color = LGraphCanvas.node_colors.yellow.color
|
||||
this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor
|
||||
|
||||
if (!this.properties) {
|
||||
this.properties = { text: '' }
|
||||
}
|
||||
ComfyWidgets.STRING(
|
||||
this,
|
||||
'text',
|
||||
['STRING', { default: this.properties.text, multiline: true }],
|
||||
app
|
||||
)
|
||||
|
||||
this.serialize_widgets = true
|
||||
this.isVirtualNode = true
|
||||
}
|
||||
}
|
||||
|
||||
// Load default visibility
|
||||
|
||||
LiteGraph.registerNodeType(
|
||||
'Note',
|
||||
Object.assign(NoteNode, {
|
||||
title_mode: LiteGraph.NORMAL_TITLE,
|
||||
title: 'Note',
|
||||
collapsable: true
|
||||
})
|
||||
)
|
||||
|
||||
NoteNode.category = 'utils'
|
||||
|
||||
/** Markdown variant of NoteNode */
|
||||
class MarkdownNoteNode extends LGraphNode {
|
||||
static override title = 'Markdown Note'
|
||||
|
||||
groupcolor = LGraphCanvas.node_colors.yellow.groupcolor
|
||||
|
||||
constructor(title: string) {
|
||||
super(title)
|
||||
|
||||
this.color = LGraphCanvas.node_colors.yellow.color
|
||||
this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor
|
||||
|
||||
if (!this.properties) {
|
||||
this.properties = { text: '' }
|
||||
}
|
||||
ComfyWidgets.MARKDOWN(
|
||||
this,
|
||||
'text',
|
||||
['STRING', { default: this.properties.text }],
|
||||
app
|
||||
)
|
||||
|
||||
this.serialize_widgets = true
|
||||
this.isVirtualNode = true
|
||||
}
|
||||
}
|
||||
|
||||
LiteGraph.registerNodeType('MarkdownNote', MarkdownNoteNode)
|
||||
MarkdownNoteNode.category = 'utils'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,661 @@
|
||||
import { useChainCallback } from '@/composables/functional/useChainCallback'
|
||||
import { LGraphNode, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import type {
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
ISlotType,
|
||||
LLink
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import { NodeSlot } from '@/lib/litegraph/src/node/NodeSlot'
|
||||
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||
import type {
|
||||
IBaseWidget,
|
||||
TWidgetValue
|
||||
} from '@/lib/litegraph/src/types/widgets'
|
||||
import { assetService } from '@/platform/assets/services/assetService'
|
||||
import { createAssetWidget } from '@/platform/assets/utils/createAssetWidget'
|
||||
import type { ComfyNodeDef, InputSpec } from '@/schemas/nodeDefSchema'
|
||||
import { app } from '@/scripts/app'
|
||||
import {
|
||||
ComfyWidgets,
|
||||
addValueControlWidgets,
|
||||
isValidWidgetType
|
||||
} from '@/scripts/widgets'
|
||||
import { isPrimitiveNode } from '@/renderer/utils/nodeTypeGuards'
|
||||
import { CONFIG, GET_CONFIG } from '@/services/litegraphService'
|
||||
import { mergeInputSpec } from '@/utils/nodeDefUtil'
|
||||
import { applyTextReplacements } from '@/utils/searchAndReplace'
|
||||
|
||||
const replacePropertyName = 'Run widget replace on values'
|
||||
export class PrimitiveNode extends LGraphNode {
|
||||
controlValues?: TWidgetValue[]
|
||||
lastType?: string
|
||||
static override category: string
|
||||
constructor(title: string) {
|
||||
super(title)
|
||||
this.addOutput('connect to widget input', '*')
|
||||
this.serialize_widgets = true
|
||||
this.isVirtualNode = true
|
||||
|
||||
if (!this.properties || !(replacePropertyName in this.properties)) {
|
||||
this.addProperty(replacePropertyName, false, 'boolean')
|
||||
}
|
||||
}
|
||||
|
||||
override applyToGraph(extraLinks: LLink[] = []) {
|
||||
if (!this.outputs[0].links?.length || !this.graph) return
|
||||
|
||||
const links = [
|
||||
...this.outputs[0].links.map((l) => this.graph!.links[l]),
|
||||
...extraLinks
|
||||
]
|
||||
let v = this.widgets?.[0].value
|
||||
if (v && this.properties[replacePropertyName]) {
|
||||
v = applyTextReplacements(this.graph, v as string)
|
||||
}
|
||||
|
||||
// For each output link copy our value over the original widget value
|
||||
for (const linkInfo of links) {
|
||||
const node = this.graph?.getNodeById(linkInfo.target_id)
|
||||
const input = node?.inputs[linkInfo.target_slot]
|
||||
if (!input) {
|
||||
console.warn('Unable to resolve node or input for link', linkInfo)
|
||||
continue
|
||||
}
|
||||
|
||||
const widgetName = input.widget?.name
|
||||
if (!widgetName) {
|
||||
console.warn('Invalid widget or widget name', input.widget)
|
||||
continue
|
||||
}
|
||||
|
||||
const widget = node.widgets?.find((w) => w.name === widgetName)
|
||||
if (!widget) {
|
||||
console.warn(
|
||||
`Unable to find widget "${widgetName}" on node [${node.id}]`
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
widget.value = v
|
||||
widget.callback?.(
|
||||
widget.value,
|
||||
app.canvas,
|
||||
node,
|
||||
app.canvas.graph_mouse,
|
||||
{} as CanvasPointerEvent
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override refreshComboInNode() {
|
||||
const widget = this.widgets?.[0]
|
||||
if (widget?.type === 'combo') {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
widget.options.values = this.outputs[0].widget[GET_CONFIG]()[0]
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
if (!widget.options.values.includes(widget.value as string)) {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
widget.value = widget.options.values[0]
|
||||
;(widget.callback as Function)(widget.value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override onAfterGraphConfigured() {
|
||||
if (this.outputs[0].links?.length && !this.widgets?.length) {
|
||||
this._onFirstConnection()
|
||||
|
||||
// Populate widget values from config data
|
||||
if (this.widgets && this.widgets_values) {
|
||||
for (let i = 0; i < this.widgets_values.length; i++) {
|
||||
const w = this.widgets[i]
|
||||
if (w) {
|
||||
w.value = this.widgets_values[i]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Merge values if required
|
||||
this._mergeWidgetConfig()
|
||||
}
|
||||
}
|
||||
|
||||
override onConnectionsChange(
|
||||
_type: ISlotType,
|
||||
_index: number,
|
||||
connected: boolean
|
||||
) {
|
||||
if (app.configuringGraph) {
|
||||
// Dont run while the graph is still setting up
|
||||
return
|
||||
}
|
||||
|
||||
const links = this.outputs[0].links
|
||||
if (connected) {
|
||||
if (links?.length && !this.widgets?.length) {
|
||||
this._onFirstConnection()
|
||||
}
|
||||
} else {
|
||||
// We may have removed a link that caused the constraints to change
|
||||
this._mergeWidgetConfig()
|
||||
|
||||
if (!links?.length) {
|
||||
this.onLastDisconnect()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override onConnectOutput(
|
||||
slot: number,
|
||||
_type: string,
|
||||
input: INodeInputSlot,
|
||||
target_node: LGraphNode,
|
||||
target_slot: number
|
||||
) {
|
||||
// Fires before the link is made allowing us to reject it if it isn't valid
|
||||
// No widget, we can't connect
|
||||
if (!input.widget && !(input.type in ComfyWidgets)) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.outputs[slot].links?.length) {
|
||||
const valid = this._isValidConnection(input)
|
||||
if (valid) {
|
||||
// On connect of additional outputs, copy our value to their widget
|
||||
this.applyToGraph([{ target_id: target_node.id, target_slot } as LLink])
|
||||
}
|
||||
return valid
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
private _onFirstConnection(recreating?: boolean) {
|
||||
// First connection can fire before the graph is ready on initial load so random things can be missing
|
||||
if (!this.outputs[0].links || !this.graph) {
|
||||
this.onLastDisconnect()
|
||||
return
|
||||
}
|
||||
const linkId = this.outputs[0].links[0]
|
||||
const link = this.graph.links[linkId]
|
||||
if (!link) return
|
||||
|
||||
const theirNode = this.graph.getNodeById(link.target_id)
|
||||
if (!theirNode || !theirNode.inputs) return
|
||||
|
||||
const input = theirNode.inputs[link.target_slot]
|
||||
if (!input) return
|
||||
|
||||
let widget
|
||||
if (!input.widget) {
|
||||
if (!(input.type in ComfyWidgets)) return
|
||||
widget = { name: input.name, [GET_CONFIG]: () => [input.type, {}] } //fake widget
|
||||
} else {
|
||||
widget = input.widget
|
||||
}
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const config = widget[GET_CONFIG]?.()
|
||||
if (!config) return
|
||||
|
||||
const { type } = getWidgetType(config)
|
||||
// Update our output to restrict to the widget type
|
||||
this.outputs[0].type = type
|
||||
this.outputs[0].name = type
|
||||
this.outputs[0].widget = widget
|
||||
|
||||
this._createWidget(
|
||||
widget[CONFIG] ?? config,
|
||||
theirNode,
|
||||
widget.name,
|
||||
// @ts-expect-error fixme ts strict error
|
||||
recreating
|
||||
)
|
||||
}
|
||||
|
||||
private _createWidget(
|
||||
inputData: InputSpec,
|
||||
node: LGraphNode,
|
||||
widgetName: string,
|
||||
recreating: boolean
|
||||
) {
|
||||
let type = inputData[0]
|
||||
|
||||
if (type instanceof Array) {
|
||||
type = 'COMBO'
|
||||
}
|
||||
|
||||
// Store current size as addWidget resizes the node
|
||||
const [oldWidth, oldHeight] = this.size
|
||||
let widget: IBaseWidget
|
||||
|
||||
if (
|
||||
type === 'COMBO' &&
|
||||
assetService.shouldUseAssetBrowser(node.comfyClass, widgetName)
|
||||
) {
|
||||
widget = this._createAssetWidget(node, widgetName, inputData)
|
||||
const theirWidget = node.widgets?.find((w) => w.name === widgetName)
|
||||
if (theirWidget) widget.value = theirWidget.value
|
||||
this._finalizeWidget(widget, oldWidth, oldHeight, recreating)
|
||||
return
|
||||
}
|
||||
|
||||
if (isValidWidgetType(type)) {
|
||||
widget = (ComfyWidgets[type](this, 'value', inputData, app) || {}).widget
|
||||
} else {
|
||||
// @ts-expect-error InputSpec is not typed correctly
|
||||
widget = this.addWidget(type, 'value', null, () => {}, {})
|
||||
}
|
||||
|
||||
if (node?.widgets && widget) {
|
||||
const theirWidget = node.widgets.find((w) => w.name === widgetName)
|
||||
if (theirWidget) {
|
||||
widget.value = theirWidget.value
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
!inputData?.[1]?.control_after_generate &&
|
||||
(widget.type === 'number' || widget.type === 'combo')
|
||||
) {
|
||||
let control_value = this.widgets_values?.[1]
|
||||
if (!control_value) {
|
||||
control_value = 'fixed'
|
||||
}
|
||||
addValueControlWidgets(
|
||||
this,
|
||||
widget,
|
||||
control_value as string,
|
||||
undefined,
|
||||
inputData
|
||||
)
|
||||
if (this.widgets?.[1]) widget.linkedWidgets = [this.widgets[1]]
|
||||
|
||||
let filter = this.widgets_values?.[2]
|
||||
if (filter && this.widgets && this.widgets.length === 3) {
|
||||
this.widgets[2].value = filter
|
||||
}
|
||||
}
|
||||
|
||||
// Restore any saved control values
|
||||
const controlValues = this.controlValues
|
||||
if (
|
||||
this.widgets &&
|
||||
this.lastType === this.widgets[0]?.type &&
|
||||
controlValues?.length === this.widgets.length - 1
|
||||
) {
|
||||
for (let i = 0; i < controlValues.length; i++) {
|
||||
this.widgets[i + 1].value = controlValues[i]
|
||||
}
|
||||
}
|
||||
|
||||
this._finalizeWidget(widget, oldWidth, oldHeight, recreating)
|
||||
}
|
||||
|
||||
private _createAssetWidget(
|
||||
targetNode: LGraphNode,
|
||||
targetInputName: string,
|
||||
inputData: InputSpec
|
||||
): IBaseWidget {
|
||||
const defaultValue = inputData[1]?.default as string | undefined
|
||||
return createAssetWidget({
|
||||
node: this,
|
||||
widgetName: 'value',
|
||||
nodeTypeForBrowser: targetNode.comfyClass ?? '',
|
||||
inputNameForBrowser: targetInputName,
|
||||
defaultValue,
|
||||
onValueChange: (widget, newValue, oldValue) => {
|
||||
widget.callback?.(
|
||||
widget.value,
|
||||
app.canvas,
|
||||
this,
|
||||
app.canvas.graph_mouse,
|
||||
{} as CanvasPointerEvent
|
||||
)
|
||||
this.onWidgetChanged?.(widget.name, newValue, oldValue, widget)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
private _finalizeWidget(
|
||||
widget: IBaseWidget,
|
||||
oldWidth: number,
|
||||
oldHeight: number,
|
||||
recreating: boolean
|
||||
) {
|
||||
widget.callback = useChainCallback(widget.callback, () => {
|
||||
this.applyToGraph()
|
||||
})
|
||||
|
||||
this.setSize([
|
||||
Math.max(this.size[0], oldWidth),
|
||||
Math.max(this.size[1], oldHeight)
|
||||
])
|
||||
|
||||
if (!recreating) {
|
||||
const sz = this.computeSize()
|
||||
if (this.size[0] < sz[0]) {
|
||||
this.size[0] = sz[0]
|
||||
}
|
||||
if (this.size[1] < sz[1]) {
|
||||
this.size[1] = sz[1]
|
||||
}
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
this.onResize?.(this.size)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
recreateWidget() {
|
||||
const values = this.widgets?.map((w) => w.value)
|
||||
this._removeWidgets()
|
||||
this._onFirstConnection(true)
|
||||
if (values?.length && this.widgets) {
|
||||
for (let i = 0; i < this.widgets.length; i++)
|
||||
this.widgets[i].value = values[i]
|
||||
}
|
||||
return this.widgets?.[0]
|
||||
}
|
||||
|
||||
private _mergeWidgetConfig() {
|
||||
// Merge widget configs if the node has multiple outputs
|
||||
const output = this.outputs[0]
|
||||
const links = output.links ?? []
|
||||
|
||||
const hasConfig = !!output.widget?.[CONFIG]
|
||||
if (hasConfig) {
|
||||
delete output.widget?.[CONFIG]
|
||||
}
|
||||
|
||||
if (links?.length < 2 && hasConfig) {
|
||||
// Copy the widget options from the source
|
||||
if (links.length) {
|
||||
this.recreateWidget()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
const config1 = (output.widget?.[GET_CONFIG] as () => InputSpec)?.()
|
||||
if (!config1) return
|
||||
const isNumber = config1[0] === 'INT' || config1[0] === 'FLOAT'
|
||||
if (!isNumber || !this.graph) return
|
||||
|
||||
for (const linkId of links) {
|
||||
const link = this.graph.links[linkId]
|
||||
if (!link) continue // Can be null when removing a node
|
||||
|
||||
const theirNode = this.graph.getNodeById(link.target_id)
|
||||
if (!theirNode) continue
|
||||
const theirInput = theirNode.inputs[link.target_slot]
|
||||
|
||||
// Call is valid connection so it can merge the configs when validating
|
||||
this._isValidConnection(theirInput, hasConfig)
|
||||
}
|
||||
}
|
||||
|
||||
private _isValidConnection(input: INodeInputSlot, forceUpdate?: boolean) {
|
||||
// Only allow connections where the configs match
|
||||
const output = this.outputs?.[0]
|
||||
const config2 = (input.widget?.[GET_CONFIG] as () => InputSpec)?.()
|
||||
if (!config2) return false
|
||||
|
||||
return !!mergeIfValid.call(
|
||||
this,
|
||||
output,
|
||||
config2,
|
||||
forceUpdate,
|
||||
this.recreateWidget
|
||||
)
|
||||
}
|
||||
|
||||
private _removeWidgets() {
|
||||
if (this.widgets) {
|
||||
// Allow widgets to cleanup
|
||||
for (const w of this.widgets) {
|
||||
if (w.onRemove) {
|
||||
w.onRemove()
|
||||
}
|
||||
}
|
||||
|
||||
// Temporarily store the current values in case the node is being recreated
|
||||
// e.g. by group node conversion
|
||||
this.controlValues = []
|
||||
this.lastType = this.widgets[0]?.type
|
||||
for (let i = 1; i < this.widgets.length; i++) {
|
||||
this.controlValues.push(this.widgets[i].value)
|
||||
}
|
||||
setTimeout(() => {
|
||||
delete this.lastType
|
||||
delete this.controlValues
|
||||
}, 15)
|
||||
this.widgets.length = 0
|
||||
}
|
||||
}
|
||||
|
||||
onLastDisconnect() {
|
||||
// We can't remove + re-add the output here as if you drag a link over the same link
|
||||
// it removes, then re-adds, causing it to break
|
||||
this.outputs[0].type = '*'
|
||||
this.outputs[0].name = 'connect to widget input'
|
||||
delete this.outputs[0].widget
|
||||
|
||||
this._removeWidgets()
|
||||
}
|
||||
}
|
||||
|
||||
export function getWidgetConfig(
|
||||
slot: INodeInputSlot | INodeOutputSlot
|
||||
): InputSpec {
|
||||
return (slot.widget?.[CONFIG] ??
|
||||
(slot.widget?.[GET_CONFIG] as () => InputSpec)?.() ?? [
|
||||
'*',
|
||||
{}
|
||||
]) as InputSpec
|
||||
}
|
||||
|
||||
function getConfig(this: LGraphNode, widgetName: string) {
|
||||
const { nodeData } = this.constructor
|
||||
return (
|
||||
nodeData?.input?.required?.[widgetName] ??
|
||||
nodeData?.input?.optional?.[widgetName]
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a widget to an input slot.
|
||||
* @deprecated Widget to socket conversion is no longer necessary, as they co-exist now.
|
||||
* @param node The node to convert the widget to an input slot for.
|
||||
* @param widget The widget to convert to an input slot.
|
||||
* @returns The input slot that was converted from the widget or undefined if the widget is not found.
|
||||
* @knipIgnoreUnusedButUsedByCustomNodes
|
||||
*/
|
||||
export function convertToInput(
|
||||
node: LGraphNode,
|
||||
widget: IBaseWidget
|
||||
): INodeInputSlot | undefined {
|
||||
console.warn(
|
||||
'Please remove call to convertToInput. Widget to socket conversion is no longer necessary, as they co-exist now.'
|
||||
)
|
||||
return node.inputs.find((slot) => slot.widget?.name === widget.name)
|
||||
}
|
||||
|
||||
function getWidgetType(config: InputSpec) {
|
||||
// Special handling for COMBO so we restrict links based on the entries
|
||||
let type = config[0]
|
||||
if (type instanceof Array) {
|
||||
type = 'COMBO'
|
||||
}
|
||||
return { type }
|
||||
}
|
||||
|
||||
export function setWidgetConfig(slot: INodeInputSlot, config?: InputSpec) {
|
||||
if (!slot.widget) return
|
||||
if (config) {
|
||||
slot.widget[GET_CONFIG] = () => config
|
||||
} else {
|
||||
delete slot.widget
|
||||
}
|
||||
|
||||
if (!(slot instanceof NodeSlot)) return
|
||||
const graph = slot.node.graph
|
||||
if (!graph) return
|
||||
const link = graph.links[slot.link ?? -1]
|
||||
if (!link) return
|
||||
const originNode = graph.getNodeById(link.origin_id)
|
||||
if (!originNode || !isPrimitiveNode(originNode)) return
|
||||
if (config) {
|
||||
originNode.recreateWidget()
|
||||
} else if (!app.configuringGraph) {
|
||||
originNode.disconnectOutput(0)
|
||||
originNode.onLastDisconnect()
|
||||
}
|
||||
}
|
||||
|
||||
export function mergeIfValid(
|
||||
output: INodeOutputSlot | INodeInputSlot,
|
||||
config2: InputSpec,
|
||||
forceUpdate?: boolean,
|
||||
recreateWidget?: () => void,
|
||||
config1?: InputSpec
|
||||
): { customConfig: InputSpec[1] } {
|
||||
if (!config1) {
|
||||
config1 = getWidgetConfig(output)
|
||||
}
|
||||
|
||||
const customSpec = mergeInputSpec(config1, config2)
|
||||
|
||||
if (customSpec || forceUpdate) {
|
||||
if (customSpec) {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
output.widget[CONFIG] = customSpec
|
||||
}
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const widget = recreateWidget?.call(this)
|
||||
// When deleting a node this can be null
|
||||
if (widget) {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const min = widget.options.min
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const max = widget.options.max
|
||||
// @ts-expect-error fixme ts strict error
|
||||
if (min != null && widget.value < min) widget.value = min
|
||||
// @ts-expect-error fixme ts strict error
|
||||
if (max != null && widget.value > max) widget.value = max
|
||||
// @ts-expect-error fixme ts strict error
|
||||
widget.callback(widget.value)
|
||||
}
|
||||
}
|
||||
|
||||
return { customConfig: customSpec?.[1] ?? {} }
|
||||
}
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.WidgetInputs',
|
||||
async beforeRegisterNodeDef(
|
||||
nodeType: typeof LGraphNode,
|
||||
_nodeData: ComfyNodeDef
|
||||
) {
|
||||
// @ts-expect-error adding extra property
|
||||
nodeType.prototype.convertWidgetToInput = function (this: LGraphNode) {
|
||||
console.warn(
|
||||
'Please remove call to convertWidgetToInput. Widget to socket conversion is no longer necessary, as they co-exist now.'
|
||||
)
|
||||
return false
|
||||
}
|
||||
|
||||
nodeType.prototype.onGraphConfigured = useChainCallback(
|
||||
nodeType.prototype.onGraphConfigured,
|
||||
function (this: LGraphNode) {
|
||||
if (!this.inputs) return
|
||||
this.widgets ??= []
|
||||
|
||||
for (const input of this.inputs) {
|
||||
if (input.widget) {
|
||||
const name = input.widget.name
|
||||
if (!input.widget[GET_CONFIG]) {
|
||||
input.widget[GET_CONFIG] = () => getConfig.call(this, name)
|
||||
}
|
||||
|
||||
const w = this.widgets?.find((w) => w.name === name)
|
||||
if (!w) {
|
||||
this.removeInput(this.inputs.findIndex((i) => i === input))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
nodeType.prototype.onConfigure = useChainCallback(
|
||||
nodeType.prototype.onConfigure,
|
||||
function (this: LGraphNode) {
|
||||
if (!app.configuringGraph && this.inputs) {
|
||||
// On copy + paste of nodes, ensure that widget configs are set up
|
||||
for (const input of this.inputs) {
|
||||
if (input.widget && !input.widget[GET_CONFIG]) {
|
||||
const name = input.widget.name
|
||||
input.widget[GET_CONFIG] = () => getConfig.call(this, name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// Double click a widget input to automatically attach a primitive
|
||||
const origOnInputDblClick = nodeType.prototype.onInputDblClick
|
||||
nodeType.prototype.onInputDblClick = function (
|
||||
this: LGraphNode,
|
||||
...[slot, ...args]: Parameters<NonNullable<typeof origOnInputDblClick>>
|
||||
) {
|
||||
const r = origOnInputDblClick?.apply(this, [slot, ...args])
|
||||
|
||||
const input = this.inputs[slot]
|
||||
if (!input.widget) {
|
||||
// Not a widget input or already handled input
|
||||
if (
|
||||
!(input.type in ComfyWidgets) &&
|
||||
!(
|
||||
(
|
||||
input.widget?.[GET_CONFIG] as (() => InputSpec) | undefined
|
||||
)?.()?.[0] instanceof Array
|
||||
)
|
||||
) {
|
||||
return r //also Not a ComfyWidgets input or combo (do nothing)
|
||||
}
|
||||
}
|
||||
|
||||
// Create a primitive node
|
||||
const node = LiteGraph.createNode('PrimitiveNode')
|
||||
const graph = app.canvas.graph
|
||||
if (!node || !graph) return r
|
||||
|
||||
graph?.add(node)
|
||||
|
||||
// Calculate a position that won't directly overlap another node
|
||||
const pos: [number, number] = [
|
||||
this.pos[0] - node.size[0] - 30,
|
||||
this.pos[1]
|
||||
]
|
||||
while (graph.getNodeOnPos(pos[0], pos[1], graph.nodes))
|
||||
pos[1] += LiteGraph.NODE_TITLE_HEIGHT
|
||||
|
||||
node.pos = pos
|
||||
node.connect(0, this, slot)
|
||||
node.title = input.name
|
||||
|
||||
return r
|
||||
}
|
||||
},
|
||||
registerCustomNodes() {
|
||||
LiteGraph.registerNodeType(
|
||||
'PrimitiveNode',
|
||||
Object.assign(PrimitiveNode, {
|
||||
title: 'Primitive'
|
||||
})
|
||||
)
|
||||
PrimitiveNode.category = 'utils'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
// Re-export Subgraph and GraphOrSubgraph from LGraph.ts to maintain compatibility
|
||||
// This is a temporary fix to resolve circular dependency issues
|
||||
export { Subgraph, type GraphOrSubgraph } from '@/lib/litegraph/src/LGraph'
|
||||
+1613
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user