diff --git a/calliope-backend/src/calliope/comfyui/fixed_document.py b/calliope-backend/src/calliope/comfyui/fixed_document.py index e3c051c8..1f0193f1 100644 --- a/calliope-backend/src/calliope/comfyui/fixed_document.py +++ b/calliope-backend/src/calliope/comfyui/fixed_document.py @@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc # Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust. DEFINITIONS = { + ( + "example_ComfyUI_workflows/0-基础处理:图像合并-音频" + "分离-视频截取合并-图像视频放大/多视频合成分屏展示.json" + ): "d76d28f8cb202d052c5d7658e33ddd04f3b99c30d040577bdf7b592646af6c4b", ( "example_ComfyUI_workflows/0-基础处理:图像合并-音频" "分离-视频截取合并-图像视频放大/图像4种添加水印节点.json" diff --git a/calliope-backend/src/calliope/comfyui/source_reviews.json b/calliope-backend/src/calliope/comfyui/source_reviews.json index 03a92c33..624d383c 100644 --- a/calliope-backend/src/calliope/comfyui/source_reviews.json +++ b/calliope-backend/src/calliope/comfyui/source_reviews.json @@ -24008,6 +24008,3037 @@ "全部单位、范围、调整效果待可信节点定义;本图未实跑", "不更改原图矛盾;原有说明与此前审校完整保留" ] + }, + "fixed_version_document": { + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_sha1": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7", + "canonical_sha256": "1920161949401e21c194b4b6f05f3a954c64fcd7fc74b42db0c764469e395b07", + "notice": "声明提交源码仅作固定参考;活动10缺必需第一路、上半mode4旁路、音频未接,未实跑、转换保持关闭。", + "user_overview": "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "versions": [ + "concat准确完整提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;注册/schema/实现和许可独立固定,不跨版本混用。", + "resize准确完整提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;注册/schema/实现和许可独立固定,不跨版本混用。", + "load准确完整提交8550981384301e9bc5bfea83e5c2c75258102593;注册/schema/实现和许可独立固定,不跨版本混用。", + "combine准确完整提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;注册/schema/实现和许可独立固定,不跨版本混用。", + "源无frontendVersion;LG仅渲染器标记,UE7.5.1/Bypasser7.5.2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。" + ], + "counts": { + "saved_fields": 99, + "scalar_saved_positions": 92, + "history_objects": 7, + "null_positions": 4, + "source_nodes": 14, + "physical_edges": 11, + "source_notes": 0, + "linked_saved_fields": 0, + "frontend_only": 11, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/1", + "value": "left", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/1", + "value": "down", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_rate", + "label": "合成播放帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "8", + "unit": "帧/秒", + "limits": "min1,step1;无schema max", + "effect": "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/frame_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "loop_count", + "label": "视频额外循环", + "type": "INT", + "schema_default": "0", + "unit": "循环", + "limits": "0~100,step1", + "effect": "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "filename_prefix", + "label": "输出文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "路径前缀", + "limits": "无schema长度范围;目录权限未知", + "effect": "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/filename_prefix", + "value": "WanVideo_SCAIL", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "合成输出格式", + "type": "COMBO", + "schema_default": "列表首项image/gif;动态视频格式无固定目标默认", + "unit": "格式", + "limits": "image/gif、image/webp及动态FFmpeg模板", + "effect": "保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pix_fmt", + "label": "视频像素格式", + "type": "COMBO", + "schema_default": "首项yuv420p", + "unit": "像素格式", + "limits": "yuv420p/yuv420p10le", + "effect": "保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crf", + "label": "H264质量参数", + "type": "INT", + "schema_default": "19", + "unit": "CRF", + "limits": "模板0~100,step1;编码器可接受范围另待核", + "effect": "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/crf", + "value": 19, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true/false;视频模板条件", + "effect": "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/save_metadata", + "value": true, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "trim_to_audio", + "label": "按音频条件裁切", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "仅audio波形有效才进入混流", + "effect": "保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pingpong", + "label": "追加往返帧", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false;meta_batch兼容受实现限制", + "effect": "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_output", + "label": "保存目录选择", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true→output;false→temp;均可能写文件", + "effect": "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/save_output", + "value": false, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 19, + 18 + ], + "role": "frontend_history", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "width", + "label": "目标宽度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + "effect": "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/0", + "value": 512, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "height", + "label": "目标高度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + "effect": "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/1", + "value": 896, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "upscale_method", + "label": "缩放插值方法", + "type": "COMBO", + "schema_default": "无显式default;列表首项nearest-exact", + "unit": "插值方式", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "effect": "保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/2", + "value": "lanczos", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "keep_proportion", + "label": "比例与裁切模式", + "type": "COMBO", + "schema_default": "schema显式false(不在选项中);真实恢复默认未知", + "unit": "模式", + "limits": "stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels", + "effect": "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/3", + "value": "crop", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pad_color", + "label": "填充背景色", + "type": "STRING", + "schema_default": "0, 0, 0", + "unit": "RGB字符串", + "limits": "schema无字符串范围;填充色解析受实现约束", + "effect": "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/4", + "value": "0, 0, 0", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crop_position", + "label": "裁切位置", + "type": "COMBO", + "schema_default": "center", + "unit": "位置", + "limits": "center/top/bottom/left/right", + "effect": "保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/5", + "value": "center", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "divisible_by", + "label": "尺寸整除因数", + "type": "INT", + "schema_default": "2", + "unit": "像素因数", + "limits": "0~512,step1;>1才取整", + "effect": "保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/6", + "value": 32, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "device", + "label": "缩放设备", + "type": "COMBO", + "schema_default": "schema无显式default,首项cpu;函数默认cpu", + "unit": "设备", + "limits": "cpu/gpu", + "effect": "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/7", + "value": "cpu", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "width", + "label": "目标宽度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + "effect": "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/0", + "value": 512, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "height", + "label": "目标高度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + "effect": "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/1", + "value": 896, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "upscale_method", + "label": "缩放插值方法", + "type": "COMBO", + "schema_default": "无显式default;列表首项nearest-exact", + "unit": "插值方式", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "effect": "保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/2", + "value": "lanczos", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "keep_proportion", + "label": "比例与裁切模式", + "type": "COMBO", + "schema_default": "schema显式false(不在选项中);真实恢复默认未知", + "unit": "模式", + "limits": "stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels", + "effect": "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/3", + "value": "crop", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pad_color", + "label": "填充背景色", + "type": "STRING", + "schema_default": "0, 0, 0", + "unit": "RGB字符串", + "limits": "schema无字符串范围;填充色解析受实现约束", + "effect": "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/4", + "value": "0, 0, 0", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crop_position", + "label": "裁切位置", + "type": "COMBO", + "schema_default": "center", + "unit": "位置", + "limits": "center/top/bottom/left/right", + "effect": "保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/5", + "value": "center", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "divisible_by", + "label": "尺寸整除因数", + "type": "INT", + "schema_default": "2", + "unit": "像素因数", + "limits": "0~512,step1;>1才取整", + "effect": "保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/6", + "value": 32, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "device", + "label": "缩放设备", + "type": "COMBO", + "schema_default": "schema无显式default,首项cpu;函数默认cpu", + "unit": "设备", + "limits": "cpu/gpu", + "effect": "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/7", + "value": "cpu", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/video", + "value": "WanVideo_SCAIL_00006.mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "WanVideo_SCAIL_00006.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/video", + "value": "onetotall_pose_00001.mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/video", + "value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/frame_load_cap", + "value": 161, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/skip_first_frames", + "value": 25, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/1", + "value": "left", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/1", + "value": "down", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_rate", + "label": "合成播放帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "8", + "unit": "帧/秒", + "limits": "min1,step1;无schema max", + "effect": "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/frame_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "loop_count", + "label": "视频额外循环", + "type": "INT", + "schema_default": "0", + "unit": "循环", + "limits": "0~100,step1", + "effect": "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "filename_prefix", + "label": "输出文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "路径前缀", + "limits": "无schema长度范围;目录权限未知", + "effect": "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/filename_prefix", + "value": "WanVideo_SCAIL", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "合成输出格式", + "type": "COMBO", + "schema_default": "列表首项image/gif;动态视频格式无固定目标默认", + "unit": "格式", + "limits": "image/gif、image/webp及动态FFmpeg模板", + "effect": "保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pix_fmt", + "label": "视频像素格式", + "type": "COMBO", + "schema_default": "首项yuv420p", + "unit": "像素格式", + "limits": "yuv420p/yuv420p10le", + "effect": "保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crf", + "label": "H264质量参数", + "type": "INT", + "schema_default": "19", + "unit": "CRF", + "limits": "模板0~100,step1;编码器可接受范围另待核", + "effect": "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/crf", + "value": 19, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true/false;视频模板条件", + "effect": "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/save_metadata", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "trim_to_audio", + "label": "按音频条件裁切", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "仅audio波形有效才进入混流", + "effect": "保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pingpong", + "label": "追加往返帧", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false;meta_batch兼容受实现限制", + "effect": "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_output", + "label": "保存目录选择", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true→output;false→temp;均可能写文件", + "effect": "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/save_output", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 19, + 18 + ], + "role": "frontend_history", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } + }, + "json_type": "dict", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/video", + "value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/frame_load_cap", + "value": 161, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/skip_first_frames", + "value": 25, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/video", + "value": "onetotall_pose_00001.mp4", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + } + ], + "sources": [ + { + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "lines": [ + 2344, + 2391 + ], + "claim": "准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退" + }, + { + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "lines": [ + 220, + 325 + ], + "claim": "空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐" + }, + { + "id": "concat", + "file": "web/js/jsnodes.js", + "local_file": "../multivideo-reference/concat__web__js__jsnodes.js", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7", + "git_blob_sha1": "c391bd55dc3c94ee81dc8d2f96462c03ed684279", + "lines": [ + 36, + 65 + ], + "claim": "本提交Update inputs按钮值null;不证明未知宿主第4位置身份" + }, + { + "id": "concat", + "file": "__init__.py", + "local_file": "../multivideo-reference/concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 1, + 100 + ], + "claim": "准确Concat注册与image_nodes导入" + }, + { + "id": "resize", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/resize__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee", + "git_blob_sha1": "8de598ebfce304e41b2da906a5f5a6a64df56ce7", + "lines": [ + 2550, + 2790 + ], + "claim": "准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽" + }, + { + "id": "resize", + "file": "__init__.py", + "local_file": "../multivideo-reference/resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 1, + 100 + ], + "claim": "准确Resize v2注册与导入" + }, + { + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "lines": [ + 22, + 168 + ], + "claim": "准确85509813格式/尺寸规则与采样、skip、nth、cap" + }, + { + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "lines": [ + 315, + 475 + ], + "claim": "内存/格式限制、音频起点与时长参数、加载schema与输出" + }, + { + "id": "load", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_blob_sha1": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97", + "lines": [ + 1024, + 1055 + ], + "claim": "准确LoadVideo注册" + }, + { + "id": "load", + "file": "videohelpersuite/utils.py", + "local_file": "../multivideo-reference/load__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_blob_sha1": "75431d5a9e151ae50257d3fd14c03ffbc7570d39", + "lines": [ + 17, + 56 + ], + "claim": "BIGMAX=2**53-1、DIMMAX8192、floatOrInt" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 41, + 168 + ], + "claim": "85509813包内字典保存恢复,不证明未知宿主/UE次序" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 915, + 970 + ], + "claim": "85509813历史预览对象保存" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 1222, + 1282 + ], + "claim": "85509813格式动态控件/回调,不执行恢复" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 207, + 395 + ], + "claim": "准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 395, + 592 + ], + "claim": "准确0a75c795视频补边/编码、循环、音频混流和中间文件条件" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 40, + 160 + ], + "claim": "准确0a75c795模板展开str转换与元数据FFmpeg条件" + }, + { + "id": "combine", + "file": "video_formats/h264-mp4.json", + "local_file": "../multivideo-reference/combine__video_formats__h264-mp4.json", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288", + "git_blob_sha1": "c591b5b6c4604276d86a6b6bd453cf44fb74566d", + "lines": [ + 1, + 14 + ], + "claim": "本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 979, + 1010 + ], + "claim": "准确VideoCombine注册" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 31, + 158 + ], + "claim": "0a75c795包内保存恢复,非宿主前端版本证明" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 805, + 865 + ], + "claim": "0a75c795完整历史预览对象保存" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 1103, + 1149 + ], + "claim": "0a75c795格式改变重建额外控件" + }, + { + "id": "concat", + "file": "__init__.py", + "local_file": "../multivideo-reference/concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 227, + 257 + ], + "claim": "NODE_CONFIG导出真实注册映射" + }, + { + "id": "resize", + "file": "__init__.py", + "local_file": "../multivideo-reference/resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 227, + 257 + ], + "claim": "NODE_CONFIG导出真实注册映射" + }, + { + "id": "load", + "file": "__init__.py", + "local_file": "../multivideo-reference/load____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "lines": [ + 1, + 9 + ], + "claim": "VHS包节点导出及web目录" + }, + { + "id": "combine", + "file": "__init__.py", + "local_file": "../multivideo-reference/combine____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "lines": [ + 1, + 9 + ], + "claim": "VHS包节点导出及web目录" + }, + { + "id": "concat", + "file": "LICENSE", + "local_file": "../multivideo-reference/concat__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "id": "resize", + "file": "LICENSE", + "local_file": "../multivideo-reference/resize__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "../multivideo-reference/load__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "id": "combine", + "file": "LICENSE", + "local_file": "../multivideo-reference/combine__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + } + ], + "comments": [], + "flow": [ + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "上半mode4节点为2/1/3/7/5/8/6/4,物理支路4→5、6→7、5+7→1、8+1→2→3。不能模拟旁路追线,也不把8或1补连活动10。", + "下半mode0节点10/11/12/17/18/16;活动11第一输入17、第二输入16,direction=down;11输出接10.image_2,10保存left但image_1原link=null。Concat准确schema必需image_1,实现直接kwargs[\"image_1\"];仅后续缺输入回退零张量,不能套给第一路。宿主验证/报错细节未运行确认。", + "拼接是空间拼接,不是视频首尾相接;match_image_size=true时down以第一幅宽为准、left以第一幅高为准,另一边按比例int计算。短批次重复末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。", + "两个Resize5/7均mode4,保存512×896/lanczos/crop/0, 0, 0/center/32/cpu;crop先按32向下取整,再round算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos源码明确抛错。两width/height UE可连声明保持,物理link均null。", + "五LoadVideo均force_rate16、width/height0、nth1、AnimateDiff。17及4 cap161/skip25;16/6/8 cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材尺寸未知;AnimateDiff target_rate8不等于Python强制把16覆盖为8,动态格式回调和UE恢复未知。", + "两Combine3/12均保存16/loop0/WanVideo_SCAIL/h264-mp4/yuv420p/CRF19/save_metadata=true/trim_to_audio=false/pingpong=false/save_output=false;帧率均无外线覆盖。两audio、meta_batch、vae均未接,五加载器音频出口均未接,不称音画自动同步或保留原声音。", + "H264视频分支使用libx264及模板颜色参数,尺寸可能按dim_alignment默认2补边;save_metadata控制视频元数据,VHS_MetadataImage默认true独立控制首帧PNG。save_output=false选择temp仍可能写文件;VHS_KeepIntermediate按条件清中间文件,不是禁止落盘。", + "trim_to_audio=false只在有效音频波形存在时影响apad/-shortest混流;当前audio无源线,不编AAC成品或保留原音。loop0不追加视频循环,pingpong=false不追加往返,源路径和16fps不保证时长或输出。", + "7个完整历史预览对象逐节点纯文本保留:3与12的旧D盘temp路径对象完全相同也不去重;4/6/8/17/16保留各自input缓存。hidden/paused/params均保存,不请求api/view、图片或视频,也不验证路径存在。", + "Bypasser18原缺widgets_values键,不能改成[]、null或{}。没有提供方/版本声明,类名不证明注册或当前动态开关;matchColors/matchTitle/showNav/showAllGraphs/sort/customSortAlphabet/toggleRestriction仅源保存状态,不推算执行作用。", + "源无frontendVersion,workflowRendererVersion=LG不当版本;通常UE7.5.1,Bypasser7.5.2,extra.ue_links及links_added_by_ue原[]。空表不证明无回调影响,未加载宿主或UE,不调查旧别名或目标机器。", + "素材目录、动态选项、源尺寸/FPS、编解码器、权限和真实效果未知;源无模型节点,不编模型依赖。只固定准确声明提交文本,不执行插件/模型/媒体探测/ffmpeg,不修复源图,不构造prompt。", + "源物理边:[2, 2, 0, 3, 0, \"IMAGE\"]", + "源物理边:[3, 4, 0, 5, 0, \"IMAGE\"]", + "源物理边:[5, 6, 0, 7, 0, \"IMAGE\"]", + "源物理边:[11, 5, 0, 1, 0, \"IMAGE\"]", + "源物理边:[12, 7, 0, 1, 1, \"IMAGE\"]", + "源物理边:[15, 8, 0, 2, 0, \"IMAGE\"]", + "源物理边:[16, 1, 0, 2, 1, \"IMAGE\"]", + "源物理边:[18, 11, 0, 10, 1, \"IMAGE\"]", + "源物理边:[21, 10, 0, 12, 0, \"IMAGE\"]", + "源物理边:[24, 16, 0, 11, 1, \"IMAGE\"]", + "源物理边:[25, 17, 0, 11, 0, \"IMAGE\"]", + "节点2 ImageConcatMulti mode=4;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点1 ImageConcatMulti mode=4;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点3 VHS_VideoCombine mode=4;保存位置=11;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"0a75c7958fe320efcb052f1d9f8451fd20c730a8\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点7 ImageResizeKJv2 mode=4;保存位置=8;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b\", \"Node name for S&R\": \"ImageResizeKJv2\", \"ue_properties\": {\"widget_ue_connectable\": {\"width\": true, \"height\": true}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点5 ImageResizeKJv2 mode=4;保存位置=8;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b\", \"Node name for S&R\": \"ImageResizeKJv2\", \"ue_properties\": {\"widget_ue_connectable\": {\"width\": true, \"height\": true}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点8 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点6 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点4 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点10 ImageConcatMulti mode=0;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点11 ImageConcatMulti mode=0;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点12 VHS_VideoCombine mode=0;保存位置=11;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"0a75c7958fe320efcb052f1d9f8451fd20c730a8\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点17 VHS_LoadVideo mode=0;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点18 Fast Groups Bypasser (rgthree) mode=0;保存位置=缺widgets_values键;原properties={\"matchColors\": \"\", \"matchTitle\": \"\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}", + "节点16 VHS_LoadVideo mode=0;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}" + ], + "flow_evidence": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28 + ], + "zero_saved_nodes": [ + { + "node_id": "18", + "class_type": "Fast Groups Bypasser (rgthree)", + "effect": "原缺widgets_values键,提供方/版本未声明;原组控制属性仅源状态,注册与动态开关/执行作用未知。" + } + ], + "steps": [ + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。", + "操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。", + "操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。", + "操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。", + "操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。", + "常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参考,实际效果未测。", + "目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实效果待后续核对;本轮只GET说明,无prompt/新候选/实跑,155完整定稿0。" + ] } }, "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json": { diff --git a/calliope-backend/tests/test_background_fixed_document.py b/calliope-backend/tests/test_background_fixed_document.py index 35b4bca3..c5f61fa5 100644 --- a/calliope-backend/tests/test_background_fixed_document.py +++ b/calliope-backend/tests/test_background_fixed_document.py @@ -190,6 +190,8 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent(): p = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "ec3388a:" + p], cwd=REPO)) now = json.loads((REPO / p).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -220,7 +222,9 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent(): assert len(additions) == 12 for p in additions: now[p].pop("fixed_version_document") - historical = [p for p in DEFINITIONS if p not in additions and p not in [birefnet, watermark]] + historical = [ + p for p in DEFINITIONS if p not in additions and p not in [birefnet, watermark, multivideo] + ] assert len(historical) == 11 for path in historical: block = now[path]["fixed_version_document"] diff --git a/calliope-backend/tests/test_birefnet_fixed_document.py b/calliope-backend/tests/test_birefnet_fixed_document.py index df8fa95f..ce8949d4 100644 --- a/calliope-backend/tests/test_birefnet_fixed_document.py +++ b/calliope-backend/tests/test_birefnet_fixed_document.py @@ -174,10 +174,12 @@ def test_actual_graph_counts_pointers_notes_unknowns_and_old_objects(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "6e1e47b:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") b = now[PATHS[0]].pop("fixed_version_document") - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 old_blocks = [ r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r ] diff --git a/calliope-backend/tests/test_concat_fixed_document.py b/calliope-backend/tests/test_concat_fixed_document.py index d8f3621e..a82a330a 100644 --- a/calliope-backend/tests/test_concat_fixed_document.py +++ b/calliope-backend/tests/test_concat_fixed_document.py @@ -162,6 +162,8 @@ def test_actual_paths_counts_old_objects_and_media_conditions(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "d1ba226:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -172,7 +174,7 @@ def test_actual_paths_counts_old_objects_and_media_conditions(): now[later].pop("fixed_version_document") b = now[PATHS[0]].pop("fixed_version_document") d = doc(0) - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 assert d["fixed_version"]["matched"] and len(b["fields"]) == 42 assert b["comments"] == [] and b["counts"]["history_objects"] == 3 assert b["counts"]["scalar_saved_positions"] == 39 diff --git a/calliope-backend/tests/test_controlnet_fixed_document.py b/calliope-backend/tests/test_controlnet_fixed_document.py index cd6a5e5f..36884e16 100644 --- a/calliope-backend/tests/test_controlnet_fixed_document.py +++ b/calliope-backend/tests/test_controlnet_fixed_document.py @@ -203,7 +203,7 @@ def test_graph_specific_semantics_and_companion(): def test_other_documents_and_block_swaps(): - assert len(DEFINITIONS) == 25 + assert len(DEFINITIONS) == 26 for path in DEFINITIONS: if path == PATH: continue diff --git a/calliope-backend/tests/test_frames_fixed_document.py b/calliope-backend/tests/test_frames_fixed_document.py index 0856618e..4a80b3f8 100644 --- a/calliope-backend/tests/test_frames_fixed_document.py +++ b/calliope-backend/tests/test_frames_fixed_document.py @@ -162,6 +162,8 @@ def test_exact_graph_versions_and_preservation(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "9db8857:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -169,7 +171,7 @@ def test_exact_graph_versions_and_preservation(): latent = next(p for p in now if p.endswith("/加载本地latent解码.json")) now[latent].pop("fixed_version_document") b = now[PATHS[0]].pop("fixed_version_document") - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 assert len(b["fields"]) == 31 and b["counts"]["history_objects"] == 3 assert b["counts"]["scalar_saved_positions"] == 28 assert b["comments"] == [] and b["counts"]["linked_saved_fields"] == 0 diff --git a/calliope-backend/tests/test_gemma_fixed_document.py b/calliope-backend/tests/test_gemma_fixed_document.py index 6999c9e3..f3efdd19 100644 --- a/calliope-backend/tests/test_gemma_fixed_document.py +++ b/calliope-backend/tests/test_gemma_fixed_document.py @@ -153,6 +153,8 @@ def test_real_document_and_frozen_old_thirteen_blocks(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "9dac1b4:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -178,7 +180,7 @@ def test_real_document_and_frozen_old_thirteen_blocks(): # SDPose is independently frozen against 7291887 in its own suite. sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json")) now[sdpose].pop("fixed_version_document") - assert len(now) == 156 and len(DEFINITIONS) == 25 + assert len(now) == 156 and len(DEFINITIONS) == 26 assert len([r for r in old.values() if "fixed_version_document" in r]) == 13 assert ( sum( diff --git a/calliope-backend/tests/test_gif_images_fixed_document.py b/calliope-backend/tests/test_gif_images_fixed_document.py index 48087be1..a9961a79 100644 --- a/calliope-backend/tests/test_gif_images_fixed_document.py +++ b/calliope-backend/tests/test_gif_images_fixed_document.py @@ -136,6 +136,8 @@ def test_actual_paths_counts_old_objects_and_media_conditions(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "ae625ac:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -159,7 +161,7 @@ def test_actual_paths_counts_old_objects_and_media_conditions(): assert all(step in d["steps"] for step in b["steps"]) added = next(p for p in now if p.endswith("双图像或视频合并显示.json")) now[added].pop("fixed_version_document") - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] assert len(blocks) == 18 and sum(len(b["fields"]) for b in blocks) == 516 gif = doc(0)["fixed_version"] diff --git a/calliope-backend/tests/test_grid_fixed_document.py b/calliope-backend/tests/test_grid_fixed_document.py index 446750dd..114e575d 100644 --- a/calliope-backend/tests/test_grid_fixed_document.py +++ b/calliope-backend/tests/test_grid_fixed_document.py @@ -171,6 +171,8 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "27e6d56:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -199,7 +201,7 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved(): # Gemma addition is independently protected against 9dac1b4 in its own suite. gemma = next(p for p in now if p.endswith("gemma4_提示词反推(图像视频音频).json")) now[gemma].pop("fixed_version_document") - assert len(DEFINITIONS) == 25 + assert len(DEFINITIONS) == 26 assert ( sum( len(r["fixed_version_document"]["fields"]) diff --git a/calliope-backend/tests/test_latent_fixed_document.py b/calliope-backend/tests/test_latent_fixed_document.py index a04c85c9..52c56a38 100644 --- a/calliope-backend/tests/test_latent_fixed_document.py +++ b/calliope-backend/tests/test_latent_fixed_document.py @@ -162,12 +162,14 @@ def test_exact_graph_versions_and_preservation(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "256e6be:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) now[birefnet].pop("fixed_version_document") b = now[PATHS[0]].pop("fixed_version_document") - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 assert b["counts"] == dict( saved_fields=13, scalar_saved_positions=12, diff --git a/calliope-backend/tests/test_multivideo_fixed_document.py b/calliope-backend/tests/test_multivideo_fixed_document.py new file mode 100644 index 00000000..0597d50e --- /dev/null +++ b/calliope-backend/tests/test_multivideo_fixed_document.py @@ -0,0 +1,283 @@ +"""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/multivideo-document-evidence" +PATHS = [next(p for p in DEFINITIONS if p.endswith(n + ".json")) for n in ["多视频合成分屏展示"]] +SOURCES = [json.loads((REPO / p).read_bytes()) for p in PATHS] +REVIEWS = [review_for(p, hashlib.sha1((REPO / p).read_bytes()).hexdigest()) for p in PATHS] +FIELDS = [(i, f) for i, r in enumerate(REVIEWS) for f in r["fixed_version_document"]["fields"]] + + +def pointer(obj, path): + for part in path.strip("/").split("/"): + obj = obj[int(part)] if isinstance(obj, list) else obj[part] + return obj + + +def doc(i, source=None, review=None): + return build_document( + PATHS[i], + SOURCES[i] if source is None else source, + None, + None, + [], + REVIEWS[i] if review is None else review, + ) + + +@pytest.mark.parametrize("i,field", FIELDS) +def test_exact_positions_and_fixed_text_citations(i, field): + value = pointer(SOURCES[i], field["pointer"]) + assert ( + canonical(value) == canonical(field["value"]) and type(value).__name__ == field["json_type"] + ) + for k in [ + "label", + "type", + "schema_default", + "unit", + "limits", + "effect", + "execution_note", + "role", + ]: + assert field[k] + for k in field["evidence"]: + e = REVIEWS[i]["fixed_version_document"]["sources"][k] + raw = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines()) + assert (len(e["commit"]) == 40 and e["commit"] in e["url"]) or e.get( + "git_commit_binding" + ) == "unknown" + + +@pytest.mark.parametrize("i,field", FIELDS) +@pytest.mark.parametrize("variant", ["saved", "type", "text"]) +def test_every_position_refuses_even_recomputed_caller_digest(i, field, variant): + s, r = copy.deepcopy(SOURCES[i]), copy.deepcopy(REVIEWS[i]) + b = r["fixed_version_document"] + f = next(f for f in b["fields"] if f["pointer"] == field["pointer"]) + if variant == "text": + f["schema_default"] = "forged" + else: + parent, _, key = field["pointer"].rpartition("/") + target = pointer(s, parent) + target[int(key) if isinstance(target, list) else key] = ( + "forged" if variant == "type" else ("changed-null" if field["value"] is None else None) + ) + f["value"] = pointer(s, field["pointer"]) + f["json_type"] = type(f["value"]).__name__ + b["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + r["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest() + assert not doc(i, s, r)["fixed_version"]["matched"] + + +@pytest.mark.parametrize("node", [n["id"] for n in SOURCES[0]["nodes"]]) +@pytest.mark.parametrize("variant", ["mode", "identity", "ue", "saved_shape"]) +def test_every_node_identity_mode_ue_and_saved_shape_refuses(node, variant): + s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0]) + n = next(n for n in s["nodes"] if n["id"] == node) + if variant == "mode": + n["mode"] = 2 + elif variant == "identity": + n["properties"]["ver"] = "forged" + elif variant == "ue": + n["properties"]["ue_properties"]["version"] = "forged" + else: + n["widgets_values"] = [] if "widgets_values" not in n else None + r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + r["caller_digest"] = hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest() + assert not doc(0, s, r)["fixed_version"]["matched"] + + +@pytest.mark.parametrize("edge", range(11)) +@pytest.mark.parametrize("slot", range(6)) +def test_every_physical_endpoint_refuses(edge, slot): + s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0]) + s["links"][edge][slot] = "forged" if slot == 5 else 999 + r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + assert not doc(0, s, r)["fixed_version"]["matched"] + + +@pytest.mark.parametrize( + "variant", + [ + "missing", + "empty", + "null", + "object", + "first_input", + "frontend", + "renderer", + "ue", + "citation", + "summary", + "raw", + "path", + "cache", + "provider", + ], +) +def test_binding_unknowns_and_missing_keys_refuse(variant): + s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0]) + ns = {n["id"]: n for n in s["nodes"]} + b = r["fixed_version_document"] + if variant in ["missing", "empty", "null", "object"]: + if variant == "missing": + del ns[3]["widgets_values"]["videopreview"] + else: + ns[18]["widgets_values"] = {"empty": [], "null": None, "object": {}}[variant] + elif variant == "first_input": + ns[10]["inputs"][0]["link"] = 16 + elif variant == "frontend": + s["extra"]["frontendVersion"] = "1.43.17" + elif variant == "renderer": + s["extra"]["workflowRendererVersion"] = "forged" + elif variant == "ue": + ns[5]["properties"]["ue_properties"]["widget_ue_connectable"]["width"] = False + elif variant == "citation": + b["sources"][0]["sha256"] = "0" * 64 + elif variant == "summary": + b["user_overview"] = "伪造已可执行" + elif variant == "raw": + r["source_sha"] = "0" * 40 + elif variant == "path": + b["source_path"] = "forged" + elif variant == "cache": + ns[12]["widgets_values"]["videopreview"]["params"]["fullpath"] = "forged" + else: + ns[18]["properties"]["cnr_id"] = "rgthree-comfy" + b["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + r["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest() + assert not doc(0, s, r)["fixed_version"]["matched"] + + +def test_exact_graph_semantics_and_old_25_objects(): + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + old = json.loads(subprocess.check_output(["git", "show", "197f3e1:" + resource], cwd=REPO)) + now = json.loads((REPO / resource).read_bytes()) + b = now[PATHS[0]].pop("fixed_version_document") + assert now == old and len(DEFINITIONS) == 26 + oldblocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] + assert len(oldblocks) == 25 and sum(len(b["fields"]) for b in oldblocks) == 721 + ns = {n["id"]: n for n in SOURCES[0]["nodes"]} + assert len(ns) == 14 and len(SOURCES[0]["links"]) == 11 + assert {i for i, n in ns.items() if n["mode"] == 4} == {2, 1, 3, 7, 5, 8, 6, 4} + assert {i for i, n in ns.items() if n["mode"] == 0} == {10, 11, 12, 17, 18, 16} + assert {i for i, n in ns.items() if "widgets_values" not in n} == {18} + assert sum(len(n.get("widgets_values", [])) for n in ns.values()) == 99 + assert len({f["pointer"] for f in b["fields"]}) == 99 + assert sum(isinstance(f["value"], dict) for f in b["fields"]) == 7 + assert sum(f["value"] is None for f in b["fields"]) == 4 + assert sum(not isinstance(f["value"], dict) for f in b["fields"]) == 92 + assert ns[3]["widgets_values"]["videopreview"] == ns[12]["widgets_values"]["videopreview"] + assert ( + len( + [f for f in b["fields"] if f["node_id"] in ["3", "12"] and f["field"] == "videopreview"] + ) + == 2 + ) + assert ns[10]["inputs"][0]["name"] == "image_1" and ns[10]["inputs"][0]["link"] is None + for eid, origin, slot, target, inp, typ in SOURCES[0]["links"]: + assert eid in ns[origin]["outputs"][slot]["links"] + assert ns[origin]["outputs"][slot]["type"] == typ + assert ns[target]["inputs"][inp]["link"] == eid + assert ns[target]["inputs"][inp]["type"] == typ + assert SOURCES[0]["links"][-4:] == [ + [18, 11, 0, 10, 1, "IMAGE"], + [21, 10, 0, 12, 0, "IMAGE"], + [24, 16, 0, 11, 1, "IMAGE"], + [25, 17, 0, 11, 0, "IMAGE"], + ] + assert all( + next(i for i in ns[n]["inputs"] if i["name"] == "audio")["link"] is None for n in [3, 12] + ) + assert all(ns[n]["outputs"][2]["links"] is None for n in [4, 6, 8, 17, 16]) + for n in [5, 7]: + assert ns[n]["widgets_values"] == [ + 512, + 896, + "lanczos", + "crop", + "0, 0, 0", + "center", + 32, + "cpu", + ] + assert ns[n]["properties"]["ue_properties"]["widget_ue_connectable"] == dict( + width=True, height=True + ) + assert "frontendVersion" not in SOURCES[0]["extra"] + assert SOURCES[0]["extra"]["workflowRendererVersion"] == "LG" + d = doc(0) + assert d["fixed_version"]["matched"] + assert d["dependencies"]["check_state"] == "unchecked" + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert not b["counts"]["final_prompt_constructed"] and b["comments"] == [] + for token in [ + "10.image_1原link=null", + "上半8", + "不能称三屏完整可执行", + "音频均未接", + "temp", + "历史缓存", + ]: + assert token in b["user_overview"] + texts = " ".join(f["effect"] for f in b["fields"]) + for token in [ + "kwargs", + "向下取整", + "gpu+lanczos", + "crop", + "VHS_MetadataImage", + "-shortest", + "target_rate", + "按钮候选", + ]: + assert token in texts + commits = {e["id"]: e["commit"] for e in b["sources"]} + assert commits == dict( + concat="ff7f876c09ff5a53be051073c3c1731b96ee31a3", + resize="50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + load="8550981384301e9bc5bfea83e5c2c75258102593", + combine="0a75c7958fe320efcb052f1d9f8451fd20c730a8", + ) + + +@pytest.mark.parametrize("edge", range(11)) +@pytest.mark.parametrize("endpoint", ["origin", "target"]) +def test_both_node_endpoint_records_refuse(edge, endpoint): + s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0]) + ns = {n["id"]: n for n in s["nodes"]} + eid, origin, slot, target, inp, _ = s["links"][edge] + if endpoint == "origin": + ns[origin]["outputs"][slot]["links"].remove(eid) + else: + ns[target]["inputs"][inp]["link"] = None + r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + assert not doc(0, s, r)["fixed_version"]["matched"] + + +@pytest.mark.parametrize("node", [3, 12, 4, 6, 8, 17, 16]) +@pytest.mark.parametrize("shape", ["missing", "empty", "list", "null"]) +def test_seven_history_objects_are_individually_bound(node, shape): + s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0]) + values = next(n for n in s["nodes"] if n["id"] == node)["widgets_values"] + if shape == "missing": + del values["videopreview"] + else: + values["videopreview"] = {"empty": {}, "list": [], "null": None}[shape] + r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + assert not doc(0, s, r)["fixed_version"]["matched"] diff --git a/calliope-backend/tests/test_nlf_fixed_document.py b/calliope-backend/tests/test_nlf_fixed_document.py index a6958af3..ae2cd3e2 100644 --- a/calliope-backend/tests/test_nlf_fixed_document.py +++ b/calliope-backend/tests/test_nlf_fixed_document.py @@ -260,6 +260,8 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -279,7 +281,7 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects(): reverse = next(p for p in now if p.endswith("/视频倒放.json")) now[reverse].pop("fixed_version_document") assert now[PATH].pop("fixed_version_document") == BLOCK - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 old_blocks = [ r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r ] @@ -290,7 +292,7 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects(): assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) assert d["dependencies"]["check_state"] == "unchecked" for p in DEFINITIONS: - if p == watermark: + if p in [watermark, multivideo]: continue if p.endswith("/birefnet_图像移除背景.json"): continue diff --git a/calliope-backend/tests/test_openpose_fixed_document.py b/calliope-backend/tests/test_openpose_fixed_document.py index 043b365d..8b811fee 100644 --- a/calliope-backend/tests/test_openpose_fixed_document.py +++ b/calliope-backend/tests/test_openpose_fixed_document.py @@ -202,6 +202,8 @@ def test_exact_document_topology_and_preservation(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO)) current = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in current if p.endswith("/多视频合成分屏展示.json")) + current[multivideo].pop("fixed_version_document") watermark = next(p for p in current if p.endswith("/图像4种添加水印节点.json")) current[watermark].pop("fixed_version_document") birefnet = next(p for p in current if p.endswith("/birefnet_图像移除背景.json")) @@ -223,7 +225,7 @@ def test_exact_document_topology_and_preservation(): nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json")) current[nlf].pop("fixed_version_document") assert current[PATH].pop("fixed_version_document") == BLOCK - assert current == previous and len(DEFINITIONS) == 25 + assert current == previous and len(DEFINITIONS) == 26 old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r] assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394 assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note @@ -231,7 +233,7 @@ def test_exact_document_topology_and_preservation(): assert d["dependencies"]["check_state"] == "unchecked" assert not doc(path="untrusted.json").get("fixed_version") for p in DEFINITIONS: - if p == watermark: + if p in [watermark, multivideo]: continue if p.endswith("/birefnet_图像移除背景.json"): continue diff --git a/calliope-backend/tests/test_reverse_fixed_document.py b/calliope-backend/tests/test_reverse_fixed_document.py index 876574c6..e1d44ae3 100644 --- a/calliope-backend/tests/test_reverse_fixed_document.py +++ b/calliope-backend/tests/test_reverse_fixed_document.py @@ -213,6 +213,8 @@ def test_exact_graph_and_original_seventeen_unchanged(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -232,7 +234,7 @@ def test_exact_graph_and_original_seventeen_unchanged(): ]: now[added].pop("fixed_version_document") assert now[PATH].pop("fixed_version_document") == BLOCK - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495 assert ( @@ -241,7 +243,7 @@ def test_exact_graph_and_original_seventeen_unchanged(): assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) assert d["dependencies"]["check_state"] == "unchecked" for p in DEFINITIONS: - if p == watermark: + if p in [watermark, multivideo]: continue if p.endswith("/birefnet_图像移除背景.json"): continue diff --git a/calliope-backend/tests/test_sdpose_fixed_document.py b/calliope-backend/tests/test_sdpose_fixed_document.py index 31b743c1..f151aab4 100644 --- a/calliope-backend/tests/test_sdpose_fixed_document.py +++ b/calliope-backend/tests/test_sdpose_fixed_document.py @@ -154,6 +154,7 @@ def test_real_document_and_frozen_old_fourteen_blocks(): p for p in DEFINITIONS if p != PATH + and not p.endswith("/多视频合成分屏展示.json") and not p.endswith("/图像4种添加水印节点.json") and not p.endswith("/birefnet_图像移除背景.json") and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")) @@ -163,6 +164,8 @@ def test_real_document_and_frozen_old_fourteen_blocks(): ) resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) now[watermark].pop("fixed_version_document") birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) @@ -192,7 +195,7 @@ def test_real_document_and_frozen_old_fourteen_blocks(): assert not doc(review=review)["fixed_version"]["matched"] now[openpose].pop("fixed_version_document") old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO)) - assert len(now) == 156 and len(DEFINITIONS) == 25 + assert len(now) == 156 and len(DEFINITIONS) == 26 old_blocks = [ r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r ] diff --git a/calliope-backend/tests/test_watermark_fixed_document.py b/calliope-backend/tests/test_watermark_fixed_document.py index 73948233..8f904dd9 100644 --- a/calliope-backend/tests/test_watermark_fixed_document.py +++ b/calliope-backend/tests/test_watermark_fixed_document.py @@ -188,8 +188,10 @@ def test_exact_graph_semantics_and_old_24_objects(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "11938ca:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") block = now[PATHS[0]].pop("fixed_version_document") - assert now == old and len(DEFINITIONS) == 25 + assert now == old and len(DEFINITIONS) == 26 oldblocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] assert len(oldblocks) == 24 and sum(len(b["fields"]) for b in oldblocks) == 665 assert sum(len(b.get("comments", [])) for b in oldblocks) == 15 # ASR source note independent diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-310.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-310.pyc new file mode 100644 index 00000000..6e31af27 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-310.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-311.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-311.pyc new file mode 100644 index 00000000..9db30359 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-311.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/check_code.cpython-310.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/check_code.cpython-310.pyc new file mode 100644 index 00000000..8dc00376 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/check_code.cpython-310.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-310.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-310.pyc new file mode 100644 index 00000000..bd1f93c9 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-310.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-311.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-311.pyc new file mode 100644 index 00000000..6ef32d94 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-311.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/render_report.cpython-310.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/render_report.cpython-310.pyc new file mode 100644 index 00000000..c41138f5 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/render_report.cpython-310.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/__pycache__/verify_sources.cpython-311.pyc b/docs/hel-892/multivideo-document-evidence/__pycache__/verify_sources.cpython-311.pyc new file mode 100644 index 00000000..e2471b3c Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/__pycache__/verify_sources.cpython-311.pyc differ diff --git a/docs/hel-892/multivideo-document-evidence/actual-多视频合成分屏展示.json b/docs/hel-892/multivideo-document-evidence/actual-多视频合成分屏展示.json new file mode 100644 index 00000000..7d17fb9f --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/actual-多视频合成分屏展示.json @@ -0,0 +1,8399 @@ +{ + "companion_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "dependencies": { + "check_state": "unchecked", + "checked_at": null, + "missing": [], + "model_locations": "待目标机提供", + "models": [], + "node_packs": [], + "node_types": [ + "Fast Groups Bypasser (rgthree)", + "ImageConcatMulti", + "ImageResizeKJv2", + "VHS_LoadVideo", + "VHS_VideoCombine" + ], + "source": null + }, + "draft": true, + "errors": [ + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "ImageConcatMulti 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "ImageConcatMulti 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_VideoCombine 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "ImageResizeKJv2 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "ImageResizeKJv2 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_LoadVideo 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_LoadVideo 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_LoadVideo 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:ImageConcatMulti" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:ImageConcatMulti" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_VideoCombine" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_LoadVideo" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Fast Groups Bypasser (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_LoadVideo" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "未得到可执行节点" + } + ], + "fixed_version": { + "canonical_sha256": "1920161949401e21c194b4b6f05f3a954c64fcd7fc74b42db0c764469e395b07", + "comments": [], + "counts": { + "final_prompt_constructed": false, + "final_scalars": 0, + "frontend_only": 11, + "history_objects": 7, + "linked_saved_fields": 0, + "null_positions": 4, + "physical_edges": 11, + "saved_fields": 99, + "scalar_saved_positions": 92, + "source_nodes": 14, + "source_notes": 0 + }, + "fields": [ + { + "class_type": "ImageConcatMulti", + "definition_node_id": "2", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "inputcount", + "json_type": "int", + "label": "拼接输入数量", + "limits": "2~1000,step1", + "node_id": "2", + "pointer": "/nodes/0/widgets_values/0", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "路", + "value": 2 + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "2", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "direction", + "json_type": "str", + "label": "空间拼接方向", + "limits": "right/down/left/up", + "node_id": "2", + "pointer": "/nodes/0/widgets_values/1", + "role": "scalar", + "schema_default": "right", + "scope": "root", + "type": "COMBO", + "unit": "方向", + "value": "left" + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "2", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "match_image_size", + "json_type": "bool", + "label": "匹配图像尺寸", + "limits": "true/false", + "node_id": "2", + "pointer": "/nodes/0/widgets_values/2", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "2", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "saved_position_3", + "json_type": "NoneType", + "label": "额外null保存位置(按钮候选)", + "limits": "原值null;不同于缺键/[]/{}", + "node_id": "2", + "pointer": "/nodes/0/widgets_values/3", + "role": "frontend_state_unknown", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "scope": "root", + "type": "未知前端状态", + "unit": "未知", + "value": null + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "inputcount", + "json_type": "int", + "label": "拼接输入数量", + "limits": "2~1000,step1", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/0", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "路", + "value": 2 + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "1", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "direction", + "json_type": "str", + "label": "空间拼接方向", + "limits": "right/down/left/up", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/1", + "role": "scalar", + "schema_default": "right", + "scope": "root", + "type": "COMBO", + "unit": "方向", + "value": "down" + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "1", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "match_image_size", + "json_type": "bool", + "label": "匹配图像尺寸", + "limits": "true/false", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/2", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "1", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "saved_position_3", + "json_type": "NoneType", + "label": "额外null保存位置(按钮候选)", + "limits": "原值null;不同于缺键/[]/{}", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/3", + "role": "frontend_state_unknown", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "scope": "root", + "type": "未知前端状态", + "unit": "未知", + "value": null + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_rate", + "json_type": "int", + "label": "合成播放帧率", + "limits": "min1,step1;无schema max", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/frame_rate", + "role": "scalar", + "schema_default": "8", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "loop_count", + "json_type": "int", + "label": "视频额外循环", + "limits": "0~100,step1", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/loop_count", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "循环", + "value": 0 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "filename_prefix", + "json_type": "str", + "label": "输出文件名前缀", + "limits": "无schema长度范围;目录权限未知", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/filename_prefix", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "STRING", + "unit": "路径前缀", + "value": "WanVideo_SCAIL" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "合成输出格式", + "limits": "image/gif、image/webp及动态FFmpeg模板", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/format", + "role": "scalar", + "schema_default": "列表首项image/gif;动态视频格式无固定目标默认", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "video/h264-mp4" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "pix_fmt", + "json_type": "str", + "label": "视频像素格式", + "limits": "yuv420p/yuv420p10le", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/pix_fmt", + "role": "scalar", + "schema_default": "首项yuv420p", + "scope": "root", + "type": "COMBO", + "unit": "像素格式", + "value": "yuv420p" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "crf", + "json_type": "int", + "label": "H264质量参数", + "limits": "模板0~100,step1;编码器可接受范围另待核", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/crf", + "role": "scalar", + "schema_default": "19", + "scope": "root", + "type": "INT", + "unit": "CRF", + "value": 19 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "save_metadata", + "json_type": "bool", + "label": "视频元数据开关", + "limits": "true/false;视频模板条件", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/save_metadata", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "trim_to_audio", + "json_type": "bool", + "label": "按音频条件裁切", + "limits": "仅audio波形有效才进入混流", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/trim_to_audio", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "pingpong", + "json_type": "bool", + "label": "追加往返帧", + "limits": "true/false;meta_batch兼容受实现限制", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/pingpong", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "save_output", + "json_type": "bool", + "label": "保存目录选择", + "limits": "true→output;false→temp;均可能写文件", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/save_output", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "3", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 19, + 18 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "3", + "pointer": "/nodes/2/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "format": "video/h264-mp4", + "frame_rate": 16, + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "workflow": "WanVideo_SCAIL_00004.png" + }, + "paused": false + } + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "width", + "json_type": "int", + "label": "目标宽度", + "limits": "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/0", + "role": "scalar", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 512 + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "height", + "json_type": "int", + "label": "目标高度", + "limits": "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/1", + "role": "scalar", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 896 + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "upscale_method", + "json_type": "str", + "label": "缩放插值方法", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/2", + "role": "scalar", + "schema_default": "无显式default;列表首项nearest-exact", + "scope": "root", + "type": "COMBO", + "unit": "插值方式", + "value": "lanczos" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "keep_proportion", + "json_type": "str", + "label": "比例与裁切模式", + "limits": "stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/3", + "role": "scalar", + "schema_default": "schema显式false(不在选项中);真实恢复默认未知", + "scope": "root", + "type": "COMBO", + "unit": "模式", + "value": "crop" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "pad_color", + "json_type": "str", + "label": "填充背景色", + "limits": "schema无字符串范围;填充色解析受实现约束", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/4", + "role": "scalar", + "schema_default": "0, 0, 0", + "scope": "root", + "type": "STRING", + "unit": "RGB字符串", + "value": "0, 0, 0" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "crop_position", + "json_type": "str", + "label": "裁切位置", + "limits": "center/top/bottom/left/right", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/5", + "role": "scalar", + "schema_default": "center", + "scope": "root", + "type": "COMBO", + "unit": "位置", + "value": "center" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "divisible_by", + "json_type": "int", + "label": "尺寸整除因数", + "limits": "0~512,step1;>1才取整", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/6", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "像素因数", + "value": 32 + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "7", + "effect": "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "device", + "json_type": "str", + "label": "缩放设备", + "limits": "cpu/gpu", + "node_id": "7", + "pointer": "/nodes/3/widgets_values/7", + "role": "scalar", + "schema_default": "schema无显式default,首项cpu;函数默认cpu", + "scope": "root", + "type": "COMBO", + "unit": "设备", + "value": "cpu" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "width", + "json_type": "int", + "label": "目标宽度", + "limits": "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/0", + "role": "scalar", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 512 + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "height", + "json_type": "int", + "label": "目标高度", + "limits": "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/1", + "role": "scalar", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 896 + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "upscale_method", + "json_type": "str", + "label": "缩放插值方法", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/2", + "role": "scalar", + "schema_default": "无显式default;列表首项nearest-exact", + "scope": "root", + "type": "COMBO", + "unit": "插值方式", + "value": "lanczos" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "keep_proportion", + "json_type": "str", + "label": "比例与裁切模式", + "limits": "stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/3", + "role": "scalar", + "schema_default": "schema显式false(不在选项中);真实恢复默认未知", + "scope": "root", + "type": "COMBO", + "unit": "模式", + "value": "crop" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "pad_color", + "json_type": "str", + "label": "填充背景色", + "limits": "schema无字符串范围;填充色解析受实现约束", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/4", + "role": "scalar", + "schema_default": "0, 0, 0", + "scope": "root", + "type": "STRING", + "unit": "RGB字符串", + "value": "0, 0, 0" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "crop_position", + "json_type": "str", + "label": "裁切位置", + "limits": "center/top/bottom/left/right", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/5", + "role": "scalar", + "schema_default": "center", + "scope": "root", + "type": "COMBO", + "unit": "位置", + "value": "center" + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "divisible_by", + "json_type": "int", + "label": "尺寸整除因数", + "limits": "0~512,step1;>1才取整", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/6", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "像素因数", + "value": 32 + }, + { + "class_type": "ImageResizeKJv2", + "definition_node_id": "5", + "effect": "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。", + "evidence": [ + 4, + 5 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "device", + "json_type": "str", + "label": "缩放设备", + "limits": "cpu/gpu", + "node_id": "5", + "pointer": "/nodes/4/widgets_values/7", + "role": "scalar", + "schema_default": "schema无显式default,首项cpu;函数默认cpu", + "scope": "root", + "type": "COMBO", + "unit": "设备", + "value": "cpu" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/video", + "role": "scalar", + "schema_default": "input目录动态枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "引用", + "value": "WanVideo_SCAIL_00006.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "加载重采样帧率", + "limits": "0~60,step1;0不强制重采样", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/force_rate", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义加载宽度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义加载高度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~2**53-1,step1;0不设该上限", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "加载帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~2**53-1,step1", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔抽取采样帧", + "limits": "1~2**53-1,step1", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "内置与动态核心扩展;目标选项未知", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "8", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "8", + "pointer": "/nodes/5/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "WanVideo_SCAIL_00006.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": true + } + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/video", + "role": "scalar", + "schema_default": "input目录动态枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "引用", + "value": "onetotall_pose_00001.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "加载重采样帧率", + "limits": "0~60,step1;0不强制重采样", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/force_rate", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义加载宽度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义加载高度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~2**53-1,step1;0不设该上限", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "加载帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~2**53-1,step1", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔抽取采样帧", + "limits": "1~2**53-1,step1", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "内置与动态核心扩展;目标选项未知", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "6", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "6", + "pointer": "/nodes/6/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "onetotall_pose_00001.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": true + } + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/video", + "role": "scalar", + "schema_default": "input目录动态枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "引用", + "value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "加载重采样帧率", + "limits": "0~60,step1;0不强制重采样", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/force_rate", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义加载宽度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义加载高度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~2**53-1,step1;0不设该上限", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "加载帧", + "value": 161 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~2**53-1,step1", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 25 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔抽取采样帧", + "limits": "1~2**53-1,step1", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "内置与动态核心扩展;目标选项未知", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "4", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "4", + "pointer": "/nodes/7/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 161, + "select_every_nth": 1, + "skip_first_frames": 25, + "type": "input" + }, + "paused": true + } + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "10", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "inputcount", + "json_type": "int", + "label": "拼接输入数量", + "limits": "2~1000,step1", + "node_id": "10", + "pointer": "/nodes/8/widgets_values/0", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "路", + "value": 2 + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "10", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "direction", + "json_type": "str", + "label": "空间拼接方向", + "limits": "right/down/left/up", + "node_id": "10", + "pointer": "/nodes/8/widgets_values/1", + "role": "scalar", + "schema_default": "right", + "scope": "root", + "type": "COMBO", + "unit": "方向", + "value": "left" + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "10", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "match_image_size", + "json_type": "bool", + "label": "匹配图像尺寸", + "limits": "true/false", + "node_id": "10", + "pointer": "/nodes/8/widgets_values/2", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "10", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "saved_position_3", + "json_type": "NoneType", + "label": "额外null保存位置(按钮候选)", + "limits": "原值null;不同于缺键/[]/{}", + "node_id": "10", + "pointer": "/nodes/8/widgets_values/3", + "role": "frontend_state_unknown", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "scope": "root", + "type": "未知前端状态", + "unit": "未知", + "value": null + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "11", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "inputcount", + "json_type": "int", + "label": "拼接输入数量", + "limits": "2~1000,step1", + "node_id": "11", + "pointer": "/nodes/9/widgets_values/0", + "role": "scalar", + "schema_default": "2", + "scope": "root", + "type": "INT", + "unit": "路", + "value": 2 + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "11", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "direction", + "json_type": "str", + "label": "空间拼接方向", + "limits": "right/down/left/up", + "node_id": "11", + "pointer": "/nodes/9/widgets_values/1", + "role": "scalar", + "schema_default": "right", + "scope": "root", + "type": "COMBO", + "unit": "方向", + "value": "down" + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "11", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "match_image_size", + "json_type": "bool", + "label": "匹配图像尺寸", + "limits": "true/false", + "node_id": "11", + "pointer": "/nodes/9/widgets_values/2", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "ImageConcatMulti", + "definition_node_id": "11", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "saved_position_3", + "json_type": "NoneType", + "label": "额外null保存位置(按钮候选)", + "limits": "原值null;不同于缺键/[]/{}", + "node_id": "11", + "pointer": "/nodes/9/widgets_values/3", + "role": "frontend_state_unknown", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "scope": "root", + "type": "未知前端状态", + "unit": "未知", + "value": null + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_rate", + "json_type": "int", + "label": "合成播放帧率", + "limits": "min1,step1;无schema max", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/frame_rate", + "role": "scalar", + "schema_default": "8", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "loop_count", + "json_type": "int", + "label": "视频额外循环", + "limits": "0~100,step1", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/loop_count", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "循环", + "value": 0 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "filename_prefix", + "json_type": "str", + "label": "输出文件名前缀", + "limits": "无schema长度范围;目录权限未知", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/filename_prefix", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "STRING", + "unit": "路径前缀", + "value": "WanVideo_SCAIL" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "合成输出格式", + "limits": "image/gif、image/webp及动态FFmpeg模板", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/format", + "role": "scalar", + "schema_default": "列表首项image/gif;动态视频格式无固定目标默认", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "video/h264-mp4" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "pix_fmt", + "json_type": "str", + "label": "视频像素格式", + "limits": "yuv420p/yuv420p10le", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/pix_fmt", + "role": "scalar", + "schema_default": "首项yuv420p", + "scope": "root", + "type": "COMBO", + "unit": "像素格式", + "value": "yuv420p" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "crf", + "json_type": "int", + "label": "H264质量参数", + "limits": "模板0~100,step1;编码器可接受范围另待核", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/crf", + "role": "scalar", + "schema_default": "19", + "scope": "root", + "type": "INT", + "unit": "CRF", + "value": 19 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "save_metadata", + "json_type": "bool", + "label": "视频元数据开关", + "limits": "true/false;视频模板条件", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/save_metadata", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "trim_to_audio", + "json_type": "bool", + "label": "按音频条件裁切", + "limits": "仅audio波形有效才进入混流", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/trim_to_audio", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "pingpong", + "json_type": "bool", + "label": "追加往返帧", + "limits": "true/false;meta_batch兼容受实现限制", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/pingpong", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "save_output", + "json_type": "bool", + "label": "保存目录选择", + "limits": "true→output;false→temp;均可能写文件", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/save_output", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "12", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 19, + 18 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "12", + "pointer": "/nodes/10/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "format": "video/h264-mp4", + "frame_rate": 16, + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "workflow": "WanVideo_SCAIL_00004.png" + }, + "paused": false + } + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/video", + "role": "scalar", + "schema_default": "input目录动态枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "引用", + "value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "加载重采样帧率", + "limits": "0~60,step1;0不强制重采样", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/force_rate", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义加载宽度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义加载高度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~2**53-1,step1;0不设该上限", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "加载帧", + "value": 161 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~2**53-1,step1", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 25 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔抽取采样帧", + "limits": "1~2**53-1,step1", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "内置与动态核心扩展;目标选项未知", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "17", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "17", + "pointer": "/nodes/11/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 161, + "select_every_nth": 1, + "skip_first_frames": 25, + "type": "input" + }, + "paused": true + } + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/video", + "role": "scalar", + "schema_default": "input目录动态枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "引用", + "value": "onetotall_pose_00001.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "加载重采样帧率", + "limits": "0~60,step1;0不强制重采样", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/force_rate", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "FLOAT/INT(floatOrInt)", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义加载宽度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义加载高度", + "limits": "0~8192;schema未声明step;0不指定", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~2**53-1,step1;0不设该上限", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "加载帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~2**53-1,step1", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔抽取采样帧", + "limits": "1~2**53-1,step1", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "内置与动态核心扩展;目标选项未知", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "16", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史预览完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "node_id": "16", + "pointer": "/nodes/13/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端历史状态", + "unit": "完整对象", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "onetotall_pose_00001.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": true + } + } + ], + "flow": [ + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "上半mode4节点为2/1/3/7/5/8/6/4,物理支路4→5、6→7、5+7→1、8+1→2→3。不能模拟旁路追线,也不把8或1补连活动10。", + "下半mode0节点10/11/12/17/18/16;活动11第一输入17、第二输入16,direction=down;11输出接10.image_2,10保存left但image_1原link=null。Concat准确schema必需image_1,实现直接kwargs[\"image_1\"];仅后续缺输入回退零张量,不能套给第一路。宿主验证/报错细节未运行确认。", + "拼接是空间拼接,不是视频首尾相接;match_image_size=true时down以第一幅宽为准、left以第一幅高为准,另一边按比例int计算。短批次重复末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。", + "两个Resize5/7均mode4,保存512×896/lanczos/crop/0, 0, 0/center/32/cpu;crop先按32向下取整,再round算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos源码明确抛错。两width/height UE可连声明保持,物理link均null。", + "五LoadVideo均force_rate16、width/height0、nth1、AnimateDiff。17及4 cap161/skip25;16/6/8 cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材尺寸未知;AnimateDiff target_rate8不等于Python强制把16覆盖为8,动态格式回调和UE恢复未知。", + "两Combine3/12均保存16/loop0/WanVideo_SCAIL/h264-mp4/yuv420p/CRF19/save_metadata=true/trim_to_audio=false/pingpong=false/save_output=false;帧率均无外线覆盖。两audio、meta_batch、vae均未接,五加载器音频出口均未接,不称音画自动同步或保留原声音。", + "H264视频分支使用libx264及模板颜色参数,尺寸可能按dim_alignment默认2补边;save_metadata控制视频元数据,VHS_MetadataImage默认true独立控制首帧PNG。save_output=false选择temp仍可能写文件;VHS_KeepIntermediate按条件清中间文件,不是禁止落盘。", + "trim_to_audio=false只在有效音频波形存在时影响apad/-shortest混流;当前audio无源线,不编AAC成品或保留原音。loop0不追加视频循环,pingpong=false不追加往返,源路径和16fps不保证时长或输出。", + "7个完整历史预览对象逐节点纯文本保留:3与12的旧D盘temp路径对象完全相同也不去重;4/6/8/17/16保留各自input缓存。hidden/paused/params均保存,不请求api/view、图片或视频,也不验证路径存在。", + "Bypasser18原缺widgets_values键,不能改成[]、null或{}。没有提供方/版本声明,类名不证明注册或当前动态开关;matchColors/matchTitle/showNav/showAllGraphs/sort/customSortAlphabet/toggleRestriction仅源保存状态,不推算执行作用。", + "源无frontendVersion,workflowRendererVersion=LG不当版本;通常UE7.5.1,Bypasser7.5.2,extra.ue_links及links_added_by_ue原[]。空表不证明无回调影响,未加载宿主或UE,不调查旧别名或目标机器。", + "素材目录、动态选项、源尺寸/FPS、编解码器、权限和真实效果未知;源无模型节点,不编模型依赖。只固定准确声明提交文本,不执行插件/模型/媒体探测/ffmpeg,不修复源图,不构造prompt。", + "源物理边:[2, 2, 0, 3, 0, \"IMAGE\"]", + "源物理边:[3, 4, 0, 5, 0, \"IMAGE\"]", + "源物理边:[5, 6, 0, 7, 0, \"IMAGE\"]", + "源物理边:[11, 5, 0, 1, 0, \"IMAGE\"]", + "源物理边:[12, 7, 0, 1, 1, \"IMAGE\"]", + "源物理边:[15, 8, 0, 2, 0, \"IMAGE\"]", + "源物理边:[16, 1, 0, 2, 1, \"IMAGE\"]", + "源物理边:[18, 11, 0, 10, 1, \"IMAGE\"]", + "源物理边:[21, 10, 0, 12, 0, \"IMAGE\"]", + "源物理边:[24, 16, 0, 11, 1, \"IMAGE\"]", + "源物理边:[25, 17, 0, 11, 0, \"IMAGE\"]", + "节点2 ImageConcatMulti mode=4;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点1 ImageConcatMulti mode=4;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点3 VHS_VideoCombine mode=4;保存位置=11;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"0a75c7958fe320efcb052f1d9f8451fd20c730a8\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点7 ImageResizeKJv2 mode=4;保存位置=8;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b\", \"Node name for S&R\": \"ImageResizeKJv2\", \"ue_properties\": {\"widget_ue_connectable\": {\"width\": true, \"height\": true}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点5 ImageResizeKJv2 mode=4;保存位置=8;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b\", \"Node name for S&R\": \"ImageResizeKJv2\", \"ue_properties\": {\"widget_ue_connectable\": {\"width\": true, \"height\": true}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点8 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点6 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点4 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点10 ImageConcatMulti mode=0;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点11 ImageConcatMulti mode=0;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点12 VHS_VideoCombine mode=0;保存位置=11;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"0a75c7958fe320efcb052f1d9f8451fd20c730a8\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点17 VHS_LoadVideo mode=0;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点18 Fast Groups Bypasser (rgthree) mode=0;保存位置=缺widgets_values键;原properties={\"matchColors\": \"\", \"matchTitle\": \"\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}", + "节点16 VHS_LoadVideo mode=0;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}" + ], + "flow_evidence": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28 + ], + "matched": true, + "notice": "声明提交源码仅作固定参考;活动10缺必需第一路、上半mode4旁路、音频未接,未实跑、转换保持关闭。", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_sha1": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7", + "sources": [ + { + "claim": "准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "file": "nodes/image_nodes.py", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "id": "concat", + "lines": [ + 2344, + 2391 + ], + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py" + }, + { + "claim": "空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "file": "nodes/image_nodes.py", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "id": "concat", + "lines": [ + 220, + 325 + ], + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py" + }, + { + "claim": "本提交Update inputs按钮值null;不证明未知宿主第4位置身份", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "file": "web/js/jsnodes.js", + "git_blob_sha1": "c391bd55dc3c94ee81dc8d2f96462c03ed684279", + "id": "concat", + "lines": [ + 36, + 65 + ], + "local_file": "../multivideo-reference/concat__web__js__jsnodes.js", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js" + }, + { + "claim": "准确Concat注册与image_nodes导入", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "file": "__init__.py", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "id": "concat", + "lines": [ + 1, + 100 + ], + "local_file": "../multivideo-reference/concat____init__.py", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py" + }, + { + "claim": "准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "file": "nodes/image_nodes.py", + "git_blob_sha1": "8de598ebfce304e41b2da906a5f5a6a64df56ce7", + "id": "resize", + "lines": [ + 2550, + 2790 + ], + "local_file": "../multivideo-reference/resize__nodes__image_nodes.py", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py" + }, + { + "claim": "准确Resize v2注册与导入", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "file": "__init__.py", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "id": "resize", + "lines": [ + 1, + 100 + ], + "local_file": "../multivideo-reference/resize____init__.py", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py" + }, + { + "claim": "准确85509813格式/尺寸规则与采样、skip、nth、cap", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "videohelpersuite/load_video_nodes.py", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "id": "load", + "lines": [ + 22, + 168 + ], + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py" + }, + { + "claim": "内存/格式限制、音频起点与时长参数、加载schema与输出", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "videohelpersuite/load_video_nodes.py", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "id": "load", + "lines": [ + 315, + 475 + ], + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py" + }, + { + "claim": "准确LoadVideo注册", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "videohelpersuite/nodes.py", + "git_blob_sha1": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97", + "id": "load", + "lines": [ + 1024, + 1055 + ], + "local_file": "../multivideo-reference/load__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py" + }, + { + "claim": "BIGMAX=2**53-1、DIMMAX8192、floatOrInt", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "videohelpersuite/utils.py", + "git_blob_sha1": "75431d5a9e151ae50257d3fd14c03ffbc7570d39", + "id": "load", + "lines": [ + 17, + 56 + ], + "local_file": "../multivideo-reference/load__videohelpersuite__utils.py", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py" + }, + { + "claim": "85509813包内字典保存恢复,不证明未知宿主/UE次序", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "web/js/VHS.core.js", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "id": "load", + "lines": [ + 41, + 168 + ], + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js" + }, + { + "claim": "85509813历史预览对象保存", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "web/js/VHS.core.js", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "id": "load", + "lines": [ + 915, + 970 + ], + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js" + }, + { + "claim": "85509813格式动态控件/回调,不执行恢复", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "web/js/VHS.core.js", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "id": "load", + "lines": [ + 1222, + 1282 + ], + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js" + }, + { + "claim": "准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "videohelpersuite/nodes.py", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "id": "combine", + "lines": [ + 207, + 395 + ], + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py" + }, + { + "claim": "准确0a75c795视频补边/编码、循环、音频混流和中间文件条件", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "videohelpersuite/nodes.py", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "id": "combine", + "lines": [ + 395, + 592 + ], + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py" + }, + { + "claim": "准确0a75c795模板展开str转换与元数据FFmpeg条件", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "videohelpersuite/nodes.py", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "id": "combine", + "lines": [ + 40, + 160 + ], + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py" + }, + { + "claim": "本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "video_formats/h264-mp4.json", + "git_blob_sha1": "c591b5b6c4604276d86a6b6bd453cf44fb74566d", + "id": "combine", + "lines": [ + 1, + 14 + ], + "local_file": "../multivideo-reference/combine__video_formats__h264-mp4.json", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json" + }, + { + "claim": "准确VideoCombine注册", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "videohelpersuite/nodes.py", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "id": "combine", + "lines": [ + 979, + 1010 + ], + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py" + }, + { + "claim": "0a75c795包内保存恢复,非宿主前端版本证明", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "web/js/VHS.core.js", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "id": "combine", + "lines": [ + 31, + 158 + ], + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js" + }, + { + "claim": "0a75c795完整历史预览对象保存", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "web/js/VHS.core.js", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "id": "combine", + "lines": [ + 805, + 865 + ], + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js" + }, + { + "claim": "0a75c795格式改变重建额外控件", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "web/js/VHS.core.js", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "id": "combine", + "lines": [ + 1103, + 1149 + ], + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js" + }, + { + "claim": "NODE_CONFIG导出真实注册映射", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "file": "__init__.py", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "id": "concat", + "lines": [ + 227, + 257 + ], + "local_file": "../multivideo-reference/concat____init__.py", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py" + }, + { + "claim": "NODE_CONFIG导出真实注册映射", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "file": "__init__.py", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "id": "resize", + "lines": [ + 227, + 257 + ], + "local_file": "../multivideo-reference/resize____init__.py", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py" + }, + { + "claim": "VHS包节点导出及web目录", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "__init__.py", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "id": "load", + "lines": [ + 1, + 9 + ], + "local_file": "../multivideo-reference/load____init__.py", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py" + }, + { + "claim": "VHS包节点导出及web目录", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "__init__.py", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "id": "combine", + "lines": [ + 1, + 9 + ], + "local_file": "../multivideo-reference/combine____init__.py", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py" + }, + { + "claim": "准确完整提交许可原文", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "concat", + "lines": [ + 1, + 674 + ], + "local_file": "../multivideo-reference/concat__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE" + }, + { + "claim": "准确完整提交许可原文", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "resize", + "lines": [ + 1, + 674 + ], + "local_file": "../multivideo-reference/resize__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE" + }, + { + "claim": "准确完整提交许可原文", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "load", + "lines": [ + 1, + 674 + ], + "local_file": "../multivideo-reference/load__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE" + }, + { + "claim": "准确完整提交许可原文", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "combine", + "lines": [ + 1, + 674 + ], + "local_file": "../multivideo-reference/combine__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE" + } + ], + "steps": [ + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。", + "操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。", + "操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。", + "操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。", + "操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。", + "常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参考,实际效果未测。", + "目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实效果待后续核对;本轮只GET说明,无prompt/新候选/实跑,155完整定稿0。" + ], + "user_overview": "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "versions": [ + "concat准确完整提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;注册/schema/实现和许可独立固定,不跨版本混用。", + "resize准确完整提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;注册/schema/实现和许可独立固定,不跨版本混用。", + "load准确完整提交8550981384301e9bc5bfea83e5c2c75258102593;注册/schema/实现和许可独立固定,不跨版本混用。", + "combine准确完整提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;注册/schema/实现和许可独立固定,不跨版本混用。", + "源无frontendVersion;LG仅渲染器标记,UE7.5.1/Bypasser7.5.2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。" + ], + "zero_saved_nodes": [ + { + "class_type": "Fast Groups Bypasser (rgthree)", + "effect": "原缺widgets_values键,提供方/版本未声明;原组控制属性仅源状态,注册与动态开关/执行作用未知。", + "node_id": "18" + } + ] + }, + "io": { + "inputs": [], + "outputs": [] + }, + "materials": [], + "params": [ + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_rate", + "max": null, + "min": null, + "name": "frame_rate", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "loop_count", + "max": null, + "min": null, + "name": "loop_count", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "WanVideo_SCAIL", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "filename_prefix", + "max": null, + "min": null, + "name": "filename_prefix", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "video/h264-mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "yuv420p", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "pix_fmt", + "max": null, + "min": null, + "name": "pix_fmt", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 19, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "crf", + "max": null, + "min": null, + "name": "crf", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": true, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_metadata", + "max": null, + "min": null, + "name": "save_metadata", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "trim_to_audio", + "max": null, + "min": null, + "name": "trim_to_audio", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "pingpong", + "max": null, + "min": null, + "name": "pingpong", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_output", + "max": null, + "min": null, + "name": "save_output", + "node_id": "3", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "WanVideo_SCAIL_00006.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "force_rate", + "max": null, + "min": null, + "name": "force_rate", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_width", + "max": null, + "min": null, + "name": "custom_width", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_height", + "max": null, + "min": null, + "name": "custom_height", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "skip_first_frames", + "max": null, + "min": null, + "name": "skip_first_frames", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 1, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "select_every_nth", + "max": null, + "min": null, + "name": "select_every_nth", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "AnimateDiff", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "onetotall_pose_00001.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "force_rate", + "max": null, + "min": null, + "name": "force_rate", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_width", + "max": null, + "min": null, + "name": "custom_width", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_height", + "max": null, + "min": null, + "name": "custom_height", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "skip_first_frames", + "max": null, + "min": null, + "name": "skip_first_frames", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 1, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "select_every_nth", + "max": null, + "min": null, + "name": "select_every_nth", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "AnimateDiff", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "6", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "force_rate", + "max": null, + "min": null, + "name": "force_rate", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_width", + "max": null, + "min": null, + "name": "custom_width", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_height", + "max": null, + "min": null, + "name": "custom_height", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 161, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 25, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "skip_first_frames", + "max": null, + "min": null, + "name": "skip_first_frames", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 1, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "select_every_nth", + "max": null, + "min": null, + "name": "select_every_nth", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "AnimateDiff", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_rate", + "max": null, + "min": null, + "name": "frame_rate", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "loop_count", + "max": null, + "min": null, + "name": "loop_count", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "WanVideo_SCAIL", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "filename_prefix", + "max": null, + "min": null, + "name": "filename_prefix", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "video/h264-mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "yuv420p", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "pix_fmt", + "max": null, + "min": null, + "name": "pix_fmt", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 19, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "crf", + "max": null, + "min": null, + "name": "crf", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": true, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_metadata", + "max": null, + "min": null, + "name": "save_metadata", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "trim_to_audio", + "max": null, + "min": null, + "name": "trim_to_audio", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "pingpong", + "max": null, + "min": null, + "name": "pingpong", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_output", + "max": null, + "min": null, + "name": "save_output", + "node_id": "12", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "force_rate", + "max": null, + "min": null, + "name": "force_rate", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_width", + "max": null, + "min": null, + "name": "custom_width", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_height", + "max": null, + "min": null, + "name": "custom_height", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 161, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 25, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "skip_first_frames", + "max": null, + "min": null, + "name": "skip_first_frames", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 1, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "select_every_nth", + "max": null, + "min": null, + "name": "select_every_nth", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "AnimateDiff", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "17", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "onetotall_pose_00001.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 16, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "force_rate", + "max": null, + "min": null, + "name": "force_rate", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_width", + "max": null, + "min": null, + "name": "custom_width", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "custom_height", + "max": null, + "min": null, + "name": "custom_height", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "skip_first_frames", + "max": null, + "min": null, + "name": "skip_first_frames", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 1, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "select_every_nth", + "max": null, + "min": null, + "name": "select_every_nth", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "AnimateDiff", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "format", + "max": null, + "min": null, + "name": "format", + "node_id": "16", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + } + ], + "purpose": "多视频分屏由多路 VHS_LoadVideo 经 ImageConcatMulti 合并,含 Fast Groups Bypasser 控制的备用分支。", + "snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "source_links": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 11, + 5, + 0, + 1, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 12, + 7, + 0, + 1, + 1, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 16, + 1, + 0, + 2, + 1, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 18, + 11, + 0, + 10, + 1, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "scope": "" + } + ], + "source_nodes": [ + { + "class_type": "ImageConcatMulti", + "inputs": [ + { + "label": "图像_1", + "link": 15, + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE" + }, + { + "label": "图像_2", + "link": 16, + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE" + }, + { + "label": "输入数量", + "link": null, + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + } + }, + { + "label": "方向", + "link": null, + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + } + }, + { + "label": "匹配尺寸", + "link": null, + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + } + } + ], + "mode": 4, + "node_id": "2", + "source_values": [ + 2, + "left", + true, + null + ], + "title": null + }, + { + "class_type": "ImageConcatMulti", + "inputs": [ + { + "label": "图像_1", + "link": 11, + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE" + }, + { + "label": "图像_2", + "link": 12, + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE" + }, + { + "label": "输入数量", + "link": null, + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + } + }, + { + "label": "方向", + "link": null, + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + } + }, + { + "label": "匹配尺寸", + "link": null, + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + } + } + ], + "mode": 4, + "node_id": "1", + "source_values": [ + 2, + "down", + true, + null + ], + "title": null + }, + { + "class_type": "VHS_VideoCombine", + "inputs": [ + { + "label": "图像", + "link": 2, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + }, + { + "label": "音频", + "link": null, + "localized_name": "音频", + "name": "audio", + "shape": 7, + "type": "AUDIO" + }, + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "帧率", + "link": null, + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + } + }, + { + "label": "循环次数", + "link": null, + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + } + }, + { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + } + }, + { + "label": "Ping-Pong", + "link": null, + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + } + }, + { + "label": "保存到输出文件夹", + "link": null, + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + } + }, + { + "link": null, + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + } + }, + { + "link": null, + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + } + }, + { + "label": "保存元数据", + "link": null, + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + } + }, + { + "label": "修剪音频", + "link": null, + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + } + } + ], + "mode": 4, + "node_id": "3", + "source_values": { + "crf": 19, + "filename_prefix": "WanVideo_SCAIL", + "format": "video/h264-mp4", + "frame_rate": 16, + "loop_count": 0, + "pingpong": false, + "pix_fmt": "yuv420p", + "save_metadata": true, + "save_output": false, + "trim_to_audio": false, + "videopreview": { + "hidden": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "format": "video/h264-mp4", + "frame_rate": 16, + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "workflow": "WanVideo_SCAIL_00004.png" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "ImageResizeKJv2", + "inputs": [ + { + "label": "图像", + "link": 5, + "localized_name": "图像", + "name": "image", + "type": "IMAGE" + }, + { + "label": "遮罩", + "link": null, + "localized_name": "遮罩", + "name": "mask", + "shape": 7, + "type": "MASK" + }, + { + "label": "宽度", + "link": null, + "localized_name": "宽度", + "name": "width", + "type": "INT", + "widget": { + "name": "width" + } + }, + { + "label": "高度", + "link": null, + "localized_name": "高度", + "name": "height", + "type": "INT", + "widget": { + "name": "height" + } + }, + { + "label": "缩放方法", + "link": null, + "localized_name": "缩放方法", + "name": "upscale_method", + "type": "COMBO", + "widget": { + "name": "upscale_method" + } + }, + { + "label": "固定宽高比", + "link": null, + "localized_name": "固定宽高比", + "name": "keep_proportion", + "type": "COMBO", + "widget": { + "name": "keep_proportion" + } + }, + { + "label": "填充颜色", + "link": null, + "localized_name": "填充颜色", + "name": "pad_color", + "type": "STRING", + "widget": { + "name": "pad_color" + } + }, + { + "label": "裁剪位置", + "link": null, + "localized_name": "裁剪位置", + "name": "crop_position", + "type": "COMBO", + "widget": { + "name": "crop_position" + } + }, + { + "label": "因数", + "link": null, + "localized_name": "因数", + "name": "divisible_by", + "type": "INT", + "widget": { + "name": "divisible_by" + } + }, + { + "label": "设备", + "link": null, + "localized_name": "设备", + "name": "device", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "device" + } + } + ], + "mode": 4, + "node_id": "7", + "source_values": [ + 512, + 896, + "lanczos", + "crop", + "0, 0, 0", + "center", + 32, + "cpu" + ], + "title": null + }, + { + "class_type": "ImageResizeKJv2", + "inputs": [ + { + "label": "图像", + "link": 3, + "localized_name": "图像", + "name": "image", + "type": "IMAGE" + }, + { + "label": "遮罩", + "link": null, + "localized_name": "遮罩", + "name": "mask", + "shape": 7, + "type": "MASK" + }, + { + "label": "宽度", + "link": null, + "localized_name": "宽度", + "name": "width", + "type": "INT", + "widget": { + "name": "width" + } + }, + { + "label": "高度", + "link": null, + "localized_name": "高度", + "name": "height", + "type": "INT", + "widget": { + "name": "height" + } + }, + { + "label": "缩放方法", + "link": null, + "localized_name": "缩放方法", + "name": "upscale_method", + "type": "COMBO", + "widget": { + "name": "upscale_method" + } + }, + { + "label": "固定宽高比", + "link": null, + "localized_name": "固定宽高比", + "name": "keep_proportion", + "type": "COMBO", + "widget": { + "name": "keep_proportion" + } + }, + { + "label": "填充颜色", + "link": null, + "localized_name": "填充颜色", + "name": "pad_color", + "type": "STRING", + "widget": { + "name": "pad_color" + } + }, + { + "label": "裁剪位置", + "link": null, + "localized_name": "裁剪位置", + "name": "crop_position", + "type": "COMBO", + "widget": { + "name": "crop_position" + } + }, + { + "label": "因数", + "link": null, + "localized_name": "因数", + "name": "divisible_by", + "type": "INT", + "widget": { + "name": "divisible_by" + } + }, + { + "label": "设备", + "link": null, + "localized_name": "设备", + "name": "device", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "device" + } + } + ], + "mode": 4, + "node_id": "5", + "source_values": [ + 512, + 896, + "lanczos", + "crop", + "0, 0, 0", + "center", + 32, + "cpu" + ], + "title": null + }, + { + "class_type": "VHS_LoadVideo", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + } + ], + "mode": 4, + "node_id": "8", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "video": "WanVideo_SCAIL_00006.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "WanVideo_SCAIL_00006.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": true + } + }, + "title": null + }, + { + "class_type": "VHS_LoadVideo", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + } + ], + "mode": 4, + "node_id": "6", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "video": "onetotall_pose_00001.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "onetotall_pose_00001.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": true + } + }, + "title": null + }, + { + "class_type": "VHS_LoadVideo", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + } + ], + "mode": 4, + "node_id": "4", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 161, + "select_every_nth": 1, + "skip_first_frames": 25, + "video": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 161, + "select_every_nth": 1, + "skip_first_frames": 25, + "type": "input" + }, + "paused": true + } + }, + "title": null + }, + { + "class_type": "ImageConcatMulti", + "inputs": [ + { + "label": "图像_1", + "link": null, + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE" + }, + { + "label": "图像_2", + "link": 18, + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE" + }, + { + "label": "输入数量", + "link": null, + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + } + }, + { + "label": "方向", + "link": null, + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + } + }, + { + "label": "匹配尺寸", + "link": null, + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + } + } + ], + "mode": 0, + "node_id": "10", + "source_values": [ + 2, + "left", + true, + null + ], + "title": null + }, + { + "class_type": "ImageConcatMulti", + "inputs": [ + { + "label": "图像_1", + "link": 25, + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE" + }, + { + "label": "图像_2", + "link": 24, + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE" + }, + { + "label": "输入数量", + "link": null, + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + } + }, + { + "label": "方向", + "link": null, + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + } + }, + { + "label": "匹配尺寸", + "link": null, + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + } + } + ], + "mode": 0, + "node_id": "11", + "source_values": [ + 2, + "down", + true, + null + ], + "title": null + }, + { + "class_type": "VHS_VideoCombine", + "inputs": [ + { + "label": "图像", + "link": 21, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + }, + { + "label": "音频", + "link": null, + "localized_name": "音频", + "name": "audio", + "shape": 7, + "type": "AUDIO" + }, + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "帧率", + "link": null, + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + } + }, + { + "label": "循环次数", + "link": null, + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + } + }, + { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + } + }, + { + "label": "Ping-Pong", + "link": null, + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + } + }, + { + "label": "保存到输出文件夹", + "link": null, + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + } + }, + { + "link": null, + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + } + }, + { + "link": null, + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + } + }, + { + "label": "保存元数据", + "link": null, + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + } + }, + { + "label": "修剪音频", + "link": null, + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + } + } + ], + "mode": 0, + "node_id": "12", + "source_values": { + "crf": 19, + "filename_prefix": "WanVideo_SCAIL", + "format": "video/h264-mp4", + "frame_rate": 16, + "loop_count": 0, + "pingpong": false, + "pix_fmt": "yuv420p", + "save_metadata": true, + "save_output": false, + "trim_to_audio": false, + "videopreview": { + "hidden": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "format": "video/h264-mp4", + "frame_rate": 16, + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "workflow": "WanVideo_SCAIL_00004.png" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "VHS_LoadVideo", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + } + ], + "mode": 0, + "node_id": "17", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 161, + "select_every_nth": 1, + "skip_first_frames": 25, + "video": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 161, + "select_every_nth": 1, + "skip_first_frames": 25, + "type": "input" + }, + "paused": true + } + }, + "title": null + }, + { + "class_type": "Fast Groups Bypasser (rgthree)", + "inputs": [], + "mode": 0, + "node_id": "18", + "source_values": [], + "title": null + }, + { + "class_type": "VHS_LoadVideo", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + } + ], + "mode": 0, + "node_id": "16", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "video": "onetotall_pose_00001.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "onetotall_pose_00001.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": true + } + }, + "title": null + } + ], + "source_notes": [], + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_review": { + "complete": false, + "evidence": { + "link_count": 11, + "model_references": [], + "named_value_count": 60, + "node_count": 14, + "note_node_ids": [], + "unnamed_widget_node_ids": [ + "2", + "1", + "7", + "5", + "10", + "11" + ] + }, + "fourth_review": { + "batch": "HEL-892-fourth", + "classification_counts": { + "runtime_parameter": 58 + }, + "fields": [ + [ + "3", + "frame_rate" + ], + [ + "3", + "loop_count" + ], + [ + "3", + "filename_prefix" + ], + [ + "3", + "format" + ], + [ + "3", + "pix_fmt" + ], + [ + "3", + "crf" + ], + [ + "3", + "save_metadata" + ], + [ + "3", + "trim_to_audio" + ], + [ + "3", + "pingpong" + ], + [ + "3", + "save_output" + ], + [ + "8", + "video" + ], + [ + "8", + "force_rate" + ], + [ + "8", + "custom_width" + ], + [ + "8", + "custom_height" + ], + [ + "8", + "frame_load_cap" + ], + [ + "8", + "skip_first_frames" + ], + [ + "8", + "select_every_nth" + ], + [ + "8", + "format" + ], + [ + "6", + "video" + ], + [ + "6", + "force_rate" + ], + [ + "6", + "custom_width" + ], + [ + "6", + "custom_height" + ], + [ + "6", + "frame_load_cap" + ], + [ + "6", + "skip_first_frames" + ], + [ + "6", + "select_every_nth" + ], + [ + "6", + "format" + ], + [ + "4", + "video" + ], + [ + "4", + "force_rate" + ], + [ + "4", + "custom_width" + ], + [ + "4", + "custom_height" + ], + [ + "4", + "frame_load_cap" + ], + [ + "4", + "skip_first_frames" + ], + [ + "4", + "select_every_nth" + ], + [ + "4", + "format" + ], + [ + "12", + "frame_rate" + ], + [ + "12", + "loop_count" + ], + [ + "12", + "filename_prefix" + ], + [ + "12", + "format" + ], + [ + "12", + "pix_fmt" + ], + [ + "12", + "crf" + ], + [ + "12", + "save_metadata" + ], + [ + "12", + "trim_to_audio" + ], + [ + "12", + "pingpong" + ], + [ + "17", + "video" + ], + [ + "17", + "force_rate" + ], + [ + "17", + "custom_width" + ], + [ + "17", + "custom_height" + ], + [ + "17", + "skip_first_frames" + ], + [ + "17", + "select_every_nth" + ], + [ + "17", + "format" + ], + [ + "16", + "video" + ], + [ + "16", + "force_rate" + ], + [ + "16", + "custom_width" + ], + [ + "16", + "custom_height" + ], + [ + "16", + "frame_load_cap" + ], + [ + "16", + "skip_first_frames" + ], + [ + "16", + "select_every_nth" + ], + [ + "16", + "format" + ] + ], + "operation_check": "本图新增58项具名字段局部审校;逐项按source_review.reviewed_named_fields的具体连线和operation_check核对;前端状态、仅现值和语义未知项不可当作已确认运行语义。", + "unknowns": [ + "全部单位、范围、调整效果待可信节点定义;本图未实跑", + "不更改原图矛盾;原有说明与此前审校完整保留" + ] + }, + "instruction": "区分 mode=4 与 mode=0 分支;当前合成节点 save_output=false,不能按文件名承诺一定有落盘结果。", + "purpose": "多视频分屏由多路 VHS_LoadVideo 经 ImageConcatMulti 合并,含 Fast Groups Bypasser 控制的备用分支。", + "reviewed_named_fields": [ + { + "field": "save_output", + "label": "源保存开关", + "node_id": "12", + "scope": "仅核对字段、现值及连线位置;单位/合法范围/调整效果未确认", + "source_value": false + }, + { + "field": "frame_load_cap", + "label": "当前视频读取帧数现值", + "node_id": "17", + "scope": "仅核对字段、现值及连线位置;单位/合法范围/调整效果未确认", + "source_value": 161 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_rate", + "input_socket": { + "label": "帧率", + "link": null, + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + } + }, + "label": "合成节点帧率设置;核对是否另有输入连线覆盖该控件", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/frame_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "loop_count", + "input_socket": { + "label": "循环次数", + "link": null, + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + } + }, + "label": "合成阶段的循环次数控件;零值约定和格式适用性待定义", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/loop_count", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "filename_prefix", + "input_socket": { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + "label": "输出命名前缀;核对输出分支和目录用途,实际落盘位置待环境核对", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/filename_prefix", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "WanVideo_SCAIL" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "视频合成的编码格式选择;与pix_fmt及音轨连线配套核对", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "video/h264-mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "pix_fmt", + "input_socket": { + "link": null, + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + } + }, + "label": "视频合成的像素格式选择;与编码格式配套核对", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/pix_fmt", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "yuv420p" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "crf", + "input_socket": { + "link": null, + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + } + }, + "label": "视频合成编码设置;仅确认处于合成步骤,不给出质量范围或调整效果", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/crf", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 19 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "save_metadata", + "input_socket": { + "label": "保存元数据", + "link": null, + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + } + }, + "label": "视频合成的保存元数据开关;具体保存内容待插件定义", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/save_metadata", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": true + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "trim_to_audio", + "input_socket": { + "label": "修剪音频", + "link": null, + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + } + }, + "label": "视频合成的音频裁剪开关;先核对本节点是否接入音轨", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/trim_to_audio", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": false + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "pingpong", + "input_socket": { + "label": "Ping-Pong", + "link": null, + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + } + }, + "label": "视频合成的Ping-Pong控件;具体帧序列规则待插件定义", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/pingpong", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": false + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + "pointer": "/links/0" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "save_output", + "input_socket": { + "label": "保存到输出文件夹", + "link": null, + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + } + }, + "label": "视频合成的保存输出开关;源开关不等于当前已经生成或保存", + "mode": 4, + "node_id": "3", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/2/widgets_values/save_output", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": false + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "video", + "input_socket": { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + "label": "加载节点的视频素材选择;核对现值文件是否为本分支所需素材", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/video", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "WanVideo_SCAIL_00006.mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "force_rate", + "input_socket": { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + "label": "视频读取阶段的强制帧率控件;零值含义不能从源图确认", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/force_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_width", + "input_socket": { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + "label": "素材加载阶段的自定义宽度控件;零值含义待节点定义", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/custom_width", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_height", + "input_socket": { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + "label": "素材加载阶段的自定义高度控件;零值含义待节点定义", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/custom_height", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_load_cap", + "input_socket": { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + "label": "视频读取上限控件;核对截取分支,不能把零直接解释为无限", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/frame_load_cap", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "skip_first_frames", + "input_socket": { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + "label": "视频读取的起始跳过控件;核对两路视频的起点是否匹配", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/skip_first_frames", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "select_every_nth", + "input_socket": { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + "label": "素材读取的间隔选择控件;实际抽帧规则待定义", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/select_every_nth", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 1 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + "pointer": "/links/5" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "素材加载的格式选择;AnimateDiff/LTXV是此加载字段现值,不能当作最终输出封装格式", + "mode": 4, + "node_id": "8", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/5/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "AnimateDiff" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "video", + "input_socket": { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + "label": "加载节点的视频素材选择;核对现值文件是否为本分支所需素材", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/video", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "onetotall_pose_00001.mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "force_rate", + "input_socket": { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + "label": "视频读取阶段的强制帧率控件;零值含义不能从源图确认", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/force_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_width", + "input_socket": { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + "label": "素材加载阶段的自定义宽度控件;零值含义待节点定义", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/custom_width", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_height", + "input_socket": { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + "label": "素材加载阶段的自定义高度控件;零值含义待节点定义", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/custom_height", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_load_cap", + "input_socket": { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + "label": "视频读取上限控件;核对截取分支,不能把零直接解释为无限", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/frame_load_cap", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "skip_first_frames", + "input_socket": { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + "label": "视频读取的起始跳过控件;核对两路视频的起点是否匹配", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/skip_first_frames", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "select_every_nth", + "input_socket": { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + "label": "素材读取的间隔选择控件;实际抽帧规则待定义", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/select_every_nth", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 1 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "素材加载的格式选择;AnimateDiff/LTXV是此加载字段现值,不能当作最终输出封装格式", + "mode": 4, + "node_id": "6", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/6/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "AnimateDiff" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "video", + "input_socket": { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + "label": "加载节点的视频素材选择;核对现值文件是否为本分支所需素材", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/video", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "force_rate", + "input_socket": { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + "label": "视频读取阶段的强制帧率控件;零值含义不能从源图确认", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/force_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_width", + "input_socket": { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + "label": "素材加载阶段的自定义宽度控件;零值含义待节点定义", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/custom_width", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_height", + "input_socket": { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + "label": "素材加载阶段的自定义高度控件;零值含义待节点定义", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/custom_height", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_load_cap", + "input_socket": { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + "label": "视频读取上限控件;核对截取分支,不能把零直接解释为无限", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/frame_load_cap", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 161 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "skip_first_frames", + "input_socket": { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + "label": "视频读取的起始跳过控件;核对两路视频的起点是否匹配", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/skip_first_frames", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 25 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "select_every_nth", + "input_socket": { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + "label": "素材读取的间隔选择控件;实际抽帧规则待定义", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/select_every_nth", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 1 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + "pointer": "/links/1" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "素材加载的格式选择;AnimateDiff/LTXV是此加载字段现值,不能当作最终输出封装格式", + "mode": 4, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源mode=4;属于非普通模式,不把保存的控件设置当作有效执行分支。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/7/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "AnimateDiff" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_rate", + "input_socket": { + "label": "帧率", + "link": null, + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + } + }, + "label": "合成节点帧率设置;核对是否另有输入连线覆盖该控件", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/frame_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "loop_count", + "input_socket": { + "label": "循环次数", + "link": null, + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + } + }, + "label": "合成阶段的循环次数控件;零值约定和格式适用性待定义", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/loop_count", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "filename_prefix", + "input_socket": { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + "label": "输出命名前缀;核对输出分支和目录用途,实际落盘位置待环境核对", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/filename_prefix", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "WanVideo_SCAIL" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "视频合成的编码格式选择;与pix_fmt及音轨连线配套核对", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "video/h264-mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "pix_fmt", + "input_socket": { + "link": null, + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + } + }, + "label": "视频合成的像素格式选择;与编码格式配套核对", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/pix_fmt", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "yuv420p" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "crf", + "input_socket": { + "link": null, + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + } + }, + "label": "视频合成编码设置;仅确认处于合成步骤,不给出质量范围或调整效果", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/crf", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 19 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "save_metadata", + "input_socket": { + "label": "保存元数据", + "link": null, + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + } + }, + "label": "视频合成的保存元数据开关;具体保存内容待插件定义", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/save_metadata", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": true + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "trim_to_audio", + "input_socket": { + "label": "修剪音频", + "link": null, + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + } + }, + "label": "视频合成的音频裁剪开关;先核对本节点是否接入音轨", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/trim_to_audio", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": false + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + "pointer": "/links/8" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "pingpong", + "input_socket": { + "label": "Ping-Pong", + "link": null, + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + } + }, + "label": "视频合成的Ping-Pong控件;具体帧序列规则待插件定义", + "mode": 0, + "node_id": "12", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/10/widgets_values/pingpong", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": false + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "video", + "input_socket": { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + "label": "加载节点的视频素材选择;核对现值文件是否为本分支所需素材", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/video", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "force_rate", + "input_socket": { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + "label": "视频读取阶段的强制帧率控件;零值含义不能从源图确认", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/force_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_width", + "input_socket": { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + "label": "素材加载阶段的自定义宽度控件;零值含义待节点定义", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/custom_width", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_height", + "input_socket": { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + "label": "素材加载阶段的自定义高度控件;零值含义待节点定义", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/custom_height", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "skip_first_frames", + "input_socket": { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + "label": "视频读取的起始跳过控件;核对两路视频的起点是否匹配", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/skip_first_frames", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 25 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "select_every_nth", + "input_socket": { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + "label": "素材读取的间隔选择控件;实际抽帧规则待定义", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/select_every_nth", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 1 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ], + "pointer": "/links/10" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "素材加载的格式选择;AnimateDiff/LTXV是此加载字段现值,不能当作最终输出封装格式", + "mode": 0, + "node_id": "17", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/11/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "AnimateDiff" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "video", + "input_socket": { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + "label": "加载节点的视频素材选择;核对现值文件是否为本分支所需素材", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/video", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "onetotall_pose_00001.mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "force_rate", + "input_socket": { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + "label": "视频读取阶段的强制帧率控件;零值含义不能从源图确认", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/force_rate", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 16 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_width", + "input_socket": { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + "label": "素材加载阶段的自定义宽度控件;零值含义待节点定义", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/custom_width", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_height", + "input_socket": { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + "label": "素材加载阶段的自定义高度控件;零值含义待节点定义", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/custom_height", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_load_cap", + "input_socket": { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + "label": "视频读取上限控件;核对截取分支,不能把零直接解释为无限", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/frame_load_cap", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "skip_first_frames", + "input_socket": { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + "label": "视频读取的起始跳过控件;核对两路视频的起点是否匹配", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/skip_first_frames", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "select_every_nth", + "input_socket": { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + "label": "素材读取的间隔选择控件;实际抽帧规则待定义", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/select_every_nth", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": 1 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + "pointer": "/links/9" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "素材加载的格式选择;AnimateDiff/LTXV是此加载字段现值,不能当作最终输出封装格式", + "mode": 0, + "node_id": "16", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_pointer": "/nodes/13/widgets_values/format", + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_title": null, + "source_value": "AnimateDiff" + } + ], + "scope": [ + "结构及用途局部审校" + ], + "source_sha": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "unconfirmed": [ + "逐参数语义、单位、范围和调整效果未定稿", + "UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出", + "模型/节点包位置、素材可用性及实际输出未在目标环境核对" + ] + }, + "source_review_sha": "f1c899511a1e92a0a3bde134d969e498e1986b95e78bd28fa19a3328b373d535", + "status": { + "doc_done": false, + "exec_verified": false, + "imported": true + }, + "steps": [ + "区分 mode=4 与 mode=0 分支;当前合成节点 save_output=false,不能按文件名承诺一定有落盘结果。", + "本图新增58项具名字段局部审校;逐项按source_review.reviewed_named_fields的具体连线和operation_check核对;前端状态、仅现值和语义未知项不可当作已确认运行语义。", + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。", + "操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。", + "操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。", + "操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。", + "操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。", + "常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参考,实际效果未测。", + "目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实效果待后续核对;本轮只GET说明,无prompt/新候选/实跑,155完整定稿0。" + ], + "title": "多视频合成分屏展示" +} diff --git a/docs/hel-892/multivideo-document-evidence/audit-summary.json b/docs/hel-892/multivideo-document-evidence/audit-summary.json new file mode 100644 index 00000000..dfd588aa --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/audit-summary.json @@ -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": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿" +} diff --git a/docs/hel-892/multivideo-document-evidence/backend-command.txt b/docs/hel-892/multivideo-document-evidence/backend-command.txt new file mode 100644 index 00000000..5f8b9f80 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/backend-command.txt @@ -0,0 +1 @@ +uv run --project calliope-backend --offline pytest calliope-backend/tests/test_multivideo_fixed_document.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_watermark_fixed_document.py::test_exact_graph_semantics_and_old_24_objects calliope-backend/tests/test_birefnet_fixed_document.py::test_actual_graph_counts_pointers_notes_unknowns_and_old_objects calliope-backend/tests/test_latent_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_frames_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_concat_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_gif_images_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation calliope-backend/tests/test_grid_fixed_document.py::test_only_two_reviews_change_and_all_old_blocks_preserved calliope-backend/tests/test_gemma_fixed_document.py::test_real_document_and_frozen_old_thirteen_blocks calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent calliope-backend/tests/test_controlnet_fixed_document.py::test_other_documents_and_block_swaps -q --disable-warnings diff --git a/docs/hel-892/multivideo-document-evidence/backend-final.txt b/docs/hel-892/multivideo-document-evidence/backend-final.txt new file mode 100644 index 00000000..8139d931 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/backend-final.txt @@ -0,0 +1,10 @@ +........................................................................ [ 11%] +........................................................................ [ 23%] +........................................................................ [ 35%] +........................................................................ [ 47%] +........................................................................ [ 59%] +........................................................................ [ 70%] +........................................................................ [ 82%] +........................................................................ [ 94%] +.................................. [100%] +610 passed, 1 warning in 6.95s diff --git a/docs/hel-892/multivideo-document-evidence/backend-initial.txt b/docs/hel-892/multivideo-document-evidence/backend-initial.txt new file mode 100644 index 00000000..cbfafcbd --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/backend-initial.txt @@ -0,0 +1,9 @@ +........................................................................ [ 13%] +........................................................................ [ 26%] +........................................................................ [ 39%] +........................................................................ [ 52%] +........................................................................ [ 65%] +........................................................................ [ 78%] +........................................................................ [ 92%] +........................................... [100%] +547 passed, 1 warning in 6.03s diff --git a/docs/hel-892/multivideo-document-evidence/backend-second.txt b/docs/hel-892/multivideo-document-evidence/backend-second.txt new file mode 100644 index 00000000..8ceb7477 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/backend-second.txt @@ -0,0 +1,436 @@ +........................................................................ [ 12%] +........................................................................ [ 25%] +........................................................................ [ 38%] +........................................................................ [ 51%] +........................................................................ [ 64%] +........................................................................ [ 77%] +........................................................................ [ 90%] +................................................FFF..FF. [100%] +=================================== FAILURES =================================== +______________ test_exact_graph_and_original_seventeen_unchanged _______________ + + def test_exact_graph_and_original_seventeen_unchanged(): + d = doc() + assert d["fixed_version"]["matched"] + assert len(BLOCK["fields"]) == 21 and BLOCK["comments"] == [] + assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2 + nodes = {n["id"]: n for n in SOURCE["nodes"]} + assert {k: len(n["widgets_values"]) for k, n in nodes.items()} == {20: 0, 21: 11, 1: 10, 15: 0} + assert all(n["mode"] == 0 for n in nodes.values()) + assert "frontendVersion" not in SOURCE["extra"] and "definitions" not in SOURCE + assert SOURCE["links"] == [ + [15, 1, 0, 20, 0, "IMAGE"], + [16, 20, 0, 15, 0, "IMAGE"], + [17, 20, 0, 21, 0, "IMAGE"], + [18, 1, 2, 21, 1, "AUDIO"], + ] + for eid, origin, slot, target, inp, typ in SOURCE["links"]: + assert eid in nodes[origin]["outputs"][slot]["links"] + assert nodes[origin]["outputs"][slot]["type"] == typ + assert nodes[target]["inputs"][inp]["link"] == eid + assert nodes[target]["inputs"][inp]["type"] == typ + fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]} + assert fields["1", "force_rate"]["value"] == fields["21", "frame_rate"]["value"] == 16 + assert fields["1", "force_rate"]["json_type"] == "int" + assert fields["1", "choose video to upload"]["role"] == "frontend_control" + assert all( + f["role"] == "frontend_history" for f in BLOCK["fields"] if f["field"] == "videopreview" + ) + text = "".join(BLOCK["flow"]) + for token in [ + "音频link18", + "绕过Reverse20", + "torch.flip(images,[0])", + "没有frontendVersion", + "-shortest", + "RETURN_TYPES", + "未接", + "历史", + "未知", + "内存", + "VHS1.7.7", + ]: + assert token in text + assert not BLOCK["counts"]["final_prompt_constructed"] + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO)) + now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") + watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) + now[watermark].pop("fixed_version_document") + birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) + now[birefnet].pop("fixed_version_document") + for added in [ + p + for p in now + if p.endswith( + ( + "视频转gif动图图片.json", + "加载图片合成视频.json", + "双图像或视频合并显示.json", + "截取视频每一帧.json", + "加载本地latent解码.json", + ) + ) + ]: + now[added].pop("fixed_version_document") + assert now[PATH].pop("fixed_version_document") == BLOCK + assert now == old and len(DEFINITIONS) == 26 + blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] + assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495 + assert ( + sum(len(b.get("comments", [])) for b in blocks) == 14 + ) # ASR historical note counted separately + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert d["dependencies"]["check_state"] == "unchecked" + for p in DEFINITIONS: + if p == watermark: + continue + if p.endswith("/birefnet_图像移除背景.json"): + continue + if p.endswith( + ( + "视频转gif动图图片.json", + "加载图片合成视频.json", + "双图像或视频合并显示.json", + "截取视频每一帧.json", + "加载本地latent解码.json", + ) + ): + continue + if p == PATH: + continue + r = copy.deepcopy(REVIEW) +> r["fixed_version_document"] = old[p]["fixed_version_document"] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +E KeyError: 'fixed_version_document' + +calliope-backend/tests/test_reverse_fixed_document.py:263: KeyError +__________ test_exact_topology_counts_modes_unknowns_and_old_objects ___________ + + def test_exact_topology_counts_modes_unknowns_and_old_objects(): + d = doc() + assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"] + assert len(BLOCK["fields"]) == 74 and len(BLOCK["comments"]) == 0 + assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 3 + assert sum(f["value"] is None for f in BLOCK["fields"]) == 1 + assert sum(f["role"] == "unknown_saved" for f in BLOCK["fields"]) == 7 + expected = { + 203: 1, + 334: 1, + 340: 1, + 137: 11, + 339: 1, + 373: 11, + 364: 3, + 362: 7, + 363: 0, + 106: 2, + 374: 9, + 370: 1, + 130: 9, + 208: 1, + 376: 1, + 375: 9, + 365: 0, + 335: 2, + 372: 4, + } + nodes = {n["id"]: n for n in SOURCE["nodes"]} + assert {nid: len(n["widgets_values"]) for nid, n in nodes.items()} == expected + assert {nid for nid, n in nodes.items() if n["mode"] == 4} == {106, 375, 365} + assert len(SOURCE["links"]) == 22 and "definitions" not in SOURCE + assert [e[0] for e in SOURCE["links"]] == [ + 570, + 621, + 623, + 624, + 625, + 627, + 629, + 648, + 650, + 651, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 665, + ] + for eid, origin, slot, target, inp, typ in SOURCE["links"]: + assert eid in nodes[origin]["outputs"][slot]["links"] + assert nodes[target]["inputs"][inp]["link"] == eid + assert nodes[target]["inputs"][inp]["type"] == ( + {648: "INT", 661: "INT,FLOAT", 662: "INT,FLOAT"}.get(eid, typ) + ) + text = "".join(BLOCK["flow"]) + assert all( + t in text + for t in [ + "没有warmup", + "没有per_batch", + "round(result)", + "两Combine.audio都未接", + "临时目录", + "UE", + "mode4", + "0新源注释", + "冲突不抹平", + "taichi", + "提供方", + "未实跑", + ] + ) + assert not BLOCK["counts"]["final_prompt_constructed"] + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO)) + now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") + watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) + now[watermark].pop("fixed_version_document") + birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) + now[birefnet].pop("fixed_version_document") + latent = next(p for p in now if p.endswith("/加载本地latent解码.json")) + now[latent].pop("fixed_version_document") + later = next(p for p in now if p.endswith("/截取视频每一帧.json")) + now[later].pop("fixed_version_document") + for added in [ + p + for p in now + if p.endswith( + ("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json") + ) + ]: + now[added].pop("fixed_version_document") + reverse = next(p for p in now if p.endswith("/视频倒放.json")) + now[reverse].pop("fixed_version_document") + assert now[PATH].pop("fixed_version_document") == BLOCK + assert now == old and len(DEFINITIONS) == 26 + old_blocks = [ + r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r + ] + assert len(old_blocks) == 16 and sum(len(b["fields"]) for b in old_blocks) == 421 + assert ( + sum(len(b.get("comments", [])) for b in old_blocks) == 14 + ) # separate historical ASR flow note + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert d["dependencies"]["check_state"] == "unchecked" + for p in DEFINITIONS: + if p == watermark: + continue + if p.endswith("/birefnet_图像移除背景.json"): + continue + if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")): + continue + if p.endswith( + ("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json") + ): + continue + if p == PATH or p.endswith("/视频倒放.json"): + continue + r = copy.deepcopy(REVIEW) +> r["fixed_version_document"] = old[p]["fixed_version_document"] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +E KeyError: 'fixed_version_document' + +calliope-backend/tests/test_nlf_fixed_document.py:308: KeyError +________________ test_exact_document_topology_and_preservation _________________ + + def test_exact_document_topology_and_preservation(): + d = doc() + assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"] + assert len(BLOCK["fields"]) == 27 and len(BLOCK["comments"]) == 1 + assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2 + assert len(SOURCE["nodes"]) == 5 and len(SOURCE["links"]) == 4 + assert SOURCE["links"] == [ + [4, 1, 0, 4, 0, "IMAGE"], + [10, 2, 0, 1, 0, "IMAGE"], + [11, 2, 3, 9, 0, "VHS_VIDEOINFO"], + [12, 9, 0, 4, 4, "FLOAT"], + ] + nodes = {n["id"]: n for n in SOURCE["nodes"]} + for edge, origin, slot, target, inp, typ in SOURCE["links"]: + assert edge in nodes[origin]["outputs"][slot]["links"] + assert nodes[target]["inputs"][inp]["link"] == edge + assert nodes[target]["inputs"][inp]["type"] == typ + assert nodes[9]["widgets_values"] == {} and type(nodes[9]["widgets_values"]) is dict + assert all(n["mode"] == 0 for n in SOURCE["nodes"]) + assert pointer(SOURCE, BLOCK["comments"][0]["pointer"]) == BLOCK["comments"][0]["text"] + assert not BLOCK["counts"]["final_prompt_constructed"] + assert all( + s in "".join(BLOCK["flow"]) + for s in [ + "未实跑", + "包同字节不等于提交绑定", + "loaded_fps", + "外线覆盖", + "音频", + "UE7.5.2", + "空对象", + "不是缺键/null/[]", + ] + ) + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO)) + current = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in current if p.endswith("/多视频合成分屏展示.json")) + current[multivideo].pop("fixed_version_document") + watermark = next(p for p in current if p.endswith("/图像4种添加水印节点.json")) + current[watermark].pop("fixed_version_document") + birefnet = next(p for p in current if p.endswith("/birefnet_图像移除背景.json")) + current[birefnet].pop("fixed_version_document") + latent = next(p for p in current if p.endswith("/加载本地latent解码.json")) + current[latent].pop("fixed_version_document") + later = next(p for p in current if p.endswith("/截取视频每一帧.json")) + current[later].pop("fixed_version_document") + for added in [ + p + for p in current + if p.endswith( + ("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json") + ) + ]: + current[added].pop("fixed_version_document") + reverse = next(p for p in current if p.endswith("/视频倒放.json")) + current[reverse].pop("fixed_version_document") + nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json")) + current[nlf].pop("fixed_version_document") + assert current[PATH].pop("fixed_version_document") == BLOCK + assert current == previous and len(DEFINITIONS) == 26 + old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r] + assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394 + assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert d["dependencies"]["check_state"] == "unchecked" + assert not doc(path="untrusted.json").get("fixed_version") + for p in DEFINITIONS: + if p == watermark: + continue + if p.endswith("/birefnet_图像移除背景.json"): + continue + if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")): + continue + if p.endswith( + ("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json") + ): + continue + if p in [PATH, nlf, reverse]: + continue + r = copy.deepcopy(REVIEW) +> r["fixed_version_document"] = previous[p]["fixed_version_document"] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +E KeyError: 'fixed_version_document' + +calliope-backend/tests/test_openpose_fixed_document.py:249: KeyError +______________ test_real_document_and_frozen_old_fourteen_blocks _______________ + + def test_real_document_and_frozen_old_fourteen_blocks(): + d = doc() + assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"] + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert d["dependencies"]["check_state"] == "unchecked" + assert "fixed_version" not in doc(path="untrusted.json") + review = copy.deepcopy(REVIEW) + other = next( + p + for p in DEFINITIONS + if p != PATH + and not p.endswith("/图像4种添加水印节点.json") + and not p.endswith("/birefnet_图像移除背景.json") + and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")) + and not p.endswith( + ("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json") + ) + ) + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + now = json.loads((REPO / resource).read_bytes()) + multivideo = next(p for p in now if p.endswith("/多视频合成分屏展示.json")) + now[multivideo].pop("fixed_version_document") + watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) + now[watermark].pop("fixed_version_document") + birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) + now[birefnet].pop("fixed_version_document") + latent = next(p for p in now if p.endswith("/加载本地latent解码.json")) + now[latent].pop("fixed_version_document") + later = next(p for p in now if p.endswith("/截取视频每一帧.json")) + now[later].pop("fixed_version_document") + for added in [ + p + for p in now + if p.endswith( + ( + "视频转gif动图图片.json", + "加载图片合成视频.json", + "双图像或视频合并显示.json", + ) + ) + ]: + now[added].pop("fixed_version_document") + reverse = next(p for p in now if p.endswith("/视频倒放.json")) + now[reverse].pop("fixed_version_document") + nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json")) + now[nlf].pop("fixed_version_document") + openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json")) +> review["fixed_version_document"] = now[other]["fixed_version_document"] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +E KeyError: 'fixed_version_document' + +calliope-backend/tests/test_sdpose_fixed_document.py:193: KeyError +______ test_ten_documents_only_gain_overview_and_new_block_is_independent ______ + + def test_ten_documents_only_gain_overview_and_new_block_is_independent(): + p = "calliope-backend/src/calliope/comfyui/source_reviews.json" + old = json.loads(subprocess.check_output(["git", "show", "ec3388a:" + p], cwd=REPO)) + now = json.loads((REPO / p).read_bytes()) + watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json")) + now[watermark].pop("fixed_version_document") + birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json")) + now[birefnet].pop("fixed_version_document") + # Freeze the historical eleven-document revision; the two grid additions are + # independently compared against 27e6d56 in test_grid_fixed_document. + # Gemma is separately checked against 9dac1b4 in test_gemma_fixed_document. + additions = [ + p + for p in DEFINITIONS + if p.endswith( + ( + "图像合并成四宫格.json", + "图像分割-多宫格分割.json", + "gemma4_提示词反推(图像视频音频).json", + "sdpose_视频人物姿势骨架提取.json", + "openpose-video-姿态检测.json", + "NLF_视频人物动作骨架获取.json", + "/视频倒放.json", + "视频转gif动图图片.json", + "加载图片合成视频.json", + "双图像或视频合并显示.json", + "截取视频每一帧.json", + "加载本地latent解码.json", + ) + ) + ] + assert len(additions) == 12 + for p in additions: + now[p].pop("fixed_version_document") + historical = [p for p in DEFINITIONS if p not in additions and p not in [birefnet, watermark]] +> assert len(historical) == 11 +E AssertionError: assert 12 == 11 +E + where 12 = len(['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json', 'example_ComfyUI_workflows/3-图像生成/Qwen-Ima...图像视频放大/Minimax-H3提示词增强.json', 'example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json', ...]) + +calliope-backend/tests/test_background_fixed_document.py:224: AssertionError +=========================== short test summary info ============================ +FAILED calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged +FAILED calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects +FAILED calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation +FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks +FAILED calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent +5 failed, 555 passed, 1 warning in 6.93s diff --git a/docs/hel-892/multivideo-document-evidence/backend.txt b/docs/hel-892/multivideo-document-evidence/backend.txt new file mode 100644 index 00000000..b904e057 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/backend.txt @@ -0,0 +1,10 @@ +........................................................................ [ 11%] +........................................................................ [ 23%] +........................................................................ [ 35%] +........................................................................ [ 47%] +........................................................................ [ 59%] +........................................................................ [ 70%] +........................................................................ [ 82%] +........................................................................ [ 94%] +.................................. [100%] +610 passed, 1 warning in 7.03s diff --git a/docs/hel-892/multivideo-document-evidence/boundaries.json b/docs/hel-892/multivideo-document-evidence/boundaries.json new file mode 100644 index 00000000..eeb238d0 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/boundaries.json @@ -0,0 +1,728 @@ +{ + "base": "197f3e150dda417ed7a2698860834375e95e1bec", + "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_five_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" +} diff --git a/docs/hel-892/multivideo-document-evidence/browser-final.txt b/docs/hel-892/multivideo-document-evidence/browser-final.txt new file mode 100644 index 00000000..b277c654 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/browser-final.txt @@ -0,0 +1,1923 @@ +PASS 26图820保存位置 +PASS 26图16源注释 +PASS 1440 多视频合成分屏展示默认中文用途 +PASS 1440 多视频合成分屏展示源审校默认折叠 +PASS 1440 多视频合成分屏展示技术范围默认折叠 +PASS 1440 多视频合成分屏展示默认无执行计数/实现标识 +PASS 1440 多视频合成分屏展示默认依据限制可见 +PASS 1440 多视频合成分屏展示 说明未定稿 +PASS 1440 多视频合成分屏展示 未验证实跑 +PASS 1440 多视频合成分屏展示 未检查 +PASS 1440 多视频合成分屏展示停用/时间戳空 +PASS 1440 多视频合成分屏展示参数全保留 +PASS 1440 多视频合成分屏展示默认无溢出 +PASS 1440 多视频合成分屏展示原用途/源路径展开保留 +PASS 1440 多视频合成分屏展示展开流程 0 +PASS 1440 多视频合成分屏展示展开流程 1 +PASS 1440 多视频合成分屏展示展开流程 2 +PASS 1440 多视频合成分屏展示展开流程 3 +PASS 1440 多视频合成分屏展示展开流程 4 +PASS 1440 多视频合成分屏展示展开流程 5 +PASS 1440 多视频合成分屏展示展开流程 6 +PASS 1440 多视频合成分屏展示展开流程 7 +PASS 1440 多视频合成分屏展示展开流程 8 +PASS 1440 多视频合成分屏展示展开流程 9 +PASS 1440 多视频合成分屏展示展开流程 10 +PASS 1440 多视频合成分屏展示展开流程 11 +PASS 1440 多视频合成分屏展示展开流程 12 +PASS 1440 多视频合成分屏展示展开流程 13 +PASS 1440 多视频合成分屏展示展开流程 14 +PASS 1440 多视频合成分屏展示展开流程 15 +PASS 1440 多视频合成分屏展示展开流程 16 +PASS 1440 多视频合成分屏展示展开流程 17 +PASS 1440 多视频合成分屏展示展开流程 18 +PASS 1440 多视频合成分屏展示展开流程 19 +PASS 1440 多视频合成分屏展示展开流程 20 +PASS 1440 多视频合成分屏展示展开流程 21 +PASS 1440 多视频合成分屏展示展开流程 22 +PASS 1440 多视频合成分屏展示展开流程 23 +PASS 1440 多视频合成分屏展示展开流程 24 +PASS 1440 多视频合成分屏展示展开流程 25 +PASS 1440 多视频合成分屏展示展开流程 26 +PASS 1440 多视频合成分屏展示展开流程 27 +PASS 1440 多视频合成分屏展示展开流程 28 +PASS 1440 多视频合成分屏展示展开流程 29 +PASS 1440 多视频合成分屏展示展开流程 30 +PASS 1440 多视频合成分屏展示展开流程 31 +PASS 1440 多视频合成分屏展示展开流程 32 +PASS 1440 多视频合成分屏展示展开流程 33 +PASS 1440 多视频合成分屏展示展开流程 34 +PASS 1440 多视频合成分屏展示展开流程 35 +PASS 1440 多视频合成分屏展示展开流程 36 +PASS 1440 多视频合成分屏展示展开流程 37 +PASS 1440 多视频合成分屏展示原件摘要可展开 +PASS 1440 多视频合成分屏展示版本 0 +PASS 1440 多视频合成分屏展示版本 1 +PASS 1440 多视频合成分屏展示版本 2 +PASS 1440 多视频合成分屏展示版本 3 +PASS 1440 多视频合成分屏展示版本 4 +PASS 1440 2.inputcount键盘展开 +PASS 1440 2.inputcount用途/单位/范围/来源条件 +PASS 1440 2.inputcount精确保留现值 +PASS 1440 2.inputcount指针默认折叠 +PASS 1440 2.inputcount精确源码/类型/指针 +PASS 1440 2.inputcount展开无溢出 +PASS 1440 2.direction键盘展开 +PASS 1440 2.direction用途/单位/范围/来源条件 +PASS 1440 2.direction精确保留现值 +PASS 1440 2.direction指针默认折叠 +PASS 1440 2.direction精确源码/类型/指针 +PASS 1440 2.direction展开无溢出 +PASS 1440 2.match_image_size键盘展开 +PASS 1440 2.match_image_size用途/单位/范围/来源条件 +PASS 1440 2.match_image_size精确保留现值 +PASS 1440 2.match_image_size指针默认折叠 +PASS 1440 2.match_image_size精确源码/类型/指针 +PASS 1440 2.match_image_size展开无溢出 +PASS 1440 2.saved_position_3键盘展开 +PASS 1440 2.saved_position_3用途/单位/范围/来源条件 +PASS 1440 2.saved_position_3精确保留现值 +PASS 1440 2.saved_position_3指针默认折叠 +PASS 1440 2.saved_position_3精确源码/类型/指针 +PASS 1440 2.saved_position_3展开无溢出 +PASS 1440 1.inputcount键盘展开 +PASS 1440 1.inputcount用途/单位/范围/来源条件 +PASS 1440 1.inputcount精确保留现值 +PASS 1440 1.inputcount指针默认折叠 +PASS 1440 1.inputcount精确源码/类型/指针 +PASS 1440 1.inputcount展开无溢出 +PASS 1440 1.direction键盘展开 +PASS 1440 1.direction用途/单位/范围/来源条件 +PASS 1440 1.direction精确保留现值 +PASS 1440 1.direction指针默认折叠 +PASS 1440 1.direction精确源码/类型/指针 +PASS 1440 1.direction展开无溢出 +PASS 1440 1.match_image_size键盘展开 +PASS 1440 1.match_image_size用途/单位/范围/来源条件 +PASS 1440 1.match_image_size精确保留现值 +PASS 1440 1.match_image_size指针默认折叠 +PASS 1440 1.match_image_size精确源码/类型/指针 +PASS 1440 1.match_image_size展开无溢出 +PASS 1440 1.saved_position_3键盘展开 +PASS 1440 1.saved_position_3用途/单位/范围/来源条件 +PASS 1440 1.saved_position_3精确保留现值 +PASS 1440 1.saved_position_3指针默认折叠 +PASS 1440 1.saved_position_3精确源码/类型/指针 +PASS 1440 1.saved_position_3展开无溢出 +PASS 1440 3.frame_rate键盘展开 +PASS 1440 3.frame_rate用途/单位/范围/来源条件 +PASS 1440 3.frame_rate精确保留现值 +PASS 1440 3.frame_rate指针默认折叠 +PASS 1440 3.frame_rate精确源码/类型/指针 +PASS 1440 3.frame_rate展开无溢出 +PASS 1440 3.loop_count键盘展开 +PASS 1440 3.loop_count用途/单位/范围/来源条件 +PASS 1440 3.loop_count精确保留现值 +PASS 1440 3.loop_count指针默认折叠 +PASS 1440 3.loop_count精确源码/类型/指针 +PASS 1440 3.loop_count展开无溢出 +PASS 1440 3.filename_prefix键盘展开 +PASS 1440 3.filename_prefix用途/单位/范围/来源条件 +PASS 1440 3.filename_prefix精确保留现值 +PASS 1440 3.filename_prefix指针默认折叠 +PASS 1440 3.filename_prefix精确源码/类型/指针 +PASS 1440 3.filename_prefix展开无溢出 +PASS 1440 3.format键盘展开 +PASS 1440 3.format用途/单位/范围/来源条件 +PASS 1440 3.format精确保留现值 +PASS 1440 3.format指针默认折叠 +PASS 1440 3.format精确源码/类型/指针 +PASS 1440 3.format展开无溢出 +PASS 1440 3.pix_fmt键盘展开 +PASS 1440 3.pix_fmt用途/单位/范围/来源条件 +PASS 1440 3.pix_fmt精确保留现值 +PASS 1440 3.pix_fmt指针默认折叠 +PASS 1440 3.pix_fmt精确源码/类型/指针 +PASS 1440 3.pix_fmt展开无溢出 +PASS 1440 3.crf键盘展开 +PASS 1440 3.crf用途/单位/范围/来源条件 +PASS 1440 3.crf精确保留现值 +PASS 1440 3.crf指针默认折叠 +PASS 1440 3.crf精确源码/类型/指针 +PASS 1440 3.crf展开无溢出 +PASS 1440 3.save_metadata键盘展开 +PASS 1440 3.save_metadata用途/单位/范围/来源条件 +PASS 1440 3.save_metadata精确保留现值 +PASS 1440 3.save_metadata指针默认折叠 +PASS 1440 3.save_metadata精确源码/类型/指针 +PASS 1440 3.save_metadata展开无溢出 +PASS 1440 3.trim_to_audio键盘展开 +PASS 1440 3.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 3.trim_to_audio精确保留现值 +PASS 1440 3.trim_to_audio指针默认折叠 +PASS 1440 3.trim_to_audio精确源码/类型/指针 +PASS 1440 3.trim_to_audio展开无溢出 +PASS 1440 3.pingpong键盘展开 +PASS 1440 3.pingpong用途/单位/范围/来源条件 +PASS 1440 3.pingpong精确保留现值 +PASS 1440 3.pingpong指针默认折叠 +PASS 1440 3.pingpong精确源码/类型/指针 +PASS 1440 3.pingpong展开无溢出 +PASS 1440 3.save_output键盘展开 +PASS 1440 3.save_output用途/单位/范围/来源条件 +PASS 1440 3.save_output精确保留现值 +PASS 1440 3.save_output指针默认折叠 +PASS 1440 3.save_output精确源码/类型/指针 +PASS 1440 3.save_output展开无溢出 +PASS 1440 3.videopreview键盘展开 +PASS 1440 3.videopreview用途/单位/范围/来源条件 +PASS 1440 3.videopreview精确保留现值 +PASS 1440 3.videopreview指针默认折叠 +PASS 1440 3.videopreview精确源码/类型/指针 +PASS 1440 3.videopreview展开无溢出 +PASS 1440 7.width键盘展开 +PASS 1440 7.width用途/单位/范围/来源条件 +PASS 1440 7.width精确保留现值 +PASS 1440 7.width指针默认折叠 +PASS 1440 7.width精确源码/类型/指针 +PASS 1440 7.width展开无溢出 +PASS 1440 7.height键盘展开 +PASS 1440 7.height用途/单位/范围/来源条件 +PASS 1440 7.height精确保留现值 +PASS 1440 7.height指针默认折叠 +PASS 1440 7.height精确源码/类型/指针 +PASS 1440 7.height展开无溢出 +PASS 1440 7.upscale_method键盘展开 +PASS 1440 7.upscale_method用途/单位/范围/来源条件 +PASS 1440 7.upscale_method精确保留现值 +PASS 1440 7.upscale_method指针默认折叠 +PASS 1440 7.upscale_method精确源码/类型/指针 +PASS 1440 7.upscale_method展开无溢出 +PASS 1440 7.keep_proportion键盘展开 +PASS 1440 7.keep_proportion用途/单位/范围/来源条件 +PASS 1440 7.keep_proportion精确保留现值 +PASS 1440 7.keep_proportion指针默认折叠 +PASS 1440 7.keep_proportion精确源码/类型/指针 +PASS 1440 7.keep_proportion展开无溢出 +PASS 1440 7.pad_color键盘展开 +PASS 1440 7.pad_color用途/单位/范围/来源条件 +PASS 1440 7.pad_color精确保留现值 +PASS 1440 7.pad_color指针默认折叠 +PASS 1440 7.pad_color精确源码/类型/指针 +PASS 1440 7.pad_color展开无溢出 +PASS 1440 7.crop_position键盘展开 +PASS 1440 7.crop_position用途/单位/范围/来源条件 +PASS 1440 7.crop_position精确保留现值 +PASS 1440 7.crop_position指针默认折叠 +PASS 1440 7.crop_position精确源码/类型/指针 +PASS 1440 7.crop_position展开无溢出 +PASS 1440 7.divisible_by键盘展开 +PASS 1440 7.divisible_by用途/单位/范围/来源条件 +PASS 1440 7.divisible_by精确保留现值 +PASS 1440 7.divisible_by指针默认折叠 +PASS 1440 7.divisible_by精确源码/类型/指针 +PASS 1440 7.divisible_by展开无溢出 +PASS 1440 7.device键盘展开 +PASS 1440 7.device用途/单位/范围/来源条件 +PASS 1440 7.device精确保留现值 +PASS 1440 7.device指针默认折叠 +PASS 1440 7.device精确源码/类型/指针 +PASS 1440 7.device展开无溢出 +PASS 1440 5.width键盘展开 +PASS 1440 5.width用途/单位/范围/来源条件 +PASS 1440 5.width精确保留现值 +PASS 1440 5.width指针默认折叠 +PASS 1440 5.width精确源码/类型/指针 +PASS 1440 5.width展开无溢出 +PASS 1440 5.height键盘展开 +PASS 1440 5.height用途/单位/范围/来源条件 +PASS 1440 5.height精确保留现值 +PASS 1440 5.height指针默认折叠 +PASS 1440 5.height精确源码/类型/指针 +PASS 1440 5.height展开无溢出 +PASS 1440 5.upscale_method键盘展开 +PASS 1440 5.upscale_method用途/单位/范围/来源条件 +PASS 1440 5.upscale_method精确保留现值 +PASS 1440 5.upscale_method指针默认折叠 +PASS 1440 5.upscale_method精确源码/类型/指针 +PASS 1440 5.upscale_method展开无溢出 +PASS 1440 5.keep_proportion键盘展开 +PASS 1440 5.keep_proportion用途/单位/范围/来源条件 +PASS 1440 5.keep_proportion精确保留现值 +PASS 1440 5.keep_proportion指针默认折叠 +PASS 1440 5.keep_proportion精确源码/类型/指针 +PASS 1440 5.keep_proportion展开无溢出 +PASS 1440 5.pad_color键盘展开 +PASS 1440 5.pad_color用途/单位/范围/来源条件 +PASS 1440 5.pad_color精确保留现值 +PASS 1440 5.pad_color指针默认折叠 +PASS 1440 5.pad_color精确源码/类型/指针 +PASS 1440 5.pad_color展开无溢出 +PASS 1440 5.crop_position键盘展开 +PASS 1440 5.crop_position用途/单位/范围/来源条件 +PASS 1440 5.crop_position精确保留现值 +PASS 1440 5.crop_position指针默认折叠 +PASS 1440 5.crop_position精确源码/类型/指针 +PASS 1440 5.crop_position展开无溢出 +PASS 1440 5.divisible_by键盘展开 +PASS 1440 5.divisible_by用途/单位/范围/来源条件 +PASS 1440 5.divisible_by精确保留现值 +PASS 1440 5.divisible_by指针默认折叠 +PASS 1440 5.divisible_by精确源码/类型/指针 +PASS 1440 5.divisible_by展开无溢出 +PASS 1440 5.device键盘展开 +PASS 1440 5.device用途/单位/范围/来源条件 +PASS 1440 5.device精确保留现值 +PASS 1440 5.device指针默认折叠 +PASS 1440 5.device精确源码/类型/指针 +PASS 1440 5.device展开无溢出 +PASS 1440 8.video键盘展开 +PASS 1440 8.video用途/单位/范围/来源条件 +PASS 1440 8.video精确保留现值 +PASS 1440 8.video指针默认折叠 +PASS 1440 8.video精确源码/类型/指针 +PASS 1440 8.video展开无溢出 +PASS 1440 8.force_rate键盘展开 +PASS 1440 8.force_rate用途/单位/范围/来源条件 +PASS 1440 8.force_rate精确保留现值 +PASS 1440 8.force_rate指针默认折叠 +PASS 1440 8.force_rate精确源码/类型/指针 +PASS 1440 8.force_rate展开无溢出 +PASS 1440 8.custom_width键盘展开 +PASS 1440 8.custom_width用途/单位/范围/来源条件 +PASS 1440 8.custom_width精确保留现值 +PASS 1440 8.custom_width指针默认折叠 +PASS 1440 8.custom_width精确源码/类型/指针 +PASS 1440 8.custom_width展开无溢出 +PASS 1440 8.custom_height键盘展开 +PASS 1440 8.custom_height用途/单位/范围/来源条件 +PASS 1440 8.custom_height精确保留现值 +PASS 1440 8.custom_height指针默认折叠 +PASS 1440 8.custom_height精确源码/类型/指针 +PASS 1440 8.custom_height展开无溢出 +PASS 1440 8.frame_load_cap键盘展开 +PASS 1440 8.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 8.frame_load_cap精确保留现值 +PASS 1440 8.frame_load_cap指针默认折叠 +PASS 1440 8.frame_load_cap精确源码/类型/指针 +PASS 1440 8.frame_load_cap展开无溢出 +PASS 1440 8.skip_first_frames键盘展开 +PASS 1440 8.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 8.skip_first_frames精确保留现值 +PASS 1440 8.skip_first_frames指针默认折叠 +PASS 1440 8.skip_first_frames精确源码/类型/指针 +PASS 1440 8.skip_first_frames展开无溢出 +PASS 1440 8.select_every_nth键盘展开 +PASS 1440 8.select_every_nth用途/单位/范围/来源条件 +PASS 1440 8.select_every_nth精确保留现值 +PASS 1440 8.select_every_nth指针默认折叠 +PASS 1440 8.select_every_nth精确源码/类型/指针 +PASS 1440 8.select_every_nth展开无溢出 +PASS 1440 8.format键盘展开 +PASS 1440 8.format用途/单位/范围/来源条件 +PASS 1440 8.format精确保留现值 +PASS 1440 8.format指针默认折叠 +PASS 1440 8.format精确源码/类型/指针 +PASS 1440 8.format展开无溢出 +PASS 1440 8.videopreview键盘展开 +PASS 1440 8.videopreview用途/单位/范围/来源条件 +PASS 1440 8.videopreview精确保留现值 +PASS 1440 8.videopreview指针默认折叠 +PASS 1440 8.videopreview精确源码/类型/指针 +PASS 1440 8.videopreview展开无溢出 +PASS 1440 6.video键盘展开 +PASS 1440 6.video用途/单位/范围/来源条件 +PASS 1440 6.video精确保留现值 +PASS 1440 6.video指针默认折叠 +PASS 1440 6.video精确源码/类型/指针 +PASS 1440 6.video展开无溢出 +PASS 1440 6.force_rate键盘展开 +PASS 1440 6.force_rate用途/单位/范围/来源条件 +PASS 1440 6.force_rate精确保留现值 +PASS 1440 6.force_rate指针默认折叠 +PASS 1440 6.force_rate精确源码/类型/指针 +PASS 1440 6.force_rate展开无溢出 +PASS 1440 6.custom_width键盘展开 +PASS 1440 6.custom_width用途/单位/范围/来源条件 +PASS 1440 6.custom_width精确保留现值 +PASS 1440 6.custom_width指针默认折叠 +PASS 1440 6.custom_width精确源码/类型/指针 +PASS 1440 6.custom_width展开无溢出 +PASS 1440 6.custom_height键盘展开 +PASS 1440 6.custom_height用途/单位/范围/来源条件 +PASS 1440 6.custom_height精确保留现值 +PASS 1440 6.custom_height指针默认折叠 +PASS 1440 6.custom_height精确源码/类型/指针 +PASS 1440 6.custom_height展开无溢出 +PASS 1440 6.frame_load_cap键盘展开 +PASS 1440 6.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 6.frame_load_cap精确保留现值 +PASS 1440 6.frame_load_cap指针默认折叠 +PASS 1440 6.frame_load_cap精确源码/类型/指针 +PASS 1440 6.frame_load_cap展开无溢出 +PASS 1440 6.skip_first_frames键盘展开 +PASS 1440 6.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 6.skip_first_frames精确保留现值 +PASS 1440 6.skip_first_frames指针默认折叠 +PASS 1440 6.skip_first_frames精确源码/类型/指针 +PASS 1440 6.skip_first_frames展开无溢出 +PASS 1440 6.select_every_nth键盘展开 +PASS 1440 6.select_every_nth用途/单位/范围/来源条件 +PASS 1440 6.select_every_nth精确保留现值 +PASS 1440 6.select_every_nth指针默认折叠 +PASS 1440 6.select_every_nth精确源码/类型/指针 +PASS 1440 6.select_every_nth展开无溢出 +PASS 1440 6.format键盘展开 +PASS 1440 6.format用途/单位/范围/来源条件 +PASS 1440 6.format精确保留现值 +PASS 1440 6.format指针默认折叠 +PASS 1440 6.format精确源码/类型/指针 +PASS 1440 6.format展开无溢出 +PASS 1440 6.videopreview键盘展开 +PASS 1440 6.videopreview用途/单位/范围/来源条件 +PASS 1440 6.videopreview精确保留现值 +PASS 1440 6.videopreview指针默认折叠 +PASS 1440 6.videopreview精确源码/类型/指针 +PASS 1440 6.videopreview展开无溢出 +PASS 1440 4.video键盘展开 +PASS 1440 4.video用途/单位/范围/来源条件 +PASS 1440 4.video精确保留现值 +PASS 1440 4.video指针默认折叠 +PASS 1440 4.video精确源码/类型/指针 +PASS 1440 4.video展开无溢出 +PASS 1440 4.force_rate键盘展开 +PASS 1440 4.force_rate用途/单位/范围/来源条件 +PASS 1440 4.force_rate精确保留现值 +PASS 1440 4.force_rate指针默认折叠 +PASS 1440 4.force_rate精确源码/类型/指针 +PASS 1440 4.force_rate展开无溢出 +PASS 1440 4.custom_width键盘展开 +PASS 1440 4.custom_width用途/单位/范围/来源条件 +PASS 1440 4.custom_width精确保留现值 +PASS 1440 4.custom_width指针默认折叠 +PASS 1440 4.custom_width精确源码/类型/指针 +PASS 1440 4.custom_width展开无溢出 +PASS 1440 4.custom_height键盘展开 +PASS 1440 4.custom_height用途/单位/范围/来源条件 +PASS 1440 4.custom_height精确保留现值 +PASS 1440 4.custom_height指针默认折叠 +PASS 1440 4.custom_height精确源码/类型/指针 +PASS 1440 4.custom_height展开无溢出 +PASS 1440 4.frame_load_cap键盘展开 +PASS 1440 4.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 4.frame_load_cap精确保留现值 +PASS 1440 4.frame_load_cap指针默认折叠 +PASS 1440 4.frame_load_cap精确源码/类型/指针 +PASS 1440 4.frame_load_cap展开无溢出 +PASS 1440 4.skip_first_frames键盘展开 +PASS 1440 4.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 4.skip_first_frames精确保留现值 +PASS 1440 4.skip_first_frames指针默认折叠 +PASS 1440 4.skip_first_frames精确源码/类型/指针 +PASS 1440 4.skip_first_frames展开无溢出 +PASS 1440 4.select_every_nth键盘展开 +PASS 1440 4.select_every_nth用途/单位/范围/来源条件 +PASS 1440 4.select_every_nth精确保留现值 +PASS 1440 4.select_every_nth指针默认折叠 +PASS 1440 4.select_every_nth精确源码/类型/指针 +PASS 1440 4.select_every_nth展开无溢出 +PASS 1440 4.format键盘展开 +PASS 1440 4.format用途/单位/范围/来源条件 +PASS 1440 4.format精确保留现值 +PASS 1440 4.format指针默认折叠 +PASS 1440 4.format精确源码/类型/指针 +PASS 1440 4.format展开无溢出 +PASS 1440 4.videopreview键盘展开 +PASS 1440 4.videopreview用途/单位/范围/来源条件 +PASS 1440 4.videopreview精确保留现值 +PASS 1440 4.videopreview指针默认折叠 +PASS 1440 4.videopreview精确源码/类型/指针 +PASS 1440 4.videopreview展开无溢出 +PASS 1440 10.inputcount键盘展开 +PASS 1440 10.inputcount用途/单位/范围/来源条件 +PASS 1440 10.inputcount精确保留现值 +PASS 1440 10.inputcount指针默认折叠 +PASS 1440 10.inputcount精确源码/类型/指针 +PASS 1440 10.inputcount展开无溢出 +PASS 1440 10.direction键盘展开 +PASS 1440 10.direction用途/单位/范围/来源条件 +PASS 1440 10.direction精确保留现值 +PASS 1440 10.direction指针默认折叠 +PASS 1440 10.direction精确源码/类型/指针 +PASS 1440 10.direction展开无溢出 +PASS 1440 10.match_image_size键盘展开 +PASS 1440 10.match_image_size用途/单位/范围/来源条件 +PASS 1440 10.match_image_size精确保留现值 +PASS 1440 10.match_image_size指针默认折叠 +PASS 1440 10.match_image_size精确源码/类型/指针 +PASS 1440 10.match_image_size展开无溢出 +PASS 1440 10.saved_position_3键盘展开 +PASS 1440 10.saved_position_3用途/单位/范围/来源条件 +PASS 1440 10.saved_position_3精确保留现值 +PASS 1440 10.saved_position_3指针默认折叠 +PASS 1440 10.saved_position_3精确源码/类型/指针 +PASS 1440 10.saved_position_3展开无溢出 +PASS 1440 11.inputcount键盘展开 +PASS 1440 11.inputcount用途/单位/范围/来源条件 +PASS 1440 11.inputcount精确保留现值 +PASS 1440 11.inputcount指针默认折叠 +PASS 1440 11.inputcount精确源码/类型/指针 +PASS 1440 11.inputcount展开无溢出 +PASS 1440 11.direction键盘展开 +PASS 1440 11.direction用途/单位/范围/来源条件 +PASS 1440 11.direction精确保留现值 +PASS 1440 11.direction指针默认折叠 +PASS 1440 11.direction精确源码/类型/指针 +PASS 1440 11.direction展开无溢出 +PASS 1440 11.match_image_size键盘展开 +PASS 1440 11.match_image_size用途/单位/范围/来源条件 +PASS 1440 11.match_image_size精确保留现值 +PASS 1440 11.match_image_size指针默认折叠 +PASS 1440 11.match_image_size精确源码/类型/指针 +PASS 1440 11.match_image_size展开无溢出 +PASS 1440 11.saved_position_3键盘展开 +PASS 1440 11.saved_position_3用途/单位/范围/来源条件 +PASS 1440 11.saved_position_3精确保留现值 +PASS 1440 11.saved_position_3指针默认折叠 +PASS 1440 11.saved_position_3精确源码/类型/指针 +PASS 1440 11.saved_position_3展开无溢出 +PASS 1440 12.frame_rate键盘展开 +PASS 1440 12.frame_rate用途/单位/范围/来源条件 +PASS 1440 12.frame_rate精确保留现值 +PASS 1440 12.frame_rate指针默认折叠 +PASS 1440 12.frame_rate精确源码/类型/指针 +PASS 1440 12.frame_rate展开无溢出 +PASS 1440 12.loop_count键盘展开 +PASS 1440 12.loop_count用途/单位/范围/来源条件 +PASS 1440 12.loop_count精确保留现值 +PASS 1440 12.loop_count指针默认折叠 +PASS 1440 12.loop_count精确源码/类型/指针 +PASS 1440 12.loop_count展开无溢出 +PASS 1440 12.filename_prefix键盘展开 +PASS 1440 12.filename_prefix用途/单位/范围/来源条件 +PASS 1440 12.filename_prefix精确保留现值 +PASS 1440 12.filename_prefix指针默认折叠 +PASS 1440 12.filename_prefix精确源码/类型/指针 +PASS 1440 12.filename_prefix展开无溢出 +PASS 1440 12.format键盘展开 +PASS 1440 12.format用途/单位/范围/来源条件 +PASS 1440 12.format精确保留现值 +PASS 1440 12.format指针默认折叠 +PASS 1440 12.format精确源码/类型/指针 +PASS 1440 12.format展开无溢出 +PASS 1440 12.pix_fmt键盘展开 +PASS 1440 12.pix_fmt用途/单位/范围/来源条件 +PASS 1440 12.pix_fmt精确保留现值 +PASS 1440 12.pix_fmt指针默认折叠 +PASS 1440 12.pix_fmt精确源码/类型/指针 +PASS 1440 12.pix_fmt展开无溢出 +PASS 1440 12.crf键盘展开 +PASS 1440 12.crf用途/单位/范围/来源条件 +PASS 1440 12.crf精确保留现值 +PASS 1440 12.crf指针默认折叠 +PASS 1440 12.crf精确源码/类型/指针 +PASS 1440 12.crf展开无溢出 +PASS 1440 12.save_metadata键盘展开 +PASS 1440 12.save_metadata用途/单位/范围/来源条件 +PASS 1440 12.save_metadata精确保留现值 +PASS 1440 12.save_metadata指针默认折叠 +PASS 1440 12.save_metadata精确源码/类型/指针 +PASS 1440 12.save_metadata展开无溢出 +PASS 1440 12.trim_to_audio键盘展开 +PASS 1440 12.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 12.trim_to_audio精确保留现值 +PASS 1440 12.trim_to_audio指针默认折叠 +PASS 1440 12.trim_to_audio精确源码/类型/指针 +PASS 1440 12.trim_to_audio展开无溢出 +PASS 1440 12.pingpong键盘展开 +PASS 1440 12.pingpong用途/单位/范围/来源条件 +PASS 1440 12.pingpong精确保留现值 +PASS 1440 12.pingpong指针默认折叠 +PASS 1440 12.pingpong精确源码/类型/指针 +PASS 1440 12.pingpong展开无溢出 +PASS 1440 12.save_output键盘展开 +PASS 1440 12.save_output用途/单位/范围/来源条件 +PASS 1440 12.save_output精确保留现值 +PASS 1440 12.save_output指针默认折叠 +PASS 1440 12.save_output精确源码/类型/指针 +PASS 1440 12.save_output展开无溢出 +PASS 1440 12.videopreview键盘展开 +PASS 1440 12.videopreview用途/单位/范围/来源条件 +PASS 1440 12.videopreview精确保留现值 +PASS 1440 12.videopreview指针默认折叠 +PASS 1440 12.videopreview精确源码/类型/指针 +PASS 1440 12.videopreview展开无溢出 +PASS 1440 17.video键盘展开 +PASS 1440 17.video用途/单位/范围/来源条件 +PASS 1440 17.video精确保留现值 +PASS 1440 17.video指针默认折叠 +PASS 1440 17.video精确源码/类型/指针 +PASS 1440 17.video展开无溢出 +PASS 1440 17.force_rate键盘展开 +PASS 1440 17.force_rate用途/单位/范围/来源条件 +PASS 1440 17.force_rate精确保留现值 +PASS 1440 17.force_rate指针默认折叠 +PASS 1440 17.force_rate精确源码/类型/指针 +PASS 1440 17.force_rate展开无溢出 +PASS 1440 17.custom_width键盘展开 +PASS 1440 17.custom_width用途/单位/范围/来源条件 +PASS 1440 17.custom_width精确保留现值 +PASS 1440 17.custom_width指针默认折叠 +PASS 1440 17.custom_width精确源码/类型/指针 +PASS 1440 17.custom_width展开无溢出 +PASS 1440 17.custom_height键盘展开 +PASS 1440 17.custom_height用途/单位/范围/来源条件 +PASS 1440 17.custom_height精确保留现值 +PASS 1440 17.custom_height指针默认折叠 +PASS 1440 17.custom_height精确源码/类型/指针 +PASS 1440 17.custom_height展开无溢出 +PASS 1440 17.frame_load_cap键盘展开 +PASS 1440 17.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 17.frame_load_cap精确保留现值 +PASS 1440 17.frame_load_cap指针默认折叠 +PASS 1440 17.frame_load_cap精确源码/类型/指针 +PASS 1440 17.frame_load_cap展开无溢出 +PASS 1440 17.skip_first_frames键盘展开 +PASS 1440 17.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 17.skip_first_frames精确保留现值 +PASS 1440 17.skip_first_frames指针默认折叠 +PASS 1440 17.skip_first_frames精确源码/类型/指针 +PASS 1440 17.skip_first_frames展开无溢出 +PASS 1440 17.select_every_nth键盘展开 +PASS 1440 17.select_every_nth用途/单位/范围/来源条件 +PASS 1440 17.select_every_nth精确保留现值 +PASS 1440 17.select_every_nth指针默认折叠 +PASS 1440 17.select_every_nth精确源码/类型/指针 +PASS 1440 17.select_every_nth展开无溢出 +PASS 1440 17.format键盘展开 +PASS 1440 17.format用途/单位/范围/来源条件 +PASS 1440 17.format精确保留现值 +PASS 1440 17.format指针默认折叠 +PASS 1440 17.format精确源码/类型/指针 +PASS 1440 17.format展开无溢出 +PASS 1440 17.videopreview键盘展开 +PASS 1440 17.videopreview用途/单位/范围/来源条件 +PASS 1440 17.videopreview精确保留现值 +PASS 1440 17.videopreview指针默认折叠 +PASS 1440 17.videopreview精确源码/类型/指针 +PASS 1440 17.videopreview展开无溢出 +PASS 1440 16.video键盘展开 +PASS 1440 16.video用途/单位/范围/来源条件 +PASS 1440 16.video精确保留现值 +PASS 1440 16.video指针默认折叠 +PASS 1440 16.video精确源码/类型/指针 +PASS 1440 16.video展开无溢出 +PASS 1440 16.force_rate键盘展开 +PASS 1440 16.force_rate用途/单位/范围/来源条件 +PASS 1440 16.force_rate精确保留现值 +PASS 1440 16.force_rate指针默认折叠 +PASS 1440 16.force_rate精确源码/类型/指针 +PASS 1440 16.force_rate展开无溢出 +PASS 1440 16.custom_width键盘展开 +PASS 1440 16.custom_width用途/单位/范围/来源条件 +PASS 1440 16.custom_width精确保留现值 +PASS 1440 16.custom_width指针默认折叠 +PASS 1440 16.custom_width精确源码/类型/指针 +PASS 1440 16.custom_width展开无溢出 +PASS 1440 16.custom_height键盘展开 +PASS 1440 16.custom_height用途/单位/范围/来源条件 +PASS 1440 16.custom_height精确保留现值 +PASS 1440 16.custom_height指针默认折叠 +PASS 1440 16.custom_height精确源码/类型/指针 +PASS 1440 16.custom_height展开无溢出 +PASS 1440 16.frame_load_cap键盘展开 +PASS 1440 16.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 16.frame_load_cap精确保留现值 +PASS 1440 16.frame_load_cap指针默认折叠 +PASS 1440 16.frame_load_cap精确源码/类型/指针 +PASS 1440 16.frame_load_cap展开无溢出 +PASS 1440 16.skip_first_frames键盘展开 +PASS 1440 16.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 16.skip_first_frames精确保留现值 +PASS 1440 16.skip_first_frames指针默认折叠 +PASS 1440 16.skip_first_frames精确源码/类型/指针 +PASS 1440 16.skip_first_frames展开无溢出 +PASS 1440 16.select_every_nth键盘展开 +PASS 1440 16.select_every_nth用途/单位/范围/来源条件 +PASS 1440 16.select_every_nth精确保留现值 +PASS 1440 16.select_every_nth指针默认折叠 +PASS 1440 16.select_every_nth精确源码/类型/指针 +PASS 1440 16.select_every_nth展开无溢出 +PASS 1440 16.format键盘展开 +PASS 1440 16.format用途/单位/范围/来源条件 +PASS 1440 16.format精确保留现值 +PASS 1440 16.format指针默认折叠 +PASS 1440 16.format精确源码/类型/指针 +PASS 1440 16.format展开无溢出 +PASS 1440 16.videopreview键盘展开 +PASS 1440 16.videopreview用途/单位/范围/来源条件 +PASS 1440 16.videopreview精确保留现值 +PASS 1440 16.videopreview指针默认折叠 +PASS 1440 16.videopreview精确源码/类型/指针 +PASS 1440 16.videopreview展开无溢出 +PASS 1440Tab焦点保留 +PASS 1440ShiftTab焦点保留 +PASS 1440 多视频合成分屏展示关闭归还焦点 +PASS 1440 图像4种添加水印节点默认中文用途 +PASS 1440 图像4种添加水印节点源审校默认折叠 +PASS 1440 图像4种添加水印节点技术范围默认折叠 +PASS 1440 图像4种添加水印节点默认无执行计数/实现标识 +PASS 1440 图像4种添加水印节点默认依据限制可见 +PASS 1440 图像4种添加水印节点 说明未定稿 +PASS 1440 图像4种添加水印节点 未验证实跑 +PASS 1440 图像4种添加水印节点 未检查 +PASS 1440 图像4种添加水印节点停用/时间戳空 +PASS 1440 图像4种添加水印节点参数全保留 +PASS 1440 图像4种添加水印节点默认无溢出 +PASS 1440 图像4种添加水印节点旧图归还焦点 +PASS 1440 birefnet_图像移除背景默认中文用途 +PASS 1440 birefnet_图像移除背景源审校默认折叠 +PASS 1440 birefnet_图像移除背景技术范围默认折叠 +PASS 1440 birefnet_图像移除背景默认无执行计数/实现标识 +PASS 1440 birefnet_图像移除背景默认依据限制可见 +PASS 1440 birefnet_图像移除背景 说明未定稿 +PASS 1440 birefnet_图像移除背景 未验证实跑 +PASS 1440 birefnet_图像移除背景 未检查 +PASS 1440 birefnet_图像移除背景停用/时间戳空 +PASS 1440 birefnet_图像移除背景参数全保留 +PASS 1440 birefnet_图像移除背景默认无溢出 +PASS 1440 birefnet_图像移除背景旧图归还焦点 +PASS 1440 加载本地latent解码默认中文用途 +PASS 1440 加载本地latent解码源审校默认折叠 +PASS 1440 加载本地latent解码技术范围默认折叠 +PASS 1440 加载本地latent解码默认无执行计数/实现标识 +PASS 1440 加载本地latent解码默认依据限制可见 +PASS 1440 加载本地latent解码 说明未定稿 +PASS 1440 加载本地latent解码 未验证实跑 +PASS 1440 加载本地latent解码 未检查 +PASS 1440 加载本地latent解码停用/时间戳空 +PASS 1440 加载本地latent解码参数全保留 +PASS 1440 加载本地latent解码默认无溢出 +PASS 1440 加载本地latent解码旧图归还焦点 +PASS 1440 截取视频每一帧默认中文用途 +PASS 1440 截取视频每一帧源审校默认折叠 +PASS 1440 截取视频每一帧技术范围默认折叠 +PASS 1440 截取视频每一帧默认无执行计数/实现标识 +PASS 1440 截取视频每一帧默认依据限制可见 +PASS 1440 截取视频每一帧 说明未定稿 +PASS 1440 截取视频每一帧 未验证实跑 +PASS 1440 截取视频每一帧 未检查 +PASS 1440 截取视频每一帧停用/时间戳空 +PASS 1440 截取视频每一帧参数全保留 +PASS 1440 截取视频每一帧默认无溢出 +PASS 1440 截取视频每一帧旧图归还焦点 +PASS 1440 双图像或视频合并显示默认中文用途 +PASS 1440 双图像或视频合并显示源审校默认折叠 +PASS 1440 双图像或视频合并显示技术范围默认折叠 +PASS 1440 双图像或视频合并显示默认无执行计数/实现标识 +PASS 1440 双图像或视频合并显示默认依据限制可见 +PASS 1440 双图像或视频合并显示 说明未定稿 +PASS 1440 双图像或视频合并显示 未验证实跑 +PASS 1440 双图像或视频合并显示 未检查 +PASS 1440 双图像或视频合并显示停用/时间戳空 +PASS 1440 双图像或视频合并显示参数全保留 +PASS 1440 双图像或视频合并显示默认无溢出 +PASS 1440 双图像或视频合并显示旧图归还焦点 +PASS 1440 视频转gif动图图片默认中文用途 +PASS 1440 视频转gif动图图片源审校默认折叠 +PASS 1440 视频转gif动图图片技术范围默认折叠 +PASS 1440 视频转gif动图图片默认无执行计数/实现标识 +PASS 1440 视频转gif动图图片默认依据限制可见 +PASS 1440 视频转gif动图图片 说明未定稿 +PASS 1440 视频转gif动图图片 未验证实跑 +PASS 1440 视频转gif动图图片 未检查 +PASS 1440 视频转gif动图图片停用/时间戳空 +PASS 1440 视频转gif动图图片参数全保留 +PASS 1440 视频转gif动图图片默认无溢出 +PASS 1440 视频转gif动图图片旧图归还焦点 +PASS 1440 加载图片合成视频默认中文用途 +PASS 1440 加载图片合成视频源审校默认折叠 +PASS 1440 加载图片合成视频技术范围默认折叠 +PASS 1440 加载图片合成视频默认无执行计数/实现标识 +PASS 1440 加载图片合成视频默认依据限制可见 +PASS 1440 加载图片合成视频 说明未定稿 +PASS 1440 加载图片合成视频 未验证实跑 +PASS 1440 加载图片合成视频 未检查 +PASS 1440 加载图片合成视频停用/时间戳空 +PASS 1440 加载图片合成视频参数全保留 +PASS 1440 加载图片合成视频默认无溢出 +PASS 1440 加载图片合成视频旧图归还焦点 +PASS 1440 视频倒放默认中文用途 +PASS 1440 视频倒放源审校默认折叠 +PASS 1440 视频倒放技术范围默认折叠 +PASS 1440 视频倒放默认无执行计数/实现标识 +PASS 1440 视频倒放默认依据限制可见 +PASS 1440 视频倒放 说明未定稿 +PASS 1440 视频倒放 未验证实跑 +PASS 1440 视频倒放 未检查 +PASS 1440 视频倒放停用/时间戳空 +PASS 1440 视频倒放参数全保留 +PASS 1440 视频倒放默认无溢出 +PASS 1440 视频倒放旧图归还焦点 +PASS 1440 NLF_视频人物动作骨架获取默认中文用途 +PASS 1440 NLF_视频人物动作骨架获取源审校默认折叠 +PASS 1440 NLF_视频人物动作骨架获取技术范围默认折叠 +PASS 1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识 +PASS 1440 NLF_视频人物动作骨架获取默认依据限制可见 +PASS 1440 NLF_视频人物动作骨架获取 说明未定稿 +PASS 1440 NLF_视频人物动作骨架获取 未验证实跑 +PASS 1440 NLF_视频人物动作骨架获取 未检查 +PASS 1440 NLF_视频人物动作骨架获取停用/时间戳空 +PASS 1440 NLF_视频人物动作骨架获取参数全保留 +PASS 1440 NLF_视频人物动作骨架获取默认无溢出 +PASS 1440 NLF_视频人物动作骨架获取旧图归还焦点 +PASS 1440 openpose-video-姿态检测默认中文用途 +PASS 1440 openpose-video-姿态检测源审校默认折叠 +PASS 1440 openpose-video-姿态检测技术范围默认折叠 +PASS 1440 openpose-video-姿态检测默认无执行计数/实现标识 +PASS 1440 openpose-video-姿态检测默认依据限制可见 +PASS 1440 openpose-video-姿态检测 说明未定稿 +PASS 1440 openpose-video-姿态检测 未验证实跑 +PASS 1440 openpose-video-姿态检测 未检查 +PASS 1440 openpose-video-姿态检测停用/时间戳空 +PASS 1440 openpose-video-姿态检测参数全保留 +PASS 1440 openpose-video-姿态检测默认无溢出 +PASS 1440 openpose-video-姿态检测旧图归还焦点 +PASS 1440 sdpose_视频人物姿势骨架提取默认中文用途 +PASS 1440 sdpose_视频人物姿势骨架提取源审校默认折叠 +PASS 1440 sdpose_视频人物姿势骨架提取技术范围默认折叠 +PASS 1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识 +PASS 1440 sdpose_视频人物姿势骨架提取默认依据限制可见 +PASS 1440 sdpose_视频人物姿势骨架提取 说明未定稿 +PASS 1440 sdpose_视频人物姿势骨架提取 未验证实跑 +PASS 1440 sdpose_视频人物姿势骨架提取 未检查 +PASS 1440 sdpose_视频人物姿势骨架提取停用/时间戳空 +PASS 1440 sdpose_视频人物姿势骨架提取参数全保留 +PASS 1440 sdpose_视频人物姿势骨架提取默认无溢出 +PASS 1440 sdpose_视频人物姿势骨架提取旧图归还焦点 +PASS 1440 gemma4_提示词反推(图像视频音频)默认中文用途 +PASS 1440 gemma4_提示词反推(图像视频音频)源审校默认折叠 +PASS 1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠 +PASS 1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识 +PASS 1440 gemma4_提示词反推(图像视频音频)默认依据限制可见 +PASS 1440 gemma4_提示词反推(图像视频音频) 说明未定稿 +PASS 1440 gemma4_提示词反推(图像视频音频) 未验证实跑 +PASS 1440 gemma4_提示词反推(图像视频音频) 未检查 +PASS 1440 gemma4_提示词反推(图像视频音频)停用/时间戳空 +PASS 1440 gemma4_提示词反推(图像视频音频)参数全保留 +PASS 1440 gemma4_提示词反推(图像视频音频)默认无溢出 +PASS 1440 gemma4_提示词反推(图像视频音频)旧图归还焦点 +PASS 1440 图像合并成四宫格默认中文用途 +PASS 1440 图像合并成四宫格源审校默认折叠 +PASS 1440 图像合并成四宫格技术范围默认折叠 +PASS 1440 图像合并成四宫格默认无执行计数/实现标识 +PASS 1440 图像合并成四宫格默认依据限制可见 +PASS 1440 图像合并成四宫格 说明未定稿 +PASS 1440 图像合并成四宫格 未验证实跑 +PASS 1440 图像合并成四宫格 未检查 +PASS 1440 图像合并成四宫格停用/时间戳空 +PASS 1440 图像合并成四宫格参数全保留 +PASS 1440 图像合并成四宫格默认无溢出 +PASS 1440 图像合并成四宫格旧图归还焦点 +PASS 1440 图像分割-多宫格分割默认中文用途 +PASS 1440 图像分割-多宫格分割源审校默认折叠 +PASS 1440 图像分割-多宫格分割技术范围默认折叠 +PASS 1440 图像分割-多宫格分割默认无执行计数/实现标识 +PASS 1440 图像分割-多宫格分割默认依据限制可见 +PASS 1440 图像分割-多宫格分割 说明未定稿 +PASS 1440 图像分割-多宫格分割 未验证实跑 +PASS 1440 图像分割-多宫格分割 未检查 +PASS 1440 图像分割-多宫格分割停用/时间戳空 +PASS 1440 图像分割-多宫格分割参数全保留 +PASS 1440 图像分割-多宫格分割默认无溢出 +PASS 1440 图像分割-多宫格分割旧图归还焦点 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认中文用途 +PASS 1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 未检查 +PASS 1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空 +PASS 1440 Qwen_image2.1_图像编辑_背景移除参数全保留 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无溢出 +PASS 1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未检查 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强参数全保留 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认中文用途 +PASS 1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠 +PASS 1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见 +PASS 1440 Qwen_image2.1_文生图_提示词增强 说明未定稿 +PASS 1440 Qwen_image2.1_文生图_提示词增强 未验证实跑 +PASS 1440 Qwen_image2.1_文生图_提示词增强 未检查 +PASS 1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空 +PASS 1440 Qwen_image2.1_文生图_提示词增强参数全保留 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认无溢出 +PASS 1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点 +PASS 1440 ControlNet_aux_常用样例默认中文用途 +PASS 1440 ControlNet_aux_常用样例源审校默认折叠 +PASS 1440 ControlNet_aux_常用样例技术范围默认折叠 +PASS 1440 ControlNet_aux_常用样例默认无执行计数/实现标识 +PASS 1440 ControlNet_aux_常用样例默认依据限制可见 +PASS 1440 ControlNet_aux_常用样例 说明未定稿 +PASS 1440 ControlNet_aux_常用样例 未验证实跑 +PASS 1440 ControlNet_aux_常用样例 未检查 +PASS 1440 ControlNet_aux_常用样例停用/时间戳空 +PASS 1440 ControlNet_aux_常用样例参数全保留 +PASS 1440 ControlNet_aux_常用样例默认无溢出 +PASS 1440 ControlNet_aux_常用样例旧图归还焦点 +PASS 1440 Qwen3-ASR-语音转文字默认中文用途 +PASS 1440 Qwen3-ASR-语音转文字源审校默认折叠 +PASS 1440 Qwen3-ASR-语音转文字技术范围默认折叠 +PASS 1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识 +PASS 1440 Qwen3-ASR-语音转文字默认依据限制可见 +PASS 1440 Qwen3-ASR-语音转文字 说明未定稿 +PASS 1440 Qwen3-ASR-语音转文字 未验证实跑 +PASS 1440 Qwen3-ASR-语音转文字 未检查 +PASS 1440 Qwen3-ASR-语音转文字停用/时间戳空 +PASS 1440 Qwen3-ASR-语音转文字参数全保留 +PASS 1440 Qwen3-ASR-语音转文字默认无溢出 +PASS 1440 Qwen3-ASR-语音转文字旧图归还焦点 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未检查 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕参数全保留 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点 +PASS 1440 Minimax-H3提示词增强默认中文用途 +PASS 1440 Minimax-H3提示词增强源审校默认折叠 +PASS 1440 Minimax-H3提示词增强技术范围默认折叠 +PASS 1440 Minimax-H3提示词增强默认无执行计数/实现标识 +PASS 1440 Minimax-H3提示词增强默认依据限制可见 +PASS 1440 Minimax-H3提示词增强 说明未定稿 +PASS 1440 Minimax-H3提示词增强 未验证实跑 +PASS 1440 Minimax-H3提示词增强 未检查 +PASS 1440 Minimax-H3提示词增强停用/时间戳空 +PASS 1440 Minimax-H3提示词增强参数全保留 +PASS 1440 Minimax-H3提示词增强默认无溢出 +PASS 1440 Minimax-H3提示词增强旧图归还焦点 +PASS 1440 音频转MP3格式默认中文用途 +PASS 1440 音频转MP3格式源审校默认折叠 +PASS 1440 音频转MP3格式技术范围默认折叠 +PASS 1440 音频转MP3格式默认无执行计数/实现标识 +PASS 1440 音频转MP3格式默认依据限制可见 +PASS 1440 音频转MP3格式 说明未定稿 +PASS 1440 音频转MP3格式 未验证实跑 +PASS 1440 音频转MP3格式 未检查 +PASS 1440 音频转MP3格式停用/时间戳空 +PASS 1440 音频转MP3格式参数全保留 +PASS 1440 音频转MP3格式默认无溢出 +PASS 1440 音频转MP3格式旧图归还焦点 +PASS 1440 音频人声分离默认中文用途 +PASS 1440 音频人声分离源审校默认折叠 +PASS 1440 音频人声分离技术范围默认折叠 +PASS 1440 音频人声分离默认无执行计数/实现标识 +PASS 1440 音频人声分离默认依据限制可见 +PASS 1440 音频人声分离 说明未定稿 +PASS 1440 音频人声分离 未验证实跑 +PASS 1440 音频人声分离 未检查 +PASS 1440 音频人声分离停用/时间戳空 +PASS 1440 音频人声分离参数全保留 +PASS 1440 音频人声分离默认无溢出 +PASS 1440 音频人声分离旧图归还焦点 +PASS 1440 视频-音频分离默认中文用途 +PASS 1440 视频-音频分离源审校默认折叠 +PASS 1440 视频-音频分离技术范围默认折叠 +PASS 1440 视频-音频分离默认无执行计数/实现标识 +PASS 1440 视频-音频分离默认依据限制可见 +PASS 1440 视频-音频分离 说明未定稿 +PASS 1440 视频-音频分离 未验证实跑 +PASS 1440 视频-音频分离 未检查 +PASS 1440 视频-音频分离停用/时间戳空 +PASS 1440 视频-音频分离参数全保留 +PASS 1440 视频-音频分离默认无溢出 +PASS 1440 视频-音频分离旧图归还焦点 +PASS 1440 图像嵌入文字描述默认中文用途 +PASS 1440 图像嵌入文字描述源审校默认折叠 +PASS 1440 图像嵌入文字描述技术范围默认折叠 +PASS 1440 图像嵌入文字描述默认无执行计数/实现标识 +PASS 1440 图像嵌入文字描述默认依据限制可见 +PASS 1440 图像嵌入文字描述 说明未定稿 +PASS 1440 图像嵌入文字描述 未验证实跑 +PASS 1440 图像嵌入文字描述 未检查 +PASS 1440 图像嵌入文字描述停用/时间戳空 +PASS 1440 图像嵌入文字描述参数全保留 +PASS 1440 图像嵌入文字描述默认无溢出 +PASS 1440 图像嵌入文字描述旧图归还焦点 +PASS 390 多视频合成分屏展示默认中文用途 +PASS 390 多视频合成分屏展示源审校默认折叠 +PASS 390 多视频合成分屏展示技术范围默认折叠 +PASS 390 多视频合成分屏展示默认无执行计数/实现标识 +PASS 390 多视频合成分屏展示默认依据限制可见 +PASS 390 多视频合成分屏展示 说明未定稿 +PASS 390 多视频合成分屏展示 未验证实跑 +PASS 390 多视频合成分屏展示 未检查 +PASS 390 多视频合成分屏展示停用/时间戳空 +PASS 390 多视频合成分屏展示参数全保留 +PASS 390 多视频合成分屏展示默认无溢出 +PASS 390 多视频合成分屏展示原用途/源路径展开保留 +PASS 390 多视频合成分屏展示展开流程 0 +PASS 390 多视频合成分屏展示展开流程 1 +PASS 390 多视频合成分屏展示展开流程 2 +PASS 390 多视频合成分屏展示展开流程 3 +PASS 390 多视频合成分屏展示展开流程 4 +PASS 390 多视频合成分屏展示展开流程 5 +PASS 390 多视频合成分屏展示展开流程 6 +PASS 390 多视频合成分屏展示展开流程 7 +PASS 390 多视频合成分屏展示展开流程 8 +PASS 390 多视频合成分屏展示展开流程 9 +PASS 390 多视频合成分屏展示展开流程 10 +PASS 390 多视频合成分屏展示展开流程 11 +PASS 390 多视频合成分屏展示展开流程 12 +PASS 390 多视频合成分屏展示展开流程 13 +PASS 390 多视频合成分屏展示展开流程 14 +PASS 390 多视频合成分屏展示展开流程 15 +PASS 390 多视频合成分屏展示展开流程 16 +PASS 390 多视频合成分屏展示展开流程 17 +PASS 390 多视频合成分屏展示展开流程 18 +PASS 390 多视频合成分屏展示展开流程 19 +PASS 390 多视频合成分屏展示展开流程 20 +PASS 390 多视频合成分屏展示展开流程 21 +PASS 390 多视频合成分屏展示展开流程 22 +PASS 390 多视频合成分屏展示展开流程 23 +PASS 390 多视频合成分屏展示展开流程 24 +PASS 390 多视频合成分屏展示展开流程 25 +PASS 390 多视频合成分屏展示展开流程 26 +PASS 390 多视频合成分屏展示展开流程 27 +PASS 390 多视频合成分屏展示展开流程 28 +PASS 390 多视频合成分屏展示展开流程 29 +PASS 390 多视频合成分屏展示展开流程 30 +PASS 390 多视频合成分屏展示展开流程 31 +PASS 390 多视频合成分屏展示展开流程 32 +PASS 390 多视频合成分屏展示展开流程 33 +PASS 390 多视频合成分屏展示展开流程 34 +PASS 390 多视频合成分屏展示展开流程 35 +PASS 390 多视频合成分屏展示展开流程 36 +PASS 390 多视频合成分屏展示展开流程 37 +PASS 390 多视频合成分屏展示原件摘要可展开 +PASS 390 多视频合成分屏展示版本 0 +PASS 390 多视频合成分屏展示版本 1 +PASS 390 多视频合成分屏展示版本 2 +PASS 390 多视频合成分屏展示版本 3 +PASS 390 多视频合成分屏展示版本 4 +PASS 390 2.inputcount键盘展开 +PASS 390 2.inputcount用途/单位/范围/来源条件 +PASS 390 2.inputcount精确保留现值 +PASS 390 2.inputcount指针默认折叠 +PASS 390 2.inputcount精确源码/类型/指针 +PASS 390 2.inputcount展开无溢出 +PASS 390 2.direction键盘展开 +PASS 390 2.direction用途/单位/范围/来源条件 +PASS 390 2.direction精确保留现值 +PASS 390 2.direction指针默认折叠 +PASS 390 2.direction精确源码/类型/指针 +PASS 390 2.direction展开无溢出 +PASS 390 2.match_image_size键盘展开 +PASS 390 2.match_image_size用途/单位/范围/来源条件 +PASS 390 2.match_image_size精确保留现值 +PASS 390 2.match_image_size指针默认折叠 +PASS 390 2.match_image_size精确源码/类型/指针 +PASS 390 2.match_image_size展开无溢出 +PASS 390 2.saved_position_3键盘展开 +PASS 390 2.saved_position_3用途/单位/范围/来源条件 +PASS 390 2.saved_position_3精确保留现值 +PASS 390 2.saved_position_3指针默认折叠 +PASS 390 2.saved_position_3精确源码/类型/指针 +PASS 390 2.saved_position_3展开无溢出 +PASS 390 1.inputcount键盘展开 +PASS 390 1.inputcount用途/单位/范围/来源条件 +PASS 390 1.inputcount精确保留现值 +PASS 390 1.inputcount指针默认折叠 +PASS 390 1.inputcount精确源码/类型/指针 +PASS 390 1.inputcount展开无溢出 +PASS 390 1.direction键盘展开 +PASS 390 1.direction用途/单位/范围/来源条件 +PASS 390 1.direction精确保留现值 +PASS 390 1.direction指针默认折叠 +PASS 390 1.direction精确源码/类型/指针 +PASS 390 1.direction展开无溢出 +PASS 390 1.match_image_size键盘展开 +PASS 390 1.match_image_size用途/单位/范围/来源条件 +PASS 390 1.match_image_size精确保留现值 +PASS 390 1.match_image_size指针默认折叠 +PASS 390 1.match_image_size精确源码/类型/指针 +PASS 390 1.match_image_size展开无溢出 +PASS 390 1.saved_position_3键盘展开 +PASS 390 1.saved_position_3用途/单位/范围/来源条件 +PASS 390 1.saved_position_3精确保留现值 +PASS 390 1.saved_position_3指针默认折叠 +PASS 390 1.saved_position_3精确源码/类型/指针 +PASS 390 1.saved_position_3展开无溢出 +PASS 390 3.frame_rate键盘展开 +PASS 390 3.frame_rate用途/单位/范围/来源条件 +PASS 390 3.frame_rate精确保留现值 +PASS 390 3.frame_rate指针默认折叠 +PASS 390 3.frame_rate精确源码/类型/指针 +PASS 390 3.frame_rate展开无溢出 +PASS 390 3.loop_count键盘展开 +PASS 390 3.loop_count用途/单位/范围/来源条件 +PASS 390 3.loop_count精确保留现值 +PASS 390 3.loop_count指针默认折叠 +PASS 390 3.loop_count精确源码/类型/指针 +PASS 390 3.loop_count展开无溢出 +PASS 390 3.filename_prefix键盘展开 +PASS 390 3.filename_prefix用途/单位/范围/来源条件 +PASS 390 3.filename_prefix精确保留现值 +PASS 390 3.filename_prefix指针默认折叠 +PASS 390 3.filename_prefix精确源码/类型/指针 +PASS 390 3.filename_prefix展开无溢出 +PASS 390 3.format键盘展开 +PASS 390 3.format用途/单位/范围/来源条件 +PASS 390 3.format精确保留现值 +PASS 390 3.format指针默认折叠 +PASS 390 3.format精确源码/类型/指针 +PASS 390 3.format展开无溢出 +PASS 390 3.pix_fmt键盘展开 +PASS 390 3.pix_fmt用途/单位/范围/来源条件 +PASS 390 3.pix_fmt精确保留现值 +PASS 390 3.pix_fmt指针默认折叠 +PASS 390 3.pix_fmt精确源码/类型/指针 +PASS 390 3.pix_fmt展开无溢出 +PASS 390 3.crf键盘展开 +PASS 390 3.crf用途/单位/范围/来源条件 +PASS 390 3.crf精确保留现值 +PASS 390 3.crf指针默认折叠 +PASS 390 3.crf精确源码/类型/指针 +PASS 390 3.crf展开无溢出 +PASS 390 3.save_metadata键盘展开 +PASS 390 3.save_metadata用途/单位/范围/来源条件 +PASS 390 3.save_metadata精确保留现值 +PASS 390 3.save_metadata指针默认折叠 +PASS 390 3.save_metadata精确源码/类型/指针 +PASS 390 3.save_metadata展开无溢出 +PASS 390 3.trim_to_audio键盘展开 +PASS 390 3.trim_to_audio用途/单位/范围/来源条件 +PASS 390 3.trim_to_audio精确保留现值 +PASS 390 3.trim_to_audio指针默认折叠 +PASS 390 3.trim_to_audio精确源码/类型/指针 +PASS 390 3.trim_to_audio展开无溢出 +PASS 390 3.pingpong键盘展开 +PASS 390 3.pingpong用途/单位/范围/来源条件 +PASS 390 3.pingpong精确保留现值 +PASS 390 3.pingpong指针默认折叠 +PASS 390 3.pingpong精确源码/类型/指针 +PASS 390 3.pingpong展开无溢出 +PASS 390 3.save_output键盘展开 +PASS 390 3.save_output用途/单位/范围/来源条件 +PASS 390 3.save_output精确保留现值 +PASS 390 3.save_output指针默认折叠 +PASS 390 3.save_output精确源码/类型/指针 +PASS 390 3.save_output展开无溢出 +PASS 390 3.videopreview键盘展开 +PASS 390 3.videopreview用途/单位/范围/来源条件 +PASS 390 3.videopreview精确保留现值 +PASS 390 3.videopreview指针默认折叠 +PASS 390 3.videopreview精确源码/类型/指针 +PASS 390 3.videopreview展开无溢出 +PASS 390 7.width键盘展开 +PASS 390 7.width用途/单位/范围/来源条件 +PASS 390 7.width精确保留现值 +PASS 390 7.width指针默认折叠 +PASS 390 7.width精确源码/类型/指针 +PASS 390 7.width展开无溢出 +PASS 390 7.height键盘展开 +PASS 390 7.height用途/单位/范围/来源条件 +PASS 390 7.height精确保留现值 +PASS 390 7.height指针默认折叠 +PASS 390 7.height精确源码/类型/指针 +PASS 390 7.height展开无溢出 +PASS 390 7.upscale_method键盘展开 +PASS 390 7.upscale_method用途/单位/范围/来源条件 +PASS 390 7.upscale_method精确保留现值 +PASS 390 7.upscale_method指针默认折叠 +PASS 390 7.upscale_method精确源码/类型/指针 +PASS 390 7.upscale_method展开无溢出 +PASS 390 7.keep_proportion键盘展开 +PASS 390 7.keep_proportion用途/单位/范围/来源条件 +PASS 390 7.keep_proportion精确保留现值 +PASS 390 7.keep_proportion指针默认折叠 +PASS 390 7.keep_proportion精确源码/类型/指针 +PASS 390 7.keep_proportion展开无溢出 +PASS 390 7.pad_color键盘展开 +PASS 390 7.pad_color用途/单位/范围/来源条件 +PASS 390 7.pad_color精确保留现值 +PASS 390 7.pad_color指针默认折叠 +PASS 390 7.pad_color精确源码/类型/指针 +PASS 390 7.pad_color展开无溢出 +PASS 390 7.crop_position键盘展开 +PASS 390 7.crop_position用途/单位/范围/来源条件 +PASS 390 7.crop_position精确保留现值 +PASS 390 7.crop_position指针默认折叠 +PASS 390 7.crop_position精确源码/类型/指针 +PASS 390 7.crop_position展开无溢出 +PASS 390 7.divisible_by键盘展开 +PASS 390 7.divisible_by用途/单位/范围/来源条件 +PASS 390 7.divisible_by精确保留现值 +PASS 390 7.divisible_by指针默认折叠 +PASS 390 7.divisible_by精确源码/类型/指针 +PASS 390 7.divisible_by展开无溢出 +PASS 390 7.device键盘展开 +PASS 390 7.device用途/单位/范围/来源条件 +PASS 390 7.device精确保留现值 +PASS 390 7.device指针默认折叠 +PASS 390 7.device精确源码/类型/指针 +PASS 390 7.device展开无溢出 +PASS 390 5.width键盘展开 +PASS 390 5.width用途/单位/范围/来源条件 +PASS 390 5.width精确保留现值 +PASS 390 5.width指针默认折叠 +PASS 390 5.width精确源码/类型/指针 +PASS 390 5.width展开无溢出 +PASS 390 5.height键盘展开 +PASS 390 5.height用途/单位/范围/来源条件 +PASS 390 5.height精确保留现值 +PASS 390 5.height指针默认折叠 +PASS 390 5.height精确源码/类型/指针 +PASS 390 5.height展开无溢出 +PASS 390 5.upscale_method键盘展开 +PASS 390 5.upscale_method用途/单位/范围/来源条件 +PASS 390 5.upscale_method精确保留现值 +PASS 390 5.upscale_method指针默认折叠 +PASS 390 5.upscale_method精确源码/类型/指针 +PASS 390 5.upscale_method展开无溢出 +PASS 390 5.keep_proportion键盘展开 +PASS 390 5.keep_proportion用途/单位/范围/来源条件 +PASS 390 5.keep_proportion精确保留现值 +PASS 390 5.keep_proportion指针默认折叠 +PASS 390 5.keep_proportion精确源码/类型/指针 +PASS 390 5.keep_proportion展开无溢出 +PASS 390 5.pad_color键盘展开 +PASS 390 5.pad_color用途/单位/范围/来源条件 +PASS 390 5.pad_color精确保留现值 +PASS 390 5.pad_color指针默认折叠 +PASS 390 5.pad_color精确源码/类型/指针 +PASS 390 5.pad_color展开无溢出 +PASS 390 5.crop_position键盘展开 +PASS 390 5.crop_position用途/单位/范围/来源条件 +PASS 390 5.crop_position精确保留现值 +PASS 390 5.crop_position指针默认折叠 +PASS 390 5.crop_position精确源码/类型/指针 +PASS 390 5.crop_position展开无溢出 +PASS 390 5.divisible_by键盘展开 +PASS 390 5.divisible_by用途/单位/范围/来源条件 +PASS 390 5.divisible_by精确保留现值 +PASS 390 5.divisible_by指针默认折叠 +PASS 390 5.divisible_by精确源码/类型/指针 +PASS 390 5.divisible_by展开无溢出 +PASS 390 5.device键盘展开 +PASS 390 5.device用途/单位/范围/来源条件 +PASS 390 5.device精确保留现值 +PASS 390 5.device指针默认折叠 +PASS 390 5.device精确源码/类型/指针 +PASS 390 5.device展开无溢出 +PASS 390 8.video键盘展开 +PASS 390 8.video用途/单位/范围/来源条件 +PASS 390 8.video精确保留现值 +PASS 390 8.video指针默认折叠 +PASS 390 8.video精确源码/类型/指针 +PASS 390 8.video展开无溢出 +PASS 390 8.force_rate键盘展开 +PASS 390 8.force_rate用途/单位/范围/来源条件 +PASS 390 8.force_rate精确保留现值 +PASS 390 8.force_rate指针默认折叠 +PASS 390 8.force_rate精确源码/类型/指针 +PASS 390 8.force_rate展开无溢出 +PASS 390 8.custom_width键盘展开 +PASS 390 8.custom_width用途/单位/范围/来源条件 +PASS 390 8.custom_width精确保留现值 +PASS 390 8.custom_width指针默认折叠 +PASS 390 8.custom_width精确源码/类型/指针 +PASS 390 8.custom_width展开无溢出 +PASS 390 8.custom_height键盘展开 +PASS 390 8.custom_height用途/单位/范围/来源条件 +PASS 390 8.custom_height精确保留现值 +PASS 390 8.custom_height指针默认折叠 +PASS 390 8.custom_height精确源码/类型/指针 +PASS 390 8.custom_height展开无溢出 +PASS 390 8.frame_load_cap键盘展开 +PASS 390 8.frame_load_cap用途/单位/范围/来源条件 +PASS 390 8.frame_load_cap精确保留现值 +PASS 390 8.frame_load_cap指针默认折叠 +PASS 390 8.frame_load_cap精确源码/类型/指针 +PASS 390 8.frame_load_cap展开无溢出 +PASS 390 8.skip_first_frames键盘展开 +PASS 390 8.skip_first_frames用途/单位/范围/来源条件 +PASS 390 8.skip_first_frames精确保留现值 +PASS 390 8.skip_first_frames指针默认折叠 +PASS 390 8.skip_first_frames精确源码/类型/指针 +PASS 390 8.skip_first_frames展开无溢出 +PASS 390 8.select_every_nth键盘展开 +PASS 390 8.select_every_nth用途/单位/范围/来源条件 +PASS 390 8.select_every_nth精确保留现值 +PASS 390 8.select_every_nth指针默认折叠 +PASS 390 8.select_every_nth精确源码/类型/指针 +PASS 390 8.select_every_nth展开无溢出 +PASS 390 8.format键盘展开 +PASS 390 8.format用途/单位/范围/来源条件 +PASS 390 8.format精确保留现值 +PASS 390 8.format指针默认折叠 +PASS 390 8.format精确源码/类型/指针 +PASS 390 8.format展开无溢出 +PASS 390 8.videopreview键盘展开 +PASS 390 8.videopreview用途/单位/范围/来源条件 +PASS 390 8.videopreview精确保留现值 +PASS 390 8.videopreview指针默认折叠 +PASS 390 8.videopreview精确源码/类型/指针 +PASS 390 8.videopreview展开无溢出 +PASS 390 6.video键盘展开 +PASS 390 6.video用途/单位/范围/来源条件 +PASS 390 6.video精确保留现值 +PASS 390 6.video指针默认折叠 +PASS 390 6.video精确源码/类型/指针 +PASS 390 6.video展开无溢出 +PASS 390 6.force_rate键盘展开 +PASS 390 6.force_rate用途/单位/范围/来源条件 +PASS 390 6.force_rate精确保留现值 +PASS 390 6.force_rate指针默认折叠 +PASS 390 6.force_rate精确源码/类型/指针 +PASS 390 6.force_rate展开无溢出 +PASS 390 6.custom_width键盘展开 +PASS 390 6.custom_width用途/单位/范围/来源条件 +PASS 390 6.custom_width精确保留现值 +PASS 390 6.custom_width指针默认折叠 +PASS 390 6.custom_width精确源码/类型/指针 +PASS 390 6.custom_width展开无溢出 +PASS 390 6.custom_height键盘展开 +PASS 390 6.custom_height用途/单位/范围/来源条件 +PASS 390 6.custom_height精确保留现值 +PASS 390 6.custom_height指针默认折叠 +PASS 390 6.custom_height精确源码/类型/指针 +PASS 390 6.custom_height展开无溢出 +PASS 390 6.frame_load_cap键盘展开 +PASS 390 6.frame_load_cap用途/单位/范围/来源条件 +PASS 390 6.frame_load_cap精确保留现值 +PASS 390 6.frame_load_cap指针默认折叠 +PASS 390 6.frame_load_cap精确源码/类型/指针 +PASS 390 6.frame_load_cap展开无溢出 +PASS 390 6.skip_first_frames键盘展开 +PASS 390 6.skip_first_frames用途/单位/范围/来源条件 +PASS 390 6.skip_first_frames精确保留现值 +PASS 390 6.skip_first_frames指针默认折叠 +PASS 390 6.skip_first_frames精确源码/类型/指针 +PASS 390 6.skip_first_frames展开无溢出 +PASS 390 6.select_every_nth键盘展开 +PASS 390 6.select_every_nth用途/单位/范围/来源条件 +PASS 390 6.select_every_nth精确保留现值 +PASS 390 6.select_every_nth指针默认折叠 +PASS 390 6.select_every_nth精确源码/类型/指针 +PASS 390 6.select_every_nth展开无溢出 +PASS 390 6.format键盘展开 +PASS 390 6.format用途/单位/范围/来源条件 +PASS 390 6.format精确保留现值 +PASS 390 6.format指针默认折叠 +PASS 390 6.format精确源码/类型/指针 +PASS 390 6.format展开无溢出 +PASS 390 6.videopreview键盘展开 +PASS 390 6.videopreview用途/单位/范围/来源条件 +PASS 390 6.videopreview精确保留现值 +PASS 390 6.videopreview指针默认折叠 +PASS 390 6.videopreview精确源码/类型/指针 +PASS 390 6.videopreview展开无溢出 +PASS 390 4.video键盘展开 +PASS 390 4.video用途/单位/范围/来源条件 +PASS 390 4.video精确保留现值 +PASS 390 4.video指针默认折叠 +PASS 390 4.video精确源码/类型/指针 +PASS 390 4.video展开无溢出 +PASS 390 4.force_rate键盘展开 +PASS 390 4.force_rate用途/单位/范围/来源条件 +PASS 390 4.force_rate精确保留现值 +PASS 390 4.force_rate指针默认折叠 +PASS 390 4.force_rate精确源码/类型/指针 +PASS 390 4.force_rate展开无溢出 +PASS 390 4.custom_width键盘展开 +PASS 390 4.custom_width用途/单位/范围/来源条件 +PASS 390 4.custom_width精确保留现值 +PASS 390 4.custom_width指针默认折叠 +PASS 390 4.custom_width精确源码/类型/指针 +PASS 390 4.custom_width展开无溢出 +PASS 390 4.custom_height键盘展开 +PASS 390 4.custom_height用途/单位/范围/来源条件 +PASS 390 4.custom_height精确保留现值 +PASS 390 4.custom_height指针默认折叠 +PASS 390 4.custom_height精确源码/类型/指针 +PASS 390 4.custom_height展开无溢出 +PASS 390 4.frame_load_cap键盘展开 +PASS 390 4.frame_load_cap用途/单位/范围/来源条件 +PASS 390 4.frame_load_cap精确保留现值 +PASS 390 4.frame_load_cap指针默认折叠 +PASS 390 4.frame_load_cap精确源码/类型/指针 +PASS 390 4.frame_load_cap展开无溢出 +PASS 390 4.skip_first_frames键盘展开 +PASS 390 4.skip_first_frames用途/单位/范围/来源条件 +PASS 390 4.skip_first_frames精确保留现值 +PASS 390 4.skip_first_frames指针默认折叠 +PASS 390 4.skip_first_frames精确源码/类型/指针 +PASS 390 4.skip_first_frames展开无溢出 +PASS 390 4.select_every_nth键盘展开 +PASS 390 4.select_every_nth用途/单位/范围/来源条件 +PASS 390 4.select_every_nth精确保留现值 +PASS 390 4.select_every_nth指针默认折叠 +PASS 390 4.select_every_nth精确源码/类型/指针 +PASS 390 4.select_every_nth展开无溢出 +PASS 390 4.format键盘展开 +PASS 390 4.format用途/单位/范围/来源条件 +PASS 390 4.format精确保留现值 +PASS 390 4.format指针默认折叠 +PASS 390 4.format精确源码/类型/指针 +PASS 390 4.format展开无溢出 +PASS 390 4.videopreview键盘展开 +PASS 390 4.videopreview用途/单位/范围/来源条件 +PASS 390 4.videopreview精确保留现值 +PASS 390 4.videopreview指针默认折叠 +PASS 390 4.videopreview精确源码/类型/指针 +PASS 390 4.videopreview展开无溢出 +PASS 390 10.inputcount键盘展开 +PASS 390 10.inputcount用途/单位/范围/来源条件 +PASS 390 10.inputcount精确保留现值 +PASS 390 10.inputcount指针默认折叠 +PASS 390 10.inputcount精确源码/类型/指针 +PASS 390 10.inputcount展开无溢出 +PASS 390 10.direction键盘展开 +PASS 390 10.direction用途/单位/范围/来源条件 +PASS 390 10.direction精确保留现值 +PASS 390 10.direction指针默认折叠 +PASS 390 10.direction精确源码/类型/指针 +PASS 390 10.direction展开无溢出 +PASS 390 10.match_image_size键盘展开 +PASS 390 10.match_image_size用途/单位/范围/来源条件 +PASS 390 10.match_image_size精确保留现值 +PASS 390 10.match_image_size指针默认折叠 +PASS 390 10.match_image_size精确源码/类型/指针 +PASS 390 10.match_image_size展开无溢出 +PASS 390 10.saved_position_3键盘展开 +PASS 390 10.saved_position_3用途/单位/范围/来源条件 +PASS 390 10.saved_position_3精确保留现值 +PASS 390 10.saved_position_3指针默认折叠 +PASS 390 10.saved_position_3精确源码/类型/指针 +PASS 390 10.saved_position_3展开无溢出 +PASS 390 11.inputcount键盘展开 +PASS 390 11.inputcount用途/单位/范围/来源条件 +PASS 390 11.inputcount精确保留现值 +PASS 390 11.inputcount指针默认折叠 +PASS 390 11.inputcount精确源码/类型/指针 +PASS 390 11.inputcount展开无溢出 +PASS 390 11.direction键盘展开 +PASS 390 11.direction用途/单位/范围/来源条件 +PASS 390 11.direction精确保留现值 +PASS 390 11.direction指针默认折叠 +PASS 390 11.direction精确源码/类型/指针 +PASS 390 11.direction展开无溢出 +PASS 390 11.match_image_size键盘展开 +PASS 390 11.match_image_size用途/单位/范围/来源条件 +PASS 390 11.match_image_size精确保留现值 +PASS 390 11.match_image_size指针默认折叠 +PASS 390 11.match_image_size精确源码/类型/指针 +PASS 390 11.match_image_size展开无溢出 +PASS 390 11.saved_position_3键盘展开 +PASS 390 11.saved_position_3用途/单位/范围/来源条件 +PASS 390 11.saved_position_3精确保留现值 +PASS 390 11.saved_position_3指针默认折叠 +PASS 390 11.saved_position_3精确源码/类型/指针 +PASS 390 11.saved_position_3展开无溢出 +PASS 390 12.frame_rate键盘展开 +PASS 390 12.frame_rate用途/单位/范围/来源条件 +PASS 390 12.frame_rate精确保留现值 +PASS 390 12.frame_rate指针默认折叠 +PASS 390 12.frame_rate精确源码/类型/指针 +PASS 390 12.frame_rate展开无溢出 +PASS 390 12.loop_count键盘展开 +PASS 390 12.loop_count用途/单位/范围/来源条件 +PASS 390 12.loop_count精确保留现值 +PASS 390 12.loop_count指针默认折叠 +PASS 390 12.loop_count精确源码/类型/指针 +PASS 390 12.loop_count展开无溢出 +PASS 390 12.filename_prefix键盘展开 +PASS 390 12.filename_prefix用途/单位/范围/来源条件 +PASS 390 12.filename_prefix精确保留现值 +PASS 390 12.filename_prefix指针默认折叠 +PASS 390 12.filename_prefix精确源码/类型/指针 +PASS 390 12.filename_prefix展开无溢出 +PASS 390 12.format键盘展开 +PASS 390 12.format用途/单位/范围/来源条件 +PASS 390 12.format精确保留现值 +PASS 390 12.format指针默认折叠 +PASS 390 12.format精确源码/类型/指针 +PASS 390 12.format展开无溢出 +PASS 390 12.pix_fmt键盘展开 +PASS 390 12.pix_fmt用途/单位/范围/来源条件 +PASS 390 12.pix_fmt精确保留现值 +PASS 390 12.pix_fmt指针默认折叠 +PASS 390 12.pix_fmt精确源码/类型/指针 +PASS 390 12.pix_fmt展开无溢出 +PASS 390 12.crf键盘展开 +PASS 390 12.crf用途/单位/范围/来源条件 +PASS 390 12.crf精确保留现值 +PASS 390 12.crf指针默认折叠 +PASS 390 12.crf精确源码/类型/指针 +PASS 390 12.crf展开无溢出 +PASS 390 12.save_metadata键盘展开 +PASS 390 12.save_metadata用途/单位/范围/来源条件 +PASS 390 12.save_metadata精确保留现值 +PASS 390 12.save_metadata指针默认折叠 +PASS 390 12.save_metadata精确源码/类型/指针 +PASS 390 12.save_metadata展开无溢出 +PASS 390 12.trim_to_audio键盘展开 +PASS 390 12.trim_to_audio用途/单位/范围/来源条件 +PASS 390 12.trim_to_audio精确保留现值 +PASS 390 12.trim_to_audio指针默认折叠 +PASS 390 12.trim_to_audio精确源码/类型/指针 +PASS 390 12.trim_to_audio展开无溢出 +PASS 390 12.pingpong键盘展开 +PASS 390 12.pingpong用途/单位/范围/来源条件 +PASS 390 12.pingpong精确保留现值 +PASS 390 12.pingpong指针默认折叠 +PASS 390 12.pingpong精确源码/类型/指针 +PASS 390 12.pingpong展开无溢出 +PASS 390 12.save_output键盘展开 +PASS 390 12.save_output用途/单位/范围/来源条件 +PASS 390 12.save_output精确保留现值 +PASS 390 12.save_output指针默认折叠 +PASS 390 12.save_output精确源码/类型/指针 +PASS 390 12.save_output展开无溢出 +PASS 390 12.videopreview键盘展开 +PASS 390 12.videopreview用途/单位/范围/来源条件 +PASS 390 12.videopreview精确保留现值 +PASS 390 12.videopreview指针默认折叠 +PASS 390 12.videopreview精确源码/类型/指针 +PASS 390 12.videopreview展开无溢出 +PASS 390 17.video键盘展开 +PASS 390 17.video用途/单位/范围/来源条件 +PASS 390 17.video精确保留现值 +PASS 390 17.video指针默认折叠 +PASS 390 17.video精确源码/类型/指针 +PASS 390 17.video展开无溢出 +PASS 390 17.force_rate键盘展开 +PASS 390 17.force_rate用途/单位/范围/来源条件 +PASS 390 17.force_rate精确保留现值 +PASS 390 17.force_rate指针默认折叠 +PASS 390 17.force_rate精确源码/类型/指针 +PASS 390 17.force_rate展开无溢出 +PASS 390 17.custom_width键盘展开 +PASS 390 17.custom_width用途/单位/范围/来源条件 +PASS 390 17.custom_width精确保留现值 +PASS 390 17.custom_width指针默认折叠 +PASS 390 17.custom_width精确源码/类型/指针 +PASS 390 17.custom_width展开无溢出 +PASS 390 17.custom_height键盘展开 +PASS 390 17.custom_height用途/单位/范围/来源条件 +PASS 390 17.custom_height精确保留现值 +PASS 390 17.custom_height指针默认折叠 +PASS 390 17.custom_height精确源码/类型/指针 +PASS 390 17.custom_height展开无溢出 +PASS 390 17.frame_load_cap键盘展开 +PASS 390 17.frame_load_cap用途/单位/范围/来源条件 +PASS 390 17.frame_load_cap精确保留现值 +PASS 390 17.frame_load_cap指针默认折叠 +PASS 390 17.frame_load_cap精确源码/类型/指针 +PASS 390 17.frame_load_cap展开无溢出 +PASS 390 17.skip_first_frames键盘展开 +PASS 390 17.skip_first_frames用途/单位/范围/来源条件 +PASS 390 17.skip_first_frames精确保留现值 +PASS 390 17.skip_first_frames指针默认折叠 +PASS 390 17.skip_first_frames精确源码/类型/指针 +PASS 390 17.skip_first_frames展开无溢出 +PASS 390 17.select_every_nth键盘展开 +PASS 390 17.select_every_nth用途/单位/范围/来源条件 +PASS 390 17.select_every_nth精确保留现值 +PASS 390 17.select_every_nth指针默认折叠 +PASS 390 17.select_every_nth精确源码/类型/指针 +PASS 390 17.select_every_nth展开无溢出 +PASS 390 17.format键盘展开 +PASS 390 17.format用途/单位/范围/来源条件 +PASS 390 17.format精确保留现值 +PASS 390 17.format指针默认折叠 +PASS 390 17.format精确源码/类型/指针 +PASS 390 17.format展开无溢出 +PASS 390 17.videopreview键盘展开 +PASS 390 17.videopreview用途/单位/范围/来源条件 +PASS 390 17.videopreview精确保留现值 +PASS 390 17.videopreview指针默认折叠 +PASS 390 17.videopreview精确源码/类型/指针 +PASS 390 17.videopreview展开无溢出 +PASS 390 16.video键盘展开 +PASS 390 16.video用途/单位/范围/来源条件 +PASS 390 16.video精确保留现值 +PASS 390 16.video指针默认折叠 +PASS 390 16.video精确源码/类型/指针 +PASS 390 16.video展开无溢出 +PASS 390 16.force_rate键盘展开 +PASS 390 16.force_rate用途/单位/范围/来源条件 +PASS 390 16.force_rate精确保留现值 +PASS 390 16.force_rate指针默认折叠 +PASS 390 16.force_rate精确源码/类型/指针 +PASS 390 16.force_rate展开无溢出 +PASS 390 16.custom_width键盘展开 +PASS 390 16.custom_width用途/单位/范围/来源条件 +PASS 390 16.custom_width精确保留现值 +PASS 390 16.custom_width指针默认折叠 +PASS 390 16.custom_width精确源码/类型/指针 +PASS 390 16.custom_width展开无溢出 +PASS 390 16.custom_height键盘展开 +PASS 390 16.custom_height用途/单位/范围/来源条件 +PASS 390 16.custom_height精确保留现值 +PASS 390 16.custom_height指针默认折叠 +PASS 390 16.custom_height精确源码/类型/指针 +PASS 390 16.custom_height展开无溢出 +PASS 390 16.frame_load_cap键盘展开 +PASS 390 16.frame_load_cap用途/单位/范围/来源条件 +PASS 390 16.frame_load_cap精确保留现值 +PASS 390 16.frame_load_cap指针默认折叠 +PASS 390 16.frame_load_cap精确源码/类型/指针 +PASS 390 16.frame_load_cap展开无溢出 +PASS 390 16.skip_first_frames键盘展开 +PASS 390 16.skip_first_frames用途/单位/范围/来源条件 +PASS 390 16.skip_first_frames精确保留现值 +PASS 390 16.skip_first_frames指针默认折叠 +PASS 390 16.skip_first_frames精确源码/类型/指针 +PASS 390 16.skip_first_frames展开无溢出 +PASS 390 16.select_every_nth键盘展开 +PASS 390 16.select_every_nth用途/单位/范围/来源条件 +PASS 390 16.select_every_nth精确保留现值 +PASS 390 16.select_every_nth指针默认折叠 +PASS 390 16.select_every_nth精确源码/类型/指针 +PASS 390 16.select_every_nth展开无溢出 +PASS 390 16.format键盘展开 +PASS 390 16.format用途/单位/范围/来源条件 +PASS 390 16.format精确保留现值 +PASS 390 16.format指针默认折叠 +PASS 390 16.format精确源码/类型/指针 +PASS 390 16.format展开无溢出 +PASS 390 16.videopreview键盘展开 +PASS 390 16.videopreview用途/单位/范围/来源条件 +PASS 390 16.videopreview精确保留现值 +PASS 390 16.videopreview指针默认折叠 +PASS 390 16.videopreview精确源码/类型/指针 +PASS 390 16.videopreview展开无溢出 +PASS 390Tab焦点保留 +PASS 390ShiftTab焦点保留 +PASS 390 多视频合成分屏展示关闭归还焦点 +PASS 390 图像4种添加水印节点默认中文用途 +PASS 390 图像4种添加水印节点源审校默认折叠 +PASS 390 图像4种添加水印节点技术范围默认折叠 +PASS 390 图像4种添加水印节点默认无执行计数/实现标识 +PASS 390 图像4种添加水印节点默认依据限制可见 +PASS 390 图像4种添加水印节点 说明未定稿 +PASS 390 图像4种添加水印节点 未验证实跑 +PASS 390 图像4种添加水印节点 未检查 +PASS 390 图像4种添加水印节点停用/时间戳空 +PASS 390 图像4种添加水印节点参数全保留 +PASS 390 图像4种添加水印节点默认无溢出 +PASS 390 图像4种添加水印节点旧图归还焦点 +PASS 390 birefnet_图像移除背景默认中文用途 +PASS 390 birefnet_图像移除背景源审校默认折叠 +PASS 390 birefnet_图像移除背景技术范围默认折叠 +PASS 390 birefnet_图像移除背景默认无执行计数/实现标识 +PASS 390 birefnet_图像移除背景默认依据限制可见 +PASS 390 birefnet_图像移除背景 说明未定稿 +PASS 390 birefnet_图像移除背景 未验证实跑 +PASS 390 birefnet_图像移除背景 未检查 +PASS 390 birefnet_图像移除背景停用/时间戳空 +PASS 390 birefnet_图像移除背景参数全保留 +PASS 390 birefnet_图像移除背景默认无溢出 +PASS 390 birefnet_图像移除背景旧图归还焦点 +PASS 390 加载本地latent解码默认中文用途 +PASS 390 加载本地latent解码源审校默认折叠 +PASS 390 加载本地latent解码技术范围默认折叠 +PASS 390 加载本地latent解码默认无执行计数/实现标识 +PASS 390 加载本地latent解码默认依据限制可见 +PASS 390 加载本地latent解码 说明未定稿 +PASS 390 加载本地latent解码 未验证实跑 +PASS 390 加载本地latent解码 未检查 +PASS 390 加载本地latent解码停用/时间戳空 +PASS 390 加载本地latent解码参数全保留 +PASS 390 加载本地latent解码默认无溢出 +PASS 390 加载本地latent解码旧图归还焦点 +PASS 390 截取视频每一帧默认中文用途 +PASS 390 截取视频每一帧源审校默认折叠 +PASS 390 截取视频每一帧技术范围默认折叠 +PASS 390 截取视频每一帧默认无执行计数/实现标识 +PASS 390 截取视频每一帧默认依据限制可见 +PASS 390 截取视频每一帧 说明未定稿 +PASS 390 截取视频每一帧 未验证实跑 +PASS 390 截取视频每一帧 未检查 +PASS 390 截取视频每一帧停用/时间戳空 +PASS 390 截取视频每一帧参数全保留 +PASS 390 截取视频每一帧默认无溢出 +PASS 390 截取视频每一帧旧图归还焦点 +PASS 390 双图像或视频合并显示默认中文用途 +PASS 390 双图像或视频合并显示源审校默认折叠 +PASS 390 双图像或视频合并显示技术范围默认折叠 +PASS 390 双图像或视频合并显示默认无执行计数/实现标识 +PASS 390 双图像或视频合并显示默认依据限制可见 +PASS 390 双图像或视频合并显示 说明未定稿 +PASS 390 双图像或视频合并显示 未验证实跑 +PASS 390 双图像或视频合并显示 未检查 +PASS 390 双图像或视频合并显示停用/时间戳空 +PASS 390 双图像或视频合并显示参数全保留 +PASS 390 双图像或视频合并显示默认无溢出 +PASS 390 双图像或视频合并显示旧图归还焦点 +PASS 390 视频转gif动图图片默认中文用途 +PASS 390 视频转gif动图图片源审校默认折叠 +PASS 390 视频转gif动图图片技术范围默认折叠 +PASS 390 视频转gif动图图片默认无执行计数/实现标识 +PASS 390 视频转gif动图图片默认依据限制可见 +PASS 390 视频转gif动图图片 说明未定稿 +PASS 390 视频转gif动图图片 未验证实跑 +PASS 390 视频转gif动图图片 未检查 +PASS 390 视频转gif动图图片停用/时间戳空 +PASS 390 视频转gif动图图片参数全保留 +PASS 390 视频转gif动图图片默认无溢出 +PASS 390 视频转gif动图图片旧图归还焦点 +PASS 390 加载图片合成视频默认中文用途 +PASS 390 加载图片合成视频源审校默认折叠 +PASS 390 加载图片合成视频技术范围默认折叠 +PASS 390 加载图片合成视频默认无执行计数/实现标识 +PASS 390 加载图片合成视频默认依据限制可见 +PASS 390 加载图片合成视频 说明未定稿 +PASS 390 加载图片合成视频 未验证实跑 +PASS 390 加载图片合成视频 未检查 +PASS 390 加载图片合成视频停用/时间戳空 +PASS 390 加载图片合成视频参数全保留 +PASS 390 加载图片合成视频默认无溢出 +PASS 390 加载图片合成视频旧图归还焦点 +PASS 390 视频倒放默认中文用途 +PASS 390 视频倒放源审校默认折叠 +PASS 390 视频倒放技术范围默认折叠 +PASS 390 视频倒放默认无执行计数/实现标识 +PASS 390 视频倒放默认依据限制可见 +PASS 390 视频倒放 说明未定稿 +PASS 390 视频倒放 未验证实跑 +PASS 390 视频倒放 未检查 +PASS 390 视频倒放停用/时间戳空 +PASS 390 视频倒放参数全保留 +PASS 390 视频倒放默认无溢出 +PASS 390 视频倒放旧图归还焦点 +PASS 390 NLF_视频人物动作骨架获取默认中文用途 +PASS 390 NLF_视频人物动作骨架获取源审校默认折叠 +PASS 390 NLF_视频人物动作骨架获取技术范围默认折叠 +PASS 390 NLF_视频人物动作骨架获取默认无执行计数/实现标识 +PASS 390 NLF_视频人物动作骨架获取默认依据限制可见 +PASS 390 NLF_视频人物动作骨架获取 说明未定稿 +PASS 390 NLF_视频人物动作骨架获取 未验证实跑 +PASS 390 NLF_视频人物动作骨架获取 未检查 +PASS 390 NLF_视频人物动作骨架获取停用/时间戳空 +PASS 390 NLF_视频人物动作骨架获取参数全保留 +PASS 390 NLF_视频人物动作骨架获取默认无溢出 +PASS 390 NLF_视频人物动作骨架获取旧图归还焦点 +PASS 390 openpose-video-姿态检测默认中文用途 +PASS 390 openpose-video-姿态检测源审校默认折叠 +PASS 390 openpose-video-姿态检测技术范围默认折叠 +PASS 390 openpose-video-姿态检测默认无执行计数/实现标识 +PASS 390 openpose-video-姿态检测默认依据限制可见 +PASS 390 openpose-video-姿态检测 说明未定稿 +PASS 390 openpose-video-姿态检测 未验证实跑 +PASS 390 openpose-video-姿态检测 未检查 +PASS 390 openpose-video-姿态检测停用/时间戳空 +PASS 390 openpose-video-姿态检测参数全保留 +PASS 390 openpose-video-姿态检测默认无溢出 +PASS 390 openpose-video-姿态检测旧图归还焦点 +PASS 390 sdpose_视频人物姿势骨架提取默认中文用途 +PASS 390 sdpose_视频人物姿势骨架提取源审校默认折叠 +PASS 390 sdpose_视频人物姿势骨架提取技术范围默认折叠 +PASS 390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识 +PASS 390 sdpose_视频人物姿势骨架提取默认依据限制可见 +PASS 390 sdpose_视频人物姿势骨架提取 说明未定稿 +PASS 390 sdpose_视频人物姿势骨架提取 未验证实跑 +PASS 390 sdpose_视频人物姿势骨架提取 未检查 +PASS 390 sdpose_视频人物姿势骨架提取停用/时间戳空 +PASS 390 sdpose_视频人物姿势骨架提取参数全保留 +PASS 390 sdpose_视频人物姿势骨架提取默认无溢出 +PASS 390 sdpose_视频人物姿势骨架提取旧图归还焦点 +PASS 390 gemma4_提示词反推(图像视频音频)默认中文用途 +PASS 390 gemma4_提示词反推(图像视频音频)源审校默认折叠 +PASS 390 gemma4_提示词反推(图像视频音频)技术范围默认折叠 +PASS 390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识 +PASS 390 gemma4_提示词反推(图像视频音频)默认依据限制可见 +PASS 390 gemma4_提示词反推(图像视频音频) 说明未定稿 +PASS 390 gemma4_提示词反推(图像视频音频) 未验证实跑 +PASS 390 gemma4_提示词反推(图像视频音频) 未检查 +PASS 390 gemma4_提示词反推(图像视频音频)停用/时间戳空 +PASS 390 gemma4_提示词反推(图像视频音频)参数全保留 +PASS 390 gemma4_提示词反推(图像视频音频)默认无溢出 +PASS 390 gemma4_提示词反推(图像视频音频)旧图归还焦点 +PASS 390 图像合并成四宫格默认中文用途 +PASS 390 图像合并成四宫格源审校默认折叠 +PASS 390 图像合并成四宫格技术范围默认折叠 +PASS 390 图像合并成四宫格默认无执行计数/实现标识 +PASS 390 图像合并成四宫格默认依据限制可见 +PASS 390 图像合并成四宫格 说明未定稿 +PASS 390 图像合并成四宫格 未验证实跑 +PASS 390 图像合并成四宫格 未检查 +PASS 390 图像合并成四宫格停用/时间戳空 +PASS 390 图像合并成四宫格参数全保留 +PASS 390 图像合并成四宫格默认无溢出 +PASS 390 图像合并成四宫格旧图归还焦点 +PASS 390 图像分割-多宫格分割默认中文用途 +PASS 390 图像分割-多宫格分割源审校默认折叠 +PASS 390 图像分割-多宫格分割技术范围默认折叠 +PASS 390 图像分割-多宫格分割默认无执行计数/实现标识 +PASS 390 图像分割-多宫格分割默认依据限制可见 +PASS 390 图像分割-多宫格分割 说明未定稿 +PASS 390 图像分割-多宫格分割 未验证实跑 +PASS 390 图像分割-多宫格分割 未检查 +PASS 390 图像分割-多宫格分割停用/时间戳空 +PASS 390 图像分割-多宫格分割参数全保留 +PASS 390 图像分割-多宫格分割默认无溢出 +PASS 390 图像分割-多宫格分割旧图归还焦点 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认中文用途 +PASS 390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠 +PASS 390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见 +PASS 390 Qwen_image2.1_图像编辑_背景移除 说明未定稿 +PASS 390 Qwen_image2.1_图像编辑_背景移除 未验证实跑 +PASS 390 Qwen_image2.1_图像编辑_背景移除 未检查 +PASS 390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空 +PASS 390 Qwen_image2.1_图像编辑_背景移除参数全保留 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认无溢出 +PASS 390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认中文用途 +PASS 390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠 +PASS 390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 未检查 +PASS 390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空 +PASS 390 Qwen_image2.1_图像编辑_提示词增强参数全保留 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无溢出 +PASS 390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点 +PASS 390 Qwen_image2.1_文生图_提示词增强默认中文用途 +PASS 390 Qwen_image2.1_文生图_提示词增强源审校默认折叠 +PASS 390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠 +PASS 390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_文生图_提示词增强默认依据限制可见 +PASS 390 Qwen_image2.1_文生图_提示词增强 说明未定稿 +PASS 390 Qwen_image2.1_文生图_提示词增强 未验证实跑 +PASS 390 Qwen_image2.1_文生图_提示词增强 未检查 +PASS 390 Qwen_image2.1_文生图_提示词增强停用/时间戳空 +PASS 390 Qwen_image2.1_文生图_提示词增强参数全保留 +PASS 390 Qwen_image2.1_文生图_提示词增强默认无溢出 +PASS 390 Qwen_image2.1_文生图_提示词增强旧图归还焦点 +PASS 390 ControlNet_aux_常用样例默认中文用途 +PASS 390 ControlNet_aux_常用样例源审校默认折叠 +PASS 390 ControlNet_aux_常用样例技术范围默认折叠 +PASS 390 ControlNet_aux_常用样例默认无执行计数/实现标识 +PASS 390 ControlNet_aux_常用样例默认依据限制可见 +PASS 390 ControlNet_aux_常用样例 说明未定稿 +PASS 390 ControlNet_aux_常用样例 未验证实跑 +PASS 390 ControlNet_aux_常用样例 未检查 +PASS 390 ControlNet_aux_常用样例停用/时间戳空 +PASS 390 ControlNet_aux_常用样例参数全保留 +PASS 390 ControlNet_aux_常用样例默认无溢出 +PASS 390 ControlNet_aux_常用样例旧图归还焦点 +PASS 390 Qwen3-ASR-语音转文字默认中文用途 +PASS 390 Qwen3-ASR-语音转文字源审校默认折叠 +PASS 390 Qwen3-ASR-语音转文字技术范围默认折叠 +PASS 390 Qwen3-ASR-语音转文字默认无执行计数/实现标识 +PASS 390 Qwen3-ASR-语音转文字默认依据限制可见 +PASS 390 Qwen3-ASR-语音转文字 说明未定稿 +PASS 390 Qwen3-ASR-语音转文字 未验证实跑 +PASS 390 Qwen3-ASR-语音转文字 未检查 +PASS 390 Qwen3-ASR-语音转文字停用/时间戳空 +PASS 390 Qwen3-ASR-语音转文字参数全保留 +PASS 390 Qwen3-ASR-语音转文字默认无溢出 +PASS 390 Qwen3-ASR-语音转文字旧图归还焦点 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认中文用途 +PASS 390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠 +PASS 390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 未检查 +PASS 390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空 +PASS 390 Qwen3-ASR-Subtitle语音转字幕参数全保留 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无溢出 +PASS 390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点 +PASS 390 Minimax-H3提示词增强默认中文用途 +PASS 390 Minimax-H3提示词增强源审校默认折叠 +PASS 390 Minimax-H3提示词增强技术范围默认折叠 +PASS 390 Minimax-H3提示词增强默认无执行计数/实现标识 +PASS 390 Minimax-H3提示词增强默认依据限制可见 +PASS 390 Minimax-H3提示词增强 说明未定稿 +PASS 390 Minimax-H3提示词增强 未验证实跑 +PASS 390 Minimax-H3提示词增强 未检查 +PASS 390 Minimax-H3提示词增强停用/时间戳空 +PASS 390 Minimax-H3提示词增强参数全保留 +PASS 390 Minimax-H3提示词增强默认无溢出 +PASS 390 Minimax-H3提示词增强旧图归还焦点 +PASS 390 音频转MP3格式默认中文用途 +PASS 390 音频转MP3格式源审校默认折叠 +PASS 390 音频转MP3格式技术范围默认折叠 +PASS 390 音频转MP3格式默认无执行计数/实现标识 +PASS 390 音频转MP3格式默认依据限制可见 +PASS 390 音频转MP3格式 说明未定稿 +PASS 390 音频转MP3格式 未验证实跑 +PASS 390 音频转MP3格式 未检查 +PASS 390 音频转MP3格式停用/时间戳空 +PASS 390 音频转MP3格式参数全保留 +PASS 390 音频转MP3格式默认无溢出 +PASS 390 音频转MP3格式旧图归还焦点 +PASS 390 音频人声分离默认中文用途 +PASS 390 音频人声分离源审校默认折叠 +PASS 390 音频人声分离技术范围默认折叠 +PASS 390 音频人声分离默认无执行计数/实现标识 +PASS 390 音频人声分离默认依据限制可见 +PASS 390 音频人声分离 说明未定稿 +PASS 390 音频人声分离 未验证实跑 +PASS 390 音频人声分离 未检查 +PASS 390 音频人声分离停用/时间戳空 +PASS 390 音频人声分离参数全保留 +PASS 390 音频人声分离默认无溢出 +PASS 390 音频人声分离旧图归还焦点 +PASS 390 视频-音频分离默认中文用途 +PASS 390 视频-音频分离源审校默认折叠 +PASS 390 视频-音频分离技术范围默认折叠 +PASS 390 视频-音频分离默认无执行计数/实现标识 +PASS 390 视频-音频分离默认依据限制可见 +PASS 390 视频-音频分离 说明未定稿 +PASS 390 视频-音频分离 未验证实跑 +PASS 390 视频-音频分离 未检查 +PASS 390 视频-音频分离停用/时间戳空 +PASS 390 视频-音频分离参数全保留 +PASS 390 视频-音频分离默认无溢出 +PASS 390 视频-音频分离旧图归还焦点 +PASS 390 图像嵌入文字描述默认中文用途 +PASS 390 图像嵌入文字描述源审校默认折叠 +PASS 390 图像嵌入文字描述技术范围默认折叠 +PASS 390 图像嵌入文字描述默认无执行计数/实现标识 +PASS 390 图像嵌入文字描述默认依据限制可见 +PASS 390 图像嵌入文字描述 说明未定稿 +PASS 390 图像嵌入文字描述 未验证实跑 +PASS 390 图像嵌入文字描述 未检查 +PASS 390 图像嵌入文字描述停用/时间戳空 +PASS 390 图像嵌入文字描述参数全保留 +PASS 390 图像嵌入文字描述默认无溢出 +PASS 390 图像嵌入文字描述旧图归还焦点 +PASS 旧/空说明回退 旧工作流回退(隔离测试夹具) +PASS 旧/空说明回退 空说明回退(隔离测试夹具) +PASS 缺摘要自然中文回退 +PASS 回退不暴露undefined +PASS 错绑定提示明确且不展示旧字段 +PASS 回退不暴露undefined +PASS 摘要HTML仅纯文本不创建图像或请求 +PASS 回退不暴露undefined +PASS 迟到分屏响应不覆盖旧水印摘要/56字段 +PASS GET失败显示重试 +PASS 读取失败隐藏旧摘要 +PASS 重试恢复摘要 +PASS 无脚本错误或禁止请求 [] +PASS 全程本地GET无写/生成/目标/历史预览请求 +All owned browser services stopped; ports released. diff --git a/docs/hel-892/multivideo-document-evidence/browser-initial.txt b/docs/hel-892/multivideo-document-evidence/browser-initial.txt new file mode 100644 index 00000000..b277c654 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/browser-initial.txt @@ -0,0 +1,1923 @@ +PASS 26图820保存位置 +PASS 26图16源注释 +PASS 1440 多视频合成分屏展示默认中文用途 +PASS 1440 多视频合成分屏展示源审校默认折叠 +PASS 1440 多视频合成分屏展示技术范围默认折叠 +PASS 1440 多视频合成分屏展示默认无执行计数/实现标识 +PASS 1440 多视频合成分屏展示默认依据限制可见 +PASS 1440 多视频合成分屏展示 说明未定稿 +PASS 1440 多视频合成分屏展示 未验证实跑 +PASS 1440 多视频合成分屏展示 未检查 +PASS 1440 多视频合成分屏展示停用/时间戳空 +PASS 1440 多视频合成分屏展示参数全保留 +PASS 1440 多视频合成分屏展示默认无溢出 +PASS 1440 多视频合成分屏展示原用途/源路径展开保留 +PASS 1440 多视频合成分屏展示展开流程 0 +PASS 1440 多视频合成分屏展示展开流程 1 +PASS 1440 多视频合成分屏展示展开流程 2 +PASS 1440 多视频合成分屏展示展开流程 3 +PASS 1440 多视频合成分屏展示展开流程 4 +PASS 1440 多视频合成分屏展示展开流程 5 +PASS 1440 多视频合成分屏展示展开流程 6 +PASS 1440 多视频合成分屏展示展开流程 7 +PASS 1440 多视频合成分屏展示展开流程 8 +PASS 1440 多视频合成分屏展示展开流程 9 +PASS 1440 多视频合成分屏展示展开流程 10 +PASS 1440 多视频合成分屏展示展开流程 11 +PASS 1440 多视频合成分屏展示展开流程 12 +PASS 1440 多视频合成分屏展示展开流程 13 +PASS 1440 多视频合成分屏展示展开流程 14 +PASS 1440 多视频合成分屏展示展开流程 15 +PASS 1440 多视频合成分屏展示展开流程 16 +PASS 1440 多视频合成分屏展示展开流程 17 +PASS 1440 多视频合成分屏展示展开流程 18 +PASS 1440 多视频合成分屏展示展开流程 19 +PASS 1440 多视频合成分屏展示展开流程 20 +PASS 1440 多视频合成分屏展示展开流程 21 +PASS 1440 多视频合成分屏展示展开流程 22 +PASS 1440 多视频合成分屏展示展开流程 23 +PASS 1440 多视频合成分屏展示展开流程 24 +PASS 1440 多视频合成分屏展示展开流程 25 +PASS 1440 多视频合成分屏展示展开流程 26 +PASS 1440 多视频合成分屏展示展开流程 27 +PASS 1440 多视频合成分屏展示展开流程 28 +PASS 1440 多视频合成分屏展示展开流程 29 +PASS 1440 多视频合成分屏展示展开流程 30 +PASS 1440 多视频合成分屏展示展开流程 31 +PASS 1440 多视频合成分屏展示展开流程 32 +PASS 1440 多视频合成分屏展示展开流程 33 +PASS 1440 多视频合成分屏展示展开流程 34 +PASS 1440 多视频合成分屏展示展开流程 35 +PASS 1440 多视频合成分屏展示展开流程 36 +PASS 1440 多视频合成分屏展示展开流程 37 +PASS 1440 多视频合成分屏展示原件摘要可展开 +PASS 1440 多视频合成分屏展示版本 0 +PASS 1440 多视频合成分屏展示版本 1 +PASS 1440 多视频合成分屏展示版本 2 +PASS 1440 多视频合成分屏展示版本 3 +PASS 1440 多视频合成分屏展示版本 4 +PASS 1440 2.inputcount键盘展开 +PASS 1440 2.inputcount用途/单位/范围/来源条件 +PASS 1440 2.inputcount精确保留现值 +PASS 1440 2.inputcount指针默认折叠 +PASS 1440 2.inputcount精确源码/类型/指针 +PASS 1440 2.inputcount展开无溢出 +PASS 1440 2.direction键盘展开 +PASS 1440 2.direction用途/单位/范围/来源条件 +PASS 1440 2.direction精确保留现值 +PASS 1440 2.direction指针默认折叠 +PASS 1440 2.direction精确源码/类型/指针 +PASS 1440 2.direction展开无溢出 +PASS 1440 2.match_image_size键盘展开 +PASS 1440 2.match_image_size用途/单位/范围/来源条件 +PASS 1440 2.match_image_size精确保留现值 +PASS 1440 2.match_image_size指针默认折叠 +PASS 1440 2.match_image_size精确源码/类型/指针 +PASS 1440 2.match_image_size展开无溢出 +PASS 1440 2.saved_position_3键盘展开 +PASS 1440 2.saved_position_3用途/单位/范围/来源条件 +PASS 1440 2.saved_position_3精确保留现值 +PASS 1440 2.saved_position_3指针默认折叠 +PASS 1440 2.saved_position_3精确源码/类型/指针 +PASS 1440 2.saved_position_3展开无溢出 +PASS 1440 1.inputcount键盘展开 +PASS 1440 1.inputcount用途/单位/范围/来源条件 +PASS 1440 1.inputcount精确保留现值 +PASS 1440 1.inputcount指针默认折叠 +PASS 1440 1.inputcount精确源码/类型/指针 +PASS 1440 1.inputcount展开无溢出 +PASS 1440 1.direction键盘展开 +PASS 1440 1.direction用途/单位/范围/来源条件 +PASS 1440 1.direction精确保留现值 +PASS 1440 1.direction指针默认折叠 +PASS 1440 1.direction精确源码/类型/指针 +PASS 1440 1.direction展开无溢出 +PASS 1440 1.match_image_size键盘展开 +PASS 1440 1.match_image_size用途/单位/范围/来源条件 +PASS 1440 1.match_image_size精确保留现值 +PASS 1440 1.match_image_size指针默认折叠 +PASS 1440 1.match_image_size精确源码/类型/指针 +PASS 1440 1.match_image_size展开无溢出 +PASS 1440 1.saved_position_3键盘展开 +PASS 1440 1.saved_position_3用途/单位/范围/来源条件 +PASS 1440 1.saved_position_3精确保留现值 +PASS 1440 1.saved_position_3指针默认折叠 +PASS 1440 1.saved_position_3精确源码/类型/指针 +PASS 1440 1.saved_position_3展开无溢出 +PASS 1440 3.frame_rate键盘展开 +PASS 1440 3.frame_rate用途/单位/范围/来源条件 +PASS 1440 3.frame_rate精确保留现值 +PASS 1440 3.frame_rate指针默认折叠 +PASS 1440 3.frame_rate精确源码/类型/指针 +PASS 1440 3.frame_rate展开无溢出 +PASS 1440 3.loop_count键盘展开 +PASS 1440 3.loop_count用途/单位/范围/来源条件 +PASS 1440 3.loop_count精确保留现值 +PASS 1440 3.loop_count指针默认折叠 +PASS 1440 3.loop_count精确源码/类型/指针 +PASS 1440 3.loop_count展开无溢出 +PASS 1440 3.filename_prefix键盘展开 +PASS 1440 3.filename_prefix用途/单位/范围/来源条件 +PASS 1440 3.filename_prefix精确保留现值 +PASS 1440 3.filename_prefix指针默认折叠 +PASS 1440 3.filename_prefix精确源码/类型/指针 +PASS 1440 3.filename_prefix展开无溢出 +PASS 1440 3.format键盘展开 +PASS 1440 3.format用途/单位/范围/来源条件 +PASS 1440 3.format精确保留现值 +PASS 1440 3.format指针默认折叠 +PASS 1440 3.format精确源码/类型/指针 +PASS 1440 3.format展开无溢出 +PASS 1440 3.pix_fmt键盘展开 +PASS 1440 3.pix_fmt用途/单位/范围/来源条件 +PASS 1440 3.pix_fmt精确保留现值 +PASS 1440 3.pix_fmt指针默认折叠 +PASS 1440 3.pix_fmt精确源码/类型/指针 +PASS 1440 3.pix_fmt展开无溢出 +PASS 1440 3.crf键盘展开 +PASS 1440 3.crf用途/单位/范围/来源条件 +PASS 1440 3.crf精确保留现值 +PASS 1440 3.crf指针默认折叠 +PASS 1440 3.crf精确源码/类型/指针 +PASS 1440 3.crf展开无溢出 +PASS 1440 3.save_metadata键盘展开 +PASS 1440 3.save_metadata用途/单位/范围/来源条件 +PASS 1440 3.save_metadata精确保留现值 +PASS 1440 3.save_metadata指针默认折叠 +PASS 1440 3.save_metadata精确源码/类型/指针 +PASS 1440 3.save_metadata展开无溢出 +PASS 1440 3.trim_to_audio键盘展开 +PASS 1440 3.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 3.trim_to_audio精确保留现值 +PASS 1440 3.trim_to_audio指针默认折叠 +PASS 1440 3.trim_to_audio精确源码/类型/指针 +PASS 1440 3.trim_to_audio展开无溢出 +PASS 1440 3.pingpong键盘展开 +PASS 1440 3.pingpong用途/单位/范围/来源条件 +PASS 1440 3.pingpong精确保留现值 +PASS 1440 3.pingpong指针默认折叠 +PASS 1440 3.pingpong精确源码/类型/指针 +PASS 1440 3.pingpong展开无溢出 +PASS 1440 3.save_output键盘展开 +PASS 1440 3.save_output用途/单位/范围/来源条件 +PASS 1440 3.save_output精确保留现值 +PASS 1440 3.save_output指针默认折叠 +PASS 1440 3.save_output精确源码/类型/指针 +PASS 1440 3.save_output展开无溢出 +PASS 1440 3.videopreview键盘展开 +PASS 1440 3.videopreview用途/单位/范围/来源条件 +PASS 1440 3.videopreview精确保留现值 +PASS 1440 3.videopreview指针默认折叠 +PASS 1440 3.videopreview精确源码/类型/指针 +PASS 1440 3.videopreview展开无溢出 +PASS 1440 7.width键盘展开 +PASS 1440 7.width用途/单位/范围/来源条件 +PASS 1440 7.width精确保留现值 +PASS 1440 7.width指针默认折叠 +PASS 1440 7.width精确源码/类型/指针 +PASS 1440 7.width展开无溢出 +PASS 1440 7.height键盘展开 +PASS 1440 7.height用途/单位/范围/来源条件 +PASS 1440 7.height精确保留现值 +PASS 1440 7.height指针默认折叠 +PASS 1440 7.height精确源码/类型/指针 +PASS 1440 7.height展开无溢出 +PASS 1440 7.upscale_method键盘展开 +PASS 1440 7.upscale_method用途/单位/范围/来源条件 +PASS 1440 7.upscale_method精确保留现值 +PASS 1440 7.upscale_method指针默认折叠 +PASS 1440 7.upscale_method精确源码/类型/指针 +PASS 1440 7.upscale_method展开无溢出 +PASS 1440 7.keep_proportion键盘展开 +PASS 1440 7.keep_proportion用途/单位/范围/来源条件 +PASS 1440 7.keep_proportion精确保留现值 +PASS 1440 7.keep_proportion指针默认折叠 +PASS 1440 7.keep_proportion精确源码/类型/指针 +PASS 1440 7.keep_proportion展开无溢出 +PASS 1440 7.pad_color键盘展开 +PASS 1440 7.pad_color用途/单位/范围/来源条件 +PASS 1440 7.pad_color精确保留现值 +PASS 1440 7.pad_color指针默认折叠 +PASS 1440 7.pad_color精确源码/类型/指针 +PASS 1440 7.pad_color展开无溢出 +PASS 1440 7.crop_position键盘展开 +PASS 1440 7.crop_position用途/单位/范围/来源条件 +PASS 1440 7.crop_position精确保留现值 +PASS 1440 7.crop_position指针默认折叠 +PASS 1440 7.crop_position精确源码/类型/指针 +PASS 1440 7.crop_position展开无溢出 +PASS 1440 7.divisible_by键盘展开 +PASS 1440 7.divisible_by用途/单位/范围/来源条件 +PASS 1440 7.divisible_by精确保留现值 +PASS 1440 7.divisible_by指针默认折叠 +PASS 1440 7.divisible_by精确源码/类型/指针 +PASS 1440 7.divisible_by展开无溢出 +PASS 1440 7.device键盘展开 +PASS 1440 7.device用途/单位/范围/来源条件 +PASS 1440 7.device精确保留现值 +PASS 1440 7.device指针默认折叠 +PASS 1440 7.device精确源码/类型/指针 +PASS 1440 7.device展开无溢出 +PASS 1440 5.width键盘展开 +PASS 1440 5.width用途/单位/范围/来源条件 +PASS 1440 5.width精确保留现值 +PASS 1440 5.width指针默认折叠 +PASS 1440 5.width精确源码/类型/指针 +PASS 1440 5.width展开无溢出 +PASS 1440 5.height键盘展开 +PASS 1440 5.height用途/单位/范围/来源条件 +PASS 1440 5.height精确保留现值 +PASS 1440 5.height指针默认折叠 +PASS 1440 5.height精确源码/类型/指针 +PASS 1440 5.height展开无溢出 +PASS 1440 5.upscale_method键盘展开 +PASS 1440 5.upscale_method用途/单位/范围/来源条件 +PASS 1440 5.upscale_method精确保留现值 +PASS 1440 5.upscale_method指针默认折叠 +PASS 1440 5.upscale_method精确源码/类型/指针 +PASS 1440 5.upscale_method展开无溢出 +PASS 1440 5.keep_proportion键盘展开 +PASS 1440 5.keep_proportion用途/单位/范围/来源条件 +PASS 1440 5.keep_proportion精确保留现值 +PASS 1440 5.keep_proportion指针默认折叠 +PASS 1440 5.keep_proportion精确源码/类型/指针 +PASS 1440 5.keep_proportion展开无溢出 +PASS 1440 5.pad_color键盘展开 +PASS 1440 5.pad_color用途/单位/范围/来源条件 +PASS 1440 5.pad_color精确保留现值 +PASS 1440 5.pad_color指针默认折叠 +PASS 1440 5.pad_color精确源码/类型/指针 +PASS 1440 5.pad_color展开无溢出 +PASS 1440 5.crop_position键盘展开 +PASS 1440 5.crop_position用途/单位/范围/来源条件 +PASS 1440 5.crop_position精确保留现值 +PASS 1440 5.crop_position指针默认折叠 +PASS 1440 5.crop_position精确源码/类型/指针 +PASS 1440 5.crop_position展开无溢出 +PASS 1440 5.divisible_by键盘展开 +PASS 1440 5.divisible_by用途/单位/范围/来源条件 +PASS 1440 5.divisible_by精确保留现值 +PASS 1440 5.divisible_by指针默认折叠 +PASS 1440 5.divisible_by精确源码/类型/指针 +PASS 1440 5.divisible_by展开无溢出 +PASS 1440 5.device键盘展开 +PASS 1440 5.device用途/单位/范围/来源条件 +PASS 1440 5.device精确保留现值 +PASS 1440 5.device指针默认折叠 +PASS 1440 5.device精确源码/类型/指针 +PASS 1440 5.device展开无溢出 +PASS 1440 8.video键盘展开 +PASS 1440 8.video用途/单位/范围/来源条件 +PASS 1440 8.video精确保留现值 +PASS 1440 8.video指针默认折叠 +PASS 1440 8.video精确源码/类型/指针 +PASS 1440 8.video展开无溢出 +PASS 1440 8.force_rate键盘展开 +PASS 1440 8.force_rate用途/单位/范围/来源条件 +PASS 1440 8.force_rate精确保留现值 +PASS 1440 8.force_rate指针默认折叠 +PASS 1440 8.force_rate精确源码/类型/指针 +PASS 1440 8.force_rate展开无溢出 +PASS 1440 8.custom_width键盘展开 +PASS 1440 8.custom_width用途/单位/范围/来源条件 +PASS 1440 8.custom_width精确保留现值 +PASS 1440 8.custom_width指针默认折叠 +PASS 1440 8.custom_width精确源码/类型/指针 +PASS 1440 8.custom_width展开无溢出 +PASS 1440 8.custom_height键盘展开 +PASS 1440 8.custom_height用途/单位/范围/来源条件 +PASS 1440 8.custom_height精确保留现值 +PASS 1440 8.custom_height指针默认折叠 +PASS 1440 8.custom_height精确源码/类型/指针 +PASS 1440 8.custom_height展开无溢出 +PASS 1440 8.frame_load_cap键盘展开 +PASS 1440 8.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 8.frame_load_cap精确保留现值 +PASS 1440 8.frame_load_cap指针默认折叠 +PASS 1440 8.frame_load_cap精确源码/类型/指针 +PASS 1440 8.frame_load_cap展开无溢出 +PASS 1440 8.skip_first_frames键盘展开 +PASS 1440 8.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 8.skip_first_frames精确保留现值 +PASS 1440 8.skip_first_frames指针默认折叠 +PASS 1440 8.skip_first_frames精确源码/类型/指针 +PASS 1440 8.skip_first_frames展开无溢出 +PASS 1440 8.select_every_nth键盘展开 +PASS 1440 8.select_every_nth用途/单位/范围/来源条件 +PASS 1440 8.select_every_nth精确保留现值 +PASS 1440 8.select_every_nth指针默认折叠 +PASS 1440 8.select_every_nth精确源码/类型/指针 +PASS 1440 8.select_every_nth展开无溢出 +PASS 1440 8.format键盘展开 +PASS 1440 8.format用途/单位/范围/来源条件 +PASS 1440 8.format精确保留现值 +PASS 1440 8.format指针默认折叠 +PASS 1440 8.format精确源码/类型/指针 +PASS 1440 8.format展开无溢出 +PASS 1440 8.videopreview键盘展开 +PASS 1440 8.videopreview用途/单位/范围/来源条件 +PASS 1440 8.videopreview精确保留现值 +PASS 1440 8.videopreview指针默认折叠 +PASS 1440 8.videopreview精确源码/类型/指针 +PASS 1440 8.videopreview展开无溢出 +PASS 1440 6.video键盘展开 +PASS 1440 6.video用途/单位/范围/来源条件 +PASS 1440 6.video精确保留现值 +PASS 1440 6.video指针默认折叠 +PASS 1440 6.video精确源码/类型/指针 +PASS 1440 6.video展开无溢出 +PASS 1440 6.force_rate键盘展开 +PASS 1440 6.force_rate用途/单位/范围/来源条件 +PASS 1440 6.force_rate精确保留现值 +PASS 1440 6.force_rate指针默认折叠 +PASS 1440 6.force_rate精确源码/类型/指针 +PASS 1440 6.force_rate展开无溢出 +PASS 1440 6.custom_width键盘展开 +PASS 1440 6.custom_width用途/单位/范围/来源条件 +PASS 1440 6.custom_width精确保留现值 +PASS 1440 6.custom_width指针默认折叠 +PASS 1440 6.custom_width精确源码/类型/指针 +PASS 1440 6.custom_width展开无溢出 +PASS 1440 6.custom_height键盘展开 +PASS 1440 6.custom_height用途/单位/范围/来源条件 +PASS 1440 6.custom_height精确保留现值 +PASS 1440 6.custom_height指针默认折叠 +PASS 1440 6.custom_height精确源码/类型/指针 +PASS 1440 6.custom_height展开无溢出 +PASS 1440 6.frame_load_cap键盘展开 +PASS 1440 6.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 6.frame_load_cap精确保留现值 +PASS 1440 6.frame_load_cap指针默认折叠 +PASS 1440 6.frame_load_cap精确源码/类型/指针 +PASS 1440 6.frame_load_cap展开无溢出 +PASS 1440 6.skip_first_frames键盘展开 +PASS 1440 6.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 6.skip_first_frames精确保留现值 +PASS 1440 6.skip_first_frames指针默认折叠 +PASS 1440 6.skip_first_frames精确源码/类型/指针 +PASS 1440 6.skip_first_frames展开无溢出 +PASS 1440 6.select_every_nth键盘展开 +PASS 1440 6.select_every_nth用途/单位/范围/来源条件 +PASS 1440 6.select_every_nth精确保留现值 +PASS 1440 6.select_every_nth指针默认折叠 +PASS 1440 6.select_every_nth精确源码/类型/指针 +PASS 1440 6.select_every_nth展开无溢出 +PASS 1440 6.format键盘展开 +PASS 1440 6.format用途/单位/范围/来源条件 +PASS 1440 6.format精确保留现值 +PASS 1440 6.format指针默认折叠 +PASS 1440 6.format精确源码/类型/指针 +PASS 1440 6.format展开无溢出 +PASS 1440 6.videopreview键盘展开 +PASS 1440 6.videopreview用途/单位/范围/来源条件 +PASS 1440 6.videopreview精确保留现值 +PASS 1440 6.videopreview指针默认折叠 +PASS 1440 6.videopreview精确源码/类型/指针 +PASS 1440 6.videopreview展开无溢出 +PASS 1440 4.video键盘展开 +PASS 1440 4.video用途/单位/范围/来源条件 +PASS 1440 4.video精确保留现值 +PASS 1440 4.video指针默认折叠 +PASS 1440 4.video精确源码/类型/指针 +PASS 1440 4.video展开无溢出 +PASS 1440 4.force_rate键盘展开 +PASS 1440 4.force_rate用途/单位/范围/来源条件 +PASS 1440 4.force_rate精确保留现值 +PASS 1440 4.force_rate指针默认折叠 +PASS 1440 4.force_rate精确源码/类型/指针 +PASS 1440 4.force_rate展开无溢出 +PASS 1440 4.custom_width键盘展开 +PASS 1440 4.custom_width用途/单位/范围/来源条件 +PASS 1440 4.custom_width精确保留现值 +PASS 1440 4.custom_width指针默认折叠 +PASS 1440 4.custom_width精确源码/类型/指针 +PASS 1440 4.custom_width展开无溢出 +PASS 1440 4.custom_height键盘展开 +PASS 1440 4.custom_height用途/单位/范围/来源条件 +PASS 1440 4.custom_height精确保留现值 +PASS 1440 4.custom_height指针默认折叠 +PASS 1440 4.custom_height精确源码/类型/指针 +PASS 1440 4.custom_height展开无溢出 +PASS 1440 4.frame_load_cap键盘展开 +PASS 1440 4.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 4.frame_load_cap精确保留现值 +PASS 1440 4.frame_load_cap指针默认折叠 +PASS 1440 4.frame_load_cap精确源码/类型/指针 +PASS 1440 4.frame_load_cap展开无溢出 +PASS 1440 4.skip_first_frames键盘展开 +PASS 1440 4.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 4.skip_first_frames精确保留现值 +PASS 1440 4.skip_first_frames指针默认折叠 +PASS 1440 4.skip_first_frames精确源码/类型/指针 +PASS 1440 4.skip_first_frames展开无溢出 +PASS 1440 4.select_every_nth键盘展开 +PASS 1440 4.select_every_nth用途/单位/范围/来源条件 +PASS 1440 4.select_every_nth精确保留现值 +PASS 1440 4.select_every_nth指针默认折叠 +PASS 1440 4.select_every_nth精确源码/类型/指针 +PASS 1440 4.select_every_nth展开无溢出 +PASS 1440 4.format键盘展开 +PASS 1440 4.format用途/单位/范围/来源条件 +PASS 1440 4.format精确保留现值 +PASS 1440 4.format指针默认折叠 +PASS 1440 4.format精确源码/类型/指针 +PASS 1440 4.format展开无溢出 +PASS 1440 4.videopreview键盘展开 +PASS 1440 4.videopreview用途/单位/范围/来源条件 +PASS 1440 4.videopreview精确保留现值 +PASS 1440 4.videopreview指针默认折叠 +PASS 1440 4.videopreview精确源码/类型/指针 +PASS 1440 4.videopreview展开无溢出 +PASS 1440 10.inputcount键盘展开 +PASS 1440 10.inputcount用途/单位/范围/来源条件 +PASS 1440 10.inputcount精确保留现值 +PASS 1440 10.inputcount指针默认折叠 +PASS 1440 10.inputcount精确源码/类型/指针 +PASS 1440 10.inputcount展开无溢出 +PASS 1440 10.direction键盘展开 +PASS 1440 10.direction用途/单位/范围/来源条件 +PASS 1440 10.direction精确保留现值 +PASS 1440 10.direction指针默认折叠 +PASS 1440 10.direction精确源码/类型/指针 +PASS 1440 10.direction展开无溢出 +PASS 1440 10.match_image_size键盘展开 +PASS 1440 10.match_image_size用途/单位/范围/来源条件 +PASS 1440 10.match_image_size精确保留现值 +PASS 1440 10.match_image_size指针默认折叠 +PASS 1440 10.match_image_size精确源码/类型/指针 +PASS 1440 10.match_image_size展开无溢出 +PASS 1440 10.saved_position_3键盘展开 +PASS 1440 10.saved_position_3用途/单位/范围/来源条件 +PASS 1440 10.saved_position_3精确保留现值 +PASS 1440 10.saved_position_3指针默认折叠 +PASS 1440 10.saved_position_3精确源码/类型/指针 +PASS 1440 10.saved_position_3展开无溢出 +PASS 1440 11.inputcount键盘展开 +PASS 1440 11.inputcount用途/单位/范围/来源条件 +PASS 1440 11.inputcount精确保留现值 +PASS 1440 11.inputcount指针默认折叠 +PASS 1440 11.inputcount精确源码/类型/指针 +PASS 1440 11.inputcount展开无溢出 +PASS 1440 11.direction键盘展开 +PASS 1440 11.direction用途/单位/范围/来源条件 +PASS 1440 11.direction精确保留现值 +PASS 1440 11.direction指针默认折叠 +PASS 1440 11.direction精确源码/类型/指针 +PASS 1440 11.direction展开无溢出 +PASS 1440 11.match_image_size键盘展开 +PASS 1440 11.match_image_size用途/单位/范围/来源条件 +PASS 1440 11.match_image_size精确保留现值 +PASS 1440 11.match_image_size指针默认折叠 +PASS 1440 11.match_image_size精确源码/类型/指针 +PASS 1440 11.match_image_size展开无溢出 +PASS 1440 11.saved_position_3键盘展开 +PASS 1440 11.saved_position_3用途/单位/范围/来源条件 +PASS 1440 11.saved_position_3精确保留现值 +PASS 1440 11.saved_position_3指针默认折叠 +PASS 1440 11.saved_position_3精确源码/类型/指针 +PASS 1440 11.saved_position_3展开无溢出 +PASS 1440 12.frame_rate键盘展开 +PASS 1440 12.frame_rate用途/单位/范围/来源条件 +PASS 1440 12.frame_rate精确保留现值 +PASS 1440 12.frame_rate指针默认折叠 +PASS 1440 12.frame_rate精确源码/类型/指针 +PASS 1440 12.frame_rate展开无溢出 +PASS 1440 12.loop_count键盘展开 +PASS 1440 12.loop_count用途/单位/范围/来源条件 +PASS 1440 12.loop_count精确保留现值 +PASS 1440 12.loop_count指针默认折叠 +PASS 1440 12.loop_count精确源码/类型/指针 +PASS 1440 12.loop_count展开无溢出 +PASS 1440 12.filename_prefix键盘展开 +PASS 1440 12.filename_prefix用途/单位/范围/来源条件 +PASS 1440 12.filename_prefix精确保留现值 +PASS 1440 12.filename_prefix指针默认折叠 +PASS 1440 12.filename_prefix精确源码/类型/指针 +PASS 1440 12.filename_prefix展开无溢出 +PASS 1440 12.format键盘展开 +PASS 1440 12.format用途/单位/范围/来源条件 +PASS 1440 12.format精确保留现值 +PASS 1440 12.format指针默认折叠 +PASS 1440 12.format精确源码/类型/指针 +PASS 1440 12.format展开无溢出 +PASS 1440 12.pix_fmt键盘展开 +PASS 1440 12.pix_fmt用途/单位/范围/来源条件 +PASS 1440 12.pix_fmt精确保留现值 +PASS 1440 12.pix_fmt指针默认折叠 +PASS 1440 12.pix_fmt精确源码/类型/指针 +PASS 1440 12.pix_fmt展开无溢出 +PASS 1440 12.crf键盘展开 +PASS 1440 12.crf用途/单位/范围/来源条件 +PASS 1440 12.crf精确保留现值 +PASS 1440 12.crf指针默认折叠 +PASS 1440 12.crf精确源码/类型/指针 +PASS 1440 12.crf展开无溢出 +PASS 1440 12.save_metadata键盘展开 +PASS 1440 12.save_metadata用途/单位/范围/来源条件 +PASS 1440 12.save_metadata精确保留现值 +PASS 1440 12.save_metadata指针默认折叠 +PASS 1440 12.save_metadata精确源码/类型/指针 +PASS 1440 12.save_metadata展开无溢出 +PASS 1440 12.trim_to_audio键盘展开 +PASS 1440 12.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 12.trim_to_audio精确保留现值 +PASS 1440 12.trim_to_audio指针默认折叠 +PASS 1440 12.trim_to_audio精确源码/类型/指针 +PASS 1440 12.trim_to_audio展开无溢出 +PASS 1440 12.pingpong键盘展开 +PASS 1440 12.pingpong用途/单位/范围/来源条件 +PASS 1440 12.pingpong精确保留现值 +PASS 1440 12.pingpong指针默认折叠 +PASS 1440 12.pingpong精确源码/类型/指针 +PASS 1440 12.pingpong展开无溢出 +PASS 1440 12.save_output键盘展开 +PASS 1440 12.save_output用途/单位/范围/来源条件 +PASS 1440 12.save_output精确保留现值 +PASS 1440 12.save_output指针默认折叠 +PASS 1440 12.save_output精确源码/类型/指针 +PASS 1440 12.save_output展开无溢出 +PASS 1440 12.videopreview键盘展开 +PASS 1440 12.videopreview用途/单位/范围/来源条件 +PASS 1440 12.videopreview精确保留现值 +PASS 1440 12.videopreview指针默认折叠 +PASS 1440 12.videopreview精确源码/类型/指针 +PASS 1440 12.videopreview展开无溢出 +PASS 1440 17.video键盘展开 +PASS 1440 17.video用途/单位/范围/来源条件 +PASS 1440 17.video精确保留现值 +PASS 1440 17.video指针默认折叠 +PASS 1440 17.video精确源码/类型/指针 +PASS 1440 17.video展开无溢出 +PASS 1440 17.force_rate键盘展开 +PASS 1440 17.force_rate用途/单位/范围/来源条件 +PASS 1440 17.force_rate精确保留现值 +PASS 1440 17.force_rate指针默认折叠 +PASS 1440 17.force_rate精确源码/类型/指针 +PASS 1440 17.force_rate展开无溢出 +PASS 1440 17.custom_width键盘展开 +PASS 1440 17.custom_width用途/单位/范围/来源条件 +PASS 1440 17.custom_width精确保留现值 +PASS 1440 17.custom_width指针默认折叠 +PASS 1440 17.custom_width精确源码/类型/指针 +PASS 1440 17.custom_width展开无溢出 +PASS 1440 17.custom_height键盘展开 +PASS 1440 17.custom_height用途/单位/范围/来源条件 +PASS 1440 17.custom_height精确保留现值 +PASS 1440 17.custom_height指针默认折叠 +PASS 1440 17.custom_height精确源码/类型/指针 +PASS 1440 17.custom_height展开无溢出 +PASS 1440 17.frame_load_cap键盘展开 +PASS 1440 17.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 17.frame_load_cap精确保留现值 +PASS 1440 17.frame_load_cap指针默认折叠 +PASS 1440 17.frame_load_cap精确源码/类型/指针 +PASS 1440 17.frame_load_cap展开无溢出 +PASS 1440 17.skip_first_frames键盘展开 +PASS 1440 17.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 17.skip_first_frames精确保留现值 +PASS 1440 17.skip_first_frames指针默认折叠 +PASS 1440 17.skip_first_frames精确源码/类型/指针 +PASS 1440 17.skip_first_frames展开无溢出 +PASS 1440 17.select_every_nth键盘展开 +PASS 1440 17.select_every_nth用途/单位/范围/来源条件 +PASS 1440 17.select_every_nth精确保留现值 +PASS 1440 17.select_every_nth指针默认折叠 +PASS 1440 17.select_every_nth精确源码/类型/指针 +PASS 1440 17.select_every_nth展开无溢出 +PASS 1440 17.format键盘展开 +PASS 1440 17.format用途/单位/范围/来源条件 +PASS 1440 17.format精确保留现值 +PASS 1440 17.format指针默认折叠 +PASS 1440 17.format精确源码/类型/指针 +PASS 1440 17.format展开无溢出 +PASS 1440 17.videopreview键盘展开 +PASS 1440 17.videopreview用途/单位/范围/来源条件 +PASS 1440 17.videopreview精确保留现值 +PASS 1440 17.videopreview指针默认折叠 +PASS 1440 17.videopreview精确源码/类型/指针 +PASS 1440 17.videopreview展开无溢出 +PASS 1440 16.video键盘展开 +PASS 1440 16.video用途/单位/范围/来源条件 +PASS 1440 16.video精确保留现值 +PASS 1440 16.video指针默认折叠 +PASS 1440 16.video精确源码/类型/指针 +PASS 1440 16.video展开无溢出 +PASS 1440 16.force_rate键盘展开 +PASS 1440 16.force_rate用途/单位/范围/来源条件 +PASS 1440 16.force_rate精确保留现值 +PASS 1440 16.force_rate指针默认折叠 +PASS 1440 16.force_rate精确源码/类型/指针 +PASS 1440 16.force_rate展开无溢出 +PASS 1440 16.custom_width键盘展开 +PASS 1440 16.custom_width用途/单位/范围/来源条件 +PASS 1440 16.custom_width精确保留现值 +PASS 1440 16.custom_width指针默认折叠 +PASS 1440 16.custom_width精确源码/类型/指针 +PASS 1440 16.custom_width展开无溢出 +PASS 1440 16.custom_height键盘展开 +PASS 1440 16.custom_height用途/单位/范围/来源条件 +PASS 1440 16.custom_height精确保留现值 +PASS 1440 16.custom_height指针默认折叠 +PASS 1440 16.custom_height精确源码/类型/指针 +PASS 1440 16.custom_height展开无溢出 +PASS 1440 16.frame_load_cap键盘展开 +PASS 1440 16.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 16.frame_load_cap精确保留现值 +PASS 1440 16.frame_load_cap指针默认折叠 +PASS 1440 16.frame_load_cap精确源码/类型/指针 +PASS 1440 16.frame_load_cap展开无溢出 +PASS 1440 16.skip_first_frames键盘展开 +PASS 1440 16.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 16.skip_first_frames精确保留现值 +PASS 1440 16.skip_first_frames指针默认折叠 +PASS 1440 16.skip_first_frames精确源码/类型/指针 +PASS 1440 16.skip_first_frames展开无溢出 +PASS 1440 16.select_every_nth键盘展开 +PASS 1440 16.select_every_nth用途/单位/范围/来源条件 +PASS 1440 16.select_every_nth精确保留现值 +PASS 1440 16.select_every_nth指针默认折叠 +PASS 1440 16.select_every_nth精确源码/类型/指针 +PASS 1440 16.select_every_nth展开无溢出 +PASS 1440 16.format键盘展开 +PASS 1440 16.format用途/单位/范围/来源条件 +PASS 1440 16.format精确保留现值 +PASS 1440 16.format指针默认折叠 +PASS 1440 16.format精确源码/类型/指针 +PASS 1440 16.format展开无溢出 +PASS 1440 16.videopreview键盘展开 +PASS 1440 16.videopreview用途/单位/范围/来源条件 +PASS 1440 16.videopreview精确保留现值 +PASS 1440 16.videopreview指针默认折叠 +PASS 1440 16.videopreview精确源码/类型/指针 +PASS 1440 16.videopreview展开无溢出 +PASS 1440Tab焦点保留 +PASS 1440ShiftTab焦点保留 +PASS 1440 多视频合成分屏展示关闭归还焦点 +PASS 1440 图像4种添加水印节点默认中文用途 +PASS 1440 图像4种添加水印节点源审校默认折叠 +PASS 1440 图像4种添加水印节点技术范围默认折叠 +PASS 1440 图像4种添加水印节点默认无执行计数/实现标识 +PASS 1440 图像4种添加水印节点默认依据限制可见 +PASS 1440 图像4种添加水印节点 说明未定稿 +PASS 1440 图像4种添加水印节点 未验证实跑 +PASS 1440 图像4种添加水印节点 未检查 +PASS 1440 图像4种添加水印节点停用/时间戳空 +PASS 1440 图像4种添加水印节点参数全保留 +PASS 1440 图像4种添加水印节点默认无溢出 +PASS 1440 图像4种添加水印节点旧图归还焦点 +PASS 1440 birefnet_图像移除背景默认中文用途 +PASS 1440 birefnet_图像移除背景源审校默认折叠 +PASS 1440 birefnet_图像移除背景技术范围默认折叠 +PASS 1440 birefnet_图像移除背景默认无执行计数/实现标识 +PASS 1440 birefnet_图像移除背景默认依据限制可见 +PASS 1440 birefnet_图像移除背景 说明未定稿 +PASS 1440 birefnet_图像移除背景 未验证实跑 +PASS 1440 birefnet_图像移除背景 未检查 +PASS 1440 birefnet_图像移除背景停用/时间戳空 +PASS 1440 birefnet_图像移除背景参数全保留 +PASS 1440 birefnet_图像移除背景默认无溢出 +PASS 1440 birefnet_图像移除背景旧图归还焦点 +PASS 1440 加载本地latent解码默认中文用途 +PASS 1440 加载本地latent解码源审校默认折叠 +PASS 1440 加载本地latent解码技术范围默认折叠 +PASS 1440 加载本地latent解码默认无执行计数/实现标识 +PASS 1440 加载本地latent解码默认依据限制可见 +PASS 1440 加载本地latent解码 说明未定稿 +PASS 1440 加载本地latent解码 未验证实跑 +PASS 1440 加载本地latent解码 未检查 +PASS 1440 加载本地latent解码停用/时间戳空 +PASS 1440 加载本地latent解码参数全保留 +PASS 1440 加载本地latent解码默认无溢出 +PASS 1440 加载本地latent解码旧图归还焦点 +PASS 1440 截取视频每一帧默认中文用途 +PASS 1440 截取视频每一帧源审校默认折叠 +PASS 1440 截取视频每一帧技术范围默认折叠 +PASS 1440 截取视频每一帧默认无执行计数/实现标识 +PASS 1440 截取视频每一帧默认依据限制可见 +PASS 1440 截取视频每一帧 说明未定稿 +PASS 1440 截取视频每一帧 未验证实跑 +PASS 1440 截取视频每一帧 未检查 +PASS 1440 截取视频每一帧停用/时间戳空 +PASS 1440 截取视频每一帧参数全保留 +PASS 1440 截取视频每一帧默认无溢出 +PASS 1440 截取视频每一帧旧图归还焦点 +PASS 1440 双图像或视频合并显示默认中文用途 +PASS 1440 双图像或视频合并显示源审校默认折叠 +PASS 1440 双图像或视频合并显示技术范围默认折叠 +PASS 1440 双图像或视频合并显示默认无执行计数/实现标识 +PASS 1440 双图像或视频合并显示默认依据限制可见 +PASS 1440 双图像或视频合并显示 说明未定稿 +PASS 1440 双图像或视频合并显示 未验证实跑 +PASS 1440 双图像或视频合并显示 未检查 +PASS 1440 双图像或视频合并显示停用/时间戳空 +PASS 1440 双图像或视频合并显示参数全保留 +PASS 1440 双图像或视频合并显示默认无溢出 +PASS 1440 双图像或视频合并显示旧图归还焦点 +PASS 1440 视频转gif动图图片默认中文用途 +PASS 1440 视频转gif动图图片源审校默认折叠 +PASS 1440 视频转gif动图图片技术范围默认折叠 +PASS 1440 视频转gif动图图片默认无执行计数/实现标识 +PASS 1440 视频转gif动图图片默认依据限制可见 +PASS 1440 视频转gif动图图片 说明未定稿 +PASS 1440 视频转gif动图图片 未验证实跑 +PASS 1440 视频转gif动图图片 未检查 +PASS 1440 视频转gif动图图片停用/时间戳空 +PASS 1440 视频转gif动图图片参数全保留 +PASS 1440 视频转gif动图图片默认无溢出 +PASS 1440 视频转gif动图图片旧图归还焦点 +PASS 1440 加载图片合成视频默认中文用途 +PASS 1440 加载图片合成视频源审校默认折叠 +PASS 1440 加载图片合成视频技术范围默认折叠 +PASS 1440 加载图片合成视频默认无执行计数/实现标识 +PASS 1440 加载图片合成视频默认依据限制可见 +PASS 1440 加载图片合成视频 说明未定稿 +PASS 1440 加载图片合成视频 未验证实跑 +PASS 1440 加载图片合成视频 未检查 +PASS 1440 加载图片合成视频停用/时间戳空 +PASS 1440 加载图片合成视频参数全保留 +PASS 1440 加载图片合成视频默认无溢出 +PASS 1440 加载图片合成视频旧图归还焦点 +PASS 1440 视频倒放默认中文用途 +PASS 1440 视频倒放源审校默认折叠 +PASS 1440 视频倒放技术范围默认折叠 +PASS 1440 视频倒放默认无执行计数/实现标识 +PASS 1440 视频倒放默认依据限制可见 +PASS 1440 视频倒放 说明未定稿 +PASS 1440 视频倒放 未验证实跑 +PASS 1440 视频倒放 未检查 +PASS 1440 视频倒放停用/时间戳空 +PASS 1440 视频倒放参数全保留 +PASS 1440 视频倒放默认无溢出 +PASS 1440 视频倒放旧图归还焦点 +PASS 1440 NLF_视频人物动作骨架获取默认中文用途 +PASS 1440 NLF_视频人物动作骨架获取源审校默认折叠 +PASS 1440 NLF_视频人物动作骨架获取技术范围默认折叠 +PASS 1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识 +PASS 1440 NLF_视频人物动作骨架获取默认依据限制可见 +PASS 1440 NLF_视频人物动作骨架获取 说明未定稿 +PASS 1440 NLF_视频人物动作骨架获取 未验证实跑 +PASS 1440 NLF_视频人物动作骨架获取 未检查 +PASS 1440 NLF_视频人物动作骨架获取停用/时间戳空 +PASS 1440 NLF_视频人物动作骨架获取参数全保留 +PASS 1440 NLF_视频人物动作骨架获取默认无溢出 +PASS 1440 NLF_视频人物动作骨架获取旧图归还焦点 +PASS 1440 openpose-video-姿态检测默认中文用途 +PASS 1440 openpose-video-姿态检测源审校默认折叠 +PASS 1440 openpose-video-姿态检测技术范围默认折叠 +PASS 1440 openpose-video-姿态检测默认无执行计数/实现标识 +PASS 1440 openpose-video-姿态检测默认依据限制可见 +PASS 1440 openpose-video-姿态检测 说明未定稿 +PASS 1440 openpose-video-姿态检测 未验证实跑 +PASS 1440 openpose-video-姿态检测 未检查 +PASS 1440 openpose-video-姿态检测停用/时间戳空 +PASS 1440 openpose-video-姿态检测参数全保留 +PASS 1440 openpose-video-姿态检测默认无溢出 +PASS 1440 openpose-video-姿态检测旧图归还焦点 +PASS 1440 sdpose_视频人物姿势骨架提取默认中文用途 +PASS 1440 sdpose_视频人物姿势骨架提取源审校默认折叠 +PASS 1440 sdpose_视频人物姿势骨架提取技术范围默认折叠 +PASS 1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识 +PASS 1440 sdpose_视频人物姿势骨架提取默认依据限制可见 +PASS 1440 sdpose_视频人物姿势骨架提取 说明未定稿 +PASS 1440 sdpose_视频人物姿势骨架提取 未验证实跑 +PASS 1440 sdpose_视频人物姿势骨架提取 未检查 +PASS 1440 sdpose_视频人物姿势骨架提取停用/时间戳空 +PASS 1440 sdpose_视频人物姿势骨架提取参数全保留 +PASS 1440 sdpose_视频人物姿势骨架提取默认无溢出 +PASS 1440 sdpose_视频人物姿势骨架提取旧图归还焦点 +PASS 1440 gemma4_提示词反推(图像视频音频)默认中文用途 +PASS 1440 gemma4_提示词反推(图像视频音频)源审校默认折叠 +PASS 1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠 +PASS 1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识 +PASS 1440 gemma4_提示词反推(图像视频音频)默认依据限制可见 +PASS 1440 gemma4_提示词反推(图像视频音频) 说明未定稿 +PASS 1440 gemma4_提示词反推(图像视频音频) 未验证实跑 +PASS 1440 gemma4_提示词反推(图像视频音频) 未检查 +PASS 1440 gemma4_提示词反推(图像视频音频)停用/时间戳空 +PASS 1440 gemma4_提示词反推(图像视频音频)参数全保留 +PASS 1440 gemma4_提示词反推(图像视频音频)默认无溢出 +PASS 1440 gemma4_提示词反推(图像视频音频)旧图归还焦点 +PASS 1440 图像合并成四宫格默认中文用途 +PASS 1440 图像合并成四宫格源审校默认折叠 +PASS 1440 图像合并成四宫格技术范围默认折叠 +PASS 1440 图像合并成四宫格默认无执行计数/实现标识 +PASS 1440 图像合并成四宫格默认依据限制可见 +PASS 1440 图像合并成四宫格 说明未定稿 +PASS 1440 图像合并成四宫格 未验证实跑 +PASS 1440 图像合并成四宫格 未检查 +PASS 1440 图像合并成四宫格停用/时间戳空 +PASS 1440 图像合并成四宫格参数全保留 +PASS 1440 图像合并成四宫格默认无溢出 +PASS 1440 图像合并成四宫格旧图归还焦点 +PASS 1440 图像分割-多宫格分割默认中文用途 +PASS 1440 图像分割-多宫格分割源审校默认折叠 +PASS 1440 图像分割-多宫格分割技术范围默认折叠 +PASS 1440 图像分割-多宫格分割默认无执行计数/实现标识 +PASS 1440 图像分割-多宫格分割默认依据限制可见 +PASS 1440 图像分割-多宫格分割 说明未定稿 +PASS 1440 图像分割-多宫格分割 未验证实跑 +PASS 1440 图像分割-多宫格分割 未检查 +PASS 1440 图像分割-多宫格分割停用/时间戳空 +PASS 1440 图像分割-多宫格分割参数全保留 +PASS 1440 图像分割-多宫格分割默认无溢出 +PASS 1440 图像分割-多宫格分割旧图归还焦点 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认中文用途 +PASS 1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑 +PASS 1440 Qwen_image2.1_图像编辑_背景移除 未检查 +PASS 1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空 +PASS 1440 Qwen_image2.1_图像编辑_背景移除参数全保留 +PASS 1440 Qwen_image2.1_图像编辑_背景移除默认无溢出 +PASS 1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强 未检查 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强参数全保留 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认中文用途 +PASS 1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠 +PASS 1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见 +PASS 1440 Qwen_image2.1_文生图_提示词增强 说明未定稿 +PASS 1440 Qwen_image2.1_文生图_提示词增强 未验证实跑 +PASS 1440 Qwen_image2.1_文生图_提示词增强 未检查 +PASS 1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空 +PASS 1440 Qwen_image2.1_文生图_提示词增强参数全保留 +PASS 1440 Qwen_image2.1_文生图_提示词增强默认无溢出 +PASS 1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点 +PASS 1440 ControlNet_aux_常用样例默认中文用途 +PASS 1440 ControlNet_aux_常用样例源审校默认折叠 +PASS 1440 ControlNet_aux_常用样例技术范围默认折叠 +PASS 1440 ControlNet_aux_常用样例默认无执行计数/实现标识 +PASS 1440 ControlNet_aux_常用样例默认依据限制可见 +PASS 1440 ControlNet_aux_常用样例 说明未定稿 +PASS 1440 ControlNet_aux_常用样例 未验证实跑 +PASS 1440 ControlNet_aux_常用样例 未检查 +PASS 1440 ControlNet_aux_常用样例停用/时间戳空 +PASS 1440 ControlNet_aux_常用样例参数全保留 +PASS 1440 ControlNet_aux_常用样例默认无溢出 +PASS 1440 ControlNet_aux_常用样例旧图归还焦点 +PASS 1440 Qwen3-ASR-语音转文字默认中文用途 +PASS 1440 Qwen3-ASR-语音转文字源审校默认折叠 +PASS 1440 Qwen3-ASR-语音转文字技术范围默认折叠 +PASS 1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识 +PASS 1440 Qwen3-ASR-语音转文字默认依据限制可见 +PASS 1440 Qwen3-ASR-语音转文字 说明未定稿 +PASS 1440 Qwen3-ASR-语音转文字 未验证实跑 +PASS 1440 Qwen3-ASR-语音转文字 未检查 +PASS 1440 Qwen3-ASR-语音转文字停用/时间戳空 +PASS 1440 Qwen3-ASR-语音转文字参数全保留 +PASS 1440 Qwen3-ASR-语音转文字默认无溢出 +PASS 1440 Qwen3-ASR-语音转文字旧图归还焦点 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕 未检查 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕参数全保留 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点 +PASS 1440 Minimax-H3提示词增强默认中文用途 +PASS 1440 Minimax-H3提示词增强源审校默认折叠 +PASS 1440 Minimax-H3提示词增强技术范围默认折叠 +PASS 1440 Minimax-H3提示词增强默认无执行计数/实现标识 +PASS 1440 Minimax-H3提示词增强默认依据限制可见 +PASS 1440 Minimax-H3提示词增强 说明未定稿 +PASS 1440 Minimax-H3提示词增强 未验证实跑 +PASS 1440 Minimax-H3提示词增强 未检查 +PASS 1440 Minimax-H3提示词增强停用/时间戳空 +PASS 1440 Minimax-H3提示词增强参数全保留 +PASS 1440 Minimax-H3提示词增强默认无溢出 +PASS 1440 Minimax-H3提示词增强旧图归还焦点 +PASS 1440 音频转MP3格式默认中文用途 +PASS 1440 音频转MP3格式源审校默认折叠 +PASS 1440 音频转MP3格式技术范围默认折叠 +PASS 1440 音频转MP3格式默认无执行计数/实现标识 +PASS 1440 音频转MP3格式默认依据限制可见 +PASS 1440 音频转MP3格式 说明未定稿 +PASS 1440 音频转MP3格式 未验证实跑 +PASS 1440 音频转MP3格式 未检查 +PASS 1440 音频转MP3格式停用/时间戳空 +PASS 1440 音频转MP3格式参数全保留 +PASS 1440 音频转MP3格式默认无溢出 +PASS 1440 音频转MP3格式旧图归还焦点 +PASS 1440 音频人声分离默认中文用途 +PASS 1440 音频人声分离源审校默认折叠 +PASS 1440 音频人声分离技术范围默认折叠 +PASS 1440 音频人声分离默认无执行计数/实现标识 +PASS 1440 音频人声分离默认依据限制可见 +PASS 1440 音频人声分离 说明未定稿 +PASS 1440 音频人声分离 未验证实跑 +PASS 1440 音频人声分离 未检查 +PASS 1440 音频人声分离停用/时间戳空 +PASS 1440 音频人声分离参数全保留 +PASS 1440 音频人声分离默认无溢出 +PASS 1440 音频人声分离旧图归还焦点 +PASS 1440 视频-音频分离默认中文用途 +PASS 1440 视频-音频分离源审校默认折叠 +PASS 1440 视频-音频分离技术范围默认折叠 +PASS 1440 视频-音频分离默认无执行计数/实现标识 +PASS 1440 视频-音频分离默认依据限制可见 +PASS 1440 视频-音频分离 说明未定稿 +PASS 1440 视频-音频分离 未验证实跑 +PASS 1440 视频-音频分离 未检查 +PASS 1440 视频-音频分离停用/时间戳空 +PASS 1440 视频-音频分离参数全保留 +PASS 1440 视频-音频分离默认无溢出 +PASS 1440 视频-音频分离旧图归还焦点 +PASS 1440 图像嵌入文字描述默认中文用途 +PASS 1440 图像嵌入文字描述源审校默认折叠 +PASS 1440 图像嵌入文字描述技术范围默认折叠 +PASS 1440 图像嵌入文字描述默认无执行计数/实现标识 +PASS 1440 图像嵌入文字描述默认依据限制可见 +PASS 1440 图像嵌入文字描述 说明未定稿 +PASS 1440 图像嵌入文字描述 未验证实跑 +PASS 1440 图像嵌入文字描述 未检查 +PASS 1440 图像嵌入文字描述停用/时间戳空 +PASS 1440 图像嵌入文字描述参数全保留 +PASS 1440 图像嵌入文字描述默认无溢出 +PASS 1440 图像嵌入文字描述旧图归还焦点 +PASS 390 多视频合成分屏展示默认中文用途 +PASS 390 多视频合成分屏展示源审校默认折叠 +PASS 390 多视频合成分屏展示技术范围默认折叠 +PASS 390 多视频合成分屏展示默认无执行计数/实现标识 +PASS 390 多视频合成分屏展示默认依据限制可见 +PASS 390 多视频合成分屏展示 说明未定稿 +PASS 390 多视频合成分屏展示 未验证实跑 +PASS 390 多视频合成分屏展示 未检查 +PASS 390 多视频合成分屏展示停用/时间戳空 +PASS 390 多视频合成分屏展示参数全保留 +PASS 390 多视频合成分屏展示默认无溢出 +PASS 390 多视频合成分屏展示原用途/源路径展开保留 +PASS 390 多视频合成分屏展示展开流程 0 +PASS 390 多视频合成分屏展示展开流程 1 +PASS 390 多视频合成分屏展示展开流程 2 +PASS 390 多视频合成分屏展示展开流程 3 +PASS 390 多视频合成分屏展示展开流程 4 +PASS 390 多视频合成分屏展示展开流程 5 +PASS 390 多视频合成分屏展示展开流程 6 +PASS 390 多视频合成分屏展示展开流程 7 +PASS 390 多视频合成分屏展示展开流程 8 +PASS 390 多视频合成分屏展示展开流程 9 +PASS 390 多视频合成分屏展示展开流程 10 +PASS 390 多视频合成分屏展示展开流程 11 +PASS 390 多视频合成分屏展示展开流程 12 +PASS 390 多视频合成分屏展示展开流程 13 +PASS 390 多视频合成分屏展示展开流程 14 +PASS 390 多视频合成分屏展示展开流程 15 +PASS 390 多视频合成分屏展示展开流程 16 +PASS 390 多视频合成分屏展示展开流程 17 +PASS 390 多视频合成分屏展示展开流程 18 +PASS 390 多视频合成分屏展示展开流程 19 +PASS 390 多视频合成分屏展示展开流程 20 +PASS 390 多视频合成分屏展示展开流程 21 +PASS 390 多视频合成分屏展示展开流程 22 +PASS 390 多视频合成分屏展示展开流程 23 +PASS 390 多视频合成分屏展示展开流程 24 +PASS 390 多视频合成分屏展示展开流程 25 +PASS 390 多视频合成分屏展示展开流程 26 +PASS 390 多视频合成分屏展示展开流程 27 +PASS 390 多视频合成分屏展示展开流程 28 +PASS 390 多视频合成分屏展示展开流程 29 +PASS 390 多视频合成分屏展示展开流程 30 +PASS 390 多视频合成分屏展示展开流程 31 +PASS 390 多视频合成分屏展示展开流程 32 +PASS 390 多视频合成分屏展示展开流程 33 +PASS 390 多视频合成分屏展示展开流程 34 +PASS 390 多视频合成分屏展示展开流程 35 +PASS 390 多视频合成分屏展示展开流程 36 +PASS 390 多视频合成分屏展示展开流程 37 +PASS 390 多视频合成分屏展示原件摘要可展开 +PASS 390 多视频合成分屏展示版本 0 +PASS 390 多视频合成分屏展示版本 1 +PASS 390 多视频合成分屏展示版本 2 +PASS 390 多视频合成分屏展示版本 3 +PASS 390 多视频合成分屏展示版本 4 +PASS 390 2.inputcount键盘展开 +PASS 390 2.inputcount用途/单位/范围/来源条件 +PASS 390 2.inputcount精确保留现值 +PASS 390 2.inputcount指针默认折叠 +PASS 390 2.inputcount精确源码/类型/指针 +PASS 390 2.inputcount展开无溢出 +PASS 390 2.direction键盘展开 +PASS 390 2.direction用途/单位/范围/来源条件 +PASS 390 2.direction精确保留现值 +PASS 390 2.direction指针默认折叠 +PASS 390 2.direction精确源码/类型/指针 +PASS 390 2.direction展开无溢出 +PASS 390 2.match_image_size键盘展开 +PASS 390 2.match_image_size用途/单位/范围/来源条件 +PASS 390 2.match_image_size精确保留现值 +PASS 390 2.match_image_size指针默认折叠 +PASS 390 2.match_image_size精确源码/类型/指针 +PASS 390 2.match_image_size展开无溢出 +PASS 390 2.saved_position_3键盘展开 +PASS 390 2.saved_position_3用途/单位/范围/来源条件 +PASS 390 2.saved_position_3精确保留现值 +PASS 390 2.saved_position_3指针默认折叠 +PASS 390 2.saved_position_3精确源码/类型/指针 +PASS 390 2.saved_position_3展开无溢出 +PASS 390 1.inputcount键盘展开 +PASS 390 1.inputcount用途/单位/范围/来源条件 +PASS 390 1.inputcount精确保留现值 +PASS 390 1.inputcount指针默认折叠 +PASS 390 1.inputcount精确源码/类型/指针 +PASS 390 1.inputcount展开无溢出 +PASS 390 1.direction键盘展开 +PASS 390 1.direction用途/单位/范围/来源条件 +PASS 390 1.direction精确保留现值 +PASS 390 1.direction指针默认折叠 +PASS 390 1.direction精确源码/类型/指针 +PASS 390 1.direction展开无溢出 +PASS 390 1.match_image_size键盘展开 +PASS 390 1.match_image_size用途/单位/范围/来源条件 +PASS 390 1.match_image_size精确保留现值 +PASS 390 1.match_image_size指针默认折叠 +PASS 390 1.match_image_size精确源码/类型/指针 +PASS 390 1.match_image_size展开无溢出 +PASS 390 1.saved_position_3键盘展开 +PASS 390 1.saved_position_3用途/单位/范围/来源条件 +PASS 390 1.saved_position_3精确保留现值 +PASS 390 1.saved_position_3指针默认折叠 +PASS 390 1.saved_position_3精确源码/类型/指针 +PASS 390 1.saved_position_3展开无溢出 +PASS 390 3.frame_rate键盘展开 +PASS 390 3.frame_rate用途/单位/范围/来源条件 +PASS 390 3.frame_rate精确保留现值 +PASS 390 3.frame_rate指针默认折叠 +PASS 390 3.frame_rate精确源码/类型/指针 +PASS 390 3.frame_rate展开无溢出 +PASS 390 3.loop_count键盘展开 +PASS 390 3.loop_count用途/单位/范围/来源条件 +PASS 390 3.loop_count精确保留现值 +PASS 390 3.loop_count指针默认折叠 +PASS 390 3.loop_count精确源码/类型/指针 +PASS 390 3.loop_count展开无溢出 +PASS 390 3.filename_prefix键盘展开 +PASS 390 3.filename_prefix用途/单位/范围/来源条件 +PASS 390 3.filename_prefix精确保留现值 +PASS 390 3.filename_prefix指针默认折叠 +PASS 390 3.filename_prefix精确源码/类型/指针 +PASS 390 3.filename_prefix展开无溢出 +PASS 390 3.format键盘展开 +PASS 390 3.format用途/单位/范围/来源条件 +PASS 390 3.format精确保留现值 +PASS 390 3.format指针默认折叠 +PASS 390 3.format精确源码/类型/指针 +PASS 390 3.format展开无溢出 +PASS 390 3.pix_fmt键盘展开 +PASS 390 3.pix_fmt用途/单位/范围/来源条件 +PASS 390 3.pix_fmt精确保留现值 +PASS 390 3.pix_fmt指针默认折叠 +PASS 390 3.pix_fmt精确源码/类型/指针 +PASS 390 3.pix_fmt展开无溢出 +PASS 390 3.crf键盘展开 +PASS 390 3.crf用途/单位/范围/来源条件 +PASS 390 3.crf精确保留现值 +PASS 390 3.crf指针默认折叠 +PASS 390 3.crf精确源码/类型/指针 +PASS 390 3.crf展开无溢出 +PASS 390 3.save_metadata键盘展开 +PASS 390 3.save_metadata用途/单位/范围/来源条件 +PASS 390 3.save_metadata精确保留现值 +PASS 390 3.save_metadata指针默认折叠 +PASS 390 3.save_metadata精确源码/类型/指针 +PASS 390 3.save_metadata展开无溢出 +PASS 390 3.trim_to_audio键盘展开 +PASS 390 3.trim_to_audio用途/单位/范围/来源条件 +PASS 390 3.trim_to_audio精确保留现值 +PASS 390 3.trim_to_audio指针默认折叠 +PASS 390 3.trim_to_audio精确源码/类型/指针 +PASS 390 3.trim_to_audio展开无溢出 +PASS 390 3.pingpong键盘展开 +PASS 390 3.pingpong用途/单位/范围/来源条件 +PASS 390 3.pingpong精确保留现值 +PASS 390 3.pingpong指针默认折叠 +PASS 390 3.pingpong精确源码/类型/指针 +PASS 390 3.pingpong展开无溢出 +PASS 390 3.save_output键盘展开 +PASS 390 3.save_output用途/单位/范围/来源条件 +PASS 390 3.save_output精确保留现值 +PASS 390 3.save_output指针默认折叠 +PASS 390 3.save_output精确源码/类型/指针 +PASS 390 3.save_output展开无溢出 +PASS 390 3.videopreview键盘展开 +PASS 390 3.videopreview用途/单位/范围/来源条件 +PASS 390 3.videopreview精确保留现值 +PASS 390 3.videopreview指针默认折叠 +PASS 390 3.videopreview精确源码/类型/指针 +PASS 390 3.videopreview展开无溢出 +PASS 390 7.width键盘展开 +PASS 390 7.width用途/单位/范围/来源条件 +PASS 390 7.width精确保留现值 +PASS 390 7.width指针默认折叠 +PASS 390 7.width精确源码/类型/指针 +PASS 390 7.width展开无溢出 +PASS 390 7.height键盘展开 +PASS 390 7.height用途/单位/范围/来源条件 +PASS 390 7.height精确保留现值 +PASS 390 7.height指针默认折叠 +PASS 390 7.height精确源码/类型/指针 +PASS 390 7.height展开无溢出 +PASS 390 7.upscale_method键盘展开 +PASS 390 7.upscale_method用途/单位/范围/来源条件 +PASS 390 7.upscale_method精确保留现值 +PASS 390 7.upscale_method指针默认折叠 +PASS 390 7.upscale_method精确源码/类型/指针 +PASS 390 7.upscale_method展开无溢出 +PASS 390 7.keep_proportion键盘展开 +PASS 390 7.keep_proportion用途/单位/范围/来源条件 +PASS 390 7.keep_proportion精确保留现值 +PASS 390 7.keep_proportion指针默认折叠 +PASS 390 7.keep_proportion精确源码/类型/指针 +PASS 390 7.keep_proportion展开无溢出 +PASS 390 7.pad_color键盘展开 +PASS 390 7.pad_color用途/单位/范围/来源条件 +PASS 390 7.pad_color精确保留现值 +PASS 390 7.pad_color指针默认折叠 +PASS 390 7.pad_color精确源码/类型/指针 +PASS 390 7.pad_color展开无溢出 +PASS 390 7.crop_position键盘展开 +PASS 390 7.crop_position用途/单位/范围/来源条件 +PASS 390 7.crop_position精确保留现值 +PASS 390 7.crop_position指针默认折叠 +PASS 390 7.crop_position精确源码/类型/指针 +PASS 390 7.crop_position展开无溢出 +PASS 390 7.divisible_by键盘展开 +PASS 390 7.divisible_by用途/单位/范围/来源条件 +PASS 390 7.divisible_by精确保留现值 +PASS 390 7.divisible_by指针默认折叠 +PASS 390 7.divisible_by精确源码/类型/指针 +PASS 390 7.divisible_by展开无溢出 +PASS 390 7.device键盘展开 +PASS 390 7.device用途/单位/范围/来源条件 +PASS 390 7.device精确保留现值 +PASS 390 7.device指针默认折叠 +PASS 390 7.device精确源码/类型/指针 +PASS 390 7.device展开无溢出 +PASS 390 5.width键盘展开 +PASS 390 5.width用途/单位/范围/来源条件 +PASS 390 5.width精确保留现值 +PASS 390 5.width指针默认折叠 +PASS 390 5.width精确源码/类型/指针 +PASS 390 5.width展开无溢出 +PASS 390 5.height键盘展开 +PASS 390 5.height用途/单位/范围/来源条件 +PASS 390 5.height精确保留现值 +PASS 390 5.height指针默认折叠 +PASS 390 5.height精确源码/类型/指针 +PASS 390 5.height展开无溢出 +PASS 390 5.upscale_method键盘展开 +PASS 390 5.upscale_method用途/单位/范围/来源条件 +PASS 390 5.upscale_method精确保留现值 +PASS 390 5.upscale_method指针默认折叠 +PASS 390 5.upscale_method精确源码/类型/指针 +PASS 390 5.upscale_method展开无溢出 +PASS 390 5.keep_proportion键盘展开 +PASS 390 5.keep_proportion用途/单位/范围/来源条件 +PASS 390 5.keep_proportion精确保留现值 +PASS 390 5.keep_proportion指针默认折叠 +PASS 390 5.keep_proportion精确源码/类型/指针 +PASS 390 5.keep_proportion展开无溢出 +PASS 390 5.pad_color键盘展开 +PASS 390 5.pad_color用途/单位/范围/来源条件 +PASS 390 5.pad_color精确保留现值 +PASS 390 5.pad_color指针默认折叠 +PASS 390 5.pad_color精确源码/类型/指针 +PASS 390 5.pad_color展开无溢出 +PASS 390 5.crop_position键盘展开 +PASS 390 5.crop_position用途/单位/范围/来源条件 +PASS 390 5.crop_position精确保留现值 +PASS 390 5.crop_position指针默认折叠 +PASS 390 5.crop_position精确源码/类型/指针 +PASS 390 5.crop_position展开无溢出 +PASS 390 5.divisible_by键盘展开 +PASS 390 5.divisible_by用途/单位/范围/来源条件 +PASS 390 5.divisible_by精确保留现值 +PASS 390 5.divisible_by指针默认折叠 +PASS 390 5.divisible_by精确源码/类型/指针 +PASS 390 5.divisible_by展开无溢出 +PASS 390 5.device键盘展开 +PASS 390 5.device用途/单位/范围/来源条件 +PASS 390 5.device精确保留现值 +PASS 390 5.device指针默认折叠 +PASS 390 5.device精确源码/类型/指针 +PASS 390 5.device展开无溢出 +PASS 390 8.video键盘展开 +PASS 390 8.video用途/单位/范围/来源条件 +PASS 390 8.video精确保留现值 +PASS 390 8.video指针默认折叠 +PASS 390 8.video精确源码/类型/指针 +PASS 390 8.video展开无溢出 +PASS 390 8.force_rate键盘展开 +PASS 390 8.force_rate用途/单位/范围/来源条件 +PASS 390 8.force_rate精确保留现值 +PASS 390 8.force_rate指针默认折叠 +PASS 390 8.force_rate精确源码/类型/指针 +PASS 390 8.force_rate展开无溢出 +PASS 390 8.custom_width键盘展开 +PASS 390 8.custom_width用途/单位/范围/来源条件 +PASS 390 8.custom_width精确保留现值 +PASS 390 8.custom_width指针默认折叠 +PASS 390 8.custom_width精确源码/类型/指针 +PASS 390 8.custom_width展开无溢出 +PASS 390 8.custom_height键盘展开 +PASS 390 8.custom_height用途/单位/范围/来源条件 +PASS 390 8.custom_height精确保留现值 +PASS 390 8.custom_height指针默认折叠 +PASS 390 8.custom_height精确源码/类型/指针 +PASS 390 8.custom_height展开无溢出 +PASS 390 8.frame_load_cap键盘展开 +PASS 390 8.frame_load_cap用途/单位/范围/来源条件 +PASS 390 8.frame_load_cap精确保留现值 +PASS 390 8.frame_load_cap指针默认折叠 +PASS 390 8.frame_load_cap精确源码/类型/指针 +PASS 390 8.frame_load_cap展开无溢出 +PASS 390 8.skip_first_frames键盘展开 +PASS 390 8.skip_first_frames用途/单位/范围/来源条件 +PASS 390 8.skip_first_frames精确保留现值 +PASS 390 8.skip_first_frames指针默认折叠 +PASS 390 8.skip_first_frames精确源码/类型/指针 +PASS 390 8.skip_first_frames展开无溢出 +PASS 390 8.select_every_nth键盘展开 +PASS 390 8.select_every_nth用途/单位/范围/来源条件 +PASS 390 8.select_every_nth精确保留现值 +PASS 390 8.select_every_nth指针默认折叠 +PASS 390 8.select_every_nth精确源码/类型/指针 +PASS 390 8.select_every_nth展开无溢出 +PASS 390 8.format键盘展开 +PASS 390 8.format用途/单位/范围/来源条件 +PASS 390 8.format精确保留现值 +PASS 390 8.format指针默认折叠 +PASS 390 8.format精确源码/类型/指针 +PASS 390 8.format展开无溢出 +PASS 390 8.videopreview键盘展开 +PASS 390 8.videopreview用途/单位/范围/来源条件 +PASS 390 8.videopreview精确保留现值 +PASS 390 8.videopreview指针默认折叠 +PASS 390 8.videopreview精确源码/类型/指针 +PASS 390 8.videopreview展开无溢出 +PASS 390 6.video键盘展开 +PASS 390 6.video用途/单位/范围/来源条件 +PASS 390 6.video精确保留现值 +PASS 390 6.video指针默认折叠 +PASS 390 6.video精确源码/类型/指针 +PASS 390 6.video展开无溢出 +PASS 390 6.force_rate键盘展开 +PASS 390 6.force_rate用途/单位/范围/来源条件 +PASS 390 6.force_rate精确保留现值 +PASS 390 6.force_rate指针默认折叠 +PASS 390 6.force_rate精确源码/类型/指针 +PASS 390 6.force_rate展开无溢出 +PASS 390 6.custom_width键盘展开 +PASS 390 6.custom_width用途/单位/范围/来源条件 +PASS 390 6.custom_width精确保留现值 +PASS 390 6.custom_width指针默认折叠 +PASS 390 6.custom_width精确源码/类型/指针 +PASS 390 6.custom_width展开无溢出 +PASS 390 6.custom_height键盘展开 +PASS 390 6.custom_height用途/单位/范围/来源条件 +PASS 390 6.custom_height精确保留现值 +PASS 390 6.custom_height指针默认折叠 +PASS 390 6.custom_height精确源码/类型/指针 +PASS 390 6.custom_height展开无溢出 +PASS 390 6.frame_load_cap键盘展开 +PASS 390 6.frame_load_cap用途/单位/范围/来源条件 +PASS 390 6.frame_load_cap精确保留现值 +PASS 390 6.frame_load_cap指针默认折叠 +PASS 390 6.frame_load_cap精确源码/类型/指针 +PASS 390 6.frame_load_cap展开无溢出 +PASS 390 6.skip_first_frames键盘展开 +PASS 390 6.skip_first_frames用途/单位/范围/来源条件 +PASS 390 6.skip_first_frames精确保留现值 +PASS 390 6.skip_first_frames指针默认折叠 +PASS 390 6.skip_first_frames精确源码/类型/指针 +PASS 390 6.skip_first_frames展开无溢出 +PASS 390 6.select_every_nth键盘展开 +PASS 390 6.select_every_nth用途/单位/范围/来源条件 +PASS 390 6.select_every_nth精确保留现值 +PASS 390 6.select_every_nth指针默认折叠 +PASS 390 6.select_every_nth精确源码/类型/指针 +PASS 390 6.select_every_nth展开无溢出 +PASS 390 6.format键盘展开 +PASS 390 6.format用途/单位/范围/来源条件 +PASS 390 6.format精确保留现值 +PASS 390 6.format指针默认折叠 +PASS 390 6.format精确源码/类型/指针 +PASS 390 6.format展开无溢出 +PASS 390 6.videopreview键盘展开 +PASS 390 6.videopreview用途/单位/范围/来源条件 +PASS 390 6.videopreview精确保留现值 +PASS 390 6.videopreview指针默认折叠 +PASS 390 6.videopreview精确源码/类型/指针 +PASS 390 6.videopreview展开无溢出 +PASS 390 4.video键盘展开 +PASS 390 4.video用途/单位/范围/来源条件 +PASS 390 4.video精确保留现值 +PASS 390 4.video指针默认折叠 +PASS 390 4.video精确源码/类型/指针 +PASS 390 4.video展开无溢出 +PASS 390 4.force_rate键盘展开 +PASS 390 4.force_rate用途/单位/范围/来源条件 +PASS 390 4.force_rate精确保留现值 +PASS 390 4.force_rate指针默认折叠 +PASS 390 4.force_rate精确源码/类型/指针 +PASS 390 4.force_rate展开无溢出 +PASS 390 4.custom_width键盘展开 +PASS 390 4.custom_width用途/单位/范围/来源条件 +PASS 390 4.custom_width精确保留现值 +PASS 390 4.custom_width指针默认折叠 +PASS 390 4.custom_width精确源码/类型/指针 +PASS 390 4.custom_width展开无溢出 +PASS 390 4.custom_height键盘展开 +PASS 390 4.custom_height用途/单位/范围/来源条件 +PASS 390 4.custom_height精确保留现值 +PASS 390 4.custom_height指针默认折叠 +PASS 390 4.custom_height精确源码/类型/指针 +PASS 390 4.custom_height展开无溢出 +PASS 390 4.frame_load_cap键盘展开 +PASS 390 4.frame_load_cap用途/单位/范围/来源条件 +PASS 390 4.frame_load_cap精确保留现值 +PASS 390 4.frame_load_cap指针默认折叠 +PASS 390 4.frame_load_cap精确源码/类型/指针 +PASS 390 4.frame_load_cap展开无溢出 +PASS 390 4.skip_first_frames键盘展开 +PASS 390 4.skip_first_frames用途/单位/范围/来源条件 +PASS 390 4.skip_first_frames精确保留现值 +PASS 390 4.skip_first_frames指针默认折叠 +PASS 390 4.skip_first_frames精确源码/类型/指针 +PASS 390 4.skip_first_frames展开无溢出 +PASS 390 4.select_every_nth键盘展开 +PASS 390 4.select_every_nth用途/单位/范围/来源条件 +PASS 390 4.select_every_nth精确保留现值 +PASS 390 4.select_every_nth指针默认折叠 +PASS 390 4.select_every_nth精确源码/类型/指针 +PASS 390 4.select_every_nth展开无溢出 +PASS 390 4.format键盘展开 +PASS 390 4.format用途/单位/范围/来源条件 +PASS 390 4.format精确保留现值 +PASS 390 4.format指针默认折叠 +PASS 390 4.format精确源码/类型/指针 +PASS 390 4.format展开无溢出 +PASS 390 4.videopreview键盘展开 +PASS 390 4.videopreview用途/单位/范围/来源条件 +PASS 390 4.videopreview精确保留现值 +PASS 390 4.videopreview指针默认折叠 +PASS 390 4.videopreview精确源码/类型/指针 +PASS 390 4.videopreview展开无溢出 +PASS 390 10.inputcount键盘展开 +PASS 390 10.inputcount用途/单位/范围/来源条件 +PASS 390 10.inputcount精确保留现值 +PASS 390 10.inputcount指针默认折叠 +PASS 390 10.inputcount精确源码/类型/指针 +PASS 390 10.inputcount展开无溢出 +PASS 390 10.direction键盘展开 +PASS 390 10.direction用途/单位/范围/来源条件 +PASS 390 10.direction精确保留现值 +PASS 390 10.direction指针默认折叠 +PASS 390 10.direction精确源码/类型/指针 +PASS 390 10.direction展开无溢出 +PASS 390 10.match_image_size键盘展开 +PASS 390 10.match_image_size用途/单位/范围/来源条件 +PASS 390 10.match_image_size精确保留现值 +PASS 390 10.match_image_size指针默认折叠 +PASS 390 10.match_image_size精确源码/类型/指针 +PASS 390 10.match_image_size展开无溢出 +PASS 390 10.saved_position_3键盘展开 +PASS 390 10.saved_position_3用途/单位/范围/来源条件 +PASS 390 10.saved_position_3精确保留现值 +PASS 390 10.saved_position_3指针默认折叠 +PASS 390 10.saved_position_3精确源码/类型/指针 +PASS 390 10.saved_position_3展开无溢出 +PASS 390 11.inputcount键盘展开 +PASS 390 11.inputcount用途/单位/范围/来源条件 +PASS 390 11.inputcount精确保留现值 +PASS 390 11.inputcount指针默认折叠 +PASS 390 11.inputcount精确源码/类型/指针 +PASS 390 11.inputcount展开无溢出 +PASS 390 11.direction键盘展开 +PASS 390 11.direction用途/单位/范围/来源条件 +PASS 390 11.direction精确保留现值 +PASS 390 11.direction指针默认折叠 +PASS 390 11.direction精确源码/类型/指针 +PASS 390 11.direction展开无溢出 +PASS 390 11.match_image_size键盘展开 +PASS 390 11.match_image_size用途/单位/范围/来源条件 +PASS 390 11.match_image_size精确保留现值 +PASS 390 11.match_image_size指针默认折叠 +PASS 390 11.match_image_size精确源码/类型/指针 +PASS 390 11.match_image_size展开无溢出 +PASS 390 11.saved_position_3键盘展开 +PASS 390 11.saved_position_3用途/单位/范围/来源条件 +PASS 390 11.saved_position_3精确保留现值 +PASS 390 11.saved_position_3指针默认折叠 +PASS 390 11.saved_position_3精确源码/类型/指针 +PASS 390 11.saved_position_3展开无溢出 +PASS 390 12.frame_rate键盘展开 +PASS 390 12.frame_rate用途/单位/范围/来源条件 +PASS 390 12.frame_rate精确保留现值 +PASS 390 12.frame_rate指针默认折叠 +PASS 390 12.frame_rate精确源码/类型/指针 +PASS 390 12.frame_rate展开无溢出 +PASS 390 12.loop_count键盘展开 +PASS 390 12.loop_count用途/单位/范围/来源条件 +PASS 390 12.loop_count精确保留现值 +PASS 390 12.loop_count指针默认折叠 +PASS 390 12.loop_count精确源码/类型/指针 +PASS 390 12.loop_count展开无溢出 +PASS 390 12.filename_prefix键盘展开 +PASS 390 12.filename_prefix用途/单位/范围/来源条件 +PASS 390 12.filename_prefix精确保留现值 +PASS 390 12.filename_prefix指针默认折叠 +PASS 390 12.filename_prefix精确源码/类型/指针 +PASS 390 12.filename_prefix展开无溢出 +PASS 390 12.format键盘展开 +PASS 390 12.format用途/单位/范围/来源条件 +PASS 390 12.format精确保留现值 +PASS 390 12.format指针默认折叠 +PASS 390 12.format精确源码/类型/指针 +PASS 390 12.format展开无溢出 +PASS 390 12.pix_fmt键盘展开 +PASS 390 12.pix_fmt用途/单位/范围/来源条件 +PASS 390 12.pix_fmt精确保留现值 +PASS 390 12.pix_fmt指针默认折叠 +PASS 390 12.pix_fmt精确源码/类型/指针 +PASS 390 12.pix_fmt展开无溢出 +PASS 390 12.crf键盘展开 +PASS 390 12.crf用途/单位/范围/来源条件 +PASS 390 12.crf精确保留现值 +PASS 390 12.crf指针默认折叠 +PASS 390 12.crf精确源码/类型/指针 +PASS 390 12.crf展开无溢出 +PASS 390 12.save_metadata键盘展开 +PASS 390 12.save_metadata用途/单位/范围/来源条件 +PASS 390 12.save_metadata精确保留现值 +PASS 390 12.save_metadata指针默认折叠 +PASS 390 12.save_metadata精确源码/类型/指针 +PASS 390 12.save_metadata展开无溢出 +PASS 390 12.trim_to_audio键盘展开 +PASS 390 12.trim_to_audio用途/单位/范围/来源条件 +PASS 390 12.trim_to_audio精确保留现值 +PASS 390 12.trim_to_audio指针默认折叠 +PASS 390 12.trim_to_audio精确源码/类型/指针 +PASS 390 12.trim_to_audio展开无溢出 +PASS 390 12.pingpong键盘展开 +PASS 390 12.pingpong用途/单位/范围/来源条件 +PASS 390 12.pingpong精确保留现值 +PASS 390 12.pingpong指针默认折叠 +PASS 390 12.pingpong精确源码/类型/指针 +PASS 390 12.pingpong展开无溢出 +PASS 390 12.save_output键盘展开 +PASS 390 12.save_output用途/单位/范围/来源条件 +PASS 390 12.save_output精确保留现值 +PASS 390 12.save_output指针默认折叠 +PASS 390 12.save_output精确源码/类型/指针 +PASS 390 12.save_output展开无溢出 +PASS 390 12.videopreview键盘展开 +PASS 390 12.videopreview用途/单位/范围/来源条件 +PASS 390 12.videopreview精确保留现值 +PASS 390 12.videopreview指针默认折叠 +PASS 390 12.videopreview精确源码/类型/指针 +PASS 390 12.videopreview展开无溢出 +PASS 390 17.video键盘展开 +PASS 390 17.video用途/单位/范围/来源条件 +PASS 390 17.video精确保留现值 +PASS 390 17.video指针默认折叠 +PASS 390 17.video精确源码/类型/指针 +PASS 390 17.video展开无溢出 +PASS 390 17.force_rate键盘展开 +PASS 390 17.force_rate用途/单位/范围/来源条件 +PASS 390 17.force_rate精确保留现值 +PASS 390 17.force_rate指针默认折叠 +PASS 390 17.force_rate精确源码/类型/指针 +PASS 390 17.force_rate展开无溢出 +PASS 390 17.custom_width键盘展开 +PASS 390 17.custom_width用途/单位/范围/来源条件 +PASS 390 17.custom_width精确保留现值 +PASS 390 17.custom_width指针默认折叠 +PASS 390 17.custom_width精确源码/类型/指针 +PASS 390 17.custom_width展开无溢出 +PASS 390 17.custom_height键盘展开 +PASS 390 17.custom_height用途/单位/范围/来源条件 +PASS 390 17.custom_height精确保留现值 +PASS 390 17.custom_height指针默认折叠 +PASS 390 17.custom_height精确源码/类型/指针 +PASS 390 17.custom_height展开无溢出 +PASS 390 17.frame_load_cap键盘展开 +PASS 390 17.frame_load_cap用途/单位/范围/来源条件 +PASS 390 17.frame_load_cap精确保留现值 +PASS 390 17.frame_load_cap指针默认折叠 +PASS 390 17.frame_load_cap精确源码/类型/指针 +PASS 390 17.frame_load_cap展开无溢出 +PASS 390 17.skip_first_frames键盘展开 +PASS 390 17.skip_first_frames用途/单位/范围/来源条件 +PASS 390 17.skip_first_frames精确保留现值 +PASS 390 17.skip_first_frames指针默认折叠 +PASS 390 17.skip_first_frames精确源码/类型/指针 +PASS 390 17.skip_first_frames展开无溢出 +PASS 390 17.select_every_nth键盘展开 +PASS 390 17.select_every_nth用途/单位/范围/来源条件 +PASS 390 17.select_every_nth精确保留现值 +PASS 390 17.select_every_nth指针默认折叠 +PASS 390 17.select_every_nth精确源码/类型/指针 +PASS 390 17.select_every_nth展开无溢出 +PASS 390 17.format键盘展开 +PASS 390 17.format用途/单位/范围/来源条件 +PASS 390 17.format精确保留现值 +PASS 390 17.format指针默认折叠 +PASS 390 17.format精确源码/类型/指针 +PASS 390 17.format展开无溢出 +PASS 390 17.videopreview键盘展开 +PASS 390 17.videopreview用途/单位/范围/来源条件 +PASS 390 17.videopreview精确保留现值 +PASS 390 17.videopreview指针默认折叠 +PASS 390 17.videopreview精确源码/类型/指针 +PASS 390 17.videopreview展开无溢出 +PASS 390 16.video键盘展开 +PASS 390 16.video用途/单位/范围/来源条件 +PASS 390 16.video精确保留现值 +PASS 390 16.video指针默认折叠 +PASS 390 16.video精确源码/类型/指针 +PASS 390 16.video展开无溢出 +PASS 390 16.force_rate键盘展开 +PASS 390 16.force_rate用途/单位/范围/来源条件 +PASS 390 16.force_rate精确保留现值 +PASS 390 16.force_rate指针默认折叠 +PASS 390 16.force_rate精确源码/类型/指针 +PASS 390 16.force_rate展开无溢出 +PASS 390 16.custom_width键盘展开 +PASS 390 16.custom_width用途/单位/范围/来源条件 +PASS 390 16.custom_width精确保留现值 +PASS 390 16.custom_width指针默认折叠 +PASS 390 16.custom_width精确源码/类型/指针 +PASS 390 16.custom_width展开无溢出 +PASS 390 16.custom_height键盘展开 +PASS 390 16.custom_height用途/单位/范围/来源条件 +PASS 390 16.custom_height精确保留现值 +PASS 390 16.custom_height指针默认折叠 +PASS 390 16.custom_height精确源码/类型/指针 +PASS 390 16.custom_height展开无溢出 +PASS 390 16.frame_load_cap键盘展开 +PASS 390 16.frame_load_cap用途/单位/范围/来源条件 +PASS 390 16.frame_load_cap精确保留现值 +PASS 390 16.frame_load_cap指针默认折叠 +PASS 390 16.frame_load_cap精确源码/类型/指针 +PASS 390 16.frame_load_cap展开无溢出 +PASS 390 16.skip_first_frames键盘展开 +PASS 390 16.skip_first_frames用途/单位/范围/来源条件 +PASS 390 16.skip_first_frames精确保留现值 +PASS 390 16.skip_first_frames指针默认折叠 +PASS 390 16.skip_first_frames精确源码/类型/指针 +PASS 390 16.skip_first_frames展开无溢出 +PASS 390 16.select_every_nth键盘展开 +PASS 390 16.select_every_nth用途/单位/范围/来源条件 +PASS 390 16.select_every_nth精确保留现值 +PASS 390 16.select_every_nth指针默认折叠 +PASS 390 16.select_every_nth精确源码/类型/指针 +PASS 390 16.select_every_nth展开无溢出 +PASS 390 16.format键盘展开 +PASS 390 16.format用途/单位/范围/来源条件 +PASS 390 16.format精确保留现值 +PASS 390 16.format指针默认折叠 +PASS 390 16.format精确源码/类型/指针 +PASS 390 16.format展开无溢出 +PASS 390 16.videopreview键盘展开 +PASS 390 16.videopreview用途/单位/范围/来源条件 +PASS 390 16.videopreview精确保留现值 +PASS 390 16.videopreview指针默认折叠 +PASS 390 16.videopreview精确源码/类型/指针 +PASS 390 16.videopreview展开无溢出 +PASS 390Tab焦点保留 +PASS 390ShiftTab焦点保留 +PASS 390 多视频合成分屏展示关闭归还焦点 +PASS 390 图像4种添加水印节点默认中文用途 +PASS 390 图像4种添加水印节点源审校默认折叠 +PASS 390 图像4种添加水印节点技术范围默认折叠 +PASS 390 图像4种添加水印节点默认无执行计数/实现标识 +PASS 390 图像4种添加水印节点默认依据限制可见 +PASS 390 图像4种添加水印节点 说明未定稿 +PASS 390 图像4种添加水印节点 未验证实跑 +PASS 390 图像4种添加水印节点 未检查 +PASS 390 图像4种添加水印节点停用/时间戳空 +PASS 390 图像4种添加水印节点参数全保留 +PASS 390 图像4种添加水印节点默认无溢出 +PASS 390 图像4种添加水印节点旧图归还焦点 +PASS 390 birefnet_图像移除背景默认中文用途 +PASS 390 birefnet_图像移除背景源审校默认折叠 +PASS 390 birefnet_图像移除背景技术范围默认折叠 +PASS 390 birefnet_图像移除背景默认无执行计数/实现标识 +PASS 390 birefnet_图像移除背景默认依据限制可见 +PASS 390 birefnet_图像移除背景 说明未定稿 +PASS 390 birefnet_图像移除背景 未验证实跑 +PASS 390 birefnet_图像移除背景 未检查 +PASS 390 birefnet_图像移除背景停用/时间戳空 +PASS 390 birefnet_图像移除背景参数全保留 +PASS 390 birefnet_图像移除背景默认无溢出 +PASS 390 birefnet_图像移除背景旧图归还焦点 +PASS 390 加载本地latent解码默认中文用途 +PASS 390 加载本地latent解码源审校默认折叠 +PASS 390 加载本地latent解码技术范围默认折叠 +PASS 390 加载本地latent解码默认无执行计数/实现标识 +PASS 390 加载本地latent解码默认依据限制可见 +PASS 390 加载本地latent解码 说明未定稿 +PASS 390 加载本地latent解码 未验证实跑 +PASS 390 加载本地latent解码 未检查 +PASS 390 加载本地latent解码停用/时间戳空 +PASS 390 加载本地latent解码参数全保留 +PASS 390 加载本地latent解码默认无溢出 +PASS 390 加载本地latent解码旧图归还焦点 +PASS 390 截取视频每一帧默认中文用途 +PASS 390 截取视频每一帧源审校默认折叠 +PASS 390 截取视频每一帧技术范围默认折叠 +PASS 390 截取视频每一帧默认无执行计数/实现标识 +PASS 390 截取视频每一帧默认依据限制可见 +PASS 390 截取视频每一帧 说明未定稿 +PASS 390 截取视频每一帧 未验证实跑 +PASS 390 截取视频每一帧 未检查 +PASS 390 截取视频每一帧停用/时间戳空 +PASS 390 截取视频每一帧参数全保留 +PASS 390 截取视频每一帧默认无溢出 +PASS 390 截取视频每一帧旧图归还焦点 +PASS 390 双图像或视频合并显示默认中文用途 +PASS 390 双图像或视频合并显示源审校默认折叠 +PASS 390 双图像或视频合并显示技术范围默认折叠 +PASS 390 双图像或视频合并显示默认无执行计数/实现标识 +PASS 390 双图像或视频合并显示默认依据限制可见 +PASS 390 双图像或视频合并显示 说明未定稿 +PASS 390 双图像或视频合并显示 未验证实跑 +PASS 390 双图像或视频合并显示 未检查 +PASS 390 双图像或视频合并显示停用/时间戳空 +PASS 390 双图像或视频合并显示参数全保留 +PASS 390 双图像或视频合并显示默认无溢出 +PASS 390 双图像或视频合并显示旧图归还焦点 +PASS 390 视频转gif动图图片默认中文用途 +PASS 390 视频转gif动图图片源审校默认折叠 +PASS 390 视频转gif动图图片技术范围默认折叠 +PASS 390 视频转gif动图图片默认无执行计数/实现标识 +PASS 390 视频转gif动图图片默认依据限制可见 +PASS 390 视频转gif动图图片 说明未定稿 +PASS 390 视频转gif动图图片 未验证实跑 +PASS 390 视频转gif动图图片 未检查 +PASS 390 视频转gif动图图片停用/时间戳空 +PASS 390 视频转gif动图图片参数全保留 +PASS 390 视频转gif动图图片默认无溢出 +PASS 390 视频转gif动图图片旧图归还焦点 +PASS 390 加载图片合成视频默认中文用途 +PASS 390 加载图片合成视频源审校默认折叠 +PASS 390 加载图片合成视频技术范围默认折叠 +PASS 390 加载图片合成视频默认无执行计数/实现标识 +PASS 390 加载图片合成视频默认依据限制可见 +PASS 390 加载图片合成视频 说明未定稿 +PASS 390 加载图片合成视频 未验证实跑 +PASS 390 加载图片合成视频 未检查 +PASS 390 加载图片合成视频停用/时间戳空 +PASS 390 加载图片合成视频参数全保留 +PASS 390 加载图片合成视频默认无溢出 +PASS 390 加载图片合成视频旧图归还焦点 +PASS 390 视频倒放默认中文用途 +PASS 390 视频倒放源审校默认折叠 +PASS 390 视频倒放技术范围默认折叠 +PASS 390 视频倒放默认无执行计数/实现标识 +PASS 390 视频倒放默认依据限制可见 +PASS 390 视频倒放 说明未定稿 +PASS 390 视频倒放 未验证实跑 +PASS 390 视频倒放 未检查 +PASS 390 视频倒放停用/时间戳空 +PASS 390 视频倒放参数全保留 +PASS 390 视频倒放默认无溢出 +PASS 390 视频倒放旧图归还焦点 +PASS 390 NLF_视频人物动作骨架获取默认中文用途 +PASS 390 NLF_视频人物动作骨架获取源审校默认折叠 +PASS 390 NLF_视频人物动作骨架获取技术范围默认折叠 +PASS 390 NLF_视频人物动作骨架获取默认无执行计数/实现标识 +PASS 390 NLF_视频人物动作骨架获取默认依据限制可见 +PASS 390 NLF_视频人物动作骨架获取 说明未定稿 +PASS 390 NLF_视频人物动作骨架获取 未验证实跑 +PASS 390 NLF_视频人物动作骨架获取 未检查 +PASS 390 NLF_视频人物动作骨架获取停用/时间戳空 +PASS 390 NLF_视频人物动作骨架获取参数全保留 +PASS 390 NLF_视频人物动作骨架获取默认无溢出 +PASS 390 NLF_视频人物动作骨架获取旧图归还焦点 +PASS 390 openpose-video-姿态检测默认中文用途 +PASS 390 openpose-video-姿态检测源审校默认折叠 +PASS 390 openpose-video-姿态检测技术范围默认折叠 +PASS 390 openpose-video-姿态检测默认无执行计数/实现标识 +PASS 390 openpose-video-姿态检测默认依据限制可见 +PASS 390 openpose-video-姿态检测 说明未定稿 +PASS 390 openpose-video-姿态检测 未验证实跑 +PASS 390 openpose-video-姿态检测 未检查 +PASS 390 openpose-video-姿态检测停用/时间戳空 +PASS 390 openpose-video-姿态检测参数全保留 +PASS 390 openpose-video-姿态检测默认无溢出 +PASS 390 openpose-video-姿态检测旧图归还焦点 +PASS 390 sdpose_视频人物姿势骨架提取默认中文用途 +PASS 390 sdpose_视频人物姿势骨架提取源审校默认折叠 +PASS 390 sdpose_视频人物姿势骨架提取技术范围默认折叠 +PASS 390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识 +PASS 390 sdpose_视频人物姿势骨架提取默认依据限制可见 +PASS 390 sdpose_视频人物姿势骨架提取 说明未定稿 +PASS 390 sdpose_视频人物姿势骨架提取 未验证实跑 +PASS 390 sdpose_视频人物姿势骨架提取 未检查 +PASS 390 sdpose_视频人物姿势骨架提取停用/时间戳空 +PASS 390 sdpose_视频人物姿势骨架提取参数全保留 +PASS 390 sdpose_视频人物姿势骨架提取默认无溢出 +PASS 390 sdpose_视频人物姿势骨架提取旧图归还焦点 +PASS 390 gemma4_提示词反推(图像视频音频)默认中文用途 +PASS 390 gemma4_提示词反推(图像视频音频)源审校默认折叠 +PASS 390 gemma4_提示词反推(图像视频音频)技术范围默认折叠 +PASS 390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识 +PASS 390 gemma4_提示词反推(图像视频音频)默认依据限制可见 +PASS 390 gemma4_提示词反推(图像视频音频) 说明未定稿 +PASS 390 gemma4_提示词反推(图像视频音频) 未验证实跑 +PASS 390 gemma4_提示词反推(图像视频音频) 未检查 +PASS 390 gemma4_提示词反推(图像视频音频)停用/时间戳空 +PASS 390 gemma4_提示词反推(图像视频音频)参数全保留 +PASS 390 gemma4_提示词反推(图像视频音频)默认无溢出 +PASS 390 gemma4_提示词反推(图像视频音频)旧图归还焦点 +PASS 390 图像合并成四宫格默认中文用途 +PASS 390 图像合并成四宫格源审校默认折叠 +PASS 390 图像合并成四宫格技术范围默认折叠 +PASS 390 图像合并成四宫格默认无执行计数/实现标识 +PASS 390 图像合并成四宫格默认依据限制可见 +PASS 390 图像合并成四宫格 说明未定稿 +PASS 390 图像合并成四宫格 未验证实跑 +PASS 390 图像合并成四宫格 未检查 +PASS 390 图像合并成四宫格停用/时间戳空 +PASS 390 图像合并成四宫格参数全保留 +PASS 390 图像合并成四宫格默认无溢出 +PASS 390 图像合并成四宫格旧图归还焦点 +PASS 390 图像分割-多宫格分割默认中文用途 +PASS 390 图像分割-多宫格分割源审校默认折叠 +PASS 390 图像分割-多宫格分割技术范围默认折叠 +PASS 390 图像分割-多宫格分割默认无执行计数/实现标识 +PASS 390 图像分割-多宫格分割默认依据限制可见 +PASS 390 图像分割-多宫格分割 说明未定稿 +PASS 390 图像分割-多宫格分割 未验证实跑 +PASS 390 图像分割-多宫格分割 未检查 +PASS 390 图像分割-多宫格分割停用/时间戳空 +PASS 390 图像分割-多宫格分割参数全保留 +PASS 390 图像分割-多宫格分割默认无溢出 +PASS 390 图像分割-多宫格分割旧图归还焦点 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认中文用途 +PASS 390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠 +PASS 390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见 +PASS 390 Qwen_image2.1_图像编辑_背景移除 说明未定稿 +PASS 390 Qwen_image2.1_图像编辑_背景移除 未验证实跑 +PASS 390 Qwen_image2.1_图像编辑_背景移除 未检查 +PASS 390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空 +PASS 390 Qwen_image2.1_图像编辑_背景移除参数全保留 +PASS 390 Qwen_image2.1_图像编辑_背景移除默认无溢出 +PASS 390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认中文用途 +PASS 390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠 +PASS 390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑 +PASS 390 Qwen_image2.1_图像编辑_提示词增强 未检查 +PASS 390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空 +PASS 390 Qwen_image2.1_图像编辑_提示词增强参数全保留 +PASS 390 Qwen_image2.1_图像编辑_提示词增强默认无溢出 +PASS 390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点 +PASS 390 Qwen_image2.1_文生图_提示词增强默认中文用途 +PASS 390 Qwen_image2.1_文生图_提示词增强源审校默认折叠 +PASS 390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠 +PASS 390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识 +PASS 390 Qwen_image2.1_文生图_提示词增强默认依据限制可见 +PASS 390 Qwen_image2.1_文生图_提示词增强 说明未定稿 +PASS 390 Qwen_image2.1_文生图_提示词增强 未验证实跑 +PASS 390 Qwen_image2.1_文生图_提示词增强 未检查 +PASS 390 Qwen_image2.1_文生图_提示词增强停用/时间戳空 +PASS 390 Qwen_image2.1_文生图_提示词增强参数全保留 +PASS 390 Qwen_image2.1_文生图_提示词增强默认无溢出 +PASS 390 Qwen_image2.1_文生图_提示词增强旧图归还焦点 +PASS 390 ControlNet_aux_常用样例默认中文用途 +PASS 390 ControlNet_aux_常用样例源审校默认折叠 +PASS 390 ControlNet_aux_常用样例技术范围默认折叠 +PASS 390 ControlNet_aux_常用样例默认无执行计数/实现标识 +PASS 390 ControlNet_aux_常用样例默认依据限制可见 +PASS 390 ControlNet_aux_常用样例 说明未定稿 +PASS 390 ControlNet_aux_常用样例 未验证实跑 +PASS 390 ControlNet_aux_常用样例 未检查 +PASS 390 ControlNet_aux_常用样例停用/时间戳空 +PASS 390 ControlNet_aux_常用样例参数全保留 +PASS 390 ControlNet_aux_常用样例默认无溢出 +PASS 390 ControlNet_aux_常用样例旧图归还焦点 +PASS 390 Qwen3-ASR-语音转文字默认中文用途 +PASS 390 Qwen3-ASR-语音转文字源审校默认折叠 +PASS 390 Qwen3-ASR-语音转文字技术范围默认折叠 +PASS 390 Qwen3-ASR-语音转文字默认无执行计数/实现标识 +PASS 390 Qwen3-ASR-语音转文字默认依据限制可见 +PASS 390 Qwen3-ASR-语音转文字 说明未定稿 +PASS 390 Qwen3-ASR-语音转文字 未验证实跑 +PASS 390 Qwen3-ASR-语音转文字 未检查 +PASS 390 Qwen3-ASR-语音转文字停用/时间戳空 +PASS 390 Qwen3-ASR-语音转文字参数全保留 +PASS 390 Qwen3-ASR-语音转文字默认无溢出 +PASS 390 Qwen3-ASR-语音转文字旧图归还焦点 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认中文用途 +PASS 390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠 +PASS 390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑 +PASS 390 Qwen3-ASR-Subtitle语音转字幕 未检查 +PASS 390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空 +PASS 390 Qwen3-ASR-Subtitle语音转字幕参数全保留 +PASS 390 Qwen3-ASR-Subtitle语音转字幕默认无溢出 +PASS 390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点 +PASS 390 Minimax-H3提示词增强默认中文用途 +PASS 390 Minimax-H3提示词增强源审校默认折叠 +PASS 390 Minimax-H3提示词增强技术范围默认折叠 +PASS 390 Minimax-H3提示词增强默认无执行计数/实现标识 +PASS 390 Minimax-H3提示词增强默认依据限制可见 +PASS 390 Minimax-H3提示词增强 说明未定稿 +PASS 390 Minimax-H3提示词增强 未验证实跑 +PASS 390 Minimax-H3提示词增强 未检查 +PASS 390 Minimax-H3提示词增强停用/时间戳空 +PASS 390 Minimax-H3提示词增强参数全保留 +PASS 390 Minimax-H3提示词增强默认无溢出 +PASS 390 Minimax-H3提示词增强旧图归还焦点 +PASS 390 音频转MP3格式默认中文用途 +PASS 390 音频转MP3格式源审校默认折叠 +PASS 390 音频转MP3格式技术范围默认折叠 +PASS 390 音频转MP3格式默认无执行计数/实现标识 +PASS 390 音频转MP3格式默认依据限制可见 +PASS 390 音频转MP3格式 说明未定稿 +PASS 390 音频转MP3格式 未验证实跑 +PASS 390 音频转MP3格式 未检查 +PASS 390 音频转MP3格式停用/时间戳空 +PASS 390 音频转MP3格式参数全保留 +PASS 390 音频转MP3格式默认无溢出 +PASS 390 音频转MP3格式旧图归还焦点 +PASS 390 音频人声分离默认中文用途 +PASS 390 音频人声分离源审校默认折叠 +PASS 390 音频人声分离技术范围默认折叠 +PASS 390 音频人声分离默认无执行计数/实现标识 +PASS 390 音频人声分离默认依据限制可见 +PASS 390 音频人声分离 说明未定稿 +PASS 390 音频人声分离 未验证实跑 +PASS 390 音频人声分离 未检查 +PASS 390 音频人声分离停用/时间戳空 +PASS 390 音频人声分离参数全保留 +PASS 390 音频人声分离默认无溢出 +PASS 390 音频人声分离旧图归还焦点 +PASS 390 视频-音频分离默认中文用途 +PASS 390 视频-音频分离源审校默认折叠 +PASS 390 视频-音频分离技术范围默认折叠 +PASS 390 视频-音频分离默认无执行计数/实现标识 +PASS 390 视频-音频分离默认依据限制可见 +PASS 390 视频-音频分离 说明未定稿 +PASS 390 视频-音频分离 未验证实跑 +PASS 390 视频-音频分离 未检查 +PASS 390 视频-音频分离停用/时间戳空 +PASS 390 视频-音频分离参数全保留 +PASS 390 视频-音频分离默认无溢出 +PASS 390 视频-音频分离旧图归还焦点 +PASS 390 图像嵌入文字描述默认中文用途 +PASS 390 图像嵌入文字描述源审校默认折叠 +PASS 390 图像嵌入文字描述技术范围默认折叠 +PASS 390 图像嵌入文字描述默认无执行计数/实现标识 +PASS 390 图像嵌入文字描述默认依据限制可见 +PASS 390 图像嵌入文字描述 说明未定稿 +PASS 390 图像嵌入文字描述 未验证实跑 +PASS 390 图像嵌入文字描述 未检查 +PASS 390 图像嵌入文字描述停用/时间戳空 +PASS 390 图像嵌入文字描述参数全保留 +PASS 390 图像嵌入文字描述默认无溢出 +PASS 390 图像嵌入文字描述旧图归还焦点 +PASS 旧/空说明回退 旧工作流回退(隔离测试夹具) +PASS 旧/空说明回退 空说明回退(隔离测试夹具) +PASS 缺摘要自然中文回退 +PASS 回退不暴露undefined +PASS 错绑定提示明确且不展示旧字段 +PASS 回退不暴露undefined +PASS 摘要HTML仅纯文本不创建图像或请求 +PASS 回退不暴露undefined +PASS 迟到分屏响应不覆盖旧水印摘要/56字段 +PASS GET失败显示重试 +PASS 读取失败隐藏旧摘要 +PASS 重试恢复摘要 +PASS 无脚本错误或禁止请求 [] +PASS 全程本地GET无写/生成/目标/历史预览请求 +All owned browser services stopped; ports released. diff --git a/docs/hel-892/multivideo-document-evidence/browser-results.json b/docs/hel-892/multivideo-document-evidence/browser-results.json new file mode 100644 index 00000000..48b0c110 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/browser-results.json @@ -0,0 +1,2400 @@ +{ + "request_accounting": { + "fixed_count": 91, + "fixed_paths": { + "/api/settings": 1, + "/api/workflows": 2, + "/api/workflows/1": 3, + "/api/workflows/10": 3, + "/api/workflows/11": 4, + "/api/workflows/12": 3, + "/api/workflows/13": 3, + "/api/workflows/14": 3, + "/api/workflows/15": 10, + "/api/workflows/156": 1, + "/api/workflows/157": 1, + "/api/workflows/16": 3, + "/api/workflows/19": 3, + "/api/workflows/2": 3, + "/api/workflows/21": 3, + "/api/workflows/22": 3, + "/api/workflows/23": 3, + "/api/workflows/24": 3, + "/api/workflows/25": 3, + "/api/workflows/3": 3, + "/api/workflows/35": 3, + "/api/workflows/36": 3, + "/api/workflows/5": 3, + "/api/workflows/6": 3, + "/api/workflows/62": 3, + "/api/workflows/64": 3, + "/api/workflows/7": 3, + "/api/workflows/70": 3, + "/api/workflows/8": 3, + "/api/workflows/9": 3 + }, + "polling_count": 13, + "polling_paths": { + "/api/jobs": 13 + }, + "polling_tolerance": 1, + "reason": "定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。" + }, + "assertion_count": 1922, + "assertionGroups": { + "aggregate": 2, + "new_multivideo": 1306, + "old_twenty_five": 600, + "shared_regressions": 14 + }, + "checks": [ + "26图820保存位置", + "26图16源注释", + "1440 多视频合成分屏展示默认中文用途", + "1440 多视频合成分屏展示源审校默认折叠", + "1440 多视频合成分屏展示技术范围默认折叠", + "1440 多视频合成分屏展示默认无执行计数/实现标识", + "1440 多视频合成分屏展示默认依据限制可见", + "1440 多视频合成分屏展示 说明未定稿", + "1440 多视频合成分屏展示 未验证实跑", + "1440 多视频合成分屏展示 未检查", + "1440 多视频合成分屏展示停用/时间戳空", + "1440 多视频合成分屏展示参数全保留", + "1440 多视频合成分屏展示默认无溢出", + "1440 多视频合成分屏展示原用途/源路径展开保留", + "1440 多视频合成分屏展示展开流程 0", + "1440 多视频合成分屏展示展开流程 1", + "1440 多视频合成分屏展示展开流程 2", + "1440 多视频合成分屏展示展开流程 3", + "1440 多视频合成分屏展示展开流程 4", + "1440 多视频合成分屏展示展开流程 5", + "1440 多视频合成分屏展示展开流程 6", + "1440 多视频合成分屏展示展开流程 7", + "1440 多视频合成分屏展示展开流程 8", + "1440 多视频合成分屏展示展开流程 9", + "1440 多视频合成分屏展示展开流程 10", + "1440 多视频合成分屏展示展开流程 11", + "1440 多视频合成分屏展示展开流程 12", + "1440 多视频合成分屏展示展开流程 13", + "1440 多视频合成分屏展示展开流程 14", + "1440 多视频合成分屏展示展开流程 15", + "1440 多视频合成分屏展示展开流程 16", + "1440 多视频合成分屏展示展开流程 17", + "1440 多视频合成分屏展示展开流程 18", + "1440 多视频合成分屏展示展开流程 19", + "1440 多视频合成分屏展示展开流程 20", + "1440 多视频合成分屏展示展开流程 21", + "1440 多视频合成分屏展示展开流程 22", + "1440 多视频合成分屏展示展开流程 23", + "1440 多视频合成分屏展示展开流程 24", + "1440 多视频合成分屏展示展开流程 25", + "1440 多视频合成分屏展示展开流程 26", + "1440 多视频合成分屏展示展开流程 27", + "1440 多视频合成分屏展示展开流程 28", + "1440 多视频合成分屏展示展开流程 29", + "1440 多视频合成分屏展示展开流程 30", + "1440 多视频合成分屏展示展开流程 31", + "1440 多视频合成分屏展示展开流程 32", + "1440 多视频合成分屏展示展开流程 33", + "1440 多视频合成分屏展示展开流程 34", + "1440 多视频合成分屏展示展开流程 35", + "1440 多视频合成分屏展示展开流程 36", + "1440 多视频合成分屏展示展开流程 37", + "1440 多视频合成分屏展示原件摘要可展开", + "1440 多视频合成分屏展示版本 0", + "1440 多视频合成分屏展示版本 1", + "1440 多视频合成分屏展示版本 2", + "1440 多视频合成分屏展示版本 3", + "1440 多视频合成分屏展示版本 4", + "1440 2.inputcount键盘展开", + "1440 2.inputcount用途/单位/范围/来源条件", + "1440 2.inputcount精确保留现值", + "1440 2.inputcount指针默认折叠", + "1440 2.inputcount精确源码/类型/指针", + "1440 2.inputcount展开无溢出", + "1440 2.direction键盘展开", + "1440 2.direction用途/单位/范围/来源条件", + "1440 2.direction精确保留现值", + "1440 2.direction指针默认折叠", + "1440 2.direction精确源码/类型/指针", + "1440 2.direction展开无溢出", + "1440 2.match_image_size键盘展开", + "1440 2.match_image_size用途/单位/范围/来源条件", + "1440 2.match_image_size精确保留现值", + "1440 2.match_image_size指针默认折叠", + "1440 2.match_image_size精确源码/类型/指针", + "1440 2.match_image_size展开无溢出", + "1440 2.saved_position_3键盘展开", + "1440 2.saved_position_3用途/单位/范围/来源条件", + "1440 2.saved_position_3精确保留现值", + "1440 2.saved_position_3指针默认折叠", + "1440 2.saved_position_3精确源码/类型/指针", + "1440 2.saved_position_3展开无溢出", + "1440 1.inputcount键盘展开", + "1440 1.inputcount用途/单位/范围/来源条件", + "1440 1.inputcount精确保留现值", + "1440 1.inputcount指针默认折叠", + "1440 1.inputcount精确源码/类型/指针", + "1440 1.inputcount展开无溢出", + "1440 1.direction键盘展开", + "1440 1.direction用途/单位/范围/来源条件", + "1440 1.direction精确保留现值", + "1440 1.direction指针默认折叠", + "1440 1.direction精确源码/类型/指针", + "1440 1.direction展开无溢出", + "1440 1.match_image_size键盘展开", + "1440 1.match_image_size用途/单位/范围/来源条件", + "1440 1.match_image_size精确保留现值", + "1440 1.match_image_size指针默认折叠", + "1440 1.match_image_size精确源码/类型/指针", + "1440 1.match_image_size展开无溢出", + "1440 1.saved_position_3键盘展开", + "1440 1.saved_position_3用途/单位/范围/来源条件", + "1440 1.saved_position_3精确保留现值", + "1440 1.saved_position_3指针默认折叠", + "1440 1.saved_position_3精确源码/类型/指针", + "1440 1.saved_position_3展开无溢出", + "1440 3.frame_rate键盘展开", + "1440 3.frame_rate用途/单位/范围/来源条件", + "1440 3.frame_rate精确保留现值", + "1440 3.frame_rate指针默认折叠", + "1440 3.frame_rate精确源码/类型/指针", + "1440 3.frame_rate展开无溢出", + "1440 3.loop_count键盘展开", + "1440 3.loop_count用途/单位/范围/来源条件", + "1440 3.loop_count精确保留现值", + "1440 3.loop_count指针默认折叠", + "1440 3.loop_count精确源码/类型/指针", + "1440 3.loop_count展开无溢出", + "1440 3.filename_prefix键盘展开", + "1440 3.filename_prefix用途/单位/范围/来源条件", + "1440 3.filename_prefix精确保留现值", + "1440 3.filename_prefix指针默认折叠", + "1440 3.filename_prefix精确源码/类型/指针", + "1440 3.filename_prefix展开无溢出", + "1440 3.format键盘展开", + "1440 3.format用途/单位/范围/来源条件", + "1440 3.format精确保留现值", + "1440 3.format指针默认折叠", + "1440 3.format精确源码/类型/指针", + "1440 3.format展开无溢出", + "1440 3.pix_fmt键盘展开", + "1440 3.pix_fmt用途/单位/范围/来源条件", + "1440 3.pix_fmt精确保留现值", + "1440 3.pix_fmt指针默认折叠", + "1440 3.pix_fmt精确源码/类型/指针", + "1440 3.pix_fmt展开无溢出", + "1440 3.crf键盘展开", + "1440 3.crf用途/单位/范围/来源条件", + "1440 3.crf精确保留现值", + "1440 3.crf指针默认折叠", + "1440 3.crf精确源码/类型/指针", + "1440 3.crf展开无溢出", + "1440 3.save_metadata键盘展开", + "1440 3.save_metadata用途/单位/范围/来源条件", + "1440 3.save_metadata精确保留现值", + "1440 3.save_metadata指针默认折叠", + "1440 3.save_metadata精确源码/类型/指针", + "1440 3.save_metadata展开无溢出", + "1440 3.trim_to_audio键盘展开", + "1440 3.trim_to_audio用途/单位/范围/来源条件", + "1440 3.trim_to_audio精确保留现值", + "1440 3.trim_to_audio指针默认折叠", + "1440 3.trim_to_audio精确源码/类型/指针", + "1440 3.trim_to_audio展开无溢出", + "1440 3.pingpong键盘展开", + "1440 3.pingpong用途/单位/范围/来源条件", + "1440 3.pingpong精确保留现值", + "1440 3.pingpong指针默认折叠", + "1440 3.pingpong精确源码/类型/指针", + "1440 3.pingpong展开无溢出", + "1440 3.save_output键盘展开", + "1440 3.save_output用途/单位/范围/来源条件", + "1440 3.save_output精确保留现值", + "1440 3.save_output指针默认折叠", + "1440 3.save_output精确源码/类型/指针", + "1440 3.save_output展开无溢出", + "1440 3.videopreview键盘展开", + "1440 3.videopreview用途/单位/范围/来源条件", + "1440 3.videopreview精确保留现值", + "1440 3.videopreview指针默认折叠", + "1440 3.videopreview精确源码/类型/指针", + "1440 3.videopreview展开无溢出", + "1440 7.width键盘展开", + "1440 7.width用途/单位/范围/来源条件", + "1440 7.width精确保留现值", + "1440 7.width指针默认折叠", + "1440 7.width精确源码/类型/指针", + "1440 7.width展开无溢出", + "1440 7.height键盘展开", + "1440 7.height用途/单位/范围/来源条件", + "1440 7.height精确保留现值", + "1440 7.height指针默认折叠", + "1440 7.height精确源码/类型/指针", + "1440 7.height展开无溢出", + "1440 7.upscale_method键盘展开", + "1440 7.upscale_method用途/单位/范围/来源条件", + "1440 7.upscale_method精确保留现值", + "1440 7.upscale_method指针默认折叠", + "1440 7.upscale_method精确源码/类型/指针", + "1440 7.upscale_method展开无溢出", + "1440 7.keep_proportion键盘展开", + "1440 7.keep_proportion用途/单位/范围/来源条件", + "1440 7.keep_proportion精确保留现值", + "1440 7.keep_proportion指针默认折叠", + "1440 7.keep_proportion精确源码/类型/指针", + "1440 7.keep_proportion展开无溢出", + "1440 7.pad_color键盘展开", + "1440 7.pad_color用途/单位/范围/来源条件", + "1440 7.pad_color精确保留现值", + "1440 7.pad_color指针默认折叠", + "1440 7.pad_color精确源码/类型/指针", + "1440 7.pad_color展开无溢出", + "1440 7.crop_position键盘展开", + "1440 7.crop_position用途/单位/范围/来源条件", + "1440 7.crop_position精确保留现值", + "1440 7.crop_position指针默认折叠", + "1440 7.crop_position精确源码/类型/指针", + "1440 7.crop_position展开无溢出", + "1440 7.divisible_by键盘展开", + "1440 7.divisible_by用途/单位/范围/来源条件", + "1440 7.divisible_by精确保留现值", + "1440 7.divisible_by指针默认折叠", + "1440 7.divisible_by精确源码/类型/指针", + "1440 7.divisible_by展开无溢出", + "1440 7.device键盘展开", + "1440 7.device用途/单位/范围/来源条件", + "1440 7.device精确保留现值", + "1440 7.device指针默认折叠", + "1440 7.device精确源码/类型/指针", + "1440 7.device展开无溢出", + "1440 5.width键盘展开", + "1440 5.width用途/单位/范围/来源条件", + "1440 5.width精确保留现值", + "1440 5.width指针默认折叠", + "1440 5.width精确源码/类型/指针", + "1440 5.width展开无溢出", + "1440 5.height键盘展开", + "1440 5.height用途/单位/范围/来源条件", + "1440 5.height精确保留现值", + "1440 5.height指针默认折叠", + "1440 5.height精确源码/类型/指针", + "1440 5.height展开无溢出", + "1440 5.upscale_method键盘展开", + "1440 5.upscale_method用途/单位/范围/来源条件", + "1440 5.upscale_method精确保留现值", + "1440 5.upscale_method指针默认折叠", + "1440 5.upscale_method精确源码/类型/指针", + "1440 5.upscale_method展开无溢出", + "1440 5.keep_proportion键盘展开", + "1440 5.keep_proportion用途/单位/范围/来源条件", + "1440 5.keep_proportion精确保留现值", + "1440 5.keep_proportion指针默认折叠", + "1440 5.keep_proportion精确源码/类型/指针", + "1440 5.keep_proportion展开无溢出", + "1440 5.pad_color键盘展开", + "1440 5.pad_color用途/单位/范围/来源条件", + "1440 5.pad_color精确保留现值", + "1440 5.pad_color指针默认折叠", + "1440 5.pad_color精确源码/类型/指针", + "1440 5.pad_color展开无溢出", + "1440 5.crop_position键盘展开", + "1440 5.crop_position用途/单位/范围/来源条件", + "1440 5.crop_position精确保留现值", + "1440 5.crop_position指针默认折叠", + "1440 5.crop_position精确源码/类型/指针", + "1440 5.crop_position展开无溢出", + "1440 5.divisible_by键盘展开", + "1440 5.divisible_by用途/单位/范围/来源条件", + "1440 5.divisible_by精确保留现值", + "1440 5.divisible_by指针默认折叠", + "1440 5.divisible_by精确源码/类型/指针", + "1440 5.divisible_by展开无溢出", + "1440 5.device键盘展开", + "1440 5.device用途/单位/范围/来源条件", + "1440 5.device精确保留现值", + "1440 5.device指针默认折叠", + "1440 5.device精确源码/类型/指针", + "1440 5.device展开无溢出", + "1440 8.video键盘展开", + "1440 8.video用途/单位/范围/来源条件", + "1440 8.video精确保留现值", + "1440 8.video指针默认折叠", + "1440 8.video精确源码/类型/指针", + "1440 8.video展开无溢出", + "1440 8.force_rate键盘展开", + "1440 8.force_rate用途/单位/范围/来源条件", + "1440 8.force_rate精确保留现值", + "1440 8.force_rate指针默认折叠", + "1440 8.force_rate精确源码/类型/指针", + "1440 8.force_rate展开无溢出", + "1440 8.custom_width键盘展开", + "1440 8.custom_width用途/单位/范围/来源条件", + "1440 8.custom_width精确保留现值", + "1440 8.custom_width指针默认折叠", + "1440 8.custom_width精确源码/类型/指针", + "1440 8.custom_width展开无溢出", + "1440 8.custom_height键盘展开", + "1440 8.custom_height用途/单位/范围/来源条件", + "1440 8.custom_height精确保留现值", + "1440 8.custom_height指针默认折叠", + "1440 8.custom_height精确源码/类型/指针", + "1440 8.custom_height展开无溢出", + "1440 8.frame_load_cap键盘展开", + "1440 8.frame_load_cap用途/单位/范围/来源条件", + "1440 8.frame_load_cap精确保留现值", + "1440 8.frame_load_cap指针默认折叠", + "1440 8.frame_load_cap精确源码/类型/指针", + "1440 8.frame_load_cap展开无溢出", + "1440 8.skip_first_frames键盘展开", + "1440 8.skip_first_frames用途/单位/范围/来源条件", + "1440 8.skip_first_frames精确保留现值", + "1440 8.skip_first_frames指针默认折叠", + "1440 8.skip_first_frames精确源码/类型/指针", + "1440 8.skip_first_frames展开无溢出", + "1440 8.select_every_nth键盘展开", + "1440 8.select_every_nth用途/单位/范围/来源条件", + "1440 8.select_every_nth精确保留现值", + "1440 8.select_every_nth指针默认折叠", + "1440 8.select_every_nth精确源码/类型/指针", + "1440 8.select_every_nth展开无溢出", + "1440 8.format键盘展开", + "1440 8.format用途/单位/范围/来源条件", + "1440 8.format精确保留现值", + "1440 8.format指针默认折叠", + "1440 8.format精确源码/类型/指针", + "1440 8.format展开无溢出", + "1440 8.videopreview键盘展开", + "1440 8.videopreview用途/单位/范围/来源条件", + "1440 8.videopreview精确保留现值", + "1440 8.videopreview指针默认折叠", + "1440 8.videopreview精确源码/类型/指针", + "1440 8.videopreview展开无溢出", + "1440 6.video键盘展开", + "1440 6.video用途/单位/范围/来源条件", + "1440 6.video精确保留现值", + "1440 6.video指针默认折叠", + "1440 6.video精确源码/类型/指针", + "1440 6.video展开无溢出", + "1440 6.force_rate键盘展开", + "1440 6.force_rate用途/单位/范围/来源条件", + "1440 6.force_rate精确保留现值", + "1440 6.force_rate指针默认折叠", + "1440 6.force_rate精确源码/类型/指针", + "1440 6.force_rate展开无溢出", + "1440 6.custom_width键盘展开", + "1440 6.custom_width用途/单位/范围/来源条件", + "1440 6.custom_width精确保留现值", + "1440 6.custom_width指针默认折叠", + "1440 6.custom_width精确源码/类型/指针", + "1440 6.custom_width展开无溢出", + "1440 6.custom_height键盘展开", + "1440 6.custom_height用途/单位/范围/来源条件", + "1440 6.custom_height精确保留现值", + "1440 6.custom_height指针默认折叠", + "1440 6.custom_height精确源码/类型/指针", + "1440 6.custom_height展开无溢出", + "1440 6.frame_load_cap键盘展开", + "1440 6.frame_load_cap用途/单位/范围/来源条件", + "1440 6.frame_load_cap精确保留现值", + "1440 6.frame_load_cap指针默认折叠", + "1440 6.frame_load_cap精确源码/类型/指针", + "1440 6.frame_load_cap展开无溢出", + "1440 6.skip_first_frames键盘展开", + "1440 6.skip_first_frames用途/单位/范围/来源条件", + "1440 6.skip_first_frames精确保留现值", + "1440 6.skip_first_frames指针默认折叠", + "1440 6.skip_first_frames精确源码/类型/指针", + "1440 6.skip_first_frames展开无溢出", + "1440 6.select_every_nth键盘展开", + "1440 6.select_every_nth用途/单位/范围/来源条件", + "1440 6.select_every_nth精确保留现值", + "1440 6.select_every_nth指针默认折叠", + "1440 6.select_every_nth精确源码/类型/指针", + "1440 6.select_every_nth展开无溢出", + "1440 6.format键盘展开", + "1440 6.format用途/单位/范围/来源条件", + "1440 6.format精确保留现值", + "1440 6.format指针默认折叠", + "1440 6.format精确源码/类型/指针", + "1440 6.format展开无溢出", + "1440 6.videopreview键盘展开", + "1440 6.videopreview用途/单位/范围/来源条件", + "1440 6.videopreview精确保留现值", + "1440 6.videopreview指针默认折叠", + "1440 6.videopreview精确源码/类型/指针", + "1440 6.videopreview展开无溢出", + "1440 4.video键盘展开", + "1440 4.video用途/单位/范围/来源条件", + "1440 4.video精确保留现值", + "1440 4.video指针默认折叠", + "1440 4.video精确源码/类型/指针", + "1440 4.video展开无溢出", + "1440 4.force_rate键盘展开", + "1440 4.force_rate用途/单位/范围/来源条件", + "1440 4.force_rate精确保留现值", + "1440 4.force_rate指针默认折叠", + "1440 4.force_rate精确源码/类型/指针", + "1440 4.force_rate展开无溢出", + "1440 4.custom_width键盘展开", + "1440 4.custom_width用途/单位/范围/来源条件", + "1440 4.custom_width精确保留现值", + "1440 4.custom_width指针默认折叠", + "1440 4.custom_width精确源码/类型/指针", + "1440 4.custom_width展开无溢出", + "1440 4.custom_height键盘展开", + "1440 4.custom_height用途/单位/范围/来源条件", + "1440 4.custom_height精确保留现值", + "1440 4.custom_height指针默认折叠", + "1440 4.custom_height精确源码/类型/指针", + "1440 4.custom_height展开无溢出", + "1440 4.frame_load_cap键盘展开", + "1440 4.frame_load_cap用途/单位/范围/来源条件", + "1440 4.frame_load_cap精确保留现值", + "1440 4.frame_load_cap指针默认折叠", + "1440 4.frame_load_cap精确源码/类型/指针", + "1440 4.frame_load_cap展开无溢出", + "1440 4.skip_first_frames键盘展开", + "1440 4.skip_first_frames用途/单位/范围/来源条件", + "1440 4.skip_first_frames精确保留现值", + "1440 4.skip_first_frames指针默认折叠", + "1440 4.skip_first_frames精确源码/类型/指针", + "1440 4.skip_first_frames展开无溢出", + "1440 4.select_every_nth键盘展开", + "1440 4.select_every_nth用途/单位/范围/来源条件", + "1440 4.select_every_nth精确保留现值", + "1440 4.select_every_nth指针默认折叠", + "1440 4.select_every_nth精确源码/类型/指针", + "1440 4.select_every_nth展开无溢出", + "1440 4.format键盘展开", + "1440 4.format用途/单位/范围/来源条件", + "1440 4.format精确保留现值", + "1440 4.format指针默认折叠", + "1440 4.format精确源码/类型/指针", + "1440 4.format展开无溢出", + "1440 4.videopreview键盘展开", + "1440 4.videopreview用途/单位/范围/来源条件", + "1440 4.videopreview精确保留现值", + "1440 4.videopreview指针默认折叠", + "1440 4.videopreview精确源码/类型/指针", + "1440 4.videopreview展开无溢出", + "1440 10.inputcount键盘展开", + "1440 10.inputcount用途/单位/范围/来源条件", + "1440 10.inputcount精确保留现值", + "1440 10.inputcount指针默认折叠", + "1440 10.inputcount精确源码/类型/指针", + "1440 10.inputcount展开无溢出", + "1440 10.direction键盘展开", + "1440 10.direction用途/单位/范围/来源条件", + "1440 10.direction精确保留现值", + "1440 10.direction指针默认折叠", + "1440 10.direction精确源码/类型/指针", + "1440 10.direction展开无溢出", + "1440 10.match_image_size键盘展开", + "1440 10.match_image_size用途/单位/范围/来源条件", + "1440 10.match_image_size精确保留现值", + "1440 10.match_image_size指针默认折叠", + "1440 10.match_image_size精确源码/类型/指针", + "1440 10.match_image_size展开无溢出", + "1440 10.saved_position_3键盘展开", + "1440 10.saved_position_3用途/单位/范围/来源条件", + "1440 10.saved_position_3精确保留现值", + "1440 10.saved_position_3指针默认折叠", + "1440 10.saved_position_3精确源码/类型/指针", + "1440 10.saved_position_3展开无溢出", + "1440 11.inputcount键盘展开", + "1440 11.inputcount用途/单位/范围/来源条件", + "1440 11.inputcount精确保留现值", + "1440 11.inputcount指针默认折叠", + "1440 11.inputcount精确源码/类型/指针", + "1440 11.inputcount展开无溢出", + "1440 11.direction键盘展开", + "1440 11.direction用途/单位/范围/来源条件", + "1440 11.direction精确保留现值", + "1440 11.direction指针默认折叠", + "1440 11.direction精确源码/类型/指针", + "1440 11.direction展开无溢出", + "1440 11.match_image_size键盘展开", + "1440 11.match_image_size用途/单位/范围/来源条件", + "1440 11.match_image_size精确保留现值", + "1440 11.match_image_size指针默认折叠", + "1440 11.match_image_size精确源码/类型/指针", + "1440 11.match_image_size展开无溢出", + "1440 11.saved_position_3键盘展开", + "1440 11.saved_position_3用途/单位/范围/来源条件", + "1440 11.saved_position_3精确保留现值", + "1440 11.saved_position_3指针默认折叠", + "1440 11.saved_position_3精确源码/类型/指针", + "1440 11.saved_position_3展开无溢出", + "1440 12.frame_rate键盘展开", + "1440 12.frame_rate用途/单位/范围/来源条件", + "1440 12.frame_rate精确保留现值", + "1440 12.frame_rate指针默认折叠", + "1440 12.frame_rate精确源码/类型/指针", + "1440 12.frame_rate展开无溢出", + "1440 12.loop_count键盘展开", + "1440 12.loop_count用途/单位/范围/来源条件", + "1440 12.loop_count精确保留现值", + "1440 12.loop_count指针默认折叠", + "1440 12.loop_count精确源码/类型/指针", + "1440 12.loop_count展开无溢出", + "1440 12.filename_prefix键盘展开", + "1440 12.filename_prefix用途/单位/范围/来源条件", + "1440 12.filename_prefix精确保留现值", + "1440 12.filename_prefix指针默认折叠", + "1440 12.filename_prefix精确源码/类型/指针", + "1440 12.filename_prefix展开无溢出", + "1440 12.format键盘展开", + "1440 12.format用途/单位/范围/来源条件", + "1440 12.format精确保留现值", + "1440 12.format指针默认折叠", + "1440 12.format精确源码/类型/指针", + "1440 12.format展开无溢出", + "1440 12.pix_fmt键盘展开", + "1440 12.pix_fmt用途/单位/范围/来源条件", + "1440 12.pix_fmt精确保留现值", + "1440 12.pix_fmt指针默认折叠", + "1440 12.pix_fmt精确源码/类型/指针", + "1440 12.pix_fmt展开无溢出", + "1440 12.crf键盘展开", + "1440 12.crf用途/单位/范围/来源条件", + "1440 12.crf精确保留现值", + "1440 12.crf指针默认折叠", + "1440 12.crf精确源码/类型/指针", + "1440 12.crf展开无溢出", + "1440 12.save_metadata键盘展开", + "1440 12.save_metadata用途/单位/范围/来源条件", + "1440 12.save_metadata精确保留现值", + "1440 12.save_metadata指针默认折叠", + "1440 12.save_metadata精确源码/类型/指针", + "1440 12.save_metadata展开无溢出", + "1440 12.trim_to_audio键盘展开", + "1440 12.trim_to_audio用途/单位/范围/来源条件", + "1440 12.trim_to_audio精确保留现值", + "1440 12.trim_to_audio指针默认折叠", + "1440 12.trim_to_audio精确源码/类型/指针", + "1440 12.trim_to_audio展开无溢出", + "1440 12.pingpong键盘展开", + "1440 12.pingpong用途/单位/范围/来源条件", + "1440 12.pingpong精确保留现值", + "1440 12.pingpong指针默认折叠", + "1440 12.pingpong精确源码/类型/指针", + "1440 12.pingpong展开无溢出", + "1440 12.save_output键盘展开", + "1440 12.save_output用途/单位/范围/来源条件", + "1440 12.save_output精确保留现值", + "1440 12.save_output指针默认折叠", + "1440 12.save_output精确源码/类型/指针", + "1440 12.save_output展开无溢出", + "1440 12.videopreview键盘展开", + "1440 12.videopreview用途/单位/范围/来源条件", + "1440 12.videopreview精确保留现值", + "1440 12.videopreview指针默认折叠", + "1440 12.videopreview精确源码/类型/指针", + "1440 12.videopreview展开无溢出", + "1440 17.video键盘展开", + "1440 17.video用途/单位/范围/来源条件", + "1440 17.video精确保留现值", + "1440 17.video指针默认折叠", + "1440 17.video精确源码/类型/指针", + "1440 17.video展开无溢出", + "1440 17.force_rate键盘展开", + "1440 17.force_rate用途/单位/范围/来源条件", + "1440 17.force_rate精确保留现值", + "1440 17.force_rate指针默认折叠", + "1440 17.force_rate精确源码/类型/指针", + "1440 17.force_rate展开无溢出", + "1440 17.custom_width键盘展开", + "1440 17.custom_width用途/单位/范围/来源条件", + "1440 17.custom_width精确保留现值", + "1440 17.custom_width指针默认折叠", + "1440 17.custom_width精确源码/类型/指针", + "1440 17.custom_width展开无溢出", + "1440 17.custom_height键盘展开", + "1440 17.custom_height用途/单位/范围/来源条件", + "1440 17.custom_height精确保留现值", + "1440 17.custom_height指针默认折叠", + "1440 17.custom_height精确源码/类型/指针", + "1440 17.custom_height展开无溢出", + "1440 17.frame_load_cap键盘展开", + "1440 17.frame_load_cap用途/单位/范围/来源条件", + "1440 17.frame_load_cap精确保留现值", + "1440 17.frame_load_cap指针默认折叠", + "1440 17.frame_load_cap精确源码/类型/指针", + "1440 17.frame_load_cap展开无溢出", + "1440 17.skip_first_frames键盘展开", + "1440 17.skip_first_frames用途/单位/范围/来源条件", + "1440 17.skip_first_frames精确保留现值", + "1440 17.skip_first_frames指针默认折叠", + "1440 17.skip_first_frames精确源码/类型/指针", + "1440 17.skip_first_frames展开无溢出", + "1440 17.select_every_nth键盘展开", + "1440 17.select_every_nth用途/单位/范围/来源条件", + "1440 17.select_every_nth精确保留现值", + "1440 17.select_every_nth指针默认折叠", + "1440 17.select_every_nth精确源码/类型/指针", + "1440 17.select_every_nth展开无溢出", + "1440 17.format键盘展开", + "1440 17.format用途/单位/范围/来源条件", + "1440 17.format精确保留现值", + "1440 17.format指针默认折叠", + "1440 17.format精确源码/类型/指针", + "1440 17.format展开无溢出", + "1440 17.videopreview键盘展开", + "1440 17.videopreview用途/单位/范围/来源条件", + "1440 17.videopreview精确保留现值", + "1440 17.videopreview指针默认折叠", + "1440 17.videopreview精确源码/类型/指针", + "1440 17.videopreview展开无溢出", + "1440 16.video键盘展开", + "1440 16.video用途/单位/范围/来源条件", + "1440 16.video精确保留现值", + "1440 16.video指针默认折叠", + "1440 16.video精确源码/类型/指针", + "1440 16.video展开无溢出", + "1440 16.force_rate键盘展开", + "1440 16.force_rate用途/单位/范围/来源条件", + "1440 16.force_rate精确保留现值", + "1440 16.force_rate指针默认折叠", + "1440 16.force_rate精确源码/类型/指针", + "1440 16.force_rate展开无溢出", + "1440 16.custom_width键盘展开", + "1440 16.custom_width用途/单位/范围/来源条件", + "1440 16.custom_width精确保留现值", + "1440 16.custom_width指针默认折叠", + "1440 16.custom_width精确源码/类型/指针", + "1440 16.custom_width展开无溢出", + "1440 16.custom_height键盘展开", + "1440 16.custom_height用途/单位/范围/来源条件", + "1440 16.custom_height精确保留现值", + "1440 16.custom_height指针默认折叠", + "1440 16.custom_height精确源码/类型/指针", + "1440 16.custom_height展开无溢出", + "1440 16.frame_load_cap键盘展开", + "1440 16.frame_load_cap用途/单位/范围/来源条件", + "1440 16.frame_load_cap精确保留现值", + "1440 16.frame_load_cap指针默认折叠", + "1440 16.frame_load_cap精确源码/类型/指针", + "1440 16.frame_load_cap展开无溢出", + "1440 16.skip_first_frames键盘展开", + "1440 16.skip_first_frames用途/单位/范围/来源条件", + "1440 16.skip_first_frames精确保留现值", + "1440 16.skip_first_frames指针默认折叠", + "1440 16.skip_first_frames精确源码/类型/指针", + "1440 16.skip_first_frames展开无溢出", + "1440 16.select_every_nth键盘展开", + "1440 16.select_every_nth用途/单位/范围/来源条件", + "1440 16.select_every_nth精确保留现值", + "1440 16.select_every_nth指针默认折叠", + "1440 16.select_every_nth精确源码/类型/指针", + "1440 16.select_every_nth展开无溢出", + "1440 16.format键盘展开", + "1440 16.format用途/单位/范围/来源条件", + "1440 16.format精确保留现值", + "1440 16.format指针默认折叠", + "1440 16.format精确源码/类型/指针", + "1440 16.format展开无溢出", + "1440 16.videopreview键盘展开", + "1440 16.videopreview用途/单位/范围/来源条件", + "1440 16.videopreview精确保留现值", + "1440 16.videopreview指针默认折叠", + "1440 16.videopreview精确源码/类型/指针", + "1440 16.videopreview展开无溢出", + "1440Tab焦点保留", + "1440ShiftTab焦点保留", + "1440 多视频合成分屏展示关闭归还焦点", + "1440 图像4种添加水印节点默认中文用途", + "1440 图像4种添加水印节点源审校默认折叠", + "1440 图像4种添加水印节点技术范围默认折叠", + "1440 图像4种添加水印节点默认无执行计数/实现标识", + "1440 图像4种添加水印节点默认依据限制可见", + "1440 图像4种添加水印节点 说明未定稿", + "1440 图像4种添加水印节点 未验证实跑", + "1440 图像4种添加水印节点 未检查", + "1440 图像4种添加水印节点停用/时间戳空", + "1440 图像4种添加水印节点参数全保留", + "1440 图像4种添加水印节点默认无溢出", + "1440 图像4种添加水印节点旧图归还焦点", + "1440 birefnet_图像移除背景默认中文用途", + "1440 birefnet_图像移除背景源审校默认折叠", + "1440 birefnet_图像移除背景技术范围默认折叠", + "1440 birefnet_图像移除背景默认无执行计数/实现标识", + "1440 birefnet_图像移除背景默认依据限制可见", + "1440 birefnet_图像移除背景 说明未定稿", + "1440 birefnet_图像移除背景 未验证实跑", + "1440 birefnet_图像移除背景 未检查", + "1440 birefnet_图像移除背景停用/时间戳空", + "1440 birefnet_图像移除背景参数全保留", + "1440 birefnet_图像移除背景默认无溢出", + "1440 birefnet_图像移除背景旧图归还焦点", + "1440 加载本地latent解码默认中文用途", + "1440 加载本地latent解码源审校默认折叠", + "1440 加载本地latent解码技术范围默认折叠", + "1440 加载本地latent解码默认无执行计数/实现标识", + "1440 加载本地latent解码默认依据限制可见", + "1440 加载本地latent解码 说明未定稿", + "1440 加载本地latent解码 未验证实跑", + "1440 加载本地latent解码 未检查", + "1440 加载本地latent解码停用/时间戳空", + "1440 加载本地latent解码参数全保留", + "1440 加载本地latent解码默认无溢出", + "1440 加载本地latent解码旧图归还焦点", + "1440 截取视频每一帧默认中文用途", + "1440 截取视频每一帧源审校默认折叠", + "1440 截取视频每一帧技术范围默认折叠", + "1440 截取视频每一帧默认无执行计数/实现标识", + "1440 截取视频每一帧默认依据限制可见", + "1440 截取视频每一帧 说明未定稿", + "1440 截取视频每一帧 未验证实跑", + "1440 截取视频每一帧 未检查", + "1440 截取视频每一帧停用/时间戳空", + "1440 截取视频每一帧参数全保留", + "1440 截取视频每一帧默认无溢出", + "1440 截取视频每一帧旧图归还焦点", + "1440 双图像或视频合并显示默认中文用途", + "1440 双图像或视频合并显示源审校默认折叠", + "1440 双图像或视频合并显示技术范围默认折叠", + "1440 双图像或视频合并显示默认无执行计数/实现标识", + "1440 双图像或视频合并显示默认依据限制可见", + "1440 双图像或视频合并显示 说明未定稿", + "1440 双图像或视频合并显示 未验证实跑", + "1440 双图像或视频合并显示 未检查", + "1440 双图像或视频合并显示停用/时间戳空", + "1440 双图像或视频合并显示参数全保留", + "1440 双图像或视频合并显示默认无溢出", + "1440 双图像或视频合并显示旧图归还焦点", + "1440 视频转gif动图图片默认中文用途", + "1440 视频转gif动图图片源审校默认折叠", + "1440 视频转gif动图图片技术范围默认折叠", + "1440 视频转gif动图图片默认无执行计数/实现标识", + "1440 视频转gif动图图片默认依据限制可见", + "1440 视频转gif动图图片 说明未定稿", + "1440 视频转gif动图图片 未验证实跑", + "1440 视频转gif动图图片 未检查", + "1440 视频转gif动图图片停用/时间戳空", + "1440 视频转gif动图图片参数全保留", + "1440 视频转gif动图图片默认无溢出", + "1440 视频转gif动图图片旧图归还焦点", + "1440 加载图片合成视频默认中文用途", + "1440 加载图片合成视频源审校默认折叠", + "1440 加载图片合成视频技术范围默认折叠", + "1440 加载图片合成视频默认无执行计数/实现标识", + "1440 加载图片合成视频默认依据限制可见", + "1440 加载图片合成视频 说明未定稿", + "1440 加载图片合成视频 未验证实跑", + "1440 加载图片合成视频 未检查", + "1440 加载图片合成视频停用/时间戳空", + "1440 加载图片合成视频参数全保留", + "1440 加载图片合成视频默认无溢出", + "1440 加载图片合成视频旧图归还焦点", + "1440 视频倒放默认中文用途", + "1440 视频倒放源审校默认折叠", + "1440 视频倒放技术范围默认折叠", + "1440 视频倒放默认无执行计数/实现标识", + "1440 视频倒放默认依据限制可见", + "1440 视频倒放 说明未定稿", + "1440 视频倒放 未验证实跑", + "1440 视频倒放 未检查", + "1440 视频倒放停用/时间戳空", + "1440 视频倒放参数全保留", + "1440 视频倒放默认无溢出", + "1440 视频倒放旧图归还焦点", + "1440 NLF_视频人物动作骨架获取默认中文用途", + "1440 NLF_视频人物动作骨架获取源审校默认折叠", + "1440 NLF_视频人物动作骨架获取技术范围默认折叠", + "1440 NLF_视频人物动作骨架获取默认无执行计数/实现标识", + "1440 NLF_视频人物动作骨架获取默认依据限制可见", + "1440 NLF_视频人物动作骨架获取 说明未定稿", + "1440 NLF_视频人物动作骨架获取 未验证实跑", + "1440 NLF_视频人物动作骨架获取 未检查", + "1440 NLF_视频人物动作骨架获取停用/时间戳空", + "1440 NLF_视频人物动作骨架获取参数全保留", + "1440 NLF_视频人物动作骨架获取默认无溢出", + "1440 NLF_视频人物动作骨架获取旧图归还焦点", + "1440 openpose-video-姿态检测默认中文用途", + "1440 openpose-video-姿态检测源审校默认折叠", + "1440 openpose-video-姿态检测技术范围默认折叠", + "1440 openpose-video-姿态检测默认无执行计数/实现标识", + "1440 openpose-video-姿态检测默认依据限制可见", + "1440 openpose-video-姿态检测 说明未定稿", + "1440 openpose-video-姿态检测 未验证实跑", + "1440 openpose-video-姿态检测 未检查", + "1440 openpose-video-姿态检测停用/时间戳空", + "1440 openpose-video-姿态检测参数全保留", + "1440 openpose-video-姿态检测默认无溢出", + "1440 openpose-video-姿态检测旧图归还焦点", + "1440 sdpose_视频人物姿势骨架提取默认中文用途", + "1440 sdpose_视频人物姿势骨架提取源审校默认折叠", + "1440 sdpose_视频人物姿势骨架提取技术范围默认折叠", + "1440 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识", + "1440 sdpose_视频人物姿势骨架提取默认依据限制可见", + "1440 sdpose_视频人物姿势骨架提取 说明未定稿", + "1440 sdpose_视频人物姿势骨架提取 未验证实跑", + "1440 sdpose_视频人物姿势骨架提取 未检查", + "1440 sdpose_视频人物姿势骨架提取停用/时间戳空", + "1440 sdpose_视频人物姿势骨架提取参数全保留", + "1440 sdpose_视频人物姿势骨架提取默认无溢出", + "1440 sdpose_视频人物姿势骨架提取旧图归还焦点", + "1440 gemma4_提示词反推(图像视频音频)默认中文用途", + "1440 gemma4_提示词反推(图像视频音频)源审校默认折叠", + "1440 gemma4_提示词反推(图像视频音频)技术范围默认折叠", + "1440 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识", + "1440 gemma4_提示词反推(图像视频音频)默认依据限制可见", + "1440 gemma4_提示词反推(图像视频音频) 说明未定稿", + "1440 gemma4_提示词反推(图像视频音频) 未验证实跑", + "1440 gemma4_提示词反推(图像视频音频) 未检查", + "1440 gemma4_提示词反推(图像视频音频)停用/时间戳空", + "1440 gemma4_提示词反推(图像视频音频)参数全保留", + "1440 gemma4_提示词反推(图像视频音频)默认无溢出", + "1440 gemma4_提示词反推(图像视频音频)旧图归还焦点", + "1440 图像合并成四宫格默认中文用途", + "1440 图像合并成四宫格源审校默认折叠", + "1440 图像合并成四宫格技术范围默认折叠", + "1440 图像合并成四宫格默认无执行计数/实现标识", + "1440 图像合并成四宫格默认依据限制可见", + "1440 图像合并成四宫格 说明未定稿", + "1440 图像合并成四宫格 未验证实跑", + "1440 图像合并成四宫格 未检查", + "1440 图像合并成四宫格停用/时间戳空", + "1440 图像合并成四宫格参数全保留", + "1440 图像合并成四宫格默认无溢出", + "1440 图像合并成四宫格旧图归还焦点", + "1440 图像分割-多宫格分割默认中文用途", + "1440 图像分割-多宫格分割源审校默认折叠", + "1440 图像分割-多宫格分割技术范围默认折叠", + "1440 图像分割-多宫格分割默认无执行计数/实现标识", + "1440 图像分割-多宫格分割默认依据限制可见", + "1440 图像分割-多宫格分割 说明未定稿", + "1440 图像分割-多宫格分割 未验证实跑", + "1440 图像分割-多宫格分割 未检查", + "1440 图像分割-多宫格分割停用/时间戳空", + "1440 图像分割-多宫格分割参数全保留", + "1440 图像分割-多宫格分割默认无溢出", + "1440 图像分割-多宫格分割旧图归还焦点", + "1440 Qwen_image2.1_图像编辑_背景移除默认中文用途", + "1440 Qwen_image2.1_图像编辑_背景移除源审校默认折叠", + "1440 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠", + "1440 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识", + "1440 Qwen_image2.1_图像编辑_背景移除默认依据限制可见", + "1440 Qwen_image2.1_图像编辑_背景移除 说明未定稿", + "1440 Qwen_image2.1_图像编辑_背景移除 未验证实跑", + "1440 Qwen_image2.1_图像编辑_背景移除 未检查", + "1440 Qwen_image2.1_图像编辑_背景移除停用/时间戳空", + "1440 Qwen_image2.1_图像编辑_背景移除参数全保留", + "1440 Qwen_image2.1_图像编辑_背景移除默认无溢出", + "1440 Qwen_image2.1_图像编辑_背景移除旧图归还焦点", + "1440 Qwen_image2.1_图像编辑_提示词增强默认中文用途", + "1440 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠", + "1440 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠", + "1440 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识", + "1440 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见", + "1440 Qwen_image2.1_图像编辑_提示词增强 说明未定稿", + "1440 Qwen_image2.1_图像编辑_提示词增强 未验证实跑", + "1440 Qwen_image2.1_图像编辑_提示词增强 未检查", + "1440 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空", + "1440 Qwen_image2.1_图像编辑_提示词增强参数全保留", + "1440 Qwen_image2.1_图像编辑_提示词增强默认无溢出", + "1440 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点", + "1440 Qwen_image2.1_文生图_提示词增强默认中文用途", + "1440 Qwen_image2.1_文生图_提示词增强源审校默认折叠", + "1440 Qwen_image2.1_文生图_提示词增强技术范围默认折叠", + "1440 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识", + "1440 Qwen_image2.1_文生图_提示词增强默认依据限制可见", + "1440 Qwen_image2.1_文生图_提示词增强 说明未定稿", + "1440 Qwen_image2.1_文生图_提示词增强 未验证实跑", + "1440 Qwen_image2.1_文生图_提示词增强 未检查", + "1440 Qwen_image2.1_文生图_提示词增强停用/时间戳空", + "1440 Qwen_image2.1_文生图_提示词增强参数全保留", + "1440 Qwen_image2.1_文生图_提示词增强默认无溢出", + "1440 Qwen_image2.1_文生图_提示词增强旧图归还焦点", + "1440 ControlNet_aux_常用样例默认中文用途", + "1440 ControlNet_aux_常用样例源审校默认折叠", + "1440 ControlNet_aux_常用样例技术范围默认折叠", + "1440 ControlNet_aux_常用样例默认无执行计数/实现标识", + "1440 ControlNet_aux_常用样例默认依据限制可见", + "1440 ControlNet_aux_常用样例 说明未定稿", + "1440 ControlNet_aux_常用样例 未验证实跑", + "1440 ControlNet_aux_常用样例 未检查", + "1440 ControlNet_aux_常用样例停用/时间戳空", + "1440 ControlNet_aux_常用样例参数全保留", + "1440 ControlNet_aux_常用样例默认无溢出", + "1440 ControlNet_aux_常用样例旧图归还焦点", + "1440 Qwen3-ASR-语音转文字默认中文用途", + "1440 Qwen3-ASR-语音转文字源审校默认折叠", + "1440 Qwen3-ASR-语音转文字技术范围默认折叠", + "1440 Qwen3-ASR-语音转文字默认无执行计数/实现标识", + "1440 Qwen3-ASR-语音转文字默认依据限制可见", + "1440 Qwen3-ASR-语音转文字 说明未定稿", + "1440 Qwen3-ASR-语音转文字 未验证实跑", + "1440 Qwen3-ASR-语音转文字 未检查", + "1440 Qwen3-ASR-语音转文字停用/时间戳空", + "1440 Qwen3-ASR-语音转文字参数全保留", + "1440 Qwen3-ASR-语音转文字默认无溢出", + "1440 Qwen3-ASR-语音转文字旧图归还焦点", + "1440 Qwen3-ASR-Subtitle语音转字幕默认中文用途", + "1440 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠", + "1440 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠", + "1440 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识", + "1440 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见", + "1440 Qwen3-ASR-Subtitle语音转字幕 说明未定稿", + "1440 Qwen3-ASR-Subtitle语音转字幕 未验证实跑", + "1440 Qwen3-ASR-Subtitle语音转字幕 未检查", + "1440 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空", + "1440 Qwen3-ASR-Subtitle语音转字幕参数全保留", + "1440 Qwen3-ASR-Subtitle语音转字幕默认无溢出", + "1440 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点", + "1440 Minimax-H3提示词增强默认中文用途", + "1440 Minimax-H3提示词增强源审校默认折叠", + "1440 Minimax-H3提示词增强技术范围默认折叠", + "1440 Minimax-H3提示词增强默认无执行计数/实现标识", + "1440 Minimax-H3提示词增强默认依据限制可见", + "1440 Minimax-H3提示词增强 说明未定稿", + "1440 Minimax-H3提示词增强 未验证实跑", + "1440 Minimax-H3提示词增强 未检查", + "1440 Minimax-H3提示词增强停用/时间戳空", + "1440 Minimax-H3提示词增强参数全保留", + "1440 Minimax-H3提示词增强默认无溢出", + "1440 Minimax-H3提示词增强旧图归还焦点", + "1440 音频转MP3格式默认中文用途", + "1440 音频转MP3格式源审校默认折叠", + "1440 音频转MP3格式技术范围默认折叠", + "1440 音频转MP3格式默认无执行计数/实现标识", + "1440 音频转MP3格式默认依据限制可见", + "1440 音频转MP3格式 说明未定稿", + "1440 音频转MP3格式 未验证实跑", + "1440 音频转MP3格式 未检查", + "1440 音频转MP3格式停用/时间戳空", + "1440 音频转MP3格式参数全保留", + "1440 音频转MP3格式默认无溢出", + "1440 音频转MP3格式旧图归还焦点", + "1440 音频人声分离默认中文用途", + "1440 音频人声分离源审校默认折叠", + "1440 音频人声分离技术范围默认折叠", + "1440 音频人声分离默认无执行计数/实现标识", + "1440 音频人声分离默认依据限制可见", + "1440 音频人声分离 说明未定稿", + "1440 音频人声分离 未验证实跑", + "1440 音频人声分离 未检查", + "1440 音频人声分离停用/时间戳空", + "1440 音频人声分离参数全保留", + "1440 音频人声分离默认无溢出", + "1440 音频人声分离旧图归还焦点", + "1440 视频-音频分离默认中文用途", + "1440 视频-音频分离源审校默认折叠", + "1440 视频-音频分离技术范围默认折叠", + "1440 视频-音频分离默认无执行计数/实现标识", + "1440 视频-音频分离默认依据限制可见", + "1440 视频-音频分离 说明未定稿", + "1440 视频-音频分离 未验证实跑", + "1440 视频-音频分离 未检查", + "1440 视频-音频分离停用/时间戳空", + "1440 视频-音频分离参数全保留", + "1440 视频-音频分离默认无溢出", + "1440 视频-音频分离旧图归还焦点", + "1440 图像嵌入文字描述默认中文用途", + "1440 图像嵌入文字描述源审校默认折叠", + "1440 图像嵌入文字描述技术范围默认折叠", + "1440 图像嵌入文字描述默认无执行计数/实现标识", + "1440 图像嵌入文字描述默认依据限制可见", + "1440 图像嵌入文字描述 说明未定稿", + "1440 图像嵌入文字描述 未验证实跑", + "1440 图像嵌入文字描述 未检查", + "1440 图像嵌入文字描述停用/时间戳空", + "1440 图像嵌入文字描述参数全保留", + "1440 图像嵌入文字描述默认无溢出", + "1440 图像嵌入文字描述旧图归还焦点", + "390 多视频合成分屏展示默认中文用途", + "390 多视频合成分屏展示源审校默认折叠", + "390 多视频合成分屏展示技术范围默认折叠", + "390 多视频合成分屏展示默认无执行计数/实现标识", + "390 多视频合成分屏展示默认依据限制可见", + "390 多视频合成分屏展示 说明未定稿", + "390 多视频合成分屏展示 未验证实跑", + "390 多视频合成分屏展示 未检查", + "390 多视频合成分屏展示停用/时间戳空", + "390 多视频合成分屏展示参数全保留", + "390 多视频合成分屏展示默认无溢出", + "390 多视频合成分屏展示原用途/源路径展开保留", + "390 多视频合成分屏展示展开流程 0", + "390 多视频合成分屏展示展开流程 1", + "390 多视频合成分屏展示展开流程 2", + "390 多视频合成分屏展示展开流程 3", + "390 多视频合成分屏展示展开流程 4", + "390 多视频合成分屏展示展开流程 5", + "390 多视频合成分屏展示展开流程 6", + "390 多视频合成分屏展示展开流程 7", + "390 多视频合成分屏展示展开流程 8", + "390 多视频合成分屏展示展开流程 9", + "390 多视频合成分屏展示展开流程 10", + "390 多视频合成分屏展示展开流程 11", + "390 多视频合成分屏展示展开流程 12", + "390 多视频合成分屏展示展开流程 13", + "390 多视频合成分屏展示展开流程 14", + "390 多视频合成分屏展示展开流程 15", + "390 多视频合成分屏展示展开流程 16", + "390 多视频合成分屏展示展开流程 17", + "390 多视频合成分屏展示展开流程 18", + "390 多视频合成分屏展示展开流程 19", + "390 多视频合成分屏展示展开流程 20", + "390 多视频合成分屏展示展开流程 21", + "390 多视频合成分屏展示展开流程 22", + "390 多视频合成分屏展示展开流程 23", + "390 多视频合成分屏展示展开流程 24", + "390 多视频合成分屏展示展开流程 25", + "390 多视频合成分屏展示展开流程 26", + "390 多视频合成分屏展示展开流程 27", + "390 多视频合成分屏展示展开流程 28", + "390 多视频合成分屏展示展开流程 29", + "390 多视频合成分屏展示展开流程 30", + "390 多视频合成分屏展示展开流程 31", + "390 多视频合成分屏展示展开流程 32", + "390 多视频合成分屏展示展开流程 33", + "390 多视频合成分屏展示展开流程 34", + "390 多视频合成分屏展示展开流程 35", + "390 多视频合成分屏展示展开流程 36", + "390 多视频合成分屏展示展开流程 37", + "390 多视频合成分屏展示原件摘要可展开", + "390 多视频合成分屏展示版本 0", + "390 多视频合成分屏展示版本 1", + "390 多视频合成分屏展示版本 2", + "390 多视频合成分屏展示版本 3", + "390 多视频合成分屏展示版本 4", + "390 2.inputcount键盘展开", + "390 2.inputcount用途/单位/范围/来源条件", + "390 2.inputcount精确保留现值", + "390 2.inputcount指针默认折叠", + "390 2.inputcount精确源码/类型/指针", + "390 2.inputcount展开无溢出", + "390 2.direction键盘展开", + "390 2.direction用途/单位/范围/来源条件", + "390 2.direction精确保留现值", + "390 2.direction指针默认折叠", + "390 2.direction精确源码/类型/指针", + "390 2.direction展开无溢出", + "390 2.match_image_size键盘展开", + "390 2.match_image_size用途/单位/范围/来源条件", + "390 2.match_image_size精确保留现值", + "390 2.match_image_size指针默认折叠", + "390 2.match_image_size精确源码/类型/指针", + "390 2.match_image_size展开无溢出", + "390 2.saved_position_3键盘展开", + "390 2.saved_position_3用途/单位/范围/来源条件", + "390 2.saved_position_3精确保留现值", + "390 2.saved_position_3指针默认折叠", + "390 2.saved_position_3精确源码/类型/指针", + "390 2.saved_position_3展开无溢出", + "390 1.inputcount键盘展开", + "390 1.inputcount用途/单位/范围/来源条件", + "390 1.inputcount精确保留现值", + "390 1.inputcount指针默认折叠", + "390 1.inputcount精确源码/类型/指针", + "390 1.inputcount展开无溢出", + "390 1.direction键盘展开", + "390 1.direction用途/单位/范围/来源条件", + "390 1.direction精确保留现值", + "390 1.direction指针默认折叠", + "390 1.direction精确源码/类型/指针", + "390 1.direction展开无溢出", + "390 1.match_image_size键盘展开", + "390 1.match_image_size用途/单位/范围/来源条件", + "390 1.match_image_size精确保留现值", + "390 1.match_image_size指针默认折叠", + "390 1.match_image_size精确源码/类型/指针", + "390 1.match_image_size展开无溢出", + "390 1.saved_position_3键盘展开", + "390 1.saved_position_3用途/单位/范围/来源条件", + "390 1.saved_position_3精确保留现值", + "390 1.saved_position_3指针默认折叠", + "390 1.saved_position_3精确源码/类型/指针", + "390 1.saved_position_3展开无溢出", + "390 3.frame_rate键盘展开", + "390 3.frame_rate用途/单位/范围/来源条件", + "390 3.frame_rate精确保留现值", + "390 3.frame_rate指针默认折叠", + "390 3.frame_rate精确源码/类型/指针", + "390 3.frame_rate展开无溢出", + "390 3.loop_count键盘展开", + "390 3.loop_count用途/单位/范围/来源条件", + "390 3.loop_count精确保留现值", + "390 3.loop_count指针默认折叠", + "390 3.loop_count精确源码/类型/指针", + "390 3.loop_count展开无溢出", + "390 3.filename_prefix键盘展开", + "390 3.filename_prefix用途/单位/范围/来源条件", + "390 3.filename_prefix精确保留现值", + "390 3.filename_prefix指针默认折叠", + "390 3.filename_prefix精确源码/类型/指针", + "390 3.filename_prefix展开无溢出", + "390 3.format键盘展开", + "390 3.format用途/单位/范围/来源条件", + "390 3.format精确保留现值", + "390 3.format指针默认折叠", + "390 3.format精确源码/类型/指针", + "390 3.format展开无溢出", + "390 3.pix_fmt键盘展开", + "390 3.pix_fmt用途/单位/范围/来源条件", + "390 3.pix_fmt精确保留现值", + "390 3.pix_fmt指针默认折叠", + "390 3.pix_fmt精确源码/类型/指针", + "390 3.pix_fmt展开无溢出", + "390 3.crf键盘展开", + "390 3.crf用途/单位/范围/来源条件", + "390 3.crf精确保留现值", + "390 3.crf指针默认折叠", + "390 3.crf精确源码/类型/指针", + "390 3.crf展开无溢出", + "390 3.save_metadata键盘展开", + "390 3.save_metadata用途/单位/范围/来源条件", + "390 3.save_metadata精确保留现值", + "390 3.save_metadata指针默认折叠", + "390 3.save_metadata精确源码/类型/指针", + "390 3.save_metadata展开无溢出", + "390 3.trim_to_audio键盘展开", + "390 3.trim_to_audio用途/单位/范围/来源条件", + "390 3.trim_to_audio精确保留现值", + "390 3.trim_to_audio指针默认折叠", + "390 3.trim_to_audio精确源码/类型/指针", + "390 3.trim_to_audio展开无溢出", + "390 3.pingpong键盘展开", + "390 3.pingpong用途/单位/范围/来源条件", + "390 3.pingpong精确保留现值", + "390 3.pingpong指针默认折叠", + "390 3.pingpong精确源码/类型/指针", + "390 3.pingpong展开无溢出", + "390 3.save_output键盘展开", + "390 3.save_output用途/单位/范围/来源条件", + "390 3.save_output精确保留现值", + "390 3.save_output指针默认折叠", + "390 3.save_output精确源码/类型/指针", + "390 3.save_output展开无溢出", + "390 3.videopreview键盘展开", + "390 3.videopreview用途/单位/范围/来源条件", + "390 3.videopreview精确保留现值", + "390 3.videopreview指针默认折叠", + "390 3.videopreview精确源码/类型/指针", + "390 3.videopreview展开无溢出", + "390 7.width键盘展开", + "390 7.width用途/单位/范围/来源条件", + "390 7.width精确保留现值", + "390 7.width指针默认折叠", + "390 7.width精确源码/类型/指针", + "390 7.width展开无溢出", + "390 7.height键盘展开", + "390 7.height用途/单位/范围/来源条件", + "390 7.height精确保留现值", + "390 7.height指针默认折叠", + "390 7.height精确源码/类型/指针", + "390 7.height展开无溢出", + "390 7.upscale_method键盘展开", + "390 7.upscale_method用途/单位/范围/来源条件", + "390 7.upscale_method精确保留现值", + "390 7.upscale_method指针默认折叠", + "390 7.upscale_method精确源码/类型/指针", + "390 7.upscale_method展开无溢出", + "390 7.keep_proportion键盘展开", + "390 7.keep_proportion用途/单位/范围/来源条件", + "390 7.keep_proportion精确保留现值", + "390 7.keep_proportion指针默认折叠", + "390 7.keep_proportion精确源码/类型/指针", + "390 7.keep_proportion展开无溢出", + "390 7.pad_color键盘展开", + "390 7.pad_color用途/单位/范围/来源条件", + "390 7.pad_color精确保留现值", + "390 7.pad_color指针默认折叠", + "390 7.pad_color精确源码/类型/指针", + "390 7.pad_color展开无溢出", + "390 7.crop_position键盘展开", + "390 7.crop_position用途/单位/范围/来源条件", + "390 7.crop_position精确保留现值", + "390 7.crop_position指针默认折叠", + "390 7.crop_position精确源码/类型/指针", + "390 7.crop_position展开无溢出", + "390 7.divisible_by键盘展开", + "390 7.divisible_by用途/单位/范围/来源条件", + "390 7.divisible_by精确保留现值", + "390 7.divisible_by指针默认折叠", + "390 7.divisible_by精确源码/类型/指针", + "390 7.divisible_by展开无溢出", + "390 7.device键盘展开", + "390 7.device用途/单位/范围/来源条件", + "390 7.device精确保留现值", + "390 7.device指针默认折叠", + "390 7.device精确源码/类型/指针", + "390 7.device展开无溢出", + "390 5.width键盘展开", + "390 5.width用途/单位/范围/来源条件", + "390 5.width精确保留现值", + "390 5.width指针默认折叠", + "390 5.width精确源码/类型/指针", + "390 5.width展开无溢出", + "390 5.height键盘展开", + "390 5.height用途/单位/范围/来源条件", + "390 5.height精确保留现值", + "390 5.height指针默认折叠", + "390 5.height精确源码/类型/指针", + "390 5.height展开无溢出", + "390 5.upscale_method键盘展开", + "390 5.upscale_method用途/单位/范围/来源条件", + "390 5.upscale_method精确保留现值", + "390 5.upscale_method指针默认折叠", + "390 5.upscale_method精确源码/类型/指针", + "390 5.upscale_method展开无溢出", + "390 5.keep_proportion键盘展开", + "390 5.keep_proportion用途/单位/范围/来源条件", + "390 5.keep_proportion精确保留现值", + "390 5.keep_proportion指针默认折叠", + "390 5.keep_proportion精确源码/类型/指针", + "390 5.keep_proportion展开无溢出", + "390 5.pad_color键盘展开", + "390 5.pad_color用途/单位/范围/来源条件", + "390 5.pad_color精确保留现值", + "390 5.pad_color指针默认折叠", + "390 5.pad_color精确源码/类型/指针", + "390 5.pad_color展开无溢出", + "390 5.crop_position键盘展开", + "390 5.crop_position用途/单位/范围/来源条件", + "390 5.crop_position精确保留现值", + "390 5.crop_position指针默认折叠", + "390 5.crop_position精确源码/类型/指针", + "390 5.crop_position展开无溢出", + "390 5.divisible_by键盘展开", + "390 5.divisible_by用途/单位/范围/来源条件", + "390 5.divisible_by精确保留现值", + "390 5.divisible_by指针默认折叠", + "390 5.divisible_by精确源码/类型/指针", + "390 5.divisible_by展开无溢出", + "390 5.device键盘展开", + "390 5.device用途/单位/范围/来源条件", + "390 5.device精确保留现值", + "390 5.device指针默认折叠", + "390 5.device精确源码/类型/指针", + "390 5.device展开无溢出", + "390 8.video键盘展开", + "390 8.video用途/单位/范围/来源条件", + "390 8.video精确保留现值", + "390 8.video指针默认折叠", + "390 8.video精确源码/类型/指针", + "390 8.video展开无溢出", + "390 8.force_rate键盘展开", + "390 8.force_rate用途/单位/范围/来源条件", + "390 8.force_rate精确保留现值", + "390 8.force_rate指针默认折叠", + "390 8.force_rate精确源码/类型/指针", + "390 8.force_rate展开无溢出", + "390 8.custom_width键盘展开", + "390 8.custom_width用途/单位/范围/来源条件", + "390 8.custom_width精确保留现值", + "390 8.custom_width指针默认折叠", + "390 8.custom_width精确源码/类型/指针", + "390 8.custom_width展开无溢出", + "390 8.custom_height键盘展开", + "390 8.custom_height用途/单位/范围/来源条件", + "390 8.custom_height精确保留现值", + "390 8.custom_height指针默认折叠", + "390 8.custom_height精确源码/类型/指针", + "390 8.custom_height展开无溢出", + "390 8.frame_load_cap键盘展开", + "390 8.frame_load_cap用途/单位/范围/来源条件", + "390 8.frame_load_cap精确保留现值", + "390 8.frame_load_cap指针默认折叠", + "390 8.frame_load_cap精确源码/类型/指针", + "390 8.frame_load_cap展开无溢出", + "390 8.skip_first_frames键盘展开", + "390 8.skip_first_frames用途/单位/范围/来源条件", + "390 8.skip_first_frames精确保留现值", + "390 8.skip_first_frames指针默认折叠", + "390 8.skip_first_frames精确源码/类型/指针", + "390 8.skip_first_frames展开无溢出", + "390 8.select_every_nth键盘展开", + "390 8.select_every_nth用途/单位/范围/来源条件", + "390 8.select_every_nth精确保留现值", + "390 8.select_every_nth指针默认折叠", + "390 8.select_every_nth精确源码/类型/指针", + "390 8.select_every_nth展开无溢出", + "390 8.format键盘展开", + "390 8.format用途/单位/范围/来源条件", + "390 8.format精确保留现值", + "390 8.format指针默认折叠", + "390 8.format精确源码/类型/指针", + "390 8.format展开无溢出", + "390 8.videopreview键盘展开", + "390 8.videopreview用途/单位/范围/来源条件", + "390 8.videopreview精确保留现值", + "390 8.videopreview指针默认折叠", + "390 8.videopreview精确源码/类型/指针", + "390 8.videopreview展开无溢出", + "390 6.video键盘展开", + "390 6.video用途/单位/范围/来源条件", + "390 6.video精确保留现值", + "390 6.video指针默认折叠", + "390 6.video精确源码/类型/指针", + "390 6.video展开无溢出", + "390 6.force_rate键盘展开", + "390 6.force_rate用途/单位/范围/来源条件", + "390 6.force_rate精确保留现值", + "390 6.force_rate指针默认折叠", + "390 6.force_rate精确源码/类型/指针", + "390 6.force_rate展开无溢出", + "390 6.custom_width键盘展开", + "390 6.custom_width用途/单位/范围/来源条件", + "390 6.custom_width精确保留现值", + "390 6.custom_width指针默认折叠", + "390 6.custom_width精确源码/类型/指针", + "390 6.custom_width展开无溢出", + "390 6.custom_height键盘展开", + "390 6.custom_height用途/单位/范围/来源条件", + "390 6.custom_height精确保留现值", + "390 6.custom_height指针默认折叠", + "390 6.custom_height精确源码/类型/指针", + "390 6.custom_height展开无溢出", + "390 6.frame_load_cap键盘展开", + "390 6.frame_load_cap用途/单位/范围/来源条件", + "390 6.frame_load_cap精确保留现值", + "390 6.frame_load_cap指针默认折叠", + "390 6.frame_load_cap精确源码/类型/指针", + "390 6.frame_load_cap展开无溢出", + "390 6.skip_first_frames键盘展开", + "390 6.skip_first_frames用途/单位/范围/来源条件", + "390 6.skip_first_frames精确保留现值", + "390 6.skip_first_frames指针默认折叠", + "390 6.skip_first_frames精确源码/类型/指针", + "390 6.skip_first_frames展开无溢出", + "390 6.select_every_nth键盘展开", + "390 6.select_every_nth用途/单位/范围/来源条件", + "390 6.select_every_nth精确保留现值", + "390 6.select_every_nth指针默认折叠", + "390 6.select_every_nth精确源码/类型/指针", + "390 6.select_every_nth展开无溢出", + "390 6.format键盘展开", + "390 6.format用途/单位/范围/来源条件", + "390 6.format精确保留现值", + "390 6.format指针默认折叠", + "390 6.format精确源码/类型/指针", + "390 6.format展开无溢出", + "390 6.videopreview键盘展开", + "390 6.videopreview用途/单位/范围/来源条件", + "390 6.videopreview精确保留现值", + "390 6.videopreview指针默认折叠", + "390 6.videopreview精确源码/类型/指针", + "390 6.videopreview展开无溢出", + "390 4.video键盘展开", + "390 4.video用途/单位/范围/来源条件", + "390 4.video精确保留现值", + "390 4.video指针默认折叠", + "390 4.video精确源码/类型/指针", + "390 4.video展开无溢出", + "390 4.force_rate键盘展开", + "390 4.force_rate用途/单位/范围/来源条件", + "390 4.force_rate精确保留现值", + "390 4.force_rate指针默认折叠", + "390 4.force_rate精确源码/类型/指针", + "390 4.force_rate展开无溢出", + "390 4.custom_width键盘展开", + "390 4.custom_width用途/单位/范围/来源条件", + "390 4.custom_width精确保留现值", + "390 4.custom_width指针默认折叠", + "390 4.custom_width精确源码/类型/指针", + "390 4.custom_width展开无溢出", + "390 4.custom_height键盘展开", + "390 4.custom_height用途/单位/范围/来源条件", + "390 4.custom_height精确保留现值", + "390 4.custom_height指针默认折叠", + "390 4.custom_height精确源码/类型/指针", + "390 4.custom_height展开无溢出", + "390 4.frame_load_cap键盘展开", + "390 4.frame_load_cap用途/单位/范围/来源条件", + "390 4.frame_load_cap精确保留现值", + "390 4.frame_load_cap指针默认折叠", + "390 4.frame_load_cap精确源码/类型/指针", + "390 4.frame_load_cap展开无溢出", + "390 4.skip_first_frames键盘展开", + "390 4.skip_first_frames用途/单位/范围/来源条件", + "390 4.skip_first_frames精确保留现值", + "390 4.skip_first_frames指针默认折叠", + "390 4.skip_first_frames精确源码/类型/指针", + "390 4.skip_first_frames展开无溢出", + "390 4.select_every_nth键盘展开", + "390 4.select_every_nth用途/单位/范围/来源条件", + "390 4.select_every_nth精确保留现值", + "390 4.select_every_nth指针默认折叠", + "390 4.select_every_nth精确源码/类型/指针", + "390 4.select_every_nth展开无溢出", + "390 4.format键盘展开", + "390 4.format用途/单位/范围/来源条件", + "390 4.format精确保留现值", + "390 4.format指针默认折叠", + "390 4.format精确源码/类型/指针", + "390 4.format展开无溢出", + "390 4.videopreview键盘展开", + "390 4.videopreview用途/单位/范围/来源条件", + "390 4.videopreview精确保留现值", + "390 4.videopreview指针默认折叠", + "390 4.videopreview精确源码/类型/指针", + "390 4.videopreview展开无溢出", + "390 10.inputcount键盘展开", + "390 10.inputcount用途/单位/范围/来源条件", + "390 10.inputcount精确保留现值", + "390 10.inputcount指针默认折叠", + "390 10.inputcount精确源码/类型/指针", + "390 10.inputcount展开无溢出", + "390 10.direction键盘展开", + "390 10.direction用途/单位/范围/来源条件", + "390 10.direction精确保留现值", + "390 10.direction指针默认折叠", + "390 10.direction精确源码/类型/指针", + "390 10.direction展开无溢出", + "390 10.match_image_size键盘展开", + "390 10.match_image_size用途/单位/范围/来源条件", + "390 10.match_image_size精确保留现值", + "390 10.match_image_size指针默认折叠", + "390 10.match_image_size精确源码/类型/指针", + "390 10.match_image_size展开无溢出", + "390 10.saved_position_3键盘展开", + "390 10.saved_position_3用途/单位/范围/来源条件", + "390 10.saved_position_3精确保留现值", + "390 10.saved_position_3指针默认折叠", + "390 10.saved_position_3精确源码/类型/指针", + "390 10.saved_position_3展开无溢出", + "390 11.inputcount键盘展开", + "390 11.inputcount用途/单位/范围/来源条件", + "390 11.inputcount精确保留现值", + "390 11.inputcount指针默认折叠", + "390 11.inputcount精确源码/类型/指针", + "390 11.inputcount展开无溢出", + "390 11.direction键盘展开", + "390 11.direction用途/单位/范围/来源条件", + "390 11.direction精确保留现值", + "390 11.direction指针默认折叠", + "390 11.direction精确源码/类型/指针", + "390 11.direction展开无溢出", + "390 11.match_image_size键盘展开", + "390 11.match_image_size用途/单位/范围/来源条件", + "390 11.match_image_size精确保留现值", + "390 11.match_image_size指针默认折叠", + "390 11.match_image_size精确源码/类型/指针", + "390 11.match_image_size展开无溢出", + "390 11.saved_position_3键盘展开", + "390 11.saved_position_3用途/单位/范围/来源条件", + "390 11.saved_position_3精确保留现值", + "390 11.saved_position_3指针默认折叠", + "390 11.saved_position_3精确源码/类型/指针", + "390 11.saved_position_3展开无溢出", + "390 12.frame_rate键盘展开", + "390 12.frame_rate用途/单位/范围/来源条件", + "390 12.frame_rate精确保留现值", + "390 12.frame_rate指针默认折叠", + "390 12.frame_rate精确源码/类型/指针", + "390 12.frame_rate展开无溢出", + "390 12.loop_count键盘展开", + "390 12.loop_count用途/单位/范围/来源条件", + "390 12.loop_count精确保留现值", + "390 12.loop_count指针默认折叠", + "390 12.loop_count精确源码/类型/指针", + "390 12.loop_count展开无溢出", + "390 12.filename_prefix键盘展开", + "390 12.filename_prefix用途/单位/范围/来源条件", + "390 12.filename_prefix精确保留现值", + "390 12.filename_prefix指针默认折叠", + "390 12.filename_prefix精确源码/类型/指针", + "390 12.filename_prefix展开无溢出", + "390 12.format键盘展开", + "390 12.format用途/单位/范围/来源条件", + "390 12.format精确保留现值", + "390 12.format指针默认折叠", + "390 12.format精确源码/类型/指针", + "390 12.format展开无溢出", + "390 12.pix_fmt键盘展开", + "390 12.pix_fmt用途/单位/范围/来源条件", + "390 12.pix_fmt精确保留现值", + "390 12.pix_fmt指针默认折叠", + "390 12.pix_fmt精确源码/类型/指针", + "390 12.pix_fmt展开无溢出", + "390 12.crf键盘展开", + "390 12.crf用途/单位/范围/来源条件", + "390 12.crf精确保留现值", + "390 12.crf指针默认折叠", + "390 12.crf精确源码/类型/指针", + "390 12.crf展开无溢出", + "390 12.save_metadata键盘展开", + "390 12.save_metadata用途/单位/范围/来源条件", + "390 12.save_metadata精确保留现值", + "390 12.save_metadata指针默认折叠", + "390 12.save_metadata精确源码/类型/指针", + "390 12.save_metadata展开无溢出", + "390 12.trim_to_audio键盘展开", + "390 12.trim_to_audio用途/单位/范围/来源条件", + "390 12.trim_to_audio精确保留现值", + "390 12.trim_to_audio指针默认折叠", + "390 12.trim_to_audio精确源码/类型/指针", + "390 12.trim_to_audio展开无溢出", + "390 12.pingpong键盘展开", + "390 12.pingpong用途/单位/范围/来源条件", + "390 12.pingpong精确保留现值", + "390 12.pingpong指针默认折叠", + "390 12.pingpong精确源码/类型/指针", + "390 12.pingpong展开无溢出", + "390 12.save_output键盘展开", + "390 12.save_output用途/单位/范围/来源条件", + "390 12.save_output精确保留现值", + "390 12.save_output指针默认折叠", + "390 12.save_output精确源码/类型/指针", + "390 12.save_output展开无溢出", + "390 12.videopreview键盘展开", + "390 12.videopreview用途/单位/范围/来源条件", + "390 12.videopreview精确保留现值", + "390 12.videopreview指针默认折叠", + "390 12.videopreview精确源码/类型/指针", + "390 12.videopreview展开无溢出", + "390 17.video键盘展开", + "390 17.video用途/单位/范围/来源条件", + "390 17.video精确保留现值", + "390 17.video指针默认折叠", + "390 17.video精确源码/类型/指针", + "390 17.video展开无溢出", + "390 17.force_rate键盘展开", + "390 17.force_rate用途/单位/范围/来源条件", + "390 17.force_rate精确保留现值", + "390 17.force_rate指针默认折叠", + "390 17.force_rate精确源码/类型/指针", + "390 17.force_rate展开无溢出", + "390 17.custom_width键盘展开", + "390 17.custom_width用途/单位/范围/来源条件", + "390 17.custom_width精确保留现值", + "390 17.custom_width指针默认折叠", + "390 17.custom_width精确源码/类型/指针", + "390 17.custom_width展开无溢出", + "390 17.custom_height键盘展开", + "390 17.custom_height用途/单位/范围/来源条件", + "390 17.custom_height精确保留现值", + "390 17.custom_height指针默认折叠", + "390 17.custom_height精确源码/类型/指针", + "390 17.custom_height展开无溢出", + "390 17.frame_load_cap键盘展开", + "390 17.frame_load_cap用途/单位/范围/来源条件", + "390 17.frame_load_cap精确保留现值", + "390 17.frame_load_cap指针默认折叠", + "390 17.frame_load_cap精确源码/类型/指针", + "390 17.frame_load_cap展开无溢出", + "390 17.skip_first_frames键盘展开", + "390 17.skip_first_frames用途/单位/范围/来源条件", + "390 17.skip_first_frames精确保留现值", + "390 17.skip_first_frames指针默认折叠", + "390 17.skip_first_frames精确源码/类型/指针", + "390 17.skip_first_frames展开无溢出", + "390 17.select_every_nth键盘展开", + "390 17.select_every_nth用途/单位/范围/来源条件", + "390 17.select_every_nth精确保留现值", + "390 17.select_every_nth指针默认折叠", + "390 17.select_every_nth精确源码/类型/指针", + "390 17.select_every_nth展开无溢出", + "390 17.format键盘展开", + "390 17.format用途/单位/范围/来源条件", + "390 17.format精确保留现值", + "390 17.format指针默认折叠", + "390 17.format精确源码/类型/指针", + "390 17.format展开无溢出", + "390 17.videopreview键盘展开", + "390 17.videopreview用途/单位/范围/来源条件", + "390 17.videopreview精确保留现值", + "390 17.videopreview指针默认折叠", + "390 17.videopreview精确源码/类型/指针", + "390 17.videopreview展开无溢出", + "390 16.video键盘展开", + "390 16.video用途/单位/范围/来源条件", + "390 16.video精确保留现值", + "390 16.video指针默认折叠", + "390 16.video精确源码/类型/指针", + "390 16.video展开无溢出", + "390 16.force_rate键盘展开", + "390 16.force_rate用途/单位/范围/来源条件", + "390 16.force_rate精确保留现值", + "390 16.force_rate指针默认折叠", + "390 16.force_rate精确源码/类型/指针", + "390 16.force_rate展开无溢出", + "390 16.custom_width键盘展开", + "390 16.custom_width用途/单位/范围/来源条件", + "390 16.custom_width精确保留现值", + "390 16.custom_width指针默认折叠", + "390 16.custom_width精确源码/类型/指针", + "390 16.custom_width展开无溢出", + "390 16.custom_height键盘展开", + "390 16.custom_height用途/单位/范围/来源条件", + "390 16.custom_height精确保留现值", + "390 16.custom_height指针默认折叠", + "390 16.custom_height精确源码/类型/指针", + "390 16.custom_height展开无溢出", + "390 16.frame_load_cap键盘展开", + "390 16.frame_load_cap用途/单位/范围/来源条件", + "390 16.frame_load_cap精确保留现值", + "390 16.frame_load_cap指针默认折叠", + "390 16.frame_load_cap精确源码/类型/指针", + "390 16.frame_load_cap展开无溢出", + "390 16.skip_first_frames键盘展开", + "390 16.skip_first_frames用途/单位/范围/来源条件", + "390 16.skip_first_frames精确保留现值", + "390 16.skip_first_frames指针默认折叠", + "390 16.skip_first_frames精确源码/类型/指针", + "390 16.skip_first_frames展开无溢出", + "390 16.select_every_nth键盘展开", + "390 16.select_every_nth用途/单位/范围/来源条件", + "390 16.select_every_nth精确保留现值", + "390 16.select_every_nth指针默认折叠", + "390 16.select_every_nth精确源码/类型/指针", + "390 16.select_every_nth展开无溢出", + "390 16.format键盘展开", + "390 16.format用途/单位/范围/来源条件", + "390 16.format精确保留现值", + "390 16.format指针默认折叠", + "390 16.format精确源码/类型/指针", + "390 16.format展开无溢出", + "390 16.videopreview键盘展开", + "390 16.videopreview用途/单位/范围/来源条件", + "390 16.videopreview精确保留现值", + "390 16.videopreview指针默认折叠", + "390 16.videopreview精确源码/类型/指针", + "390 16.videopreview展开无溢出", + "390Tab焦点保留", + "390ShiftTab焦点保留", + "390 多视频合成分屏展示关闭归还焦点", + "390 图像4种添加水印节点默认中文用途", + "390 图像4种添加水印节点源审校默认折叠", + "390 图像4种添加水印节点技术范围默认折叠", + "390 图像4种添加水印节点默认无执行计数/实现标识", + "390 图像4种添加水印节点默认依据限制可见", + "390 图像4种添加水印节点 说明未定稿", + "390 图像4种添加水印节点 未验证实跑", + "390 图像4种添加水印节点 未检查", + "390 图像4种添加水印节点停用/时间戳空", + "390 图像4种添加水印节点参数全保留", + "390 图像4种添加水印节点默认无溢出", + "390 图像4种添加水印节点旧图归还焦点", + "390 birefnet_图像移除背景默认中文用途", + "390 birefnet_图像移除背景源审校默认折叠", + "390 birefnet_图像移除背景技术范围默认折叠", + "390 birefnet_图像移除背景默认无执行计数/实现标识", + "390 birefnet_图像移除背景默认依据限制可见", + "390 birefnet_图像移除背景 说明未定稿", + "390 birefnet_图像移除背景 未验证实跑", + "390 birefnet_图像移除背景 未检查", + "390 birefnet_图像移除背景停用/时间戳空", + "390 birefnet_图像移除背景参数全保留", + "390 birefnet_图像移除背景默认无溢出", + "390 birefnet_图像移除背景旧图归还焦点", + "390 加载本地latent解码默认中文用途", + "390 加载本地latent解码源审校默认折叠", + "390 加载本地latent解码技术范围默认折叠", + "390 加载本地latent解码默认无执行计数/实现标识", + "390 加载本地latent解码默认依据限制可见", + "390 加载本地latent解码 说明未定稿", + "390 加载本地latent解码 未验证实跑", + "390 加载本地latent解码 未检查", + "390 加载本地latent解码停用/时间戳空", + "390 加载本地latent解码参数全保留", + "390 加载本地latent解码默认无溢出", + "390 加载本地latent解码旧图归还焦点", + "390 截取视频每一帧默认中文用途", + "390 截取视频每一帧源审校默认折叠", + "390 截取视频每一帧技术范围默认折叠", + "390 截取视频每一帧默认无执行计数/实现标识", + "390 截取视频每一帧默认依据限制可见", + "390 截取视频每一帧 说明未定稿", + "390 截取视频每一帧 未验证实跑", + "390 截取视频每一帧 未检查", + "390 截取视频每一帧停用/时间戳空", + "390 截取视频每一帧参数全保留", + "390 截取视频每一帧默认无溢出", + "390 截取视频每一帧旧图归还焦点", + "390 双图像或视频合并显示默认中文用途", + "390 双图像或视频合并显示源审校默认折叠", + "390 双图像或视频合并显示技术范围默认折叠", + "390 双图像或视频合并显示默认无执行计数/实现标识", + "390 双图像或视频合并显示默认依据限制可见", + "390 双图像或视频合并显示 说明未定稿", + "390 双图像或视频合并显示 未验证实跑", + "390 双图像或视频合并显示 未检查", + "390 双图像或视频合并显示停用/时间戳空", + "390 双图像或视频合并显示参数全保留", + "390 双图像或视频合并显示默认无溢出", + "390 双图像或视频合并显示旧图归还焦点", + "390 视频转gif动图图片默认中文用途", + "390 视频转gif动图图片源审校默认折叠", + "390 视频转gif动图图片技术范围默认折叠", + "390 视频转gif动图图片默认无执行计数/实现标识", + "390 视频转gif动图图片默认依据限制可见", + "390 视频转gif动图图片 说明未定稿", + "390 视频转gif动图图片 未验证实跑", + "390 视频转gif动图图片 未检查", + "390 视频转gif动图图片停用/时间戳空", + "390 视频转gif动图图片参数全保留", + "390 视频转gif动图图片默认无溢出", + "390 视频转gif动图图片旧图归还焦点", + "390 加载图片合成视频默认中文用途", + "390 加载图片合成视频源审校默认折叠", + "390 加载图片合成视频技术范围默认折叠", + "390 加载图片合成视频默认无执行计数/实现标识", + "390 加载图片合成视频默认依据限制可见", + "390 加载图片合成视频 说明未定稿", + "390 加载图片合成视频 未验证实跑", + "390 加载图片合成视频 未检查", + "390 加载图片合成视频停用/时间戳空", + "390 加载图片合成视频参数全保留", + "390 加载图片合成视频默认无溢出", + "390 加载图片合成视频旧图归还焦点", + "390 视频倒放默认中文用途", + "390 视频倒放源审校默认折叠", + "390 视频倒放技术范围默认折叠", + "390 视频倒放默认无执行计数/实现标识", + "390 视频倒放默认依据限制可见", + "390 视频倒放 说明未定稿", + "390 视频倒放 未验证实跑", + "390 视频倒放 未检查", + "390 视频倒放停用/时间戳空", + "390 视频倒放参数全保留", + "390 视频倒放默认无溢出", + "390 视频倒放旧图归还焦点", + "390 NLF_视频人物动作骨架获取默认中文用途", + "390 NLF_视频人物动作骨架获取源审校默认折叠", + "390 NLF_视频人物动作骨架获取技术范围默认折叠", + "390 NLF_视频人物动作骨架获取默认无执行计数/实现标识", + "390 NLF_视频人物动作骨架获取默认依据限制可见", + "390 NLF_视频人物动作骨架获取 说明未定稿", + "390 NLF_视频人物动作骨架获取 未验证实跑", + "390 NLF_视频人物动作骨架获取 未检查", + "390 NLF_视频人物动作骨架获取停用/时间戳空", + "390 NLF_视频人物动作骨架获取参数全保留", + "390 NLF_视频人物动作骨架获取默认无溢出", + "390 NLF_视频人物动作骨架获取旧图归还焦点", + "390 openpose-video-姿态检测默认中文用途", + "390 openpose-video-姿态检测源审校默认折叠", + "390 openpose-video-姿态检测技术范围默认折叠", + "390 openpose-video-姿态检测默认无执行计数/实现标识", + "390 openpose-video-姿态检测默认依据限制可见", + "390 openpose-video-姿态检测 说明未定稿", + "390 openpose-video-姿态检测 未验证实跑", + "390 openpose-video-姿态检测 未检查", + "390 openpose-video-姿态检测停用/时间戳空", + "390 openpose-video-姿态检测参数全保留", + "390 openpose-video-姿态检测默认无溢出", + "390 openpose-video-姿态检测旧图归还焦点", + "390 sdpose_视频人物姿势骨架提取默认中文用途", + "390 sdpose_视频人物姿势骨架提取源审校默认折叠", + "390 sdpose_视频人物姿势骨架提取技术范围默认折叠", + "390 sdpose_视频人物姿势骨架提取默认无执行计数/实现标识", + "390 sdpose_视频人物姿势骨架提取默认依据限制可见", + "390 sdpose_视频人物姿势骨架提取 说明未定稿", + "390 sdpose_视频人物姿势骨架提取 未验证实跑", + "390 sdpose_视频人物姿势骨架提取 未检查", + "390 sdpose_视频人物姿势骨架提取停用/时间戳空", + "390 sdpose_视频人物姿势骨架提取参数全保留", + "390 sdpose_视频人物姿势骨架提取默认无溢出", + "390 sdpose_视频人物姿势骨架提取旧图归还焦点", + "390 gemma4_提示词反推(图像视频音频)默认中文用途", + "390 gemma4_提示词反推(图像视频音频)源审校默认折叠", + "390 gemma4_提示词反推(图像视频音频)技术范围默认折叠", + "390 gemma4_提示词反推(图像视频音频)默认无执行计数/实现标识", + "390 gemma4_提示词反推(图像视频音频)默认依据限制可见", + "390 gemma4_提示词反推(图像视频音频) 说明未定稿", + "390 gemma4_提示词反推(图像视频音频) 未验证实跑", + "390 gemma4_提示词反推(图像视频音频) 未检查", + "390 gemma4_提示词反推(图像视频音频)停用/时间戳空", + "390 gemma4_提示词反推(图像视频音频)参数全保留", + "390 gemma4_提示词反推(图像视频音频)默认无溢出", + "390 gemma4_提示词反推(图像视频音频)旧图归还焦点", + "390 图像合并成四宫格默认中文用途", + "390 图像合并成四宫格源审校默认折叠", + "390 图像合并成四宫格技术范围默认折叠", + "390 图像合并成四宫格默认无执行计数/实现标识", + "390 图像合并成四宫格默认依据限制可见", + "390 图像合并成四宫格 说明未定稿", + "390 图像合并成四宫格 未验证实跑", + "390 图像合并成四宫格 未检查", + "390 图像合并成四宫格停用/时间戳空", + "390 图像合并成四宫格参数全保留", + "390 图像合并成四宫格默认无溢出", + "390 图像合并成四宫格旧图归还焦点", + "390 图像分割-多宫格分割默认中文用途", + "390 图像分割-多宫格分割源审校默认折叠", + "390 图像分割-多宫格分割技术范围默认折叠", + "390 图像分割-多宫格分割默认无执行计数/实现标识", + "390 图像分割-多宫格分割默认依据限制可见", + "390 图像分割-多宫格分割 说明未定稿", + "390 图像分割-多宫格分割 未验证实跑", + "390 图像分割-多宫格分割 未检查", + "390 图像分割-多宫格分割停用/时间戳空", + "390 图像分割-多宫格分割参数全保留", + "390 图像分割-多宫格分割默认无溢出", + "390 图像分割-多宫格分割旧图归还焦点", + "390 Qwen_image2.1_图像编辑_背景移除默认中文用途", + "390 Qwen_image2.1_图像编辑_背景移除源审校默认折叠", + "390 Qwen_image2.1_图像编辑_背景移除技术范围默认折叠", + "390 Qwen_image2.1_图像编辑_背景移除默认无执行计数/实现标识", + "390 Qwen_image2.1_图像编辑_背景移除默认依据限制可见", + "390 Qwen_image2.1_图像编辑_背景移除 说明未定稿", + "390 Qwen_image2.1_图像编辑_背景移除 未验证实跑", + "390 Qwen_image2.1_图像编辑_背景移除 未检查", + "390 Qwen_image2.1_图像编辑_背景移除停用/时间戳空", + "390 Qwen_image2.1_图像编辑_背景移除参数全保留", + "390 Qwen_image2.1_图像编辑_背景移除默认无溢出", + "390 Qwen_image2.1_图像编辑_背景移除旧图归还焦点", + "390 Qwen_image2.1_图像编辑_提示词增强默认中文用途", + "390 Qwen_image2.1_图像编辑_提示词增强源审校默认折叠", + "390 Qwen_image2.1_图像编辑_提示词增强技术范围默认折叠", + "390 Qwen_image2.1_图像编辑_提示词增强默认无执行计数/实现标识", + "390 Qwen_image2.1_图像编辑_提示词增强默认依据限制可见", + "390 Qwen_image2.1_图像编辑_提示词增强 说明未定稿", + "390 Qwen_image2.1_图像编辑_提示词增强 未验证实跑", + "390 Qwen_image2.1_图像编辑_提示词增强 未检查", + "390 Qwen_image2.1_图像编辑_提示词增强停用/时间戳空", + "390 Qwen_image2.1_图像编辑_提示词增强参数全保留", + "390 Qwen_image2.1_图像编辑_提示词增强默认无溢出", + "390 Qwen_image2.1_图像编辑_提示词增强旧图归还焦点", + "390 Qwen_image2.1_文生图_提示词增强默认中文用途", + "390 Qwen_image2.1_文生图_提示词增强源审校默认折叠", + "390 Qwen_image2.1_文生图_提示词增强技术范围默认折叠", + "390 Qwen_image2.1_文生图_提示词增强默认无执行计数/实现标识", + "390 Qwen_image2.1_文生图_提示词增强默认依据限制可见", + "390 Qwen_image2.1_文生图_提示词增强 说明未定稿", + "390 Qwen_image2.1_文生图_提示词增强 未验证实跑", + "390 Qwen_image2.1_文生图_提示词增强 未检查", + "390 Qwen_image2.1_文生图_提示词增强停用/时间戳空", + "390 Qwen_image2.1_文生图_提示词增强参数全保留", + "390 Qwen_image2.1_文生图_提示词增强默认无溢出", + "390 Qwen_image2.1_文生图_提示词增强旧图归还焦点", + "390 ControlNet_aux_常用样例默认中文用途", + "390 ControlNet_aux_常用样例源审校默认折叠", + "390 ControlNet_aux_常用样例技术范围默认折叠", + "390 ControlNet_aux_常用样例默认无执行计数/实现标识", + "390 ControlNet_aux_常用样例默认依据限制可见", + "390 ControlNet_aux_常用样例 说明未定稿", + "390 ControlNet_aux_常用样例 未验证实跑", + "390 ControlNet_aux_常用样例 未检查", + "390 ControlNet_aux_常用样例停用/时间戳空", + "390 ControlNet_aux_常用样例参数全保留", + "390 ControlNet_aux_常用样例默认无溢出", + "390 ControlNet_aux_常用样例旧图归还焦点", + "390 Qwen3-ASR-语音转文字默认中文用途", + "390 Qwen3-ASR-语音转文字源审校默认折叠", + "390 Qwen3-ASR-语音转文字技术范围默认折叠", + "390 Qwen3-ASR-语音转文字默认无执行计数/实现标识", + "390 Qwen3-ASR-语音转文字默认依据限制可见", + "390 Qwen3-ASR-语音转文字 说明未定稿", + "390 Qwen3-ASR-语音转文字 未验证实跑", + "390 Qwen3-ASR-语音转文字 未检查", + "390 Qwen3-ASR-语音转文字停用/时间戳空", + "390 Qwen3-ASR-语音转文字参数全保留", + "390 Qwen3-ASR-语音转文字默认无溢出", + "390 Qwen3-ASR-语音转文字旧图归还焦点", + "390 Qwen3-ASR-Subtitle语音转字幕默认中文用途", + "390 Qwen3-ASR-Subtitle语音转字幕源审校默认折叠", + "390 Qwen3-ASR-Subtitle语音转字幕技术范围默认折叠", + "390 Qwen3-ASR-Subtitle语音转字幕默认无执行计数/实现标识", + "390 Qwen3-ASR-Subtitle语音转字幕默认依据限制可见", + "390 Qwen3-ASR-Subtitle语音转字幕 说明未定稿", + "390 Qwen3-ASR-Subtitle语音转字幕 未验证实跑", + "390 Qwen3-ASR-Subtitle语音转字幕 未检查", + "390 Qwen3-ASR-Subtitle语音转字幕停用/时间戳空", + "390 Qwen3-ASR-Subtitle语音转字幕参数全保留", + "390 Qwen3-ASR-Subtitle语音转字幕默认无溢出", + "390 Qwen3-ASR-Subtitle语音转字幕旧图归还焦点", + "390 Minimax-H3提示词增强默认中文用途", + "390 Minimax-H3提示词增强源审校默认折叠", + "390 Minimax-H3提示词增强技术范围默认折叠", + "390 Minimax-H3提示词增强默认无执行计数/实现标识", + "390 Minimax-H3提示词增强默认依据限制可见", + "390 Minimax-H3提示词增强 说明未定稿", + "390 Minimax-H3提示词增强 未验证实跑", + "390 Minimax-H3提示词增强 未检查", + "390 Minimax-H3提示词增强停用/时间戳空", + "390 Minimax-H3提示词增强参数全保留", + "390 Minimax-H3提示词增强默认无溢出", + "390 Minimax-H3提示词增强旧图归还焦点", + "390 音频转MP3格式默认中文用途", + "390 音频转MP3格式源审校默认折叠", + "390 音频转MP3格式技术范围默认折叠", + "390 音频转MP3格式默认无执行计数/实现标识", + "390 音频转MP3格式默认依据限制可见", + "390 音频转MP3格式 说明未定稿", + "390 音频转MP3格式 未验证实跑", + "390 音频转MP3格式 未检查", + "390 音频转MP3格式停用/时间戳空", + "390 音频转MP3格式参数全保留", + "390 音频转MP3格式默认无溢出", + "390 音频转MP3格式旧图归还焦点", + "390 音频人声分离默认中文用途", + "390 音频人声分离源审校默认折叠", + "390 音频人声分离技术范围默认折叠", + "390 音频人声分离默认无执行计数/实现标识", + "390 音频人声分离默认依据限制可见", + "390 音频人声分离 说明未定稿", + "390 音频人声分离 未验证实跑", + "390 音频人声分离 未检查", + "390 音频人声分离停用/时间戳空", + "390 音频人声分离参数全保留", + "390 音频人声分离默认无溢出", + "390 音频人声分离旧图归还焦点", + "390 视频-音频分离默认中文用途", + "390 视频-音频分离源审校默认折叠", + "390 视频-音频分离技术范围默认折叠", + "390 视频-音频分离默认无执行计数/实现标识", + "390 视频-音频分离默认依据限制可见", + "390 视频-音频分离 说明未定稿", + "390 视频-音频分离 未验证实跑", + "390 视频-音频分离 未检查", + "390 视频-音频分离停用/时间戳空", + "390 视频-音频分离参数全保留", + "390 视频-音频分离默认无溢出", + "390 视频-音频分离旧图归还焦点", + "390 图像嵌入文字描述默认中文用途", + "390 图像嵌入文字描述源审校默认折叠", + "390 图像嵌入文字描述技术范围默认折叠", + "390 图像嵌入文字描述默认无执行计数/实现标识", + "390 图像嵌入文字描述默认依据限制可见", + "390 图像嵌入文字描述 说明未定稿", + "390 图像嵌入文字描述 未验证实跑", + "390 图像嵌入文字描述 未检查", + "390 图像嵌入文字描述停用/时间戳空", + "390 图像嵌入文字描述参数全保留", + "390 图像嵌入文字描述默认无溢出", + "390 图像嵌入文字描述旧图归还焦点", + "旧/空说明回退 旧工作流回退(隔离测试夹具)", + "旧/空说明回退 空说明回退(隔离测试夹具)", + "缺摘要自然中文回退", + "回退不暴露undefined", + "错绑定提示明确且不展示旧字段", + "回退不暴露undefined", + "摘要HTML仅纯文本不创建图像或请求", + "回退不暴露undefined", + "迟到分屏响应不覆盖旧水印摘要/56字段", + "GET失败显示重试", + "读取失败隐藏旧摘要", + "重试恢复摘要", + "无脚本错误或禁止请求 []", + "全程本地GET无写/生成/目标/历史预览请求" + ], + "requests": [ + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/16" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/10" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/23" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/8" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/22" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/5" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/19" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/13" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/12" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/64" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/62" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/70" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/1" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/35" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/2" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/25" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/24" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/21" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/14" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/settings" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/16" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/10" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/23" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/8" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/22" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/5" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/19" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/13" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/12" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/64" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/62" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/70" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/1" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/35" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/2" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/25" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/24" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/21" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/14" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/16" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/10" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/23" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/8" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/22" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/5" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/19" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/13" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/12" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/64" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/62" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/70" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/1" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/35" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/2" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/25" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/24" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/21" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/14" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/156" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/157" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/11" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/15" + } + ], + "errors": [], + "blockedFonts": [ + "https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600&display=swap" + ], + "viewports": [ + 1440, + 390 + ] +} \ No newline at end of file diff --git a/docs/hel-892/multivideo-document-evidence/build.txt b/docs/hel-892/multivideo-document-evidence/build.txt new file mode 100644 index 00000000..ae5fa5cc --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/build.txt @@ -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 diff --git a/docs/hel-892/multivideo-document-evidence/build_definition.py b/docs/hel-892/multivideo-document-evidence/build_definition.py new file mode 100644 index 00000000..de65b0e2 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/build_definition.py @@ -0,0 +1,783 @@ +"Source-bound Chinese editorial data; no prompt, media access or upstream import." + +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 / "multivideo-reference" +PATHS = [ + ( + "example_ComfyUI_workflows/0-基础" + "处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频" + "合成分屏展示.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): + e = next(e for e in entries if e["id"] == key and e["file"] == file) + data = (REF / e["local_file"]).read_bytes() + assert hashlib.sha256(data).hexdigest() == e["sha256"] + assert 1 <= first <= last <= len(data.decode().splitlines()) + refs.append( + { + **e, + "local_file": "../multivideo-reference/" + e["local_file"], + "lines": [first, last], + "claim": claim, + } + ) + return len(refs) - 1 + + concat = ref( + "concat", + "nodes/image_nodes.py", + 2344, + 2391, + "准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退", + ) + join = ref( + "concat", + "nodes/image_nodes.py", + 220, + 325, + "空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐", + ) + kjjs = ref( + "concat", + "web/js/jsnodes.js", + 36, + 65, + "本提交Update inputs按钮值null;不证明未知宿主第4位置身份", + ) + kjreg = ref("concat", "__init__.py", 1, 100, "准确Concat注册与image_nodes导入") + resize = ref( + "resize", + "nodes/image_nodes.py", + 2550, + 2790, + "准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽", + ) + rreg = ref("resize", "__init__.py", 1, 100, "准确Resize v2注册与导入") + load = ref( + "load", + "videohelpersuite/load_video_nodes.py", + 22, + 168, + "准确85509813格式/尺寸规则与采样、skip、nth、cap", + ) + loadrun = ref( + "load", + "videohelpersuite/load_video_nodes.py", + 315, + 475, + "内存/格式限制、音频起点与时长参数、加载schema与输出", + ) + lreg = ref("load", "videohelpersuite/nodes.py", 1024, 1055, "准确LoadVideo注册") + lutil = ref( + "load", "videohelpersuite/utils.py", 17, 56, "BIGMAX=2**53-1、DIMMAX8192、floatOrInt" + ) + ljs = ref( + "load", "web/js/VHS.core.js", 41, 168, "85509813包内字典保存恢复,不证明未知宿主/UE次序" + ) + lp = ref("load", "web/js/VHS.core.js", 915, 970, "85509813历史预览对象保存") + ldyn = ref("load", "web/js/VHS.core.js", 1222, 1282, "85509813格式动态控件/回调,不执行恢复") + combine = ref( + "combine", + "videohelpersuite/nodes.py", + 207, + 395, + "准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件", + ) + video = ref( + "combine", + "videohelpersuite/nodes.py", + 395, + 592, + "准确0a75c795视频补边/编码、循环、音频混流和中间文件条件", + ) + template = ref( + "combine", + "videohelpersuite/nodes.py", + 40, + 160, + "准确0a75c795模板展开str转换与元数据FFmpeg条件", + ) + fmt = ref( + "combine", + "video_formats/h264-mp4.json", + 1, + 14, + "本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板", + ) + creg = ref("combine", "videohelpersuite/nodes.py", 979, 1010, "准确VideoCombine注册") + cjs = ref("combine", "web/js/VHS.core.js", 31, 158, "0a75c795包内保存恢复,非宿主前端版本证明") + cp = ref("combine", "web/js/VHS.core.js", 805, 865, "0a75c795完整历史预览对象保存") + cdyn = ref("combine", "web/js/VHS.core.js", 1103, 1149, "0a75c795格式改变重建额外控件") + for key in ["concat", "resize"]: + lines = (REF / (key + "____init__.py")).read_text().splitlines() + ref(key, "__init__.py", len(lines) - 30, len(lines), "NODE_CONFIG导出真实注册映射") + for key in ["load", "combine"]: + ref( + key, + "__init__.py", + 1, + len((REF / (key + "____init__.py")).read_text().splitlines()), + "VHS包节点导出及web目录", + ) + for key in ["concat", "resize", "load", "combine"]: + ref( + key, + "LICENSE", + 1, + len((REF / (key + "__LICENSE")).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, + ) + + cls = "ImageConcatMulti" + for args in [ + ( + "inputcount", + "拼接输入数量", + "INT", + "2", + "路", + "2~1000,step1", + ( + "四节点均保存2。必需image_1由kwargs直接索引;仅" + "image_2等后续缺输入有零张量回退,不能据此补足10缺失" + "的第一路。" + ), + ), + ( + "direction", + "空间拼接方向", + "COMBO", + "right", + "方向", + "right/down/left/up", + ( + "1/11保存down,第二幅在第一幅下方;2/10保存lef" + "t,第二幅在第一幅左方。活动11第一路17、第二路16;10" + "第一路未接,不能宣称实际三屏结果。" + ), + ), + ( + "match_image_size", + "匹配图像尺寸", + "BOOLEAN", + "false", + "布尔", + "true/false", + ( + "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例in" + "t取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异" + "用1补齐,不是音画时间同步。" + ), + ), + ]: + spec(cls, *args, [concat, join, kjreg]) + spec( + cls, + "saved_position_3", + "额外null保存位置(按钮候选)", + "未知前端状态", + "服务端无此参数;本提交JS创建null按钮", + "未知", + "原值null;不同于缺键/[]/{}", + ( + "本提交创建Update inputs按钮并按inputcount增删IMAGE口" + ",但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未" + "知,不当执行参数。" + ), + [kjjs, concat], + "frontend_state_unknown", + ) + cls = "ImageResizeKJv2" + for args in [ + ( + "width", + "目标宽度", + "INT", + "512", + "像素", + "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + ( + "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisi" + "ble_by向下取整。UE声明width可连,但源link=null;不是运行5" + "12像素保证。" + ), + ), + ( + "height", + "目标高度", + "INT", + "512", + "像素", + "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + ( + "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整" + "除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。" + ), + ), + ( + "upscale_method", + "缩放插值方法", + "COMBO", + "无显式default;列表首项nearest-exact", + "插值方式", + "nearest-exact/bilinear/area/bicubic/lanczos", + ( + "保存lanczos;裁切后由common_upscale缩放" + ",CPU分支可用,准确实现gpu+lanczos会抛错。本轮" + "不执行,不断言目标效果。" + ), + ), + ( + "keep_proportion", + "比例与裁切模式", + "COMBO", + "schema显式false(不在选项中);真实恢复默认未知", + "模式", + ("stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels"), + ( + "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目" + "标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支" + "的min比例缩放不同。" + ), + ), + ( + "pad_color", + "填充背景色", + "STRING", + "0, 0, 0", + "RGB字符串", + "schema无字符串范围;填充色解析受实现约束", + ( + "保存0, 0, 0黑色。只在pad或pillarbox_bl" + "ur的有填充条件使用;当前crop分支不以此填充黑边,不称输" + "出必有黑底。" + ), + ), + ( + "crop_position", + "裁切位置", + "COMBO", + "center", + "位置", + "center/top/bottom/left/right", + ( + "保存center;crop时按裁切宽高差//2居中定位,图像" + "和可选mask一起切片;源mask未接,不编遮罩输入。" + ), + ), + ( + "divisible_by", + "尺寸整除因数", + "INT", + "2", + "像素因数", + "0~512,step1;>1才取整", + ( + "保存32;width -= width % 32,height同理,向下取整而非" + "四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。" + ), + ), + ( + "device", + "缩放设备", + "COMBO", + "schema无显式default,首项cpu;函数默认cpu", + "设备", + "cpu/gpu", + ( + "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备," + "且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU" + "处理。" + ), + ), + ]: + spec(cls, *args, [resize, rreg]) + cls = "VHS_LoadVideo" + for args in [ + ( + "video", + "视频文件引用", + "COMBO", + "input目录动态枚举,无固定默认", + "引用", + "普通文件扩展webm/mp4/mkv/gif/mov", + "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + ), + ( + "force_rate", + "加载重采样帧率", + "FLOAT/INT(floatOrInt)", + "0", + "帧/秒", + "0~60,step1;0不强制重采样", + ( + "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受" + "源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保" + "证。" + ), + ), + ( + "custom_width", + "自定义加载宽度", + "INT", + "0", + "像素", + "0~8192;schema未声明step;0不指定", + ( + "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非" + "0按比例推算另一边。未探测素材,不保证原尺寸。" + ), + ), + ( + "custom_height", + "自定义加载高度", + "INT", + "0", + "像素", + "0~8192;schema未声明step;0不指定", + ( + "五节点保存0;AnimateDiff的dim(8,0,512" + ",512)约束仍适用,素材真实高度未知,不把0当输出0像素。" + ), + ), + ( + "frame_load_cap", + "加载帧数上限", + "INT", + "0", + "加载帧", + "0~2**53-1,step1;0不设该上限", + ( + "节点4/17保存161,6/8/16保存0;限制取出的帧数," + "不保证有161帧。0仍受源长度、内存和格式规则限制。" + ), + ), + ( + "skip_first_frames", + "跳过起始采样帧", + "INT", + "0", + "采样帧", + "0~2**53-1,step1", + ( + "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/c" + "ap。音频参考起点skip×target_frame_time;本图音频全未接," + "不等于混流。" + ), + ), + ( + "select_every_nth", + "间隔抽取采样帧", + "INT", + "1", + "间隔", + "1~2**53-1,step1", + "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + ), + ( + "format", + "加载格式约束", + "COMBO", + "AnimateDiff", + "格式", + "内置与动态核心扩展;目标选项未知", + ( + "保存AnimateDiff,内置target_rate8及dim8;Python" + "采样接收force_rate16,不据target_rate把保存16改为8。包" + "内动态回调、宿主/UE恢复次序未知。" + ), + ), + ]: + spec(cls, *args, [load, loadrun, lutil, lreg, ldyn]) + cls = "VHS_VideoCombine" + for args in [ + ( + "frame_rate", + "合成播放帧率", + "FLOAT/INT(floatOrInt)", + "8", + "帧/秒", + "min1,step1;无schema max", + ( + "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时" + "长、两路起点一致或音画同步。历史缓存16不是当前产物。" + ), + ), + ( + "loop_count", + "视频额外循环", + "INT", + "0", + "循环", + "0~100,step1", + "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + ), + ( + "filename_prefix", + "输出文件名前缀", + "STRING", + "AnimateDiff", + "路径前缀", + "无schema长度范围;目录权限未知", + "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + ), + ( + "format", + "合成输出格式", + "COMBO", + "列表首项image/gif;动态视频格式无固定目标默认", + "格式", + "image/gif、image/webp及动态FFmpeg模板", + ( + "保存video/h264-mp4,准确模板调用libx264" + "并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和" + "源色彩未知,未执行FFmpeg。" + ), + ), + ( + "pix_fmt", + "视频像素格式", + "COMBO", + "首项yuv420p", + "像素格式", + "yuv420p/yuv420p10le", + ( + "保存yuv420p,交给H264模板;视频分支按模板dim_" + "alignment(默认2)按需补边,真实输出尺寸未知。" + ), + ), + ( + "crf", + "H264质量参数", + "INT", + "19", + "CRF", + "模板0~100,step1;编码器可接受范围另待核", + ( + "保存19,交给libx264 -crf。一般降低值可提高质量" + "并增大体积;模板上限100不证明编码器接受100,真实效果未" + "测。" + ), + ), + ( + "save_metadata", + "视频元数据开关", + "BOOLEAN", + "true", + "布尔", + "true/false;视频模板条件", + ( + "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS" + "_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PN" + "G。" + ), + ), + ( + "trim_to_audio", + "按音频条件裁切", + "BOOLEAN", + "false", + "布尔", + "仅audio波形有效才进入混流", + ( + "保存false,模板转成字符串False;有有效音频时加apad=whole_d" + "ur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此" + "分支无源音频输入,不能称保留原声音。" + ), + ), + ( + "pingpong", + "追加往返帧", + "BOOLEAN", + "false", + "布尔", + "true/false;meta_batch兼容受实现限制", + "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + ), + ( + "save_output", + "保存目录选择", + "BOOLEAN", + "true", + "布尔", + "true→output;false→temp;均可能写文件", + ( + "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧w" + "orkflow PNG;VHS_MetadataImage和VHS_KeepIn" + "termediate另有条件。本轮仅GET,不生成文件。" + ), + ), + ]: + spec(cls, *args, [combine, video, template, fmt, creg, cdyn, cjs]) + for cls, evidence in [("VHS_LoadVideo", [lp, ljs]), ("VHS_VideoCombine", [cp, cjs])]: + spec( + cls, + "videopreview", + "历史预览完整对象", + "前端历史状态", + "无服务端默认", + "完整对象", + "hidden/paused/params整体保留;嵌套不重复计数", + ( + "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。" + "7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求" + "api/view或图片视频。" + ), + evidence, + "frontend_history", + ) + fields = [] + array_names = { + "ImageConcatMulti": ["inputcount", "direction", "match_image_size", "saved_position_3"], + "ImageResizeKJv2": [ + "width", + "height", + "upscale_method", + "keep_proportion", + "pad_color", + "crop_position", + "divisible_by", + "device", + ], + } + for i, n in enumerate(graph["nodes"]): + if "widgets_values" not in n: + assert n["id"] == 18 + continue + values = n["widgets_values"] + for key, value in values.items() if isinstance(values, dict) else enumerate(values): + name = key if isinstance(values, dict) else array_names[n["type"]][key] + fields.append( + { + **specs[n["type"], name], + "node_id": str(n["id"]), + "definition_node_id": str(n["id"]), + "class_type": n["type"], + "scope": "root", + "pointer": f"/nodes/{i}/widgets_values/{key}", + "value": value, + "json_type": type(value).__name__, + "execution_note": f"源mode={n['mode']};" + + ( + "上半mode4旁路组,不能当活动正常分支结果。" + if n["mode"] == 4 + else "下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。" + ) + + ( + "无frontendVersion;LG仅渲染器标记。UE空表" + "不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造pr" + "ompt。" + ), + } + ) + assert len(fields) == 99 + overview = ( + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边1" + "7→11.image_1、16→11.image_2、11→10.image_2" + "、10→12.images;10.image_1原link=null,缺必需第一" + "路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161" + ",16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;" + "save_output=false仍可能写temp视频和首帧PNG。7个预览仅历" + "史缓存;未实跑,转换保持关闭。" + ) + flow = [ + overview, + ( + "上半mode4节点为2/1/3/7/5/8/6/4,物理支路" + "4→5、6→7、5+7→1、8+1→2→3。不能模拟旁路追线" + ",也不把8或1补连活动10。" + ), + ( + "下半mode0节点10/11/12/17/18/16;活动11第一输入17、第二" + "输入16,direction=down;11输出接10.image_2,10保存" + "left但image_1原link=null。Concat准确schema必需i" + 'mage_1,实现直接kwargs["image_1"];仅后续缺输入回退零张量' + ",不能套给第一路。宿主验证/报错细节未运行确认。" + ), + ( + "拼接是空间拼接,不是视频首尾相接;match_image_size=true时d" + "own以第一幅宽为准、left以第一幅高为准,另一边按比例int计算。短批次重复" + "末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。" + ), + ( + "两个Resize5/7均mode4,保存512×896/lanczos/crop" + "/0, 0, 0/center/32/cpu;crop先按32向下取整,再rou" + "nd算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos" + "源码明确抛错。两width/height UE可连声明保持,物理link均nul" + "l。" + ), + ( + "五LoadVideo均force_rate16、width/height0、nt" + "h1、AnimateDiff。17及4 cap161/skip25;16/6/8" + " cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材" + "尺寸未知;AnimateDiff target_rate8不等于Python强制" + "把16覆盖为8,动态格式回调和UE恢复未知。" + ), + ( + "两Combine3/12均保存16/loop0/WanVideo_SCAIL/h" + "264-mp4/yuv420p/CRF19/save_metadata=true" + "/trim_to_audio=false/pingpong=false/save" + "_output=false;帧率均无外线覆盖。两audio、meta_batch" + "、vae均未接,五加载器音频出口均未接,不称音画自动同步或保留原声音。" + ), + ( + "H264视频分支使用libx264及模板颜色参数,尺寸可能按dim_alignm" + "ent默认2补边;save_metadata控制视频元数据,VHS_Metada" + "taImage默认true独立控制首帧PNG。save_output=false" + "选择temp仍可能写文件;VHS_KeepIntermediate按条件清中间文" + "件,不是禁止落盘。" + ), + ( + "trim_to_audio=false只在有效音频波形存在时影响apad/-sh" + "ortest混流;当前audio无源线,不编AAC成品或保留原音。loop0不追" + "加视频循环,pingpong=false不追加往返,源路径和16fps不保证时长" + "或输出。" + ), + ( + "7个完整历史预览对象逐节点纯文本保留:3与12的旧D盘temp路径对象完全相同也" + "不去重;4/6/8/17/16保留各自input缓存。hidden/paused" + "/params均保存,不请求api/view、图片或视频,也不验证路径存在。" + ), + ( + "Bypasser18原缺widgets_values键,不能改成[]、null或" + "{}。没有提供方/版本声明,类名不证明注册或当前动态开关;matchColors" + "/matchTitle/showNav/showAllGraphs/sort/c" + "ustomSortAlphabet/toggleRestriction仅源保存状" + "态,不推算执行作用。" + ), + ( + "源无frontendVersion,workflowRendererVersio" + "n=LG不当版本;通常UE7.5.1,Bypasser7.5.2,extra.u" + "e_links及links_added_by_ue原[]。空表不证明无回调影响," + "未加载宿主或UE,不调查旧别名或目标机器。" + ), + ( + "素材目录、动态选项、源尺寸/FPS、编解码器、权限和真实效果未知;源无模型节点," + "不编模型依赖。只固定准确声明提交文本,不执行插件/模型/媒体探测/ffmpeg," + "不修复源图,不构造prompt。" + ), + ] + flow += ["源物理边:" + json.dumps(e, ensure_ascii=False) for e in graph["links"]] + flow += [ + f"节点{n['id']} {n['type']} mode={n['mode']};保存位置=" + + (str(len(n["widgets_values"])) if "widgets_values" in n else "缺widgets_values键") + + ";原properties=" + + json.dumps(n["properties"], ensure_ascii=False) + for n in graph["nodes"] + ] + versions = [ + f"{k}准确完整提交{next(e['commit'] for e in entries if e['id'] == k)}" + + ";注册/schema/实现和许可独立固定,不跨版本混用。" + for k in ["concat", "resize", "load", "combine"] + ] + versions += [ + ( + "源无frontendVersion;LG仅渲染器标记,UE7.5.1/Bypas" + "ser7.5.2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文" + "本不是目标安装或运行证明。" + ) + ] + 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="声明提交源码仅作固定参考;活动10缺必需第一路、上半mode4旁路、音频未接,未实跑、转换保持关闭。", + user_overview=overview, + versions=versions, + counts=dict( + saved_fields=99, + scalar_saved_positions=92, + history_objects=7, + null_positions=4, + source_nodes=14, + physical_edges=11, + source_notes=0, + linked_saved_fields=0, + frontend_only=11, + final_scalars=0, + final_prompt_constructed=False, + ), + fields=fields, + sources=refs, + comments=[], + flow=flow, + flow_evidence=list(range(len(refs))), + zero_saved_nodes=[ + dict( + node_id="18", + class_type="Fast Groups Bypasser (rgthree)", + effect=( + "原缺widgets_values键,提供方/版本未声明;原组" + "控制属性仅源状态,注册与动态开关/执行作用未知。" + ), + ) + ], + steps=[ + overview, + "素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。", + ( + "操作1:保持停用,先读mode4上半与mode0下半的区别;" + "10.image_1未接,不将旁路组补接或称三屏可运行。" + ), + ( + "操作2:核11的down和10的left空间位置、首路/次路" + "顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7" + "。" + ), + ( + "操作3:分别核17 cap161/skip25与16 cap" + "0/skip0、force16;采样起点不同,不把帧率视作自" + "动同步保证。" + ), + ( + "操作4:核两个合成audio未接、temp选择及独立首帧PN" + "G条件;历史D盘路径只作保存缓存,不访问或当成当前结果。" + ), + ( + "常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停" + "住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参" + "考,实际效果未测。" + ), + ( + "目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实" + "效果待后续核对;本轮只GET说明,无prompt/新候选/实" + "跑,155完整定稿0。" + ), + ], + ) diff --git a/docs/hel-892/multivideo-document-evidence/changed-files.json b/docs/hel-892/multivideo-document-evidence/changed-files.json new file mode 100644 index 00000000..c3a41fa0 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/changed-files.json @@ -0,0 +1,627 @@ +{ + "base": "197f3e150dda417ed7a2698860834375e95e1bec", + "count": 124, + "files": [ + { + "path": "calliope-backend/src/calliope/comfyui/fixed_document.py", + "purpose": "生产:仅新增本图显式受信摘要/固定中文说明;其它25说明对象不变", + "sha256": "eeb2b38401b9254b3f4b4122db3d9adb43fe96ad5b6a7a1c716dee67ee3d78d1" + }, + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.json", + "purpose": "生产:仅新增本图显式受信摘要/固定中文说明;其它25说明对象不变", + "sha256": "c7d7161e654944bcd56cb76bba00368aa2a271b5ab09518b2355cc0ac7e837b6" + }, + { + "path": "calliope-backend/tests/test_background_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "2d35b485a3dd9ed5721b8f69a8caafd718f29ac8c0e4545df311346a8e1900de" + }, + { + "path": "calliope-backend/tests/test_birefnet_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "404fa13deb545b8662a2e5cc41d6b8be64fd81a7be28576d060b54a7722f222b" + }, + { + "path": "calliope-backend/tests/test_concat_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "57b682c17070f1cb67e6619e4431e86df200b17c4db4485a4aea8a3a21ac640c" + }, + { + "path": "calliope-backend/tests/test_controlnet_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "cce5f459b3e6a35e40c4b4f5ceb57314bde4382d5feb01df43be74ba8a673554" + }, + { + "path": "calliope-backend/tests/test_frames_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "804f3b74e6022ce0de80486c7bcf7bf8285c58c808f0ad358a60b6d6705a999e" + }, + { + "path": "calliope-backend/tests/test_gemma_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "87d11b332894651be31529f49dd5e6c819359f0b926220c72d31d9eb1bc29f36" + }, + { + "path": "calliope-backend/tests/test_gif_images_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "ab8c84f805339df8a434c2d875a6ead5e952d077ac3c1122657b6ca18f3b60e6" + }, + { + "path": "calliope-backend/tests/test_grid_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "1ec5c6fccba2a36704f5c2c315a9ed2c086046caf87b5dd1e8ab8ed800d01296" + }, + { + "path": "calliope-backend/tests/test_latent_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "5052843812dede1593b7f2a39a1918a24306362014a530f09d4f63e1cdcd3a74" + }, + { + "path": "calliope-backend/tests/test_multivideo_fixed_document.py", + "purpose": "本图专项", + "sha256": "8d29b02f04672fd10cf98a8415dbd014becd0b6e7cec441156206aa2af6a0295" + }, + { + "path": "calliope-backend/tests/test_nlf_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "93eacd3d23d3643e09d8e1e9f65246202f1f4d2a2df9c8bd1a25d794a56a10e9" + }, + { + "path": "calliope-backend/tests/test_openpose_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "2e86af85f33f4b31a7e0203064e5b4487f0307abb1c80eab41711d8b3b36d822" + }, + { + "path": "calliope-backend/tests/test_reverse_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "303cdb457f34c0a7ee7d28617224efb1267b5c3938ff24bf89b09bf3efc5aa71" + }, + { + "path": "calliope-backend/tests/test_sdpose_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "73755ad5ac62ef181be639081b1073baeefdee4e02aa149e594f13db0dd3629f" + }, + { + "path": "calliope-backend/tests/test_watermark_fixed_document.py", + "purpose": "历史快照比较范围排除新图,旧失败关闭断言保留", + "sha256": "e8412db7ffb8c69418c56fd0b4fe580e90620d6bead0ecc47ba6de7d4319a159" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-310.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "22bbb04a8ed318e8c7a3af1d7c7c37e3feb0bf4720e40e6af3a354145e03416e" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/build_definition.cpython-311.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "661a109b4ad60b487562085ac6e132875107703ecdb4a4ff9792d74db12be280" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/check_code.cpython-310.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "abcc05a6223b059288dd445efb95195e93a01c63f2fad2f043075b5a68780e74" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-310.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "162e5308c60503e43f614ef1313cde8e0af5d07f34528dd034fefc0129c2e34f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/rebuild.cpython-311.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "e3878611e83d745e284d7f9f2629d3a5bae936dd93298e7ef5527ca0cad180c1" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/render_report.cpython-310.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "8980c8fdde1be351a5b2bb959daecb87ef5ff0773c80fb6d04579c555e852d51" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/__pycache__/verify_sources.cpython-311.pyc", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "40c0993c4dfc946e1167d61322fab2386a85d405ddfa12c54752f8c72edd6d53" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/actual-多视频合成分屏展示.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "a9f2454d1bb87b418761f49323eb0dd40a18316a0d53e0585e0b3858365cf1ff" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/audit-summary.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/backend-command.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "12a944ae5a6c7a0158852a43f0691a13d0e9c699e58c743981545754e37e6a3e" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/backend-final.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "03016a07d1fd5f2a0eac4e71baab3cdbfb5d05597ac527d84312db10d08a6f17" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/backend-initial.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "e6dc7ea34fa94d004730367df0958914a84c20d2b4dd2e4975794852824580dc" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/backend-second.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "a3cc57f568c2509009cdf7bb9a469322d979099c59c68c189f5c529bb8ea4b89" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/backend.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "82ff1fb16d9e1bbd48a83229bb929b547101d0ae0dd659c6cf96806dfc7d2916" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/boundaries.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "4b6ffd1f4e887203f6220896ad42d7eb1394cfee5f9e013141ce5a41cf64e597" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/browser-final.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "c3f40690460104851dd2f1662d8ed897ab2d983ffd87ea4bd97a03e156edb8e6" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/browser-initial.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "c3f40690460104851dd2f1662d8ed897ab2d983ffd87ea4bd97a03e156edb8e6" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/browser-results.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "00c0d4cf6c6fc66d8a6eb3d72a11feda6bc26edab87097e8fb08434c6fa4a4c7" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/build.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/build_definition.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "9ebd99750a9f83c332c09456b3ce760ca6eaa71966ea5075f047c573cbc0a03f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/check_code.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "d98de849aba2ec2b5f3d98ae58f897a0c9b3d15e4cc171d97cd0baceccc44c0a" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/commit-identity-note.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "8adc77faafb2edf9d96bf73883b405b8441629d47374d0d184fa2e2bd803c493" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/definition-0.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "4f8572a7e88d9b376c4604c4f835ec7bbedae61f46cedaed4a07d7a0270b5b3e" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/delivery-summary.md", + "purpose": "完整中文或实际交付简报", + "sha256": "30cd72b7bc7b5e3037d2a054b77ffada8855168e012d3ceca6e750205d403886" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/diff-check.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/fetch.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "27d09f1ee75a0744235ed524d706688876735dfa9770c51535766538027e25e6" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/fetch_sources.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "4e99f4e6cca060362f732cf5444739f87012e20fc18ef9a1a9b6bf7eb5c33d6f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/fixed-source-index.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "26cd763e2f0c65634edb5f335604c3dacef84f91c6e8fcee424bb64c6933676b" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/format-allowlist.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "d807f3580f2470a7fe15ad89e1a6c08e4166ffe1e33d94152d605f0c46d21bfa" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/format-final-write.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "b5d646905d988dc00058204b76b93298ecd2f7f30ab589bf5524866152c194ad" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/format-initial.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "2fffa5286c7d2a566578b38804a551a11a44596454035f1cfe887a03cf9c6a89" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/format-second.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "0ad17653b42427c899752d9e3faad7eff5bbf64dcb379046594b1eecfe920f9d" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/format-third.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "771594e2a0886f67c035a2c6112d3bc981d27994797170e6b310c5aed0e08f06" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/format.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "cdd24684b33e5200a213c89093e8da4cb81a0de0085a4684d20923e852610123" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/frozen-resource-check.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "6a8e0cadf84f4c93c63a06d3ac6c03fc3fa26b9f2ed9c45b4f7650cc43cd07a5" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/import-protection.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "8240749862b7d84c92f53e7f752f3a26ca140d349fcac30822c62f86fb0dc4af" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/js-syntax.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/lint-existing-note.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "57cb653f01907de71a6f429a737cb009be3c9177bd4a30679a00236c985f5cc9" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/lint-initial.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "d7516e488bee9d4ccc2e0fe05e9fa91a7c981bdda3a4fce210f0a4fcf02b644e" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/lint-second.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "8b76c2870d26602db06f99ebf645252d4a2a6f718e1345ab61017a41b5e136e6" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/lint-third.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "82b7204f6f470d4247644af2ce4d9b492a758b0b2ba1d3c2d4664ebafe014c40" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/lint.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "82b3e6a6c090a57601d22943bd23fca9218d1031dbe5a7b754092f9a156b4f18" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/package-check.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "61691c4007de756bb48af1b974c146dfc5c26b5ab1941efa01a4c86507cce53a" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/pins.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "6c08db1d885224f19e4a678fbdca5f28db4a72c5e5eb53c989a34c2682268dac" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/pr-before.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "e7edaa25dfdf77cda89df7ce5f002150f89a8b22cb2a2891be1a7383d50bc70b" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/pr-link-table.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "3a4f43873a1c44156cc95ee9ecb591d8cc79d0e399f8ea58012384e8fb098abf" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/python-check-files.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "f0b1dcbb6f88db236feaf06aafcfc16ea691ee12599b2bce2efe7c16b6fef70d" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/python-check-initial.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "e206b7b54c2f3aba68a2aaa98ebfe238e394c15bfb3177fc1ea841601c03b973" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/python-check.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "c498039b8db1321f2f9169e3214b9d4493c2c03de315899f2f3a4a33b7f87ff4" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/rebuild-initial.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "a5bb1ff1b439869687f68973e99fec682fbd1ab8d2120d629ceb2c3b1407a91b" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/rebuild.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "c6e86d0199b68dae008dc1928b7b904f544f6100e9026adcdd66d6f99e24663c" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/rebuild.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "efe1a831871fe98ca26aeef8b9e634d4383237c38792b572f1c95cd879f680bc" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/recompute-final.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "f20f03edd0243d2445baf28e28100bee1d14c7d5e9c3278ae3931df9e64e2912" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/recompute.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "d3de3b67138cd9ba188314e90addf1a86345ed032c29101bac23b422e4f9736a" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/recompute.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "f20f03edd0243d2445baf28e28100bee1d14c7d5e9c3278ae3931df9e64e2912" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/render_report.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "34cac24f8311bd32672ac62a3341792037aca17d2385820793f48188ec51d45f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/repeat-final.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/repeat.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "b2587d7684fafa13f096387a64f3d921bbde332200ac95fa1411e75b0bf50818" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/repeat.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/repeatability.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "46dbc888aa97ccd706f421683b96f77f9f3b656fbf1d0da112f89923e6a4dd2f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/request-counts.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "6f38b35a8dc5b41b35e0bfb6a75fdef9f0cfbd637cbebfcc15c69eea77cdbbbe" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/request_counts.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/review-delta.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "3ecadbb6d3b7a176820eb0304bdba2604b67862df71c8012b8a079cde0d53647" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/screenshots/1440-15-12-save_output.png", + "purpose": "最终本地1440/390默认或关键展开截图,已实际目验", + "sha256": "16b6780931c657fb8159ce20a6e30ae44214d3467f41e656fc0fc245e9ebe1b8" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/screenshots/1440-15-branch-flow.png", + "purpose": "最终本地1440/390默认或关键展开截图,已实际目验", + "sha256": "7f6ce412dd37901eb274edb01027b1b4097419c3aa33628f7296b0f673e9278c" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/screenshots/1440-15-default.png", + "purpose": "最终本地1440/390默认或关键展开截图,已实际目验", + "sha256": "96cd0063480485e6a6f280e0f0f9ca584acec1c4d1b24ffce9a860a7d86915a2" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/screenshots/390-15-default.png", + "purpose": "最终本地1440/390默认或关键展开截图,已实际目验", + "sha256": "d3aea0654333ae07331a601bf528f22022ef3c776df857382cbe2a472f72dbc2" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/server-request-accounting.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "aedff765c1d6d2a47e04c5bd2bc03aad6c4c0d9614d0152256c1bdd223bc176e" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/service-0.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "f23f0e58f1d34a9ea2d4bfda6c36fddad3613fe2b79dd5dabb4ed64606f29ea0" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/service-1.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "4b90f4f4e9cb60781d0792e276c697bac940be5e2b68957eba8b047a73ea6faf" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/service-stop.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/source-check.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "1899a60a5bed0f92b4f7201a42905f9c175f343ad5f2a3f60234ff672cb64be5" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/source-check.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "7f19afb8c2f94f3742938662e15bfec391c2fc8ee2b4bbf190ad8e9bcb37d4f6" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/source-count-correction.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "bf4cf92163200bb62b084c8489449481641520313d1e7a211c188bd471df659d" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/source-graphs.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "183ab0f1c7e5d13648ab49c9fa1ebe36ec9886b9e0191ad4eb7d3652c548875c" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/tested-files.json", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "b5843752e3e736b6b1465e7ff38618e63ad9312c60a615e47f6369030f3f4abd" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/validation-commands.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "40f7ba08578d2e9b0c8b04fdc503b6fdb8aa9f2f653360186743ba0d5a7d7557" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/verify_sources.py", + "purpose": "可复现说明构建/原件复算/真实旧库隔离导入保护/包与确定性/检查工具", + "sha256": "0eec6e80adb2d3a2a1ebe33a4af65ece113d39ce44ed906b8316acf34cd19566" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/visual-review.txt", + "purpose": "实际说明/摘要/来源/审计/导入保护/冻结边界/包/复现/请求/开发日志证据", + "sha256": "7762937385e811b446f15a938b84bf88691d6978bce723d40f98c29d21db8d74" + }, + { + "path": "docs/hel-892/multivideo-reference/combine-tree.json", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "f97f208aa7f2ae99f186da6c576c9295aa88889a81b8030dcdbea965b3d53a2f" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__LICENSE", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/combine____init__.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__video_formats__h264-mp4.json", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__videohelpersuite__utils.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "737ad04961da91c52c1fc918c427b7683fdbc209f8a767b173cf2a9331f4cc71" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__web__js__VHS.core.js", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad" + }, + { + "path": "docs/hel-892/multivideo-reference/concat-tree.json", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "fc3c4fba2513777a62f42889c8a9d70720d415daea7f3d2ba7214c76137b089a" + }, + { + "path": "docs/hel-892/multivideo-reference/concat__LICENSE", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/concat____init__.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c" + }, + { + "path": "docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687" + }, + { + "path": "docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7" + }, + { + "path": "docs/hel-892/multivideo-reference/load-tree.json", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "9ca31cdd8320e2247affad084f87c8ebb35c75b2b9c1d2af24b51eb77d321207" + }, + { + "path": "docs/hel-892/multivideo-reference/load__LICENSE", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/load____init__.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f" + }, + { + "path": "docs/hel-892/multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963" + }, + { + "path": "docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442" + }, + { + "path": "docs/hel-892/multivideo-reference/load__videohelpersuite__utils.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504" + }, + { + "path": "docs/hel-892/multivideo-reference/load__web__js__VHS.core.js", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97" + }, + { + "path": "docs/hel-892/multivideo-reference/resize-tree.json", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "e76f5f71376584fab8bf6fe5e8cc8a5d990980915200ae3de995cc85272d0fb5" + }, + { + "path": "docs/hel-892/multivideo-reference/resize__LICENSE", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/resize____init__.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c" + }, + { + "path": "docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee" + }, + { + "path": "docs/hel-892/multivideo-reference/sources.json", + "purpose": "准确Git文本原件或完整提交树/来源索引;不格式化、不执行", + "sha256": "cf42363f97b097f3a4f51ae04dc29503197eb8c193f6fdc9e0eaeffe455a5cc4" + }, + { + "path": "docs/hel-892/watermark-document-evidence/delivery-summary.md", + "purpose": "上批来源数量文字勘误12 Git+6 Registry,旧日志/说明块保持", + "sha256": "724702424446499a32b0fe09acfe8fb78405c54d49b68c76b944a9f548dc9d22" + }, + { + "path": "docs/hel-892/多视频分屏固定参考中文说明.md", + "purpose": "完整中文或实际交付简报", + "sha256": "6aadf56aeca6250c228fa16173e34eb043036c3676cc74d42022318c984f101a" + }, + { + "path": "e2e/multivideo-document.mjs", + "purpose": "本图全字段与旧25摘要GET浏览检查/前台服务清理", + "sha256": "fd660572061341a073679c4debf5e90bd01eec043771ac584ed1b8d2539b2318" + }, + { + "path": "e2e/run-multivideo-document.py", + "purpose": "本图全字段与旧25摘要GET浏览检查/前台服务清理", + "sha256": "7b8505e2d03ebd104298a51eb955359884ffda56725078be71e18f65255f299b" + } + ], + "scope": "本次实现暂存清单;最终交付记录文件另在最终提交差集,索引自身不递归计算" +} diff --git a/docs/hel-892/multivideo-document-evidence/check_code.py b/docs/hel-892/multivideo-document-evidence/check_code.py new file mode 100644 index 00000000..f3bf852f --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/check_code.py @@ -0,0 +1,55 @@ +"""Check only the self-authored Python files changed in this delivery.""" + +import json +import subprocess + +from build_definition import OUT, REPO + + +def paths(): + changed = ( + subprocess.check_output(["git", "diff", "--name-only", "197f3e1"], cwd=REPO) + .decode() + .splitlines() + ) + added = ( + subprocess.check_output(["git", "ls-files", "--others", "--exclude-standard"], cwd=REPO) + .decode() + .splitlines() + ) + return sorted( + { + p + for p in changed + added + if p.endswith(".py") + and ( + p.startswith("calliope-backend/tests/") + or p == "calliope-backend/src/calliope/comfyui/fixed_document.py" + or p.startswith("docs/hel-892/multivideo-document-evidence/") + or p == "e2e/run-multivideo-document.py" + ) + } + ) + + +def main(): + files = paths() + prefix = ["uv", "run", "--project", "calliope-backend", "--offline", "ruff"] + config = ["--config", "calliope-backend/pyproject.toml"] + for name, command in [("format.txt", ["format", "--check"]), ("lint.txt", ["check"])]: + result = subprocess.run( + prefix + command + config + files, cwd=REPO, text=True, capture_output=True + ) + (OUT / name).write_text(result.stdout + result.stderr) + assert result.returncode == 0, result.stdout + result.stderr + (OUT / "python-check-files.json").write_text( + json.dumps(dict(count=len(files), files=files), ensure_ascii=False, indent=2) + "\n" + ) + print( + f"PASS Ruff check and format for {len(files)} changed self-authored Python files; " + "upstream originals excluded" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/multivideo-document-evidence/commit-identity-note.txt b/docs/hel-892/multivideo-document-evidence/commit-identity-note.txt new file mode 100644 index 00000000..6952eff5 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/commit-identity-note.txt @@ -0,0 +1 @@ +本checkout没有user.name/email;git var GIT_AUTHOR_IDENT拒绝自动推断。沿用原分支最近提交已使用的leefer ,仅git -c单命令使用;不改全局或共享配置。 diff --git a/docs/hel-892/multivideo-document-evidence/definition-0.json b/docs/hel-892/multivideo-document-evidence/definition-0.json new file mode 100644 index 00000000..cfbf840c --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/definition-0.json @@ -0,0 +1,3031 @@ +{ + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "source_sha1": "e5eb21854fe2919519247b4d69957dbca00b88e0", + "source_sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7", + "canonical_sha256": "1920161949401e21c194b4b6f05f3a954c64fcd7fc74b42db0c764469e395b07", + "notice": "声明提交源码仅作固定参考;活动10缺必需第一路、上半mode4旁路、音频未接,未实跑、转换保持关闭。", + "user_overview": "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "versions": [ + "concat准确完整提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;注册/schema/实现和许可独立固定,不跨版本混用。", + "resize准确完整提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;注册/schema/实现和许可独立固定,不跨版本混用。", + "load准确完整提交8550981384301e9bc5bfea83e5c2c75258102593;注册/schema/实现和许可独立固定,不跨版本混用。", + "combine准确完整提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;注册/schema/实现和许可独立固定,不跨版本混用。", + "源无frontendVersion;LG仅渲染器标记,UE7.5.1/Bypasser7.5.2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。" + ], + "counts": { + "saved_fields": 99, + "scalar_saved_positions": 92, + "history_objects": 7, + "null_positions": 4, + "source_nodes": 14, + "physical_edges": 11, + "source_notes": 0, + "linked_saved_fields": 0, + "frontend_only": 11, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/1", + "value": "left", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "2", + "definition_node_id": "2", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/0/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/1", + "value": "down", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "1", + "definition_node_id": "1", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/1/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_rate", + "label": "合成播放帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "8", + "unit": "帧/秒", + "limits": "min1,step1;无schema max", + "effect": "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/frame_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "loop_count", + "label": "视频额外循环", + "type": "INT", + "schema_default": "0", + "unit": "循环", + "limits": "0~100,step1", + "effect": "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "filename_prefix", + "label": "输出文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "路径前缀", + "limits": "无schema长度范围;目录权限未知", + "effect": "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/filename_prefix", + "value": "WanVideo_SCAIL", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "合成输出格式", + "type": "COMBO", + "schema_default": "列表首项image/gif;动态视频格式无固定目标默认", + "unit": "格式", + "limits": "image/gif、image/webp及动态FFmpeg模板", + "effect": "保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pix_fmt", + "label": "视频像素格式", + "type": "COMBO", + "schema_default": "首项yuv420p", + "unit": "像素格式", + "limits": "yuv420p/yuv420p10le", + "effect": "保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crf", + "label": "H264质量参数", + "type": "INT", + "schema_default": "19", + "unit": "CRF", + "limits": "模板0~100,step1;编码器可接受范围另待核", + "effect": "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/crf", + "value": 19, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true/false;视频模板条件", + "effect": "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/save_metadata", + "value": true, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "trim_to_audio", + "label": "按音频条件裁切", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "仅audio波形有效才进入混流", + "effect": "保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pingpong", + "label": "追加往返帧", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false;meta_batch兼容受实现限制", + "effect": "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_output", + "label": "保存目录选择", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true→output;false→temp;均可能写文件", + "effect": "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/save_output", + "value": false, + "json_type": "bool", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 19, + 18 + ], + "role": "frontend_history", + "node_id": "3", + "definition_node_id": "3", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/2/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "width", + "label": "目标宽度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + "effect": "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/0", + "value": 512, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "height", + "label": "目标高度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + "effect": "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/1", + "value": 896, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "upscale_method", + "label": "缩放插值方法", + "type": "COMBO", + "schema_default": "无显式default;列表首项nearest-exact", + "unit": "插值方式", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "effect": "保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/2", + "value": "lanczos", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "keep_proportion", + "label": "比例与裁切模式", + "type": "COMBO", + "schema_default": "schema显式false(不在选项中);真实恢复默认未知", + "unit": "模式", + "limits": "stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels", + "effect": "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/3", + "value": "crop", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pad_color", + "label": "填充背景色", + "type": "STRING", + "schema_default": "0, 0, 0", + "unit": "RGB字符串", + "limits": "schema无字符串范围;填充色解析受实现约束", + "effect": "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/4", + "value": "0, 0, 0", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crop_position", + "label": "裁切位置", + "type": "COMBO", + "schema_default": "center", + "unit": "位置", + "limits": "center/top/bottom/left/right", + "effect": "保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/5", + "value": "center", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "divisible_by", + "label": "尺寸整除因数", + "type": "INT", + "schema_default": "2", + "unit": "像素因数", + "limits": "0~512,step1;>1才取整", + "effect": "保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/6", + "value": 32, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "device", + "label": "缩放设备", + "type": "COMBO", + "schema_default": "schema无显式default,首项cpu;函数默认cpu", + "unit": "设备", + "limits": "cpu/gpu", + "effect": "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "7", + "definition_node_id": "7", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/3/widgets_values/7", + "value": "cpu", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "width", + "label": "目标宽度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1", + "effect": "两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/0", + "value": 512, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "height", + "label": "目标高度", + "type": "INT", + "schema_default": "512", + "unit": "像素", + "limits": "0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1", + "effect": "两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/1", + "value": 896, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "upscale_method", + "label": "缩放插值方法", + "type": "COMBO", + "schema_default": "无显式default;列表首项nearest-exact", + "unit": "插值方式", + "limits": "nearest-exact/bilinear/area/bicubic/lanczos", + "effect": "保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/2", + "value": "lanczos", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "keep_proportion", + "label": "比例与裁切模式", + "type": "COMBO", + "schema_default": "schema显式false(不在选项中);真实恢复默认未知", + "unit": "模式", + "limits": "stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels", + "effect": "保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/3", + "value": "crop", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pad_color", + "label": "填充背景色", + "type": "STRING", + "schema_default": "0, 0, 0", + "unit": "RGB字符串", + "limits": "schema无字符串范围;填充色解析受实现约束", + "effect": "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/4", + "value": "0, 0, 0", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crop_position", + "label": "裁切位置", + "type": "COMBO", + "schema_default": "center", + "unit": "位置", + "limits": "center/top/bottom/left/right", + "effect": "保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/5", + "value": "center", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "divisible_by", + "label": "尺寸整除因数", + "type": "INT", + "schema_default": "2", + "unit": "像素因数", + "limits": "0~512,step1;>1才取整", + "effect": "保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/6", + "value": 32, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "device", + "label": "缩放设备", + "type": "COMBO", + "schema_default": "schema无显式default,首项cpu;函数默认cpu", + "unit": "设备", + "limits": "cpu/gpu", + "effect": "保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。", + "evidence": [ + 4, + 5 + ], + "role": "scalar", + "node_id": "5", + "definition_node_id": "5", + "class_type": "ImageResizeKJv2", + "scope": "root", + "pointer": "/nodes/4/widgets_values/7", + "value": "cpu", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/video", + "value": "WanVideo_SCAIL_00006.mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "8", + "definition_node_id": "8", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/5/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "WanVideo_SCAIL_00006.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/video", + "value": "onetotall_pose_00001.mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "6", + "definition_node_id": "6", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/6/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/video", + "value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/frame_load_cap", + "value": 161, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/skip_first_frames", + "value": 25, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/7/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/1", + "value": "left", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "10", + "definition_node_id": "10", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/8/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "inputcount", + "label": "拼接输入数量", + "type": "INT", + "schema_default": "2", + "unit": "路", + "limits": "2~1000,step1", + "effect": "四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/0", + "value": 2, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "direction", + "label": "空间拼接方向", + "type": "COMBO", + "schema_default": "right", + "unit": "方向", + "limits": "right/down/left/up", + "effect": "1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/1", + "value": "down", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "match_image_size", + "label": "匹配图像尺寸", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false", + "effect": "保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。", + "evidence": [ + 0, + 1, + 3 + ], + "role": "scalar", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/2", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "saved_position_3", + "label": "额外null保存位置(按钮候选)", + "type": "未知前端状态", + "schema_default": "服务端无此参数;本提交JS创建null按钮", + "unit": "未知", + "limits": "原值null;不同于缺键/[]/{}", + "effect": "本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。", + "evidence": [ + 2, + 0 + ], + "role": "frontend_state_unknown", + "node_id": "11", + "definition_node_id": "11", + "class_type": "ImageConcatMulti", + "scope": "root", + "pointer": "/nodes/9/widgets_values/3", + "value": null, + "json_type": "NoneType", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_rate", + "label": "合成播放帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "8", + "unit": "帧/秒", + "limits": "min1,step1;无schema max", + "effect": "两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/frame_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "loop_count", + "label": "视频额外循环", + "type": "INT", + "schema_default": "0", + "unit": "循环", + "limits": "0~100,step1", + "effect": "保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "filename_prefix", + "label": "输出文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "路径前缀", + "limits": "无schema长度范围;目录权限未知", + "effect": "保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/filename_prefix", + "value": "WanVideo_SCAIL", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "合成输出格式", + "type": "COMBO", + "schema_default": "列表首项image/gif;动态视频格式无固定目标默认", + "unit": "格式", + "limits": "image/gif、image/webp及动态FFmpeg模板", + "effect": "保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pix_fmt", + "label": "视频像素格式", + "type": "COMBO", + "schema_default": "首项yuv420p", + "unit": "像素格式", + "limits": "yuv420p/yuv420p10le", + "effect": "保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "crf", + "label": "H264质量参数", + "type": "INT", + "schema_default": "19", + "unit": "CRF", + "limits": "模板0~100,step1;编码器可接受范围另待核", + "effect": "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/crf", + "value": 19, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true/false;视频模板条件", + "effect": "保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/save_metadata", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "trim_to_audio", + "label": "按音频条件裁切", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "仅audio波形有效才进入混流", + "effect": "保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "pingpong", + "label": "追加往返帧", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true/false;meta_batch兼容受实现限制", + "effect": "保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "save_output", + "label": "保存目录选择", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true→output;false→temp;均可能写文件", + "effect": "保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。", + "evidence": [ + 13, + 14, + 15, + 16, + 17, + 20, + 18 + ], + "role": "scalar", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/save_output", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 19, + 18 + ], + "role": "frontend_history", + "node_id": "12", + "definition_node_id": "12", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/10/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } + }, + "json_type": "dict", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/video", + "value": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/frame_load_cap", + "value": 161, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/skip_first_frames", + "value": 25, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "17", + "definition_node_id": "17", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/11/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "input目录动态枚举,无固定默认", + "unit": "引用", + "limits": "普通文件扩展webm/mp4/mkv/gif/mov", + "effect": "只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/video", + "value": "onetotall_pose_00001.mp4", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "force_rate", + "label": "加载重采样帧率", + "type": "FLOAT/INT(floatOrInt)", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0不强制重采样", + "effect": "五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义加载宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义加载高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;schema未声明step;0不指定", + "effect": "五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "加载帧", + "limits": "0~2**53-1,step1;0不设该上限", + "effect": "节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~2**53-1,step1", + "effect": "4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔抽取采样帧", + "type": "INT", + "schema_default": "1", + "unit": "间隔", + "limits": "1~2**53-1,step1", + "effect": "均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式", + "limits": "内置与动态核心扩展;目标选项未知", + "effect": "保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。", + "evidence": [ + 6, + 7, + 9, + 8, + 12 + ], + "role": "scalar", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + }, + { + "field": "videopreview", + "label": "历史预览完整对象", + "type": "前端历史状态", + "schema_default": "无服务端默认", + "unit": "完整对象", + "limits": "hidden/paused/params整体保留;嵌套不重复计数", + "effect": "只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。", + "evidence": [ + 11, + 10 + ], + "role": "frontend_history", + "node_id": "16", + "definition_node_id": "16", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/13/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。" + } + ], + "sources": [ + { + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "lines": [ + 2344, + 2391 + ], + "claim": "准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退" + }, + { + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "lines": [ + 220, + 325 + ], + "claim": "空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐" + }, + { + "id": "concat", + "file": "web/js/jsnodes.js", + "local_file": "../multivideo-reference/concat__web__js__jsnodes.js", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7", + "git_blob_sha1": "c391bd55dc3c94ee81dc8d2f96462c03ed684279", + "lines": [ + 36, + 65 + ], + "claim": "本提交Update inputs按钮值null;不证明未知宿主第4位置身份" + }, + { + "id": "concat", + "file": "__init__.py", + "local_file": "../multivideo-reference/concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 1, + 100 + ], + "claim": "准确Concat注册与image_nodes导入" + }, + { + "id": "resize", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/resize__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee", + "git_blob_sha1": "8de598ebfce304e41b2da906a5f5a6a64df56ce7", + "lines": [ + 2550, + 2790 + ], + "claim": "准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽" + }, + { + "id": "resize", + "file": "__init__.py", + "local_file": "../multivideo-reference/resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 1, + 100 + ], + "claim": "准确Resize v2注册与导入" + }, + { + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "lines": [ + 22, + 168 + ], + "claim": "准确85509813格式/尺寸规则与采样、skip、nth、cap" + }, + { + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "lines": [ + 315, + 475 + ], + "claim": "内存/格式限制、音频起点与时长参数、加载schema与输出" + }, + { + "id": "load", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_blob_sha1": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97", + "lines": [ + 1024, + 1055 + ], + "claim": "准确LoadVideo注册" + }, + { + "id": "load", + "file": "videohelpersuite/utils.py", + "local_file": "../multivideo-reference/load__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_blob_sha1": "75431d5a9e151ae50257d3fd14c03ffbc7570d39", + "lines": [ + 17, + 56 + ], + "claim": "BIGMAX=2**53-1、DIMMAX8192、floatOrInt" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 41, + 168 + ], + "claim": "85509813包内字典保存恢复,不证明未知宿主/UE次序" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 915, + 970 + ], + "claim": "85509813历史预览对象保存" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 1222, + 1282 + ], + "claim": "85509813格式动态控件/回调,不执行恢复" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 207, + 395 + ], + "claim": "准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 395, + 592 + ], + "claim": "准确0a75c795视频补边/编码、循环、音频混流和中间文件条件" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 40, + 160 + ], + "claim": "准确0a75c795模板展开str转换与元数据FFmpeg条件" + }, + { + "id": "combine", + "file": "video_formats/h264-mp4.json", + "local_file": "../multivideo-reference/combine__video_formats__h264-mp4.json", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288", + "git_blob_sha1": "c591b5b6c4604276d86a6b6bd453cf44fb74566d", + "lines": [ + 1, + 14 + ], + "claim": "本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 979, + 1010 + ], + "claim": "准确VideoCombine注册" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 31, + 158 + ], + "claim": "0a75c795包内保存恢复,非宿主前端版本证明" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 805, + 865 + ], + "claim": "0a75c795完整历史预览对象保存" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 1103, + 1149 + ], + "claim": "0a75c795格式改变重建额外控件" + }, + { + "id": "concat", + "file": "__init__.py", + "local_file": "../multivideo-reference/concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 227, + 257 + ], + "claim": "NODE_CONFIG导出真实注册映射" + }, + { + "id": "resize", + "file": "__init__.py", + "local_file": "../multivideo-reference/resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 227, + 257 + ], + "claim": "NODE_CONFIG导出真实注册映射" + }, + { + "id": "load", + "file": "__init__.py", + "local_file": "../multivideo-reference/load____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "lines": [ + 1, + 9 + ], + "claim": "VHS包节点导出及web目录" + }, + { + "id": "combine", + "file": "__init__.py", + "local_file": "../multivideo-reference/combine____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "lines": [ + 1, + 9 + ], + "claim": "VHS包节点导出及web目录" + }, + { + "id": "concat", + "file": "LICENSE", + "local_file": "../multivideo-reference/concat__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "id": "resize", + "file": "LICENSE", + "local_file": "../multivideo-reference/resize__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "../multivideo-reference/load__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "id": "combine", + "file": "LICENSE", + "local_file": "../multivideo-reference/combine__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + } + ], + "comments": [], + "flow": [ + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "上半mode4节点为2/1/3/7/5/8/6/4,物理支路4→5、6→7、5+7→1、8+1→2→3。不能模拟旁路追线,也不把8或1补连活动10。", + "下半mode0节点10/11/12/17/18/16;活动11第一输入17、第二输入16,direction=down;11输出接10.image_2,10保存left但image_1原link=null。Concat准确schema必需image_1,实现直接kwargs[\"image_1\"];仅后续缺输入回退零张量,不能套给第一路。宿主验证/报错细节未运行确认。", + "拼接是空间拼接,不是视频首尾相接;match_image_size=true时down以第一幅宽为准、left以第一幅高为准,另一边按比例int计算。短批次重复末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。", + "两个Resize5/7均mode4,保存512×896/lanczos/crop/0, 0, 0/center/32/cpu;crop先按32向下取整,再round算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos源码明确抛错。两width/height UE可连声明保持,物理link均null。", + "五LoadVideo均force_rate16、width/height0、nth1、AnimateDiff。17及4 cap161/skip25;16/6/8 cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材尺寸未知;AnimateDiff target_rate8不等于Python强制把16覆盖为8,动态格式回调和UE恢复未知。", + "两Combine3/12均保存16/loop0/WanVideo_SCAIL/h264-mp4/yuv420p/CRF19/save_metadata=true/trim_to_audio=false/pingpong=false/save_output=false;帧率均无外线覆盖。两audio、meta_batch、vae均未接,五加载器音频出口均未接,不称音画自动同步或保留原声音。", + "H264视频分支使用libx264及模板颜色参数,尺寸可能按dim_alignment默认2补边;save_metadata控制视频元数据,VHS_MetadataImage默认true独立控制首帧PNG。save_output=false选择temp仍可能写文件;VHS_KeepIntermediate按条件清中间文件,不是禁止落盘。", + "trim_to_audio=false只在有效音频波形存在时影响apad/-shortest混流;当前audio无源线,不编AAC成品或保留原音。loop0不追加视频循环,pingpong=false不追加往返,源路径和16fps不保证时长或输出。", + "7个完整历史预览对象逐节点纯文本保留:3与12的旧D盘temp路径对象完全相同也不去重;4/6/8/17/16保留各自input缓存。hidden/paused/params均保存,不请求api/view、图片或视频,也不验证路径存在。", + "Bypasser18原缺widgets_values键,不能改成[]、null或{}。没有提供方/版本声明,类名不证明注册或当前动态开关;matchColors/matchTitle/showNav/showAllGraphs/sort/customSortAlphabet/toggleRestriction仅源保存状态,不推算执行作用。", + "源无frontendVersion,workflowRendererVersion=LG不当版本;通常UE7.5.1,Bypasser7.5.2,extra.ue_links及links_added_by_ue原[]。空表不证明无回调影响,未加载宿主或UE,不调查旧别名或目标机器。", + "素材目录、动态选项、源尺寸/FPS、编解码器、权限和真实效果未知;源无模型节点,不编模型依赖。只固定准确声明提交文本,不执行插件/模型/媒体探测/ffmpeg,不修复源图,不构造prompt。", + "源物理边:[2, 2, 0, 3, 0, \"IMAGE\"]", + "源物理边:[3, 4, 0, 5, 0, \"IMAGE\"]", + "源物理边:[5, 6, 0, 7, 0, \"IMAGE\"]", + "源物理边:[11, 5, 0, 1, 0, \"IMAGE\"]", + "源物理边:[12, 7, 0, 1, 1, \"IMAGE\"]", + "源物理边:[15, 8, 0, 2, 0, \"IMAGE\"]", + "源物理边:[16, 1, 0, 2, 1, \"IMAGE\"]", + "源物理边:[18, 11, 0, 10, 1, \"IMAGE\"]", + "源物理边:[21, 10, 0, 12, 0, \"IMAGE\"]", + "源物理边:[24, 16, 0, 11, 1, \"IMAGE\"]", + "源物理边:[25, 17, 0, 11, 0, \"IMAGE\"]", + "节点2 ImageConcatMulti mode=4;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点1 ImageConcatMulti mode=4;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点3 VHS_VideoCombine mode=4;保存位置=11;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"0a75c7958fe320efcb052f1d9f8451fd20c730a8\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点7 ImageResizeKJv2 mode=4;保存位置=8;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b\", \"Node name for S&R\": \"ImageResizeKJv2\", \"ue_properties\": {\"widget_ue_connectable\": {\"width\": true, \"height\": true}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点5 ImageResizeKJv2 mode=4;保存位置=8;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b\", \"Node name for S&R\": \"ImageResizeKJv2\", \"ue_properties\": {\"widget_ue_connectable\": {\"width\": true, \"height\": true}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点8 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点6 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点4 VHS_LoadVideo mode=4;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点10 ImageConcatMulti mode=0;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点11 ImageConcatMulti mode=0;保存位置=4;原properties={\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"ff7f876c09ff5a53be051073c3c1731b96ee31a3\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"ImageConcatMulti\"}", + "节点12 VHS_VideoCombine mode=0;保存位置=11;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"0a75c7958fe320efcb052f1d9f8451fd20c730a8\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点17 VHS_LoadVideo mode=0;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}", + "节点18 Fast Groups Bypasser (rgthree) mode=0;保存位置=缺widgets_values键;原properties={\"matchColors\": \"\", \"matchTitle\": \"\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}", + "节点16 VHS_LoadVideo mode=0;保存位置=9;原properties={\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"8550981384301e9bc5bfea83e5c2c75258102593\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"version\": \"7.5.1\", \"input_ue_unconnectable\": {}}}" + ], + "flow_evidence": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28 + ], + "zero_saved_nodes": [ + { + "node_id": "18", + "class_type": "Fast Groups Bypasser (rgthree)", + "effect": "原缺widgets_values键,提供方/版本未声明;原组控制属性仅源状态,注册与动态开关/执行作用未知。" + } + ], + "steps": [ + "这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。", + "素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。", + "操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。", + "操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。", + "操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。", + "操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。", + "常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参考,实际效果未测。", + "目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实效果待后续核对;本轮只GET说明,无prompt/新候选/实跑,155完整定稿0。" + ] +} diff --git a/docs/hel-892/multivideo-document-evidence/delivery-summary.md b/docs/hel-892/multivideo-document-evidence/delivery-summary.md new file mode 100644 index 00000000..d5954901 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/delivery-summary.md @@ -0,0 +1,17 @@ +多视频分屏单图的固定参考中文说明已进入实际doc_json、正常GET和既有抽屉,交总管功能+界面一次审核。新增99位置(92标量含4null+7完整历史对象)/0注释;旧25块721+16逐对象不变。26图820+16仅参考展示,155完整定稿0、必要实跑0、新增转换0,全量未完成。 + +原PR #25:https://gitea.xbay.cc/leefer/aigc-home/pulls/25;分支agent/agent/a64a969a6a44,base main;本轮真实旧库基线197f3e150dda417ed7a2698860834375e95e1bec。明确受测实现见tested-head.json,交付最终记录head由卡内评论给出。平台PR链接表无记录,另直接读取Gitea公开PR确认open/未合并、head/ref/base;没有新建或改目标分支。 + +- 原件14节点/11边,无子图/源注释;8个mode4和6个mode0分列。四Concat16、两Resize16、五Load45、两Combine22位置。Bypasser18缺widgets_values键,7个历史对象逐节点保留(3与12相同旧D盘temp对象不去重);每位置现值/JSON类型/指针/默认/单位/范围/条件/准确引用可展开。 +- 活动物理链17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,准确Concat必需image_1并直接索引kwargs,不能用后续输入的零张量回退掩盖缺口。11 down、10 left;上半8节点旁路,不追线模拟或补接。短批次末帧补齐不称时间同步;Resize crop/32向下取整/center/CPU-lanczos与pad颜色条件分清。 +- 17 cap161/skip25、16 cap0/skip0,均force16/nth1/AnimateDiff。保存16不是源FPS、真实时长或同步保证;两Combine所有audio外线未接,不称保留原声音。save_output=false仍选temp并可能写视频/独立首帧PNG,save_metadata、VHS_MetadataImage和音频条件分列。7缓存只纯文本,不访问D盘、api/view或媒体。 +- 准确Concat ff7f876c09ff5a53be051073c3c1731b96ee31a3、Resize 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b、Load 8550981384301e9bc5bfea83e5c2c75258102593、Combine 0a75c7958fe320efcb052f1d9f8451fd20c730a8独立固定注册/schema/实现/JS与许可。19 Git文本按准确tree blob与SHA核验,4树元数据JSON另列,29引用;来源local_file以docs/hel-892/multivideo-document-evidence为基准,原件在../multivideo-reference。没有Registry文本或新宿主前端假设。源码不是目标安装证明。 +- 源无frontendVersion,LG仅渲染器标记;UE7.5.1/Bypasser7.5.2保留,Resize width/height可连声明与实际null线区分。空UE表不证明无钩子影响;Bypasser无提供方/版本,控制属性只源状态,注册/动态开关/恢复与运行作用未知。有界停在真实未知,不跨版本补齐、不扩历史调查。 +- 最终后台610通过(583新专项+27受影响回归),0失败/1依赖warning;旧定义快照回归只排除本图新块,其余原断言保留。1922本地GET浏览检查通过(1306新图+600旧25图概要+2汇总+14共享);1440/390全99字段、默认折叠、源码展开、迟到/重试/旧空错绑定回退/焦点和无横溢通过。4图实际目验。浏览固定91+轮询13;服务固定86(含就绪1)+轮询13,禁止请求0;finally停两服务并核8247/5173可绑定。 +- 真实197f3e1旧代码建隔离库:1update/154skip/1excluded,其余154整行不变;重导155skip、回退精确恢复、再导1update;用户编辑前后各1conflict,29列整行保护。新155/排除1、16/139及1217/3660/294不变,全停用未检查,定稿/实跑时间戳空。163原件收件、191冻结资源、Drawer整文件与转换链不变;28profiles/9候选hash/六差分不变;wheel/sdist字节、双次确定性、26个自写Python Ruff check/format与JS语法通过。 +- 初始引用h264文本行尾15误写(准确14行)、长行/格式与旧快照集合边界5个失败已修复,初始日志保留;最终610不叠加开发重跑计数。一次过宽lint遇到未改test_fixed_document.py:3既有I001,未扩修;本次26改动文件全过,不称全仓全绿。历史全后台5个既有业务失败仅沿用上批记录,本轮未机械复跑全后台/全前端/冻结转换。 +- 上批非阻塞计数勘误已更正watermark简报:实际12 Git+6 Registry发布包文本,版本元数据JSON单列,复用前端7个唯一raw另列;旧日志和旧实际说明块不改。 + +逐文件差集及SHA见changed-files.json/tested-files.json,实际GET文档见actual-多视频合成分屏展示.json,完整中文见../多视频分屏固定参考中文说明.md,复现见validation-commands.txt(含本图专项),导入保护/包/原件/冻结边界/必要日志与截图均同目录。原件空白和CRLF保持,源码原件不格式化。 + +仍待后续核对:155全量说明定稿与必要实跑,145UI仍9参考候选/136关闭;本图真实宿主/UE、素材目录/尺寸/FPS/权限、动态格式、编码器和实际效果。无模型节点,不编模型依赖。不索取窗口、不连接目标、不停TTS、不启ComfyUI、不提交prompt、不执行插件/模型/真实媒体/ffmpeg、不下载素材/字体/logo/权重、不引依赖/付费、不写在线库、不合并部署。保留155全量完成并审核后发布目标。 diff --git a/docs/hel-892/multivideo-document-evidence/diff-check.txt b/docs/hel-892/multivideo-document-evidence/diff-check.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/hel-892/multivideo-document-evidence/fetch.txt b/docs/hel-892/multivideo-document-evidence/fetch.txt new file mode 100644 index 00000000..8d9300c0 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/fetch.txt @@ -0,0 +1 @@ +PASS 19 Git text originals; 4 complete commits; metadata separate diff --git a/docs/hel-892/multivideo-document-evidence/fetch_sources.py b/docs/hel-892/multivideo-document-evidence/fetch_sources.py new file mode 100644 index 00000000..a4d491da --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/fetch_sources.py @@ -0,0 +1,95 @@ +"""Fetch only exact commit textual originals and tree metadata; no plugin import.""" + +import concurrent.futures +import hashlib +import json +import urllib.request +from pathlib import Path + +OUT = Path(__file__).resolve().parent +REF = OUT.parent / "multivideo-reference" +PINS = { + "concat": ( + "kijai/ComfyUI-KJNodes", + "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + ["__init__.py", "nodes/image_nodes.py", "web/js/jsnodes.js", "LICENSE"], + ), + "resize": ( + "kijai/ComfyUI-KJNodes", + "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + ["__init__.py", "nodes/image_nodes.py", "LICENSE"], + ), + "load": ( + "Kosinkadink/ComfyUI-VideoHelperSuite", + "8550981384301e9bc5bfea83e5c2c75258102593", + [ + "__init__.py", + "videohelpersuite/load_video_nodes.py", + "videohelpersuite/nodes.py", + "videohelpersuite/utils.py", + "web/js/VHS.core.js", + "LICENSE", + ], + ), + "combine": ( + "Kosinkadink/ComfyUI-VideoHelperSuite", + "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + [ + "__init__.py", + "videohelpersuite/nodes.py", + "videohelpersuite/utils.py", + "web/js/VHS.core.js", + "video_formats/h264-mp4.json", + "LICENSE", + ], + ), +} + + +def fetch(url): + with urllib.request.urlopen( + urllib.request.Request(url, headers={"User-Agent": "HEL-892-static-review"}), timeout=40 + ) as r: + return r.read() + + +def one(item): + key, (repo, commit, files) = item + tree = json.loads(fetch(f"https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1")) + assert tree["sha"] == commit and not tree["truncated"] + (REF / (key + "-tree.json")).write_text(json.dumps(tree, ensure_ascii=False, indent=2) + "\n") + blobs = {x["path"]: x["sha"] for x in tree["tree"]} + entries = [] + for file in files: + url = f"https://raw.githubusercontent.com/{repo}/{commit}/{file}" + raw = fetch(url) + blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() + assert blob == blobs[file] + local = key + "__" + file.replace("/", "__") + (REF / local).write_bytes(raw) + entries.append( + dict( + id=key, + file=file, + local_file=local, + url=url, + commit=commit, + sha256=hashlib.sha256(raw).hexdigest(), + git_blob_sha1=blob, + ) + ) + return entries + + +def main(): + REF.mkdir(exist_ok=True) + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as pool: + entries = [e for result in pool.map(one, PINS.items()) for e in result] + (REF / "sources.json").write_text( + json.dumps(dict(sources=entries), ensure_ascii=False, indent=2) + "\n" + ) + print(f"PASS {len(entries)} Git text originals; 4 complete commits; metadata separate") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/multivideo-document-evidence/fixed-source-index.json b/docs/hel-892/multivideo-document-evidence/fixed-source-index.json new file mode 100644 index 00000000..4c6f7067 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/fixed-source-index.json @@ -0,0 +1,437 @@ +[ + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "lines": [ + 2344, + 2391 + ], + "claim": "准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "lines": [ + 220, + 325 + ], + "claim": "空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "concat", + "file": "web/js/jsnodes.js", + "local_file": "../multivideo-reference/concat__web__js__jsnodes.js", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7", + "git_blob_sha1": "c391bd55dc3c94ee81dc8d2f96462c03ed684279", + "lines": [ + 36, + 65 + ], + "claim": "本提交Update inputs按钮值null;不证明未知宿主第4位置身份" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "concat", + "file": "__init__.py", + "local_file": "../multivideo-reference/concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 1, + 100 + ], + "claim": "准确Concat注册与image_nodes导入" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "resize", + "file": "nodes/image_nodes.py", + "local_file": "../multivideo-reference/resize__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee", + "git_blob_sha1": "8de598ebfce304e41b2da906a5f5a6a64df56ce7", + "lines": [ + 2550, + 2790 + ], + "claim": "准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "resize", + "file": "__init__.py", + "local_file": "../multivideo-reference/resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 1, + 100 + ], + "claim": "准确Resize v2注册与导入" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "lines": [ + 22, + 168 + ], + "claim": "准确85509813格式/尺寸规则与采样、skip、nth、cap" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "lines": [ + 315, + 475 + ], + "claim": "内存/格式限制、音频起点与时长参数、加载schema与输出" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/load__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_blob_sha1": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97", + "lines": [ + 1024, + 1055 + ], + "claim": "准确LoadVideo注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "videohelpersuite/utils.py", + "local_file": "../multivideo-reference/load__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_blob_sha1": "75431d5a9e151ae50257d3fd14c03ffbc7570d39", + "lines": [ + 17, + 56 + ], + "claim": "BIGMAX=2**53-1、DIMMAX8192、floatOrInt" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 41, + 168 + ], + "claim": "85509813包内字典保存恢复,不证明未知宿主/UE次序" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 915, + 970 + ], + "claim": "85509813历史预览对象保存" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "lines": [ + 1222, + 1282 + ], + "claim": "85509813格式动态控件/回调,不执行恢复" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 207, + 395 + ], + "claim": "准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 395, + 592 + ], + "claim": "准确0a75c795视频补边/编码、循环、音频混流和中间文件条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 40, + 160 + ], + "claim": "准确0a75c795模板展开str转换与元数据FFmpeg条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "video_formats/h264-mp4.json", + "local_file": "../multivideo-reference/combine__video_formats__h264-mp4.json", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288", + "git_blob_sha1": "c591b5b6c4604276d86a6b6bd453cf44fb74566d", + "lines": [ + 1, + 14 + ], + "claim": "本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "../multivideo-reference/combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f", + "lines": [ + 979, + 1010 + ], + "claim": "准确VideoCombine注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 31, + 158 + ], + "claim": "0a75c795包内保存恢复,非宿主前端版本证明" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 805, + 865 + ], + "claim": "0a75c795完整历史预览对象保存" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "../multivideo-reference/combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "lines": [ + 1103, + 1149 + ], + "claim": "0a75c795格式改变重建额外控件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "concat", + "file": "__init__.py", + "local_file": "../multivideo-reference/concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 227, + 257 + ], + "claim": "NODE_CONFIG导出真实注册映射" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "resize", + "file": "__init__.py", + "local_file": "../multivideo-reference/resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825", + "lines": [ + 227, + 257 + ], + "claim": "NODE_CONFIG导出真实注册映射" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "__init__.py", + "local_file": "../multivideo-reference/load____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "lines": [ + 1, + 9 + ], + "claim": "VHS包节点导出及web目录" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "__init__.py", + "local_file": "../multivideo-reference/combine____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "lines": [ + 1, + 9 + ], + "claim": "VHS包节点导出及web目录" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "concat", + "file": "LICENSE", + "local_file": "../multivideo-reference/concat__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "resize", + "file": "LICENSE", + "local_file": "../multivideo-reference/resize__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "load", + "file": "LICENSE", + "local_file": "../multivideo-reference/load__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "id": "combine", + "file": "LICENSE", + "local_file": "../multivideo-reference/combine__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确完整提交许可原文" + } +] diff --git a/docs/hel-892/multivideo-document-evidence/format-allowlist.txt b/docs/hel-892/multivideo-document-evidence/format-allowlist.txt new file mode 100644 index 00000000..851cc66a --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/format-allowlist.txt @@ -0,0 +1 @@ +1 file left unchanged diff --git a/docs/hel-892/multivideo-document-evidence/format-final-write.txt b/docs/hel-892/multivideo-document-evidence/format-final-write.txt new file mode 100644 index 00000000..6b022e51 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/format-final-write.txt @@ -0,0 +1 @@ +2 files reformatted, 24 files left unchanged diff --git a/docs/hel-892/multivideo-document-evidence/format-initial.txt b/docs/hel-892/multivideo-document-evidence/format-initial.txt new file mode 100644 index 00000000..89071983 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/format-initial.txt @@ -0,0 +1 @@ +6 files reformatted, 4 files left unchanged diff --git a/docs/hel-892/multivideo-document-evidence/format-second.txt b/docs/hel-892/multivideo-document-evidence/format-second.txt new file mode 100644 index 00000000..74a5e976 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/format-second.txt @@ -0,0 +1 @@ +2 files reformatted, 8 files left unchanged diff --git a/docs/hel-892/multivideo-document-evidence/format-third.txt b/docs/hel-892/multivideo-document-evidence/format-third.txt new file mode 100644 index 00000000..83b9d97a --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/format-third.txt @@ -0,0 +1 @@ +3 files reformatted, 6 files left unchanged diff --git a/docs/hel-892/multivideo-document-evidence/format.txt b/docs/hel-892/multivideo-document-evidence/format.txt new file mode 100644 index 00000000..2fafd3c8 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/format.txt @@ -0,0 +1 @@ +26 files already formatted diff --git a/docs/hel-892/multivideo-document-evidence/frozen-resource-check.json b/docs/hel-892/multivideo-document-evidence/frozen-resource-check.json new file mode 100644 index 00000000..b257df5b --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/frozen-resource-check.json @@ -0,0 +1,771 @@ +{ + "base": "197f3e150dda417ed7a2698860834375e95e1bec", + "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 +} diff --git a/docs/hel-892/multivideo-document-evidence/import-protection.json b/docs/hel-892/multivideo-document-evidence/import-protection.json new file mode 100644 index 00000000..1bc1378c --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/import-protection.json @@ -0,0 +1,69 @@ +{ + "base": "197f3e150dda417ed7a2698860834375e95e1bec", + "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": 99, + "new_notes": 0, + "old_saved": 721, + "old_notes": 16, + "overviews": 26, + "all_disabled": true, + "doc_done": 0, + "executed": 0 +} diff --git a/docs/hel-892/multivideo-document-evidence/js-syntax.txt b/docs/hel-892/multivideo-document-evidence/js-syntax.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/hel-892/multivideo-document-evidence/lint-existing-note.txt b/docs/hel-892/multivideo-document-evidence/lint-existing-note.txt new file mode 100644 index 00000000..e7e8a404 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/lint-existing-note.txt @@ -0,0 +1 @@ +开发时一次过宽的test_*fixed_document.py lint读到未改test_fixed_document.py:3的既有I001导入排序问题;此文件与197f3e1相同,未修无关旧文件。最终lint.txt/format.txt仅26个实际修改的自写Python文件,全通过;不称全仓lint全绿。初始新增代码长行和格式修正的日志另保留。 diff --git a/docs/hel-892/multivideo-document-evidence/lint-initial.txt b/docs/hel-892/multivideo-document-evidence/lint-initial.txt new file mode 100644 index 00000000..6b0a5d3c --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/lint-initial.txt @@ -0,0 +1,561 @@ +E501 Line too long (179 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:114:101 + | +114 | … "first_input", "frontend", "renderer", "ue", "citation", "summary", "raw", "path", "cache", "provider"]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +115 | … +116 | … + | + +E501 Line too long (109 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:168:101 + | +166 | assert sum(not isinstance(f["value"], dict) for f in b["fields"]) == 92 +167 | assert ns[3]["widgets_values"]["videopreview"] == ns[12]["widgets_values"]["videopreview"] +168 | assert len([f for f in b["fields"] if f["node_id"] in ["3", "12"] and f["field"] == "videopreview"]) == 2 + | ^^^^^^^^^ +169 | assert ns[10]["inputs"][0]["name"] == "image_1" and ns[10]["inputs"][0]["link"] is None +170 | for eid, origin, slot, target, inp, typ in SOURCES[0]["links"]: + | + +E501 Line too long (132 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:175:101 + | +173 | assert ns[target]["inputs"][inp]["link"] == eid +174 | assert ns[target]["inputs"][inp]["type"] == typ +175 | assert SOURCES[0]["links"][-4:] == [[18,11,0,10,1,"IMAGE"],[21,10,0,12,0,"IMAGE"],[24,16,0,11,1,"IMAGE"],[25,17,0,11,0,"IMAGE"]] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +176 | assert all(next(i for i in ns[n]["inputs"] if i["name"] == "audio")["link"] is None for n in [3,12]) +177 | assert all(ns[n]["outputs"][2]["links"] is None for n in [4,6,8,17,16]) + | + +E501 Line too long (104 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:176:101 + | +174 | assert ns[target]["inputs"][inp]["type"] == typ +175 | assert SOURCES[0]["links"][-4:] == [[18,11,0,10,1,"IMAGE"],[21,10,0,12,0,"IMAGE"],[24,16,0,11,1,"IMAGE"],[25,17,0,11,0,"IMAGE"]] +176 | assert all(next(i for i in ns[n]["inputs"] if i["name"] == "audio")["link"] is None for n in [3,12]) + | ^^^^ +177 | assert all(ns[n]["outputs"][2]["links"] is None for n in [4,6,8,17,16]) +178 | for n in [5,7]: + | + +E501 Line too long (108 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:180:101 + | +178 | for n in [5,7]: +179 | assert ns[n]["widgets_values"] == [512,896,"lanczos","crop","0, 0, 0","center",32,"cpu"] +180 | assert ns[n]["properties"]["ue_properties"]["widget_ue_connectable"] == dict(width=True,height=True) + | ^^^^^^^^ +181 | assert "frontendVersion" not in SOURCES[0]["extra"] +182 | assert SOURCES[0]["extra"]["workflowRendererVersion"] == "LG" + | + +E501 Line too long (110 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:188:83 + | +186 | assert d["status"] == dict(imported=True,doc_done=False,exec_verified=False) +187 | assert not b["counts"]["final_prompt_constructed"] and b["comments"] == [] +188 | for token in ["10.image_1原link=null", "上半8", "不能称三屏完整可执行", "音频均未接", "temp", "历史缓存"]: + | ^^^^^^^^^ +189 | assert token in b["user_overview"] +190 | texts = " ".join(f["effect"] for f in b["fields"]) + | + +E501 Line too long (124 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:191:97 + | +189 | assert token in b["user_overview"] +190 | texts = " ".join(f["effect"] for f in b["fields"]) +191 | for token in ["kwargs", "向下取整", "gpu+lanczos", "crop", "VHS_MetadataImage", "-shortest", "target_rate", "按钮候选"]: + | ^^^^^^^^^^^^^^^^^^^^^^^^ +192 | assert token in texts +193 | commits = {e["id"]: e["commit"] for e in b["sources"]} + | + +E501 Line too long (229 > 100) + --> calliope-backend/tests/test_multivideo_fixed_document.py:194:101 + | +192 | … +193 | … +194 | …3b6e6bbab1d41e8068e1ddd19bd4d1b", load="8550981384301e9bc5bfea83e5c2c75258102593", combine="0a75c7958fe320efcb052f1d9f8451fd20c730a8") + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +E501 Line too long (117 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:12:72 + | +10 | OUT = Path(__file__).resolve().parent +11 | REF = OUT.parent / 'multivideo-reference' +12 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json'] + | ^^^^^^^^^^^^^^^^^ + +E501 Line too long (126 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:31:101 + | +29 | assert hashlib.sha256(data).hexdigest() == e['sha256'] +30 | assert 1 <= first <= last <= len(data.decode().splitlines()) +31 | refs.append({**e, 'local_file': '../multivideo-reference/' + e['local_file'], 'lines': [first, last], 'claim': claim}) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +32 | return len(refs) - 1 + | + +E501 Line too long (128 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:34:96 + | +32 | return len(refs) - 1 +33 | +34 | concat = ref('concat', 'nodes/image_nodes.py', 2344, 2391, '准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +35 | join = ref('concat', 'nodes/image_nodes.py', 220, 325, '空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐') +36 | kjjs = ref('concat', 'web/js/jsnodes.js', 36, 65, '本提交Update inputs按钮值null;不证明未知宿主第4位置身份') + | + +E501 Line too long (116 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:35:81 + | +34 | concat = ref('concat', 'nodes/image_nodes.py', 2344, 2391, '准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退') +35 | join = ref('concat', 'nodes/image_nodes.py', 220, 325, '空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐') + | ^^^^^^^^^^^^^^^^ +36 | kjjs = ref('concat', 'web/js/jsnodes.js', 36, 65, '本提交Update inputs按钮值null;不证明未知宿主第4位置身份') +37 | kjreg = ref('concat', '__init__.py', 1, 100, '准确Concat注册与image_nodes导入') + | + +E501 Line too long (113 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:36:87 + | +34 | concat = ref('concat', 'nodes/image_nodes.py', 2344, 2391, '准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退') +35 | join = ref('concat', 'nodes/image_nodes.py', 220, 325, '空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐') +36 | kjjs = ref('concat', 'web/js/jsnodes.js', 36, 65, '本提交Update inputs按钮值null;不证明未知宿主第4位置身份') + | ^^^^^^^^^^^^^ +37 | kjreg = ref('concat', '__init__.py', 1, 100, '准确Concat注册与image_nodes导入') +38 | resize = ref('resize', 'nodes/image_nodes.py', 2550, 2790, '准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽') + | + +E501 Line too long (129 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:38:97 + | +36 | kjjs = ref('concat', 'web/js/jsnodes.js', 36, 65, '本提交Update inputs按钮值null;不证明未知宿主第4位置身份') +37 | kjreg = ref('concat', '__init__.py', 1, 100, '准确Concat注册与image_nodes导入') +38 | resize = ref('resize', 'nodes/image_nodes.py', 2550, 2790, '准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +39 | rreg = ref('resize', '__init__.py', 1, 100, '准确Resize v2注册与导入') +40 | load = ref('load', 'videohelpersuite/load_video_nodes.py', 22, 168, '准确85509813格式/尺寸规则与采样、skip、nth、cap') + | + +E501 Line too long (122 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:40:92 + | +38 | resize = ref('resize', 'nodes/image_nodes.py', 2550, 2790, '准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽') +39 | rreg = ref('resize', '__init__.py', 1, 100, '准确Resize v2注册与导入') +40 | load = ref('load', 'videohelpersuite/load_video_nodes.py', 22, 168, '准确85509813格式/尺寸规则与采样、skip、nth、cap') + | ^^^^^^^^^^^^^^^^^^^^^^ +41 | loadrun = ref('load', 'videohelpersuite/load_video_nodes.py', 315, 475, '内存/格式限制、音频起点与时长参数、加载schema与输出') +42 | lreg = ref('load', 'videohelpersuite/nodes.py', 1024, 1055, '准确LoadVideo注册') + | + +E501 Line too long (130 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:41:90 + | +39 | rreg = ref('resize', '__init__.py', 1, 100, '准确Resize v2注册与导入') +40 | load = ref('load', 'videohelpersuite/load_video_nodes.py', 22, 168, '准确85509813格式/尺寸规则与采样、skip、nth、cap') +41 | loadrun = ref('load', 'videohelpersuite/load_video_nodes.py', 315, 475, '内存/格式限制、音频起点与时长参数、加载schema与输出') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +42 | lreg = ref('load', 'videohelpersuite/nodes.py', 1024, 1055, '准确LoadVideo注册') +43 | lutil = ref('load', 'videohelpersuite/utils.py', 17, 56, 'BIGMAX=2**53-1、DIMMAX8192、floatOrInt') + | + +E501 Line too long (102 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:43:99 + | +41 | loadrun = ref('load', 'videohelpersuite/load_video_nodes.py', 315, 475, '内存/格式限制、音频起点与时长参数、加载schema与输出') +42 | lreg = ref('load', 'videohelpersuite/nodes.py', 1024, 1055, '准确LoadVideo注册') +43 | lutil = ref('load', 'videohelpersuite/utils.py', 17, 56, 'BIGMAX=2**53-1、DIMMAX8192、floatOrInt') + | ^^ +44 | ljs = ref('load', 'web/js/VHS.core.js', 41, 168, '85509813包内字典保存恢复,不证明未知宿主/UE次序') +45 | lp = ref('load', 'web/js/VHS.core.js', 915, 970, '85509813历史预览对象保存') + | + +E501 Line too long (103 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:44:84 + | +42 | lreg = ref('load', 'videohelpersuite/nodes.py', 1024, 1055, '准确LoadVideo注册') +43 | lutil = ref('load', 'videohelpersuite/utils.py', 17, 56, 'BIGMAX=2**53-1、DIMMAX8192、floatOrInt') +44 | ljs = ref('load', 'web/js/VHS.core.js', 41, 168, '85509813包内字典保存恢复,不证明未知宿主/UE次序') + | ^^ +45 | lp = ref('load', 'web/js/VHS.core.js', 915, 970, '85509813历史预览对象保存') +46 | ldyn = ref('load', 'web/js/VHS.core.js', 1222, 1282, '85509813格式动态控件/回调,不执行恢复') + | + +E501 Line too long (130 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:47:95 + | +45 | lp = ref('load', 'web/js/VHS.core.js', 915, 970, '85509813历史预览对象保存') +46 | ldyn = ref('load', 'web/js/VHS.core.js', 1222, 1282, '85509813格式动态控件/回调,不执行恢复') +47 | combine = ref('combine', 'videohelpersuite/nodes.py', 207, 395, '准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +48 | video = ref('combine', 'videohelpersuite/nodes.py', 395, 592, '准确0a75c795视频补边/编码、循环、音频混流和中间文件条件') +49 | template = ref('combine', 'videohelpersuite/nodes.py', 40, 160, '准确0a75c795模板展开str转换与元数据FFmpeg条件') + | + +E501 Line too long (124 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:48:89 + | +46 | ldyn = ref('load', 'web/js/VHS.core.js', 1222, 1282, '85509813格式动态控件/回调,不执行恢复') +47 | combine = ref('combine', 'videohelpersuite/nodes.py', 207, 395, '准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件') +48 | video = ref('combine', 'videohelpersuite/nodes.py', 395, 592, '准确0a75c795视频补边/编码、循环、音频混流和中间文件条件') + | ^^^^^^^^^^^^^^^^^^^^^^^^ +49 | template = ref('combine', 'videohelpersuite/nodes.py', 40, 160, '准确0a75c795模板展开str转换与元数据FFmpeg条件') +50 | fmt = ref('combine', 'video_formats/h264-mp4.json', 1, 14, '本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板') + | + +E501 Line too long (116 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:49:91 + | +47 | combine = ref('combine', 'videohelpersuite/nodes.py', 207, 395, '准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件') +48 | video = ref('combine', 'videohelpersuite/nodes.py', 395, 592, '准确0a75c795视频补边/编码、循环、音频混流和中间文件条件') +49 | template = ref('combine', 'videohelpersuite/nodes.py', 40, 160, '准确0a75c795模板展开str转换与元数据FFmpeg条件') + | ^^^^^^^^^^^^^^^^ +50 | fmt = ref('combine', 'video_formats/h264-mp4.json', 1, 14, '本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板') +51 | creg = ref('combine', 'videohelpersuite/nodes.py', 979, 1010, '准确VideoCombine注册') + | + +E501 Line too long (116 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:50:92 + | +48 | video = ref('combine', 'videohelpersuite/nodes.py', 395, 592, '准确0a75c795视频补边/编码、循环、音频混流和中间文件条件') +49 | template = ref('combine', 'videohelpersuite/nodes.py', 40, 160, '准确0a75c795模板展开str转换与元数据FFmpeg条件') +50 | fmt = ref('combine', 'video_formats/h264-mp4.json', 1, 14, '本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板') + | ^^^^^^^^^^^^^^^^ +51 | creg = ref('combine', 'videohelpersuite/nodes.py', 979, 1010, '准确VideoCombine注册') +52 | cjs = ref('combine', 'web/js/VHS.core.js', 31, 158, '0a75c795包内保存恢复,非宿主前端版本证明') + | + +E501 Line too long (121 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:59:101 + | +57 | ref(key, '__init__.py', len(lines)-30, len(lines), 'NODE_CONFIG导出真实注册映射') +58 | for key in ['load', 'combine']: +59 | ref(key, '__init__.py', 1, len((REF / (key+'____init__.py')).read_text().splitlines()), 'VHS包节点导出及web目录') + | ^^^^^^^^^^^^^^^^^^^^^ +60 | for key in ['concat', 'resize', 'load', 'combine']: +61 | ref(key, 'LICENSE', 1, len((REF / (key+'__LICENSE')).read_text().splitlines()), '准确完整提交许可原文') + | + +E501 Line too long (111 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:61:96 + | +59 | ref(key, '__init__.py', 1, len((REF / (key+'____init__.py')).read_text().splitlines()), 'VHS包节点导出及web目录') +60 | for key in ['concat', 'resize', 'load', 'combine']: +61 | ref(key, 'LICENSE', 1, len((REF / (key+'__LICENSE')).read_text().splitlines()), '准确完整提交许可原文') + | ^^^^^^^^^^ +62 | specs = {} + | + +E501 Line too long (161 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:65:101 + | +64 | …t, evidence, role='scalar'): +65 | …p, schema_default=default, unit=unit, limits=limits, effect=effect, evidence=evidence, role=role) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +66 | … +67 | … + | + +E501 Line too long (327 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:74:73 + | +72 | … +73 | … +74 | … 提交JS创建null按钮','未知','原值null;不同于缺键/[]/{}','本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。',[kjjs,concat],'frontend_state_unknown') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +75 | … +76 | … + | + +E501 Line too long (216 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:81:79 + | +79 | … 方式','nearest-exact/bilinear/area/bicubic/lanczos','保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛… +80 | … 认未知','模式','stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels','保存crop;此分支先回退0尺寸并做divisib… +81 | … 析受实现约束','保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +82 | …保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。'), +83 | …2;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。'), + | + +E501 Line too long (212 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:83:82 + | +81 | … 解析受实现约束','保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。'), +82 | …,'保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。'), +83 | … 32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +84 | …pu/gpu','保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。'), +85 | … + | + +E501 Line too long (217 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:101:88 + | + 99 | … +100 | … +101 | …hema max','两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +102 | …oop滤镜;不是GIF loop=0无限循环规则。'), +103 | … ;目录权限未知','保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。'), + | + +E501 Line too long (133 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:102:79 + | +100 | … +101 | …oatOrInt)','8','帧/秒','min1,step1;无schema max','两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音… +102 | … ','0~100,step1','保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +103 | …','AnimateDiff','路径前缀','无schema长度范围;目录权限未知','保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史… +104 | …mage/gif;动态视频格式无固定目标默认','格式','image/gif、image/webp及动态FFmpeg模板','保存video/h264-mp4,准确模板调用libx264并配置… + | + +E501 Line too long (199 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:106:78 + | +104 | … 认','格式','image/gif、image/webp及动态FFmpeg模板','保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可… +105 | …0le','保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。'), +106 | … 待核','保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +107 | … 板条件','保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PN… +108 | … 进入混流','保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分… + | + +E501 Line too long (260 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:110:85 + | +108 | …'保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。'), +109 | …,'保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。'), +110 | … 文件','保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +111 | … +112 | … + | + +E501 Line too long (227 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:116:101 + | +114 | …dden/paused/params整体保留;嵌套不重复计数','只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完… +115 | … +116 | …ion_3'],'ImageResizeKJv2':['width','height','upscale_method','keep_proportion','pad_color','crop_position','divisible_by','device']} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +117 | … +118 | … + | + +E501 Line too long (533 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:124:101 + | +122 | … +123 | … +124 | …':str(n['id']), 'class_type':n['type'], 'scope':'root', 'pointer':f'/nodes/{i}/widgets_values/{key}', 'value':value, 'json_type':type(value).__name__, 'execution_note':f"源mode={n['mode']};"+('上半mode4旁路组,不能当活动正常分支结果。' if n['mode']==4 else '下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。')+'无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。'}) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +125 | … +126 | …mage_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。' + | + +E501 Line too long (404 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:126:68 + | +124 | …':str(n['id']), 'class_type':n['type'], 'scope':'root', 'pointer':f'/nodes/{i}/widgets_values/{key}', 'value':value, 'json_type':type(value).__name__, 'execution_note':f"源mode={n['mode']};"+('上半mode4旁路组,不能当活动正常分支结果。' if n['mode']==4 else '下半mode0活动保存态;10.image_1原link=null,链路缺必需… +125 | … +126 | …mage_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。' + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +127 | … +128 | … + | + +E501 Line too long (227 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:132:87 + | +130 | …0.image_2,10保存left但image_1原link=null。Concat准确schema必需image_1,实现直接kwargs["image_1"];仅后续缺输入回退零张量,不能套给第一… +131 | … 高为准,另一边按比例int计算。短批次重复末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。', +132 | … ,再round算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos源码明确抛错。两width/height UE可连声明保持,物理link均null。', + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +133 | …8 cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材尺寸未知;AnimateDiff target_rate8不等于Python强制把16覆盖为8,动态格式回调和UE恢… +134 | …im_to_audio=false/pingpong=false/save_output=false;帧率均无外线覆盖。两audio、meta_batch、vae均未接,五加载器音频出口均未接,不称音画… + | + +E501 Line too long (240 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:133:93 + | +131 | … 幅高为准,另一边按比例int计算。短批次重复末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。', +132 | … ,再round算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos源码明确抛错。两width/height UE可连声明保持,物理link均null。', +133 | …/8 cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材尺寸未知;AnimateDiff target_rate8不等于Python强制把16覆盖为8,动态格式回调和UE恢复未知。', + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +134 | …rim_to_audio=false/pingpong=false/save_output=false;帧率均无外线覆盖。两audio、meta_batch、vae均未接,五加载器音频出口均未接,不称音画自动同步或保留… +135 | …控制视频元数据,VHS_MetadataImage默认true独立控制首帧PNG。save_output=false选择temp仍可能写文件;VHS_KeepIntermediate按条件清中间文件,不是禁止落盘。', + | + +E501 Line too long (242 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:143:94 + | +141 | … +142 | … +143 | …s'])) if 'widgets_values' in n else '缺widgets_values键')+';原properties='+json.dumps(n['properties'],ensure_ascii=False) for n in graph['nodes']] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +144 | …a/实现和许可独立固定,不跨版本混用。" for k in ['concat','resize','load','combine']] +145 | … 供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。'] + | + +E501 Line too long (179 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:144:91 + | +142 | …'links']] +143 | …(len(n['widgets_values'])) if 'widgets_values' in n else '缺widgets_values键')+';原properties='+json.dumps(n['properties'],ensure_a… +144 | …id']==k)};注册/schema/实现和许可独立固定,不跨版本混用。" for k in ['concat','resize','load','combine']] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +145 | ….2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。'] +146 | …,source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='声明提交源码仅… + | + +E501 Line too long (159 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:145:83 + | +143 | … 置="+(str(len(n['widgets_values'])) if 'widgets_values' in n else '缺widgets_values键')+';原properties='+json.dumps(n['properties'… +144 | …ies if e['id']==k)};注册/schema/实现和许可独立固定,不跨版本混用。" for k in ['concat','resize','load','combine']] +145 | …ypasser7.5.2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。'] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +146 | …exdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='声明… + | + +E501 Line too long (1608 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:146:101 + | +144 | …a/实现和许可独立固定,不跨版本混用。" for k in ['concat','resize','load','combine']] +145 | … 供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。'] +146 | …b.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='声明提交源码仅作固定参考;活动10缺必需第一路、上半mode4旁路、音频未接,未实跑、转换保持关闭。',user_overview=overview,versions=versions,counts=dict(saved_fields=99,scalar_saved_positions=92,history_objects=7,null_positions=4,source_nodes=14,physical_edges=11,source_notes=0,linked_saved_fields=0,frontend_only=11,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=refs,comments=[],flow=flow,flow_evidence=list(range(len(refs))),zero_saved_nodes=[dict(node_id='18',class_type='Fast Groups Bypasser (rgthree)',effect='原缺widgets_values键,提供方/版本未声明;原组控制属性仅源状态,注册与动态开关/执行作用未知。')],steps=[overview,'素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。','操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。','操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。','操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。','操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。','常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参考,实际效果未测。','目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实效果待后续核对;本轮只GET说明,无prompt/新候选/实跑,155完整定稿0。']) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +E501 Line too long (154 > 100) + --> docs/hel-892/multivideo-document-evidence/fetch_sources.py:12:101 + | +10 | … +11 | … +12 | …1073c3c1731b96ee31a3', ['__init__.py','nodes/image_nodes.py','web/js/jsnodes.js','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | …41e8068e1ddd19bd4d1b', ['__init__.py','nodes/image_nodes.py','LICENSE']), +14 | …384301e9bc5bfea83e5c2c75258102593', ['__init__.py','videohelpersuite/load_video_nodes.py','videohelpersuite/nodes.py','videohelpersui… + | + +E501 Line too long (134 > 100) + --> docs/hel-892/multivideo-document-evidence/fetch_sources.py:13:101 + | +11 | … +12 | …ff5a53be051073c3c1731b96ee31a3', ['__init__.py','nodes/image_nodes.py','web/js/jsnodes.js','LICENSE']), +13 | …b6e6bbab1d41e8068e1ddd19bd4d1b', ['__init__.py','nodes/image_nodes.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +14 | …, '8550981384301e9bc5bfea83e5c2c75258102593', ['__init__.py','videohelpersuite/load_video_nodes.py','videohelpersuite/nodes.py','vide… +15 | …te', '0a75c7958fe320efcb052f1d9f8451fd20c730a8', ['__init__.py','videohelpersuite/nodes.py','videohelpersuite/utils.py','web/js/VHS.c… + | + +E501 Line too long (240 > 100) + --> docs/hel-892/multivideo-document-evidence/fetch_sources.py:14:101 + | +12 | …py','nodes/image_nodes.py','web/js/jsnodes.js','LICENSE']), +13 | …py','nodes/image_nodes.py','LICENSE']), +14 | …, ['__init__.py','videohelpersuite/load_video_nodes.py','videohelpersuite/nodes.py','videohelpersuite/utils.py','web/js/VHS.core.js','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15 | …a8', ['__init__.py','videohelpersuite/nodes.py','videohelpersuite/utils.py','web/js/VHS.core.js','video_formats/h264-mp4.json','LICENSE']), +16 | … + | + +E501 Line too long (234 > 100) + --> docs/hel-892/multivideo-document-evidence/fetch_sources.py:15:101 + | +13 | …py','nodes/image_nodes.py','LICENSE']), +14 | …, ['__init__.py','videohelpersuite/load_video_nodes.py','videohelpersuite/nodes.py','videohelpersuite/utils.py','web/js/VHS.core.js','LICENSE']), +15 | …a8', ['__init__.py','videohelpersuite/nodes.py','videohelpersuite/utils.py','web/js/VHS.core.js','video_formats/h264-mp4.json','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16 | … + | + +E501 Line too long (126 > 100) + --> docs/hel-892/multivideo-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=40) as r: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +21 | return r.read() + | + +E501 Line too long (149 > 100) + --> docs/hel-892/multivideo-document-evidence/render_report.py:15:69 + | +13 | … +14 | … +15 | … ;旧25图721+16逐对象不变。26图820+16仅参考展示,155完整定稿0、实跑0、新增转换0。", "", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16 | … 源local_file以docs/hel-892/multivideo-document-evidence为基准。", "", +17 | …t+6 Registry发布包文本,版本元数据JSON单列;复用前端为7个唯一raw。旧日志与旧实际说明块保留。", "", + | + +E501 Line too long (129 > 100) + --> docs/hel-892/multivideo-document-evidence/render_report.py:16:79 + | +14 | "# 多视频分屏固定参考中文说明", "", +15 | "新增99保存位置(92标量含4null+7完整历史对象)/0注释;旧25图721+16逐对象不变。26图820+16仅参考展示,155完整定稿0、实跑0、… +16 | "复用SQLite→GET→既有抽屉,仅新增受信说明块与摘要;来源local_file以docs/hel-892/multivideo-document-evidence为基准。", "", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +17 | "上批计数勘误:watermark source-check.json实际12 Git+6 Registry发布包文本,版本元数据JSON单列;复用前端为7个唯一raw。旧日志… +18 | ] + | + +E501 Line too long (158 > 100) + --> docs/hel-892/multivideo-document-evidence/render_report.py:17:79 + | +15 | … 25图721+16逐对象不变。26图820+16仅参考展示,155完整定稿0、实跑0、新增转换0。", "", +16 | …ocal_file以docs/hel-892/multivideo-document-evidence为基准。", "", +17 | … Registry发布包文本,版本元数据JSON单列;复用前端为7个唯一raw。旧日志与旧实际说明块保留。", "", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +18 | … +19 | … + | + +E501 Line too long (105 > 100) + --> docs/hel-892/multivideo-document-evidence/verify_sources.py:16:101 + | +14 | assert tree['sha'] == e['commit'] and not tree['truncated'] +15 | blob = hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest() +16 | assert blob == e['git_blob_sha1'] == next(x['sha'] for x in tree['tree'] if x['path']==e['file']) + | ^^^^^ +17 | assert hashlib.sha256(raw).hexdigest() == e['sha256'] +18 | b = build() + | + +E501 Line too long (207 > 100) + --> docs/hel-892/multivideo-document-evidence/verify_sources.py:24:101 + | +22 | … +23 | … +24 | …sha256=b['canonical_sha256'],nodes=g['nodes'],links=g['links'],extra=g['extra'],counts=b['counts'],missing_widgets=[18]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +25 | …=2)+'\n') +26 | …2/multivideo-reference',git_texts=len(entries),registry_texts=0,tree_metadata_json=4,unique_commits=4,files=entries,citations=len(b['… + | + +E501 Line too long (316 > 100) + --> docs/hel-892/multivideo-document-evidence/verify_sources.py:26:101 + | +24 | …['canonical_sha256'],nodes=g['nodes'],links=g['links'],extra=g['extra'],counts=b['counts'],missing_widgets=[18]) +25 | …) +26 | …ideo-reference',git_texts=len(entries),registry_texts=0,tree_metadata_json=4,unique_commits=4,files=entries,citations=len(b['sources']),no_upstream_execution=True,no_assets_fetched=True),ensure_ascii=False,indent=2)+'\n') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +27 | …itations") + | + +E501 Line too long (105 > 100) + --> docs/hel-892/multivideo-document-evidence/verify_sources.py:27:101 + | +25 | (OUT / 'source-graphs.json').write_text(json.dumps(graphs,ensure_ascii=False,indent=2)+'\n') +26 | (OUT / 'source-check.json').write_text(json.dumps(dict(local_file_base='docs/hel-892/multivideo-reference',git_texts=len(entries),… +27 | print(f"PASS {len(entries)} Git text originals, 4 tree metadata JSON, {len(b['sources'])} citations") + | ^^^^^ + +Found 53 errors. diff --git a/docs/hel-892/multivideo-document-evidence/lint-second.txt b/docs/hel-892/multivideo-document-evidence/lint-second.txt new file mode 100644 index 00000000..201a5218 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/lint-second.txt @@ -0,0 +1,66 @@ +E501 Line too long (119 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:269:72 + | +267 | "RGB字符串", +268 | "schema无字符串范围;填充色解析受实现约束", +269 | "保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。", + | ^^^^^^^^^^^^^^^^^^ +270 | ), +271 | ( + | + +E501 Line too long (119 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:445:67 + | +443 | "CRF", +444 | "模板0~100,step1;编码器可接受范围另待核", +445 | "保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。", + | ^^^^^^^^^^^^^^^^^^^ +446 | ), +447 | ( + | + +E501 Line too long (129 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:547:73 + | +545 | else "下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。" +546 | ) +547 | + "无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +548 | } +549 | ) + | + +E501 Line too long (126 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:642:88 + | +640 | ] +641 | versions = [ +642 | f"{k}准确完整提交{next(e['commit'] for e in entries if e['id'] == k)};注册/schema/实现和许可独立固定,不跨版本混用。" + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +643 | for k in ["concat", "resize", "load", "combine"] +644 | ] + | + +E501 Line too long (110 > 100) + --> docs/hel-892/multivideo-document-evidence/build_definition.py:690:76 + | +688 | "操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。", +689 | "操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。", +690 | "操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。", + | ^^^^^^^^^^ +691 | "操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。", +692 | ( + | + +E501 Line too long (102 > 100) + --> docs/hel-892/multivideo-document-evidence/verify_sources.py:58:101 + | +56 | ) +57 | print( +58 | f"PASS {len(entries)} Git text originals, 4 tree metadata JSON, {len(b['sources'])} citations" + | ^^ +59 | ) + | + +Found 6 errors. diff --git a/docs/hel-892/multivideo-document-evidence/lint-third.txt b/docs/hel-892/multivideo-document-evidence/lint-third.txt new file mode 100644 index 00000000..4da4d860 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/lint-third.txt @@ -0,0 +1,12 @@ +E501 Line too long (112 > 100) + --> e2e/run-multivideo-document.py:83:101 + | +81 | released.append(port) +82 | (OUT / "service-stop.json").write_text( +83 | json.dumps(dict(ports_released=released, child_exit_codes=[p.returncode for p in processes])) + "\n" + | ^^^^^^^^^^^^ +84 | ) +85 | print("All owned browser services stopped; ports released.") + | + +Found 1 error. diff --git a/docs/hel-892/multivideo-document-evidence/lint.txt b/docs/hel-892/multivideo-document-evidence/lint.txt new file mode 100644 index 00000000..1f5f344d --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/lint.txt @@ -0,0 +1 @@ +All checks passed! diff --git a/docs/hel-892/multivideo-document-evidence/package-check.json b/docs/hel-892/multivideo-document-evidence/package-check.json new file mode 100644 index 00000000..9eaf7c12 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/package-check.json @@ -0,0 +1,23 @@ +[ + { + "file": "fixed_document.py", + "sha256": "eeb2b38401b9254b3f4b4122db3d9adb43fe96ad5b6a7a1c716dee67ee3d78d1", + "wheel": true, + "sdist": true, + "definitions": 26 + }, + { + "file": "source_reviews.json", + "sha256": "c7d7161e654944bcd56cb76bba00368aa2a271b5ab09518b2355cc0ac7e837b6", + "wheel": true, + "sdist": true, + "definitions": 26 + }, + { + "file": "library.py", + "sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c", + "wheel": true, + "sdist": true, + "definitions": 26 + } +] diff --git a/docs/hel-892/multivideo-document-evidence/pins.json b/docs/hel-892/multivideo-document-evidence/pins.json new file mode 100644 index 00000000..9b6f9282 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/pins.json @@ -0,0 +1,3 @@ +{ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json": "d76d28f8cb202d052c5d7658e33ddd04f3b99c30d040577bdf7b592646af6c4b" +} diff --git a/docs/hel-892/multivideo-document-evidence/pr-before.json b/docs/hel-892/multivideo-document-evidence/pr-before.json new file mode 100644 index 00000000..3426dc67 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/pr-before.json @@ -0,0 +1,8 @@ +{ + "state": "open", + "merged": false, + "html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25", + "head_ref": "agent/agent/a64a969a6a44", + "head_sha": "197f3e150dda417ed7a2698860834375e95e1bec", + "base_ref": "main" +} diff --git a/docs/hel-892/multivideo-document-evidence/pr-link-table.json b/docs/hel-892/multivideo-document-evidence/pr-link-table.json new file mode 100644 index 00000000..92a476d1 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/pr-link-table.json @@ -0,0 +1,10 @@ +{ + "auto_complete": { + "issue_disabled": false, + "pull_request_ids": [], + "state": "none", + "target_status": "done", + "workspace_enabled": true + }, + "pull_requests": [] +} diff --git a/docs/hel-892/multivideo-document-evidence/python-check-files.json b/docs/hel-892/multivideo-document-evidence/python-check-files.json new file mode 100644 index 00000000..5215f0a1 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/python-check-files.json @@ -0,0 +1,31 @@ +{ + "count": 26, + "files": [ + "calliope-backend/src/calliope/comfyui/fixed_document.py", + "calliope-backend/tests/test_background_fixed_document.py", + "calliope-backend/tests/test_birefnet_fixed_document.py", + "calliope-backend/tests/test_concat_fixed_document.py", + "calliope-backend/tests/test_controlnet_fixed_document.py", + "calliope-backend/tests/test_frames_fixed_document.py", + "calliope-backend/tests/test_gemma_fixed_document.py", + "calliope-backend/tests/test_gif_images_fixed_document.py", + "calliope-backend/tests/test_grid_fixed_document.py", + "calliope-backend/tests/test_latent_fixed_document.py", + "calliope-backend/tests/test_multivideo_fixed_document.py", + "calliope-backend/tests/test_nlf_fixed_document.py", + "calliope-backend/tests/test_openpose_fixed_document.py", + "calliope-backend/tests/test_reverse_fixed_document.py", + "calliope-backend/tests/test_sdpose_fixed_document.py", + "calliope-backend/tests/test_watermark_fixed_document.py", + "docs/hel-892/multivideo-document-evidence/build_definition.py", + "docs/hel-892/multivideo-document-evidence/check_code.py", + "docs/hel-892/multivideo-document-evidence/fetch_sources.py", + "docs/hel-892/multivideo-document-evidence/rebuild.py", + "docs/hel-892/multivideo-document-evidence/recompute.py", + "docs/hel-892/multivideo-document-evidence/render_report.py", + "docs/hel-892/multivideo-document-evidence/repeat.py", + "docs/hel-892/multivideo-document-evidence/request_counts.py", + "docs/hel-892/multivideo-document-evidence/verify_sources.py", + "e2e/run-multivideo-document.py" + ] +} diff --git a/docs/hel-892/multivideo-document-evidence/python-check-initial.txt b/docs/hel-892/multivideo-document-evidence/python-check-initial.txt new file mode 100644 index 00000000..37696bf6 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/python-check-initial.txt @@ -0,0 +1,17 @@ +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/check_code.py", line 54, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/check_code.py", line 44, in main + assert result.returncode == 0, result.stdout + result.stderr +AssertionError: E501 Line too long (118 > 100) + --> docs/hel-892/multivideo-document-evidence/check_code.py:49:101 + | +47 | ) +48 | print( +49 | f"PASS Ruff check and format for {len(files)} changed self-authored Python files; upstream originals excluded" + | ^^^^^^^^^^^^^^^^^^ +50 | ) + | + +Found 1 error. + diff --git a/docs/hel-892/multivideo-document-evidence/python-check.txt b/docs/hel-892/multivideo-document-evidence/python-check.txt new file mode 100644 index 00000000..062c3178 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/python-check.txt @@ -0,0 +1 @@ +PASS Ruff check and format for 26 changed self-authored Python files; upstream originals excluded diff --git a/docs/hel-892/multivideo-document-evidence/rebuild-initial.txt b/docs/hel-892/multivideo-document-evidence/rebuild-initial.txt new file mode 100644 index 00000000..a42b9b3b --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/rebuild-initial.txt @@ -0,0 +1,12 @@ +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/rebuild.py", line 64, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/rebuild.py", line 28, in main + reviews, previous = build_all() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/rebuild.py", line 19, in build_all + block = build(i) + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/build_definition.py", line 50, in build + fmt = ref('combine', 'video_formats/h264-mp4.json', 1, 15, '本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板') + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-bb9ee4fe7d12/workdir/aigc-home/docs/hel-892/multivideo-document-evidence/build_definition.py", line 30, in ref + assert 1 <= first <= last <= len(data.decode().splitlines()) +AssertionError diff --git a/docs/hel-892/multivideo-document-evidence/rebuild.py b/docs/hel-892/multivideo-document-evidence/rebuild.py new file mode 100644 index 00000000..a1650445 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/rebuild.py @@ -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 = "197f3e150dda417ed7a2698860834375e95e1bec" +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 25 blocks unchanged")) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/multivideo-document-evidence/rebuild.txt b/docs/hel-892/multivideo-document-evidence/rebuild.txt new file mode 100644 index 00000000..f479cd79 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/rebuild.txt @@ -0,0 +1 @@ +PASS one definition; other 155 reviews and old 25 blocks unchanged diff --git a/docs/hel-892/multivideo-document-evidence/recompute-final.txt b/docs/hel-892/multivideo-document-evidence/recompute-final.txt new file mode 100644 index 00000000..c8a9eaf8 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/recompute-final.txt @@ -0,0 +1,2 @@ +PASS 19 Git text originals, 4 tree metadata JSON, 29 citations +PASS actual 197f3e1 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 26 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/multivideo-document-evidence/recompute.py b/docs/hel-892/multivideo-document-evidence/recompute.py new file mode 100644 index 00000000..0c2128c6 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/recompute.py @@ -0,0 +1,330 @@ +"Actual 197f3e1 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) == 25 + 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()) == 721 + 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=25, + old_saved=721, + old_notes=16, + new_saved=99, + new_notes=0, + total_documents=26, + total_saved=820, + total_notes=16, + ), + ) + 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=99, + new_notes=0, + old_saved=721, + old_notes=16, + overviews=26, + 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_five_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=26, + ) + ) + write("package-check.json", packages) + print( + "PASS actual 197f3e1 upgrade1/skip154, repe" + "at155, rollback1, edits1/29cols, fresh155," + " 1217/3660/294, 26 definitions, frozen bou" + "ndaries, wheel/sdist" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/multivideo-document-evidence/recompute.txt b/docs/hel-892/multivideo-document-evidence/recompute.txt new file mode 100644 index 00000000..c8a9eaf8 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/recompute.txt @@ -0,0 +1,2 @@ +PASS 19 Git text originals, 4 tree metadata JSON, 29 citations +PASS actual 197f3e1 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 26 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/multivideo-document-evidence/render_report.py b/docs/hel-892/multivideo-document-evidence/render_report.py new file mode 100644 index 00000000..fae858c8 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/render_report.py @@ -0,0 +1,123 @@ +"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 = [ + "# 多视频分屏固定参考中文说明", + "", + ( + "新增99保存位置(92标量含4null+7完整历史对象)/0注释;旧25图721" + "+16逐对象不变。26图820+16仅参考展示,155完整定稿0、实跑0、新增转" + "换0。" + ), + "", + ( + "复用SQLite→GET→既有抽屉,仅新增受信说明块与摘要;来源local_fi" + "le以docs/hel-892/multivideo-document-evid" + "ence为基准。" + ), + "", + ( + "上批计数勘误:watermark source-check.json实际12 G" + "it+6 Registry发布包文本,版本元数据JSON单列;复用前端为7个唯一" + "raw。旧日志与旧实际说明块保留。" + ), + "", + ] + 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 / "多视频分屏固定参考中文说明.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() diff --git a/docs/hel-892/multivideo-document-evidence/repeat-final.txt b/docs/hel-892/multivideo-document-evidence/repeat-final.txt new file mode 100644 index 00000000..df043325 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/repeat-final.txt @@ -0,0 +1 @@ +PASS deterministic definitions and rendered artifacts: zero difference diff --git a/docs/hel-892/multivideo-document-evidence/repeat.py b/docs/hel-892/multivideo-document-evidence/repeat.py new file mode 100644 index 00000000..eb6f2bd4 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/repeat.py @@ -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 / "多视频分屏固定参考中文说明.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=26, + 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() diff --git a/docs/hel-892/multivideo-document-evidence/repeat.txt b/docs/hel-892/multivideo-document-evidence/repeat.txt new file mode 100644 index 00000000..df043325 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/repeat.txt @@ -0,0 +1 @@ +PASS deterministic definitions and rendered artifacts: zero difference diff --git a/docs/hel-892/multivideo-document-evidence/repeatability.json b/docs/hel-892/multivideo-document-evidence/repeatability.json new file mode 100644 index 00000000..0d48c55e --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/repeatability.json @@ -0,0 +1,10 @@ +{ + "definitions": 26, + "repeated_build_equal": true, + "repeated_render_equal": true, + "resource_sha256": "9010b73297eb65815f6329ab5c480a8992059a4376059db6ce8850a754053727", + "artifacts": { + "fixed-source-index.json": "26cd763e2f0c65634edb5f335604c3dacef84f91c6e8fcee424bb64c6933676b", + "多视频分屏固定参考中文说明.md": "6aadf56aeca6250c228fa16173e34eb043036c3676cc74d42022318c984f101a" + } +} diff --git a/docs/hel-892/multivideo-document-evidence/request-counts.txt b/docs/hel-892/multivideo-document-evidence/request-counts.txt new file mode 100644 index 00000000..892923ac --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/request-counts.txt @@ -0,0 +1 @@ +{"total": 99, "fixed_count": 86, "polling_count": 13, "paths": {"/api/workflows": 3, "/api/workflows/15": 4, "/api/workflows/11": 4, "/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": 13, "/api/settings": 1, "/api/workflows/156": 1, "/api/workflows/157": 1}, "readiness_included": 1, "reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"} diff --git a/docs/hel-892/multivideo-document-evidence/request_counts.py b/docs/hel-892/multivideo-document-evidence/request_counts.py new file mode 100644 index 00000000..f471c9f8 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/request_counts.py @@ -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() diff --git a/docs/hel-892/multivideo-document-evidence/review-delta.json b/docs/hel-892/multivideo-document-evidence/review-delta.json new file mode 100644 index 00000000..22fcebdd --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/review-delta.json @@ -0,0 +1,15 @@ +{ + "base": "197f3e150dda417ed7a2698860834375e95e1bec", + "changed_paths": [ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json" + ], + "other_reviews_unchanged": 155, + "old_blocks_unchanged": 25, + "old_saved": 721, + "old_notes": 16, + "new_saved": 99, + "new_notes": 0, + "total_documents": 26, + "total_saved": 820, + "total_notes": 16 +} diff --git a/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-12-save_output.png b/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-12-save_output.png new file mode 100644 index 00000000..f7ea2c73 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-12-save_output.png differ diff --git a/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-branch-flow.png b/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-branch-flow.png new file mode 100644 index 00000000..8f98abbe Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-branch-flow.png differ diff --git a/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-default.png b/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-default.png new file mode 100644 index 00000000..c8f837c2 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/screenshots/1440-15-default.png differ diff --git a/docs/hel-892/multivideo-document-evidence/screenshots/390-15-default.png b/docs/hel-892/multivideo-document-evidence/screenshots/390-15-default.png new file mode 100644 index 00000000..92d916d3 Binary files /dev/null and b/docs/hel-892/multivideo-document-evidence/screenshots/390-15-default.png differ diff --git a/docs/hel-892/multivideo-document-evidence/server-request-accounting.json b/docs/hel-892/multivideo-document-evidence/server-request-accounting.json new file mode 100644 index 00000000..55e5a317 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/server-request-accounting.json @@ -0,0 +1,40 @@ +{ + "total": 99, + "fixed_count": 86, + "polling_count": 13, + "paths": { + "/api/workflows": 3, + "/api/workflows/15": 4, + "/api/workflows/11": 4, + "/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": 13, + "/api/settings": 1, + "/api/workflows/156": 1, + "/api/workflows/157": 1 + }, + "readiness_included": 1, + "reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。" +} diff --git a/docs/hel-892/multivideo-document-evidence/service-0.txt b/docs/hel-892/multivideo-document-evidence/service-0.txt new file mode 100644 index 00000000..bb261305 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/service-0.txt @@ -0,0 +1,108 @@ +INFO: Started server process [659697] +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:41596 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41610 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41602 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41634 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:41620 - "GET /api/settings HTTP/1.1" 200 OK +INFO: 127.0.0.1:41644 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:41646 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41658 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:45612 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:45616 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:45618 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48088 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48098 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48112 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48116 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:48120 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48130 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48136 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48138 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:48150 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48164 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48174 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48190 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48198 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48202 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48218 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48222 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48234 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48242 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48246 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48250 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48264 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48268 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48274 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48276 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48292 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48298 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:48304 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:39798 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:39806 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:39818 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:41788 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:41796 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41810 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41818 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41820 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41830 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41846 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41850 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41864 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41876 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41886 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:41892 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41904 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41908 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:41916 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:41928 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52672 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52686 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52700 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52712 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52726 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52742 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52744 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52750 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52752 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52764 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52770 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52782 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52796 - "GET /api/workflows/156 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52808 - "GET /api/workflows/157 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52824 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:52834 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:52838 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: Shutting down +INFO: Waiting for application shutdown. +INFO: Application shutdown complete. +INFO: Finished server process [659697] diff --git a/docs/hel-892/multivideo-document-evidence/service-1.txt b/docs/hel-892/multivideo-document-evidence/service-1.txt new file mode 100644 index 00000000..04c66f67 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/service-1.txt @@ -0,0 +1,4 @@ + + VITE v6.4.3 ready in 281 ms + + ➜ Local: http://127.0.0.1:5173/ diff --git a/docs/hel-892/multivideo-document-evidence/service-stop.json b/docs/hel-892/multivideo-document-evidence/service-stop.json new file mode 100644 index 00000000..ddd36fda --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/service-stop.json @@ -0,0 +1 @@ +{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]} diff --git a/docs/hel-892/multivideo-document-evidence/source-check.json b/docs/hel-892/multivideo-document-evidence/source-check.json new file mode 100644 index 00000000..12e917bc --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/source-check.json @@ -0,0 +1,183 @@ +{ + "local_file_base": "docs/hel-892/multivideo-reference", + "git_texts": 19, + "registry_texts": 0, + "tree_metadata_json": 4, + "unique_commits": 4, + "files": [ + { + "id": "concat", + "file": "__init__.py", + "local_file": "concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825" + }, + { + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0" + }, + { + "id": "concat", + "file": "web/js/jsnodes.js", + "local_file": "concat__web__js__jsnodes.js", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7", + "git_blob_sha1": "c391bd55dc3c94ee81dc8d2f96462c03ed684279" + }, + { + "id": "concat", + "file": "LICENSE", + "local_file": "concat__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "resize", + "file": "__init__.py", + "local_file": "resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825" + }, + { + "id": "resize", + "file": "nodes/image_nodes.py", + "local_file": "resize__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee", + "git_blob_sha1": "8de598ebfce304e41b2da906a5f5a6a64df56ce7" + }, + { + "id": "resize", + "file": "LICENSE", + "local_file": "resize__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "load", + "file": "__init__.py", + "local_file": "load____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041" + }, + { + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e" + }, + { + "id": "load", + "file": "videohelpersuite/nodes.py", + "local_file": "load__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_blob_sha1": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97" + }, + { + "id": "load", + "file": "videohelpersuite/utils.py", + "local_file": "load__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_blob_sha1": "75431d5a9e151ae50257d3fd14c03ffbc7570d39" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "load__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "combine", + "file": "__init__.py", + "local_file": "combine____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f" + }, + { + "id": "combine", + "file": "videohelpersuite/utils.py", + "local_file": "combine__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/utils.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "737ad04961da91c52c1fc918c427b7683fdbc209f8a767b173cf2a9331f4cc71", + "git_blob_sha1": "f17ed7c4028b6fcf1d52272fed07438b95ebdd7a" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9" + }, + { + "id": "combine", + "file": "video_formats/h264-mp4.json", + "local_file": "combine__video_formats__h264-mp4.json", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288", + "git_blob_sha1": "c591b5b6c4604276d86a6b6bd453cf44fb74566d" + }, + { + "id": "combine", + "file": "LICENSE", + "local_file": "combine__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + } + ], + "citations": 29, + "no_upstream_execution": true, + "no_assets_fetched": true +} diff --git a/docs/hel-892/multivideo-document-evidence/source-check.txt b/docs/hel-892/multivideo-document-evidence/source-check.txt new file mode 100644 index 00000000..30625f69 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/source-check.txt @@ -0,0 +1 @@ +PASS 19 Git text originals, 4 tree metadata JSON, 29 citations diff --git a/docs/hel-892/multivideo-document-evidence/source-count-correction.json b/docs/hel-892/multivideo-document-evidence/source-count-correction.json new file mode 100644 index 00000000..91be1e9e --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/source-count-correction.json @@ -0,0 +1,14 @@ +{ + "previous": "watermark-document-evidence/source-check.json", + "git_texts": 12, + "registry_release_texts": 6, + "version_metadata_json": "separate, not counted as text", + "reused_frontend_unique_raws": 7, + "corrected": "watermark-document-evidence/delivery-summary.md", + "old_logs_and_old_25_blocks": "unchanged", + "current_git_texts": 19, + "current_unique_git_commits": 4, + "current_tree_metadata_json": 4, + "current_registry_texts": 0, + "current_citations": 29 +} diff --git a/docs/hel-892/multivideo-document-evidence/source-graphs.json b/docs/hel-892/multivideo-document-evidence/source-graphs.json new file mode 100644 index 00000000..c60902a1 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/source-graphs.json @@ -0,0 +1,2109 @@ +{ + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json", + "raw_sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7", + "canonical_sha256": "1920161949401e21c194b4b6f05f3a954c64fcd7fc74b42db0c764469e395b07", + "nodes": [ + { + "id": 2, + "type": "ImageConcatMulti", + "pos": [ + 1178.706549006779, + -2235.0206514863567 + ], + "size": [ + 210, + 170 + ], + "flags": {}, + "order": 11, + "mode": 4, + "inputs": [ + { + "label": "图像_1", + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE", + "link": 15 + }, + { + "label": "图像_2", + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE", + "link": 16 + }, + { + "label": "输入数量", + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + }, + "link": null + }, + { + "label": "方向", + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + }, + "link": null + }, + { + "label": "匹配尺寸", + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 2 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageConcatMulti" + }, + "widgets_values": [ + 2, + "left", + true, + null + ] + }, + { + "id": 1, + "type": "ImageConcatMulti", + "pos": [ + 899.4409956178089, + -2250.3447306111384 + ], + "size": [ + 210, + 150 + ], + "flags": {}, + "order": 9, + "mode": 4, + "inputs": [ + { + "label": "图像_1", + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE", + "link": 11 + }, + { + "label": "图像_2", + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE", + "link": 12 + }, + { + "label": "输入数量", + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + }, + "link": null + }, + { + "label": "方向", + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + }, + "link": null + }, + { + "label": "匹配尺寸", + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 16 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageConcatMulti" + }, + "widgets_values": [ + 2, + "down", + true, + null + ] + }, + { + "id": 3, + "type": "VHS_VideoCombine", + "pos": [ + 1424.6672239175875, + -2235.0981698699434 + ], + "size": [ + 926.5979349741815, + 334 + ], + "flags": {}, + "order": 13, + "mode": 4, + "inputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "images", + "type": "IMAGE", + "link": 2 + }, + { + "label": "音频", + "localized_name": "音频", + "name": "audio", + "shape": 7, + "type": "AUDIO", + "link": null + }, + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "帧率", + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + }, + "link": null + }, + { + "label": "循环次数", + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + }, + "link": null + }, + { + "label": "文件名前缀", + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + }, + { + "label": "Ping-Pong", + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + }, + "link": null + }, + { + "label": "保存到输出文件夹", + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + }, + "link": null + }, + { + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + }, + "link": null + }, + { + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + }, + "link": null + }, + { + "label": "保存元数据", + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + }, + "link": null + }, + { + "label": "修剪音频", + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "文件名", + "name": "文件名", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "Node name for S&R": "VHS_VideoCombine", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "WanVideo_SCAIL", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": true, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } + } + } + }, + { + "id": 7, + "type": "ImageResizeKJv2", + "pos": [ + 588.5773872097187, + -1843.7862381220177 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 6, + "mode": 4, + "inputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "image", + "type": "IMAGE", + "link": 5 + }, + { + "label": "遮罩", + "localized_name": "遮罩", + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "label": "宽度", + "localized_name": "宽度", + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": null + }, + { + "label": "高度", + "localized_name": "高度", + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": null + }, + { + "label": "缩放方法", + "localized_name": "缩放方法", + "name": "upscale_method", + "type": "COMBO", + "widget": { + "name": "upscale_method" + }, + "link": null + }, + { + "label": "固定宽高比", + "localized_name": "固定宽高比", + "name": "keep_proportion", + "type": "COMBO", + "widget": { + "name": "keep_proportion" + }, + "link": null + }, + { + "label": "填充颜色", + "localized_name": "填充颜色", + "name": "pad_color", + "type": "STRING", + "widget": { + "name": "pad_color" + }, + "link": null + }, + { + "label": "裁剪位置", + "localized_name": "裁剪位置", + "name": "crop_position", + "type": "COMBO", + "widget": { + "name": "crop_position" + }, + "link": null + }, + { + "label": "因数", + "localized_name": "因数", + "name": "divisible_by", + "type": "INT", + "widget": { + "name": "divisible_by" + }, + "link": null + }, + { + "label": "设备", + "localized_name": "设备", + "name": "device", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "device" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 12 + ] + }, + { + "localized_name": "宽度", + "name": "宽度", + "type": "INT", + "links": [] + }, + { + "localized_name": "高度", + "name": "高度", + "type": "INT", + "links": [] + }, + { + "localized_name": "遮罩", + "name": "遮罩", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true + }, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 512, + 896, + "lanczos", + "crop", + "0, 0, 0", + "center", + 32, + "cpu" + ] + }, + { + "id": 5, + "type": "ImageResizeKJv2", + "pos": [ + 307.7525312290088, + -2249.1735323879825 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 7, + "mode": 4, + "inputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "image", + "type": "IMAGE", + "link": 3 + }, + { + "label": "遮罩", + "localized_name": "遮罩", + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "label": "宽度", + "localized_name": "宽度", + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": null + }, + { + "label": "高度", + "localized_name": "高度", + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": null + }, + { + "label": "缩放方法", + "localized_name": "缩放方法", + "name": "upscale_method", + "type": "COMBO", + "widget": { + "name": "upscale_method" + }, + "link": null + }, + { + "label": "固定宽高比", + "localized_name": "固定宽高比", + "name": "keep_proportion", + "type": "COMBO", + "widget": { + "name": "keep_proportion" + }, + "link": null + }, + { + "label": "填充颜色", + "localized_name": "填充颜色", + "name": "pad_color", + "type": "STRING", + "widget": { + "name": "pad_color" + }, + "link": null + }, + { + "label": "裁剪位置", + "localized_name": "裁剪位置", + "name": "crop_position", + "type": "COMBO", + "widget": { + "name": "crop_position" + }, + "link": null + }, + { + "label": "因数", + "localized_name": "因数", + "name": "divisible_by", + "type": "INT", + "widget": { + "name": "divisible_by" + }, + "link": null + }, + { + "label": "设备", + "localized_name": "设备", + "name": "device", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "device" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 11 + ] + }, + { + "localized_name": "宽度", + "name": "宽度", + "type": "INT", + "links": [] + }, + { + "localized_name": "高度", + "name": "高度", + "type": "INT", + "links": [] + }, + { + "localized_name": "遮罩", + "name": "遮罩", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true + }, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 512, + 896, + "lanczos", + "crop", + "0, 0, 0", + "center", + 32, + "cpu" + ] + }, + { + "id": 8, + "type": "VHS_LoadVideo", + "pos": [ + 906.6905790220828, + -1833.7631668391025 + ], + "size": [ + 255.8291015625, + 310 + ], + "flags": {}, + "order": 0, + "mode": 4, + "inputs": [ + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "视频", + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + }, + "link": null + }, + { + "label": "强制帧率", + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + }, + "link": null + }, + { + "label": "自定义宽度", + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + }, + "link": null + }, + { + "label": "自定义高度", + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + }, + "link": null + }, + { + "label": "帧数读取上限", + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + }, + "link": null + }, + { + "label": "跳过前X帧", + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + }, + "link": null + }, + { + "label": "间隔", + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + } + ], + "outputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 15 + ] + }, + { + "localized_name": "帧计数", + "name": "帧计数", + "type": "INT", + "links": [] + }, + { + "localized_name": "音频", + "name": "音频", + "type": "AUDIO", + "links": null + }, + { + "localized_name": "视频信息", + "name": "视频信息", + "type": "VHS_VIDEOINFO", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "8550981384301e9bc5bfea83e5c2c75258102593", + "Node name for S&R": "VHS_LoadVideo", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "video": "WanVideo_SCAIL_00006.mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "format": "AnimateDiff", + "videopreview": { + "hidden": false, + "paused": true, + "params": { + "filename": "WanVideo_SCAIL_00006.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + } + } + }, + { + "id": 6, + "type": "VHS_LoadVideo", + "pos": [ + 303.21472705497797, + -1844.209283290384 + ], + "size": [ + 255.8291015625, + 736.700927734375 + ], + "flags": {}, + "order": 1, + "mode": 4, + "inputs": [ + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "视频", + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + }, + "link": null + }, + { + "label": "强制帧率", + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + }, + "link": null + }, + { + "label": "自定义宽度", + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + }, + "link": null + }, + { + "label": "自定义高度", + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + }, + "link": null + }, + { + "label": "帧数读取上限", + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + }, + "link": null + }, + { + "label": "跳过前X帧", + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + }, + "link": null + }, + { + "label": "间隔", + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + } + ], + "outputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 5 + ] + }, + { + "localized_name": "帧计数", + "name": "帧计数", + "type": "INT", + "links": [] + }, + { + "localized_name": "音频", + "name": "音频", + "type": "AUDIO", + "links": null + }, + { + "localized_name": "视频信息", + "name": "视频信息", + "type": "VHS_VIDEOINFO", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "8550981384301e9bc5bfea83e5c2c75258102593", + "Node name for S&R": "VHS_LoadVideo", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "video": "onetotall_pose_00001.mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "format": "AnimateDiff", + "videopreview": { + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + } + } + }, + { + "id": 4, + "type": "VHS_LoadVideo", + "pos": [ + 4.80039473314042, + -2246.271836234691 + ], + "size": [ + 255.8291015625, + 743.5855352640658 + ], + "flags": {}, + "order": 2, + "mode": 4, + "inputs": [ + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "视频", + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + }, + "link": null + }, + { + "label": "强制帧率", + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + }, + "link": null + }, + { + "label": "自定义宽度", + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + }, + "link": null + }, + { + "label": "自定义高度", + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + }, + "link": null + }, + { + "label": "帧数读取上限", + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + }, + "link": null + }, + { + "label": "跳过前X帧", + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + }, + "link": null + }, + { + "label": "间隔", + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + } + ], + "outputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 3 + ] + }, + { + "localized_name": "帧计数", + "name": "帧计数", + "type": "INT", + "links": [] + }, + { + "localized_name": "音频", + "name": "音频", + "type": "AUDIO", + "links": null + }, + { + "localized_name": "视频信息", + "name": "视频信息", + "type": "VHS_VIDEOINFO", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "8550981384301e9bc5bfea83e5c2c75258102593", + "Node name for S&R": "VHS_LoadVideo", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "video": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1, + "format": "AnimateDiff", + "videopreview": { + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } + } + } + }, + { + "id": 10, + "type": "ImageConcatMulti", + "pos": [ + 1189.0987754320986, + -942.2332850953842 + ], + "size": [ + 210, + 170 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "label": "图像_1", + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE", + "link": null + }, + { + "label": "图像_2", + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE", + "link": 18 + }, + { + "label": "输入数量", + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + }, + "link": null + }, + { + "label": "方向", + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + }, + "link": null + }, + { + "label": "匹配尺寸", + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 21 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageConcatMulti" + }, + "widgets_values": [ + 2, + "left", + true, + null + ] + }, + { + "id": 11, + "type": "ImageConcatMulti", + "pos": [ + 909.8332220431274, + -957.5573642201659 + ], + "size": [ + 210, + 150 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "label": "图像_1", + "localized_name": "图像_1", + "name": "image_1", + "type": "IMAGE", + "link": 25 + }, + { + "label": "图像_2", + "localized_name": "图像_2", + "name": "image_2", + "shape": 7, + "type": "IMAGE", + "link": 24 + }, + { + "label": "输入数量", + "localized_name": "输入数量", + "name": "inputcount", + "type": "INT", + "widget": { + "name": "inputcount" + }, + "link": null + }, + { + "label": "方向", + "localized_name": "方向", + "name": "direction", + "type": "COMBO", + "widget": { + "name": "direction" + }, + "link": null + }, + { + "label": "匹配尺寸", + "localized_name": "匹配尺寸", + "name": "match_image_size", + "type": "BOOLEAN", + "widget": { + "name": "match_image_size" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 18 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageConcatMulti" + }, + "widgets_values": [ + 2, + "down", + true, + null + ] + }, + { + "id": 12, + "type": "VHS_VideoCombine", + "pos": [ + 1435.059450342907, + -942.3108034789709 + ], + "size": [ + 926.5979349741815, + 334 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "images", + "type": "IMAGE", + "link": 21 + }, + { + "label": "音频", + "localized_name": "音频", + "name": "audio", + "shape": 7, + "type": "AUDIO", + "link": null + }, + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "帧率", + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + }, + "link": null + }, + { + "label": "循环次数", + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + }, + "link": null + }, + { + "label": "文件名前缀", + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + }, + { + "label": "Ping-Pong", + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + }, + "link": null + }, + { + "label": "保存到输出文件夹", + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + }, + "link": null + }, + { + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + }, + "link": null + }, + { + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + }, + "link": null + }, + { + "label": "保存元数据", + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + }, + "link": null + }, + { + "label": "修剪音频", + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "文件名", + "name": "文件名", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "Node name for S&R": "VHS_VideoCombine", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 16, + "loop_count": 0, + "filename_prefix": "WanVideo_SCAIL", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 19, + "save_metadata": true, + "trim_to_audio": false, + "pingpong": false, + "save_output": false, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } + } + } + }, + { + "id": 17, + "type": "VHS_LoadVideo", + "pos": [ + 15.192621158458568, + -953.4844698437184 + ], + "size": [ + 255.8291015625, + 743.5855352640658 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "视频", + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + }, + "link": null + }, + { + "label": "强制帧率", + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + }, + "link": null + }, + { + "label": "自定义宽度", + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + }, + "link": null + }, + { + "label": "自定义高度", + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + }, + "link": null + }, + { + "label": "帧数读取上限", + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + }, + "link": null + }, + { + "label": "跳过前X帧", + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + }, + "link": null + }, + { + "label": "间隔", + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + } + ], + "outputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 25 + ] + }, + { + "localized_name": "帧计数", + "name": "帧计数", + "type": "INT", + "links": [] + }, + { + "localized_name": "音频", + "name": "音频", + "type": "AUDIO", + "links": null + }, + { + "localized_name": "视频信息", + "name": "视频信息", + "type": "VHS_VIDEOINFO", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "8550981384301e9bc5bfea83e5c2c75258102593", + "Node name for S&R": "VHS_LoadVideo", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "video": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1, + "format": "AnimateDiff", + "videopreview": { + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } + } + } + }, + { + "id": 18, + "type": "Fast Groups Bypasser (rgthree)", + "pos": [ + -376.83734764059477, + -2246.0800422122998 + ], + "size": [ + 306.9107980859076, + 106 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "label": "可选连接", + "localized_name": "可选连接", + "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.5.2" + } + }, + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 16, + "type": "VHS_LoadVideo", + "pos": [ + 292.2492018360191, + -885.5181747634595 + ], + "size": [ + 255.8291015625, + 736.700927734375 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "视频", + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + }, + "link": null + }, + { + "label": "强制帧率", + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + }, + "link": null + }, + { + "label": "自定义宽度", + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + }, + "link": null + }, + { + "label": "自定义高度", + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + }, + "link": null + }, + { + "label": "帧数读取上限", + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + }, + "link": null + }, + { + "label": "跳过前X帧", + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + }, + "link": null + }, + { + "label": "间隔", + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + } + ], + "outputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 24 + ] + }, + { + "localized_name": "帧计数", + "name": "帧计数", + "type": "INT", + "links": [] + }, + { + "localized_name": "音频", + "name": "音频", + "type": "AUDIO", + "links": null + }, + { + "localized_name": "视频信息", + "name": "视频信息", + "type": "VHS_VIDEOINFO", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "8550981384301e9bc5bfea83e5c2c75258102593", + "Node name for S&R": "VHS_LoadVideo", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "video": "onetotall_pose_00001.mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "format": "AnimateDiff", + "videopreview": { + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } + } + } + } + ], + "links": [ + [ + 2, + 2, + 0, + 3, + 0, + "IMAGE" + ], + [ + 3, + 4, + 0, + 5, + 0, + "IMAGE" + ], + [ + 5, + 6, + 0, + 7, + 0, + "IMAGE" + ], + [ + 11, + 5, + 0, + 1, + 0, + "IMAGE" + ], + [ + 12, + 7, + 0, + 1, + 1, + "IMAGE" + ], + [ + 15, + 8, + 0, + 2, + 0, + "IMAGE" + ], + [ + 16, + 1, + 0, + 2, + 1, + "IMAGE" + ], + [ + 18, + 11, + 0, + 10, + 1, + "IMAGE" + ], + [ + 21, + 10, + 0, + 12, + 0, + "IMAGE" + ], + [ + 24, + 16, + 0, + 11, + 1, + "IMAGE" + ], + [ + 25, + 17, + 0, + 11, + 0, + "IMAGE" + ] + ], + "extra": { + "workflowRendererVersion": "LG", + "ue_links": [], + "ds": { + "scale": 1.3109994191501273, + "offset": [ + 103.80020236119418, + 1135.7386486548944 + ] + }, + "links_added_by_ue": [] + }, + "counts": { + "saved_fields": 99, + "scalar_saved_positions": 92, + "history_objects": 7, + "null_positions": 4, + "source_nodes": 14, + "physical_edges": 11, + "source_notes": 0, + "linked_saved_fields": 0, + "frontend_only": 11, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "missing_widgets": [ + 18 + ] +} diff --git a/docs/hel-892/multivideo-document-evidence/staged-diff-check.txt b/docs/hel-892/multivideo-document-evidence/staged-diff-check.txt new file mode 100644 index 00000000..725c14ea --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/staged-diff-check.txt @@ -0,0 +1,1391 @@ +docs/hel-892/multivideo-document-evidence/python-check-initial.txt:17: new blank line at EOF. +docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py:652: trailing whitespace. ++ +docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py:856: trailing whitespace. ++ +docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py:890: trailing whitespace. ++ +docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py:922: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:41: trailing whitespace. ++ "required": { +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:65: trailing whitespace. ++ [ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:67: trailing whitespace. ++ 'hm', +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:68: trailing whitespace. ++ 'reinhard', +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:69: trailing whitespace. ++ 'mvgd', +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:70: trailing whitespace. ++ 'hm-mvgd-hm', +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:81: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:88: trailing whitespace. ++color-matcher enables color transfer across images which comes in handy for automatic +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:89: trailing whitespace. ++color-grading of photographs, paintings and film sequences as well as light-field +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:90: trailing whitespace. ++and stopmotion corrections. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:92: trailing whitespace. ++The methods behind the mappings are based on the approach from Reinhard et al., +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:93: trailing whitespace. ++the Monge-Kantorovich Linearization (MKL) as proposed by Pitie et al. and our analytical solution +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:94: trailing whitespace. ++to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with classical histogram +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:95: trailing whitespace. ++matching. As shown below our HM-MVGD-HM compound outperforms existing methods. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:99: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:109: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:113: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:128: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:130: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:145: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:154: trailing whitespace. ++ return {"required": +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:166: trailing whitespace. ++Saves an image and mask as .PNG with the mask as the alpha channel. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:194: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:207: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:255: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:280: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:283: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:286: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:327: trailing whitespace. ++ "max_resolution": ("INT", {"default": 4096}), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:412: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:420: trailing whitespace. ++ "image4": ("IMAGE",), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:427: trailing whitespace. ++Concatenates the 4 input images into a 2x2 grid. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:435: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:448: trailing whitespace. ++ "image9": ("IMAGE",), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:455: trailing whitespace. ++Concatenates the 9 input images into a 3x3 grid. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:464: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:493: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:496: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:498: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:501: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:506: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:512: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:527: trailing whitespace. ++Captures an area specified by screen coordinates. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:542: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:548: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:554: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:561: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:563: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:575: trailing whitespace. ++Captures an area specified by screen coordinates. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:590: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:597: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:603: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:606: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:608: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:620: trailing whitespace. ++Captures a frame from a webcam using CV2. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:635: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:651: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:655: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:659: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:663: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:665: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:670: trailing whitespace. ++ "image":("IMAGE",), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:698: trailing whitespace. ++Creates a new with the given text, and concatenates it to +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:699: trailing whitespace. ++either above or below the input image. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:700: trailing whitespace. ++Note that this changes the input image's height! +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:701: trailing whitespace. ++Fonts are loaded from this folder: +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:704: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:708: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:710: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:745: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:757: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:778: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:780: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:793: trailing whitespace. ++Returns width, height and batch size of the image, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:794: trailing whitespace. ++and passes it through unchanged. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:803: trailing whitespace. ++ "text": [f"{count}x{width}x{height}"]}, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:804: trailing whitespace. ++ "result": (image, width, height, count) +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:819: trailing whitespace. ++Returns latent tensor dimensions, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:820: trailing whitespace. ++and passes the latent through unchanged. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:833: trailing whitespace. ++ "text": [f"{B}x{C}x{T}x{H}x{W}"]}, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:834: trailing whitespace. ++ "result": (latent, B, C, T, H, W) +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:836: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:838: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:843: trailing whitespace. ++Repeats each image in a batch by the specified number of times. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:844: trailing whitespace. ++Example batch of 5 images: 0, 1 ,2, 3, 4 +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:845: trailing whitespace. ++with repeats 2 becomes batch of 10 images: 0, 0, 1, 1, 2, 2, 3, 3, 4, 4 +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:859: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:863: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:868: trailing whitespace. ++ mask = torch.zeros((total_count, images.shape[1], images.shape[2]), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:875: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:887: trailing whitespace. ++Same as ComfyUI native model upscaling node, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:891: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:895: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:899: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:908: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:916: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:918: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:924: trailing whitespace. ++Normalize the images to be in the range [-1, 1] +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:934: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:941: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:946: trailing whitespace. ++Remaps the image values to the specified range. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:948: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:960: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:964: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:970: trailing whitespace. ++Splits image channels into images where the selected channel +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:971: trailing whitespace. ++is repeated for all channels, and the alpha as a mask. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:973: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:986: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:990: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:994: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1000: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1006: trailing whitespace. ++Merges channel data into an image. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1008: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1072: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1094: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1129: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1136: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1197: trailing whitespace. ++ reference_mask.unsqueeze(1), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1206: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1218: trailing whitespace. ++ latent_mask.unsqueeze(1), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1219: trailing whitespace. ++ size=(pad_image.shape[1], pad_image.shape[2]), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1242: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1261: trailing whitespace. ++ "mask": ("MASK",), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1270: trailing whitespace. ++Preview an image or a mask, when both inputs are used +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1272: trailing whitespace. ++with pass_through on the preview is disabled and the +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1273: trailing whitespace. ++composite is returned from the composite slot instead, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1274: trailing whitespace. ++this allows for the preview to be passed for video combine +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1337: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1354: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1355: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1364: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1391: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1409: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1410: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1420: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1440: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1443: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1446: trailing whitespace. ++def transition_images(images_1, images_2, alpha, transition_type, blur_radius, reverse): +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1451: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1549: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1562: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1588: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1591: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1614: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1624: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1638: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1646: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1650: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1681: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1733: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1744: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1763: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1764: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1788: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1790: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1801: trailing whitespace. ++Helper node for video generation extension +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1802: trailing whitespace. ++First input source and overlap amount to get the starting frames for the extension. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1818: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1819: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1853: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1868: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1884: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1885: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1900: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1902: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1909: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1911: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1927: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1928: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1932: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1939: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1942: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1959: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1977: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1978: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1986: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:1992: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2000: trailing whitespace. ++ return (input_images, empty_indices_string,) +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2004: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2006: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2021: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2022: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2024: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2027: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2030: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2033: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2037: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2057: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2063: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2066: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2069: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2073: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2082: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2090: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2093: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2097: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2116: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2119: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2129: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2131: trailing whitespace. ++ padded_batch = torch.ones((total_frames, H, W, C), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2132: trailing whitespace. ++ dtype=images.dtype, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2135: trailing whitespace. ++ mask = torch.zeros((total_frames, H, W), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2136: trailing whitespace. ++ dtype=images.dtype, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2138: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2147: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2150: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2154: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2159: trailing whitespace. ++Replaces the images in a batch, starting from the specified start index, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2175: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2176: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2180: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2187: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2191: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2196: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2207: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2212: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2214: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2217: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2231: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2232: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2244: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2256: trailing whitespace. ++Creates an image batch from multiple images. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2257: trailing whitespace. ++You can set how many inputs the node has, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2325: trailing whitespace. ++Add blends multiple images together. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2326: trailing whitespace. ++You can set how many inputs the node has, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2342: trailing whitespace. ++ return (image,) +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2351: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2373: trailing whitespace. ++Creates an image from multiple images. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2374: trailing whitespace. ++You can set how many inputs the node has, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2427: trailing whitespace. ++ if pil_images: +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2472: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2502: trailing whitespace. ++Due to ComfyUI frontend changes, this node should no longer be used, please check the +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2503: trailing whitespace. ++v2 of the node. This node is only kept to not completely break older workflows. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2507: trailing whitespace. ++ def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2517: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2536: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2540: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2580: trailing whitespace. ++Resizes the image to the specified width and height. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2583: trailing whitespace. ++Keep proportions keeps the aspect ratio of the image, by +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2584: trailing whitespace. ++highest dimension. +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2598: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2608: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2805: trailing whitespace. ++import pathlib +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2821: trailing whitespace. ++ "mask_channel": (s._color_channels, {"tooltip": "Channel to use for the mask output"}), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2836: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2855: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2885: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2890: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2900: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2906: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2914: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2942: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2970: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2973: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2994: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:2996: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3000: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3003: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3005: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3008: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3011: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3021: trailing whitespace. ++ "keep_aspect_ratio": (["crop", "pad", "stretch",],), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3036: trailing whitespace. ++ def load_images(self, folder, width, height, image_load_cap, start_index, keep_aspect_ratio, include_subfolders=False): +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3041: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3080: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3087: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3088: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3092: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3097: trailing whitespace. ++ mask = torch.nn.functional.interpolate(mask.unsqueeze(0).unsqueeze(0), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3098: trailing whitespace. ++ size=(height, width), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3099: trailing whitespace. ++ mode='bilinear', +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3103: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3112: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3127: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3171: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3177: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3184: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3249: trailing whitespace. ++ "caption": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3307: trailing whitespace. ++ return file, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3308: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3320: trailing whitespace. ++ "string": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3340: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3358: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3378: trailing whitespace. ++ def preview(self, image, format, quality): +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3386: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3388: trailing whitespace. ++ "ui": {"bg_image": [img_base64]}, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3391: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3403: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3510: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3529: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3536: trailing whitespace. ++ "mask": ("MASK", ), +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3549: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3552: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3557: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3561: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3563: trailing whitespace. ++ crop = image[b:b+1, y_min:y_max+1, x_min:x_max+1, :] +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3565: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3568: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3571: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3572: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3578: trailing whitespace. ++ { +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3596: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3606: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3625: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3633: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3647: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3653: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3665: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3669: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3674: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3680: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3683: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3696: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3735: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3755: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3761: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3896: trailing whitespace. ++ mask, +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3924: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3931: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3936: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3939: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py:3971: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:59: trailing whitespace. ++ this.addInput(`image_${i}`, this._type, {shape: 7}); +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:61: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:89: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:103: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:112: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:121: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:154: trailing whitespace. ++ this.outputs[2]["label"] = "height" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:163: trailing whitespace. ++ this.outputs[2]["label"] = values[2] + " height" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:164: trailing whitespace. ++ this.outputs[3]["label"] = values[0] + " count" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:168: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:176: trailing whitespace. ++ this.outputs[2]["label"] = "height" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:188: trailing whitespace. ++ this.outputs[2]["label"] = values[2] + " height" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:189: trailing whitespace. ++ this.outputs[3]["label"] = values[0] + " count" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:201: trailing whitespace. ++ this.outputs[2]["label"] = "height" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:213: trailing whitespace. ++ this.outputs[2]["label"] = values[1] + " channels" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:214: trailing whitespace. ++ this.outputs[3]["label"] = values[2] + " frames" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:215: trailing whitespace. ++ this.outputs[4]["label"] = values[3] + " height" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:216: trailing whitespace. ++ this.outputs[5]["label"] = values[4] + " width" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:242: trailing whitespace. ++ this.outputs[4]["label"] = "freemem_after" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:250: trailing whitespace. ++ this.outputs[4]["label"] = values[1] + " freemem_after" +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:259: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:268: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:290: space before tab in indent. ++ let endRangeHz; +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:293: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:308: trailing whitespace. ++ const frequencyBinWidth = audioContext.sampleRate / analyser.fftSize; +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:319: space before tab in indent. ++ smoothedSoundLevel = (average * (1 - smoothingFactor)) + (smoothedSoundLevel * smoothingFactor); +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:324: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:333: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:347: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:351: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:361: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:376: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:379: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:395: trailing whitespace. ++ +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:396: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js:397: trailing whitespace. ++ +docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py:692: trailing whitespace. ++ +docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py:898: trailing whitespace. ++ +docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py:932: trailing whitespace. ++ +docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py:964: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:41: trailing whitespace. ++ "required": { +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:65: trailing whitespace. ++ [ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:67: trailing whitespace. ++ 'hm', +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:68: trailing whitespace. ++ 'reinhard', +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:69: trailing whitespace. ++ 'mvgd', +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:70: trailing whitespace. ++ 'hm-mvgd-hm', +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:81: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:88: trailing whitespace. ++color-matcher enables color transfer across images which comes in handy for automatic +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:89: trailing whitespace. ++color-grading of photographs, paintings and film sequences as well as light-field +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:90: trailing whitespace. ++and stopmotion corrections. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:92: trailing whitespace. ++The methods behind the mappings are based on the approach from Reinhard et al., +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:93: trailing whitespace. ++the Monge-Kantorovich Linearization (MKL) as proposed by Pitie et al. and our analytical solution +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:94: trailing whitespace. ++to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with classical histogram +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:95: trailing whitespace. ++matching. As shown below our HM-MVGD-HM compound outperforms existing methods. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:99: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:109: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:113: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:128: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:130: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:145: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:154: trailing whitespace. ++ return {"required": +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:166: trailing whitespace. ++Saves an image and mask as .PNG with the mask as the alpha channel. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:194: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:207: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:255: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:280: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:283: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:286: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:327: trailing whitespace. ++ "max_resolution": ("INT", {"default": 4096}), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:412: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:420: trailing whitespace. ++ "image4": ("IMAGE",), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:427: trailing whitespace. ++Concatenates the 4 input images into a 2x2 grid. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:435: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:448: trailing whitespace. ++ "image9": ("IMAGE",), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:455: trailing whitespace. ++Concatenates the 9 input images into a 3x3 grid. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:464: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:493: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:496: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:498: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:501: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:506: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:512: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:527: trailing whitespace. ++Captures an area specified by screen coordinates. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:542: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:548: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:554: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:561: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:563: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:575: trailing whitespace. ++Captures an area specified by screen coordinates. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:590: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:597: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:603: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:606: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:608: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:620: trailing whitespace. ++Captures a frame from a webcam using CV2. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:635: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:651: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:655: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:659: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:663: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:665: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:670: trailing whitespace. ++ "image":("IMAGE",), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:698: trailing whitespace. ++Creates a new with the given text, and concatenates it to +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:699: trailing whitespace. ++either above or below the input image. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:700: trailing whitespace. ++Note that this changes the input image's height! +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:701: trailing whitespace. ++Fonts are loaded from this folder: +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:704: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:708: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:710: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:745: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:757: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:778: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:780: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:793: trailing whitespace. ++Returns width, height and batch size of the image, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:794: trailing whitespace. ++and passes it through unchanged. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:803: trailing whitespace. ++ "text": [f"{count}x{width}x{height}"]}, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:804: trailing whitespace. ++ "result": (image, width, height, count) +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:819: trailing whitespace. ++Returns latent tensor dimensions, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:820: trailing whitespace. ++and passes the latent through unchanged. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:833: trailing whitespace. ++ "text": [f"{B}x{C}x{T}x{H}x{W}"]}, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:834: trailing whitespace. ++ "result": (latent, B, C, T, H, W) +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:836: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:838: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:843: trailing whitespace. ++Repeats each image in a batch by the specified number of times. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:844: trailing whitespace. ++Example batch of 5 images: 0, 1 ,2, 3, 4 +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:845: trailing whitespace. ++with repeats 2 becomes batch of 10 images: 0, 0, 1, 1, 2, 2, 3, 3, 4, 4 +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:859: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:863: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:868: trailing whitespace. ++ mask = torch.zeros((total_count, images.shape[1], images.shape[2]), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:875: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:887: trailing whitespace. ++Same as ComfyUI native model upscaling node, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:891: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:895: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:899: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:908: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:916: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:918: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:924: trailing whitespace. ++Normalize the images to be in the range [-1, 1] +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:934: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:941: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:946: trailing whitespace. ++Remaps the image values to the specified range. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:948: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:960: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:964: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:970: trailing whitespace. ++Splits image channels into images where the selected channel +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:971: trailing whitespace. ++is repeated for all channels, and the alpha as a mask. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:973: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:986: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:990: trailing whitespace. ++ return {"required": { +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:994: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1000: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1006: trailing whitespace. ++Merges channel data into an image. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1008: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1072: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1094: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1129: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1136: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1197: trailing whitespace. ++ reference_mask.unsqueeze(1), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1206: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1218: trailing whitespace. ++ latent_mask.unsqueeze(1), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1219: trailing whitespace. ++ size=(pad_image.shape[1], pad_image.shape[2]), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1242: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1261: trailing whitespace. ++ "mask": ("MASK",), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1270: trailing whitespace. ++Preview an image or a mask, when both inputs are used +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1272: trailing whitespace. ++with pass_through on the preview is disabled and the +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1273: trailing whitespace. ++composite is returned from the composite slot instead, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1274: trailing whitespace. ++this allows for the preview to be passed for video combine +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1337: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1354: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1355: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1364: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1391: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1409: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1410: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1420: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1440: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1443: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1446: trailing whitespace. ++def transition_images(images_1, images_2, alpha, transition_type, blur_radius, reverse): +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1451: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1549: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1562: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1588: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1591: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1614: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1624: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1638: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1646: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1650: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1681: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1733: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1744: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1763: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1764: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1788: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1790: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1801: trailing whitespace. ++Helper node for video generation extension +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1802: trailing whitespace. ++First input source and overlap amount to get the starting frames for the extension. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1818: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1819: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1853: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1868: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1884: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1885: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1900: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1902: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1909: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1911: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1927: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1928: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1932: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1939: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1942: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1959: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1977: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1978: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1986: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:1992: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2000: trailing whitespace. ++ return (input_images, empty_indices_string,) +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2004: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2006: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2021: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2022: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2024: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2027: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2030: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2033: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2037: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2057: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2063: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2066: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2069: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2073: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2082: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2090: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2093: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2097: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2116: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2119: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2129: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2131: trailing whitespace. ++ padded_batch = torch.ones((total_frames, H, W, C), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2132: trailing whitespace. ++ dtype=images.dtype, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2135: trailing whitespace. ++ mask = torch.zeros((total_frames, H, W), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2136: trailing whitespace. ++ dtype=images.dtype, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2138: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2147: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2150: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2154: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2159: trailing whitespace. ++Replaces the images in a batch, starting from the specified start index, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2175: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2176: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2180: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2187: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2191: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2196: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2207: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2212: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2214: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2217: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2231: trailing whitespace. ++ } +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2232: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2244: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2256: trailing whitespace. ++Creates an image batch from multiple images. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2257: trailing whitespace. ++You can set how many inputs the node has, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2325: trailing whitespace. ++Add blends multiple images together. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2326: trailing whitespace. ++You can set how many inputs the node has, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2342: trailing whitespace. ++ return (image,) +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2351: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2373: trailing whitespace. ++Creates an image from multiple images. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2374: trailing whitespace. ++You can set how many inputs the node has, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2427: trailing whitespace. ++ if pil_images: +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2472: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2502: trailing whitespace. ++Due to ComfyUI frontend changes, this node should no longer be used, please check the +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2503: trailing whitespace. ++v2 of the node. This node is only kept to not completely break older workflows. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2507: trailing whitespace. ++ def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2517: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2536: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2540: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2580: trailing whitespace. ++Resizes the image to the specified width and height. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2583: trailing whitespace. ++Keep proportions keeps the aspect ratio of the image, by +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2584: trailing whitespace. ++highest dimension. +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2598: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2608: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2805: trailing whitespace. ++import pathlib +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2821: trailing whitespace. ++ "mask_channel": (s._color_channels, {"tooltip": "Channel to use for the mask output"}), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2836: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2855: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2885: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2890: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2900: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2906: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2914: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2942: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2968: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2971: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2992: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2994: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:2998: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3001: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3003: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3006: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3009: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3019: trailing whitespace. ++ "keep_aspect_ratio": (["crop", "pad", "stretch",],), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3037: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3076: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3083: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3084: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3088: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3093: trailing whitespace. ++ mask = torch.nn.functional.interpolate(mask.unsqueeze(0).unsqueeze(0), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3094: trailing whitespace. ++ size=(height, width), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3095: trailing whitespace. ++ mode='bilinear', +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3099: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3108: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3123: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3167: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3173: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3180: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3185: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3196: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3201: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3205: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3208: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3215: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3218: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3223: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3226: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3245: trailing whitespace. ++ "caption": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3303: trailing whitespace. ++ return file, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3304: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3316: trailing whitespace. ++ "string": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3336: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3352: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3372: trailing whitespace. ++ def preview(self, image, format, quality): +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3380: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3382: trailing whitespace. ++ "ui": {"bg_image": [img_base64]}, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3385: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3397: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3504: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3523: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3530: trailing whitespace. ++ "mask": ("MASK", ), +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3543: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3546: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3551: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3555: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3557: trailing whitespace. ++ crop = image[b:b+1, y_min:y_max+1, x_min:x_max+1, :] +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3559: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3562: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3565: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3566: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3572: trailing whitespace. ++ { +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3590: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3600: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3619: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3627: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3641: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3647: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3659: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3663: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3668: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3674: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3677: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3690: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3729: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3749: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3755: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3890: trailing whitespace. ++ mask, +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3918: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3925: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3930: trailing whitespace. ++ +docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py:3933: trailing whitespace. ++ diff --git a/docs/hel-892/multivideo-document-evidence/tested-files.json b/docs/hel-892/multivideo-document-evidence/tested-files.json new file mode 100644 index 00000000..7af5359d --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/tested-files.json @@ -0,0 +1,222 @@ +{ + "count": 54, + "scope": "实际修改的自写Python/JS、生产JSON、完整中文、上批计数勘误、准确文本/树元数据/来源索引;派生报告日志不纳入受测代码摘要", + "files": [ + { + "path": "calliope-backend/src/calliope/comfyui/fixed_document.py", + "sha256": "eeb2b38401b9254b3f4b4122db3d9adb43fe96ad5b6a7a1c716dee67ee3d78d1" + }, + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.json", + "sha256": "c7d7161e654944bcd56cb76bba00368aa2a271b5ab09518b2355cc0ac7e837b6" + }, + { + "path": "calliope-backend/tests/test_background_fixed_document.py", + "sha256": "2d35b485a3dd9ed5721b8f69a8caafd718f29ac8c0e4545df311346a8e1900de" + }, + { + "path": "calliope-backend/tests/test_birefnet_fixed_document.py", + "sha256": "404fa13deb545b8662a2e5cc41d6b8be64fd81a7be28576d060b54a7722f222b" + }, + { + "path": "calliope-backend/tests/test_concat_fixed_document.py", + "sha256": "57b682c17070f1cb67e6619e4431e86df200b17c4db4485a4aea8a3a21ac640c" + }, + { + "path": "calliope-backend/tests/test_controlnet_fixed_document.py", + "sha256": "cce5f459b3e6a35e40c4b4f5ceb57314bde4382d5feb01df43be74ba8a673554" + }, + { + "path": "calliope-backend/tests/test_frames_fixed_document.py", + "sha256": "804f3b74e6022ce0de80486c7bcf7bf8285c58c808f0ad358a60b6d6705a999e" + }, + { + "path": "calliope-backend/tests/test_gemma_fixed_document.py", + "sha256": "87d11b332894651be31529f49dd5e6c819359f0b926220c72d31d9eb1bc29f36" + }, + { + "path": "calliope-backend/tests/test_gif_images_fixed_document.py", + "sha256": "ab8c84f805339df8a434c2d875a6ead5e952d077ac3c1122657b6ca18f3b60e6" + }, + { + "path": "calliope-backend/tests/test_grid_fixed_document.py", + "sha256": "1ec5c6fccba2a36704f5c2c315a9ed2c086046caf87b5dd1e8ab8ed800d01296" + }, + { + "path": "calliope-backend/tests/test_latent_fixed_document.py", + "sha256": "5052843812dede1593b7f2a39a1918a24306362014a530f09d4f63e1cdcd3a74" + }, + { + "path": "calliope-backend/tests/test_multivideo_fixed_document.py", + "sha256": "8d29b02f04672fd10cf98a8415dbd014becd0b6e7cec441156206aa2af6a0295" + }, + { + "path": "calliope-backend/tests/test_nlf_fixed_document.py", + "sha256": "93eacd3d23d3643e09d8e1e9f65246202f1f4d2a2df9c8bd1a25d794a56a10e9" + }, + { + "path": "calliope-backend/tests/test_openpose_fixed_document.py", + "sha256": "2e86af85f33f4b31a7e0203064e5b4487f0307abb1c80eab41711d8b3b36d822" + }, + { + "path": "calliope-backend/tests/test_reverse_fixed_document.py", + "sha256": "303cdb457f34c0a7ee7d28617224efb1267b5c3938ff24bf89b09bf3efc5aa71" + }, + { + "path": "calliope-backend/tests/test_sdpose_fixed_document.py", + "sha256": "73755ad5ac62ef181be639081b1073baeefdee4e02aa149e594f13db0dd3629f" + }, + { + "path": "calliope-backend/tests/test_watermark_fixed_document.py", + "sha256": "e8412db7ffb8c69418c56fd0b4fe580e90620d6bead0ecc47ba6de7d4319a159" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/build_definition.py", + "sha256": "9ebd99750a9f83c332c09456b3ce760ca6eaa71966ea5075f047c573cbc0a03f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/check_code.py", + "sha256": "d98de849aba2ec2b5f3d98ae58f897a0c9b3d15e4cc171d97cd0baceccc44c0a" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/fetch_sources.py", + "sha256": "4e99f4e6cca060362f732cf5444739f87012e20fc18ef9a1a9b6bf7eb5c33d6f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/rebuild.py", + "sha256": "c6e86d0199b68dae008dc1928b7b904f544f6100e9026adcdd66d6f99e24663c" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/recompute.py", + "sha256": "d3de3b67138cd9ba188314e90addf1a86345ed032c29101bac23b422e4f9736a" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/render_report.py", + "sha256": "34cac24f8311bd32672ac62a3341792037aca17d2385820793f48188ec51d45f" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/repeat.py", + "sha256": "b2587d7684fafa13f096387a64f3d921bbde332200ac95fa1411e75b0bf50818" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/request_counts.py", + "sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020" + }, + { + "path": "docs/hel-892/multivideo-document-evidence/verify_sources.py", + "sha256": "0eec6e80adb2d3a2a1ebe33a4af65ece113d39ce44ed906b8316acf34cd19566" + }, + { + "path": "docs/hel-892/multivideo-reference/combine-tree.json", + "sha256": "f97f208aa7f2ae99f186da6c576c9295aa88889a81b8030dcdbea965b3d53a2f" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/combine____init__.py", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__video_formats__h264-mp4.json", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__videohelpersuite__utils.py", + "sha256": "737ad04961da91c52c1fc918c427b7683fdbc209f8a767b173cf2a9331f4cc71" + }, + { + "path": "docs/hel-892/multivideo-reference/combine__web__js__VHS.core.js", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad" + }, + { + "path": "docs/hel-892/multivideo-reference/concat-tree.json", + "sha256": "fc3c4fba2513777a62f42889c8a9d70720d415daea7f3d2ba7214c76137b089a" + }, + { + "path": "docs/hel-892/multivideo-reference/concat__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/concat____init__.py", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c" + }, + { + "path": "docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687" + }, + { + "path": "docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7" + }, + { + "path": "docs/hel-892/multivideo-reference/load-tree.json", + "sha256": "9ca31cdd8320e2247affad084f87c8ebb35c75b2b9c1d2af24b51eb77d321207" + }, + { + "path": "docs/hel-892/multivideo-reference/load__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/load____init__.py", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f" + }, + { + "path": "docs/hel-892/multivideo-reference/load__videohelpersuite__load_video_nodes.py", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963" + }, + { + "path": "docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442" + }, + { + "path": "docs/hel-892/multivideo-reference/load__videohelpersuite__utils.py", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504" + }, + { + "path": "docs/hel-892/multivideo-reference/load__web__js__VHS.core.js", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97" + }, + { + "path": "docs/hel-892/multivideo-reference/resize-tree.json", + "sha256": "e76f5f71376584fab8bf6fe5e8cc8a5d990980915200ae3de995cc85272d0fb5" + }, + { + "path": "docs/hel-892/multivideo-reference/resize__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/multivideo-reference/resize____init__.py", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c" + }, + { + "path": "docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee" + }, + { + "path": "docs/hel-892/multivideo-reference/sources.json", + "sha256": "cf42363f97b097f3a4f51ae04dc29503197eb8c193f6fdc9e0eaeffe455a5cc4" + }, + { + "path": "docs/hel-892/watermark-document-evidence/delivery-summary.md", + "sha256": "724702424446499a32b0fe09acfe8fb78405c54d49b68c76b944a9f548dc9d22" + }, + { + "path": "docs/hel-892/多视频分屏固定参考中文说明.md", + "sha256": "6aadf56aeca6250c228fa16173e34eb043036c3676cc74d42022318c984f101a" + }, + { + "path": "e2e/multivideo-document.mjs", + "sha256": "fd660572061341a073679c4debf5e90bd01eec043771ac584ed1b8d2539b2318" + }, + { + "path": "e2e/run-multivideo-document.py", + "sha256": "7b8505e2d03ebd104298a51eb955359884ffda56725078be71e18f65255f299b" + } + ] +} diff --git a/docs/hel-892/multivideo-document-evidence/validation-commands.txt b/docs/hel-892/multivideo-document-evidence/validation-commands.txt new file mode 100644 index 00000000..45eeaf82 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/validation-commands.txt @@ -0,0 +1,17 @@ +# 仓库根执行;Python3.11、既有锁定依赖,无新增依赖。仅本地,不加载上游插件/媒体。 +uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline +npm ci --prefix calliope-web --ignore-scripts --offline +python3 docs/hel-892/multivideo-document-evidence/verify_sources.py +python3 docs/hel-892/multivideo-document-evidence/rebuild.py +uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py +uv run --project calliope-backend --offline pytest calliope-backend/tests/test_multivideo_fixed_document.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_watermark_fixed_document.py::test_exact_graph_semantics_and_old_24_objects calliope-backend/tests/test_birefnet_fixed_document.py::test_actual_graph_counts_pointers_notes_unknowns_and_old_objects calliope-backend/tests/test_latent_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_frames_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_concat_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_gif_images_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation calliope-backend/tests/test_grid_fixed_document.py::test_only_two_reviews_change_and_all_old_blocks_preserved calliope-backend/tests/test_gemma_fixed_document.py::test_real_document_and_frozen_old_thirteen_blocks calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent calliope-backend/tests/test_controlnet_fixed_document.py::test_other_documents_and_block_swaps -q --disable-warnings +python3 docs/hel-892/multivideo-document-evidence/check_code.py +uv build --project calliope-backend --offline +uv run --project calliope-backend --offline python docs/hel-892/multivideo-document-evidence/recompute.py +python3 docs/hel-892/multivideo-document-evidence/repeat.py +node --check e2e/multivideo-document.mjs +LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-multivideo-document.py +# runner在finally停止两个服务并写service-stop.json;浏览产物 .local-evidence/multivideo-document/browser,拷贝到此证据目录后执行request_counts.py。 +python3 docs/hel-892/multivideo-document-evidence/request_counts.py +# 可选联网重取19准确Git文本+4树元数据(不执行上游、不下载媒体): +# python3 docs/hel-892/multivideo-document-evidence/fetch_sources.py diff --git a/docs/hel-892/multivideo-document-evidence/verify_sources.py b/docs/hel-892/multivideo-document-evidence/verify_sources.py new file mode 100644 index 00000000..4e113188 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/verify_sources.py @@ -0,0 +1,64 @@ +"""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"] + 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=[18], + ) + (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/multivideo-reference", + git_texts=len(entries), + registry_texts=0, + tree_metadata_json=4, + unique_commits=4, + 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, 4 tree metadata JSON, " + f"{len(b['sources'])} citations" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/multivideo-document-evidence/visual-review.txt b/docs/hel-892/multivideo-document-evidence/visual-review.txt new file mode 100644 index 00000000..68d5e896 --- /dev/null +++ b/docs/hel-892/multivideo-document-evidence/visual-review.txt @@ -0,0 +1 @@ +实际目验最终1440-15-default、390-15-default、1440-15-branch-flow、1440-15-12-save_output四张截图。两屏默认中文用途明确缺第一路/旁路/无音频/temp/历史缓存;展开物理分支和保存目录条件及引用可读,无横向溢出。未改Drawer或样式;无媒体预览请求。 diff --git a/docs/hel-892/multivideo-reference/combine-tree.json b/docs/hel-892/multivideo-reference/combine-tree.json new file mode 100644 index 00000000..61b7e5e4 --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine-tree.json @@ -0,0 +1,405 @@ +{ + "sha": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "tree": [ + { + "path": ".github", + "mode": "040000", + "type": "tree", + "sha": "7a7002793ebbe7911dded77df496f4b141a46661", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/7a7002793ebbe7911dded77df496f4b141a46661" + }, + { + "path": ".github/workflows", + "mode": "040000", + "type": "tree", + "sha": "a0920d307e4ff5f6199f39cf7cd22e853ed9c139", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/a0920d307e4ff5f6199f39cf7cd22e853ed9c139" + }, + { + "path": ".github/workflows/publish.yml", + "mode": "100644", + "type": "blob", + "sha": "27bcdb11695ea19286da34cd5f36cf75155a4dbb", + "size": 640, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/27bcdb11695ea19286da34cd5f36cf75155a4dbb" + }, + { + "path": ".gitignore", + "mode": "100644", + "type": "blob", + "sha": "9b5379e8f93da3909706b0a7d37f5c8ab5e2a2a5", + "size": 3101, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/9b5379e8f93da3909706b0a7d37f5c8ab5e2a2a5" + }, + { + "path": "LICENSE", + "mode": "100644", + "type": "blob", + "sha": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "size": 35149, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "path": "README.md", + "mode": "100644", + "type": "blob", + "sha": "753fcecf9979b40b2427869c6ad5bed1b61df482", + "size": 8877, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/753fcecf9979b40b2427869c6ad5bed1b61df482" + }, + { + "path": "__init__.py", + "mode": "100755", + "type": "blob", + "sha": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "size": 398, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/9fa995f0ac7e296a62bcba9df68b5250a0f7d041" + }, + { + "path": "pyproject.toml", + "mode": "100644", + "type": "blob", + "sha": "c3aebf150940a23a12a128307b67a7e514cc66c3", + "size": 426, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/c3aebf150940a23a12a128307b67a7e514cc66c3" + }, + { + "path": "requirements.txt", + "mode": "100644", + "type": "blob", + "sha": "4fa34aa21b85c4b974e2a2b6891eae5fd6dd4164", + "size": 29, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/4fa34aa21b85c4b974e2a2b6891eae5fd6dd4164" + }, + { + "path": "testframework", + "mode": "040000", + "type": "tree", + "sha": "bb2265eb056290f5eb4ac77976b7adef7a079657", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/bb2265eb056290f5eb4ac77976b7adef7a079657" + }, + { + "path": "testframework/README.md", + "mode": "100644", + "type": "blob", + "sha": "93cd503563080c9c7d785d419bef7dddc4c11cd8", + "size": 466, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/93cd503563080c9c7d785d419bef7dddc4c11cd8" + }, + { + "path": "testframework/__init__.py", + "mode": "100755", + "type": "blob", + "sha": "c75b11c164596ef873898dd843700c7164cc0932", + "size": 184, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/c75b11c164596ef873898dd843700c7164cc0932" + }, + { + "path": "testframework/server.py", + "mode": "100644", + "type": "blob", + "sha": "a9c20ea3eab31bab288d6089a89410ff409d43ad", + "size": 2836, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/a9c20ea3eab31bab288d6089a89410ff409d43ad" + }, + { + "path": "testframework/web", + "mode": "040000", + "type": "tree", + "sha": "de3d7b59f8293627b1575ec667567a8264ea50c1", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/de3d7b59f8293627b1575ec667567a8264ea50c1" + }, + { + "path": "testframework/web/js", + "mode": "040000", + "type": "tree", + "sha": "4b9af1095fe8c9e63407f660dcde75a27240ad6b", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/4b9af1095fe8c9e63407f660dcde75a27240ad6b" + }, + { + "path": "testframework/web/js/testRunner.js", + "mode": "100644", + "type": "blob", + "sha": "fd5b9da9c82ef1c3024a4c54f316b6b69e14fc8b", + "size": 2981, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/fd5b9da9c82ef1c3024a4c54f316b6b69e14fc8b" + }, + { + "path": "tests", + "mode": "040000", + "type": "tree", + "sha": "0f83be34e8b9ea4a09c5025a3753d4b5a97b06de", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/0f83be34e8b9ea4a09c5025a3753d4b5a97b06de" + }, + { + "path": "tests/README.md", + "mode": "100644", + "type": "blob", + "sha": "ec025a7d169c7783f34523c63a0a6ae9a2e00fdb", + "size": 140, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/ec025a7d169c7783f34523c63a0a6ae9a2e00fdb" + }, + { + "path": "tests/batch4x4.json", + "mode": "100644", + "type": "blob", + "sha": "34b9647329642a9e5ca233a60b8bbf2ca8f72aca", + "size": 10236, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/34b9647329642a9e5ca233a60b8bbf2ca8f72aca" + }, + { + "path": "tests/converted-format-input.json", + "mode": "100644", + "type": "blob", + "sha": "e9722580df540b89a4b9185260a8de180ddd63aa", + "size": 4514, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/e9722580df540b89a4b9185260a8de180ddd63aa" + }, + { + "path": "tests/converted-input.json", + "mode": "100644", + "type": "blob", + "sha": "41a93a049ea95ea9ddda92ed3a5152b55581938f", + "size": 5917, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/41a93a049ea95ea9ddda92ed3a5152b55581938f" + }, + { + "path": "tests/loop.json", + "mode": "100644", + "type": "blob", + "sha": "aa5dd4ecdaac29d04b71dbf3bbc8349f2d1210af", + "size": 3643, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/aa5dd4ecdaac29d04b71dbf3bbc8349f2d1210af" + }, + { + "path": "tests/old-vae-conversion.json", + "mode": "100644", + "type": "blob", + "sha": "70dcd4f4dc0cbac5bfdf5cb38cd39a39cfbf0592", + "size": 4464, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/70dcd4f4dc0cbac5bfdf5cb38cd39a39cfbf0592" + }, + { + "path": "tests/simple.json", + "mode": "100644", + "type": "blob", + "sha": "4d7f8ddd68a24cc90519ecd127daae9d8ab81b85", + "size": 2820, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/4d7f8ddd68a24cc90519ecd127daae9d8ab81b85" + }, + { + "path": "video_formats", + "mode": "040000", + "type": "tree", + "sha": "26cd6094db14a90c2a11943243b19c8e640b888e", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/26cd6094db14a90c2a11943243b19c8e640b888e" + }, + { + "path": "video_formats/16bit-png.json", + "mode": "100644", + "type": "blob", + "sha": "b768bdbcfe8950cb7bde37d02444f0191ad29f51", + "size": 139, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/b768bdbcfe8950cb7bde37d02444f0191ad29f51" + }, + { + "path": "video_formats/8bit-png.json", + "mode": "100644", + "type": "blob", + "sha": "88b27a75f9c979f18979ec46da8c8843a82e0759", + "size": 75, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/88b27a75f9c979f18979ec46da8c8843a82e0759" + }, + { + "path": "video_formats/ProRes.json", + "mode": "100644", + "type": "blob", + "sha": "1cc7a33d4f8d50cea0702d83734cf24ef6680f4b", + "size": 276, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/1cc7a33d4f8d50cea0702d83734cf24ef6680f4b" + }, + { + "path": "video_formats/av1-webm.json", + "mode": "100644", + "type": "blob", + "sha": "adb90cc142c9ab19b98db8e57a9a2bc4759d5368", + "size": 582, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/adb90cc142c9ab19b98db8e57a9a2bc4759d5368" + }, + { + "path": "video_formats/ffmpeg-gif.json", + "mode": "100644", + "type": "blob", + "sha": "3ca0865033c7dabc06176c737652f375e7badb27", + "size": 366, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/3ca0865033c7dabc06176c737652f375e7badb27" + }, + { + "path": "video_formats/gifski.json", + "mode": "100644", + "type": "blob", + "sha": "2f89447568b659678efafb3b2c7919e762600ede", + "size": 197, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/2f89447568b659678efafb3b2c7919e762600ede" + }, + { + "path": "video_formats/h264-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "c591b5b6c4604276d86a6b6bd453cf44fb74566d", + "size": 542, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/c591b5b6c4604276d86a6b6bd453cf44fb74566d" + }, + { + "path": "video_formats/h265-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "02f4475bac1c8081637d9f026a34581939ade004", + "size": 568, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/02f4475bac1c8081637d9f026a34581939ade004" + }, + { + "path": "video_formats/nvenc_h264-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "85c9fb8ec13bd7be95b271a7b9a38f63dcee88b8", + "size": 408, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/85c9fb8ec13bd7be95b271a7b9a38f63dcee88b8" + }, + { + "path": "video_formats/nvenc_hevc-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "269d51ad3529a3bb8378d04d8660e52e7268e6d4", + "size": 433, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/269d51ad3529a3bb8378d04d8660e52e7268e6d4" + }, + { + "path": "video_formats/webm.json", + "mode": "100644", + "type": "blob", + "sha": "fcf0c47e07059409a8a891b564c8e7177d015a6a", + "size": 483, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/fcf0c47e07059409a8a891b564c8e7177d015a6a" + }, + { + "path": "videohelpersuite", + "mode": "040000", + "type": "tree", + "sha": "03c696abd6ae27f56162285f0270aa93b6b73cab", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/03c696abd6ae27f56162285f0270aa93b6b73cab" + }, + { + "path": "videohelpersuite/batched_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "624bb84f73cce1d8e51abf4fef0b80367ad4b9a3", + "size": 1790, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/624bb84f73cce1d8e51abf4fef0b80367ad4b9a3" + }, + { + "path": "videohelpersuite/documentation.py", + "mode": "100644", + "type": "blob", + "sha": "857de6c6a5b4a3917f49d0b1c5c142f274203f22", + "size": 43805, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/857de6c6a5b4a3917f49d0b1c5c142f274203f22" + }, + { + "path": "videohelpersuite/image_latent_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "62b4e3e6452b51b42e3e49852d27a1bb9921edc2", + "size": 19039, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/62b4e3e6452b51b42e3e49852d27a1bb9921edc2" + }, + { + "path": "videohelpersuite/latent_preview.py", + "mode": "100644", + "type": "blob", + "sha": "ff754ffc3e7c2cd8788f37d8190d7dc4a894e113", + "size": 5147, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/ff754ffc3e7c2cd8788f37d8190d7dc4a894e113" + }, + { + "path": "videohelpersuite/load_images_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "43f3387c4f907d7372c207f7f1aeb626c27b836b", + "size": 8120, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/43f3387c4f907d7372c207f7f1aeb626c27b836b" + }, + { + "path": "videohelpersuite/load_video_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "c102da43a8bbf6641d0a77d0884c138373e4542b", + "size": 28383, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/c102da43a8bbf6641d0a77d0884c138373e4542b" + }, + { + "path": "videohelpersuite/logger.py", + "mode": "100755", + "type": "blob", + "sha": "6e7b8d64bda275608ba6bf8ee28d2a2112e3e2be", + "size": 1057, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/6e7b8d64bda275608ba6bf8ee28d2a2112e3e2be" + }, + { + "path": "videohelpersuite/nodes.py", + "mode": "100755", + "type": "blob", + "sha": "920bac90807e4b1beca83615ef45c4ca8546783f", + "size": 44998, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/920bac90807e4b1beca83615ef45c4ca8546783f" + }, + { + "path": "videohelpersuite/server.py", + "mode": "100755", + "type": "blob", + "sha": "86233626702a6b3bfb7629d9e2a1dfd3f4a596fa", + "size": 11003, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/86233626702a6b3bfb7629d9e2a1dfd3f4a596fa" + }, + { + "path": "videohelpersuite/utils.py", + "mode": "100644", + "type": "blob", + "sha": "f17ed7c4028b6fcf1d52272fed07438b95ebdd7a", + "size": 16252, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/f17ed7c4028b6fcf1d52272fed07438b95ebdd7a" + }, + { + "path": "web", + "mode": "040000", + "type": "tree", + "sha": "9ca2b9694d2a40f649c74ce15a7bb648cdaa88ac", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/9ca2b9694d2a40f649c74ce15a7bb648cdaa88ac" + }, + { + "path": "web/js", + "mode": "040000", + "type": "tree", + "sha": "4c9de954ac34fc7a964007b998cd49bdd4983d59", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/4c9de954ac34fc7a964007b998cd49bdd4983d59" + }, + { + "path": "web/js/VHS.core.js", + "mode": "100755", + "type": "blob", + "sha": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9", + "size": 93234, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/dceb9774acf51707d7caf2fbc6b707868e5a2fa9" + }, + { + "path": "web/js/videoinfo.js", + "mode": "100644", + "type": "blob", + "sha": "859156255bb3b916405ff27c96d5ce33a5d37515", + "size": 4370, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/859156255bb3b916405ff27c96d5ce33a5d37515" + } + ], + "truncated": false +} diff --git a/docs/hel-892/multivideo-reference/combine__LICENSE b/docs/hel-892/multivideo-reference/combine__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + 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. + + + Copyright (C) + + 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 . + +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: + + Copyright (C) + 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 +. + + 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 +. diff --git a/docs/hel-892/multivideo-reference/combine____init__.py b/docs/hel-892/multivideo-reference/combine____init__.py new file mode 100644 index 00000000..9fa995f0 --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine____init__.py @@ -0,0 +1,9 @@ +from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +import folder_paths +from .videohelpersuite.server import server +from .videohelpersuite import documentation +from .videohelpersuite import latent_preview + +WEB_DIRECTORY = "./web" +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] +documentation.format_descriptions(NODE_CLASS_MAPPINGS) diff --git a/docs/hel-892/multivideo-reference/combine__video_formats__h264-mp4.json b/docs/hel-892/multivideo-reference/combine__video_formats__h264-mp4.json new file mode 100644 index 00000000..c591b5b6 --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine__video_formats__h264-mp4.json @@ -0,0 +1,14 @@ +{ + "main_pass": + [ + "-n", "-c:v", "libx264", + "-pix_fmt", ["pix_fmt", ["yuv420p", "yuv420p10le"]], + "-crf", ["crf","INT", {"default": 19, "min": 0, "max": 100, "step": 1}], + "-vf", "colorspace=all=bt709:iall=bt601-6-625:fast=1", + "-colorspace", "1", "-color_primaries", "1", "-color_trc", "1" + ], + "audio_pass": ["-c:a", "aac"], + "save_metadata": ["save_metadata", "BOOLEAN", {"default": true}], + "trim_to_audio": ["trim_to_audio", "BOOLEAN", {"default": false}], + "extension": "mp4" +} diff --git a/docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py b/docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py new file mode 100644 index 00000000..920bac90 --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine__videohelpersuite__nodes.py @@ -0,0 +1,1066 @@ +import os +import sys +import json +import subprocess +import numpy as np +import re +import datetime +from typing import List +import torch +from PIL import Image, ExifTags +from PIL.PngImagePlugin import PngInfo +from pathlib import Path +from string import Template +import itertools +import functools + +import folder_paths +from .logger import logger +from .image_latent_nodes import * +from .load_video_nodes import LoadVideoUpload, LoadVideoPath, LoadVideoFFmpegUpload, LoadVideoFFmpegPath, LoadImagePath +from .load_images_nodes import LoadImagesFromDirectoryUpload, LoadImagesFromDirectoryPath +from .batched_nodes import VAEEncodeBatched, VAEDecodeBatched +from .utils import ffmpeg_path, get_audio, hash_path, validate_path, requeue_workflow, \ + gifski_path, calculate_file_hash, strip_path, try_download_video, is_url, \ + imageOrLatent, BIGMAX, merge_filter_args, ENCODE_ARGS, floatOrInt, cached +from comfy.utils import ProgressBar + +if 'VHS_video_formats' not in folder_paths.folder_names_and_paths: + folder_paths.folder_names_and_paths["VHS_video_formats"] = ((),{".json"}) +if len(folder_paths.folder_names_and_paths['VHS_video_formats'][1]) == 0: + folder_paths.folder_names_and_paths["VHS_video_formats"][1].add(".json") +audio_extensions = ['mp3', 'mp4', 'wav', 'ogg'] + +def gen_format_widgets(video_format): + for k in video_format: + if k.endswith("_pass"): + for i in range(len(video_format[k])): + if isinstance(video_format[k][i], list): + item = [video_format[k][i]] + yield item + video_format[k][i] = item[0] + else: + if isinstance(video_format[k], list): + item = [video_format[k]] + yield item + video_format[k] = item[0] + +base_formats_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "video_formats") +@cached(5) +def get_video_formats(): + format_files = {} + for format_name in folder_paths.get_filename_list("VHS_video_formats"): + format_files[format_name] = folder_paths.get_full_path("VHS_video_formats", format_name) + for item in os.scandir(base_formats_dir): + if not item.is_file() or not item.name.endswith('.json'): + continue + format_files[item.name[:-5]] = item.path + formats = [] + format_widgets = {} + for format_name, path in format_files.items(): + with open(path, 'r') as stream: + video_format = json.load(stream) + if "gifski_pass" in video_format and gifski_path is None: + #Skip format + continue + widgets = [w[0] for w in gen_format_widgets(video_format)] + formats.append("video/" + format_name) + if (len(widgets) > 0): + format_widgets["video/"+ format_name] = widgets + return formats, format_widgets + +def apply_format_widgets(format_name, kwargs): + if os.path.exists(os.path.join(base_formats_dir, format_name + ".json")): + video_format_path = os.path.join(base_formats_dir, format_name + ".json") + else: + video_format_path = folder_paths.get_full_path("VHS_video_formats", format_name) + with open(video_format_path, 'r') as stream: + video_format = json.load(stream) + for w in gen_format_widgets(video_format): + if w[0][0] not in kwargs: + if len(w[0]) > 2 and 'default' in w[0][2]: + default = w[0][2]['default'] + else: + if type(w[0][1]) is list: + default = w[0][1][0] + else: + #NOTE: This doesn't respect max/min, but should be good enough as a fallback to a fallback to a fallback + default = {"BOOLEAN": False, "INT": 0, "FLOAT": 0, "STRING": ""}[w[0][1]] + kwargs[w[0][0]] = default + logger.warn(f"Missing input for {w[0][0]} has been set to {default}") + if len(w[0]) > 3: + w[0] = Template(w[0][3]).substitute(val=kwargs[w[0][0]]) + else: + w[0] = str(kwargs[w[0][0]]) + return video_format + +def tensor_to_int(tensor, bits): + #TODO: investigate benefit of rounding by adding 0.5 before clip/cast + tensor = tensor.cpu().numpy() * (2**bits-1) + return np.clip(tensor, 0, (2**bits-1)) +def tensor_to_shorts(tensor): + return tensor_to_int(tensor, 16).astype(np.uint16) +def tensor_to_bytes(tensor): + return tensor_to_int(tensor, 8).astype(np.uint8) + +def ffmpeg_process(args, video_format, video_metadata, file_path, env): + + res = None + frame_data = yield + total_frames_output = 0 + if video_format.get('save_metadata', 'False') != 'False': + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + metadata = json.dumps(video_metadata) + metadata_path = os.path.join(folder_paths.get_temp_directory(), "metadata.txt") + #metadata from file should escape = ; # \ and newline + metadata = metadata.replace("\\","\\\\") + metadata = metadata.replace(";","\\;") + metadata = metadata.replace("#","\\#") + metadata = metadata.replace("=","\\=") + metadata = metadata.replace("\n","\\\n") + metadata = "comment=" + metadata + with open(metadata_path, "w") as f: + f.write(";FFMETADATA1\n") + f.write(metadata) + m_args = args[:1] + ["-i", metadata_path] + args[1:] + ["-metadata", "creation_time=now"] + with subprocess.Popen(m_args + [file_path], stderr=subprocess.PIPE, + stdin=subprocess.PIPE, env=env) as proc: + try: + while frame_data is not None: + proc.stdin.write(frame_data) + #TODO: skip flush for increased speed + frame_data = yield + total_frames_output+=1 + proc.stdin.flush() + proc.stdin.close() + res = proc.stderr.read() + except BrokenPipeError as e: + err = proc.stderr.read() + #Check if output file exists. If it does, the re-execution + #will also fail. This obscures the cause of the error + #and seems to never occur concurrent to the metadata issue + if os.path.exists(file_path): + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + err.decode(*ENCODE_ARGS)) + #Res was not set + print(err.decode(*ENCODE_ARGS), end="", file=sys.stderr) + logger.warn("An error occurred when saving with metadata") + if res != b'': + with subprocess.Popen(args + [file_path], stderr=subprocess.PIPE, + stdin=subprocess.PIPE, env=env) as proc: + try: + while frame_data is not None: + proc.stdin.write(frame_data) + frame_data = yield + total_frames_output+=1 + proc.stdin.flush() + proc.stdin.close() + res = proc.stderr.read() + except BrokenPipeError as e: + res = proc.stderr.read() + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + res.decode(*ENCODE_ARGS)) + yield total_frames_output + if len(res) > 0: + print(res.decode(*ENCODE_ARGS), end="", file=sys.stderr) + +def gifski_process(args, video_format, file_path, env): + frame_data = yield + with subprocess.Popen(args + video_format['main_pass'] + ['-f', 'yuv4mpegpipe', '-'], + stderr=subprocess.PIPE, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, env=env) as procff: + with subprocess.Popen([gifski_path] + video_format['gifski_pass'] + + ['-q', '-o', file_path, '-'], stderr=subprocess.PIPE, + stdin=procff.stdout, stdout=subprocess.PIPE, + env=env) as procgs: + try: + while frame_data is not None: + procff.stdin.write(frame_data) + frame_data = yield + procff.stdin.flush() + procff.stdin.close() + resff = procff.stderr.read() + resgs = procgs.stderr.read() + outgs = procgs.stdout.read() + except BrokenPipeError as e: + procff.stdin.close() + resff = procff.stderr.read() + resgs = procgs.stderr.read() + raise Exception("An error occurred while creating gifski output\n" \ + + "Make sure you are using gifski --version >=1.32.0\nffmpeg: " \ + + resff.decode(*ENCODE_ARGS) + '\ngifski: ' + resgs.decode(*ENCODE_ARGS)) + if len(resff) > 0: + print(resff.decode(*ENCODE_ARGS), end="", file=sys.stderr) + if len(resgs) > 0: + print(resgs.decode(*ENCODE_ARGS), end="", file=sys.stderr) + #should always be empty as the quiet flag is passed + if len(outgs) > 0: + print(outgs.decode(*ENCODE_ARGS)) + +def to_pingpong(inp): + if not hasattr(inp, "__getitem__"): + inp = list(inp) + yield from inp + for i in range(len(inp)-2,0,-1): + yield inp[i] + +class VideoCombine: + @classmethod + def INPUT_TYPES(s): + ffmpeg_formats, format_widgets = get_video_formats() + return { + "required": { + "images": (imageOrLatent,), + "frame_rate": ( + floatOrInt, + {"default": 8, "min": 1, "step": 1}, + ), + "loop_count": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1}), + "filename_prefix": ("STRING", {"default": "AnimateDiff"}), + "format": (["image/gif", "image/webp"] + ffmpeg_formats, {'formats': format_widgets}), + "pingpong": ("BOOLEAN", {"default": False}), + "save_output": ("BOOLEAN", {"default": True}), + }, + "optional": { + "audio": ("AUDIO",), + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + }, + "hidden": { + "prompt": "PROMPT", + "extra_pnginfo": "EXTRA_PNGINFO", + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ("VHS_FILENAMES",) + RETURN_NAMES = ("Filenames",) + OUTPUT_NODE = True + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "combine_video" + + def combine_video( + self, + frame_rate: int, + loop_count: int, + images=None, + latents=None, + filename_prefix="AnimateDiff", + format="image/gif", + pingpong=False, + save_output=True, + prompt=None, + extra_pnginfo=None, + audio=None, + unique_id=None, + manual_format_widgets=None, + meta_batch=None, + vae=None, + **kwargs + ): + if latents is not None: + images = latents + if images is None: + return ((save_output, []),) + if vae is not None: + if isinstance(images, dict): + images = images['samples'] + else: + vae = None + + if isinstance(images, torch.Tensor) and images.size(0) == 0: + return ((save_output, []),) + num_frames = len(images) + pbar = ProgressBar(num_frames) + if vae is not None: + downscale_ratio = getattr(vae, "downscale_ratio", 8) + width = images.size(-1)*downscale_ratio + height = images.size(-2)*downscale_ratio + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + #Python 3.12 adds an itertools.batched, but it's easily replicated for legacy support + def batched(it, n): + while batch := tuple(itertools.islice(it, n)): + yield batch + def batched_encode(images, vae, frames_per_batch): + for batch in batched(iter(images), frames_per_batch): + image_batch = torch.from_numpy(np.array(batch)) + yield from vae.decode(image_batch) + images = batched_encode(images, vae, frames_per_batch) + first_image = next(images) + #repush first_image + images = itertools.chain([first_image], images) + #A single image has 3 dimensions. Discard higher dimensions + while len(first_image.shape) > 3: + first_image = first_image[0] + else: + first_image = images[0] + images = iter(images) + # get output information + output_dir = ( + folder_paths.get_output_directory() + if save_output + else folder_paths.get_temp_directory() + ) + ( + full_output_folder, + filename, + _, + subfolder, + _, + ) = folder_paths.get_save_image_path(filename_prefix, output_dir) + output_files = [] + + metadata = PngInfo() + video_metadata = {} + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + video_metadata["prompt"] = json.dumps(prompt) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + video_metadata[x] = extra_pnginfo[x] + extra_options = extra_pnginfo.get('workflow', {}).get('extra', {}) + else: + extra_options = {} + metadata.add_text("CreationTime", datetime.datetime.now().isoformat(" ")[:19]) + + if meta_batch is not None and unique_id in meta_batch.outputs: + (counter, output_process) = meta_batch.outputs[unique_id] + else: + # comfy counter workaround + max_counter = 0 + + # Loop through the existing files + matcher = re.compile(f"{re.escape(filename)}_(\\d+)\\D*\\..+", re.IGNORECASE) + for existing_file in os.listdir(full_output_folder): + # Check if the file matches the expected format + match = matcher.fullmatch(existing_file) + if match: + # Extract the numeric portion of the filename + file_counter = int(match.group(1)) + # Update the maximum counter value if necessary + if file_counter > max_counter: + max_counter = file_counter + + # Increment the counter by 1 to get the next available value + counter = max_counter + 1 + output_process = None + + # save first frame as png to keep metadata + first_image_file = f"{filename}_{counter:05}.png" + file_path = os.path.join(full_output_folder, first_image_file) + if extra_options.get('VHS_MetadataImage', True) != False: + Image.fromarray(tensor_to_bytes(first_image)).save( + file_path, + pnginfo=metadata, + compress_level=4, + ) + output_files.append(file_path) + + format_type, format_ext = format.split("/") + if format_type == "image": + if meta_batch is not None: + raise Exception("Pillow('image/') formats are not compatible with batched output") + image_kwargs = {} + if format_ext == "gif": + image_kwargs['disposal'] = 2 + if format_ext == "webp": + #Save timestamp information + exif = Image.Exif() + exif[ExifTags.IFD.Exif] = {36867: datetime.datetime.now().isoformat(" ")[:19]} + image_kwargs['exif'] = exif + image_kwargs['lossless'] = True + file = f"{filename}_{counter:05}.{format_ext}" + file_path = os.path.join(full_output_folder, file) + if pingpong: + images = to_pingpong(images) + def frames_gen(images): + for i in images: + pbar.update(1) + yield Image.fromarray(tensor_to_bytes(i)) + frames = frames_gen(images) + # Use pillow directly to save an animated image + next(frames).save( + file_path, + format=format_ext.upper(), + save_all=True, + append_images=frames, + duration=round(1000 / frame_rate), + loop=loop_count, + compress_level=4, + **image_kwargs + ) + output_files.append(file_path) + else: + # Use ffmpeg to save a video + if ffmpeg_path is None: + raise ProcessLookupError(f"ffmpeg is required for video outputs and could not be found.\nIn order to use video outputs, you must either:\n- Install imageio-ffmpeg with pip,\n- Place a ffmpeg executable in {os.path.abspath('')}, or\n- Install ffmpeg and add it to the system path.") + + #Acquire additional format_widget values + if manual_format_widgets is None: + if prompt is not None: + kwargs, passed_kwargs = prompt[unique_id]['inputs'], kwargs + kwargs.update(passed_kwargs) + else: + manual_format_widgets = {} + if kwargs is None: + missing = {} + for k in kwargs.keys(): + if k in manual_format_widgets: + kwargs[k] = manual_format_widgets[k] + else: + missing[k] = kwargs[k] + if len(missing) > 0: + logger.warn("Extra format values were not provided, the following defaults will be used: " + str(kwargs) + "\nThis is likely due to usage of ComfyUI-to-python. These values can be manually set by supplying a manual_format_widgets argument") + + video_format = apply_format_widgets(format_ext, kwargs) + has_alpha = first_image.shape[-1] == 4 + dim_alignment = video_format.get("dim_alignment", 2) + if (first_image.shape[1] % dim_alignment) or (first_image.shape[0] % dim_alignment): + #output frames must be padded + to_pad = (-first_image.shape[1] % dim_alignment, + -first_image.shape[0] % dim_alignment) + padding = (to_pad[0]//2, to_pad[0] - to_pad[0]//2, + to_pad[1]//2, to_pad[1] - to_pad[1]//2) + padfunc = torch.nn.ReplicationPad2d(padding) + def pad(image): + image = image.permute((2,0,1))#HWC to CHW + padded = padfunc(image.to(dtype=torch.float32)) + return padded.permute((1,2,0)) + images = map(pad, images) + new_dims = (-first_image.shape[1] % dim_alignment + first_image.shape[1], + -first_image.shape[0] % dim_alignment + first_image.shape[0]) + dimensions = f"{new_dims[0]}x{new_dims[1]}" + logger.warn("Output images were not of valid resolution and have had padding applied") + else: + dimensions = f"{first_image.shape[1]}x{first_image.shape[0]}" + if loop_count > 0: + loop_args = ["-vf", "loop=loop=" + str(loop_count)+":size=" + str(num_frames)] + else: + loop_args = [] + if pingpong: + if meta_batch is not None: + logger.error("pingpong is incompatible with batched output") + images = to_pingpong(images) + if video_format.get('input_color_depth', '8bit') == '16bit': + images = map(tensor_to_shorts, images) + if has_alpha: + i_pix_fmt = 'rgba64' + else: + i_pix_fmt = 'rgb48' + else: + images = map(tensor_to_bytes, images) + if has_alpha: + i_pix_fmt = 'rgba' + else: + i_pix_fmt = 'rgb24' + file = f"{filename}_{counter:05}.{video_format['extension']}" + file_path = os.path.join(full_output_folder, file) + bitrate_arg = [] + bitrate = video_format.get('bitrate') + if bitrate is not None: + bitrate_arg = ["-b:v", str(bitrate) + "M" if video_format.get('megabit') == 'True' else str(bitrate) + "K"] + args = [ffmpeg_path, "-v", "error", "-f", "rawvideo", "-pix_fmt", i_pix_fmt, + "-s", dimensions, "-r", str(frame_rate), "-i", "-"] \ + + loop_args + + images = map(lambda x: x.tobytes(), images) + env=os.environ.copy() + if "environment" in video_format: + env.update(video_format["environment"]) + + if "pre_pass" in video_format: + if meta_batch is not None: + #Performing a prepass requires keeping access to all frames. + #Potential solutions include keeping just output frames in + #memory or using 3 passes with intermediate file, but + #very long gifs probably shouldn't be encouraged + raise Exception("Formats which require a pre_pass are incompatible with Batch Manager.") + images = [b''.join(images)] + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + pre_pass_args = args[:13] + video_format['pre_pass'] + merge_filter_args(pre_pass_args) + try: + subprocess.run(pre_pass_args, input=images[0], env=env, + capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg prepass:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if "inputs_main_pass" in video_format: + args = args[:13] + video_format['inputs_main_pass'] + args[13:] + + if output_process is None: + if 'gifski_pass' in video_format: + output_process = gifski_process(args, video_format, file_path, env) + else: + args += video_format['main_pass'] + bitrate_arg + merge_filter_args(args) + output_process = ffmpeg_process(args, video_format, video_metadata, file_path, env) + #Proceed to first yield + output_process.send(None) + if meta_batch is not None: + meta_batch.outputs[unique_id] = (counter, output_process) + + for image in images: + pbar.update(1) + output_process.send(image) + if meta_batch is not None: + requeue_workflow((meta_batch.unique_id, not meta_batch.has_closed_inputs)) + if meta_batch is None or meta_batch.has_closed_inputs: + #Close pipe and wait for termination. + try: + total_frames_output = output_process.send(None) + output_process.send(None) + except StopIteration: + pass + if meta_batch is not None: + meta_batch.outputs.pop(unique_id) + if len(meta_batch.outputs) == 0: + meta_batch.reset() + else: + #batch is unfinished + #TODO: Check if empty output breaks other custom nodes + return {"ui": {"unfinished_batch": [True]}, "result": ((save_output, []),)} + + output_files.append(file_path) + + + a_waveform = None + if audio is not None: + try: + #safely check if audio produced by VHS_LoadVideo actually exists + a_waveform = audio['waveform'] + except: + pass + if a_waveform is not None: + # Create audio file if input was provided + output_file_with_audio = f"{filename}_{counter:05}-audio.{video_format['extension']}" + output_file_with_audio_path = os.path.join(full_output_folder, output_file_with_audio) + if "audio_pass" not in video_format: + logger.warn("Selected video format does not have explicit audio support") + video_format["audio_pass"] = ["-c:a", "libopus"] + + + # FFmpeg command with audio re-encoding + #TODO: expose audio quality options if format widgets makes it in + #Reconsider forcing apad/shortest + channels = audio['waveform'].size(1) + min_audio_dur = total_frames_output / frame_rate + 1 + if video_format.get('trim_to_audio', 'False') != 'False': + apad = [] + else: + apad = ["-af", "apad=whole_dur="+str(min_audio_dur)] + mux_args = [ffmpeg_path, "-v", "error", "-n", "-i", file_path, + "-ar", str(audio['sample_rate']), "-ac", str(channels), + "-f", "f32le", "-i", "-", "-c:v", "copy"] \ + + video_format["audio_pass"] \ + + apad + ["-shortest", output_file_with_audio_path] + + audio_data = audio['waveform'].squeeze(0).transpose(0,1) \ + .numpy().tobytes() + merge_filter_args(mux_args, '-af') + try: + res = subprocess.run(mux_args, input=audio_data, + env=env, capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if res.stderr: + print(res.stderr.decode(*ENCODE_ARGS), end="", file=sys.stderr) + output_files.append(output_file_with_audio_path) + #Return this file with audio to the webui. + #It will be muted unless opened or saved with right click + file = output_file_with_audio + if extra_options.get('VHS_KeepIntermediate', True) == False: + for intermediate in output_files[1:-1]: + if os.path.exists(intermediate): + os.remove(intermediate) + preview = { + "filename": file, + "subfolder": subfolder, + "type": "output" if save_output else "temp", + "format": format, + "frame_rate": frame_rate, + "workflow": first_image_file, + "fullpath": output_files[-1], + } + if num_frames == 1 and 'png' in format and '%03d' in file: + preview['format'] = 'image/png' + preview['filename'] = file.replace('%03d', '001') + return {"ui": {"gifs": [preview]}, "result": ((save_output, output_files),)} + +class LoadAudio: + @classmethod + def INPUT_TYPES(s): + #Hide ffmpeg formats if ffmpeg isn't available + return { + "required": { + "audio_file": ("STRING", {"default": "input/", "vhs_path_extensions": ['wav','mp3','ogg','m4a','flac']}), + }, + "optional" : {"seek_seconds": ("FLOAT", {"default": 0, "min": 0})} + } + + RETURN_TYPES = ("AUDIO",) + RETURN_NAMES = ("audio",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + FUNCTION = "load_audio" + def load_audio(self, audio_file, seek_seconds): + audio_file = strip_path(audio_file) + if audio_file is None or validate_path(audio_file) != True: + raise Exception("audio_file is not a valid path: " + audio_file) + if is_url(audio_file): + audio_file = try_download_video(audio_file) or audio_file + #Eagerly fetch the audio since the user must be using it if the + #node executes, unlike Load Video + return (get_audio(audio_file, start_time=seek_seconds),) + + @classmethod + def IS_CHANGED(s, audio_file, seek_seconds): + return hash_path(audio_file) + + @classmethod + def VALIDATE_INPUTS(s, audio_file, **kwargs): + return validate_path(audio_file, allow_none=True) + +class LoadAudioUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1] in audio_extensions): + files.append(f) + return {"required": { + "audio": (sorted(files),), + "start_time": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01}), + "duration": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01}), + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("AUDIO", ) + RETURN_NAMES = ("audio",) + FUNCTION = "load_audio" + + def load_audio(self, start_time, duration, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(kwargs['audio'])) + if audio_file is None or validate_path(audio_file) != True: + raise Exception("audio_file is not a valid path: " + audio_file) + + return (get_audio(audio_file, start_time, duration),) + + @classmethod + def IS_CHANGED(s, audio, start_time, duration): + audio_file = folder_paths.get_annotated_filepath(strip_path(audio)) + return hash_path(audio_file) + + @classmethod + def VALIDATE_INPUTS(s, audio, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(audio)) + return validate_path(audio_file, allow_none=True) +class AudioToVHSAudio: + """Legacy method for external nodes that utilized VHS_AUDIO, + VHS_AUDIO is deprecated as a format and should no longer be used""" + @classmethod + def INPUT_TYPES(s): + return {"required": {"audio": ("AUDIO",)}} + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("VHS_AUDIO", ) + RETURN_NAMES = ("vhs_audio",) + FUNCTION = "convert_audio" + + def convert_audio(self, audio): + ar = str(audio['sample_rate']) + ac = str(audio['waveform'].size(1)) + mux_args = [ffmpeg_path, "-f", "f32le", "-ar", ar, "-ac", ac, + "-i", "-", "-f", "wav", "-"] + + audio_data = audio['waveform'].squeeze(0).transpose(0,1) \ + .numpy().tobytes() + try: + res = subprocess.run(mux_args, input=audio_data, + capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if res.stderr: + print(res.stderr.decode(*ENCODE_ARGS), end="", file=sys.stderr) + return (lambda: res.stdout,) + +class VHSAudioToAudio: + """Legacy method for external nodes that utilized VHS_AUDIO, + VHS_AUDIO is deprecated as a format and should no longer be used""" + @classmethod + def INPUT_TYPES(s): + return {"required": {"vhs_audio": ("VHS_AUDIO",)}} + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("AUDIO", ) + RETURN_NAMES = ("audio",) + FUNCTION = "convert_audio" + + def convert_audio(self, vhs_audio): + if not vhs_audio or not vhs_audio(): + raise Exception("audio input is not valid") + args = [ffmpeg_path, "-i", '-'] + try: + res = subprocess.run(args + ["-f", "f32le", "-"], input=vhs_audio(), + capture_output=True, check=True) + audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS)) + if match: + ar = int(match.group(1)) + #NOTE: Just throwing an error for other channel types right now + #Will deal with issues if they come + ac = {"mono": 1, "stereo": 2}[match.group(2)] + else: + ar = 44100 + ac = 2 + audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0) + return ({'waveform': audio, 'sample_rate': ar},) + +class PruneOutputs: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "filenames": ("VHS_FILENAMES",), + "options": (["Intermediate", "Intermediate and Utility"],) + } + } + + RETURN_TYPES = () + OUTPUT_NODE = True + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "prune_outputs" + + def prune_outputs(self, filenames, options): + if len(filenames[1]) == 0: + return () + assert(len(filenames[1]) <= 3 and len(filenames[1]) >= 2) + delete_list = [] + if options in ["Intermediate", "Intermediate and Utility", "All"]: + delete_list += filenames[1][1:-1] + if options in ["Intermediate and Utility", "All"]: + delete_list.append(filenames[1][0]) + if options in ["All"]: + delete_list.append(filenames[1][-1]) + + output_dirs = [folder_paths.get_output_directory(), + folder_paths.get_temp_directory()] + for file in delete_list: + #Check that path is actually an output directory + if (os.path.commonpath([output_dirs[0], file]) != output_dirs[0]) \ + and (os.path.commonpath([output_dirs[1], file]) != output_dirs[1]): + raise Exception("Tried to prune output from invalid directory: " + file) + if os.path.exists(file): + os.remove(file) + return () + +class BatchManager: + def __init__(self, frames_per_batch=-1): + self.frames_per_batch = frames_per_batch + self.inputs = {} + self.outputs = {} + self.unique_id = None + self.has_closed_inputs = False + self.total_frames = float('inf') + def reset(self): + self.close_inputs() + for key in self.outputs: + if getattr(self.outputs[key][-1], "gi_suspended", False): + try: + self.outputs[key][-1].send(None) + except StopIteration: + pass + self.__init__(self.frames_per_batch) + def has_open_inputs(self): + return len(self.inputs) > 0 + def close_inputs(self): + for key in self.inputs: + if getattr(self.inputs[key][-1], "gi_suspended", False): + try: + self.inputs[key][-1].send(1) + except StopIteration: + pass + self.inputs = {} + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "frames_per_batch": ("INT", {"default": 16, "min": 1, "max": BIGMAX, "step": 1}) + }, + "hidden": { + "prompt": "PROMPT", + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ("VHS_BatchManager",) + RETURN_NAMES = ("meta_batch",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "update_batch" + + def update_batch(self, frames_per_batch, prompt=None, unique_id=None): + if unique_id is not None and prompt is not None: + requeue = prompt[unique_id]['inputs'].get('requeue', 0) + else: + requeue = 0 + if requeue == 0: + self.reset() + self.frames_per_batch = frames_per_batch + self.unique_id = unique_id + else: + num_batches = (self.total_frames+self.frames_per_batch-1)//frames_per_batch + print(f'Meta-Batch {requeue}/{num_batches}') + #onExecuted seems to not be called unless some message is sent + return (self,) + + +class VideoInfo: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT", "FLOAT","INT", "FLOAT", "INT", "INT") + RETURN_NAMES = ( + "source_fps🟨", + "source_frame_count🟨", + "source_duration🟨", + "source_width🟨", + "source_height🟨", + "loaded_fps🟦", + "loaded_frame_count🟦", + "loaded_duration🟦", + "loaded_width🟦", + "loaded_height🟦", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + source_info = [] + loaded_info = [] + + for key in keys: + source_info.append(video_info[f"source_{key}"]) + loaded_info.append(video_info[f"loaded_{key}"]) + + return (*source_info, *loaded_info) + + +class VideoInfoSource: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT",) + RETURN_NAMES = ( + "fps🟨", + "frame_count🟨", + "duration🟨", + "width🟨", + "height🟨", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + source_info = [] + + for key in keys: + source_info.append(video_info[f"source_{key}"]) + + return (*source_info,) + + +class VideoInfoLoaded: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT",) + RETURN_NAMES = ( + "fps🟦", + "frame_count🟦", + "duration🟦", + "width🟦", + "height🟦", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + loaded_info = [] + + for key in keys: + loaded_info.append(video_info[f"loaded_{key}"]) + + return (*loaded_info,) + +class SelectFilename: + @classmethod + def INPUT_TYPES(s): + return {"required": {"filenames": ("VHS_FILENAMES",), "index": ("INT", {"default": -1, "step": 1, "min": -1})}} + RETURN_TYPES = ("STRING",) + RETURN_NAMES =("Filename",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "select_filename" + + def select_filename(self, filenames, index): + return (filenames[1][index],) +class Unbatch: + class Any(str): + def __ne__(self, other): + return False + @classmethod + def INPUT_TYPES(s): + return {"required": {"batched": ("*",)}} + RETURN_TYPES = (Any('*'),) + INPUT_IS_LIST = True + RETURN_NAMES =("unbatched",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "unbatch" + def unbatch(self, batched): + if isinstance(batched[0], torch.Tensor): + return (torch.cat(batched),) + if isinstance(batched[0], dict): + out = batched[0].copy() + out['samples'] = torch.cat([x['samples'] for x in batched]) + out.pop('batch_index', None) + return (out,) + return (functools.reduce(lambda x,y: x+y, batched),) + @classmethod + def VALIDATE_INPUTS(cls, input_types): + return True +class SelectLatest: + @classmethod + def INPUT_TYPES(s): + return {"required": {"filename_prefix": ("STRING", {'default': 'output/AnimateDiff', 'vhs_path_extensions': []}), + "filename_postfix": ("STRING", {"placeholder": ".webm"})}} + RETURN_TYPES = ("STRING",) + RETURN_NAMES =("Filename",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "select_latest" + EXPERIMENTAL = True + + def select_latest(self, filename_prefix, filename_postfix): + assert False, "Not Reachable" + +NODE_CLASS_MAPPINGS = { + "VHS_VideoCombine": VideoCombine, + "VHS_LoadVideo": LoadVideoUpload, + "VHS_LoadVideoPath": LoadVideoPath, + "VHS_LoadVideoFFmpeg": LoadVideoFFmpegUpload, + "VHS_LoadVideoFFmpegPath": LoadVideoFFmpegPath, + "VHS_LoadImagePath": LoadImagePath, + "VHS_LoadImages": LoadImagesFromDirectoryUpload, + "VHS_LoadImagesPath": LoadImagesFromDirectoryPath, + "VHS_LoadAudio": LoadAudio, + "VHS_LoadAudioUpload": LoadAudioUpload, + "VHS_AudioToVHSAudio": AudioToVHSAudio, + "VHS_VHSAudioToAudio": VHSAudioToAudio, + "VHS_PruneOutputs": PruneOutputs, + "VHS_BatchManager": BatchManager, + "VHS_VideoInfo": VideoInfo, + "VHS_VideoInfoSource": VideoInfoSource, + "VHS_VideoInfoLoaded": VideoInfoLoaded, + "VHS_SelectFilename": SelectFilename, + # Batched Nodes + "VHS_VAEEncodeBatched": VAEEncodeBatched, + "VHS_VAEDecodeBatched": VAEDecodeBatched, + # Latent and Image nodes + "VHS_SplitLatents": SplitLatents, + "VHS_SplitImages": SplitImages, + "VHS_SplitMasks": SplitMasks, + "VHS_MergeLatents": MergeLatents, + "VHS_MergeImages": MergeImages, + "VHS_MergeMasks": MergeMasks, + "VHS_GetLatentCount": GetLatentCount, + "VHS_GetImageCount": GetImageCount, + "VHS_GetMaskCount": GetMaskCount, + "VHS_DuplicateLatents": RepeatLatents, + "VHS_DuplicateImages": RepeatImages, + "VHS_DuplicateMasks": RepeatMasks, + "VHS_SelectEveryNthLatent": SelectEveryNthLatent, + "VHS_SelectEveryNthImage": SelectEveryNthImage, + "VHS_SelectEveryNthMask": SelectEveryNthMask, + "VHS_SelectLatents": SelectLatents, + "VHS_SelectImages": SelectImages, + "VHS_SelectMasks": SelectMasks, + "VHS_Unbatch": Unbatch, + "VHS_SelectLatest": SelectLatest, +} +NODE_DISPLAY_NAME_MAPPINGS = { + "VHS_VideoCombine": "Video Combine 🎥🅥🅗🅢", + "VHS_LoadVideo": "Load Video (Upload) 🎥🅥🅗🅢", + "VHS_LoadVideoPath": "Load Video (Path) 🎥🅥🅗🅢", + "VHS_LoadVideoFFmpeg": "Load Video FFmpeg (Upload) 🎥🅥🅗🅢", + "VHS_LoadVideoFFmpegPath": "Load Video FFmpeg (Path) 🎥🅥🅗🅢", + "VHS_LoadImagePath": "Load Image (Path) 🎥🅥🅗🅢", + "VHS_LoadImages": "Load Images (Upload) 🎥🅥🅗🅢", + "VHS_LoadImagesPath": "Load Images (Path) 🎥🅥🅗🅢", + "VHS_LoadAudio": "Load Audio (Path)🎥🅥🅗🅢", + "VHS_LoadAudioUpload": "Load Audio (Upload)🎥🅥🅗🅢", + "VHS_AudioToVHSAudio": "Audio to legacy VHS_AUDIO🎥🅥🅗🅢", + "VHS_VHSAudioToAudio": "Legacy VHS_AUDIO to Audio🎥🅥🅗🅢", + "VHS_PruneOutputs": "Prune Outputs 🎥🅥🅗🅢", + "VHS_BatchManager": "Meta Batch Manager 🎥🅥🅗🅢", + "VHS_VideoInfo": "Video Info 🎥🅥🅗🅢", + "VHS_VideoInfoSource": "Video Info (Source) 🎥🅥🅗🅢", + "VHS_VideoInfoLoaded": "Video Info (Loaded) 🎥🅥🅗🅢", + "VHS_SelectFilename": "Select Filename 🎥🅥🅗🅢", + # Batched Nodes + "VHS_VAEEncodeBatched": "VAE Encode Batched 🎥🅥🅗🅢", + "VHS_VAEDecodeBatched": "VAE Decode Batched 🎥🅥🅗🅢", + # Latent and Image nodes + "VHS_SplitLatents": "Split Latents 🎥🅥🅗🅢", + "VHS_SplitImages": "Split Images 🎥🅥🅗🅢", + "VHS_SplitMasks": "Split Masks 🎥🅥🅗🅢", + "VHS_MergeLatents": "Merge Latents 🎥🅥🅗🅢", + "VHS_MergeImages": "Merge Images 🎥🅥🅗🅢", + "VHS_MergeMasks": "Merge Masks 🎥🅥🅗🅢", + "VHS_GetLatentCount": "Get Latent Count 🎥🅥🅗🅢", + "VHS_GetImageCount": "Get Image Count 🎥🅥🅗🅢", + "VHS_GetMaskCount": "Get Mask Count 🎥🅥🅗🅢", + "VHS_DuplicateLatents": "Repeat Latents 🎥🅥🅗🅢", + "VHS_DuplicateImages": "Repeat Images 🎥🅥🅗🅢", + "VHS_DuplicateMasks": "Repeat Masks 🎥🅥🅗🅢", + "VHS_SelectEveryNthLatent": "Select Every Nth Latent 🎥🅥🅗🅢", + "VHS_SelectEveryNthImage": "Select Every Nth Image 🎥🅥🅗🅢", + "VHS_SelectEveryNthMask": "Select Every Nth Mask 🎥🅥🅗🅢", + "VHS_SelectLatents": "Select Latents 🎥🅥🅗🅢", + "VHS_SelectImages": "Select Images 🎥🅥🅗🅢", + "VHS_SelectMasks": "Select Masks 🎥🅥🅗🅢", + "VHS_Unbatch": "Unbatch 🎥🅥🅗🅢", + "VHS_SelectLatest": "Select Latest 🎥🅥🅗🅢", +} diff --git a/docs/hel-892/multivideo-reference/combine__videohelpersuite__utils.py b/docs/hel-892/multivideo-reference/combine__videohelpersuite__utils.py new file mode 100644 index 00000000..f17ed7c4 --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine__videohelpersuite__utils.py @@ -0,0 +1,418 @@ +import hashlib +import os +from typing import Iterable +import shutil +import subprocess +import re +import time +from collections.abc import Mapping +from typing import Union +import functools +import torch +from torch import Tensor + +import server +from .logger import logger +import folder_paths + +BIGMIN = -(2**53-1) +BIGMAX = (2**53-1) + +DIMMAX = 8192 + +ENCODE_ARGS = ("utf-8", 'backslashreplace') + +def ffmpeg_suitability(path): + try: + version = subprocess.run([path, "-version"], check=True, + capture_output=True).stdout.decode(*ENCODE_ARGS) + except: + return 0 + score = 0 + #rough layout of the importance of various features + simple_criterion = [("libvpx", 20),("264",10), ("265",3), + ("svtav1",5),("libopus", 1)] + for criterion in simple_criterion: + if version.find(criterion[0]) >= 0: + score += criterion[1] + #obtain rough compile year from copyright information + copyright_index = version.find('2000-2') + if copyright_index >= 0: + copyright_year = version[copyright_index+6:copyright_index+9] + if copyright_year.isnumeric(): + score += int(copyright_year) + return score + +class MultiInput(str): + def __new__(cls, string, allowed_types="*"): + res = super().__new__(cls, string) + res.allowed_types=allowed_types + return res + def __ne__(self, other): + if self.allowed_types == "*" or other == "*": + return False + return other not in self.allowed_types +imageOrLatent = MultiInput("IMAGE", ["IMAGE", "LATENT"]) +floatOrInt = MultiInput("FLOAT", ["FLOAT", "INT"]) + +if "VHS_FORCE_FFMPEG_PATH" in os.environ: + ffmpeg_path = os.environ.get("VHS_FORCE_FFMPEG_PATH") +else: + ffmpeg_paths = [] + try: + from imageio_ffmpeg import get_ffmpeg_exe + imageio_ffmpeg_path = get_ffmpeg_exe() + ffmpeg_paths.append(imageio_ffmpeg_path) + except: + if "VHS_USE_IMAGEIO_FFMPEG" in os.environ: + raise + logger.warn("Failed to import imageio_ffmpeg") + if "VHS_USE_IMAGEIO_FFMPEG" in os.environ: + ffmpeg_path = imageio_ffmpeg_path + else: + system_ffmpeg = shutil.which("ffmpeg") + if system_ffmpeg is not None: + ffmpeg_paths.append(system_ffmpeg) + if os.path.isfile("ffmpeg"): + ffmpeg_paths.append(os.path.abspath("ffmpeg")) + if os.path.isfile("ffmpeg.exe"): + ffmpeg_paths.append(os.path.abspath("ffmpeg.exe")) + if len(ffmpeg_paths) == 0: + logger.error("No valid ffmpeg found.") + ffmpeg_path = None + elif len(ffmpeg_paths) == 1: + #Evaluation of suitability isn't required, can take sole option + #to reduce startup time + ffmpeg_path = ffmpeg_paths[0] + else: + ffmpeg_path = max(ffmpeg_paths, key=ffmpeg_suitability) +gifski_path = os.environ.get("VHS_GIFSKI", None) +if gifski_path is None: + gifski_path = os.environ.get("JOV_GIFSKI", None) + if gifski_path is None: + gifski_path = shutil.which("gifski") +ytdl_path = os.environ.get("VHS_YTDL", None) or shutil.which('yt-dlp') \ + or shutil.which('youtube-dl') +download_history = {} +def try_download_video(url): + if ytdl_path is None: + return None + if url in download_history: + return download_history[url] + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + #Format information could be added to only download audio for Load Audio, + #but this gets hairy if same url is also used for video. + #Best to just always keep defaults + #dl_format = ['-f', 'ba'] if is_audio else [] + try: + res = subprocess.run([ytdl_path, "--print", "after_move:filepath", + "-P", folder_paths.get_temp_directory(), url], + capture_output=True, check=True) + #strip newline + file = res.stdout.decode(*ENCODE_ARGS)[:-1] + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the yt-dl process:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + file = None + download_history[url] = file + return file + +def is_safe_path(path, strict=False): + if "VHS_STRICT_PATHS" not in os.environ and not strict: + return True + basedir = os.path.abspath('.') + try: + common_path = os.path.commonpath([basedir, path]) + except: + #Different drive on windows + return False + return common_path == basedir + +def get_sorted_dir_files_from_directory(directory: str, skip_first_images: int=0, select_every_nth: int=1, extensions: Iterable=None): + directory = strip_path(directory) + dir_files = os.listdir(directory) + dir_files = sorted(dir_files) + dir_files = [os.path.join(directory, x) for x in dir_files] + dir_files = list(filter(lambda filepath: os.path.isfile(filepath), dir_files)) + # filter by extension, if needed + if extensions is not None: + extensions = list(extensions) + new_dir_files = [] + for filepath in dir_files: + ext = "." + filepath.split(".")[-1] + if ext.lower() in extensions: + new_dir_files.append(filepath) + dir_files = new_dir_files + # start at skip_first_images + dir_files = dir_files[skip_first_images:] + dir_files = dir_files[0::select_every_nth] + return dir_files + + +# modified from https://stackoverflow.com/questions/22058048/hashing-a-file-in-python +def calculate_file_hash(filename: str, hash_every_n: int = 1): + #Larger video files were taking >.5 seconds to hash even when cached, + #so instead the modified time from the filesystem is used as a hash + h = hashlib.sha256() + h.update(filename.encode()) + h.update(str(os.path.getmtime(filename)).encode()) + return h.hexdigest() + +prompt_queue = server.PromptServer.instance.prompt_queue +def requeue_workflow_unchecked(): + """Requeues the current workflow without checking for multiple requeues""" + currently_running = prompt_queue.currently_running + (_, _, prompt, extra_data, outputs_to_execute) = next(iter(currently_running.values())) + + #Ensure batch_managers are marked stale + prompt = prompt.copy() + for uid in prompt: + if prompt[uid]['class_type'] == 'VHS_BatchManager': + prompt[uid]['inputs']['requeue'] = prompt[uid]['inputs'].get('requeue',0)+1 + + #execution.py has guards for concurrency, but server doesn't. + #TODO: Check that this won't be an issue + number = -server.PromptServer.instance.number + server.PromptServer.instance.number += 1 + prompt_id = str(server.uuid.uuid4()) + prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute)) + +requeue_guard = [None, 0, 0, {}] +def requeue_workflow(requeue_required=(-1,True)): + assert(len(prompt_queue.currently_running) == 1) + global requeue_guard + (run_number, _, prompt, _, _) = next(iter(prompt_queue.currently_running.values())) + if requeue_guard[0] != run_number: + #Calculate a count of how many outputs are managed by a batch manager + managed_outputs=0 + for bm_uid in prompt: + if prompt[bm_uid]['class_type'] == 'VHS_BatchManager': + for output_uid in prompt: + if prompt[output_uid]['class_type'] in ["VHS_VideoCombine"]: + for inp in prompt[output_uid]['inputs'].values(): + if inp == [bm_uid, 0]: + managed_outputs+=1 + requeue_guard = [run_number, 0, managed_outputs, {}] + requeue_guard[1] = requeue_guard[1]+1 + requeue_guard[3][requeue_required[0]] = requeue_required[1] + if requeue_guard[1] == requeue_guard[2] and max(requeue_guard[3].values()): + requeue_workflow_unchecked() + +def get_audio(file, start_time=0, duration=0): + args = [ffmpeg_path, "-i", file] + if start_time > 0: + args += ["-ss", str(start_time)] + if duration > 0: + args += ["-t", str(duration)] + try: + #TODO: scan for sample rate and maintain + res = subprocess.run(args + ["-f", "f32le", "-"], + capture_output=True, check=True) + audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32) + match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS)) + except subprocess.CalledProcessError as e: + raise Exception(f"VHS failed to extract audio from {file}:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if match: + ar = int(match.group(1)) + #NOTE: Just throwing an error for other channel types right now + #Will deal with issues if they come + ac = {"mono": 1, "stereo": 2}[match.group(2)] + else: + ar = 44100 + ac = 2 + audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0) + return {'waveform': audio, 'sample_rate': ar} + +class LazyAudioMap(Mapping): + def __init__(self, file, start_time, duration): + self.file = file + self.start_time=start_time + self.duration=duration + self._dict=None + def __getitem__(self, key): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return self._dict[key] + def __iter__(self): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return iter(self._dict) + def __len__(self): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return len(self._dict) +def lazy_get_audio(file, start_time=0, duration=0, **kwargs): + return LazyAudioMap(file, start_time, duration) + +def is_url(url): + return url.split("://")[0] in ["http", "https"] + +def validate_sequence(path): + #Check if path is a valid ffmpeg sequence that points to at least one file + (path, file) = os.path.split(path) + if not os.path.isdir(path): + return False + match = re.search('%0?\\d+d', file) + if not match: + return False + seq = match.group() + if seq == '%d': + seq = '\\\\d+' + else: + seq = '\\\\d{%s}' % seq[1:-1] + file_matcher = re.compile(re.sub('%0?\\d+d', seq, file)) + for file in os.listdir(path): + if file_matcher.fullmatch(file): + return True + return False + +def strip_path(path): + #This leaves whitespace inside quotes and only a single " + #thus ' ""test"' -> '"test' + #consider path.strip(string.whitespace+"\"") + #or weightier re.fullmatch("[\\s\"]*(.+?)[\\s\"]*", path).group(1) + path = path.strip() + if path.startswith("\""): + path = path[1:] + if path.endswith("\""): + path = path[:-1] + return path +def hash_path(path): + if path is None: + return "input" + if is_url(path): + return "url" + return calculate_file_hash(strip_path(path)) + + +def validate_path(path, allow_none=False, allow_url=True): + if path is None: + return allow_none + if is_url(path): + #Probably not feasible to check if url resolves here + if not allow_url: + return "URLs are unsupported for this path" + return is_safe_path(path) + if not os.path.isfile(strip_path(path)): + return "Invalid file path: {}".format(path) + return is_safe_path(path) + + +def validate_index(index: int, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int: + # if part of range, do nothing + if is_range: + return index + # otherwise, validate index + # validate not out of range - only when latent_count is passed in + if length > 0 and index > length-1 and not allow_missing: + raise IndexError(f"Index '{index}' out of range for {length} item(s).") + # if negative, validate not out of range + if index < 0: + if not allow_negative: + raise IndexError(f"Negative indeces not allowed, but was '{index}'.") + conv_index = length+index + if conv_index < 0 and not allow_missing: + raise IndexError(f"Index '{index}', converted to '{conv_index}' out of range for {length} item(s).") + index = conv_index + return index + + +def convert_to_index_int(raw_index: str, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int: + try: + return validate_index(int(raw_index), length=length, is_range=is_range, allow_negative=allow_negative, allow_missing=allow_missing) + except ValueError as e: + raise ValueError(f"Index '{raw_index}' must be an integer.", e) + + +def convert_str_to_indexes(indexes_str: str, length: int=0, allow_missing=False) -> list[int]: + if not indexes_str: + return [] + int_indexes = list(range(0, length)) + allow_negative = length > 0 + chosen_indexes = [] + # parse string - allow positive ints, negative ints, and ranges separated by ':' + groups = indexes_str.split(",") + groups = [g.strip() for g in groups] + for g in groups: + # parse range of indeces (e.g. 2:16) + if ':' in g: + index_range = g.split(":", 2) + index_range = [r.strip() for r in index_range] + + start_index = index_range[0] + if len(start_index) > 0: + start_index = convert_to_index_int(start_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing) + else: + start_index = 0 + end_index = index_range[1] + if len(end_index) > 0: + end_index = convert_to_index_int(end_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing) + else: + end_index = length + # support step as well, to allow things like reversing, every-other, etc. + step = 1 + if len(index_range) > 2: + step = index_range[2] + if len(step) > 0: + step = convert_to_index_int(step, length=length, is_range=True, allow_negative=True, allow_missing=True) + else: + step = 1 + # if latents were passed in, base indeces on known latent count + if len(int_indexes) > 0: + chosen_indexes.extend(int_indexes[start_index:end_index][::step]) + # otherwise, assume indeces are valid + else: + chosen_indexes.extend(list(range(start_index, end_index, step))) + # parse individual indeces + else: + chosen_indexes.append(convert_to_index_int(g, length=length, allow_negative=allow_negative, allow_missing=allow_missing)) + return chosen_indexes + + +def select_indexes(input_obj: Union[Tensor, list], idxs: list): + if type(input_obj) == Tensor: + return input_obj[idxs] + else: + return [input_obj[i] for i in idxs] + +def merge_filter_args(args, ftype="-vf"): + #TODO This doesn't account for filter_complex + #Will likely need to convert all filters to filter complex in the future + #But that requires source/output deduplication + try: + start_index = args.index(ftype)+1 + index = start_index + while True: + index = args.index(ftype, index) + args[start_index] += ',' + args[index+1] + args.pop(index) + args.pop(index) + except ValueError: + pass + +def select_indexes_from_str(input_obj: Union[Tensor, list], indexes: str, err_if_missing=True, err_if_empty=True): + real_idxs = convert_str_to_indexes(indexes, len(input_obj), allow_missing=not err_if_missing) + if err_if_empty and len(real_idxs) == 0: + raise Exception(f"Nothing was selected based on indexes found in '{indexes}'.") + return select_indexes(input_obj, real_idxs) + +def hook(obj, attr): + def dec(f): + f = functools.update_wrapper(f, getattr(obj,attr)) + setattr(obj,attr,f) + return f + return dec + +def cached(duration): + def dec(f): + cached_ret = None + cache_time = 0 + def cached_func(): + nonlocal cache_time, cached_ret + if time.time() > cache_time + duration or cached_ret is None: + cache_time = time.time() + cached_ret = f() + return cached_ret + return cached_func + return dec diff --git a/docs/hel-892/multivideo-reference/combine__web__js__VHS.core.js b/docs/hel-892/multivideo-reference/combine__web__js__VHS.core.js new file mode 100644 index 00000000..dceb9774 --- /dev/null +++ b/docs/hel-892/multivideo-reference/combine__web__js__VHS.core.js @@ -0,0 +1,2226 @@ +import { app } from '../../../scripts/app.js' +import { api } from '../../../scripts/api.js' +import { setWidgetConfig } from '../../../extensions/core/widgetInputs.js' +import { applyTextReplacements } from "../../../scripts/utils.js"; + +function chainCallback(object, property, callback) { + if (object == undefined) { + //This should not happen. + console.error("Tried to add callback to non-existant object") + return; + } + if (property in object && object[property]) { + const callback_orig = object[property] + object[property] = function () { + const r = callback_orig.apply(this, arguments); + return callback.apply(this, arguments) ?? r + }; + } else { + object[property] = callback; + } +} + +const convDict = { + VHS_LoadImages : ["directory", null, "image_load_cap", "skip_first_images", "select_every_nth"], + VHS_LoadImagesPath : ["directory", "image_load_cap", "skip_first_images", "select_every_nth"], + VHS_VideoCombine : ["frame_rate", "loop_count", "filename_prefix", "format", "pingpong", "save_image"], + VHS_LoadVideo : ["video", "force_rate", "force_size", "frame_load_cap", "skip_first_frames", "select_every_nth"], + VHS_LoadVideoPath : ["video", "force_rate", "force_size", "frame_load_cap", "skip_first_frames", "select_every_nth"], +}; +const renameDict = {VHS_VideoCombine : {save_output : "save_image"}} +function useKVState(nodeType) { + chainCallback(nodeType.prototype, "onNodeCreated", function () { + chainCallback(this, "onConfigure", function(info) { + if (!this.widgets) { + //Node has no widgets, there is nothing to restore + return + } + if (typeof(info.widgets_values) != "object") { + //widgets_values is in some unknown inactionable format + return + } + let widgetDict = info.widgets_values + if (info.widgets_values.length) { + //widgets_values is in the old list format + if (this.type in convDict) { + //widget does not have a conversion format provided + let convList = convDict[this.type]; + if(info.widgets_values.length >= convList.length) { + //has all required fields + widgetDict = {} + for (let i = 0; i < convList.length; i++) { + if(!convList[i]) { + //Element should not be processed (upload button on load image sequence) + continue + } + widgetDict[convList[i]] = info.widgets_values[i]; + } + } else { + //widgets_values is missing elements marked as required + //let it fall through to failure state + } + } + } + if ('force_size' in widgetDict) { + //force size has been phased out, Migrate state + if (widgetDict.force_size.includes?.('x')) { + let sizes = widgetDict.force_size.split('x') + if (sizes[0] != '?') { + widgetDict.custom_width = parseInt(sizes[0]) + } else { + widgetDict.custom_width = 0 + } + if (sizes[1] != '?') { + widgetDict.custom_height = parseInt(sizes[1]) + } else { + widgetDict.custom_height = 0 + } + } else { + if (['Disabled', 'Custom Height'].includes(widgetDict.force_size)) { + widgetDict.custom_width = 0 + } + if (['Disabled', 'Custom Width'].includes(widgetDict.force_size)) { + widgetDict.custom_height = 0 + } + } + } + if (widgetDict.videopreview?.params?.force_size) { + delete widgetDict.videopreview.params.force_size + } + let inputs = {} + for (let i of this.inputs) { + inputs[i.name] = i + } + if (widgetDict.length == undefined) { + for (let w of this.widgets) { + if (w.type =="button") { + continue + } + if (w.name in widgetDict) { + w.value = widgetDict[w.name]; + w.callback?.(w.value) + } else { + //Check for a legacy name that needs migrating + if (this.type in renameDict && w.name in renameDict[this.type]) { + if (renameDict[this.type][w.name] in widgetDict) { + w.value = widgetDict[renameDict[this.type][w.name]] + w.callback?.(w.value) + continue + } + } + //attempt to restore default value + let inputs = LiteGraph.getNodeType(this.type).nodeData.input; + let initialValue = null; + if (inputs?.required?.hasOwnProperty(w.name)) { + if (inputs.required[w.name][1]?.hasOwnProperty("default")) { + initialValue = inputs.required[w.name][1].default; + } else if (inputs.required[w.name][0].length) { + initialValue = inputs.required[w.name][0][0]; + } + } else if (inputs?.optional?.hasOwnProperty(w.name)) { + if (inputs.optional[w.name][1]?.hasOwnProperty("default")) { + initialValue = inputs.optional[w.name][1].default; + } else if (inputs.optional[w.name][0].length) { + initialValue = inputs.optional[w.name][0][0]; + } + } + if (initialValue) { + w.value = initialValue; + w.callback?.(w.value) + } + } + if (w.name in inputs && w.config) { + setWidgetConfig(inputs[w.name], w.config, w) + } + } + } else { + //Saved data was not a map made by this method + //and a conversion dict for it does not exist + //It's likely an array and that has been blindly applied + if (info?.widgets_values?.length != this.widgets.length) { + //Widget could not have restored properly + //Note if multiple node loads fail, only the latest error dialog displays + app.ui.dialog.show("Failed to restore node: " + this.title + "\nPlease remove and re-add it.") + this.bgcolor = "#C00" + } + } + }); + chainCallback(this, "onSerialize", function(info) { + info.widgets_values = {}; + if (!this.widgets) { + //object has no widgets, there is nothing to store + return; + } + for (let w of this.widgets) { + info.widgets_values[w.name] = w.value; + } + }); + }) +} +var helpDOM; +if (!app.helpDOM) { + helpDOM = document.createElement("div"); + app.VHSHelp = helpDOM +} +function initHelpDOM() { + let parentDOM = document.createElement("div"); + parentDOM.className = "VHS_floatinghelp" + document.body.appendChild(parentDOM) + parentDOM.appendChild(helpDOM) + helpDOM.className = "litegraph"; + let scrollbarStyle = document.createElement('style'); + scrollbarStyle.innerHTML = ` + .VHS_floatinghelp { + scrollbar-width: 6px; + scrollbar-color: #0003 #0000; + &::-webkit-scrollbar { + background: transparent; + width: 6px; + } + &::-webkit-scrollbar-thumb { + background: #0005; + border-radius: 20px + } + &::-webkit-scrollbar-button { + display: none; + } + } + .VHS_loopedvideo::-webkit-media-controls-mute-button { + display:none; + } + .VHS_loopedvideo::-webkit-media-controls-fullscreen-button { + display:none; + } + ` + scrollbarStyle.id = 'scroll-properties' + parentDOM.appendChild(scrollbarStyle) + chainCallback(app.canvas, "onDrawForeground", function (ctx, visible_rect){ + let n = helpDOM.node + if (!n || !n?.graph) { + parentDOM.style['left'] = '-5000px' + return + } + //draw : function(ctx, node, widgetWidth, widgetY, height) { + //update widget position, even if off screen + const transform = ctx.getTransform(); + const scale = app.canvas.ds.scale;//gets the litegraph zoom + //calculate coordinates with account for browser zoom + const bcr = app.canvas.canvas.getBoundingClientRect() + const x = transform.e*scale/transform.a + bcr.x; + const y = transform.f*scale/transform.a + bcr.y; + //TODO: text reflows at low zoom. investigate alternatives + Object.assign(parentDOM.style, { + left: (x+(n.pos[0] + n.size[0]+15)*scale) + "px", + top: (y+(n.pos[1]-LiteGraph.NODE_TITLE_HEIGHT)*scale) + "px", + width: "400px", + minHeight: "100px", + maxHeight: "600px", + overflowY: 'scroll', + transformOrigin: '0 0', + transform: 'scale(' + scale + ',' + scale +')', + fontSize: '18px', + backgroundColor: LiteGraph.NODE_DEFAULT_BGCOLOR, + boxShadow: '0 0 10px black', + borderRadius: '4px', + padding: '3px', + zIndex: 3, + position: "absolute", + display: 'inline', + }); + }); + function setCollapse(el, doCollapse) { + if (doCollapse) { + el.children[0].children[0].innerHTML = '+' + Object.assign(el.children[1].style, { + color: '#CCC', + overflowX: 'hidden', + width: '0px', + minWidth: 'calc(100% - 20px)', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + }) + for (let child of el.children[1].children) { + if (child.style.display != 'none'){ + child.origDisplay = child.style.display + } + child.style.display = 'none' + } + } else { + el.children[0].children[0].innerHTML = '-' + Object.assign(el.children[1].style, { + color: '', + overflowX: '', + width: '100%', + minWidth: '', + textOverflow: '', + whiteSpace: '', + }) + for (let child of el.children[1].children) { + child.style.display = child.origDisplay + } + } + } + helpDOM.collapseOnClick = function() { + let doCollapse = this.children[0].innerHTML == '-' + setCollapse(this.parentElement, doCollapse) + } + helpDOM.selectHelp = function(name, value) { + //attempt to navigate to name in help + function collapseUnlessMatch(items,t) { + var match = items.querySelector('[vhs_title="' + t + '"]') + if (!match) { + for (let i of items.children) { + if (i.innerHTML.slice(0,t.length+5).includes(t)) { + match = i + break + } + } + } + if (!match) { + return null + } + //For longer documentation items with fewer collapsable elements, + //scroll to make sure the entirety of the selected item is visible + //This has the unfortunate side effect of trying to scroll the main + //window if the documentation windows is forcibly offscreen, + //but it's easy to simply scroll the main window back and seems to + //have no visual side effects + match.scrollIntoView(false) + window.scrollTo(0,0) + for (let i of items.querySelectorAll('.VHS_collapse')) { + if (i.contains(match)) { + setCollapse(i, false) + } else { + setCollapse(i, true) + } + } + return match + } + let target = collapseUnlessMatch(helpDOM, name) + if (target && value) { + collapseUnlessMatch(target, value) + } + } + let titleContext = document.createElement("canvas").getContext("2d") + titleContext.font = app.canvas.title_text_font; + helpDOM.calculateTitleLength = function(text) { + return titleContext.measureText(text).width + } + helpDOM.addHelp = function(node, nodeType, description) { + if (!description) { + return + } + //Pad computed size for the clickable question mark + let originalComputeSize = node.computeSize + node.computeSize = function() { + let size = originalComputeSize.apply(this, arguments) + if (!this.title) { + return size + } + let title_width = helpDOM.calculateTitleLength(this.title) + size[0] = Math.max(size[0], title_width + LiteGraph.NODE_TITLE_HEIGHT*2) + return size + } + + node.description = description + chainCallback(node, "onDrawForeground", function (ctx) { + if (this?.flags?.collapsed) { + return + } + //draw question mark + ctx.save() + ctx.font = 'bold 20px Arial' + ctx.fillText("?", this.size[0]-17, -8) + ctx.restore() + }) + chainCallback(node, "onMouseDown", function (e, pos, canvas) { + if (this?.flags?.collapsed) { + return + } + //On click would be preferred, but this'll be good enough + if (pos[1] < 0 && pos[0] + LiteGraph.NODE_TITLE_HEIGHT > this.size[0]) { + //corner question mark clicked + if (helpDOM.node == this) { + helpDOM.node = undefined + } else { + helpDOM.node = this; + helpDOM.innerHTML = this.description || "no help provided " + for (let e of helpDOM.querySelectorAll('.VHS_collapse')) { + e.children[0].onclick = helpDOM.collapseOnClick + e.children[0].style.cursor = 'pointer' + } + for (let e of helpDOM.querySelectorAll('.VHS_precollapse')) { + setCollapse(e, true) + } + for (let e of helpDOM.querySelectorAll('.VHS_loopedvideo')) { + e?.play() + } + helpDOM.parentElement.scrollTo(0,0) + } + return true + } + }) + let timeout = null + chainCallback(node, "onMouseMove", function (e, pos, canvas) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + if (helpDOM.node != this) { + return + } + timeout = setTimeout(() => { + let n = this + if (pos[0] > 0 && pos[0] < n.size[0] + && pos[1] > 0 && pos[1] < n.size[1]) { + //TODO: provide help specific to element clicked + let inputRows = Math.max(n.inputs?.length || 0, n.outputs?.length || 0) + if (pos[1] < LiteGraph.NODE_SLOT_HEIGHT * inputRows) { + let row = Math.floor((pos[1] - 7) / LiteGraph.NODE_SLOT_HEIGHT) + if (pos[0] < n.size[0]/2) { + if (row < n.inputs.length) { + helpDOM.selectHelp(n.inputs[row].name) + } + } else { + if (row < n.outputs.length) { + helpDOM.selectHelp(n.outputs[row].name) + } + } + } else { + //probably widget, but widgets have variable height. + let basey = LiteGraph.NODE_SLOT_HEIGHT * inputRows + 6 + for (let w of n.widgets) { + if (w.y) { + basey = w.y + } + let wheight = LiteGraph.NODE_WIDGET_HEIGHT+4 + if (w.computeSize) { + wheight = w.computeSize(n.size[0])[1] + } + if (pos[1] < basey + wheight) { + helpDOM.selectHelp(w.name, w.value) + break + } + basey += wheight + } + } + } + }, 500) + }) + chainCallback(node, "onMouseLeave", function (e, pos, canvas) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + }); + } +} + +function fitHeight(node) { + node.setSize([node.size[0], node.computeSize([node.size[0], node.size[1]])[1]]) + node?.graph?.setDirtyCanvas(true); +} +function startDraggingItems(node, pointer) { + app.canvas.emitBeforeChange() + app.canvas.graph?.beforeChange() + // Ensure that dragging is properly cleaned up, on success or failure. + pointer.finally = () => { + app.canvas.isDragging = false + app.canvas.graph?.afterChange() + app.canvas.emitAfterChange() + } + app.canvas.processSelect(node, pointer.eDown, true) + app.canvas.isDragging = true +} +function processDraggedItems(e) { + if (e.shiftKey || LiteGraph.alwaysSnapToGrid) + app.graph?.snapToGrid(app.canvas.selectedItems) + app.canvas.dirty_canvas = true + app.canvas.dirty_bgcanvas = true + app.canvas.onNodeMoved?.(findFirstNode(app.canvas.selectedItems)) +} +function allowDragFromWidget(widget) { + widget.onPointerDown = function(pointer, node) { + pointer.onDragStart = (pointer) => startDraggingItems(node, pointer) + pointer.onDragEnd = processDraggedItems + app.canvas.dirty_canvas = true + return true + } +} + +async function uploadFile(file) { + //TODO: Add uploaded file to cache with Cache.put()? + try { + // Wrap file in formdata so it includes filename + const body = new FormData(); + const i = file.webkitRelativePath.lastIndexOf('/'); + const subfolder = file.webkitRelativePath.slice(0,i+1) + const new_file = new File([file], file.name, { + type: file.type, + lastModified: file.lastModified, + }); + body.append("image", new_file); + if (i > 0) { + body.append("subfolder", subfolder); + } + const resp = await api.fetchApi("/upload/image", { + method: "POST", + body, + }); + + if (resp.status === 200) { + return resp + } else { + alert(resp.status + " - " + resp.statusText); + } + } catch (error) { + alert(error); + } +} +function applyVHSAudioLinksFix(nodeType, nodeData, audio_slot) { + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linfo) { + if (contype == LiteGraph.OUTPUT && slot == audio_slot) { + if (linfo.type == "VHS_AUDIO") { + this.outputs[audio_slot].type = "AUDIO" + let tnode = app.graph._nodes_by_id[linfo.target_id] + let inputDef = LiteGraph.registered_node_types[tnode.type]?.nodeData?.input + let has_migrated = true + if (inputDef?.required) { + for (let k in inputDef.required) { + if (inputDef.required[k][0] == "VHS_AUDIO") { + has_migrated = false + break + } + } + } + if (has_migrated &&inputDef?.optional) { + for (let k in inputDef.optional) { + if (inputDef.optional[k][0] == "VHS_AUDIO") { + has_migrated = false + break + } + } + } + if (!has_migrated) { + //need to add node and migrate + app.ui.dialog.show("This workflow contains one or more nodes which use the old VHS_AUDIO format. They have been highlighted in red. An AudioToVHSAudio node must be added to convert to this legacy format") + tnode.bgcolor = "#C00" + } + } + } + }) +} +function addVAEOutputToggle(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linfo) { + let slotType = this.inputs[slot]?.type + if (contype == LiteGraph.INPUT && slotType == "VAE") { + if (iscon && linfo) { + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } else if (this.outputs[0].type == "IMAGE") { + this.linkTimeout = setTimeout(() => { + if (this.outputs[0].type != "IMAGE") { + return + } + this.linkTimeout = false + this.disconnectOutput(0); + }, 50) + } + this.outputs[0].name = 'LATENT'; + this.outputs[0].type = 'LATENT'; + } else{ + if (this.outputs[0].type == "LATENT") { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + this.disconnectOutput(0); + }, 50) + } + this.outputs[0].name = "IMAGE"; + this.outputs[0].type = "IMAGE"; + } + } + }); +} +function addVAEInputToggle(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linf) { + if (contype == LiteGraph.INPUT && slot == 3 && this.inputs[3].type == "VAE") { + if (iscon && linf) { + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } else if (this.inputs[0].type == "IMAGE") { + this.linkTimeout = setTimeout(() => { + //workaround for out of order loading + if (this.inputs[0].type != "IMAGE") { + return + } + this.linkTimeout = false + this.disconnectInput(0); + }, 50) + } + this.inputs[0].type = 'LATENT'; + } else { + if (this.inputs[0].type == "LATENT") { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + this.disconnectInput(0); + }, 50) + } + this.inputs[0].type = "IMAGE"; + } + } + }); +} +function cloneType(nodeType, nodeData) { + nodeData.output[0] = "VHS_DUMMY_NONE" + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linf) { + if (contype == LiteGraph.INPUT && slot == 0) { + let new_type = "VHS_DUMMY_NONE" + if (iscon && linf) { + new_type = app.graph.getNodeById(linf.origin_id).outputs[linf.origin_slot].type + } + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } + this.linkTimeout = setTimeout(() => { + if (this.outputs[0].type != new_type) { + this.outputs[0].type = new_type + this.disconnectOutput(0); + } + this.linkTimeout = false + }, 50) + } + }); +} + +function addDateFormatting(nodeType, field, timestamp_widget = false) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const widget = this.widgets.find((w) => w.name === field); + widget.serializeValue = () => { + return applyTextReplacements(app, widget.value); + }; + }); +} +function addTimestampWidget(nodeType, nodeData, targetWidget) { + const newWidgets = {}; + for (let key in nodeData.input.required) { + if (key == targetWidget) { + //TODO: account for duplicate entries? + newWidgets["timestamp_directory"] = ["BOOLEAN", {"default": true}] + } + newWidgets[key] = nodeData.input.required[key]; + } + nodeDta.input.required = newWidgets; + chainCallback(nodeType.prototype, "onNodeCreated", function () { + const directoryWidget = this.widgets.find((w) => w.name === "directory_name"); + const timestampWidget = this.widgets.find((w) => w.name === "timestamp_directory"); + directoryWidget.serializeValue = () => { + if (timestampWidget.value) { + //ignore actual value and return timestamp + return formatDate("yyyy-MM-ddThh:mm:ss", new Date()); + } + return directoryWidget.value + }; + timestampWidget._value = value; + Object.definteProperty(timestampWidget, "value", { + set : function(value) { + this._value = value; + directoryWidget.disabled = value; + }, + get : function() { + return this._value; + } + }); + }); +} +function initializeLoadFormat(nodeType, nodeData) { + if (!nodeData?.input?.optional?.format) { + return + } + chainCallback(nodeType.prototype, "onNodeCreated", function() { + let node = this + let formatWidget = this.widgets.find((w) => w.name === "format") + formatWidget.options.formats = nodeData.input.optional.format[1].formats + let base = {} + for (let widget of this.widgets) { + if (['force_rate', 'custom_width', 'custom_height', + 'frame_load_cap'].includes(widget.name)) { + //TODO: filter these options? + base[widget.name] = widget.options + } + } + chainCallback(formatWidget, "callback", function(value) { + let format = this.options.formats[value] + if (!format) { + return + } + if ('target_rate' in format) { + format.force_rate = {'reset': format.target_rate} + } + if ('dim' in format) { + format.custom_width = {'step': format.dim[0]*10, 'mod': format.dim[1]} + format.custom_height = {'step': format.dim[0]*10, 'mod': format.dim[1]} + if (format.dim[2]) { + format.custom_width.reset = format.dim[2] + } + if (format.dim[3]) { + format.custom_height.reset = format.dim[3] + } + } + if ('frames' in format) { + format.frame_load_cap = {'step': format.frames[0]*10, 'mod': format.frames[1]} + } + for (let widget of node.widgets) { + if (widget.name in base) { + let wasDefault = widget.options?.reset == widget.value + widget.options = Object.assign({}, base[widget.name], format[widget.name]) + if (wasDefault && widget.options.reset != undefined) { + widget.value = widget.options.reset + } + widget.callback(widget.value) + } + } + + }); + let capWidget = this.widgets.find((w) => w.name === "frame_load_cap") + let previewWidget = this.widgets.find((w) => w.name === "videopreview") + capWidget.annotation = (value, width) => { + let max_frames = this.video_query?.loaded?.frames + if (!max_frames || value && value < max_frames) { + return + } + let format = formatWidget.options.formats[formatWidget.value] + const div = format?.frames?.[0] ?? 1 + const mod = format?.frames?.[1] ?? 0 + let loadable_frames = max_frames + if ((max_frames % div) != mod) { + loadable_frames = ((max_frames - mod)/div|0) * div + mod + } + return loadable_frames + "\u21FD" + } + }); +} + +function addUploadWidget(nodeType, nodeData, widgetName, type="video") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === widgetName); + const fileInput = document.createElement("input"); + chainCallback(this, "onRemoved", () => { + fileInput?.remove(); + }); + if (type == "folder") { + Object.assign(fileInput, { + type: "file", + style: "display: none", + webkitdirectory: true, + onchange: async () => { + const directory = fileInput.files[0].webkitRelativePath; + const i = directory.lastIndexOf('/'); + if (i <= 0) { + throw "No directory found"; + } + const path = directory.slice(0,directory.lastIndexOf('/')) + if (pathWidget.options.values.includes(path)) { + alert("A folder of the same name already exists"); + return; + } + let successes = 0; + for(const file of fileInput.files) { + if ((await uploadFile(file)).status == 200) { + successes++; + } else { + //Upload failed, but some prior uploads may have succeeded + //Stop future uploads to prevent cascading failures + //and only add to list if an upload has succeeded + if (successes > 0) { + break + } else { + return; + } + } + } + pathWidget.options.values.push(path); + pathWidget.value = path; + if (pathWidget.callback) { + pathWidget.callback(path) + } + }, + }); + } else if (type == "video") { + Object.assign(fileInput, { + type: "file", + accept: "video/webm,video/mp4,video/x-matroska,image/gif", + style: "display: none", + onchange: async () => { + if (fileInput.files.length) { + let resp = await uploadFile(fileInput.files[0]) + if (resp.status != 200) { + //upload failed and file can not be added to options + return; + } + const filename = (await resp.json()).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + if (pathWidget.callback) { + pathWidget.callback(filename) + } + } + }, + }); + } else if (type == "audio") { + Object.assign(fileInput, { + type: "file", + accept: "audio/mpeg,audio/wav,audio/x-wav,audio/ogg", + style: "display: none", + onchange: async () => { + if (fileInput.files.length) { + let resp = await uploadFile(fileInput.files[0]) + if (resp.status != 200) { + //upload failed and file can not be added to options + return; + } + const filename = (await resp.json()).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + if (pathWidget.callback) { + pathWidget.callback(filename) + } + } + }, + }); + }else { + throw "Unknown upload type" + } + document.body.append(fileInput); + let uploadWidget = this.addWidget("button", "choose " + type + " to upload", "image", () => { + //clear the active click event + app.canvas.node_widget = null + + fileInput.click(); + }); + uploadWidget.options.serialize = false; + }); +} + +function addVideoPreview(nodeType, isInput=true) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var element = document.createElement("div"); + const previewNode = this; + var previewWidget = this.addDOMWidget("videopreview", "preview", element, { + serialize: false, + hideOnZoom: false, + getValue() { + return element.value; + }, + setValue(v) { + element.value = v; + }, + }); + allowDragFromWidget(previewWidget) + previewWidget.computeSize = function(width) { + if (this.aspectRatio && !this.parentEl.hidden) { + let height = (previewNode.size[0]-20)/ this.aspectRatio + 10; + if (!(height > 0)) { + height = 0; + } + this.computedHeight = height + 10; + return [width, height]; + } + return [width, -4];//no loaded src, widget should not display + } + element.addEventListener('contextmenu', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + element.addEventListener('pointerdown', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + element.addEventListener('mousewheel', (e) => { + e.preventDefault() + return app.canvas._mousewheel_callback(e) + }, true); + element.addEventListener('pointermove', (e) => { + e.preventDefault() + return app.canvas._mousemove_callback(e) + }, true); + element.addEventListener('pointerup', (e) => { + e.preventDefault() + return app.canvas._mouseup_callback(e) + }, true); + previewWidget.value = {hidden: false, paused: false, params: {}, + muted: app.ui.settings.getSettingValue("VHS.DefaultMute")} + previewWidget.parentEl = document.createElement("div"); + previewWidget.parentEl.className = "vhs_preview"; + previewWidget.parentEl.style['width'] = "100%" + element.appendChild(previewWidget.parentEl); + previewWidget.videoEl = document.createElement("video"); + previewWidget.videoEl.controls = false; + previewWidget.videoEl.loop = true; + previewWidget.videoEl.muted = true; + previewWidget.videoEl.style['width'] = "100%" + previewWidget.videoEl.addEventListener("loadedmetadata", () => { + + previewWidget.aspectRatio = previewWidget.videoEl.videoWidth / previewWidget.videoEl.videoHeight; + fitHeight(this); + }); + previewWidget.videoEl.addEventListener("error", () => { + //TODO: consider a way to properly notify the user why a preview isn't shown. + previewWidget.parentEl.hidden = true; + fitHeight(this); + }); + previewWidget.videoEl.onmouseenter = () => { + previewWidget.videoEl.muted = previewWidget.value.muted + }; + previewWidget.videoEl.onmouseleave = () => { + previewWidget.videoEl.muted = true; + }; + + previewWidget.imgEl = document.createElement("img"); + previewWidget.imgEl.style['width'] = "100%" + previewWidget.imgEl.hidden = true; + previewWidget.imgEl.onload = () => { + previewWidget.aspectRatio = previewWidget.imgEl.naturalWidth / previewWidget.imgEl.naturalHeight; + fitHeight(this); + }; + previewWidget.parentEl.appendChild(previewWidget.videoEl) + previewWidget.parentEl.appendChild(previewWidget.imgEl) + var timeout = null; + this.updateParameters = (params, force_update) => { + if (!previewWidget.value.params) { + if(typeof(previewWidget.value != 'object')) { + previewWidget.value = {hidden: false, paused: false} + } + previewWidget.value.params = {} + } + Object.assign(previewWidget.value.params, params) + if (!force_update && + app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == 'Never') { + return; + } + if (timeout) { + clearTimeout(timeout); + } + if (force_update) { + previewWidget.updateSource(); + } else { + timeout = setTimeout(() => previewWidget.updateSource(),100); + } + }; + previewWidget.updateSource = function () { + if (this.value.params == undefined) { + return; + } + let params = {} + let advp = app.ui.settings.getSettingValue("VHS.AdvancedPreviews") + Object.assign(params, this.value.params);//shallow copy + params.timestamp = Date.now() + this.parentEl.hidden = this.value.hidden; + if (params.format?.split('/')[0] == 'video' + || advp != 'Never' && (params.format?.split('/')[1] == 'gif') + || params.format == 'folder') { + + this.videoEl.autoplay = !this.value.paused && !this.value.hidden; + //overscale to allow scrolling. Endpoint won't return higher than native + let target_width = (previewNode.size[0]-20)*2 || 256; + let minWidth = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsMinWidth") + if (target_width < minWidth) { + target_width = minWidth + } + if (!params.custom_width || !params.custom_height) { + params.force_size = target_width+"x?" + } else { + let ar = params.custom_width/params.custom_height + params.force_size = target_width+"x"+(target_width/ar) + } + params.deadline = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsDeadline") + if (advp == 'Never' || advp == 'Input Only' && !isInput) { + this.videoEl.src = api.apiURL('/view?' + new URLSearchParams(params)); + } else { + this.videoEl.src = api.apiURL('/vhs/viewvideo?' + new URLSearchParams(params)); + } + this.videoEl.hidden = false; + this.imgEl.hidden = true; + } else if (params.format?.split('/')[0] == 'image'){ + //Is animated image + this.imgEl.src = api.apiURL('/view?' + new URLSearchParams(params)); + this.videoEl.hidden = true; + this.imgEl.hidden = false; + } + delete previewNode.video_query + const doQuery = async () => { + if (!previewWidget?.value?.params?.filename) { + return + } + let qurl = api.apiURL('/vhs/queryvideo?' + new URLSearchParams(previewWidget.value.params)) + let query = undefined + try { + let query_res = await fetch(qurl) + query = await query_res.json() + } catch(e) { + return + } + previewNode.video_query = query + } + doQuery() + } + previewWidget.callback = previewWidget.updateSource + previewWidget.parentEl.appendChild(previewWidget.videoEl) + previewWidget.parentEl.appendChild(previewWidget.imgEl) + }); +} +let copiedPath = undefined +function addPreviewOptions(nodeType) { + chainCallback(nodeType.prototype, "getExtraMenuOptions", function(_, options) { + // The intended way of appending options is returning a list of extra options, + // but this isn't used in widgetInputs.js and would require + // less generalization of chainCallback + let optNew = [] + const previewWidget = this.widgets.find((w) => w.name === "videopreview"); + + let url = null + if (previewWidget.videoEl?.hidden == false && previewWidget.videoEl.src) { + if (['input', 'output', 'temp'].includes(previewWidget.value.params.type)) { + //Use full quality video + url = api.apiURL('/view?' + new URLSearchParams(previewWidget.value.params)); + //Workaround for 16bit png: Just do first frame + url = url.replace('%2503d', '001') + } + } else if (previewWidget.imgEl?.hidden == false && previewWidget.imgEl.src) { + url = previewWidget.imgEl.src; + url = new URL(url); + } + if (this.video_query?.source) { + let info_string = this.video_query.source.size.join('x') + + '@' + this.video_query.source.fps + 'fps ' + + this.video_query.source.frames + 'frames' + optNew.push({content: info_string, disabled: true}) + } + if (url) { + optNew.push( + { + content: "Open preview", + callback: () => { + window.open(url, "_blank") + }, + }, + { + content: "Save preview", + callback: () => { + const a = document.createElement("a"); + a.href = url; + a.setAttribute("download", previewWidget.value.params.filename); + document.body.append(a); + a.click(); + requestAnimationFrame(() => a.remove()); + }, + } + ); + if (previewWidget.value.params.fullpath) { + copiedPath = previewWidget.value.params.fullpath + const blob = new Blob([previewWidget.value.params.fullpath], + { type: 'text/plain'}) + optNew.push({ + content: "Copy output filepath", + callback: async () => { + await navigator.clipboard.write([ + new ClipboardItem({ + 'text/plain': blob + })])} + }); + } + if (previewWidget.value.params.workflow) { + let wParams = {...previewWidget.value.params, + filename: previewWidget.value.params.workflow} + let wUrl = api.apiURL('/view?' + new URLSearchParams(wParams)); + optNew.push({ + content: "Save workflow image", + callback: () => { + const a = document.createElement("a"); + a.href = wUrl; + a.setAttribute("download", previewWidget.value.params.workflow); + document.body.append(a); + a.click(); + requestAnimationFrame(() => a.remove()); + } + }); + } + } + const PauseDesc = (previewWidget.value.paused ? "Resume" : "Pause") + " preview"; + if(previewWidget.videoEl.hidden == false) { + optNew.push({content: PauseDesc, callback: () => { + //animated images can't be paused and are more likely to cause performance issues. + //changing src to a single keyframe is possible, + //For now, the option is disabled if an animated image is being displayed + if(previewWidget.value.paused) { + previewWidget.videoEl?.play(); + } else { + previewWidget.videoEl?.pause(); + } + previewWidget.value.paused = !previewWidget.value.paused; + }}); + } + //TODO: Consider hiding elements if no video preview is available yet. + //It would reduce confusion at the cost of functionality + //(if a video preview lags the computer, the user should be able to hide in advance) + const visDesc = (previewWidget.value.hidden ? "Show" : "Hide") + " preview"; + optNew.push({content: visDesc, callback: () => { + if (!previewWidget.videoEl.hidden && !previewWidget.value.hidden) { + previewWidget.videoEl.pause(); + } else if (previewWidget.value.hidden && !previewWidget.videoEl.hidden && !previewWidget.value.paused) { + previewWidget.videoEl.play(); + } + previewWidget.value.hidden = !previewWidget.value.hidden; + previewWidget.parentEl.hidden = previewWidget.value.hidden; + fitHeight(this); + + }}); + optNew.push({content: "Sync preview", callback: () => { + //TODO: address case where videos have varying length + //Consider a system of sync groups which are opt-in? + for (let p of document.getElementsByClassName("vhs_preview")) { + for (let child of p.children) { + if (child.tagName == "VIDEO") { + child.currentTime=0; + } else if (child.tagName == "IMG") { + child.src = child.src; + } + } + } + }}); + const muteDesc = (previewWidget.value.muted ? "Unmute" : "Mute") + " Preview" + optNew.push({content: muteDesc, callback: () => { + previewWidget.value.muted = !previewWidget.value.muted + }}) + if(options.length > 0 && options[0] != null && optNew.length > 0) { + optNew.push(null); + } + options.unshift(...optNew); + }); +} +function addFormatWidgets(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var formatWidget = null; + var formatWidgetIndex = -1; + for(let i = 0; i < this.widgets.length; i++) { + if (this.widgets[i].name === "format"){ + formatWidget = this.widgets[i]; + formatWidgetIndex = i+1; + break + } + } + let formatWidgetsCount = 0; + chainCallback(formatWidget, "callback", (value) => { + const formats = (LiteGraph.registered_node_types[this.type] + ?.nodeData?.input?.required?.format?.[1]?.formats) + let newWidgets = []; + if (formats?.[value]) { + let formatWidgets = formats[value] + for (let wDef of formatWidgets) { + let type = wDef[1] + if (Array.isArray(type)) { + type = "COMBO" + } + app.widgets[type](this, wDef[0], wDef.slice(1), app) + let w = this.widgets.pop() + if (['INT', 'FLOAT'].includes(type)) { + makeAnnotated(w, wDef.slice(1)) + } + w.config = wDef.slice(1) + newWidgets.push(w) + } + } + let removed = this.widgets.splice(formatWidgetIndex, + formatWidgetsCount, ...newWidgets); + for (let w of removed) { + w?.onRemove?.() + } + fitHeight(this); + formatWidgetsCount = newWidgets.length; + }); + }); +} +function addLoadCommon(nodeType, nodeData) { + addVideoPreview(nodeType); + initializeLoadFormat(nodeType, nodeData) + addPreviewOptions(nodeType); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + //widget.callback adds unused arguements which need culling + const node = this + function update(key) { + return (value) => { + let params = {} + params[key] = value + node?.updateParameters(params) + } + } + let prior_ar = -2 + const widthWidget = this.widgets.find((w) => w.name === "custom_width"); + const heightWidget = this.widgets.find((w) => w.name === "custom_height"); + function updateAR(value) { + let new_ar = -1 + if (widthWidget.value & heightWidget.value) { + new_ar = widthWidget.value / heightWidget.value + } + if (new_ar != prior_ar) { + node?.updateParameters({'custom_width': widthWidget.value, + 'custom_height': heightWidget.value}) + prior_ar = new_ar + } + } + const offsetWidget = this.widgets.find((w) => w.name === "start_time"); + if (offsetWidget) { + offsetWidget.options.step = 10 + } + let widgetMap = {'frame_load_cap': 'frame_load_cap', + 'skip_first_frames': 'skip_first_frames', 'select_every_nth': 'select_every_nth', + 'start_time': 'start_time', 'force_rate': 'force_rate', + 'custom_width': updateAR, 'custom_height': updateAR, + 'image_load_cap': 'image_load_cap', 'skip_first_images': 'skip_first_images' + } + for (let widget of this.widgets) { + if (widget.name in widgetMap) { + if (typeof(widgetMap[widget.name]) == 'function') { + chainCallback(widget, "callback", widgetMap[widget.name]); + } else { + chainCallback(widget, "callback", update(widgetMap[widget.name])) + } + } + if (widget.type != "button") { + widget.callback?.(widget.value) + } + } + }); +} + +function path_stem(path) { + let i = path.lastIndexOf("/"); + if (i >= 0) { + return [path.slice(0,i+1),path.slice(i+1)]; + } + return ["",path]; +} +function searchBox(event, [x,y], node) { + //Ensure only one dialogue shows at a time + if (this.prompt) + return; + this.prompt = true; + + let pathWidget = this; + let dialog = document.createElement("div"); + dialog.className = "litegraph litesearchbox graphdialog rounded" + dialog.innerHTML = 'Path
' + dialog.close = () => { + dialog.remove(); + } + document.body.append(dialog); + if (app.canvas.ds.scale > 1) { + dialog.style.transform = "scale(" + app.canvas.ds.scale + ")"; + } + var name_element = dialog.querySelector(".name"); + var input = dialog.querySelector(".value"); + var options_element = dialog.querySelector(".helper"); + input.value = pathWidget.value; + + var timeout = null; + let last_path = null; + let extensions = pathWidget.options.vhs_path_extensions + + input.addEventListener("keydown", (e) => { + dialog.is_modified = true; + if (e.keyCode == 27) { + //ESC + dialog.close(); + } else if (e.keyCode == 13 && e.target.localName != "textarea") { + pathWidget.value = input.value; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + dialog.close(); + } else { + if (e.keyCode == 9) { + //TAB + input.value = last_path + options_element.firstChild.innerText; + e.preventDefault(); + e.stopPropagation(); + } else if (e.ctrlKey && (e.keyCode == 87 || e.keyCode == 66)) { + //Ctrl+w or Ctrl+b + //most browsers won't support, but it's good QOL for those that do + input.value = path_stem(input.value.slice(0,-1))[0] + e.preventDefault(); + e.stopPropagation(); + } else if (e.ctrlKey && e.keyCode == 71) { + //Ctrl+g + //Temporarily disables extension filtering to show all files + e.preventDefault(); + e.stopPropagation(); + extensions = undefined + last_path = null; + } + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(updateOptions, 10); + return; + } + this.prompt=false; + e.preventDefault(); + e.stopPropagation(); + }); + + var button = dialog.querySelector("button"); + button.addEventListener("click", (e) => { + pathWidget.value = input.value; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + //unsure why dirty is set here, but not on enter-key above + node.graph.setDirtyCanvas(true); + dialog.close(); + this.prompt = false; + }); + var rect = app.canvas.canvas.getBoundingClientRect(); + var offsetx = -20; + var offsety = -20; + if (rect) { + offsetx -= rect.left; + offsety -= rect.top; + } + + if (event) { + dialog.style.left = event.clientX + offsetx + "px"; + dialog.style.top = event.clientY + offsety + "px"; + } else { + dialog.style.left = canvas.width * 0.5 + offsetx + "px"; + dialog.style.top = canvas.height * 0.5 + offsety + "px"; + } + //Search code + let options = [] + function addResult(name, isDir) { + let el = document.createElement("div"); + el.innerText = name; + el.className = "litegraph lite-search-item"; + if (isDir) { + el.className += " is-dir"; + el.addEventListener("click", (e) => { + input.value = last_path+name + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(updateOptions, 10); + }); + } else { + el.addEventListener("click", (e) => { + pathWidget.value = last_path+name; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + dialog.close(); + pathWidget.prompt = false; + }); + } + options_element.appendChild(el); + } + async function updateOptions() { + timeout = null; + let [path, remainder] = path_stem(input.value); + if (last_path != path) { + //fetch options. Must block execution here, so update should be async? + let params = {path : path} + if (extensions) { + params.extensions = extensions + } + let optionsURL = api.apiURL('/vhs/getpath?' + new URLSearchParams(params)); + try { + let resp = await fetch(optionsURL); + options = await resp.json(); + options = options.map((o) => o.replace('.','\0')) + options = options.sort() + options = options.map((o) => o.replace('\0','.')) + } catch(e) { + options = [] + } + last_path = path; + } + options_element.innerHTML = ''; + //filter options based on remainder + for (let option of options) { + if (option.startsWith(remainder)) { + let isDir = option.endsWith('/') + addResult(option, isDir); + } + } + } + + setTimeout(async function() { + input.focus(); + await updateOptions(); + }, 10); + + return dialog; +} +function button_action(widget) { + if ( + widget.options?.reset == undefined && + widget.options?.disable == undefined + ) { + return 'None' + } + if ( + widget.options.reset != undefined && + widget.value != widget.options.reset + ) { + return 'Reset' + } + if ( + widget.options.disable != undefined && + widget.value != widget.options.disable + ) { + return 'Disable' + } + if (widget.options.reset != undefined) { + return 'No Reset' + } + return 'No Disable' +} +function inner_value_change(widget, value, node, pos) { + widget.value = value + if (widget.options?.property && widget.options.property in node.properties) { + node.setProperty(widget.options.property, value) + } + if (widget.callback) { + widget.callback(widget.value, app.canvas, node, event) + } +} +function drawAnnotated(ctx, node, widget_width, y, H) { + const litegraph_base = LiteGraph + const show_text = app.canvas.ds.scale >= (app.canvas.low_quality_zoom_threshold ?? 0.5) + const margin = 15 + ctx.textAlign = 'left' + ctx.strokeStyle = litegraph_base.WIDGET_OUTLINE_COLOR + ctx.fillStyle = litegraph_base.WIDGET_BGCOLOR + ctx.beginPath() + if (show_text) + ctx.roundRect(margin, y, widget_width - margin * 2, H, [H * 0.5]) + else ctx.rect(margin, y, widget_width - margin * 2, H) + ctx.fill() + if (show_text) { + const monospace_font = ctx.font.split(' ')[0] + ' monospace' + if (!this.disabled) ctx.stroke() + const button = button_action(this) + if (button != 'None') { + ctx.save() + ctx.font = monospace_font + if (button.startsWith('No ')) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + } else { + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + } + if (button.endsWith('Reset')) { + ctx.fillText('\u21ba', widget_width - margin - 33, y + H * 0.7) + } else { + ctx.fillText('\u2298', widget_width - margin - 33, y + H * 0.7) + } + ctx.restore() + } + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + if (!this.disabled) { + ctx.beginPath() + ctx.moveTo(margin + 16, y + 5) + ctx.lineTo(margin + 6, y + H * 0.5) + ctx.lineTo(margin + 16, y + H - 5) + ctx.fill() + ctx.beginPath() + ctx.moveTo(widget_width - margin - 16, y + 5) + ctx.lineTo(widget_width - margin - 6, y + H * 0.5) + ctx.lineTo(widget_width - margin - 16, y + H - 5) + ctx.fill() + } + ctx.fillStyle = litegraph_base.WIDGET_SECONDARY_TEXT_COLOR + ctx.fillText(this.label || this.name, margin * 2 + 5, y + H * 0.7) + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + ctx.textAlign = 'right' + const text = Number(this.value).toFixed( + this.options.precision !== undefined ? this.options.precision : 3 + ) + let value_offset = margin * 2 + 20 + if (this.options.unit) { + ctx.save() + ctx.font = monospace_font + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + ctx.fillText(this.options.unit, widget_width - value_offset, y + H * 0.7) + value_offset += ctx.measureText(this.options.unit).width + ctx.restore() + } + ctx.fillText(text, widget_width - value_offset, y + H * 0.7) + + const value_width = ctx.measureText(text).width + const name_width = ctx.measureText(this.label || this.name).width + const free_width = + widget_width - (value_width + name_width + value_offset + 40) + + let annotation = '' + if (this.annotation) { + annotation = this.annotation(this.value, free_width) + } else if ( + this.options.annotation && + this.value in this.options.annotation + ) { + annotation = this.options.annotation[this.value] + } + if (annotation) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + const annotation_width = ctx.measureText(annotation).width + if (free_width < annotation_width) { + //Enforcing a widget's requested minimum width seems ill supported + //hiding annotation is best, but existence should still be indicated + annotation = '…' + } + ctx.fillText( + annotation, + widget_width - 5 - value_width - value_offset, + y + H * 0.7 + ) + } + } +} +function mouseAnnotated(event, [x, y], node) { + const button = button_action(this) + const widget_width = this.width || node.size[0] + const old_value = this.value + const delta = x < 40 ? -1 : x > widget_width - 48 ? 1 : 0 + const margin = 15 + var allow_scroll = true + if (delta) { + if (x > -3 && x < widget_width + 3) { + allow_scroll = false + } + } + if (allow_scroll && event.type == 'pointermove') { + if (event.deltaX) + this.value += event.deltaX * 0.1 * (this.options.step || 1) + if (this.options.min != null && this.value < this.options.min) { + this.value = this.options.min + } + if (this.options.max != null && this.value > this.options.max) { + this.value = this.options.max + } + } else if (event.type == 'pointerdown') { + if (x > widget_width - margin - 34 && x < widget_width - margin - 18) { + if (button == 'Reset') { + this.value = this.options.reset + } else if (button == 'Disable') { + this.value = this.options.disable + } + } else { + this.value += delta * 0.1 * (this.options.step || 1) + if (this.options.min != null && this.value < this.options.min) { + this.value = this.options.min + } + if (this.options.max != null && this.value > this.options.max) { + this.value = this.options.max + } + } + } //end mousedown + else if (event.type == 'pointerup') { + if (event.click_time < 200 && delta == 0) { + const d_callback = (v) => { + this.value = Number(v) + inner_value_change(this, this.value, node, [x, y]) + } + const dialog = app.canvas.prompt( + 'Value', + this.value, + d_callback, + event + ) + const input = dialog.querySelector(".value") + input.addEventListener("keydown", (e) => { + if (e.keyCode == 9) { + e.preventDefault(); + e.stopPropagation(); + d_callback(input.value) + dialog.close() + node?.graph?.setDirtyCanvas(true); + let i=0 + for (;i w.name == 'vhslatentpreview') + if (i >= 0) { + n.widgets.splice(i,1)[0].onRemove() + } + } + latentPreviewNodes = new Set() + } + }, + }, + { + id: "VHS.LatentPreviewRate", + category: ['🎥🅥🅗🅢', 'Sampling', 'Latent Preview Rate'], + name: "Playback rate override.", + type: 'number', + attrs: { + min: 0, + step: 1, + max: 60 + }, + tooltip: + 'Force a specific frame rate for the playback of latent frames. This should not be confused with the output frame rate and will not match for video models.', + defaultValue: 0, + }, + { + id: 'VHS.MetadataImage', + category: ['🎥🅥🅗🅢', 'Output', 'MetadataImage'], + name: 'Save png of first frame for metadata', + type: 'boolean', + defaultValue: true, + }, + { + id: 'VHS.KeepIntermediate', + category: ['🎥🅥🅗🅢', 'Output', 'Keep Intermediate'], + name: 'Keep required intermediate files after sucessful execution', + type: 'boolean', + defaultValue: true, + }, + ], + + async beforeRegisterNodeDef(nodeType, nodeData, app) { + if(nodeData?.name?.startsWith("VHS_")) { + useKVState(nodeType); + if (nodeData.description) { + let description = nodeData.description + let el = document.createElement("div") + el.innerHTML = description + if (!el.children.length) { + //Is plaintext. Do minor convenience formatting + let chunks = description.split('\n') + nodeData.description = chunks[0] + description = chunks.join('
') + } else { + nodeData.description = el.querySelector('#VHS_shortdesc')?.innerHTML || el.children[1]?.firstChild?.innerHTML + } + chainCallback(nodeType.prototype, "onNodeCreated", function () { + helpDOM.addHelp(this, nodeType, description) + this.setSize(this.computeSize()) + }) + } + chainCallback(nodeType.prototype, "onNodeCreated", function () { + let new_widgets = [] + if (this.widgets) { + for (let w of this.widgets) { + let input = this.constructor.nodeData.input + let config = input?.required[w.name] ?? input.optional[w.name] + if (!config) { + continue + } + if (w?.type == "text" && config[1].vhs_path_extensions) { + new_widgets.push(app.widgets.VHSPATH({}, w.name, ["VHSPATH", config[1]])); + } else if (w?.type == "number") { + new_widgets.push(makeAnnotated(w, config)) + } else { + new_widgets.push(w) + } + } + this.widgets = new_widgets; + } + const originalAddInput = this.addInput; + this.addInput = function(name, type, options) { + if (options.widget) { + //Is Converted Widget + const widget = this.widgets.find((w) => w.name == name) + if (widget?.config) { + //Has override for type + type = widget.config[0] + if (type == 'FLOAT') { + type = "FLOAT,INT" + } + const symbol = Object.getOwnPropertySymbols(options.widget)[0] + options.widget[symbol] = () => widget.config + } + } + return originalAddInput.apply(this, [name, type, options]) + } + }); + } + if (nodeData?.name == "VHS_LoadImages") { + addUploadWidget(nodeType, nodeData, "directory", "folder"); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "directory"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let params = {filename : value, type : "input", format: "folder"}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadImagesPath") { + addUploadWidget(nodeType, nodeData, "directory", "folder"); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "directory"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let params = {filename : value, type : "path", format: "folder"}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadVideo" || nodeData?.name == "VHS_LoadVideoFFmpeg") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "video"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let parts = ["input", value]; + let extension_index = parts[1].lastIndexOf("."); + let extension = parts[1].slice(extension_index+1); + let format = "video" + if (["gif", "webp", "avif"].includes(extension)) { + format = "image" + } + format += "/" + extension; + let params = {filename : parts[1], type : parts[0], format: format}; + this.updateParameters(params, true); + }); + }); + addUploadWidget(nodeType, nodeData, "video"); + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + applyVHSAudioLinksFix(nodeType, nodeData, 2) + } else if (nodeData?.name == "VHS_LoadAudioUpload") { + addUploadWidget(nodeType, nodeData, "audio", "audio"); + applyVHSAudioLinksFix(nodeType, nodeData, 0) + } else if (nodeData?.name == "VHS_LoadAudio"){ + applyVHSAudioLinksFix(nodeType, nodeData, 0) + } else if (nodeData?.name == "VHS_LoadVideoPath" || nodeData?.name == "VHS_LoadVideoFFmpegPath") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "video"); + chainCallback(pathWidget, "callback", (value) => { + let extension_index = value.lastIndexOf("."); + let extension = value.slice(extension_index+1); + let format = "video" + if (["gif", "webp", "avif"].includes(extension)) { + format = "image" + } + format += "/" + extension; + let params = {filename : value, type: "path", format: format}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + applyVHSAudioLinksFix(nodeType, nodeData, 2) + } else if (nodeData?.name == "VHS_LoadImagePath") { + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "image"); + chainCallback(pathWidget, "callback", (value) => { + let extension_index = value.lastIndexOf("."); + let extension = value.slice(extension_index+1); + let format = "video" + "/" + extension; + let params = {filename : value, type: "path", format: format}; + this.updateParameters(params, true); + }); + }); + } else if (nodeData?.name == "VHS_VideoCombine") { + addDateFormatting(nodeType, "filename_prefix"); + chainCallback(nodeType.prototype, "onExecuted", function(message) { + if (message?.gifs) { + this.updateParameters(message.gifs[0], true); + } + }); + addVideoPreview(nodeType, false); + addPreviewOptions(nodeType); + addFormatWidgets(nodeType, nodeData); + addVAEInputToggle(nodeType, nodeData) + } else if (nodeData?.name == "VHS_SaveImageSequence") { + //Disabled for safety as VHS_SaveImageSequence is not currently merged + //addDateFormating(nodeType, "directory_name", timestamp_widget=true); + //addTimestampWidget(nodeType, nodeData, "directory_name") + } else if (nodeData?.name == "VHS_BatchManager") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.widgets.push({name: "count", type: "dummy", value: 0, + computeSize: () => {return [0,-4]}, + afterQueued: function() {this.value++;}}); + }); + } else if (nodeData?.name == "VHS_Unbatch") { + cloneType(nodeType, nodeData) + } else if (nodeData?.name == "VHS_SelectLatest") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.isVirtualNode = true + chainCallback(this, "onConnectionsChange", function (contype, slot, iscon, linfo) { + if (iscon) { + this.update_links() + } + }) + + this.update_links = function(extraLinks = []) { + if (!this.outputs[0].links?.length) return + + function get_links(node) { + let links = [] + for (const l of node.outputs[0].links) { + const linkInfo = app.graph.links[l] + const n = node.graph.getNodeById(linkInfo.target_id) + if (n.type == 'Reroute') { + links = links.concat(get_links(n)) + } else { + links.push(l) + } + } + return links + } + + let links = [ + ...get_links(this).map((l) => app.graph.links[l]), + ...extraLinks + ] + let v = this.latest_file + if (!v) { + return + } + + // 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] + const widgetName = input.widget.name + const widget = node.widgets.find((w) => w.name === widgetName) + if (widget) { + widget.value = v + if (widget.callback) { + widget.callback( widget.value, app.canvas, + node, app.canvas.graph_mouse, {}) + } + } + } + } + let fetch_files = async () => { + let [path, remainder] = path_stem(this.widgets[0].value) + let params = {path : path} + let optionsURL = api.apiURL('/vhs/getpath?' + new URLSearchParams(params)); + let options + try { + let resp = await fetch(optionsURL); + options = await resp.json(); + } catch(e) { + options = [] + } + options = options.filter((file) => file.startsWith(remainder) && file.endsWith(this.widgets[1].value)) + if (options.length && this.latest_file != options[options.length-1]) { + this.latest_file = path + options[options.length-1] + this.update_links() + } + } + this.widgets[0].callback = fetch_files + this.widgets[1].callback = fetch_files + this.onPromptExecuted = fetch_files + this.applyToGraph = this.update_links + }) + } + }, + async getCustomWidgets() { + return { + VHSPATH(node, inputName, inputData) { + let w = { + name : inputName, + type : "VHS.PATH", + value : "", + draw : function(ctx, node, widget_width, y, H) { + //Adapted from litegraph.core.js:drawNodeWidgets + var show_text = app.canvas.ds.scale >= (app.canvas.low_quality_zoom_threshold ?? 0.5) + var margin = 15; + var text_color = LiteGraph.WIDGET_TEXT_COLOR; + var secondary_text_color = LiteGraph.WIDGET_SECONDARY_TEXT_COLOR; + ctx.textAlign = "left"; + ctx.strokeStyle = LiteGraph.WIDGET_OUTLINE_COLOR; + ctx.fillStyle = LiteGraph.WIDGET_BGCOLOR; + ctx.beginPath(); + if (show_text) + ctx.roundRect(margin, y, widget_width - margin * 2, H, [H * 0.5]); + else + ctx.rect( margin, y, widget_width - margin * 2, H ); + ctx.fill(); + if (show_text) { + if(!this.disabled) + ctx.stroke(); + ctx.save(); + ctx.beginPath(); + ctx.rect(margin, y, widget_width - margin * 2, H); + ctx.clip(); + + //ctx.stroke(); + ctx.fillStyle = secondary_text_color; + const label = this.label || this.name; + if (label != null) { + ctx.fillText(label, margin * 2, y + H * 0.7); + } + ctx.fillStyle = this.value ? text_color : '#777'; + ctx.textAlign = "right"; + let disp_text = this.format_path(String(this.value || this.options.placeholder)) + ctx.fillText(disp_text, widget_width - margin * 2, y + H * 0.7); //30 chars max + ctx.restore(); + } + }, + mouse : searchBox, + options : {}, + format_path : function(path, len=30) { + //Formats the full path to be under 30 characters + if (path.length <= len) { + return path; + } + let filename = path_stem(path)[1] + if (filename.length > len-2) { + //may all fit, but can't squeeze more info + return filename.substr(0,len); + } + //TODO: find solution for windows, path[1] == ':'? + let isAbs = path[0] == '/'; + let partial = path.substr(path.length - (isAbs ? len-2:len-1)) + let cutoff = partial.indexOf('/'); + if (cutoff < 0) { + //Can occur, but there isn't a nicer way to format + return path.substr(path.length-len); + } + return (isAbs ? '/…':'…') + partial.substr(cutoff); + + } + }; + if (inputData.length > 1) { + w.options = inputData[1] + if (inputData[1].default) { + w.value = inputData[1].default; + } + } + + if (!node.widgets) { + node.widgets = []; + } + node.widgets.push(w); + return w; + }, + VHSFLOAT(node, inputName, inputData) { + let w = app.widgets.FLOAT(node, inputName, inputData, app) + return makeAnnotated(w, inputData); + }, + VHSINT(node, inputName, inputData) { + let w = app.widgets.INT(node, inputName, inputData, app) + return makeAnnotated(w, inputData); + } + } + }, + async loadedGraphNode(node) { + //Check and migrate inputs named batch_manager from old workflows + if (node.type?.startsWith("VHS_") && node.inputs) { + const batchInput = node.inputs.find((i) => i.name == "batch_manager") + if (batchInput) { + batchInput.name = "meta_batch" + } + } + }, + async beforeConfigureGraph(graphData, missingNodeTypes) { + if(helpDOM?.node) { + helpDOM.node = undefined + } + }, + async setup() { + //cg-use-everywhere link workaround + //particularly invasive, plan to remove + let originalGraphToPrompt = app.graphToPrompt + let graphToPrompt = async function() { + let res = await originalGraphToPrompt.apply(this, arguments); + for (let n of app.graph._nodes) { + if (n?.type?.startsWith('VHS_LoadVideo')) { + if (!n?.inputs[1]?.link && res?.output[n.id]?.inputs?.vae) { + delete res.output[n.id].inputs.vae + } + } + } + res.workflow.extra['VHS_latentpreview'] = app.ui.settings.getSettingValue("VHS.LatentPreview") + res.workflow.extra['VHS_latentpreviewrate'] = app.ui.settings.getSettingValue("VHS.LatentPreviewRate") + res.workflow.extra['VHS_MetadataImage'] = app.ui.settings.getSettingValue("VHS.MetadataImage") + res.workflow.extra['VHS_KeepIntermediate'] = app.ui.settings.getSettingValue("VHS.KeepIntermediate") + return res + } + app.graphToPrompt = graphToPrompt + //Add a handler for pasting video data + document.addEventListener('paste', async (e) => { + if (!e.target.classList.contains('litegraph') && + !e.target.classList.contains('graph-canvas-container')) { + return + } + let data = e.clipboardData || window.clipboardData + let filepath = data.getData('text/plain') + let video + for (const item of data.items) { + if (item.type.startsWith('video/')) { + video = item + break + } + } + if (filepath && copiedPath == filepath) { + //Add a Load Video (Path) and populate filepath + const pastedNode = LiteGraph.createNode('VHS_LoadVideoPath') + app.graph.add(pastedNode) + pastedNode.pos[0] = app.canvas.graph_mouse[0] + pastedNode.pos[1] = app.canvas.graph_mouse[1] + pastedNode.widgets[0].value = filepath + pastedNode.widgets[0].callback?.(filepath) + } else if (video && false) { + //Disabled due to lack of testing + //Add a Load Video (Upload), then upload the file, then select the file + const pastedNode = LiteGraph.createNode('VHS_LoadVideo') + app.graph.add(pastedNode) + pastedNode.pos[0] = app.canvas.graph_mouse[0] + pastedNode.pos[1] = app.canvas.graph_mouse[1] + const pathWidget = pastedNode.widgets[0] + //TODO: upload to pasted dir? + const blob = video.getAsFile() + const resp = await uploadFile(blob) + if (resp.status != 200) { + //upload failed and file can not be added to options + return; + } + const filename = (await resp.json()).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + pathWidget.callback?.(filename) + } else { + return + } + e.preventDefault() + e.stopImmediatePropagation() + return false + }, true) + }, + async init() { + if (app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == true) { + app.ui.settings.setSettingValue("VHS.AdvancedPreviews", 'Always') + } + if (app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == false) { + app.ui.settings.setSettingValue("VHS.AdvancedPreviews", 'Never') + } + if (app.VHSHelp != helpDOM) { + helpDOM = app.VHSHelp + } else { + initHelpDOM() + } + let e = app.extensions.filter((w) => w.name == 'UVR5.AudioPreviewer') + if (e.length) { + let orig = e[0].beforeRegisterNodeDef + e[0].beforeRegisterNodeDef = function(nodeType, nodeData, app) { + if(!nodeData?.name?.startsWith("VHS_")) { + return orig.apply(this, arguments); + } + } + } + }, +}); +let previewImages = [] +let animateInterval +api.addEventListener('executing', ({ detail }) => { + if (detail === null) { + for (let node of app.graph._nodes) { + if (node.type.startsWith("VHS_")) { + node.onPromptExecuted?.() + } + } + } +}) +api.addEventListener('VHS_latentpreview', ({ detail }) => { + let setting = app.ui.settings.getSettingValue("VHS.LatentPreview") + if (!setting) { + return + } + let id = app.runningNodeId + if (id == null) { + return + } + let previewNode = app.graph.getNodeById(id) + latentPreviewNodes.add(previewNode) + let previewWidget = previewNode.widgets.find((w) => w.name == "vhslatentpreview") + if (!previewWidget) { + let canvasEl = document.createElement("canvas") + previewWidget = previewNode.addDOMWidget("vhslatentpreview", "vhscanvas", canvasEl, { + serialize: false, + hideOnZoom: false, + }); + allowDragFromWidget(previewWidget) + canvasEl.addEventListener('contextmenu', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + canvasEl.addEventListener('pointerdown', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + canvasEl.addEventListener('mousewheel', (e) => { + e.preventDefault() + return app.canvas._mousewheel_callback(e) + }, true); + canvasEl.addEventListener('pointermove', (e) => { + e.preventDefault() + return app.canvas._mousemove_callback(e) + }, true); + canvasEl.addEventListener('pointerup', (e) => { + e.preventDefault() + return app.canvas._mouseup_callback(e) + }, true); + + previewWidget.computeSize = function(width) { + if (this.aspectRatio) { + let height = (previewNode.size[0]-20)/ this.aspectRatio + 10; + if (!(height > 0)) { + height = 0; + } + this.computedHeight = height + 10; + return [width, height]; + } + return [width, -4];//no loaded src, widget should not display + } + } + let firstPreview = true + let ctx + previewImages = [] + previewImages.length = detail.length + let displayIndex = 0 + if (animateInterval) { + clearTimeout(animateInterval) + } + animateInterval = setInterval(() => { + if (app.runningNodeId != id) { + clearTimeout(animateInterval) + animateInterval = undefined + return + } + if (!previewImages[displayIndex]) { + return + } + let canvasEl = previewWidget.element + if (!ctx) { + previewWidget.aspectRatio = previewImages[displayIndex].width / previewImages[displayIndex].height + canvasEl.width = previewImages[displayIndex].width + canvasEl.height = previewImages[displayIndex].height + ctx = canvasEl.getContext("2d") + fitHeight(previewNode) + } + ctx.drawImage(previewImages[displayIndex],0,0) + displayIndex = (displayIndex + 1) % previewImages.length + }, 1000/detail.rate); +}); +api.addEventListener('b_preview', async (e) => { + if (!animateInterval) { + return + } + e.preventDefault() + e.stopImmediatePropagation() + e.stopPropagation() + const ab = await e.detail.slice(0,8).arrayBuffer() + const index = new DataView(ab).getUint32(4) + previewImages[index] = await window.createImageBitmap(e.detail.slice(8)) + return false +}, true); diff --git a/docs/hel-892/multivideo-reference/concat-tree.json b/docs/hel-892/multivideo-reference/concat-tree.json new file mode 100644 index 00000000..41de892c --- /dev/null +++ b/docs/hel-892/multivideo-reference/concat-tree.json @@ -0,0 +1,483 @@ +{ + "sha": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "tree": [ + { + "path": ".github", + "mode": "040000", + "type": "tree", + "sha": "1b2304151396baf6d8de2e7edbffc59016b21781", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/1b2304151396baf6d8de2e7edbffc59016b21781" + }, + { + "path": ".github/FUNDING.yml", + "mode": "100644", + "type": "blob", + "sha": "f475f425424d9172d049b4c016ebe8817987149e", + "size": 62, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f475f425424d9172d049b4c016ebe8817987149e" + }, + { + "path": ".github/workflows", + "mode": "040000", + "type": "tree", + "sha": "ab4de901c29628437fbf1394007d0c6d827da426", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/ab4de901c29628437fbf1394007d0c6d827da426" + }, + { + "path": ".github/workflows/publish.yml", + "mode": "100644", + "type": "blob", + "sha": "e155f5f40e46fa83942dee5a9460e8093f3b4208", + "size": 644, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e155f5f40e46fa83942dee5a9460e8093f3b4208" + }, + { + "path": ".gitignore", + "mode": "100644", + "type": "blob", + "sha": "d462a62fdd67858a783934170db4091ea95eb18f", + "size": 115, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/d462a62fdd67858a783934170db4091ea95eb18f" + }, + { + "path": "LICENSE", + "mode": "100644", + "type": "blob", + "sha": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "size": 35149, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "path": "README.md", + "mode": "100644", + "type": "blob", + "sha": "6371f5014823bc66ffd1f378fea8715a7dd590ff", + "size": 2873, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/6371f5014823bc66ffd1f378fea8715a7dd590ff" + }, + { + "path": "__init__.py", + "mode": "100644", + "type": "blob", + "sha": "0dfde533b157265472d32774ced0741ce75a8825", + "size": 19651, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/0dfde533b157265472d32774ced0741ce75a8825" + }, + { + "path": "custom_dimensions_example.json", + "mode": "100644", + "type": "blob", + "sha": "5c4814d377d44916a14b4d4a83b7cba72ae2958b", + "size": 329, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/5c4814d377d44916a14b4d4a83b7cba72ae2958b" + }, + { + "path": "docs", + "mode": "040000", + "type": "tree", + "sha": "527c09d24c9350ac085ad74a57181baced6892c6", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/527c09d24c9350ac085ad74a57181baced6892c6" + }, + { + "path": "docs/images", + "mode": "040000", + "type": "tree", + "sha": "c6c35df204fd98d771b05fcaaef9bda84be508a9", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/c6c35df204fd98d771b05fcaaef9bda84be508a9" + }, + { + "path": "docs/images/2024-04-03_20_49_29-ComfyUI.png", + "mode": "100644", + "type": "blob", + "sha": "43304322e9bad65a4d0bf5d216e3493d3bf67fc3", + "size": 176158, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/43304322e9bad65a4d0bf5d216e3493d3bf67fc3" + }, + { + "path": "docs/images/319121566-05f66385-7568-4b1f-8bbc-11053660b02f.png", + "mode": "100644", + "type": "blob", + "sha": "e749239c1c4ffd5ab29b51695dd8d8b51ed3597f", + "size": 94315, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e749239c1c4ffd5ab29b51695dd8d8b51ed3597f" + }, + { + "path": "docs/images/319121636-706b5081-9120-4a29-bd76-901691ada688.png", + "mode": "100644", + "type": "blob", + "sha": "b53ad666ff060d87971f3962e74101f0cb2a5c3f", + "size": 24783, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b53ad666ff060d87971f3962e74101f0cb2a5c3f" + }, + { + "path": "example_workflows", + "mode": "040000", + "type": "tree", + "sha": "894251e58277cabf8b1199ce2428966416ff3493", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/894251e58277cabf8b1199ce2428966416ff3493" + }, + { + "path": "example_workflows/leapfusion_hunyuuanvideo_i2v_native_testing.json", + "mode": "100644", + "type": "blob", + "sha": "134a83788815d04b5574a807db67eb6e45bf9263", + "size": 20396, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/134a83788815d04b5574a807db67eb6e45bf9263" + }, + { + "path": "fonts", + "mode": "040000", + "type": "tree", + "sha": "0a3834f1992ff10f4d4ea1c783ce8db0874c29da", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/0a3834f1992ff10f4d4ea1c783ce8db0874c29da" + }, + { + "path": "fonts/FreeMono.ttf", + "mode": "100644", + "type": "blob", + "sha": "7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a", + "size": 343980, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a" + }, + { + "path": "fonts/FreeMonoBoldOblique.otf", + "mode": "100644", + "type": "blob", + "sha": "dac575acbd08b6fa36d9aac4acd0b2d7ea140eec", + "size": 237600, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dac575acbd08b6fa36d9aac4acd0b2d7ea140eec" + }, + { + "path": "fonts/TTNorms-Black.otf", + "mode": "100644", + "type": "blob", + "sha": "39f96c80af61c25ca8c35b25b3cb21673cb0d037", + "size": 152736, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/39f96c80af61c25ca8c35b25b3cb21673cb0d037" + }, + { + "path": "intrinsic_loras", + "mode": "040000", + "type": "tree", + "sha": "55376ee40a826cffd59b40a5f6c2ae16e4b86321", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/55376ee40a826cffd59b40a5f6c2ae16e4b86321" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_albedo.safetensors", + "mode": "100644", + "type": "blob", + "sha": "4f34d153e2bac1868d08ac25bf96c5773c22ac4f", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/4f34d153e2bac1868d08ac25bf96c5773c22ac4f" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_depth.safetensors", + "mode": "100644", + "type": "blob", + "sha": "34fec4ce0bef3b34975a5713f001829a62ae97ae", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/34fec4ce0bef3b34975a5713f001829a62ae97ae" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_normal.safetensors", + "mode": "100644", + "type": "blob", + "sha": "e3ae0479fa74996d6efd9bf7433e87ac4f4caba1", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e3ae0479fa74996d6efd9bf7433e87ac4f4caba1" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_shading.safetensors", + "mode": "100644", + "type": "blob", + "sha": "68a0c76fe7d6a394f0177d02e6423b57c2a21d17", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/68a0c76fe7d6a394f0177d02e6423b57c2a21d17" + }, + { + "path": "intrinsic_loras/intrinsic_loras.txt", + "mode": "100644", + "type": "blob", + "sha": "62ee933763a8aa9e1b232d228717ac754ab22751", + "size": 103, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/62ee933763a8aa9e1b232d228717ac754ab22751" + }, + { + "path": "kjweb_async", + "mode": "040000", + "type": "tree", + "sha": "612b1433e20f4c4e891e8cc7d8b03a0d771aff62", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/612b1433e20f4c4e891e8cc7d8b03a0d771aff62" + }, + { + "path": "kjweb_async/marked.min.js", + "mode": "100644", + "type": "blob", + "sha": "2e66c369c388c135cc68d399861a737f4c5e68cd", + "size": 35418, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/2e66c369c388c135cc68d399861a737f4c5e68cd" + }, + { + "path": "kjweb_async/protovis.min.js", + "mode": "100644", + "type": "blob", + "sha": "dfb84166521a49e4f7e41539933b101e126bd72f", + "size": 116869, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dfb84166521a49e4f7e41539933b101e126bd72f" + }, + { + "path": "kjweb_async/purify.min.js", + "mode": "100644", + "type": "blob", + "sha": "c2f5164618eebcc44b0186f594ccb8092639c670", + "size": 21346, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c2f5164618eebcc44b0186f594ccb8092639c670" + }, + { + "path": "kjweb_async/svg-path-properties.min.js", + "mode": "100644", + "type": "blob", + "sha": "88d47e0de4c54f881083164c20045a7e8b621caf", + "size": 26985, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/88d47e0de4c54f881083164c20045a7e8b621caf" + }, + { + "path": "nodes", + "mode": "040000", + "type": "tree", + "sha": "1aec6cde7bebe82e08268a820928858dd86e68f8", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/1aec6cde7bebe82e08268a820928858dd86e68f8" + }, + { + "path": "nodes/audioscheduler_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "69d0422e7da875298f87fe60a7f6d1494530dca2", + "size": 10708, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/69d0422e7da875298f87fe60a7f6d1494530dca2" + }, + { + "path": "nodes/batchcrop_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "304ff1265770265fe4786e424a05f372daaf1f03", + "size": 32069, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/304ff1265770265fe4786e424a05f372daaf1f03" + }, + { + "path": "nodes/curve_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "ceea04701778dc196a034a7e646a8cdb6d22aa5c", + "size": 69912, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/ceea04701778dc196a034a7e646a8cdb6d22aa5c" + }, + { + "path": "nodes/image_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "320a95339ac5a4576e9f9550905473d28a76dbc0", + "size": 165794, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/320a95339ac5a4576e9f9550905473d28a76dbc0" + }, + { + "path": "nodes/intrinsic_lora_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "c8f125363836cc7721b4b61d100702594522d389", + "size": 4553, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c8f125363836cc7721b4b61d100702594522d389" + }, + { + "path": "nodes/lora_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "926c6a3051615a1176708877c8c9d8bad396e499", + "size": 24056, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/926c6a3051615a1176708877c8c9d8bad396e499" + }, + { + "path": "nodes/mask_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "cd9db2d0c21f614336c56b975c7dcbf89268fe7a", + "size": 68028, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/cd9db2d0c21f614336c56b975c7dcbf89268fe7a" + }, + { + "path": "nodes/model_optimization_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "77381ae3e13ae1f6ae2cca3b3c36a7090b4ae5e6", + "size": 107434, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/77381ae3e13ae1f6ae2cca3b3c36a7090b4ae5e6" + }, + { + "path": "nodes/nodes.py", + "mode": "100644", + "type": "blob", + "sha": "7a88a7f3ee9296dec4d4c40bb2e37b88801572fc", + "size": 108482, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7a88a7f3ee9296dec4d4c40bb2e37b88801572fc" + }, + { + "path": "pyproject.toml", + "mode": "100644", + "type": "blob", + "sha": "7759264a389f60127c1c0ab0283168911db89547", + "size": 552, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7759264a389f60127c1c0ab0283168911db89547" + }, + { + "path": "requirements.txt", + "mode": "100644", + "type": "blob", + "sha": "3a339e26727f6fcb9c41538d0120560e1d863f2c", + "size": 89, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/3a339e26727f6fcb9c41538d0120560e1d863f2c" + }, + { + "path": "utility", + "mode": "040000", + "type": "tree", + "sha": "840c51ae3eb22cc5a67372ed55f58879d41cdfba", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/840c51ae3eb22cc5a67372ed55f58879d41cdfba" + }, + { + "path": "utility/fluid.py", + "mode": "100644", + "type": "blob", + "sha": "c0691987f5249a031ecbb74329ba513d5788b691", + "size": 2917, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c0691987f5249a031ecbb74329ba513d5788b691" + }, + { + "path": "utility/magictex.py", + "mode": "100644", + "type": "blob", + "sha": "e6d426f7deb3deb977604dd37581eb4e9fe9e6a9", + "size": 3117, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e6d426f7deb3deb977604dd37581eb4e9fe9e6a9" + }, + { + "path": "utility/numerical.py", + "mode": "100644", + "type": "blob", + "sha": "b5b88bc63c45d63d8913e56cbd06eb7ab413fe4f", + "size": 906, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b5b88bc63c45d63d8913e56cbd06eb7ab413fe4f" + }, + { + "path": "utility/utility.py", + "mode": "100644", + "type": "blob", + "sha": "f3b5c425922784522791e33c225c29be1e8249e0", + "size": 1369, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f3b5c425922784522791e33c225c29be1e8249e0" + }, + { + "path": "web", + "mode": "040000", + "type": "tree", + "sha": "31e11e5ed26a54d6f46dfc5b3f7b42c67218a120", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/31e11e5ed26a54d6f46dfc5b3f7b42c67218a120" + }, + { + "path": "web/green.png", + "mode": "100644", + "type": "blob", + "sha": "900964e4b3907145fe1e75a5b58473567450e16d", + "size": 2340, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/900964e4b3907145fe1e75a5b58473567450e16d" + }, + { + "path": "web/js", + "mode": "040000", + "type": "tree", + "sha": "a4fe272383693ebb411019b27d53fc0636f9bcb5", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/a4fe272383693ebb411019b27d53fc0636f9bcb5" + }, + { + "path": "web/js/appearance.js", + "mode": "100644", + "type": "blob", + "sha": "9069207e2ca079363e757da234318c76d24806ee", + "size": 865, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/9069207e2ca079363e757da234318c76d24806ee" + }, + { + "path": "web/js/browserstatus.js", + "mode": "100644", + "type": "blob", + "sha": "7ef12a186b9d78fc58c4f72deed18ad9573af477", + "size": 1892, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7ef12a186b9d78fc58c4f72deed18ad9573af477" + }, + { + "path": "web/js/contextmenu.js", + "mode": "100644", + "type": "blob", + "sha": "f189b30ff12a4b3a20150c1a8997a44b086daac0", + "size": 4093, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f189b30ff12a4b3a20150c1a8997a44b086daac0" + }, + { + "path": "web/js/fast_preview.js", + "mode": "100644", + "type": "blob", + "sha": "271784495d61c098b649af1b8f3a73bdfa457c21", + "size": 2916, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/271784495d61c098b649af1b8f3a73bdfa457c21" + }, + { + "path": "web/js/help_popup.js", + "mode": "100644", + "type": "blob", + "sha": "9ea71359207a208aa986d54617ac553d2e44e80f", + "size": 10268, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/9ea71359207a208aa986d54617ac553d2e44e80f" + }, + { + "path": "web/js/jsnodes.js", + "mode": "100644", + "type": "blob", + "sha": "c391bd55dc3c94ee81dc8d2f96462c03ed684279", + "size": 16456, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c391bd55dc3c94ee81dc8d2f96462c03ed684279" + }, + { + "path": "web/js/point_editor.js", + "mode": "100644", + "type": "blob", + "sha": "dc2368299d996a5f928bc9526cc03c0a9d894242", + "size": 25799, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dc2368299d996a5f928bc9526cc03c0a9d894242" + }, + { + "path": "web/js/setgetnodes.js", + "mode": "100644", + "type": "blob", + "sha": "c19368370a9b5500b95a0591c4669787d46ca4c6", + "size": 15809, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c19368370a9b5500b95a0591c4669787d46ca4c6" + }, + { + "path": "web/js/spline_editor.js", + "mode": "100644", + "type": "blob", + "sha": "0b9163e797e48551dd68e0b52d7678f97d7b9fee", + "size": 49053, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/0b9163e797e48551dd68e0b52d7678f97d7b9fee" + }, + { + "path": "web/red.png", + "mode": "100644", + "type": "blob", + "sha": "4352c118b2c5fa6f33edc4d99a5e4d22649ff827", + "size": 2334, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/4352c118b2c5fa6f33edc4d99a5e4d22649ff827" + } + ], + "truncated": false +} diff --git a/docs/hel-892/multivideo-reference/concat__LICENSE b/docs/hel-892/multivideo-reference/concat__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/multivideo-reference/concat__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + 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. + + + Copyright (C) + + 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 . + +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: + + Copyright (C) + 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 +. + + 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 +. diff --git a/docs/hel-892/multivideo-reference/concat____init__.py b/docs/hel-892/multivideo-reference/concat____init__.py new file mode 100644 index 00000000..0dfde533 --- /dev/null +++ b/docs/hel-892/multivideo-reference/concat____init__.py @@ -0,0 +1,257 @@ +from .nodes.nodes import * +from .nodes.curve_nodes import * +from .nodes.batchcrop_nodes import * +from .nodes.audioscheduler_nodes import * +from .nodes.image_nodes import * +from .nodes.intrinsic_lora_nodes import * +from .nodes.mask_nodes import * +from .nodes.model_optimization_nodes import * +from .nodes.lora_nodes import * +NODE_CONFIG = { + #constants + "BOOLConstant": {"class": BOOLConstant, "name": "BOOL Constant"}, + "INTConstant": {"class": INTConstant, "name": "INT Constant"}, + "FloatConstant": {"class": FloatConstant, "name": "Float Constant"}, + "StringConstant": {"class": StringConstant, "name": "String Constant"}, + "StringConstantMultiline": {"class": StringConstantMultiline, "name": "String Constant Multiline"}, + #conditioning + "ConditioningMultiCombine": {"class": ConditioningMultiCombine, "name": "Conditioning Multi Combine"}, + "ConditioningSetMaskAndCombine": {"class": ConditioningSetMaskAndCombine, "name": "ConditioningSetMaskAndCombine"}, + "ConditioningSetMaskAndCombine3": {"class": ConditioningSetMaskAndCombine3, "name": "ConditioningSetMaskAndCombine3"}, + "ConditioningSetMaskAndCombine4": {"class": ConditioningSetMaskAndCombine4, "name": "ConditioningSetMaskAndCombine4"}, + "ConditioningSetMaskAndCombine5": {"class": ConditioningSetMaskAndCombine5, "name": "ConditioningSetMaskAndCombine5"}, + "CondPassThrough": {"class": CondPassThrough}, + #masking + "DrawMaskOnImage": {"class": DrawMaskOnImage, "name": "Draw Mask On Image"}, + "DownloadAndLoadCLIPSeg": {"class": DownloadAndLoadCLIPSeg, "name": "(Down)load CLIPSeg"}, + "BatchCLIPSeg": {"class": BatchCLIPSeg, "name": "Batch CLIPSeg"}, + "BlockifyMask": {"class": BlockifyMask, "name": "Blockify Mask"}, + "ColorToMask": {"class": ColorToMask, "name": "Color To Mask"}, + "CreateGradientMask": {"class": CreateGradientMask, "name": "Create Gradient Mask"}, + "CreateTextMask": {"class": CreateTextMask, "name": "Create Text Mask"}, + "CreateAudioMask": {"class": CreateAudioMask, "name": "Create Audio Mask"}, + "CreateFadeMask": {"class": CreateFadeMask, "name": "Create Fade Mask"}, + "CreateFadeMaskAdvanced": {"class": CreateFadeMaskAdvanced, "name": "Create Fade Mask Advanced"}, + "CreateFluidMask": {"class": CreateFluidMask, "name": "Create Fluid Mask"}, + "CreateShapeMask": {"class": CreateShapeMask, "name": "Create Shape Mask"}, + "CreateVoronoiMask": {"class": CreateVoronoiMask, "name": "Create Voronoi Mask"}, + "CreateMagicMask": {"class": CreateMagicMask, "name": "Create Magic Mask"}, + "GetMaskSizeAndCount": {"class": GetMaskSizeAndCount, "name": "Get Mask Size & Count"}, + "GrowMaskWithBlur": {"class": GrowMaskWithBlur, "name": "Grow Mask With Blur"}, + "MaskBatchMulti": {"class": MaskBatchMulti, "name": "Mask Batch Multi"}, + "OffsetMask": {"class": OffsetMask, "name": "Offset Mask"}, + "RemapMaskRange": {"class": RemapMaskRange, "name": "Remap Mask Range"}, + "ResizeMask": {"class": ResizeMask, "name": "Resize Mask"}, + "RoundMask": {"class": RoundMask, "name": "Round Mask"}, + "SeparateMasks": {"class": SeparateMasks, "name": "Separate Masks"}, + "ConsolidateMasksKJ": {"class": ConsolidateMasksKJ, "name": "Consolidate Masks"}, + #images + "AddLabel": {"class": AddLabel, "name": "Add Label"}, + "ColorMatch": {"class": ColorMatch, "name": "Color Match"}, + "ImageTensorList": {"class": ImageTensorList, "name": "Image Tensor List"}, + "CrossFadeImages": {"class": CrossFadeImages, "name": "Cross Fade Images"}, + "CrossFadeImagesMulti": {"class": CrossFadeImagesMulti, "name": "Cross Fade Images Multi"}, + "GetImagesFromBatchIndexed": {"class": GetImagesFromBatchIndexed, "name": "Get Images From Batch Indexed"}, + "GetImageRangeFromBatch": {"class": GetImageRangeFromBatch, "name": "Get Image or Mask Range From Batch"}, + "GetLatentRangeFromBatch": {"class": GetLatentRangeFromBatch, "name": "Get Latent Range From Batch"}, + "GetLatentSizeAndCount": {"class": GetLatentSizeAndCount, "name": "Get Latent Size & Count"}, + "GetImageSizeAndCount": {"class": GetImageSizeAndCount, "name": "Get Image Size & Count"}, + "FastPreview": {"class": FastPreview, "name": "Fast Preview"}, + "ImageBatchFilter": {"class": ImageBatchFilter, "name": "Image Batch Filter"}, + "ImageAndMaskPreview": {"class": ImageAndMaskPreview}, + "ImageAddMulti": {"class": ImageAddMulti, "name": "Image Add Multi"}, + "ImageBatchJoinWithTransition": {"class": ImageBatchJoinWithTransition, "name": "Image Batch Join With Transition"}, + "ImageBatchMulti": {"class": ImageBatchMulti, "name": "Image Batch Multi"}, + "ImageBatchRepeatInterleaving": {"class": ImageBatchRepeatInterleaving}, + "ImageBatchTestPattern": {"class": ImageBatchTestPattern, "name": "Image Batch Test Pattern"}, + "ImageConcanate": {"class": ImageConcanate, "name": "Image Concatenate"}, + "ImageConcatFromBatch": {"class": ImageConcatFromBatch, "name": "Image Concatenate From Batch"}, + "ImageConcatMulti": {"class": ImageConcatMulti, "name": "Image Concatenate Multi"}, + "ImageCropByMask": {"class": ImageCropByMask, "name": "Image Crop By Mask"}, + "ImageCropByMaskAndResize": {"class": ImageCropByMaskAndResize, "name": "Image Crop By Mask And Resize"}, + "ImageCropByMaskBatch": {"class": ImageCropByMaskBatch, "name": "Image Crop By Mask Batch"}, + "ImageUncropByMask": {"class": ImageUncropByMask, "name": "Image Uncrop By Mask"}, + "ImageBatchExtendWithOverlap": {"class": ImageBatchExtendWithOverlap, "name": "Image Batch Extend With Overlap"}, + "ImageGrabPIL": {"class": ImageGrabPIL, "name": "Image Grab PIL"}, + "ImageGridComposite2x2": {"class": ImageGridComposite2x2, "name": "Image Grid Composite 2x2"}, + "ImageGridComposite3x3": {"class": ImageGridComposite3x3, "name": "Image Grid Composite 3x3"}, + "ImageGridtoBatch": {"class": ImageGridtoBatch, "name": "Image Grid To Batch"}, + "ImageNoiseAugmentation": {"class": ImageNoiseAugmentation, "name": "Image Noise Augmentation"}, + "ImageNormalize_Neg1_To_1": {"class": ImageNormalize_Neg1_To_1, "name": "Image Normalize -1 to 1"}, + "ImagePass": {"class": ImagePass}, + "ImagePadKJ": {"class": ImagePadKJ, "name": "ImagePad KJ"}, + "ImagePadForOutpaintMasked": {"class": ImagePadForOutpaintMasked, "name": "Image Pad For Outpaint Masked"}, + "ImagePadForOutpaintTargetSize": {"class": ImagePadForOutpaintTargetSize, "name": "Image Pad For Outpaint Target Size"}, + "ImagePrepForICLora": {"class": ImagePrepForICLora, "name": "Image Prep For ICLora"}, + "ImageResizeKJ": {"class": ImageResizeKJ, "name": "Resize Image (deprecated)"}, + "ImageResizeKJv2": {"class": ImageResizeKJv2, "name": "Resize Image v2"}, + "ImageUpscaleWithModelBatched": {"class": ImageUpscaleWithModelBatched, "name": "Image Upscale With Model Batched"}, + "InsertImagesToBatchIndexed": {"class": InsertImagesToBatchIndexed, "name": "Insert Images To Batch Indexed"}, + "InsertLatentToIndexed": {"class": InsertLatentToIndex, "name": "Insert Latent To Index"}, + "LoadAndResizeImage": {"class": LoadAndResizeImage, "name": "Load & Resize Image"}, + "LoadImagesFromFolderKJ": {"class": LoadImagesFromFolderKJ, "name": "Load Images From Folder (KJ)"}, + "LoadVideosFromFolder": {"class": LoadVideosFromFolder, "name": "Load Videos From Folder"}, + "MergeImageChannels": {"class": MergeImageChannels, "name": "Merge Image Channels"}, + "PadImageBatchInterleaved": {"class": PadImageBatchInterleaved, "name": "Pad Image Batch Interleaved"}, + "PreviewAnimation": {"class": PreviewAnimation, "name": "Preview Animation"}, + "RemapImageRange": {"class": RemapImageRange, "name": "Remap Image Range"}, + "ReverseImageBatch": {"class": ReverseImageBatch, "name": "Reverse Image Batch"}, + "ReplaceImagesInBatch": {"class": ReplaceImagesInBatch, "name": "Replace Images In Batch"}, + "SaveImageWithAlpha": {"class": SaveImageWithAlpha, "name": "Save Image With Alpha"}, + "SaveImageKJ": {"class": SaveImageKJ, "name": "Save Image KJ"}, + "ShuffleImageBatch": {"class": ShuffleImageBatch, "name": "Shuffle Image Batch"}, + "SplitImageChannels": {"class": SplitImageChannels, "name": "Split Image Channels"}, + "TransitionImagesMulti": {"class": TransitionImagesMulti, "name": "Transition Images Multi"}, + "TransitionImagesInBatch": {"class": TransitionImagesInBatch, "name": "Transition Images In Batch"}, + #batch cropping + "BatchCropFromMask": {"class": BatchCropFromMask, "name": "Batch Crop From Mask"}, + "BatchCropFromMaskAdvanced": {"class": BatchCropFromMaskAdvanced, "name": "Batch Crop From Mask Advanced"}, + "FilterZeroMasksAndCorrespondingImages": {"class": FilterZeroMasksAndCorrespondingImages}, + "InsertImageBatchByIndexes": {"class": InsertImageBatchByIndexes, "name": "Insert Image Batch By Indexes"}, + "BatchUncrop": {"class": BatchUncrop, "name": "Batch Uncrop"}, + "BatchUncropAdvanced": {"class": BatchUncropAdvanced, "name": "Batch Uncrop Advanced"}, + "SplitBboxes": {"class": SplitBboxes, "name": "Split Bboxes"}, + "BboxToInt": {"class": BboxToInt, "name": "Bbox To Int"}, + "BboxVisualize": {"class": BboxVisualize, "name": "Bbox Visualize"}, + #noise + "GenerateNoise": {"class": GenerateNoise, "name": "Generate Noise"}, + "FlipSigmasAdjusted": {"class": FlipSigmasAdjusted, "name": "Flip Sigmas Adjusted"}, + "InjectNoiseToLatent": {"class": InjectNoiseToLatent, "name": "Inject Noise To Latent"}, + "CustomSigmas": {"class": CustomSigmas, "name": "Custom Sigmas"}, + #utility + "StringToFloatList": {"class": StringToFloatList, "name": "String to Float List"}, + "WidgetToString": {"class": WidgetToString, "name": "Widget To String"}, + "SaveStringKJ": {"class": SaveStringKJ, "name": "Save String KJ"}, + "DummyOut": {"class": DummyOut, "name": "Dummy Out"}, + "GetLatentsFromBatchIndexed": {"class": GetLatentsFromBatchIndexed, "name": "Get Latents From Batch Indexed"}, + "ScaleBatchPromptSchedule": {"class": ScaleBatchPromptSchedule, "name": "Scale Batch Prompt Schedule"}, + "CameraPoseVisualizer": {"class": CameraPoseVisualizer, "name": "Camera Pose Visualizer"}, + "AppendStringsToList": {"class": AppendStringsToList, "name": "Append Strings To List"}, + "JoinStrings": {"class": JoinStrings, "name": "Join Strings"}, + "JoinStringMulti": {"class": JoinStringMulti, "name": "Join String Multi"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "Sleep": {"class": Sleep, "name": "Sleep"}, + "VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "EmptyLatentImagePresets": {"class": EmptyLatentImagePresets, "name": "Empty Latent Image Presets"}, + "EmptyLatentImageCustomPresets": {"class": EmptyLatentImageCustomPresets, "name": "Empty Latent Image Custom Presets"}, + "ModelPassThrough": {"class": ModelPassThrough, "name": "ModelPass"}, + "ModelSaveKJ": {"class": ModelSaveKJ, "name": "Model Save KJ"}, + "SetShakkerLabsUnionControlNetType": {"class": SetShakkerLabsUnionControlNetType, "name": "Set Shakker Labs Union ControlNet Type"}, + "StyleModelApplyAdvanced": {"class": StyleModelApplyAdvanced, "name": "Style Model Apply Advanced"}, + "DiffusionModelSelector": {"class": DiffusionModelSelector, "name": "Diffusion Model Selector"}, + "LazySwitchKJ": {"class": LazySwitchKJ, "name": "Lazy Switch KJ"}, + #audioscheduler stuff + "NormalizedAmplitudeToMask": {"class": NormalizedAmplitudeToMask}, + "NormalizedAmplitudeToFloatList": {"class": NormalizedAmplitudeToFloatList}, + "OffsetMaskByNormalizedAmplitude": {"class": OffsetMaskByNormalizedAmplitude}, + "ImageTransformByNormalizedAmplitude": {"class": ImageTransformByNormalizedAmplitude}, + "AudioConcatenate": {"class": AudioConcatenate}, + #curve nodes + "SplineEditor": {"class": SplineEditor, "name": "Spline Editor"}, + "CreateShapeImageOnPath": {"class": CreateShapeImageOnPath, "name": "Create Shape Image On Path"}, + "CreateShapeMaskOnPath": {"class": CreateShapeMaskOnPath, "name": "Create Shape Mask On Path"}, + "CreateTextOnPath": {"class": CreateTextOnPath, "name": "Create Text On Path"}, + "CreateGradientFromCoords": {"class": CreateGradientFromCoords, "name": "Create Gradient From Coords"}, + "CutAndDragOnPath": {"class": CutAndDragOnPath, "name": "Cut And Drag On Path"}, + "GradientToFloat": {"class": GradientToFloat, "name": "Gradient To Float"}, + "WeightScheduleExtend": {"class": WeightScheduleExtend, "name": "Weight Schedule Extend"}, + "MaskOrImageToWeight": {"class": MaskOrImageToWeight, "name": "Mask Or Image To Weight"}, + "WeightScheduleConvert": {"class": WeightScheduleConvert, "name": "Weight Schedule Convert"}, + "FloatToMask": {"class": FloatToMask, "name": "Float To Mask"}, + "FloatToSigmas": {"class": FloatToSigmas, "name": "Float To Sigmas"}, + "SigmasToFloat": {"class": SigmasToFloat, "name": "Sigmas To Float"}, + "PlotCoordinates": {"class": PlotCoordinates, "name": "Plot Coordinates"}, + "InterpolateCoords": {"class": InterpolateCoords, "name": "Interpolate Coords"}, + "PointsEditor": {"class": PointsEditor, "name": "Points Editor"}, + #experimental + "SoundReactive": {"class": SoundReactive, "name": "Sound Reactive"}, + "StableZero123_BatchSchedule": {"class": StableZero123_BatchSchedule, "name": "Stable Zero123 Batch Schedule"}, + "SV3D_BatchSchedule": {"class": SV3D_BatchSchedule, "name": "SV3D Batch Schedule"}, + "LoadResAdapterNormalization": {"class": LoadResAdapterNormalization}, + "Superprompt": {"class": Superprompt, "name": "Superprompt"}, + "GLIGENTextBoxApplyBatchCoords": {"class": GLIGENTextBoxApplyBatchCoords}, + "Intrinsic_lora_sampling": {"class": Intrinsic_lora_sampling, "name": "Intrinsic Lora Sampling"}, + "CheckpointPerturbWeights": {"class": CheckpointPerturbWeights, "name": "CheckpointPerturbWeights"}, + "Screencap_mss": {"class": Screencap_mss, "name": "Screencap mss"}, + "WebcamCaptureCV2": {"class": WebcamCaptureCV2, "name": "Webcam Capture CV2"}, + "DifferentialDiffusionAdvanced": {"class": DifferentialDiffusionAdvanced, "name": "Differential Diffusion Advanced"}, + "DiTBlockLoraLoader": {"class": DiTBlockLoraLoader, "name": "DiT Block Lora Loader"}, + "FluxBlockLoraSelect": {"class": FluxBlockLoraSelect, "name": "Flux Block Lora Select"}, + "HunyuanVideoBlockLoraSelect": {"class": HunyuanVideoBlockLoraSelect, "name": "Hunyuan Video Block Lora Select"}, + "Wan21BlockLoraSelect": {"class": Wan21BlockLoraSelect, "name": "Wan21 Block Lora Select"}, + "CustomControlNetWeightsFluxFromList": {"class": CustomControlNetWeightsFluxFromList, "name": "Custom ControlNet Weights Flux From List"}, + "CheckpointLoaderKJ": {"class": CheckpointLoaderKJ, "name": "CheckpointLoaderKJ"}, + "DiffusionModelLoaderKJ": {"class": DiffusionModelLoaderKJ, "name": "Diffusion Model Loader KJ"}, + "TorchCompileModelFluxAdvanced": {"class": TorchCompileModelFluxAdvanced, "name": "TorchCompileModelFluxAdvanced"}, + "TorchCompileModelFluxAdvancedV2": {"class": TorchCompileModelFluxAdvancedV2, "name": "TorchCompileModelFluxAdvancedV2"}, + "TorchCompileModelHyVideo": {"class": TorchCompileModelHyVideo, "name": "TorchCompileModelHyVideo"}, + "TorchCompileVAE": {"class": TorchCompileVAE, "name": "TorchCompileVAE"}, + "TorchCompileControlNet": {"class": TorchCompileControlNet, "name": "TorchCompileControlNet"}, + "PatchModelPatcherOrder": {"class": PatchModelPatcherOrder, "name": "Patch Model Patcher Order"}, + "TorchCompileLTXModel": {"class": TorchCompileLTXModel, "name": "TorchCompileLTXModel"}, + "TorchCompileCosmosModel": {"class": TorchCompileCosmosModel, "name": "TorchCompileCosmosModel"}, + "TorchCompileModelQwenImage": {"class": TorchCompileModelQwenImage, "name": "TorchCompileModelQwenImage"}, + "TorchCompileModelWanVideo": {"class": TorchCompileModelWanVideo, "name": "TorchCompileModelWanVideo"}, + "TorchCompileModelWanVideoV2": {"class": TorchCompileModelWanVideoV2, "name": "TorchCompileModelWanVideoV2"}, + "PathchSageAttentionKJ": {"class": PathchSageAttentionKJ, "name": "Patch Sage Attention KJ"}, + "LeapfusionHunyuanI2VPatcher": {"class": LeapfusionHunyuanI2V, "name": "Leapfusion Hunyuan I2V Patcher"}, + "VAELoaderKJ": {"class": VAELoaderKJ, "name": "VAELoader KJ"}, + "ScheduledCFGGuidance": {"class": ScheduledCFGGuidance, "name": "Scheduled CFG Guidance"}, + "ApplyRifleXRoPE_HunuyanVideo": {"class": ApplyRifleXRoPE_HunuyanVideo, "name": "Apply RifleXRoPE HunuyanVideo"}, + "ApplyRifleXRoPE_WanVideo": {"class": ApplyRifleXRoPE_WanVideo, "name": "Apply RifleXRoPE WanVideo"}, + "WanVideoTeaCacheKJ": {"class": WanVideoTeaCacheKJ, "name": "WanVideo Tea Cache (native)"}, + "WanVideoEnhanceAVideoKJ": {"class": WanVideoEnhanceAVideoKJ, "name": "WanVideo Enhance A Video (native)"}, + "SkipLayerGuidanceWanVideo": {"class": SkipLayerGuidanceWanVideo, "name": "Skip Layer Guidance WanVideo"}, + "TimerNodeKJ": {"class": TimerNodeKJ, "name": "Timer Node KJ"}, + "HunyuanVideoEncodeKeyframesToCond": {"class": HunyuanVideoEncodeKeyframesToCond, "name": "HunyuanVideo Encode Keyframes To Cond"}, + "CFGZeroStarAndInit": {"class": CFGZeroStarAndInit, "name": "CFG Zero Star/Init"}, + "ModelPatchTorchSettings": {"class": ModelPatchTorchSettings, "name": "Model Patch Torch Settings"}, + "WanVideoNAG": {"class": WanVideoNAG, "name": "WanVideoNAG"}, + "GGUFLoaderKJ": {"class": GGUFLoaderKJ, "name": "GGUF Loader KJ"}, + "LatentInpaintTTM": {"class": LatentInpaintTTM, "name": "Latent Inpaint TTM"}, + "NABLA_AttentionKJ": {"class": NABLA_AttentionKJ, "name": "NABLA Attention KJ"}, + "TorchCompileModelAdvanced": {"class": TorchCompileModelAdvanced, "name": "TorchCompileModelAdvanced"}, + "StartRecordCUDAMemoryHistory": {"class": StartRecordCUDAMemoryHistory, "name": "Start Recording CUDAMemory History"}, + "EndRecordCUDAMemoryHistory": {"class": EndRecordCUDAMemoryHistory, "name": "End Recording CUDAMemory History"}, + "VisualizeCUDAMemoryHistory": {"class": VisualizeCUDAMemoryHistory, "name": "Visualize CUDAMemory History"}, + + #instance diffusion + "CreateInstanceDiffusionTracking": {"class": CreateInstanceDiffusionTracking}, + "AppendInstanceDiffusionTracking": {"class": AppendInstanceDiffusionTracking}, + "DrawInstanceDiffusionTracking": {"class": DrawInstanceDiffusionTracking}, + + #lora + "LoraExtractKJ": {"class": LoraExtractKJ, "name": "LoraExtractKJ"}, + "LoraReduceRankKJ": {"class": LoraReduceRank, "name": "LoraReduceRank"} +} + +def generate_node_mappings(node_config): + node_class_mappings = {} + node_display_name_mappings = {} + + for node_name, node_info in node_config.items(): + node_class_mappings[node_name] = node_info["class"] + node_display_name_mappings[node_name] = node_info.get("name", node_info["class"].__name__) + + return node_class_mappings, node_display_name_mappings + +NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = generate_node_mappings(NODE_CONFIG) + +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] + +WEB_DIRECTORY = "./web" + +from aiohttp import web +from server import PromptServer +from pathlib import Path + +if hasattr(PromptServer, "instance"): + try: + # NOTE: we add an extra static path to avoid comfy mechanism + # that loads every script in web. + PromptServer.instance.app.add_routes( + [web.static("/kjweb_async", (Path(__file__).parent.absolute() / "kjweb_async").as_posix())] + ) + except: + pass diff --git a/docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py b/docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py new file mode 100644 index 00000000..320a9533 --- /dev/null +++ b/docs/hel-892/multivideo-reference/concat__nodes__image_nodes.py @@ -0,0 +1,4059 @@ +import numpy as np +import time +import torch +import torch.nn.functional as F +import torchvision.transforms as T +import io +import base64 +import random +import math +import os +import re +import json +import importlib +from PIL.PngImagePlugin import PngInfo +try: + import cv2 +except: + print("OpenCV not installed") + pass +from PIL import ImageGrab, ImageDraw, ImageFont, Image, ImageOps + +from nodes import MAX_RESOLUTION, SaveImage +from comfy_extras.nodes_mask import composite +import node_helpers +from comfy.cli_args import args +from comfy.utils import ProgressBar, common_upscale +import folder_paths +from comfy import model_management +try: + from server import PromptServer +except: + PromptServer = None +from concurrent.futures import ThreadPoolExecutor + +script_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +class ImagePass: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + }, + "optional": { + "image": ("IMAGE",), + }, + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "passthrough" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Passes the image through without modifying it. +""" + + def passthrough(self, image=None): + return image, + +class ColorMatch: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image_ref": ("IMAGE",), + "image_target": ("IMAGE",), + "method": ( + [ + 'mkl', + 'hm', + 'reinhard', + 'mvgd', + 'hm-mvgd-hm', + 'hm-mkl-hm', + ], { + "default": 'mkl' + }), + }, + "optional": { + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "multithread": ("BOOLEAN", {"default": True}), + } + } + + CATEGORY = "KJNodes/image" + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "colormatch" + DESCRIPTION = """ +color-matcher enables color transfer across images which comes in handy for automatic +color-grading of photographs, paintings and film sequences as well as light-field +and stopmotion corrections. + +The methods behind the mappings are based on the approach from Reinhard et al., +the Monge-Kantorovich Linearization (MKL) as proposed by Pitie et al. and our analytical solution +to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with classical histogram +matching. As shown below our HM-MVGD-HM compound outperforms existing methods. +https://github.com/hahnec/color-matcher/ + +""" + + def colormatch(self, image_ref, image_target, method, strength=1.0, multithread=True): + # Skip unnecessary processing + if strength == 0: + return (image_target,) + + try: + from color_matcher import ColorMatcher + except: + raise Exception("Can't import color-matcher, did you install requirements.txt? Manual install: pip install color-matcher") + + image_ref = image_ref.cpu() + image_target = image_target.cpu() + batch_size = image_target.size(0) + + images_target = image_target.squeeze() + images_ref = image_ref.squeeze() + + image_ref_np = images_ref.numpy() + images_target_np = images_target.numpy() + + def process(i): + cm = ColorMatcher() + image_target_np_i = images_target_np if batch_size == 1 else images_target[i].numpy() + image_ref_np_i = image_ref_np if image_ref.size(0) == 1 else images_ref[i].numpy() + try: + image_result = cm.transfer(src=image_target_np_i, ref=image_ref_np_i, method=method) # Avoid potential blur when only the fully color-matched image is used + if strength != 1: + image_result = image_target_np_i + strength * (image_result - image_target_np_i) + + return torch.from_numpy(image_result) + + except Exception as e: + print(f"Thread {i} error: {e}") + return torch.from_numpy(image_target_np_i) # fallback + + if multithread and batch_size > 1: + max_threads = min(os.cpu_count() or 1, batch_size) + with ThreadPoolExecutor(max_workers=max_threads) as executor: + out = list(executor.map(process, range(batch_size))) + else: + out = [process(i) for i in range(batch_size)] + + out = torch.stack(out, dim=0).to(torch.float32) + out.clamp_(0, 1) + return (out,) + +class SaveImageWithAlpha: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + + @classmethod + def INPUT_TYPES(s): + return {"required": + {"images": ("IMAGE", ), + "mask": ("MASK", ), + "filename_prefix": ("STRING", {"default": "ComfyUI"})}, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + + RETURN_TYPES = () + FUNCTION = "save_images_alpha" + OUTPUT_NODE = True + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Saves an image and mask as .PNG with the mask as the alpha channel. +""" + + def save_images_alpha(self, images, mask, filename_prefix="ComfyUI_image_with_alpha", prompt=None, extra_pnginfo=None): + from PIL.PngImagePlugin import PngInfo + filename_prefix += self.prefix_append + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + results = list() + if mask.dtype == torch.float16: + mask = mask.to(torch.float32) + def file_counter(): + max_counter = 0 + # Loop through the existing files + for existing_file in sorted(os.listdir(full_output_folder)): + # Check if the file matches the expected format + match = re.fullmatch(fr"{filename}_(\d+)_?\.[a-zA-Z0-9]+", existing_file) + if match: + # Extract the numeric portion of the filename + file_counter = int(match.group(1)) + # Update the maximum counter value if necessary + if file_counter > max_counter: + max_counter = file_counter + return max_counter + + for image, alpha in zip(images, mask): + i = 255. * image.cpu().numpy() + a = 255. * alpha.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + + # Resize the mask to match the image size + a_resized = Image.fromarray(a).resize(img.size, Image.LANCZOS) + a_resized = np.clip(a_resized, 0, 255).astype(np.uint8) + img.putalpha(Image.fromarray(a_resized, mode='L')) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + # Increment the counter by 1 to get the next available value + counter = file_counter() + 1 + file = f"{filename}_{counter:05}.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=4) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + + return { "ui": { "images": results } } + +class ImageConcanate: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "direction": ( + [ 'right', + 'down', + 'left', + 'up', + ], + { + "default": 'right' + }), + "match_image_size": ("BOOLEAN", {"default": True}), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concatenate" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the image2 to image1 in the specified direction. +""" + + def concatenate(self, image1, image2, direction, match_image_size, first_image_shape=None): + # Check if the batch sizes are different + batch_size1 = image1.shape[0] + batch_size2 = image2.shape[0] + + if batch_size1 != batch_size2: + # Calculate the number of repetitions needed + max_batch_size = max(batch_size1, batch_size2) + repeats1 = max_batch_size - batch_size1 + repeats2 = max_batch_size - batch_size2 + + # Repeat the last image to match the largest batch size + if repeats1 > 0: + last_image1 = image1[-1].unsqueeze(0).repeat(repeats1, 1, 1, 1) + image1 = torch.cat([image1.clone(), last_image1], dim=0) + if repeats2 > 0: + last_image2 = image2[-1].unsqueeze(0).repeat(repeats2, 1, 1, 1) + image2 = torch.cat([image2.clone(), last_image2], dim=0) + + if match_image_size: + # Use first_image_shape if provided; otherwise, default to image1's shape + target_shape = first_image_shape if first_image_shape is not None else image1.shape + + original_height = image2.shape[1] + original_width = image2.shape[2] + original_aspect_ratio = original_width / original_height + + if direction in ['left', 'right']: + # Match the height and adjust the width to preserve aspect ratio + target_height = target_shape[1] # B, H, W, C format + target_width = int(target_height * original_aspect_ratio) + elif direction in ['up', 'down']: + # Match the width and adjust the height to preserve aspect ratio + target_width = target_shape[2] # B, H, W, C format + target_height = int(target_width / original_aspect_ratio) + + # Adjust image2 to the expected format for common_upscale + image2_for_upscale = image2.movedim(-1, 1) # Move C to the second position (B, C, H, W) + + # Resize image2 to match the target size while preserving aspect ratio + image2_resized = common_upscale(image2_for_upscale, target_width, target_height, "lanczos", "disabled") + + # Adjust image2 back to the original format (B, H, W, C) after resizing + image2_resized = image2_resized.movedim(1, -1) + else: + image2_resized = image2 + + # Ensure both images have the same number of channels + channels_image1 = image1.shape[-1] + channels_image2 = image2_resized.shape[-1] + + if channels_image1 != channels_image2: + if channels_image1 < channels_image2: + # Add alpha channel to image1 if image2 has it + alpha_channel = torch.ones((*image1.shape[:-1], channels_image2 - channels_image1), device=image1.device) + image1 = torch.cat((image1, alpha_channel), dim=-1) + else: + # Add alpha channel to image2 if image1 has it + alpha_channel = torch.ones((*image2_resized.shape[:-1], channels_image1 - channels_image2), device=image2_resized.device) + image2_resized = torch.cat((image2_resized, alpha_channel), dim=-1) + + + # Concatenate based on the specified direction + if direction == 'right': + concatenated_image = torch.cat((image1, image2_resized), dim=2) # Concatenate along width + elif direction == 'down': + concatenated_image = torch.cat((image1, image2_resized), dim=1) # Concatenate along height + elif direction == 'left': + concatenated_image = torch.cat((image2_resized, image1), dim=2) # Concatenate along width + elif direction == 'up': + concatenated_image = torch.cat((image2_resized, image1), dim=1) # Concatenate along height + return concatenated_image, + +import torch # Make sure you have PyTorch installed + +class ImageConcatFromBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "images": ("IMAGE",), + "num_columns": ("INT", {"default": 3, "min": 1, "max": 255, "step": 1}), + "match_image_size": ("BOOLEAN", {"default": False}), + "max_resolution": ("INT", {"default": 4096}), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concat" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ + Concatenates images from a batch into a grid with a specified number of columns. + """ + + def concat(self, images, num_columns, match_image_size, max_resolution): + # Assuming images is a batch of images (B, H, W, C) + batch_size, height, width, channels = images.shape + num_rows = (batch_size + num_columns - 1) // num_columns # Calculate number of rows + + print(f"Initial dimensions: batch_size={batch_size}, height={height}, width={width}, channels={channels}") + print(f"num_rows={num_rows}, num_columns={num_columns}") + + if match_image_size: + target_shape = images[0].shape + + resized_images = [] + for image in images: + original_height = image.shape[0] + original_width = image.shape[1] + original_aspect_ratio = original_width / original_height + + if original_aspect_ratio > 1: + target_height = target_shape[0] + target_width = int(target_height * original_aspect_ratio) + else: + target_width = target_shape[1] + target_height = int(target_width / original_aspect_ratio) + + print(f"Resizing image from ({original_height}, {original_width}) to ({target_height}, {target_width})") + + # Resize the image to match the target size while preserving aspect ratio + resized_image = common_upscale(image.movedim(-1, 0), target_width, target_height, "lanczos", "disabled") + resized_image = resized_image.movedim(0, -1) # Move channels back to the last dimension + resized_images.append(resized_image) + + # Convert the list of resized images back to a tensor + images = torch.stack(resized_images) + + height, width = target_shape[:2] # Update height and width + + # Initialize an empty grid + grid_height = num_rows * height + grid_width = num_columns * width + + print(f"Grid dimensions before scaling: grid_height={grid_height}, grid_width={grid_width}") + + # Original scale factor calculation remains unchanged + scale_factor = min(max_resolution / grid_height, max_resolution / grid_width, 1.0) + + # Apply scale factor to height and width + scaled_height = height * scale_factor + scaled_width = width * scale_factor + + # Round scaled dimensions to the nearest number divisible by 8 + height = max(1, int(round(scaled_height / 8) * 8)) + width = max(1, int(round(scaled_width / 8) * 8)) + + if abs(scaled_height - height) > 4: + height = max(1, int(round((scaled_height + 4) / 8) * 8)) + if abs(scaled_width - width) > 4: + width = max(1, int(round((scaled_width + 4) / 8) * 8)) + + # Recalculate grid dimensions with adjusted height and width + grid_height = num_rows * height + grid_width = num_columns * width + print(f"Grid dimensions after scaling: grid_height={grid_height}, grid_width={grid_width}") + print(f"Final image dimensions: height={height}, width={width}") + + grid = torch.zeros((grid_height, grid_width, channels), dtype=images.dtype) + + for idx, image in enumerate(images): + resized_image = torch.nn.functional.interpolate(image.unsqueeze(0).permute(0, 3, 1, 2), size=(height, width), mode="bilinear").squeeze().permute(1, 2, 0) + row = idx // num_columns + col = idx % num_columns + grid[row*height:(row+1)*height, col*width:(col+1)*width, :] = resized_image + + return grid.unsqueeze(0), + + +class ImageGridComposite2x2: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "image3": ("IMAGE",), + "image4": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "compositegrid" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the 4 input images into a 2x2 grid. +""" + + def compositegrid(self, image1, image2, image3, image4): + top_row = torch.cat((image1, image2), dim=2) + bottom_row = torch.cat((image3, image4), dim=2) + grid = torch.cat((top_row, bottom_row), dim=1) + return (grid,) + +class ImageGridComposite3x3: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "image3": ("IMAGE",), + "image4": ("IMAGE",), + "image5": ("IMAGE",), + "image6": ("IMAGE",), + "image7": ("IMAGE",), + "image8": ("IMAGE",), + "image9": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "compositegrid" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the 9 input images into a 3x3 grid. +""" + + def compositegrid(self, image1, image2, image3, image4, image5, image6, image7, image8, image9): + top_row = torch.cat((image1, image2, image3), dim=2) + mid_row = torch.cat((image4, image5, image6), dim=2) + bottom_row = torch.cat((image7, image8, image9), dim=2) + grid = torch.cat((top_row, mid_row, bottom_row), dim=1) + return (grid,) + +class ImageBatchTestPattern: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "batch_size": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "start_from": ("INT", {"default": 0,"min": 0, "max": 255, "step": 1}), + "text_x": ("INT", {"default": 256,"min": 0, "max": 4096, "step": 1}), + "text_y": ("INT", {"default": 256,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "font": (folder_paths.get_filename_list("kjnodes_fonts"), ), + "font_size": ("INT", {"default": 255,"min": 8, "max": 4096, "step": 1}), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "generatetestpattern" + CATEGORY = "KJNodes/text" + + def generatetestpattern(self, batch_size, font, font_size, start_from, width, height, text_x, text_y): + out = [] + # Generate the sequential numbers for each image + numbers = np.arange(start_from, start_from + batch_size) + font_path = folder_paths.get_full_path("kjnodes_fonts", font) + + for number in numbers: + # Create a black image with the number as a random color text + image = Image.new("RGB", (width, height), color='black') + draw = ImageDraw.Draw(image) + + # Generate a random color for the text + font_color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) + + font = ImageFont.truetype(font_path, font_size) + + # Get the size of the text and position it in the center + text = str(number) + + try: + draw.text((text_x, text_y), text, font=font, fill=font_color, features=['-liga']) + except: + draw.text((text_x, text_y), text, font=font, fill=font_color,) + + # Convert the image to a numpy array and normalize the pixel values + image_np = np.array(image).astype(np.float32) / 255.0 + image_tensor = torch.from_numpy(image_np).unsqueeze(0) + out.append(image_tensor) + out_tensor = torch.cat(out, dim=0) + + return (out_tensor,) + +class ImageGrabPIL: + + @classmethod + def IS_CHANGED(cls): + + return + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "screencap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Captures an area specified by screen coordinates. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "delay": ("FLOAT", {"default": 0.1,"min": 0.0, "max": 10.0, "step": 0.01}), + }, + } + + def screencap(self, x, y, width, height, num_frames, delay): + start_time = time.time() + captures = [] + bbox = (x, y, x + width, y + height) + + for _ in range(num_frames): + # Capture screen + screen_capture = ImageGrab.grab(bbox=bbox) + screen_capture_torch = torch.from_numpy(np.array(screen_capture, dtype=np.float32) / 255.0).unsqueeze(0) + captures.append(screen_capture_torch) + + # Wait for a short delay if more than one frame is to be captured + if num_frames > 1: + time.sleep(delay) + + elapsed_time = time.time() - start_time + print(f"screengrab took {elapsed_time} seconds.") + + return (torch.cat(captures, dim=0),) + +class Screencap_mss: + + @classmethod + def IS_CHANGED(s, **kwargs): + return float("NaN") + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "screencap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Captures an area specified by screen coordinates. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 10000, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 10000, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 10000, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 10000, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "delay": ("FLOAT", {"default": 0.1,"min": 0.0, "max": 10.0, "step": 0.01}), + }, + } + + def screencap(self, x, y, width, height, num_frames, delay): + from mss import mss + captures = [] + with mss() as sct: + bbox = {'top': y, 'left': x, 'width': width, 'height': height} + + for _ in range(num_frames): + sct_img = sct.grab(bbox) + img_np = np.array(sct_img) + img_torch = torch.from_numpy(img_np[..., [2, 1, 0]]).float() / 255.0 + captures.append(img_torch) + + if num_frames > 1: + time.sleep(delay) + + return (torch.stack(captures, 0),) + +class WebcamCaptureCV2: + + @classmethod + def IS_CHANGED(cls): + return + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "capture" + CATEGORY = "KJNodes/experimental" + DESCRIPTION = """ +Captures a frame from a webcam using CV2. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "cam_index": ("INT", {"default": 0,"min": 0, "max": 255, "step": 1}), + "release": ("BOOLEAN", {"default": False}), + }, + } + + def capture(self, x, y, cam_index, width, height, release): + # Check if the camera index has changed or the capture object doesn't exist + if not hasattr(self, "cap") or self.cap is None or self.current_cam_index != cam_index: + if hasattr(self, "cap") and self.cap is not None: + self.cap.release() + self.current_cam_index = cam_index + self.cap = cv2.VideoCapture(cam_index) + try: + self.cap.set(cv2.CAP_PROP_FRAME_WIDTH, width) + self.cap.set(cv2.CAP_PROP_FRAME_HEIGHT, height) + except: + pass + if not self.cap.isOpened(): + raise Exception("Could not open webcam") + + ret, frame = self.cap.read() + if not ret: + raise Exception("Failed to capture image from webcam") + + # Crop the frame to the specified bbox + frame = frame[y:y+height, x:x+width] + img_torch = torch.from_numpy(frame[..., [2, 1, 0]]).float() / 255.0 + + if release: + self.cap.release() + self.cap = None + + return (img_torch.unsqueeze(0),) + +class AddLabel: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image":("IMAGE",), + "text_x": ("INT", {"default": 10, "min": 0, "max": 4096, "step": 1}), + "text_y": ("INT", {"default": 2, "min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 48, "min": -1, "max": 4096, "step": 1}), + "font_size": ("INT", {"default": 32, "min": 0, "max": 4096, "step": 1}), + "font_color": ("STRING", {"default": "white"}), + "label_color": ("STRING", {"default": "black"}), + "font": (folder_paths.get_filename_list("kjnodes_fonts"), ), + "text": ("STRING", {"default": "Text"}), + "direction": ( + [ 'up', + 'down', + 'left', + 'right', + 'overlay' + ], + { + "default": 'up' + }), + }, + "optional":{ + "caption": ("STRING", {"default": "", "forceInput": True}), + } + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "addlabel" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +Creates a new with the given text, and concatenates it to +either above or below the input image. +Note that this changes the input image's height! +Fonts are loaded from this folder: +ComfyUI/custom_nodes/ComfyUI-KJNodes/fonts +""" + + def addlabel(self, image, text_x, text_y, text, height, font_size, font_color, label_color, font, direction, caption=""): + batch_size = image.shape[0] + width = image.shape[2] + + font_path = os.path.join(script_directory, "fonts", "TTNorms-Black.otf") if font == "TTNorms-Black.otf" else folder_paths.get_full_path("kjnodes_fonts", font) + + def process_image(input_image, caption_text): + font = ImageFont.truetype(font_path, font_size) + words = caption_text.split() + lines = [] + current_line = [] + current_line_width = 0 + + for word in words: + word_width = font.getbbox(word)[2] + if current_line_width + word_width <= width - 2 * text_x: + current_line.append(word) + current_line_width += word_width + font.getbbox(" ")[2] # Add space width + else: + lines.append(" ".join(current_line)) + current_line = [word] + current_line_width = word_width + + if current_line: + lines.append(" ".join(current_line)) + + if direction == 'overlay': + pil_image = Image.fromarray((input_image.cpu().numpy() * 255).astype(np.uint8)) + else: + if height == -1: + # Adjust the image height automatically + margin = 8 + required_height = (text_y + len(lines) * font_size) + margin # Calculate required height + pil_image = Image.new("RGB", (width, required_height), label_color) + else: + # Initialize with a minimal height + label_image = Image.new("RGB", (width, height), label_color) + pil_image = label_image + + draw = ImageDraw.Draw(pil_image) + + + y_offset = text_y + for line in lines: + try: + draw.text((text_x, y_offset), line, font=font, fill=font_color, features=['-liga']) + except: + draw.text((text_x, y_offset), line, font=font, fill=font_color) + y_offset += font_size + + processed_image = torch.from_numpy(np.array(pil_image).astype(np.float32) / 255.0).unsqueeze(0) + return processed_image + + if caption == "": + processed_images = [process_image(img, text) for img in image] + else: + assert len(caption) == batch_size, f"Number of captions {(len(caption))} does not match number of images" + processed_images = [process_image(img, cap) for img, cap in zip(image, caption)] + processed_batch = torch.cat(processed_images, dim=0) + + # Combine images based on direction + if direction == 'down': + combined_images = torch.cat((image, processed_batch), dim=1) + elif direction == 'up': + combined_images = torch.cat((processed_batch, image), dim=1) + elif direction == 'left': + processed_batch = torch.rot90(processed_batch, 3, (2, 3)).permute(0, 3, 1, 2) + combined_images = torch.cat((processed_batch, image), dim=2) + elif direction == 'right': + processed_batch = torch.rot90(processed_batch, 3, (2, 3)).permute(0, 3, 1, 2) + combined_images = torch.cat((image, processed_batch), dim=2) + else: + combined_images = processed_batch + + return (combined_images,) + +class GetImageSizeAndCount: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE","INT", "INT", "INT",) + RETURN_NAMES = ("image", "width", "height", "count",) + FUNCTION = "getsize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns width, height and batch size of the image, +and passes it through unchanged. + +""" + + def getsize(self, image): + width = image.shape[2] + height = image.shape[1] + count = image.shape[0] + return {"ui": { + "text": [f"{count}x{width}x{height}"]}, + "result": (image, width, height, count) + } + +class GetLatentSizeAndCount: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "latent": ("LATENT",), + }} + + RETURN_TYPES = ("LATENT","INT", "INT", "INT", "INT", "INT") + RETURN_NAMES = ("latent", "batch_size", "channels", "frames", "width", "height") + FUNCTION = "getsize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns latent tensor dimensions, +and passes the latent through unchanged. + +""" + def getsize(self, latent): + if len(latent["samples"].shape) == 5: + B, C, T, H, W = latent["samples"].shape + elif len(latent["samples"].shape) == 4: + B, C, H, W = latent["samples"].shape + T = 0 + else: + raise ValueError("Invalid latent shape") + + return {"ui": { + "text": [f"{B}x{C}x{T}x{H}x{W}"]}, + "result": (latent, B, C, T, H, W) + } + +class ImageBatchRepeatInterleaving: + + RETURN_TYPES = ("IMAGE", "MASK",) + FUNCTION = "repeat" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Repeats each image in a batch by the specified number of times. +Example batch of 5 images: 0, 1 ,2, 3, 4 +with repeats 2 becomes batch of 10 images: 0, 0, 1, 1, 2, 2, 3, 3, 4, 4 +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "repeats": ("INT", {"default": 1, "min": 1, "max": 4096}), + }, + "optional": { + "mask": ("MASK",), + } + } + + def repeat(self, images, repeats, mask=None): + original_count = images.shape[0] + total_count = original_count * repeats + + repeated_images = torch.repeat_interleave(images, repeats=repeats, dim=0) + if mask is not None: + mask = torch.repeat_interleave(mask, repeats=repeats, dim=0) + else: + mask = torch.zeros((total_count, images.shape[1], images.shape[2]), + device=images.device, dtype=images.dtype) + for i in range(original_count): + mask[i * repeats] = 1.0 + + print("mask shape", mask.shape) + return (repeated_images, mask) + +class ImageUpscaleWithModelBatched: + @classmethod + def INPUT_TYPES(s): + return {"required": { "upscale_model": ("UPSCALE_MODEL",), + "images": ("IMAGE",), + "per_batch": ("INT", {"default": 16, "min": 1, "max": 4096, "step": 1}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Same as ComfyUI native model upscaling node, +but allows setting sub-batches for reduced VRAM usage. +""" + def upscale(self, upscale_model, images, per_batch): + + device = model_management.get_torch_device() + upscale_model.to(device) + in_img = images.movedim(-1,-3) + + steps = in_img.shape[0] + pbar = ProgressBar(steps) + t = [] + + for start_idx in range(0, in_img.shape[0], per_batch): + sub_images = upscale_model(in_img[start_idx:start_idx+per_batch].to(device)) + t.append(sub_images.cpu()) + # Calculate the number of images processed in this batch + batch_count = sub_images.shape[0] + # Update the progress bar by the number of images processed in this batch + pbar.update(batch_count) + upscale_model.cpu() + + t = torch.cat(t, dim=0).permute(0, 2, 3, 1).cpu() + + return (t,) + +class ImageNormalize_Neg1_To_1: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "images": ("IMAGE",), + + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "normalize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Normalize the images to be in the range [-1, 1] +""" + + def normalize(self,images): + images = images * 2.0 - 1.0 + return (images,) + +class RemapImageRange: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + "min": ("FLOAT", {"default": 0.0,"min": -10.0, "max": 1.0, "step": 0.01}), + "max": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 10.0, "step": 0.01}), + "clamp": ("BOOLEAN", {"default": True}), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "remap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Remaps the image values to the specified range. +""" + + def remap(self, image, min, max, clamp): + if image.dtype == torch.float16: + image = image.to(torch.float32) + image = min + image * (max - min) + if clamp: + image = torch.clamp(image, min=0.0, max=1.0) + return (image, ) + +class SplitImageChannels: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + }, + } + + RETURN_TYPES = ("IMAGE", "IMAGE", "IMAGE", "MASK") + RETURN_NAMES = ("red", "green", "blue", "mask") + FUNCTION = "split" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Splits image channels into images where the selected channel +is repeated for all channels, and the alpha as a mask. +""" + + def split(self, image): + red = image[:, :, :, 0:1] # Red channel + green = image[:, :, :, 1:2] # Green channel + blue = image[:, :, :, 2:3] # Blue channel + alpha = image[:, :, :, 3:4] # Alpha channel + alpha = alpha.squeeze(-1) + + # Repeat the selected channel for all channels + red = torch.cat([red, red, red], dim=3) + green = torch.cat([green, green, green], dim=3) + blue = torch.cat([blue, blue, blue], dim=3) + return (red, green, blue, alpha) + +class MergeImageChannels: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "red": ("IMAGE",), + "green": ("IMAGE",), + "blue": ("IMAGE",), + + }, + "optional": { + "alpha": ("MASK", {"default": None}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "merge" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Merges channel data into an image. +""" + + def merge(self, red, green, blue, alpha=None): + image = torch.stack([ + red[..., 0, None], # Red channel + green[..., 1, None], # Green channel + blue[..., 2, None] # Blue channel + ], dim=-1) + image = image.squeeze(-2) + if alpha is not None: + image = torch.cat([image, alpha.unsqueeze(-1)], dim=-1) + return (image,) + +class ImagePadForOutpaintMasked: + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + }, + "optional": { + "mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, left, top, right, bottom, feathering, mask=None): + if mask is not None: + if torch.allclose(mask, torch.zeros_like(mask)): + print("Warning: The incoming mask is fully black. Handling it as None.") + mask = None + B, H, W, C = image.size() + + new_image = torch.ones( + (B, H + top + bottom, W + left + right, C), + dtype=torch.float32, + ) * 0.5 + + new_image[:, top:top + H, left:left + W, :] = image + + if mask is None: + new_mask = torch.ones( + (B, H + top + bottom, W + left + right), + dtype=torch.float32, + ) + + t = torch.zeros( + (B, H, W), + dtype=torch.float32 + ) + else: + # If a mask is provided, pad it to fit the new image size + mask = F.pad(mask, (left, right, top, bottom), mode='constant', value=0) + mask = 1 - mask + t = torch.zeros_like(mask) + + if feathering > 0 and feathering * 2 < H and feathering * 2 < W: + + for i in range(H): + for j in range(W): + dt = i if top != 0 else H + db = H - i if bottom != 0 else H + + dl = j if left != 0 else W + dr = W - j if right != 0 else W + + d = min(dt, db, dl, dr) + + if d >= feathering: + continue + + v = (feathering - d) / feathering + + if mask is None: + t[:, i, j] = v * v + else: + t[:, top + i, left + j] = v * v + + if mask is None: + new_mask[:, top:top + H, left:left + W] = t + return (new_image, new_mask,) + else: + return (new_image, mask,) + +class ImagePadForOutpaintTargetSize: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "target_width": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "target_height": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "upscale_method": (s.upscale_methods,), + }, + "optional": { + "mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, target_width, target_height, feathering, upscale_method, mask=None): + B, H, W, C = image.size() + new_height = H + new_width = W + # Calculate the scaling factor while maintaining aspect ratio + scaling_factor = min(target_width / W, target_height / H) + + # Check if the image needs to be downscaled + if scaling_factor < 1: + image = image.movedim(-1,1) + # Calculate the new width and height after downscaling + new_width = int(W * scaling_factor) + new_height = int(H * scaling_factor) + + # Downscale the image + image_scaled = common_upscale(image, new_width, new_height, upscale_method, "disabled").movedim(1,-1) + else: + # If downscaling is not needed, use the original image dimensions + image_scaled = image + + # Ensure mask dimensions match image dimensions + if mask is not None: + mask_scaled = mask.unsqueeze(0) # Add an extra dimension for batch size + mask_scaled = F.interpolate(mask_scaled, size=(new_height, new_width), mode="nearest") + mask_scaled = mask_scaled.squeeze(0) # Remove the extra dimension after interpolation + else: + mask_scaled = None + + # Calculate how much padding is needed to reach the target dimensions + pad_top = max(0, (target_height - new_height) // 2) + pad_bottom = max(0, target_height - new_height - pad_top) + pad_left = max(0, (target_width - new_width) // 2) + pad_right = max(0, target_width - new_width - pad_left) + + # Now call the original expand_image with the calculated padding + return ImagePadForOutpaintMasked.expand_image(self, image_scaled, pad_left, pad_top, pad_right, pad_bottom, feathering, mask_scaled) + +class ImagePrepForICLora: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "reference_image": ("IMAGE",), + "output_width": ("INT", {"default": 1024, "min": 1, "max": 4096, "step": 1}), + "output_height": ("INT", {"default": 1024, "min": 1, "max": 4096, "step": 1}), + "border_width": ("INT", {"default": 0, "min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "latent_image": ("IMAGE",), + "latent_mask": ("MASK",), + "reference_mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, reference_image, output_width, output_height, border_width, latent_image=None, reference_mask=None, latent_mask=None): + + if reference_mask is not None: + if torch.allclose(reference_mask, torch.zeros_like(reference_mask)): + print("Warning: The incoming mask is fully black. Handling it as None.") + reference_mask = None + image = reference_image + if latent_image is not None: + if image.shape[0] != latent_image.shape[0]: + image = image.repeat(latent_image.shape[0], 1, 1, 1) + B, H, W, C = image.size() + + # Handle mask + if reference_mask is not None: + resized_mask = torch.nn.functional.interpolate( + reference_mask.unsqueeze(1), + size=(H, W), + mode='nearest' + ).squeeze(1) + print(resized_mask.shape) + image = image * resized_mask.unsqueeze(-1) + + # Calculate new width maintaining aspect ratio + new_width = int((W / H) * output_height) + + # Resize image to new height while maintaining aspect ratio + resized_image = common_upscale(image.movedim(-1,1), new_width, output_height, "lanczos", "disabled").movedim(1,-1) + + # Create padded image + if latent_image is None: + pad_image = torch.zeros((B, output_height, output_width, C), device=image.device) + else: + resized_latent_image = common_upscale(latent_image.movedim(-1,1), output_width, output_height, "lanczos", "disabled").movedim(1,-1) + pad_image = resized_latent_image + if latent_mask is not None: + resized_latent_mask = torch.nn.functional.interpolate( + latent_mask.unsqueeze(1), + size=(pad_image.shape[1], pad_image.shape[2]), + mode='nearest' + ).squeeze(1) + + if border_width > 0: + border = torch.zeros((B, output_height, border_width, C), device=image.device) + padded_image = torch.cat((resized_image, border, pad_image), dim=2) + if latent_mask is not None: + padded_mask = torch.zeros((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, (new_width + border_width):] = resized_latent_mask + else: + padded_mask = torch.ones((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, :new_width + border_width] = 0 + else: + padded_image = torch.cat((resized_image, pad_image), dim=2) + if latent_mask is not None: + padded_mask = torch.zeros((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, new_width:] = resized_latent_mask + else: + padded_mask = torch.ones((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, :new_width] = 0 + + return (padded_image, padded_mask) + + +class ImageAndMaskPreview(SaveImage): + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "mask_opacity": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}), + "mask_color": ("STRING", {"default": "255, 255, 255"}), + "pass_through": ("BOOLEAN", {"default": False}), + }, + "optional": { + "image": ("IMAGE",), + "mask": ("MASK",), + }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("composite",) + FUNCTION = "execute" + CATEGORY = "KJNodes/masking" + DESCRIPTION = """ +Preview an image or a mask, when both inputs are used +composites the mask on top of the image. +with pass_through on the preview is disabled and the +composite is returned from the composite slot instead, +this allows for the preview to be passed for video combine +nodes for example. +""" + + def execute(self, mask_opacity, mask_color, pass_through, filename_prefix="ComfyUI", image=None, mask=None, prompt=None, extra_pnginfo=None): + if mask is not None and image is None: + preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3) + elif mask is None and image is not None: + preview = image + elif mask is not None and image is not None: + mask_adjusted = mask * mask_opacity + mask_image = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3).clone() + + if ',' in mask_color: + color_list = np.clip([int(channel) for channel in mask_color.split(',')], 0, 255) # RGB format + else: + mask_color = mask_color.lstrip('#') + color_list = [int(mask_color[i:i+2], 16) for i in (0, 2, 4)] # Hex format + mask_image[:, :, :, 0] = color_list[0] / 255 # Red channel + mask_image[:, :, :, 1] = color_list[1] / 255 # Green channel + mask_image[:, :, :, 2] = color_list[2] / 255 # Blue channel + + destination, source = node_helpers.image_alpha_fix(image, mask_image) + destination = destination.clone().movedim(-1, 1) + preview = composite(destination, source.movedim(-1, 1), 0, 0, mask_adjusted, 1, True).movedim(1, -1) + + if pass_through: + return (preview, ) + return(self.save_images(preview, filename_prefix, prompt, extra_pnginfo)) + +def crossfade(images_1, images_2, alpha): + crossfade = (1 - alpha) * images_1 + alpha * images_2 + return crossfade +def ease_in(t): + return t * t +def ease_out(t): + return 1 - (1 - t) * (1 - t) +def ease_in_out(t): + return 3 * t * t - 2 * t * t * t +def bounce(t): + if t < 0.5: + return ease_out(t * 2) * 0.5 + else: + return ease_in((t - 0.5) * 2) * 0.5 + 0.5 +def elastic(t): + return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1)) +def glitchy(t): + return t + 0.1 * math.sin(40 * t) +def exponential_ease_out(t): + return 1 - (1 - t) ** 4 + +easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, +} + +class CrossFadeImages: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "crossfadeimages" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images_1": ("IMAGE",), + "images_2": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_start_index": ("INT", {"default": 1,"min": -4096, "max": 4096, "step": 1}), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "start_level": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 1.0, "step": 0.01}), + "end_level": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 1.0, "step": 0.01}), + }, + } + + def crossfadeimages(self, images_1, images_2, transition_start_index, transitioning_frames, interpolation, start_level, end_level): + + crossfade_images = [] + + if transition_start_index < 0: + transition_start_index = len(images_1) + transition_start_index + if transition_start_index < 0: + raise ValueError("Transition start index is out of range for images_1.") + + transitioning_frames = min(transitioning_frames, len(images_1) - transition_start_index, len(images_2)) + + alphas = torch.linspace(start_level, end_level, transitioning_frames) + for i in range(transitioning_frames): + alpha = alphas[i] + image1 = images_1[transition_start_index + i] + image2 = images_2[i] + easing_function = easing_functions.get(interpolation) + alpha = easing_function(alpha) # Apply the easing function to the alpha value + + crossfade_image = crossfade(image1, image2, alpha) + crossfade_images.append(crossfade_image) + + # Convert crossfade_images to tensor + crossfade_images = torch.stack(crossfade_images, dim=0) + + # Append the beginning of images_1 (before the transition) + beginning_images_1 = images_1[:transition_start_index] + crossfade_images = torch.cat([beginning_images_1, crossfade_images], dim=0) + + # Append the remaining frames of images_2 (after the transition) + remaining_images_2 = images_2[transitioning_frames:] + if len(remaining_images_2) > 0: + crossfade_images = torch.cat([crossfade_images, remaining_images_2], dim=0) + + return (crossfade_images, ) + +class CrossFadeImagesMulti: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "crossfadeimages" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "image_2": ("IMAGE",), + } + } + + def crossfadeimages(self, inputcount, transitioning_frames, interpolation, **kwargs): + + image_1 = kwargs["image_1"] + first_image_shape = image_1.shape + first_image_device = image_1.device + height = image_1.shape[1] + width = image_1.shape[2] + + easing_function = easing_functions[interpolation] + + for c in range(1, inputcount): + frames = [] + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)).to(first_image_device) + new_image_height = new_image.shape[1] + new_image_width = new_image.shape[2] + + if new_image_height != height or new_image_width != width: + new_image = common_upscale(new_image.movedim(-1, 1), width, height, "lanczos", "disabled") + new_image = new_image.movedim(1, -1) # Move channels back to the last dimension + + last_frame_image_1 = image_1[-1] + first_frame_image_2 = new_image[0] + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=last_frame_image_1.dtype, device=last_frame_image_1.device) + frame_image = crossfade(last_frame_image_1, first_frame_image_2, alpha_tensor) + frames.append(frame_image) + + frames = torch.stack(frames) + image_1 = torch.cat((image_1, frames, new_image), dim=0) + + return image_1, + +def transition_images(images_1, images_2, alpha, transition_type, blur_radius, reverse): + width = images_1.shape[1] + height = images_1.shape[0] + + mask = torch.zeros_like(images_1, device=images_1.device) + + alpha = alpha.item() + if reverse: + alpha = 1 - alpha + + #transitions from matteo's essential nodes + if "horizontal slide" in transition_type: + pos = round(width * alpha) + mask[:, :pos, :] = 1.0 + elif "vertical slide" in transition_type: + pos = round(height * alpha) + mask[:pos, :, :] = 1.0 + elif "box" in transition_type: + box_w = round(width * alpha) + box_h = round(height * alpha) + x1 = (width - box_w) // 2 + y1 = (height - box_h) // 2 + x2 = x1 + box_w + y2 = y1 + box_h + mask[y1:y2, x1:x2, :] = 1.0 + elif "circle" in transition_type: + radius = math.ceil(math.sqrt(pow(width, 2) + pow(height, 2)) * alpha / 2) + c_x = width // 2 + c_y = height // 2 + x = torch.arange(0, width, dtype=torch.float32, device="cpu") + y = torch.arange(0, height, dtype=torch.float32, device="cpu") + y, x = torch.meshgrid((y, x), indexing="ij") + circle = ((x - c_x) ** 2 + (y - c_y) ** 2) <= (radius ** 2) + mask[circle] = 1.0 + elif "horizontal door" in transition_type: + bar = math.ceil(height * alpha / 2) + if bar > 0: + mask[:bar, :, :] = 1.0 + mask[-bar:,:, :] = 1.0 + elif "vertical door" in transition_type: + bar = math.ceil(width * alpha / 2) + if bar > 0: + mask[:, :bar,:] = 1.0 + mask[:, -bar:,:] = 1.0 + elif "fade" in transition_type: + mask[:, :, :] = alpha + + mask = gaussian_blur(mask, blur_radius) + + return images_1 * (1 - mask) + images_2 * mask + +def gaussian_blur(mask, blur_radius): + if blur_radius > 0: + kernel_size = int(blur_radius * 2) + 1 + if kernel_size % 2 == 0: + kernel_size += 1 # Ensure kernel size is odd + sigma = blur_radius / 3 + x = torch.arange(-kernel_size // 2 + 1, kernel_size // 2 + 1, dtype=torch.float32) + x = torch.exp(-0.5 * (x / sigma) ** 2) + kernel1d = x / x.sum() + kernel2d = kernel1d[:, None] * kernel1d[None, :] + kernel2d = kernel2d.to(mask.device) + kernel2d = kernel2d.expand(mask.shape[2], 1, kernel2d.shape[0], kernel2d.shape[1]) + mask = mask.permute(2, 0, 1).unsqueeze(0) # Change to [C, H, W] and add batch dimension + mask = F.conv2d(mask, kernel2d, padding=kernel_size // 2, groups=mask.shape[1]) + mask = mask.squeeze(0).permute(1, 2, 0) # Change back to [H, W, C] + return mask + +easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, +} + +class TransitionImagesMulti: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates transitions between images. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 2,"min": 2, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + "optional": { + "image_2": ("IMAGE",), + } + } + + def transition(self, inputcount, transitioning_frames, transition_type, interpolation, device, blur_radius, reverse, **kwargs): + + gpu = model_management.get_torch_device() + + image_1 = kwargs["image_1"] + height = image_1.shape[1] + width = image_1.shape[2] + first_image_shape = image_1.shape + first_image_device = image_1.device + + easing_function = easing_functions[interpolation] + + for c in range(1, inputcount): + frames = [] + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)).to(first_image_device) + new_image_height = new_image.shape[1] + new_image_width = new_image.shape[2] + + if new_image_height != height or new_image_width != width: + new_image = common_upscale(new_image.movedim(-1, 1), width, height, "lanczos", "disabled") + new_image = new_image.movedim(1, -1) # Move channels back to the last dimension + + last_frame_image_1 = image_1[-1] + first_frame_image_2 = new_image[0] + if device == "GPU": + last_frame_image_1 = last_frame_image_1.to(gpu) + first_frame_image_2 = first_frame_image_2.to(gpu) + + if reverse: + last_frame_image_1, first_frame_image_2 = first_frame_image_2, last_frame_image_1 + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=last_frame_image_1.dtype, device=last_frame_image_1.device) + frame_image = transition_images(last_frame_image_1, first_frame_image_2, alpha_tensor, transition_type, blur_radius, reverse) + frames.append(frame_image) + + frames = torch.stack(frames).cpu() + image_1 = torch.cat((image_1, frames, new_image), dim=0) + + return image_1.cpu(), + +class TransitionImagesInBatch: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates transitions between images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + } + + #transitions from matteo's essential nodes + def transition(self, images, transitioning_frames, transition_type, interpolation, device, blur_radius, reverse): + if images.shape[0] == 1: + return images, + + gpu = model_management.get_torch_device() + + easing_function = easing_functions[interpolation] + + images_list = [] + pbar = ProgressBar(images.shape[0] - 1) + for i in range(images.shape[0] - 1): + frames = [] + image_1 = images[i] + image_2 = images[i + 1] + + if device == "GPU": + image_1 = image_1.to(gpu) + image_2 = image_2.to(gpu) + + if reverse: + image_1, image_2 = image_2, image_1 + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=image_1.dtype, device=image_1.device) + frame_image = transition_images(image_1, image_2, alpha_tensor, transition_type, blur_radius, reverse) + frames.append(frame_image) + pbar.update(1) + + frames = torch.stack(frames).cpu() + images_list.append(frames) + images = torch.cat(images_list, dim=0) + + return images.cpu(), + +class ImageBatchJoinWithTransition: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition_batches" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Transitions between two batches of images, starting at a specified index in the first batch. +During the transition, frames from both batches are blended frame-by-frame, so the video keeps playing. +""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "images_1": ("IMAGE",), + "images_2": ("IMAGE",), + "start_index": ("INT", {"default": 0, "min": -10000, "max": 10000, "step": 1}), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 1, "min": 1, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + } + + def transition_batches(self, images_1, images_2, start_index, interpolation, transition_type, transitioning_frames, blur_radius, reverse, device): + if images_1.shape[0] == 0 or images_2.shape[0] == 0: + raise ValueError("Both input batches must have at least one image.") + + if start_index < 0: + start_index = images_1.shape[0] + start_index + if start_index < 0 or start_index > images_1.shape[0]: + raise ValueError("start_index is out of range.") + + gpu = model_management.get_torch_device() + easing_function = easing_functions[interpolation] + out_frames = [] + + # Add images from images_1 up to start_index + if start_index > 0: + out_frames.append(images_1[:start_index]) + + # Determine how many frames we can blend + max_transition = min(transitioning_frames, images_1.shape[0] - start_index, images_2.shape[0]) + + # Blend corresponding frames from both batches + for i in range(max_transition): + img1 = images_1[start_index + i] + img2 = images_2[i] + if device == "GPU": + img1 = img1.to(gpu) + img2 = img2.to(gpu) + if reverse: + img1, img2 = img2, img1 + t = i / (max_transition - 1) if max_transition > 1 else 1.0 + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=img1.dtype, device=img1.device) + frame_image = transition_images(img1, img2, alpha_tensor, transition_type, blur_radius, reverse) + out_frames.append(frame_image.cpu().unsqueeze(0)) + + # Add remaining images from images_2 after transition + if images_2.shape[0] > max_transition: + out_frames.append(images_2[max_transition:]) + + # Concatenate all frames + out = torch.cat(out_frames, dim=0) + return (out.cpu(),) + +class ShuffleImageBatch: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "shuffle" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + }, + } + + def shuffle(self, images, seed): + torch.manual_seed(seed) + B, H, W, C = images.shape + indices = torch.randperm(B) + shuffled_images = images[indices] + + return shuffled_images, + +class GetImageRangeFromBatch: + + RETURN_TYPES = ("IMAGE", "MASK", ) + FUNCTION = "imagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns a range of images from a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "start_index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 4096, "step": 1}), + }, + "optional": { + "images": ("IMAGE",), + "masks": ("MASK",), + } + } + + def imagesfrombatch(self, start_index, num_frames, images=None, masks=None): + chosen_images = None + chosen_masks = None + + # Process images if provided + if images is not None: + if start_index == -1: + start_index = max(0, len(images) - num_frames) + if start_index < 0 or start_index >= len(images): + raise ValueError("Start index is out of range") + end_index = min(start_index + num_frames, len(images)) + chosen_images = images[start_index:end_index] + + # Process masks if provided + if masks is not None: + if start_index == -1: + start_index = max(0, len(masks) - num_frames) + if start_index < 0 or start_index >= len(masks): + raise ValueError("Start index is out of range for masks") + end_index = min(start_index + num_frames, len(masks)) + chosen_masks = masks[start_index:end_index] + + return (chosen_images, chosen_masks,) + +class ImageBatchExtendWithOverlap: + + RETURN_TYPES = ("IMAGE", "IMAGE", "IMAGE", ) + RETURN_NAMES = ("source_images", "start_images", "extended_images") + OUTPUT_TOOLTIPS = ( + "The original source images (passthrough)", + "The input images used as the starting point for extension", + "The extended images with overlap, if no new images are provided this will be empty", + ) + FUNCTION = "imagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Helper node for video generation extension +First input source and overlap amount to get the starting frames for the extension. +Then on another copy of the node provide the newly generated frames and choose how to overlap them. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "source_images": ("IMAGE", {"tooltip": "The source images to extend"}), + "overlap": ("INT", {"default": 13,"min": 1, "max": 4096, "step": 1, "tooltip": "Number of overlapping frames between source and new images"}), + "overlap_side": (["source", "new_images"], {"default": "source", "tooltip": "Which side to overlap on"}), + "overlap_mode": (["cut", "linear_blend", "ease_in_out"], {"default": "linear_blend", "tooltip": "Method to use for overlapping frames"}), + }, + "optional": { + "new_images": ("IMAGE", {"tooltip": "The new images to extend with"}), + } + } + + def imagesfrombatch(self, source_images, overlap, overlap_side, overlap_mode, new_images=None): + if overlap >= len(source_images): + return source_images, source_images, source_images + + if new_images is not None: + if source_images.shape[1:3] != new_images.shape[1:3]: + raise ValueError(f"Source and new images must have the same shape: {source_images.shape[1:3]} vs {new_images.shape[1:3]}") + # Determine where to place the overlap + prefix = source_images[:-overlap] + if overlap_side == "source": + blend_src = source_images[-overlap:] + blend_dst = new_images[:overlap] + elif overlap_side == "new_images": + blend_src = new_images[:overlap] + blend_dst = source_images[-overlap:] + suffix = new_images[overlap:] + + if overlap_mode == "linear_blend": + blended_images = [ + crossfade(blend_src[i], blend_dst[i], (i + 1) / (overlap + 1)) + for i in range(overlap) + ] + blended_images = torch.stack(blended_images, dim=0) + extended_images = torch.cat((prefix, blended_images, suffix), dim=0) + elif overlap_mode == "ease_in_out": + blended_images = [] + for i in range(overlap): + t = (i + 1) / (overlap + 1) + eased_t = ease_in_out(t) + blended_image = crossfade(blend_src[i], blend_dst[i], eased_t) + blended_images.append(blended_image) + blended_images = torch.stack(blended_images, dim=0) + extended_images = torch.cat((prefix, blended_images, suffix), dim=0) + + elif overlap_mode == "cut": + extended_images = torch.cat((prefix, suffix), dim=0) + if overlap_side == "new_images": + extended_images = torch.cat((source_images, new_images[overlap:]), dim=0) + elif overlap_side == "source": + extended_images = torch.cat((source_images[:-overlap], new_images), dim=0) + else: + extended_images = torch.zeros((1, 64, 64, 3), device="cpu") + + start_images = source_images[-overlap:] + + return (source_images, start_images, extended_images) + +class GetLatentRangeFromBatch: + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "latentsfrombatch" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Returns a range of latents from a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "latents": ("LATENT",), + "start_index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": -1, "max": 4096, "step": 1}), + }, + } + + def latentsfrombatch(self, latents, start_index, num_frames): + chosen_latents = None + samples = latents["samples"] + if len(samples.shape) == 4: + B, C, H, W = samples.shape + num_latents = B + elif len(samples.shape) == 5: + B, C, T, H, W = samples.shape + num_latents = T + + if start_index == -1: + start_index = max(0, num_latents - num_frames) + if start_index < 0 or start_index >= num_latents: + raise ValueError("Start index is out of range") + + end_index = num_latents if num_frames == -1 else min(start_index + num_frames, num_latents) + + if len(samples.shape) == 4: + chosen_latents = samples[start_index:end_index] + elif len(samples.shape) == 5: + chosen_latents = samples[:, :, start_index:end_index] + + return ({"samples": chosen_latents.contiguous(),},) + +class InsertLatentToIndex: + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "insert" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Inserts a latent at the specified index into the original latent batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "source": ("LATENT",), + "destination": ("LATENT",), + "index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + }, + } + + def insert(self, source, destination, index): + samples_destination = destination["samples"] + samples_source = source["samples"].to(samples_destination) + + if len(samples_source.shape) == 4: + B, C, H, W = samples_source.shape + num_latents = B + elif len(samples_source.shape) == 5: + B, C, T, H, W = samples_source.shape + num_latents = T + + if index >= num_latents or index < 0: + raise ValueError(f"Index {index} out of bounds for tensor with {num_latents} latents") + + if len(samples_source.shape) == 4: + joined_latents = torch.cat([ + samples_destination[:index], + samples_source, + samples_destination[index+1:] + ], dim=0) + else: + joined_latents = torch.cat([ + samples_destination[:, :, :index], + samples_source, + samples_destination[:, :, index+1:] + ], dim=2) + + return ({"samples": joined_latents,},) + +class ImageBatchFilter: + + RETURN_TYPES = ("IMAGE", "STRING",) + RETURN_NAMES = ("images", "removed_indices",) + FUNCTION = "filter" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Removes empty images from a batch" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "empty_color": ("STRING", {"default": "0, 0, 0"}), + "empty_threshold": ("FLOAT", {"default": 0.01,"min": 0.0, "max": 1.0, "step": 0.01}), + }, + "optional": { + "replacement_image": ("IMAGE",), + } + } + + def filter(self, images, empty_color, empty_threshold, replacement_image=None): + B, H, W, C = images.shape + + input_images = images.clone() + + empty_color_list = [int(color.strip()) for color in empty_color.split(',')] + empty_color_tensor = torch.tensor(empty_color_list, dtype=torch.float32).to(input_images.device) + + color_diff = torch.abs(input_images - empty_color_tensor) + mean_diff = color_diff.mean(dim=(1, 2, 3)) + + empty_indices = mean_diff <= empty_threshold + empty_indices_string = ', '.join([str(i) for i in range(B) if empty_indices[i]]) + + if replacement_image is not None: + B_rep, H_rep, W_rep, C_rep = replacement_image.shape + replacement = replacement_image.clone() + if (H_rep != images.shape[1]) or (W_rep != images.shape[2]) or (C_rep != images.shape[3]): + replacement = common_upscale(replacement.movedim(-1, 1), W, H, "lanczos", "center").movedim(1, -1) + input_images[empty_indices] = replacement[0] + + return (input_images, empty_indices_string,) + else: + non_empty_images = input_images[~empty_indices] + return (non_empty_images, empty_indices_string,) + +class GetImagesFromBatchIndexed: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "indexedimagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Selects and returns the images at the specified indices as an image batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + }, + } + + def indexedimagesfrombatch(self, images, indexes): + + # Parse the indexes string into a list of integers + index_list = [int(index.strip()) for index in indexes.split(',')] + + # Convert list of indices to a PyTorch tensor + indices_tensor = torch.tensor(index_list, dtype=torch.long) + + # Select the images at the specified indices + chosen_images = images[indices_tensor] + + return (chosen_images,) + +class InsertImagesToBatchIndexed: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "insertimagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Inserts images at the specified indices into the original image batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "original_images": ("IMAGE",), + "images_to_insert": ("IMAGE",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + }, + "optional": { + "mode": (["replace", "insert"],), + } + } + + def insertimagesfrombatch(self, original_images, images_to_insert, indexes, mode="replace"): + if indexes == "": + return (original_images,) + + input_images = original_images.clone() + + # Parse the indexes string into a list of integers + index_list = [int(index.strip()) for index in indexes.split(',')] + + # Convert list of indices to a PyTorch tensor + indices_tensor = torch.tensor(index_list, dtype=torch.long) + + # Ensure the images_to_insert is a tensor + if not isinstance(images_to_insert, torch.Tensor): + images_to_insert = torch.tensor(images_to_insert) + + if mode == "replace": + # Replace the images at the specified indices + for index, image in zip(indices_tensor, images_to_insert): + input_images[index] = image + else: + # Create a list to hold the new image sequence + new_images = [] + insert_offset = 0 + + for i in range(len(input_images) + len(indices_tensor)): + if insert_offset < len(indices_tensor) and i == indices_tensor[insert_offset]: + # Use modulo to cycle through images_to_insert + new_images.append(images_to_insert[insert_offset % len(images_to_insert)]) + insert_offset += 1 + else: + new_images.append(input_images[i - insert_offset]) + + # Convert the list back to a tensor + input_images = torch.stack(new_images, dim=0) + + return (input_images,) + +class PadImageBatchInterleaved: + + RETURN_TYPES = ("IMAGE", "MASK",) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "pad" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Inserts empty frames between the images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "empty_frames_per_image": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "pad_frame_value": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 1.0, "step": 0.01}), + "add_after_last": ("BOOLEAN", {"default": False}), + }, + } + + def pad(self, images, empty_frames_per_image, pad_frame_value, add_after_last): + B, H, W, C = images.shape + + # Handle single frame case specifically + if B == 1: + total_frames = 1 + empty_frames_per_image if add_after_last else 1 + else: + # Original B images + (B-1) sets of empty frames between them + total_frames = B + (B-1) * empty_frames_per_image + # Add additional empty frames after the last image if requested + if add_after_last: + total_frames += empty_frames_per_image + + # Create new tensor with zeros (empty frames) + padded_batch = torch.ones((total_frames, H, W, C), + dtype=images.dtype, + device=images.device) * pad_frame_value + # Create mask tensor (1 for original frames, 0 for empty frames) + mask = torch.zeros((total_frames, H, W), + dtype=images.dtype, + device=images.device) + + # Fill in original images at their new positions + for i in range(B): + if B == 1: + # For single frame, just place it at the beginning + new_pos = 0 + else: + # Each image is separated by empty_frames_per_image blank frames + new_pos = i * (empty_frames_per_image + 1) + + padded_batch[new_pos] = images[i] + mask[new_pos] = 1.0 # Mark this as an original frame + + return (padded_batch, mask) + +class ReplaceImagesInBatch: + + RETURN_TYPES = ("IMAGE", "MASK",) + FUNCTION = "replace" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Replaces the images in a batch, starting from the specified start index, +with the replacement images. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "start_index": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "original_images": ("IMAGE",), + "replacement_images": ("IMAGE",), + "original_masks": ("MASK",), + "replacement_masks": ("MASK",), + } + } + + def replace(self, original_images=None, replacement_images=None, start_index=1, original_masks=None, replacement_masks=None): + images = None + masks = None + + if original_images is not None and replacement_images is not None: + if start_index >= len(original_images): + raise ValueError("ReplaceImagesInBatch: Start index is out of range") + end_index = start_index + len(replacement_images) + if end_index > len(original_images): + raise ValueError("ReplaceImagesInBatch: End index is out of range") + + original_images_copy = original_images.clone() + if original_images_copy.shape[2] != replacement_images.shape[2] or original_images_copy.shape[3] != replacement_images.shape[3]: + replacement_images = common_upscale(replacement_images.movedim(-1, 1), original_images_copy.shape[1], original_images_copy.shape[2], "lanczos", "center").movedim(1, -1) + + original_images_copy[start_index:end_index] = replacement_images + images = original_images_copy + else: + images = torch.zeros((1, 64, 64, 3)) + + if original_masks is not None and replacement_masks is not None: + if start_index >= len(original_masks): + raise ValueError("ReplaceImagesInBatch: Start index is out of range") + end_index = start_index + len(replacement_masks) + if end_index > len(original_masks): + raise ValueError("ReplaceImagesInBatch: End index is out of range") + + original_masks_copy = original_masks.clone() + if original_masks_copy.shape[1] != replacement_masks.shape[1] or original_masks_copy.shape[2] != replacement_masks.shape[2]: + replacement_masks = common_upscale(replacement_masks.unsqueeze(1), original_masks_copy.shape[1], original_masks_copy.shape[2], "nearest-exact", "center").squeeze(0) + + original_masks_copy[start_index:end_index] = replacement_masks + masks = original_masks_copy + else: + masks = torch.zeros((1, 64, 64)) + + return (images, masks) + + +class ReverseImageBatch: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "reverseimagebatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Reverses the order of the images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + }, + } + + def reverseimagebatch(self, images): + reversed_images = torch.flip(images, [0]) + return (reversed_images, ) + +class ImageBatchMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + + }, + "optional": { + "image_2": ("IMAGE", ), + } + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "combine" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image batch from multiple images. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, **kwargs): + from nodes import ImageBatch + image_batch_node = ImageBatch() + image = kwargs["image_1"].cpu() + first_image_shape = image.shape + for c in range(1, inputcount): + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)).cpu() + image, = image_batch_node.batch(image, new_image) + return (image,) + + +class ImageTensorList: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "append" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image list from the input images. +""" + + def append(self, image1, image2): + image_list = [] + if isinstance(image1, torch.Tensor) and isinstance(image2, torch.Tensor): + image_list = [image1, image2] + elif isinstance(image1, list) and isinstance(image2, torch.Tensor): + image_list = image1 + [image2] + elif isinstance(image1, torch.Tensor) and isinstance(image2, list): + image_list = [image1] + image2 + elif isinstance(image1, list) and isinstance(image2, list): + image_list = image1 + image2 + return image_list, + +class ImageAddMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + "image_2": ("IMAGE", ), + "blending": ( + [ 'add', + 'subtract', + 'multiply', + 'difference', + ], + { + "default": 'add' + }), + "blend_amount": ("FLOAT", {"default": 0.5, "min": 0, "max": 1, "step": 0.01}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "add" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Add blends multiple images together. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def add(self, inputcount, blending, blend_amount, **kwargs): + image = kwargs["image_1"] + for c in range(1, inputcount): + new_image = kwargs[f"image_{c + 1}"] + if blending == "add": + image = torch.add(image * blend_amount, new_image * blend_amount) + elif blending == "subtract": + image = torch.sub(image * blend_amount, new_image * blend_amount) + elif blending == "multiply": + image = torch.mul(image * blend_amount, new_image * blend_amount) + elif blending == "difference": + image = torch.sub(image, new_image) + return (image,) + +class ImageConcatMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + + "direction": ( + [ 'right', + 'down', + 'left', + 'up', + ], + { + "default": 'right' + }), + "match_image_size": ("BOOLEAN", {"default": False}), + }, + "optional": { + "image_2": ("IMAGE", ), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "combine" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image from multiple images. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, direction, match_image_size, **kwargs): + image = kwargs["image_1"] + first_image_shape = None + if first_image_shape is None: + first_image_shape = image.shape + for c in range(1, inputcount): + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)) + image, = ImageConcanate.concatenate(self, image, new_image, direction, match_image_size, first_image_shape=first_image_shape) + first_image_shape = None + return (image,) + +class PreviewAnimation: + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 1 + + methods = {"default": 4, "fastest": 0, "slowest": 6} + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "fps": ("FLOAT", {"default": 8.0, "min": 0.01, "max": 1000.0, "step": 0.01}), + }, + "optional": { + "images": ("IMAGE", ), + "masks": ("MASK", ), + }, + } + + RETURN_TYPES = () + FUNCTION = "preview" + OUTPUT_NODE = True + CATEGORY = "KJNodes/image" + + def preview(self, fps, images=None, masks=None): + filename_prefix = "AnimPreview" + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + results = list() + + pil_images = [] + + if images is not None and masks is not None: + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + pil_images.append(img) + for mask in masks: + if pil_images: + mask_np = mask.cpu().numpy() + mask_np = np.clip(mask_np * 255, 0, 255).astype(np.uint8) # Convert to values between 0 and 255 + mask_img = Image.fromarray(mask_np, mode='L') + img = pil_images.pop(0) # Remove and get the first image + img = img.convert("RGBA") # Convert base image to RGBA + + # Create a new RGBA image based on the grayscale mask + rgba_mask_img = Image.new("RGBA", img.size, (255, 255, 255, 255)) + rgba_mask_img.putalpha(mask_img) # Use the mask image as the alpha channel + + # Composite the RGBA mask onto the base image + composited_img = Image.alpha_composite(img, rgba_mask_img) + pil_images.append(composited_img) # Add the composited image back + + elif images is not None and masks is None: + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + pil_images.append(img) + + elif masks is not None and images is None: + for mask in masks: + mask_np = 255. * mask.cpu().numpy() + mask_img = Image.fromarray(np.clip(mask_np, 0, 255).astype(np.uint8)) + pil_images.append(mask_img) + else: + print("PreviewAnimation: No images or masks provided") + return { "ui": { "images": results, "animated": (None,), "text": "empty" }} + + num_frames = len(pil_images) + + c = len(pil_images) + for i in range(0, c, num_frames): + file = f"{filename}_{counter:05}_.webp" + pil_images[i].save(os.path.join(full_output_folder, file), save_all=True, duration=int(1000.0/fps), append_images=pil_images[i + 1:i + num_frames], lossless=False, quality=50, method=0) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + counter += 1 + + animated = num_frames != 1 + return { "ui": { "images": results, "animated": (animated,), "text": [f"{num_frames}x{pil_images[0].size[0]}x{pil_images[0].size[1]}"] } } + +class ImageResizeKJ: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "upscale_method": (s.upscale_methods,), + "keep_proportion": ("BOOLEAN", { "default": False }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + }, + "optional" : { + #"width_input": ("INT", { "forceInput": True}), + #"height_input": ("INT", { "forceInput": True}), + "get_image_size": ("IMAGE",), + "crop": (["disabled","center", 0], { "tooltip": "0 will do the default center crop, this is a workaround for the widget order changing with the new frontend, as in old workflows the value of this widget becomes 0 automatically" }), + } + } + + RETURN_TYPES = ("IMAGE", "INT", "INT",) + RETURN_NAMES = ("IMAGE", "width", "height",) + FUNCTION = "resize" + CATEGORY = "KJNodes/image" + DEPRECATED = True + DESCRIPTION = """ +DEPRECATED! + +Due to ComfyUI frontend changes, this node should no longer be used, please check the +v2 of the node. This node is only kept to not completely break older workflows. + +""" + + def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, + width_input=None, height_input=None, get_image_size=None, crop="disabled"): + B, H, W, C = image.shape + + if width_input: + width = width_input + if height_input: + height = height_input + if get_image_size is not None: + _, height, width, _ = get_image_size.shape + + if keep_proportion and get_image_size is None: + # If one of the dimensions is zero, calculate it to maintain the aspect ratio + if width == 0 and height != 0: + ratio = height / H + width = round(W * ratio) + elif height == 0 and width != 0: + ratio = width / W + height = round(H * ratio) + elif width != 0 and height != 0: + # Scale based on which dimension is smaller in proportion to the desired dimensions + ratio = min(width / W, height / H) + width = round(W * ratio) + height = round(H * ratio) + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1 and get_image_size is None: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + + if crop == 0: #workaround for old workflows + crop = "center" + + image = image.movedim(-1,1) + image = common_upscale(image, width, height, upscale_method, crop) + image = image.movedim(1,-1) + + return(image, image.shape[2], image.shape[1],) + +class ImageResizeKJv2: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "upscale_method": (s.upscale_methods,), + "keep_proportion": (["stretch", "resize", "pad", "pad_edge", "pad_edge_pixel", "crop", "pillarbox_blur", "total_pixels"], { "default": False }), + "pad_color": ("STRING", { "default": "0, 0, 0", "tooltip": "Color to use for padding."}), + "crop_position": (["center", "top", "bottom", "left", "right"], { "default": "center" }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + }, + "optional" : { + "mask": ("MASK",), + "device": (["cpu", "gpu"],), + #"per_batch": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, "tooltip": "Process images in sub-batches to reduce memory usage. 0 disables sub-batching."}), + }, + "hidden": { + "unique_id": "UNIQUE_ID", + }, + } + + RETURN_TYPES = ("IMAGE", "INT", "INT", "MASK",) + RETURN_NAMES = ("IMAGE", "width", "height", "mask",) + FUNCTION = "resize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Resizes the image to the specified width and height. +Size can be retrieved from the input. + +Keep proportions keeps the aspect ratio of the image, by +highest dimension. +""" + + def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, pad_color, crop_position, unique_id, device="cpu", mask=None, per_batch=64): + B, H, W, C = image.shape + + if device == "gpu": + if upscale_method == "lanczos": + raise Exception("Lanczos is not supported on the GPU") + device = model_management.get_torch_device() + else: + device = torch.device("cpu") + + pillarbox_blur = keep_proportion == "pillarbox_blur" + + # Initialize padding variables + pad_left = pad_right = pad_top = pad_bottom = 0 + + if keep_proportion in ["resize", "total_pixels"] or keep_proportion.startswith("pad") or pillarbox_blur: + if keep_proportion == "total_pixels": + total_pixels = width * height + aspect_ratio = W / H + new_height = int(math.sqrt(total_pixels / aspect_ratio)) + new_width = int(math.sqrt(total_pixels * aspect_ratio)) + + # If one of the dimensions is zero, calculate it to maintain the aspect ratio + elif width == 0 and height == 0: + new_width = W + new_height = H + elif width == 0 and height != 0: + ratio = height / H + new_width = round(W * ratio) + new_height = height + elif height == 0 and width != 0: + ratio = width / W + new_width = width + new_height = round(H * ratio) + elif width != 0 and height != 0: + ratio = min(width / W, height / H) + new_width = round(W * ratio) + new_height = round(H * ratio) + else: + new_width = width + new_height = height + + if keep_proportion.startswith("pad") or pillarbox_blur: + # Calculate padding based on position + if crop_position == "center": + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + elif crop_position == "top": + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = 0 + pad_bottom = height - new_height + elif crop_position == "bottom": + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = height - new_height + pad_bottom = 0 + elif crop_position == "left": + pad_left = 0 + pad_right = width - new_width + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + elif crop_position == "right": + pad_left = width - new_width + pad_right = 0 + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + + width = new_width + height = new_height + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + + # Preflight estimate (log-only when batching is active) + if per_batch != 0 and B > per_batch: + try: + bytes_per_elem = image.element_size() # typically 4 for float32 + est_total_bytes = B * height * width * C * bytes_per_elem + est_mb = est_total_bytes / (1024 * 1024) + msg = f"Resize v2estimated output ~{est_mb:.2f} MB; batching {per_batch}/{B}" + if unique_id and PromptServer is not None: + try: + PromptServer.instance.send_progress_text(msg, unique_id) + except: + pass + else: + print(f"[ImageResizeKJv2] estimated output ~{est_mb:.2f} MB; batching {per_batch}/{B}") + except: + pass + + def _process_subbatch(in_image, in_mask, pad_left, pad_right, pad_top, pad_bottom): + # Avoid unnecessary clones; only move if needed + out_image = in_image if in_image.device == device else in_image.to(device) + out_mask = None if in_mask is None else (in_mask if in_mask.device == device else in_mask.to(device)) + + # Crop logic + if keep_proportion == "crop": + old_height = out_image.shape[-3] + old_width = out_image.shape[-2] + old_aspect = old_width / old_height + new_aspect = width / height + if old_aspect > new_aspect: + crop_w = round(old_height * new_aspect) + crop_h = old_height + else: + crop_w = old_width + crop_h = round(old_width / new_aspect) + if crop_position == "center": + x = (old_width - crop_w) // 2 + y = (old_height - crop_h) // 2 + elif crop_position == "top": + x = (old_width - crop_w) // 2 + y = 0 + elif crop_position == "bottom": + x = (old_width - crop_w) // 2 + y = old_height - crop_h + elif crop_position == "left": + x = 0 + y = (old_height - crop_h) // 2 + elif crop_position == "right": + x = old_width - crop_w + y = (old_height - crop_h) // 2 + out_image = out_image.narrow(-2, x, crop_w).narrow(-3, y, crop_h) + if out_mask is not None: + out_mask = out_mask.narrow(-1, x, crop_w).narrow(-2, y, crop_h) + + out_image = common_upscale(out_image.movedim(-1,1), width, height, upscale_method, crop="disabled").movedim(1,-1) + if out_mask is not None: + if upscale_method == "lanczos": + out_mask = common_upscale(out_mask.unsqueeze(1).repeat(1, 3, 1, 1), width, height, upscale_method, crop="disabled").movedim(1,-1)[:, :, :, 0] + else: + out_mask = common_upscale(out_mask.unsqueeze(1), width, height, upscale_method, crop="disabled").squeeze(1) + + # Pad logic + if (keep_proportion.startswith("pad") or pillarbox_blur) and (pad_left > 0 or pad_right > 0 or pad_top > 0 or pad_bottom > 0): + padded_width = width + pad_left + pad_right + padded_height = height + pad_top + pad_bottom + if divisible_by > 1: + width_remainder = padded_width % divisible_by + height_remainder = padded_height % divisible_by + if width_remainder > 0: + extra_width = divisible_by - width_remainder + pad_right += extra_width + if height_remainder > 0: + extra_height = divisible_by - height_remainder + pad_bottom += extra_height + + pad_mode = ( + "pillarbox_blur" if pillarbox_blur else + "edge" if keep_proportion == "pad_edge" else + "edge_pixel" if keep_proportion == "pad_edge_pixel" else + "color" + ) + out_image, out_mask = ImagePadKJ.pad(self, out_image, pad_left, pad_right, pad_top, pad_bottom, 0, pad_color, pad_mode, mask=out_mask) + + return out_image, out_mask + + # If batching disabled (per_batch==0) or batch fits, process whole batch + if per_batch == 0 or B <= per_batch: + out_image, out_mask = _process_subbatch(image, mask, pad_left, pad_right, pad_top, pad_bottom) + else: + chunks = [] + mask_chunks = [] if mask is not None else None + total_batches = (B + per_batch - 1) // per_batch + current_batch = 0 + for start_idx in range(0, B, per_batch): + current_batch += 1 + end_idx = min(start_idx + per_batch, B) + sub_img = image[start_idx:end_idx] + sub_mask = mask[start_idx:end_idx] if mask is not None else None + sub_out_img, sub_out_mask = _process_subbatch(sub_img, sub_mask, pad_left, pad_right, pad_top, pad_bottom) + chunks.append(sub_out_img.cpu()) + if mask is not None: + mask_chunks.append(sub_out_mask.cpu() if sub_out_mask is not None else None) + # Per-batch progress update + if unique_id and PromptServer is not None: + try: + PromptServer.instance.send_progress_text( + f"Resize v2batch {current_batch}/{total_batches} · images {end_idx}/{B}", + unique_id + ) + except: + pass + else: + try: + print(f"[ImageResizeKJv2] batch {current_batch}/{total_batches} · images {end_idx}/{B}") + except: + pass + out_image = torch.cat(chunks, dim=0) + if mask is not None and any(m is not None for m in mask_chunks): + out_mask = torch.cat([m for m in mask_chunks if m is not None], dim=0) + else: + out_mask = None + + # Progress UI + if unique_id and PromptServer is not None: + try: + num_elements = out_image.numel() + element_size = out_image.element_size() + memory_size_mb = (num_elements * element_size) / (1024 * 1024) + PromptServer.instance.send_progress_text( + f"Output: {out_image.shape[0]} x {out_image.shape[2]} x {out_image.shape[1]} | {memory_size_mb:.2f}MB", + unique_id + ) + except: + pass + + return (out_image.cpu(), out_image.shape[2], out_image.shape[1], out_mask.cpu() if out_mask is not None else torch.zeros(64,64, device=torch.device("cpu"), dtype=torch.float32)) + +import pathlib +class LoadAndResizeImage: + _color_channels = ["alpha", "red", "green", "blue"] + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f.name for f in pathlib.Path(input_dir).iterdir() if f.is_file()] + return {"required": + { + "image": (sorted(files), {"image_upload": True}), + "resize": ("BOOLEAN", { "default": False }), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "repeat": ("INT", { "default": 1, "min": 1, "max": 4096, "step": 1, }), + "keep_proportion": ("BOOLEAN", { "default": False }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + "mask_channel": (s._color_channels, {"tooltip": "Channel to use for the mask output"}), + "background_color": ("STRING", { "default": "", "tooltip": "Fills the alpha channel with the specified color."}), + }, + } + + CATEGORY = "KJNodes/image" + RETURN_TYPES = ("IMAGE", "MASK", "INT", "INT", "STRING",) + RETURN_NAMES = ("image", "mask", "width", "height","image_path",) + FUNCTION = "load_image" + + def load_image(self, image, resize, width, height, repeat, keep_proportion, divisible_by, mask_channel, background_color): + from PIL import ImageColor, Image, ImageOps, ImageSequence + import numpy as np + import torch + image_path = folder_paths.get_annotated_filepath(image) + + import node_helpers + img = node_helpers.pillow(Image.open, image_path) + + # Process the background_color + if background_color: + try: + # Try to parse as RGB tuple + bg_color_rgba = tuple(int(x.strip()) for x in background_color.split(',')) + except ValueError: + # If parsing fails, it might be a hex color or named color + if background_color.startswith('#') or background_color.lower() in ImageColor.colormap: + bg_color_rgba = ImageColor.getrgb(background_color) + else: + raise ValueError(f"Invalid background color: {background_color}") + + bg_color_rgba += (255,) # Add alpha channel + else: + bg_color_rgba = None # No background color specified + + output_images = [] + output_masks = [] + w, h = None, None + + excluded_formats = ['MPO'] + + W, H = img.size + if resize: + if keep_proportion: + ratio = min(width / W, height / H) + width = round(W * ratio) + height = round(H * ratio) + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + else: + width, height = W, H + + for frame in ImageSequence.Iterator(img): + frame = node_helpers.pillow(ImageOps.exif_transpose, frame) + + if frame.mode == 'I': + frame = frame.point(lambda i: i * (1 / 255)) + + if frame.mode == 'P': + frame = frame.convert("RGBA") + elif 'A' in frame.getbands(): + frame = frame.convert("RGBA") + + # Extract alpha channel if it exists + if 'A' in frame.getbands() and bg_color_rgba: + alpha_mask = np.array(frame.getchannel('A')).astype(np.float32) / 255.0 + alpha_mask = 1. - torch.from_numpy(alpha_mask) + bg_image = Image.new("RGBA", frame.size, bg_color_rgba) + # Composite the frame onto the background + frame = Image.alpha_composite(bg_image, frame) + else: + alpha_mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") + + image = frame.convert("RGB") + + if len(output_images) == 0: + w = image.size[0] + h = image.size[1] + + if image.size[0] != w or image.size[1] != h: + continue + if resize: + image = image.resize((width, height), Image.Resampling.BILINEAR) + + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + + c = mask_channel[0].upper() + if c in frame.getbands(): + if resize: + frame = frame.resize((width, height), Image.Resampling.BILINEAR) + mask = np.array(frame.getchannel(c)).astype(np.float32) / 255.0 + mask = torch.from_numpy(mask) + if c == 'A' and bg_color_rgba: + mask = alpha_mask + elif c == 'A': + mask = 1. - mask + else: + mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") + + output_images.append(image) + output_masks.append(mask.unsqueeze(0)) + + if len(output_images) > 1 and img.format not in excluded_formats: + output_image = torch.cat(output_images, dim=0) + output_mask = torch.cat(output_masks, dim=0) + else: + output_image = output_images[0] + output_mask = output_masks[0] + if repeat > 1: + output_image = output_image.repeat(repeat, 1, 1, 1) + output_mask = output_mask.repeat(repeat, 1, 1) + + return (output_image, output_mask, width, height, image_path) + + + # @classmethod + # def IS_CHANGED(s, image, **kwargs): + # image_path = folder_paths.get_annotated_filepath(image) + # m = hashlib.sha256() + # with open(image_path, 'rb') as f: + # m.update(f.read()) + # return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + +import hashlib +class LoadImagesFromFolderKJ: + # Dictionary to store folder hashes + folder_hashes = {} + + @classmethod + def IS_CHANGED(cls, folder, **kwargs): + if folder and not os.path.isabs(folder) and args.base_directory: + folder = os.path.join(args.base_directory, folder) + if not folder or not os.path.isdir(folder): + return float("NaN") + + valid_extensions = ['.jpg', '.jpeg', '.png', '.webp', '.tga'] + include_subfolders = kwargs.get('include_subfolders', False) + + file_data = [] + if include_subfolders: + for root, _, files in os.walk(folder): + for file in files: + if any(file.lower().endswith(ext) for ext in valid_extensions): + path = os.path.join(root, file) + try: + mtime = os.path.getmtime(path) + file_data.append((path, mtime)) + except OSError: + pass + else: + for file in sorted(os.listdir(folder)): + if any(file.lower().endswith(ext) for ext in valid_extensions): + path = os.path.join(folder, file) + try: + mtime = os.path.getmtime(path) + file_data.append((path, mtime)) + except OSError: + pass + + file_data.sort() + + combined_hash = hashlib.md5() + combined_hash.update(folder.encode('utf-8')) + combined_hash.update(str(len(file_data)).encode('utf-8')) + + for path, mtime in file_data: + combined_hash.update(f"{path}:{mtime}".encode('utf-8')) + + current_hash = combined_hash.hexdigest() + + old_hash = cls.folder_hashes.get(folder) + cls.folder_hashes[folder] = current_hash + + if old_hash == current_hash: + return old_hash + + return current_hash + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "folder": ("STRING", {"default": ""}), + "width": ("INT", {"default": 1024, "min": -1, "step": 1}), + "height": ("INT", {"default": 1024, "min": -1, "step": 1}), + "keep_aspect_ratio": (["crop", "pad", "stretch",],), + }, + "optional": { + "image_load_cap": ("INT", {"default": 0, "min": 0, "step": 1}), + "start_index": ("INT", {"default": 0, "min": 0, "step": 1}), + "include_subfolders": ("BOOLEAN", {"default": False}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", "INT", "STRING",) + RETURN_NAMES = ("image", "mask", "count", "image_path",) + FUNCTION = "load_images" + CATEGORY = "KJNodes/image" + DESCRIPTION = """Loads images from a folder into a batch, images are resized and loaded into a batch.""" + + def load_images(self, folder, width, height, image_load_cap, start_index, keep_aspect_ratio, include_subfolders=False): + if folder and not os.path.isabs(folder) and args.base_directory: + folder = os.path.join(args.base_directory, folder) + if not folder or not os.path.isdir(folder): + raise FileNotFoundError(f"Folder '{folder}' cannot be found.") + + valid_extensions = ['.jpg', '.jpeg', '.png', '.webp', '.tga'] + image_paths = [] + if include_subfolders: + for root, _, files in os.walk(folder): + for file in files: + if any(file.lower().endswith(ext) for ext in valid_extensions): + image_paths.append(os.path.join(root, file)) + else: + for file in sorted(os.listdir(folder)): + if any(file.lower().endswith(ext) for ext in valid_extensions): + image_paths.append(os.path.join(folder, file)) + + dir_files = sorted(image_paths) + + if len(dir_files) == 0: + raise FileNotFoundError(f"No files in directory '{folder}'.") + + # start at start_index + dir_files = dir_files[start_index:] + + images = [] + masks = [] + image_path_list = [] + + limit_images = False + if image_load_cap > 0: + limit_images = True + image_count = 0 + + pbar = ProgressBar(len(dir_files)) + + for image_path in dir_files: + if os.path.isdir(image_path): + continue + if limit_images and image_count >= image_load_cap: + break + i = Image.open(image_path) + i = ImageOps.exif_transpose(i) + + # Resize image to maximum dimensions + if width == -1 and height == -1: + width = i.size[0] + height = i.size[1] + if i.size != (width, height): + i = self.resize_with_aspect_ratio(i, width, height, keep_aspect_ratio) + + + image = i.convert("RGB") + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + + if 'A' in i.getbands(): + mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + if mask.shape != (height, width): + mask = torch.nn.functional.interpolate(mask.unsqueeze(0).unsqueeze(0), + size=(height, width), + mode='bilinear', + align_corners=False).squeeze() + else: + mask = torch.zeros((height, width), dtype=torch.float32, device="cpu") + + images.append(image) + masks.append(mask) + image_path_list.append(image_path) + image_count += 1 + pbar.update(1) + + if len(images) == 1: + return (images[0], masks[0], 1, image_path_list) + + elif len(images) > 1: + image1 = images[0] + mask1 = masks[0].unsqueeze(0) + + for image2 in images[1:]: + image1 = torch.cat((image1, image2), dim=0) + + for mask2 in masks[1:]: + mask1 = torch.cat((mask1, mask2.unsqueeze(0)), dim=0) + + return (image1, mask1, len(images), image_path_list) + def resize_with_aspect_ratio(self, img, width, height, mode): + if mode == "stretch": + return img.resize((width, height), Image.Resampling.LANCZOS) + + img_width, img_height = img.size + aspect_ratio = img_width / img_height + target_ratio = width / height + + if mode == "crop": + # Calculate dimensions for center crop + if aspect_ratio > target_ratio: + # Image is wider - crop width + new_width = int(height * aspect_ratio) + img = img.resize((new_width, height), Image.Resampling.LANCZOS) + left = (new_width - width) // 2 + return img.crop((left, 0, left + width, height)) + else: + # Image is taller - crop height + new_height = int(width / aspect_ratio) + img = img.resize((width, new_height), Image.Resampling.LANCZOS) + top = (new_height - height) // 2 + return img.crop((0, top, width, top + height)) + + elif mode == "pad": + pad_color = self.get_edge_color(img) + # Calculate dimensions for padding + if aspect_ratio > target_ratio: + # Image is wider - pad height + new_height = int(width / aspect_ratio) + img = img.resize((width, new_height), Image.Resampling.LANCZOS) + padding = (height - new_height) // 2 + padded = Image.new('RGBA', (width, height), pad_color) + padded.paste(img, (0, padding)) + return padded + else: + # Image is taller - pad width + new_width = int(height * aspect_ratio) + img = img.resize((new_width, height), Image.Resampling.LANCZOS) + padding = (width - new_width) // 2 + padded = Image.new('RGBA', (width, height), pad_color) + padded.paste(img, (padding, 0)) + return padded + def get_edge_color(self, img): + from PIL import ImageStat + """Sample edges and return dominant color""" + width, height = img.size + img = img.convert('RGBA') + + # Create 1-pixel high/wide images from edges + top = img.crop((0, 0, width, 1)) + bottom = img.crop((0, height-1, width, height)) + left = img.crop((0, 0, 1, height)) + right = img.crop((width-1, 0, width, height)) + + # Combine edges into single image + edges = Image.new('RGBA', (width*2 + height*2, 1)) + edges.paste(top, (0, 0)) + edges.paste(bottom, (width, 0)) + edges.paste(left.resize((height, 1)), (width*2, 0)) + edges.paste(right.resize((height, 1)), (width*2 + height, 0)) + + # Get median color + stat = ImageStat.Stat(edges) + median = tuple(map(int, stat.median)) + return median + +class ImageGridtoBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "columns": ("INT", {"default": 3, "min": 1, "max": 8, "tooltip": "The number of columns in the grid."}), + "rows": ("INT", {"default": 0, "min": 1, "max": 8, "tooltip": "The number of rows in the grid. Set to 0 for automatic calculation."}), + } + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "decompose" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Converts a grid of images to a batch of images." + + def decompose(self, image, columns, rows): + B, H, W, C = image.shape + print("input size: ", image.shape) + + # Calculate cell width, rounding down + cell_width = W // columns + + if rows == 0: + # If rows is 0, calculate number of full rows + cell_height = H // columns + rows = H // cell_height + else: + # If rows is specified, adjust cell_height + cell_height = H // rows + + # Crop the image to fit full cells + image = image[:, :rows*cell_height, :columns*cell_width, :] + + # Reshape and permute the image to get the grid + image = image.view(B, rows, cell_height, columns, cell_width, C) + image = image.permute(0, 1, 3, 2, 4, 5).contiguous() + image = image.view(B, rows * columns, cell_height, cell_width, C) + + # Reshape to the final batch tensor + img_tensor = image.view(-1, cell_height, cell_width, C) + + return (img_tensor,) + +class SaveImageKJ: + def __init__(self): + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE", {"tooltip": "The images to save."}), + "filename_prefix": ("STRING", {"default": "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."}), + "output_folder": ("STRING", {"default": "output", "tooltip": "The folder to save the images to."}), + }, + "optional": { + "caption_file_extension": ("STRING", {"default": ".txt", "tooltip": "The extension for the caption file."}), + "caption": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), + }, + "hidden": { + "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO" + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("filename",) + FUNCTION = "save_images" + + OUTPUT_NODE = True + + CATEGORY = "KJNodes/image" + DESCRIPTION = "Saves the input images to your ComfyUI output directory." + + def save_images(self, images, output_folder, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None, caption=None, caption_file_extension=".txt"): + filename_prefix += self.prefix_append + + if os.path.isabs(output_folder): + if not os.path.exists(output_folder): + os.makedirs(output_folder, exist_ok=True) + full_output_folder = output_folder + _, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, output_folder, images[0].shape[1], images[0].shape[0]) + else: + self.output_dir = folder_paths.get_output_directory() + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + + results = list() + for (batch_number, image) in enumerate(images): + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + base_file_name = f"{filename_with_batch_num}_{counter:05}_" + file = f"{base_file_name}.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + if caption is not None: + txt_file = base_file_name + caption_file_extension + file_path = os.path.join(full_output_folder, txt_file) + with open(file_path, 'w') as f: + f.write(caption) + + counter += 1 + + return file, + +class SaveStringKJ: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "string": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), + "filename_prefix": ("STRING", {"default": "text", "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."}), + "output_folder": ("STRING", {"default": "output", "tooltip": "The folder to save the images to."}), + }, + "optional": { + "file_extension": ("STRING", {"default": ".txt", "tooltip": "The extension for the caption file."}), + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("filename",) + FUNCTION = "save_string" + + OUTPUT_NODE = True + + CATEGORY = "KJNodes/misc" + DESCRIPTION = "Saves the input string to your ComfyUI output directory." + + def save_string(self, string, output_folder, filename_prefix="text", file_extension=".txt"): + filename_prefix += self.prefix_append + + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + if output_folder and not os.path.isabs(output_folder) and args.base_directory: + output_folder = os.path.join(args.base_directory, output_folder) + if output_folder != "output": + if not os.path.exists(output_folder): + os.makedirs(output_folder, exist_ok=True) + full_output_folder = output_folder + + base_file_name = f"{filename_prefix}_{counter:05}_" + results = list() + + txt_file = base_file_name + file_extension + file_path = os.path.join(full_output_folder, txt_file) + with open(file_path, 'w') as f: + f.write(string) + + return results, + +to_pil_image = T.ToPILImage() + +class FastPreview: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image": ("IMAGE", ), + "format": (["JPEG", "PNG", "WEBP"], {"default": "JPEG"}), + "quality" : ("INT", {"default": 75, "min": 1, "max": 100, "step": 1}), + }, + } + + RETURN_TYPES = () + FUNCTION = "preview" + CATEGORY = "KJNodes/experimental" + OUTPUT_NODE = True + DESCRIPTION = "Experimental node for faster image previews by displaying through base64 it without saving to disk." + + def preview(self, image, format, quality): + pil_image = to_pil_image(image[0].permute(2, 0, 1)) + + with io.BytesIO() as buffered: + pil_image.save(buffered, format=format, quality=quality) + img_bytes = buffered.getvalue() + + img_base64 = base64.b64encode(img_bytes).decode('utf-8') + + return { + "ui": {"bg_image": [img_base64]}, + "result": () + } + +class ImageCropByMaskAndResize: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE", ), + "mask": ("MASK", ), + "base_resolution": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "padding": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "min_crop_resolution": ("INT", { "default": 128, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "max_crop_resolution": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + + }, + } + + RETURN_TYPES = ("IMAGE", "MASK", "BBOX", ) + RETURN_NAMES = ("images", "masks", "bbox",) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + + def crop_by_mask(self, mask, padding=0, min_crop_resolution=None, max_crop_resolution=None): + iy, ix = (mask == 1).nonzero(as_tuple=True) + h0, w0 = mask.shape + + if iy.numel() == 0: + x_c = w0 / 2.0 + y_c = h0 / 2.0 + width = 0 + height = 0 + else: + x_min = ix.min().item() + x_max = ix.max().item() + y_min = iy.min().item() + y_max = iy.max().item() + + width = x_max - x_min + height = y_max - y_min + + if width > w0 or height > h0: + raise Exception("Masked area out of bounds") + + x_c = (x_min + x_max) / 2.0 + y_c = (y_min + y_max) / 2.0 + + if min_crop_resolution: + width = max(width, min_crop_resolution) + height = max(height, min_crop_resolution) + + if max_crop_resolution: + width = min(width, max_crop_resolution) + height = min(height, max_crop_resolution) + + if w0 <= width: + x0 = 0 + w = w0 + else: + x0 = max(0, x_c - width / 2 - padding) + w = width + 2 * padding + if x0 + w > w0: + x0 = w0 - w + + if h0 <= height: + y0 = 0 + h = h0 + else: + y0 = max(0, y_c - height / 2 - padding) + h = height + 2 * padding + if y0 + h > h0: + y0 = h0 - h + + return (int(x0), int(y0), int(w), int(h)) + + def crop(self, image, mask, base_resolution, padding=0, min_crop_resolution=128, max_crop_resolution=512): + mask = mask.round() + image_list = [] + mask_list = [] + bbox_list = [] + + # First, collect all bounding boxes + bbox_params = [] + aspect_ratios = [] + for i in range(image.shape[0]): + x0, y0, w, h = self.crop_by_mask(mask[i], padding, min_crop_resolution, max_crop_resolution) + bbox_params.append((x0, y0, w, h)) + aspect_ratios.append(w / h) + + # Find maximum width and height + max_w = max([w for x0, y0, w, h in bbox_params]) + max_h = max([h for x0, y0, w, h in bbox_params]) + max_aspect_ratio = max(aspect_ratios) + + # Ensure dimensions are divisible by 16 + max_w = (max_w + 15) // 16 * 16 + max_h = (max_h + 15) // 16 * 16 + # Calculate common target dimensions + if max_aspect_ratio > 1: + target_width = base_resolution + target_height = int(base_resolution / max_aspect_ratio) + else: + target_height = base_resolution + target_width = int(base_resolution * max_aspect_ratio) + + for i in range(image.shape[0]): + x0, y0, w, h = bbox_params[i] + + # Adjust cropping to use maximum width and height + x_center = x0 + w / 2 + y_center = y0 + h / 2 + + x0_new = int(max(0, x_center - max_w / 2)) + y0_new = int(max(0, y_center - max_h / 2)) + x1_new = int(min(x0_new + max_w, image.shape[2])) + y1_new = int(min(y0_new + max_h, image.shape[1])) + x0_new = x1_new - max_w + y0_new = y1_new - max_h + + cropped_image = image[i][y0_new:y1_new, x0_new:x1_new, :] + cropped_mask = mask[i][y0_new:y1_new, x0_new:x1_new] + + # Ensure dimensions are divisible by 16 + target_width = (target_width + 15) // 16 * 16 + target_height = (target_height + 15) // 16 * 16 + + cropped_image = cropped_image.unsqueeze(0).movedim(-1, 1) # Move C to the second position (B, C, H, W) + cropped_image = common_upscale(cropped_image, target_width, target_height, "lanczos", "disabled") + cropped_image = cropped_image.movedim(1, -1).squeeze(0) + + cropped_mask = cropped_mask.unsqueeze(0).unsqueeze(0) + cropped_mask = common_upscale(cropped_mask, target_width, target_height, 'bilinear', "disabled") + cropped_mask = cropped_mask.squeeze(0).squeeze(0) + + image_list.append(cropped_image) + mask_list.append(cropped_mask) + bbox_list.append((x0_new, y0_new, x1_new, y1_new)) + + + return (torch.stack(image_list), torch.stack(mask_list), bbox_list) + +class ImageCropByMask: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE", ), + "mask": ("MASK", ), + }, + } + + RETURN_TYPES = ("IMAGE", ) + RETURN_NAMES = ("image", ) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Crops the input images based on the provided mask." + + def crop(self, image, mask): + B, H, W, C = image.shape + mask = mask.round() + + # Find bounding box for each batch + crops = [] + + for b in range(B): + # Get coordinates of non-zero elements + rows = torch.any(mask[min(b, mask.shape[0]-1)] > 0, dim=1) + cols = torch.any(mask[min(b, mask.shape[0]-1)] > 0, dim=0) + + # Find boundaries + y_min, y_max = torch.where(rows)[0][[0, -1]] + x_min, x_max = torch.where(cols)[0][[0, -1]] + + # Crop image and mask + crop = image[b:b+1, y_min:y_max+1, x_min:x_max+1, :] + crops.append(crop) + + # Stack results back together + cropped_images = torch.cat(crops, dim=0) + + return (cropped_images, ) + + + +class ImageUncropByMask: + + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "destination": ("IMAGE",), + "source": ("IMAGE",), + "mask": ("MASK",), + "bbox": ("BBOX",), + }, + } + + CATEGORY = "KJNodes/image" + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "uncrop" + + def uncrop(self, destination, source, mask, bbox=None): + + output_list = [] + + B, H, W, C = destination.shape + + for i in range(source.shape[0]): + x0, y0, x1, y1 = bbox[i] + bbox_height = y1 - y0 + bbox_width = x1 - x0 + + # Resize source image to match the bounding box dimensions + #resized_source = F.interpolate(source[i].unsqueeze(0).movedim(-1, 1), size=(bbox_height, bbox_width), mode='bilinear', align_corners=False) + resized_source = common_upscale(source[i].unsqueeze(0).movedim(-1, 1), bbox_width, bbox_height, "lanczos", "disabled") + resized_source = resized_source.movedim(1, -1).squeeze(0) + + # Resize mask to match the bounding box dimensions + resized_mask = common_upscale(mask[i].unsqueeze(0).unsqueeze(0), bbox_width, bbox_height, "bilinear", "disabled") + resized_mask = resized_mask.squeeze(0).squeeze(0) + + # Calculate padding values + pad_left = x0 + pad_right = W - x1 + pad_top = y0 + pad_bottom = H - y1 + + # Pad the resized source image and mask to fit the destination dimensions + padded_source = F.pad(resized_source, pad=(0, 0, pad_left, pad_right, pad_top, pad_bottom), mode='constant', value=0) + padded_mask = F.pad(resized_mask, pad=(pad_left, pad_right, pad_top, pad_bottom), mode='constant', value=0) + + # Ensure the padded mask has the correct shape + padded_mask = padded_mask.unsqueeze(2).expand(-1, -1, destination[i].shape[2]) + # Ensure the padded source has the correct shape + padded_source = padded_source.unsqueeze(2).expand(-1, -1, -1, destination[i].shape[2]).squeeze(2) + + # Combine the destination and padded source images using the mask + result = destination[i] * (1.0 - padded_mask) + padded_source * padded_mask + + output_list.append(result) + + + return (torch.stack(output_list),) + +class ImageCropByMaskBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "masks": ("MASK", ), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "padding": ("INT", {"default": 0, "min": 0, "max": 4096, "step": 1, }), + "preserve_size": ("BOOLEAN", {"default": False}), + "bg_color": ("STRING", {"default": "0, 0, 0", "tooltip": "Color as RGB values in range 0-255, separated by commas."}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", ) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Crops the input images based on the provided masks." + + def crop(self, image, masks, width, height, bg_color, padding, preserve_size): + B, H, W, C = image.shape + BM, HM, WM = masks.shape + mask_count = BM + if HM != H or WM != W: + masks = F.interpolate(masks.unsqueeze(1), size=(H, W), mode='nearest-exact').squeeze(1) + print(masks.shape) + output_images = [] + output_masks = [] + + bg_color = [int(x.strip())/255.0 for x in bg_color.split(",")] + + # For each mask + for i in range(mask_count): + curr_mask = masks[i] + + # Find bounds + y_indices, x_indices = torch.nonzero(curr_mask, as_tuple=True) + if len(y_indices) == 0 or len(x_indices) == 0: + continue + + # Get exact bounds with padding + min_y = max(0, y_indices.min().item() - padding) + max_y = min(H, y_indices.max().item() + 1 + padding) + min_x = max(0, x_indices.min().item() - padding) + max_x = min(W, x_indices.max().item() + 1 + padding) + + # Ensure mask has correct shape for multiplication + curr_mask = curr_mask.unsqueeze(-1).expand(-1, -1, C) + + # Crop image and mask together + cropped_img = image[0, min_y:max_y, min_x:max_x, :] + cropped_mask = curr_mask[min_y:max_y, min_x:max_x, :] + + crop_h, crop_w = cropped_img.shape[0:2] + new_w = crop_w + new_h = crop_h + + if not preserve_size or crop_w > width or crop_h > height: + scale = min(width/crop_w, height/crop_h) + new_w = int(crop_w * scale) + new_h = int(crop_h * scale) + + # Resize RGB + resized_img = common_upscale(cropped_img.permute(2,0,1).unsqueeze(0), new_w, new_h, "lanczos", "disabled").squeeze(0).permute(1,2,0) + resized_mask = torch.nn.functional.interpolate( + cropped_mask.permute(2,0,1).unsqueeze(0), + size=(new_h, new_w), + mode='nearest' + ).squeeze(0).permute(1,2,0) + else: + resized_img = cropped_img + resized_mask = cropped_mask + + # Create empty tensors + new_img = torch.zeros((height, width, 3), dtype=image.dtype) + new_mask = torch.zeros((height, width), dtype=image.dtype) + + # Pad both + pad_x = (width - new_w) // 2 + pad_y = (height - new_h) // 2 + new_img[pad_y:pad_y+new_h, pad_x:pad_x+new_w, :] = resized_img + if len(resized_mask.shape) == 3: + resized_mask = resized_mask[:,:,0] # Take first channel if 3D + new_mask[pad_y:pad_y+new_h, pad_x:pad_x+new_w] = resized_mask + + output_images.append(new_img) + output_masks.append(new_mask) + + if not output_images: + return (torch.zeros((0, height, width, 3), dtype=image.dtype),) + + out_rgb = torch.stack(output_images, dim=0) + out_masks = torch.stack(output_masks, dim=0) + + # Apply mask to RGB + mask_expanded = out_masks.unsqueeze(-1).expand(-1, -1, -1, 3) + background_color = torch.tensor(bg_color, dtype=torch.float32, device=image.device) + out_rgb = out_rgb * mask_expanded + background_color * (1 - mask_expanded) + + return (out_rgb, out_masks) + +class ImagePadKJ: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "extra_padding": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "pad_mode": (["edge", "edge_pixel", "color", "pillarbox_blur"],), + "color": ("STRING", {"default": "0, 0, 0", "tooltip": "Color as RGB values in range 0-255, separated by commas."}), + }, + "optional": { + "mask": ("MASK", ), + "target_width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, "forceInput": True}), + "target_height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, "forceInput": True}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", ) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "pad" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Pad the input image and optionally mask with the specified padding." + + def pad(self, image, left, right, top, bottom, extra_padding, color, pad_mode, mask=None, target_width=None, target_height=None): + B, H, W, C = image.shape + # Resize masks to image dimensions if necessary + if mask is not None: + BM, HM, WM = mask.shape + if HM != H or WM != W: + mask = F.interpolate(mask.unsqueeze(1), size=(H, W), mode='nearest-exact').squeeze(1) + + # Parse background color + bg_color = [int(x.strip())/255.0 for x in color.split(",")] + if len(bg_color) == 1: + bg_color = bg_color * 3 # Grayscale to RGB + bg_color = torch.tensor(bg_color, dtype=image.dtype, device=image.device) + + # Calculate padding sizes with extra padding + if target_width is not None and target_height is not None: + if extra_padding > 0: + image = common_upscale(image.movedim(-1, 1), W - extra_padding, H - extra_padding, "lanczos", "disabled").movedim(1, -1) + B, H, W, C = image.shape + + padded_width = target_width + padded_height = target_height + pad_left = (padded_width - W) // 2 + pad_right = padded_width - W - pad_left + pad_top = (padded_height - H) // 2 + pad_bottom = padded_height - H - pad_top + else: + pad_left = left + extra_padding + pad_right = right + extra_padding + pad_top = top + extra_padding + pad_bottom = bottom + extra_padding + + padded_width = W + pad_left + pad_right + padded_height = H + pad_top + pad_bottom + + # Pillarbox blur mode + if pad_mode == "pillarbox_blur": + def _gaussian_blur_nchw(img_nchw, sigma_px): + if sigma_px <= 0: + return img_nchw + radius = max(1, int(3.0 * float(sigma_px))) + k = 2 * radius + 1 + x = torch.arange(-radius, radius + 1, device=img_nchw.device, dtype=img_nchw.dtype) + k1 = torch.exp(-(x * x) / (2.0 * float(sigma_px) * float(sigma_px))) + k1 = k1 / k1.sum() + kx = k1.view(1, 1, 1, k) + ky = k1.view(1, 1, k, 1) + c = img_nchw.shape[1] + kx = kx.repeat(c, 1, 1, 1) + ky = ky.repeat(c, 1, 1, 1) + img_nchw = F.conv2d(img_nchw, kx, padding=(0, radius), groups=c) + img_nchw = F.conv2d(img_nchw, ky, padding=(radius, 0), groups=c) + return img_nchw + + out_image = torch.zeros((B, padded_height, padded_width, C), dtype=image.dtype, device=image.device) + for b in range(B): + scale_fill = max(padded_width / float(W), padded_height / float(H)) if (W > 0 and H > 0) else 1.0 + bg_w = max(1, int(round(W * scale_fill))) + bg_h = max(1, int(round(H * scale_fill))) + src_b = image[b].movedim(-1, 0).unsqueeze(0) + bg = common_upscale(src_b, bg_w, bg_h, "bilinear", crop="disabled") + y0 = max(0, (bg_h - padded_height) // 2) + x0 = max(0, (bg_w - padded_width) // 2) + y1 = min(bg_h, y0 + padded_height) + x1 = min(bg_w, x0 + padded_width) + bg = bg[:, :, y0:y1, x0:x1] + if bg.shape[2] != padded_height or bg.shape[3] != padded_width: + pad_h = padded_height - bg.shape[2] + pad_w = padded_width - bg.shape[3] + pad_top_fix = max(0, pad_h // 2) + pad_bottom_fix = max(0, pad_h - pad_top_fix) + pad_left_fix = max(0, pad_w // 2) + pad_right_fix = max(0, pad_w - pad_left_fix) + bg = F.pad(bg, (pad_left_fix, pad_right_fix, pad_top_fix, pad_bottom_fix), mode="replicate") + sigma = max(1.0, 0.006 * float(min(padded_height, padded_width))) + bg = _gaussian_blur_nchw(bg, sigma_px=sigma) + if C >= 3: + r, g, bch = bg[:, 0:1], bg[:, 1:2], bg[:, 2:3] + luma = 0.2126 * r + 0.7152 * g + 0.0722 * bch + gray = torch.cat([luma, luma, luma], dim=1) + desat = 0.20 + rgb = torch.cat([r, g, bch], dim=1) + rgb = rgb * (1.0 - desat) + gray * desat + bg[:, 0:3, :, :] = rgb + dim = 0.35 + bg = torch.clamp(bg * dim, 0.0, 1.0) + out_image[b] = bg.squeeze(0).movedim(0, -1) + out_image[:, pad_top:pad_top+H, pad_left:pad_left+W, :] = image + # Mask handling for pillarbox_blur + if mask is not None: + fg_mask = mask + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + out_masks[:, pad_top:pad_top+H, pad_left:pad_left+W] = fg_mask + else: + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + out_masks[:, pad_top:pad_top+H, pad_left:pad_left+W] = 0.0 + return (out_image, out_masks) + + # Standard pad logic (edge/color) + out_image = torch.zeros((B, padded_height, padded_width, C), dtype=image.dtype, device=image.device) + for b in range(B): + if pad_mode == "edge": + # Pad with edge color (mean) + top_edge = image[b, 0, :, :] + bottom_edge = image[b, H-1, :, :] + left_edge = image[b, :, 0, :] + right_edge = image[b, :, W-1, :] + out_image[b, :pad_top, :, :] = top_edge.mean(dim=0) + out_image[b, pad_top+H:, :, :] = bottom_edge.mean(dim=0) + out_image[b, :, :pad_left, :] = left_edge.mean(dim=0) + out_image[b, :, pad_left+W:, :] = right_edge.mean(dim=0) + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + elif pad_mode == "edge_pixel": + # Pad with exact edge pixel values + for y in range(pad_top): + out_image[b, y, pad_left:pad_left+W, :] = image[b, 0, :, :] + for y in range(pad_top+H, padded_height): + out_image[b, y, pad_left:pad_left+W, :] = image[b, H-1, :, :] + for x in range(pad_left): + out_image[b, pad_top:pad_top+H, x, :] = image[b, :, 0, :] + for x in range(pad_left+W, padded_width): + out_image[b, pad_top:pad_top+H, x, :] = image[b, :, W-1, :] + out_image[b, :pad_top, :pad_left, :] = image[b, 0, 0, :] + out_image[b, :pad_top, pad_left+W:, :] = image[b, 0, W-1, :] + out_image[b, pad_top+H:, :pad_left, :] = image[b, H-1, 0, :] + out_image[b, pad_top+H:, pad_left+W:, :] = image[b, H-1, W-1, :] + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + else: + # Pad with specified background color + out_image[b, :, :, :] = bg_color.unsqueeze(0).unsqueeze(0) + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + + if mask is not None: + out_masks = torch.nn.functional.pad( + mask, + (pad_left, pad_right, pad_top, pad_bottom), + mode='replicate' + ) + else: + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + for m in range(B): + out_masks[m, pad_top:pad_top+H, pad_left:pad_left+W] = 0.0 + + return (out_image, out_masks) + +# extends https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite +class LoadVideosFromFolder: + @classmethod + def __init__(cls): + try: + cls.vhs_nodes = importlib.import_module("ComfyUI-VideoHelperSuite.videohelpersuite") + except ImportError: + try: + cls.vhs_nodes = importlib.import_module("comfyui-videohelpersuite.videohelpersuite") + except ImportError: + # Fallback to sys.modules search for Windows compatibility + import sys + vhs_module = None + for module_name in sys.modules: + if 'videohelpersuite' in module_name and 'videohelpersuite' in sys.modules[module_name].__dict__: + vhs_module = sys.modules[module_name] + break + + if vhs_module is None: + # Try direct access to the videohelpersuite submodule + for module_name in sys.modules: + if module_name.endswith('videohelpersuite'): + vhs_module = sys.modules[module_name] + break + + if vhs_module is not None: + cls.vhs_nodes = vhs_module + else: + raise ImportError("This node requires ComfyUI-VideoHelperSuite to be installed.") + + except ImportError: + raise ImportError("This node requires ComfyUI-VideoHelperSuite to be installed.") + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video": ("STRING", {"default": "X://insert/path/"},), + "force_rate": ("FLOAT", {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": 4096, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": 4096, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": 10000, "step": 1, "disable": 0}), + "skip_first_frames": ("INT", {"default": 0, "min": 0, "max": 10000, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": 1000, "step": 1}), + "output_type": (["batch", "grid"], {"default": "batch"}), + "grid_max_columns": ("INT", {"default": 4, "min": 1, "max": 16, "step": 1, "disable": 1}), + "add_label": ( "BOOLEAN", {"default": False} ), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "KJNodes/misc" + + RETURN_TYPES = ("IMAGE", ) + RETURN_NAMES = ("IMAGE", ) + + FUNCTION = "load_video" + + def load_video(self, output_type, grid_max_columns, add_label=False, **kwargs): + if kwargs.get('video') and not os.path.isabs(kwargs['video']) and args.base_directory: + kwargs['video'] = os.path.join(args.base_directory, kwargs['video']) + + if self.vhs_nodes is None: + raise ImportError("This node requires ComfyUI-VideoHelperSuite to be installed.") + videos_list = [] + filenames = [] + for f in sorted(os.listdir(kwargs['video'])): + if os.path.isfile(os.path.join(kwargs['video'], f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1].lower() in ['webm', 'mp4', 'mkv', 'gif', 'mov']): + videos_list.append(os.path.join(kwargs['video'], f)) + filenames.append(f) + print(videos_list) + kwargs.pop('video') + loaded_videos = [] + for idx, video in enumerate(videos_list): + video_tensor = self.vhs_nodes.load_video_nodes.load_video(video=video, **kwargs)[0] + if add_label: + # Add filename label above video (without extension) + if video_tensor.dim() == 4: + _, h, w, c = video_tensor.shape + else: + h, w, c = video_tensor.shape + # Remove extension from filename + label_text = filenames[idx].rsplit('.', 1)[0] + font_size = max(16, w // 20) + try: + font = ImageFont.truetype("arial.ttf", font_size) + except: + font = ImageFont.load_default() + dummy_img = Image.new("RGB", (w, 10), (0,0,0)) + draw = ImageDraw.Draw(dummy_img) + text_bbox = draw.textbbox((0,0), label_text, font=font) + extra_padding = max(12, font_size // 2) # More padding under the font + label_height = text_bbox[3] - text_bbox[1] + extra_padding + label_img = Image.new("RGB", (w, label_height), (0,0,0)) + draw = ImageDraw.Draw(label_img) + draw.text((w//2 - (text_bbox[2]-text_bbox[0])//2, 4), label_text, font=font, fill=(255,255,255)) + label_np = np.asarray(label_img).astype(np.float32) / 255.0 + label_tensor = torch.from_numpy(label_np) + if c == 1: + label_tensor = label_tensor.mean(dim=2, keepdim=True) + elif c == 4: + alpha = torch.ones((label_height, w, 1), dtype=label_tensor.dtype) + label_tensor = torch.cat([label_tensor, alpha], dim=2) + if video_tensor.dim() == 4: + label_tensor = label_tensor.unsqueeze(0).expand(video_tensor.shape[0], -1, -1, -1) + video_tensor = torch.cat([label_tensor, video_tensor], dim=1) + else: + video_tensor = torch.cat([label_tensor, video_tensor], dim=0) + loaded_videos.append(video_tensor) + if output_type == "batch": + out_tensor = torch.cat(loaded_videos) + elif output_type == "grid": + rows = (len(loaded_videos) + grid_max_columns - 1) // grid_max_columns + # Pad the last row if needed + total_slots = rows * grid_max_columns + while len(loaded_videos) < total_slots: + loaded_videos.append(torch.zeros_like(loaded_videos[0])) + # Create grid by rows + row_tensors = [] + for row_idx in range(rows): + start_idx = row_idx * grid_max_columns + end_idx = start_idx + grid_max_columns + row_videos = loaded_videos[start_idx:end_idx] + # Pad all videos in this row to the same height + heights = [v.shape[1] for v in row_videos] + max_height = max(heights) + padded_row_videos = [] + for v in row_videos: + pad_height = max_height - v.shape[1] + if pad_height > 0: + # Pad (frames, H, W, C) or (H, W, C) + if v.dim() == 4: + pad = (0,0, 0,0, 0,pad_height, 0,0) # (C,W,H,F) + v = torch.nn.functional.pad(v, (0,0,0,0,0,pad_height,0,0)) + else: + v = torch.nn.functional.pad(v, (0,0,0,0,pad_height,0)) + padded_row_videos.append(v) + row_tensor = torch.cat(padded_row_videos, dim=2) # Concatenate horizontally + row_tensors.append(row_tensor) + out_tensor = torch.cat(row_tensors, dim=1) # Concatenate rows vertically + print(out_tensor.shape) + return out_tensor, + + @classmethod + def IS_CHANGED(s, video, **kwargs): + if s.vhs_nodes is not None: + return s.vhs_nodes.utils.hash_path(video) + return None diff --git a/docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js b/docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js new file mode 100644 index 00000000..c391bd55 --- /dev/null +++ b/docs/hel-892/multivideo-reference/concat__web__js__jsnodes.js @@ -0,0 +1,413 @@ +const { app } = window.comfyAPI.app; +const { applyTextReplacements } = window.comfyAPI.utils; + +app.registerExtension({ + name: "KJNodes.jsnodes", + async beforeRegisterNodeDef(nodeType, nodeData, app) { + if(!nodeData?.category?.startsWith("KJNodes")) { + return; + } + switch (nodeData.name) { + case "ConditioningMultiCombine": + nodeType.prototype.onNodeCreated = function () { + this._type = "CONDITIONING" + this.inputs_offset = nodeData.name.includes("selective")?1:0 + this.addWidget("button", "Update inputs", null, () => { + if (!this.inputs) { + this.inputs = []; + } + const target_number_of_inputs = this.widgets.find(w => w.name === "inputcount")["value"]; + const num_inputs = this.inputs.filter(input => input.type === this._type).length + if(target_number_of_inputs===num_inputs)return; // already set, do nothing + + if(target_number_of_inputs < num_inputs){ + const inputs_to_remove = num_inputs - target_number_of_inputs; + for(let i = 0; i < inputs_to_remove; i++) { + this.removeInput(this.inputs.length - 1); + } + } + else{ + for(let i = num_inputs+1; i <= target_number_of_inputs; ++i) + this.addInput(`conditioning_${i}`, this._type) + } + }); + } + break; + case "ImageBatchMulti": + case "ImageAddMulti": + case "ImageConcatMulti": + case "CrossFadeImagesMulti": + case "TransitionImagesMulti": + nodeType.prototype.onNodeCreated = function () { + this._type = "IMAGE" + this.addWidget("button", "Update inputs", null, () => { + if (!this.inputs) { + this.inputs = []; + } + const target_number_of_inputs = this.widgets.find(w => w.name === "inputcount")["value"]; + const num_inputs = this.inputs.filter(input => input.type === this._type).length + if(target_number_of_inputs===num_inputs)return; // already set, do nothing + + if(target_number_of_inputs < num_inputs){ + const inputs_to_remove = num_inputs - target_number_of_inputs; + for(let i = 0; i < inputs_to_remove; i++) { + this.removeInput(this.inputs.length - 1); + } + } + else{ + for(let i = num_inputs+1; i <= target_number_of_inputs; ++i) + this.addInput(`image_${i}`, this._type, {shape: 7}); + } + + }); + } + break; + case "MaskBatchMulti": + nodeType.prototype.onNodeCreated = function () { + this._type = "MASK" + this.addWidget("button", "Update inputs", null, () => { + if (!this.inputs) { + this.inputs = []; + } + const target_number_of_inputs = this.widgets.find(w => w.name === "inputcount")["value"]; + const num_inputs = this.inputs.filter(input => input.type === this._type).length + if(target_number_of_inputs===num_inputs)return; // already set, do nothing + + if(target_number_of_inputs < num_inputs){ + const inputs_to_remove = num_inputs - target_number_of_inputs; + for(let i = 0; i < inputs_to_remove; i++) { + this.removeInput(this.inputs.length - 1); + } + } + else{ + for(let i = num_inputs+1; i <= target_number_of_inputs; ++i) + this.addInput(`mask_${i}`, this._type) + } + }); + } + break; + + case "FluxBlockLoraSelect": + case "HunyuanVideoBlockLoraSelect": + case "Wan21BlockLoraSelect": + nodeType.prototype.onNodeCreated = function () { + this.addWidget("button", "Set all", null, () => { + const userInput = prompt("Enter the values to set for widgets (e.g., s0,1,2-7=2.0, d0,1,2-7=2.0, or 1.0):", ""); + if (userInput) { + const regex = /([sd])?(\d+(?:,\d+|-?\d+)*?)?=(\d+(\.\d+)?)/; + const match = userInput.match(regex); + if (match) { + const type = match[1]; + const indicesPart = match[2]; + const value = parseFloat(match[3]); + + let targetWidgets = []; + if (type === 's') { + targetWidgets = this.widgets.filter(widget => widget.name.includes("single")); + } else if (type === 'd') { + targetWidgets = this.widgets.filter(widget => widget.name.includes("double")); + } else { + targetWidgets = this.widgets; // No type specified, all widgets + } + + if (indicesPart) { + const indices = indicesPart.split(',').flatMap(part => { + if (part.includes('-')) { + const [start, end] = part.split('-').map(Number); + return Array.from({ length: end - start + 1 }, (_, i) => start + i); + } + return Number(part); + }); + + for (const index of indices) { + if (index < targetWidgets.length) { + targetWidgets[index].value = value; + } + } + } else { + // No indices provided, set value for all target widgets + for (const widget of targetWidgets) { + widget.value = value; + } + } + } else if (!isNaN(parseFloat(userInput))) { + // Single value provided, set it for all widgets + const value = parseFloat(userInput); + for (const widget of this.widgets) { + widget.value = value; + } + } else { + alert("Invalid input format. Please use the format s0,1,2-7=2.0, d0,1,2-7=2.0, or 1.0"); + } + } else { + alert("Invalid input. Please enter a value."); + } + }); + }; + break; + + case "GetMaskSizeAndCount": + const onGetMaskSizeConnectInput = nodeType.prototype.onConnectInput; + nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { + const v = onGetMaskSizeConnectInput? onGetMaskSizeConnectInput.apply(this, arguments): undefined + this.outputs[1]["label"] = "width" + this.outputs[2]["label"] = "height" + this.outputs[3]["label"] = "count" + return v; + } + const onGetMaskSizeExecuted = nodeType.prototype.onAfterExecuteNode; + nodeType.prototype.onExecuted = function(message) { + const r = onGetMaskSizeExecuted? onGetMaskSizeExecuted.apply(this,arguments): undefined + let values = message["text"].toString().split('x').map(Number); + this.outputs[1]["label"] = values[1] + " width" + this.outputs[2]["label"] = values[2] + " height" + this.outputs[3]["label"] = values[0] + " count" + return r + } + break; + + case "GetImageSizeAndCount": + const onGetImageSizeConnectInput = nodeType.prototype.onConnectInput; + nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { + console.log(this) + const v = onGetImageSizeConnectInput? onGetImageSizeConnectInput.apply(this, arguments): undefined + //console.log(this) + this.outputs[1]["label"] = "width" + this.outputs[2]["label"] = "height" + this.outputs[3]["label"] = "count" + return v; + } + //const onGetImageSizeExecuted = nodeType.prototype.onExecuted; + const onGetImageSizeExecuted = nodeType.prototype.onAfterExecuteNode; + nodeType.prototype.onExecuted = function(message) { + console.log(this) + const r = onGetImageSizeExecuted? onGetImageSizeExecuted.apply(this,arguments): undefined + let values = message["text"].toString().split('x').map(Number); + console.log(values) + this.outputs[1]["label"] = values[1] + " width" + this.outputs[2]["label"] = values[2] + " height" + this.outputs[3]["label"] = values[0] + " count" + return r + } + break; + + case "GetLatentSizeAndCount": + const onGetLatentConnectInput = nodeType.prototype.onConnectInput; + nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { + console.log(this) + const v = onGetLatentConnectInput? onGetLatentConnectInput.apply(this, arguments): undefined + //console.log(this) + this.outputs[1]["label"] = "width" + this.outputs[2]["label"] = "height" + this.outputs[3]["label"] = "count" + return v; + } + //const onGetImageSizeExecuted = nodeType.prototype.onExecuted; + const onGetLatentSizeExecuted = nodeType.prototype.onAfterExecuteNode; + nodeType.prototype.onExecuted = function(message) { + console.log(this) + const r = onGetLatentSizeExecuted? onGetLatentSizeExecuted.apply(this,arguments): undefined + let values = message["text"].toString().split('x').map(Number); + console.log(values) + this.outputs[1]["label"] = values[0] + " batch" + this.outputs[2]["label"] = values[1] + " channels" + this.outputs[3]["label"] = values[2] + " frames" + this.outputs[4]["label"] = values[3] + " height" + this.outputs[5]["label"] = values[4] + " width" + return r + } + break; + + case "PreviewAnimation": + const onPreviewAnimationConnectInput = nodeType.prototype.onConnectInput; + nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { + const v = onPreviewAnimationConnectInput? onPreviewAnimationConnectInput.apply(this, arguments): undefined + this.title = "Preview Animation" + return v; + } + const onPreviewAnimationExecuted = nodeType.prototype.onAfterExecuteNode; + nodeType.prototype.onExecuted = function(message) { + const r = onPreviewAnimationExecuted? onPreviewAnimationExecuted.apply(this,arguments): undefined + let values = message["text"].toString(); + this.title = "Preview Animation " + values + return r + } + break; + + case "VRAM_Debug": + const onVRAM_DebugConnectInput = nodeType.prototype.onConnectInput; + nodeType.prototype.onConnectInput = function (targetSlot, type, output, originNode, originSlot) { + const v = onVRAM_DebugConnectInput? onVRAM_DebugConnectInput.apply(this, arguments): undefined + this.outputs[3]["label"] = "freemem_before" + this.outputs[4]["label"] = "freemem_after" + return v; + } + const onVRAM_DebugExecuted = nodeType.prototype.onAfterExecuteNode; + nodeType.prototype.onExecuted = function(message) { + const r = onVRAM_DebugExecuted? onVRAM_DebugExecuted.apply(this,arguments): undefined + let values = message["text"].toString().split('x'); + this.outputs[3]["label"] = values[0] + " freemem_before" + this.outputs[4]["label"] = values[1] + " freemem_after" + return r + } + break; + + case "JoinStringMulti": + const originalOnNodeCreated = nodeType.prototype.onNodeCreated || function() {}; + nodeType.prototype.onNodeCreated = function () { + originalOnNodeCreated.apply(this, arguments); + + this._type = "STRING"; + this.addWidget("button", "Update inputs", null, () => { + if (!this.inputs) { + this.inputs = []; + } + const target_number_of_inputs = this.widgets.find(w => w.name === "inputcount")["value"]; + const num_inputs = this.inputs.filter(input => input.name && input.name.toLowerCase().includes("string_")).length + if (target_number_of_inputs === num_inputs) return; // already set, do nothing + + if(target_number_of_inputs < num_inputs){ + const inputs_to_remove = num_inputs - target_number_of_inputs; + for(let i = 0; i < inputs_to_remove; i++) { + this.removeInput(this.inputs.length - 1); + } + } + else{ + for(let i = num_inputs+1; i <= target_number_of_inputs; ++i) + this.addInput(`string_${i}`, this._type, {shape: 7}); + } + }); + } + break; + case "SoundReactive": + nodeType.prototype.onNodeCreated = function () { + let audioContext; + let microphoneStream; + let animationFrameId; + let analyser; + let dataArray; + let startRangeHz; + let endRangeHz; + let smoothingFactor = 0.5; + let smoothedSoundLevel = 0; + + // Function to update the widget value in real-time + const updateWidgetValueInRealTime = () => { + // Ensure analyser and dataArray are defined before using them + if (analyser && dataArray) { + analyser.getByteFrequencyData(dataArray); + + const startRangeHzWidget = this.widgets.find(w => w.name === "start_range_hz"); + if (startRangeHzWidget) startRangeHz = startRangeHzWidget.value; + const endRangeHzWidget = this.widgets.find(w => w.name === "end_range_hz"); + if (endRangeHzWidget) endRangeHz = endRangeHzWidget.value; + const smoothingFactorWidget = this.widgets.find(w => w.name === "smoothing_factor"); + if (smoothingFactorWidget) smoothingFactor = smoothingFactorWidget.value; + + // Calculate frequency bin width (frequency resolution) + const frequencyBinWidth = audioContext.sampleRate / analyser.fftSize; + // Convert the widget values from Hz to indices + const startRangeIndex = Math.floor(startRangeHz / frequencyBinWidth); + const endRangeIndex = Math.floor(endRangeHz / frequencyBinWidth); + + // Function to calculate the average value for a frequency range + const calculateAverage = (start, end) => { + const sum = dataArray.slice(start, end).reduce((acc, val) => acc + val, 0); + const average = sum / (end - start); + + // Apply exponential moving average smoothing + smoothedSoundLevel = (average * (1 - smoothingFactor)) + (smoothedSoundLevel * smoothingFactor); + return smoothedSoundLevel; + }; + // Calculate the average levels for each frequency range + const soundLevel = calculateAverage(startRangeIndex, endRangeIndex); + + // Update the widget values + + const lowLevelWidget = this.widgets.find(w => w.name === "sound_level"); + if (lowLevelWidget) lowLevelWidget.value = soundLevel; + + animationFrameId = requestAnimationFrame(updateWidgetValueInRealTime); + } + }; + + // Function to start capturing audio from the microphone + const startMicrophoneCapture = () => { + // Only create the audio context and analyser once + if (!audioContext) { + audioContext = new (window.AudioContext || window.webkitAudioContext)(); + // Access the sample rate of the audio context + console.log(`Sample rate: ${audioContext.sampleRate}Hz`); + analyser = audioContext.createAnalyser(); + analyser.fftSize = 2048; + dataArray = new Uint8Array(analyser.frequencyBinCount); + // Get the range values from widgets (assumed to be in Hz) + const lowRangeWidget = this.widgets.find(w => w.name === "low_range_hz"); + if (lowRangeWidget) startRangeHz = lowRangeWidget.value; + + const midRangeWidget = this.widgets.find(w => w.name === "mid_range_hz"); + if (midRangeWidget) endRangeHz = midRangeWidget.value; + } + + navigator.mediaDevices.getUserMedia({ audio: true }).then(stream => { + microphoneStream = stream; + const microphone = audioContext.createMediaStreamSource(stream); + microphone.connect(analyser); + updateWidgetValueInRealTime(); + }).catch(error => { + console.error('Access to microphone was denied or an error occurred:', error); + }); + }; + + // Function to stop capturing audio from the microphone + const stopMicrophoneCapture = () => { + if (animationFrameId) { + cancelAnimationFrame(animationFrameId); + } + if (microphoneStream) { + microphoneStream.getTracks().forEach(track => track.stop()); + } + if (audioContext) { + audioContext.close(); + // Reset audioContext to ensure it can be created again when starting + audioContext = null; + } + }; + + // Add start button + this.addWidget("button", "Start mic capture", null, startMicrophoneCapture); + + // Add stop button + this.addWidget("button", "Stop mic capture", null, stopMicrophoneCapture); + }; + break; + case "SaveImageKJ": + const onNodeCreated = nodeType.prototype.onNodeCreated; + nodeType.prototype.onNodeCreated = function() { + const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : void 0; + const widget = this.widgets.find((w) => w.name === "filename_prefix"); + widget.serializeValue = () => { + return applyTextReplacements(app, widget.value); + }; + return r; + }; + break; + + } + + }, + async setup() { + // to keep Set/Get node virtual connections visible when offscreen + const originalComputeVisibleNodes = LGraphCanvas.prototype.computeVisibleNodes; + LGraphCanvas.prototype.computeVisibleNodes = function () { + const visibleNodesSet = new Set(originalComputeVisibleNodes.apply(this, arguments)); + for (const node of this.graph._nodes) { + if ((node.type === "SetNode" || node.type === "GetNode") && node.drawConnection) { + visibleNodesSet.add(node); + } + } + return Array.from(visibleNodesSet); + }; + + } +}); \ No newline at end of file diff --git a/docs/hel-892/multivideo-reference/load-tree.json b/docs/hel-892/multivideo-reference/load-tree.json new file mode 100644 index 00000000..620b0693 --- /dev/null +++ b/docs/hel-892/multivideo-reference/load-tree.json @@ -0,0 +1,437 @@ +{ + "sha": "8550981384301e9bc5bfea83e5c2c75258102593", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/8550981384301e9bc5bfea83e5c2c75258102593", + "tree": [ + { + "path": ".github", + "mode": "040000", + "type": "tree", + "sha": "7a7002793ebbe7911dded77df496f4b141a46661", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/7a7002793ebbe7911dded77df496f4b141a46661" + }, + { + "path": ".github/workflows", + "mode": "040000", + "type": "tree", + "sha": "a0920d307e4ff5f6199f39cf7cd22e853ed9c139", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/a0920d307e4ff5f6199f39cf7cd22e853ed9c139" + }, + { + "path": ".github/workflows/publish.yml", + "mode": "100644", + "type": "blob", + "sha": "27bcdb11695ea19286da34cd5f36cf75155a4dbb", + "size": 640, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/27bcdb11695ea19286da34cd5f36cf75155a4dbb" + }, + { + "path": ".gitignore", + "mode": "100644", + "type": "blob", + "sha": "9b5379e8f93da3909706b0a7d37f5c8ab5e2a2a5", + "size": 3101, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/9b5379e8f93da3909706b0a7d37f5c8ab5e2a2a5" + }, + { + "path": "LICENSE", + "mode": "100644", + "type": "blob", + "sha": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "size": 35149, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "path": "README.md", + "mode": "100644", + "type": "blob", + "sha": "753fcecf9979b40b2427869c6ad5bed1b61df482", + "size": 8877, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/753fcecf9979b40b2427869c6ad5bed1b61df482" + }, + { + "path": "__init__.py", + "mode": "100755", + "type": "blob", + "sha": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041", + "size": 398, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/9fa995f0ac7e296a62bcba9df68b5250a0f7d041" + }, + { + "path": "pyproject.toml", + "mode": "100644", + "type": "blob", + "sha": "110947257835ebab06e933d8ad6faf0016d20f62", + "size": 425, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/110947257835ebab06e933d8ad6faf0016d20f62" + }, + { + "path": "requirements.txt", + "mode": "100644", + "type": "blob", + "sha": "4fa34aa21b85c4b974e2a2b6891eae5fd6dd4164", + "size": 29, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/4fa34aa21b85c4b974e2a2b6891eae5fd6dd4164" + }, + { + "path": "testframework", + "mode": "040000", + "type": "tree", + "sha": "cb29518c671c9b91a4c2799b026d19260d5dfc33", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/cb29518c671c9b91a4c2799b026d19260d5dfc33" + }, + { + "path": "testframework/README.md", + "mode": "100644", + "type": "blob", + "sha": "93cd503563080c9c7d785d419bef7dddc4c11cd8", + "size": 466, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/93cd503563080c9c7d785d419bef7dddc4c11cd8" + }, + { + "path": "testframework/__init__.py", + "mode": "100755", + "type": "blob", + "sha": "c75b11c164596ef873898dd843700c7164cc0932", + "size": 184, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/c75b11c164596ef873898dd843700c7164cc0932" + }, + { + "path": "testframework/server.py", + "mode": "100644", + "type": "blob", + "sha": "a9c20ea3eab31bab288d6089a89410ff409d43ad", + "size": 2836, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/a9c20ea3eab31bab288d6089a89410ff409d43ad" + }, + { + "path": "testframework/web", + "mode": "040000", + "type": "tree", + "sha": "5beb5445842a7c69a29942eadbd100ec0458556f", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/5beb5445842a7c69a29942eadbd100ec0458556f" + }, + { + "path": "testframework/web/js", + "mode": "040000", + "type": "tree", + "sha": "a351c437f1cccb93448fb0140d8e0fc17ffab368", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/a351c437f1cccb93448fb0140d8e0fc17ffab368" + }, + { + "path": "testframework/web/js/testRunner.js", + "mode": "100644", + "type": "blob", + "sha": "521a2204b9a2a3202441818461231872ea8a15c8", + "size": 3132, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/521a2204b9a2a3202441818461231872ea8a15c8" + }, + { + "path": "tests", + "mode": "040000", + "type": "tree", + "sha": "6341d1c56315d281322b2d4dd4a9abd4ef3cb345", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/6341d1c56315d281322b2d4dd4a9abd4ef3cb345" + }, + { + "path": "tests/README.md", + "mode": "100644", + "type": "blob", + "sha": "ec025a7d169c7783f34523c63a0a6ae9a2e00fdb", + "size": 140, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/ec025a7d169c7783f34523c63a0a6ae9a2e00fdb" + }, + { + "path": "tests/audio.json", + "mode": "100644", + "type": "blob", + "sha": "cae3d766731f7fe3ae4866f6fa8c0cc86a2ca46d", + "size": 6092, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/cae3d766731f7fe3ae4866f6fa8c0cc86a2ca46d" + }, + { + "path": "tests/batch4x4.json", + "mode": "100644", + "type": "blob", + "sha": "34b9647329642a9e5ca233a60b8bbf2ca8f72aca", + "size": 10236, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/34b9647329642a9e5ca233a60b8bbf2ca8f72aca" + }, + { + "path": "tests/converted-format-input.json", + "mode": "100644", + "type": "blob", + "sha": "e9722580df540b89a4b9185260a8de180ddd63aa", + "size": 4514, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/e9722580df540b89a4b9185260a8de180ddd63aa" + }, + { + "path": "tests/converted-input.json", + "mode": "100644", + "type": "blob", + "sha": "41a93a049ea95ea9ddda92ed3a5152b55581938f", + "size": 5917, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/41a93a049ea95ea9ddda92ed3a5152b55581938f" + }, + { + "path": "tests/loop.json", + "mode": "100644", + "type": "blob", + "sha": "aa5dd4ecdaac29d04b71dbf3bbc8349f2d1210af", + "size": 3643, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/aa5dd4ecdaac29d04b71dbf3bbc8349f2d1210af" + }, + { + "path": "tests/old-prores.json", + "mode": "100644", + "type": "blob", + "sha": "17e77c1547663d39b5356ac15d74f807c69dc671", + "size": 8694, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/17e77c1547663d39b5356ac15d74f807c69dc671" + }, + { + "path": "tests/old-vae-conversion.json", + "mode": "100644", + "type": "blob", + "sha": "e751918b6473cae2f38536d8433bc40b2283a3f6", + "size": 4430, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/e751918b6473cae2f38536d8433bc40b2283a3f6" + }, + { + "path": "tests/simple.json", + "mode": "100644", + "type": "blob", + "sha": "4d7f8ddd68a24cc90519ecd127daae9d8ab81b85", + "size": 2820, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/4d7f8ddd68a24cc90519ecd127daae9d8ab81b85" + }, + { + "path": "video_formats", + "mode": "040000", + "type": "tree", + "sha": "c57d50f7b1ccbfe75f8b8785e661c3d9abe163dc", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/c57d50f7b1ccbfe75f8b8785e661c3d9abe163dc" + }, + { + "path": "video_formats/16bit-png.json", + "mode": "100644", + "type": "blob", + "sha": "b768bdbcfe8950cb7bde37d02444f0191ad29f51", + "size": 139, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/b768bdbcfe8950cb7bde37d02444f0191ad29f51" + }, + { + "path": "video_formats/8bit-png.json", + "mode": "100644", + "type": "blob", + "sha": "88b27a75f9c979f18979ec46da8c8843a82e0759", + "size": 75, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/88b27a75f9c979f18979ec46da8c8843a82e0759" + }, + { + "path": "video_formats/ProRes.json", + "mode": "100644", + "type": "blob", + "sha": "eddd3acf931c5ab3486197c18ba88a3959d3e1d6", + "size": 943, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/eddd3acf931c5ab3486197c18ba88a3959d3e1d6" + }, + { + "path": "video_formats/av1-webm.json", + "mode": "100644", + "type": "blob", + "sha": "659ea166fb140e18109f09f3d5710363af9c2294", + "size": 625, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/659ea166fb140e18109f09f3d5710363af9c2294" + }, + { + "path": "video_formats/ffmpeg-gif.json", + "mode": "100644", + "type": "blob", + "sha": "3ca0865033c7dabc06176c737652f375e7badb27", + "size": 366, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/3ca0865033c7dabc06176c737652f375e7badb27" + }, + { + "path": "video_formats/ffv1-mkv.json", + "mode": "100644", + "type": "blob", + "sha": "549e727febfd1c0d662a2fc67ad90106841ebdcb", + "size": 1072, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/549e727febfd1c0d662a2fc67ad90106841ebdcb" + }, + { + "path": "video_formats/gifski.json", + "mode": "100644", + "type": "blob", + "sha": "c96b358ab0ae59dbd97c52a699c8ee9825c5d351", + "size": 287, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/c96b358ab0ae59dbd97c52a699c8ee9825c5d351" + }, + { + "path": "video_formats/h264-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "89d290c92cd44674e2fe6dca8d0a240d6bf9695b", + "size": 585, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/89d290c92cd44674e2fe6dca8d0a240d6bf9695b" + }, + { + "path": "video_formats/h265-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "b5d0150bf9cdb21f396f026a0d7721626c698822", + "size": 611, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/b5d0150bf9cdb21f396f026a0d7721626c698822" + }, + { + "path": "video_formats/nvenc_av1-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "0996c65b3f586897a2b131997ff1faaa6a4b828e", + "size": 572, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/0996c65b3f586897a2b131997ff1faaa6a4b828e" + }, + { + "path": "video_formats/nvenc_h264-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "1c39913ab6419fb2f7b1c0a6241b7fea1cc2cb11", + "size": 573, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/1c39913ab6419fb2f7b1c0a6241b7fea1cc2cb11" + }, + { + "path": "video_formats/nvenc_hevc-mp4.json", + "mode": "100644", + "type": "blob", + "sha": "2ec6f4169d02466287026e4989b930ec3b64c200", + "size": 598, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/2ec6f4169d02466287026e4989b930ec3b64c200" + }, + { + "path": "video_formats/webm.json", + "mode": "100644", + "type": "blob", + "sha": "6323f619ad2850ba60cd5e31b32cdfc060e030c9", + "size": 589, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/6323f619ad2850ba60cd5e31b32cdfc060e030c9" + }, + { + "path": "videohelpersuite", + "mode": "040000", + "type": "tree", + "sha": "56435df2d248e35e4a2122c0724782fa5dd654fd", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/56435df2d248e35e4a2122c0724782fa5dd654fd" + }, + { + "path": "videohelpersuite/batched_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "624bb84f73cce1d8e51abf4fef0b80367ad4b9a3", + "size": 1790, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/624bb84f73cce1d8e51abf4fef0b80367ad4b9a3" + }, + { + "path": "videohelpersuite/documentation.py", + "mode": "100644", + "type": "blob", + "sha": "857de6c6a5b4a3917f49d0b1c5c142f274203f22", + "size": 43805, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/857de6c6a5b4a3917f49d0b1c5c142f274203f22" + }, + { + "path": "videohelpersuite/image_latent_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "62b4e3e6452b51b42e3e49852d27a1bb9921edc2", + "size": 19039, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/62b4e3e6452b51b42e3e49852d27a1bb9921edc2" + }, + { + "path": "videohelpersuite/latent_preview.py", + "mode": "100644", + "type": "blob", + "sha": "d30a97bb2078f44ff28542192052b370d7c9e2a7", + "size": 5282, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/d30a97bb2078f44ff28542192052b370d7c9e2a7" + }, + { + "path": "videohelpersuite/load_images_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "43f3387c4f907d7372c207f7f1aeb626c27b836b", + "size": 8120, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/43f3387c4f907d7372c207f7f1aeb626c27b836b" + }, + { + "path": "videohelpersuite/load_video_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "409e59a48fca2632dc65d961d5ff08c2c517e36e", + "size": 29027, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/409e59a48fca2632dc65d961d5ff08c2c517e36e" + }, + { + "path": "videohelpersuite/logger.py", + "mode": "100755", + "type": "blob", + "sha": "6e7b8d64bda275608ba6bf8ee28d2a2112e3e2be", + "size": 1057, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/6e7b8d64bda275608ba6bf8ee28d2a2112e3e2be" + }, + { + "path": "videohelpersuite/nodes.py", + "mode": "100755", + "type": "blob", + "sha": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97", + "size": 47770, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/f40461e7b9b9e01a4d4eb1453f95aef26be9be97" + }, + { + "path": "videohelpersuite/server.py", + "mode": "100755", + "type": "blob", + "sha": "f67e342400eb250b731245554bbd495864719f8f", + "size": 12178, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/f67e342400eb250b731245554bbd495864719f8f" + }, + { + "path": "videohelpersuite/utils.py", + "mode": "100644", + "type": "blob", + "sha": "75431d5a9e151ae50257d3fd14c03ffbc7570d39", + "size": 16463, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/75431d5a9e151ae50257d3fd14c03ffbc7570d39" + }, + { + "path": "web", + "mode": "040000", + "type": "tree", + "sha": "27ac8383e4b41ca011381b3e5a41b2da195f6352", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/27ac8383e4b41ca011381b3e5a41b2da195f6352" + }, + { + "path": "web/js", + "mode": "040000", + "type": "tree", + "sha": "9e189d9cfaa88ff04af1012bc850d2ba552a5fae", + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/trees/9e189d9cfaa88ff04af1012bc850d2ba552a5fae" + }, + { + "path": "web/js/VHS.core.js", + "mode": "100755", + "type": "blob", + "sha": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6", + "size": 105302, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6" + }, + { + "path": "web/js/videoinfo.js", + "mode": "100644", + "type": "blob", + "sha": "b1a9871067e07dc09b37a8dd666ce531c2c5f56b", + "size": 4313, + "url": "https://api.github.com/repos/Kosinkadink/ComfyUI-VideoHelperSuite/git/blobs/b1a9871067e07dc09b37a8dd666ce531c2c5f56b" + } + ], + "truncated": false +} diff --git a/docs/hel-892/multivideo-reference/load__LICENSE b/docs/hel-892/multivideo-reference/load__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/multivideo-reference/load__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + 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. + + + Copyright (C) + + 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 . + +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: + + Copyright (C) + 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 +. + + 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 +. diff --git a/docs/hel-892/multivideo-reference/load____init__.py b/docs/hel-892/multivideo-reference/load____init__.py new file mode 100644 index 00000000..9fa995f0 --- /dev/null +++ b/docs/hel-892/multivideo-reference/load____init__.py @@ -0,0 +1,9 @@ +from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +import folder_paths +from .videohelpersuite.server import server +from .videohelpersuite import documentation +from .videohelpersuite import latent_preview + +WEB_DIRECTORY = "./web" +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] +documentation.format_descriptions(NODE_CLASS_MAPPINGS) diff --git a/docs/hel-892/multivideo-reference/load__videohelpersuite__load_video_nodes.py b/docs/hel-892/multivideo-reference/load__videohelpersuite__load_video_nodes.py new file mode 100644 index 00000000..409e59a4 --- /dev/null +++ b/docs/hel-892/multivideo-reference/load__videohelpersuite__load_video_nodes.py @@ -0,0 +1,671 @@ +import os +import itertools +import numpy as np +import torch +from PIL import Image, ImageOps +import cv2 +import psutil +import subprocess +import re +import time + +import folder_paths +from comfy.utils import common_upscale, ProgressBar +import nodes +from comfy.k_diffusion.utils import FolderOfImages +from .logger import logger +from .utils import BIGMAX, DIMMAX, calculate_file_hash, get_sorted_dir_files_from_directory,\ + lazy_get_audio, hash_path, validate_path, strip_path, try_download_video, \ + is_url, imageOrLatent, ffmpeg_path, ENCODE_ARGS, floatOrInt + + +video_extensions = ['webm', 'mp4', 'mkv', 'gif', 'mov'] + +VHSLoadFormats = { + 'None': {}, + 'AnimateDiff': {'target_rate': 8, 'dim': (8,0,512,512)}, + 'Mochi': {'target_rate': 24, 'dim': (16,0,848,480), 'frames':(6,1)}, + 'LTXV': {'target_rate': 24, 'dim': (32,0,768,512), 'frames':(8,1)}, + 'Hunyuan': {'target_rate': 24, 'dim': (16,0,848,480), 'frames':(4,1)}, + 'Cosmos': {'target_rate': 24, 'dim': (16,0,1280,704), 'frames':(8,1)}, + 'Wan': {'target_rate': 16, 'dim': (8,0,832,480), 'frames':(4,1)}, +} +""" +External plugins may add additional formats to nodes.VHSLoadFormats +In addition to shorthand options, direct widget names will map a given dict to options. +Adding a third arguement to a frames tuple can enable strict checks on number +of loaded frames, i.e (8,1,True) +""" +if not hasattr(nodes, 'VHSLoadFormats'): + nodes.VHSLoadFormats = {} + +def get_load_formats(): + #TODO: check if {**extra_config.VHSLoafFormats, **VHSLoadFormats} has minimum version + formats = {} + formats.update(nodes.VHSLoadFormats) + formats.update(VHSLoadFormats) + return (list(formats.keys()), + {'default': 'AnimateDiff', 'formats': formats}) +def get_format(format): + if format in VHSLoadFormats: + return VHSLoadFormats[format] + return nodes.VHSLoadFormats.get(format, {}) + +def is_gif(filename) -> bool: + file_parts = filename.split('.') + return len(file_parts) > 1 and file_parts[-1] == "gif" + + +def target_size(width, height, custom_width, custom_height, downscale_ratio=8) -> tuple[int, int]: + if downscale_ratio is None: + downscale_ratio = 8 + if custom_width == 0 and custom_height == 0: + pass + elif custom_height == 0: + height *= custom_width/width + width = custom_width + elif custom_width == 0: + width *= custom_height/height + height = custom_height + else: + width = custom_width + height = custom_height + width = int(width/downscale_ratio + 0.5) * downscale_ratio + height = int(height/downscale_ratio + 0.5) * downscale_ratio + return (width, height) + +def cv_frame_generator(video, force_rate, frame_load_cap, skip_first_frames, + select_every_nth, meta_batch=None, unique_id=None): + video_cap = cv2.VideoCapture(video) + if not video_cap.isOpened() or not video_cap.grab(): + raise ValueError(f"{video} could not be loaded with cv.") + + # extract video metadata + fps = video_cap.get(cv2.CAP_PROP_FPS) + width = int(video_cap.get(cv2.CAP_PROP_FRAME_WIDTH)) + height = int(video_cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) + total_frames = int(video_cap.get(cv2.CAP_PROP_FRAME_COUNT)) + duration = total_frames / fps + + width = 0 + + if width <=0 or height <=0: + _, frame = video_cap.retrieve() + height, width, _ = frame.shape + + # set video_cap to look at start_index frame + total_frame_count = 0 + total_frames_evaluated = -1 + frames_added = 0 + base_frame_time = 1 / fps + prev_frame = None + + if force_rate == 0: + target_frame_time = base_frame_time + else: + target_frame_time = 1/force_rate + + if total_frames > 0: + if force_rate != 0: + yieldable_frames = int(total_frames / fps * force_rate) + else: + yieldable_frames = total_frames + if select_every_nth: + yieldable_frames //= select_every_nth + if frame_load_cap != 0: + yieldable_frames = min(frame_load_cap, yieldable_frames) + else: + yieldable_frames = 0 + yield (width, height, fps, duration, total_frames, target_frame_time, yieldable_frames) + pbar = ProgressBar(yieldable_frames) + time_offset=target_frame_time + while video_cap.isOpened(): + if time_offset < target_frame_time: + is_returned = video_cap.grab() + # if didn't return frame, video has ended + if not is_returned: + break + time_offset += base_frame_time + if time_offset < target_frame_time: + continue + time_offset -= target_frame_time + # if not at start_index, skip doing anything with frame + total_frame_count += 1 + if total_frame_count <= skip_first_frames: + continue + else: + total_frames_evaluated += 1 + + # if should not be selected, skip doing anything with frame + if total_frames_evaluated%select_every_nth != 0: + continue + + # opencv loads images in BGR format (yuck), so need to convert to RGB for ComfyUI use + # follow up: can videos ever have an alpha channel? + # To my testing: No. opencv has no support for alpha + unused, frame = video_cap.retrieve() + frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) + # convert frame to comfyui's expected format + # TODO: frame contains no exif information. Check if opencv2 has already applied + frame = np.array(frame, dtype=np.float32) + torch.from_numpy(frame).div_(255) + if prev_frame is not None: + inp = yield prev_frame + if inp is not None: + #ensure the finally block is called + return + prev_frame = frame + frames_added += 1 + if pbar is not None: + pbar.update_absolute(frames_added, yieldable_frames) + # if cap exists and we've reached it, stop processing frames + if frame_load_cap > 0 and frames_added >= frame_load_cap: + break + if meta_batch is not None: + meta_batch.inputs.pop(unique_id) + meta_batch.has_closed_inputs = True + if prev_frame is not None: + yield prev_frame + +def ffmpeg_frame_generator(video, force_rate, frame_load_cap, start_time, + custom_width, custom_height, downscale_ratio=8, + meta_batch=None, unique_id=None): + args_input = ["-i", video] + args_dummy = [ffmpeg_path] + args_input +['-c', 'copy', '-frames:v', '1', "-f", "null", "-"] + size_base = None + fps_base = None + try: + dummy_res = subprocess.run(args_dummy, stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + lines = dummy_res.stderr.decode(*ENCODE_ARGS) + if "Video: vp9 " in lines: + args_input = ["-c:v", "libvpx-vp9"] + args_input + args_dummy = [ffmpeg_path] + args_input +['-c', 'copy', '-frames:v', '1', "-f", "null", "-"] + try: + dummy_res = subprocess.run(args_dummy, stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + lines = dummy_res.stderr.decode(*ENCODE_ARGS) + + for line in lines.split('\n'): + match = re.search("^ *Stream .* Video.*, ([1-9]|\\d{2,})x(\\d+)", line) + if match is not None: + size_base = [int(match.group(1)), int(match.group(2))] + fps_match = re.search(", ([\\d\\.]+) fps", line) + if fps_match: + fps_base = float(fps_match.group(1)) + else: + fps_base = 1 + alpha = re.search("(yuva|rgba|bgra)", line) is not None + break + else: + raise Exception("Failed to parse video/image information. FFMPEG output:\n" + lines) + + durs_match = re.search("Duration: (\\d+:\\d+:\\d+\\.\\d+),", lines) + if durs_match: + durs = durs_match.group(1).split(':') + duration = int(durs[0])*3600 + int(durs[1])*60 + float(durs[2]) + else: + duration = 0 + + if start_time > 0: + if start_time > 4: + post_seek = ['-ss', '4'] + args_input = ['-ss', str(start_time - 4)] + args_input + else: + post_seek = ['-ss', str(start_time)] + else: + post_seek = [] + args_all_frames = [ffmpeg_path, "-v", "error", "-an"] + \ + args_input + ["-pix_fmt", "rgba64le"] + post_seek + + vfilters = [] + if force_rate != 0: + vfilters.append("fps=fps="+str(force_rate)) + if custom_width != 0 or custom_height != 0: + size = target_size(size_base[0], size_base[1], custom_width, + custom_height, downscale_ratio=downscale_ratio) + ar = float(size[0])/float(size[1]) + if abs(size_base[0]*ar-size_base[1]) >= 1: + #Aspect ratio is changed. Crop to new aspect ratio before scale + vfilters.append(f"crop=if(gt({ar}\\,a)\\,iw\\,ih*{ar}):if(gt({ar}\\,a)\\,iw/{ar}\\,ih)") + size_arg = ':'.join(map(str,size)) + vfilters.append(f"scale={size_arg}") + else: + size = size_base + if len(vfilters) > 0: + args_all_frames += ["-vf", ",".join(vfilters)] + yieldable_frames = (force_rate or fps_base)*duration + if frame_load_cap > 0: + args_all_frames += ["-frames:v", str(frame_load_cap)] + yieldable_frames = min(yieldable_frames, frame_load_cap) + yield (size_base[0], size_base[1], fps_base, duration, fps_base * duration, + 1/(force_rate or fps_base), yieldable_frames, size[0], size[1], alpha) + + args_all_frames += ["-f", "rawvideo", "-"] + pbar = ProgressBar(yieldable_frames) + try: + with subprocess.Popen(args_all_frames, stdout=subprocess.PIPE) as proc: + #Manually buffer enough bytes for an image + bpi = size[0] * size[1] * 8 + current_bytes = bytearray(bpi) + current_offset=0 + prev_frame = None + while True: + bytes_read = proc.stdout.read(bpi - current_offset) + if bytes_read is None:#sleep to wait for more data + time.sleep(.1) + continue + if len(bytes_read) == 0:#EOF + break + current_bytes[current_offset:len(bytes_read)] = bytes_read + current_offset+=len(bytes_read) + if current_offset == bpi: + if prev_frame is not None: + yield prev_frame + pbar.update(1) + prev_frame = np.frombuffer(current_bytes, dtype=np.dtype(np.uint16).newbyteorder("<")).reshape(size[1], size[0], 4) / (2**16-1) + if not alpha: + prev_frame = prev_frame[:, :, :-1] + current_offset = 0 + except BrokenPipeError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + proc.stderr.read().decode(*ENCODE_ARGS)) + if meta_batch is not None: + meta_batch.inputs.pop(unique_id) + meta_batch.has_closed_inputs = True + if prev_frame is not None: + yield prev_frame + +#Python 3.12 adds an itertools.batched, but it's easily replicated for legacy support +def batched(it, n): + while batch := tuple(itertools.islice(it, n)): + yield batch +def batched_vae_encode(images, vae, frames_per_batch): + for batch in batched(images, frames_per_batch): + image_batch = torch.from_numpy(np.array(batch)) + yield from vae.encode(image_batch).numpy() +def resized_cv_frame_gen(custom_width, custom_height, downscale_ratio, **kwargs): + gen = cv_frame_generator(**kwargs) + info = next(gen) + width, height = info[0], info[1] + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + if kwargs.get('meta_batch', None) is not None: + frames_per_batch = min(frames_per_batch, kwargs['meta_batch'].frames_per_batch) + if custom_width != 0 or custom_height != 0 or downscale_ratio is not None: + new_size = target_size(width, height, custom_width, custom_height, downscale_ratio) + yield (*info, new_size[0], new_size[1], False) + if new_size[0] != width or new_size[1] != height: + def rescale(frame): + s = torch.from_numpy(np.fromiter(frame, np.dtype((np.float32, (height, width, 3))))) + s = s.movedim(-1,1) + s = common_upscale(s, new_size[0], new_size[1], "lanczos", "center") + return s.movedim(1,-1).numpy() + yield from itertools.chain.from_iterable(map(rescale, batched(gen, frames_per_batch))) + return + else: + yield (*info, info[0], info[1], False) + yield from gen + +def load_video(meta_batch=None, unique_id=None, memory_limit_mb=None, vae=None, + generator=resized_cv_frame_gen, format='None', **kwargs): + if 'force_size' in kwargs: + kwargs.pop('force_size') + logger.warn("force_size has been removed. Did you reload the webpage after updating?") + format = get_format(format) + kwargs['video'] = strip_path(kwargs['video']) + if vae is not None: + downscale_ratio = getattr(vae, "downscale_ratio", 8) + else: + downscale_ratio = format.get('dim', (1,))[0] + if meta_batch is None or unique_id not in meta_batch.inputs: + gen = generator(meta_batch=meta_batch, unique_id=unique_id, downscale_ratio=downscale_ratio, **kwargs) + (width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) = next(gen) + + if meta_batch is not None: + meta_batch.inputs[unique_id] = (gen, width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) + if yieldable_frames: + meta_batch.total_frames = min(meta_batch.total_frames, yieldable_frames) + + else: + (gen, width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) = meta_batch.inputs[unique_id] + + memory_limit = None + if memory_limit_mb is not None: + memory_limit *= 2 ** 20 + else: + #TODO: verify if garbage collection should be performed here. + #leaves ~128 MB unreserved for safety + try: + memory_limit = (psutil.virtual_memory().available + psutil.swap_memory().free) - 2 ** 27 + except: + logger.warn("Failed to calculate available memory. Memory load limit has been disabled") + memory_limit = BIGMAX + if vae is not None: + #space required to load as f32, exist as latent with wiggle room, decode to f32 + max_loadable_frames = int(memory_limit//(width*height*3*(4+4+1/10))) + else: + #TODO: use better estimate for when vae is not None + #Consider completely ignoring for load_latent case? + max_loadable_frames = int(memory_limit//(width*height*3*(.1))) + if meta_batch is not None: + if 'frames' in format: + if meta_batch.frames_per_batch % format['frames'][0] != format['frames'][1]: + error = (meta_batch.frames_per_batch - format['frames'][1]) % format['frames'][0] + suggested = meta_batch.frames_per_batch - error + if error > format['frames'][0] / 2: + suggested += format['frames'][0] + raise RuntimeError(f"The chosen frames per batch is incompatible with the selected format. Try {suggested}") + if meta_batch.frames_per_batch > max_loadable_frames: + raise RuntimeError(f"Meta Batch set to {meta_batch.frames_per_batch} frames but only {max_loadable_frames} can fit in memory") + gen = itertools.islice(gen, meta_batch.frames_per_batch) + else: + original_gen = gen + gen = itertools.islice(gen, max_loadable_frames) + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + if vae is not None: + gen = batched_vae_encode(gen, vae, frames_per_batch) + vw,vh = new_width//downscale_ratio, new_height//downscale_ratio + channels = getattr(vae, 'latent_channels', 4) + images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (channels,vh,vw))))) + else: + #Some minor wizardry to eliminate a copy and reduce max memory by a factor of ~2 + images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (new_height, new_width, 4 if alpha else 3))))) + if meta_batch is None and memory_limit is not None: + try: + next(original_gen) + raise RuntimeError(f"Memory limit hit after loading {len(images)} frames. Stopping execution.") + except StopIteration: + pass + if len(images) == 0: + raise RuntimeError("No frames generated") + if 'frames' in format and len(images) % format['frames'][0] != format['frames'][1]: + err_msg = f"The number of frames loaded {len(images)}, does not match the requirements of the currently selected format." + if len(format['frames']) > 2 and format['frames'][2]: + raise RuntimeError(err_msg) + div, mod = format['frames'][:2] + frames = (len(images) - mod) // div * div + mod + images = images[:frames] + #Commenting out log message since it's displayed in UI. consider further + #logger.warn(err_msg + f" Output has been truncated to {len(images)} frames.") + if 'start_time' in kwargs: + start_time = kwargs['start_time'] + else: + start_time = kwargs['skip_first_frames'] * target_frame_time + target_frame_time *= kwargs.get('select_every_nth', 1) + #Setup lambda for lazy audio capture + audio = lazy_get_audio(kwargs['video'], start_time, kwargs['frame_load_cap']*target_frame_time) + #Adjust target_frame_time for select_every_nth + video_info = { + "source_fps": fps, + "source_frame_count": total_frames, + "source_duration": duration, + "source_width": width, + "source_height": height, + "loaded_fps": 1/target_frame_time, + "loaded_frame_count": len(images), + "loaded_duration": len(images) * target_frame_time, + "loaded_width": new_width, + "loaded_height": new_height, + } + if vae is None: + return (images, len(images), audio, video_info) + else: + return ({"samples": images}, len(images), audio, video_info) + + + +class LoadVideoUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1].lower() in video_extensions): + files.append(f) + return {"required": { + "video": (sorted(files),), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "skip_first_frames": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "INT", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "frame_count", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + kwargs['video'] = folder_paths.get_annotated_filepath(strip_path(kwargs['video'])) + return load_video(**kwargs) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + image_path = folder_paths.get_annotated_filepath(video) + return calculate_file_hash(image_path) + + @classmethod + def VALIDATE_INPUTS(s, video): + if not folder_paths.exists_annotated_filepath(video): + return "Invalid video file: {}".format(video) + return True + + +class LoadVideoPath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video": ("STRING", {"placeholder": "X://insert/path/here.mp4", "vhs_path_extensions": video_extensions}), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "skip_first_frames": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "INT", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "frame_count", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + if kwargs['video'] is None or validate_path(kwargs['video']) != True: + raise Exception("video is not a valid path: " + kwargs['video']) + if is_url(kwargs['video']): + kwargs['video'] = try_download_video(kwargs['video']) or kwargs['video'] + return load_video(**kwargs) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + return hash_path(video) + + @classmethod + def VALIDATE_INPUTS(s, video): + return validate_path(video, allow_none=True) + +class LoadVideoFFmpegUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1].lower() in video_extensions): + files.append(f) + return {"required": { + "video": (sorted(files),), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "start_time": ("FLOAT", {"default": 0, "min": 0, "max": BIGMAX, "step": .001, "widgetType": "VHSTIMESTAMP"}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "MASK", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "mask", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + kwargs['video'] = folder_paths.get_annotated_filepath(strip_path(kwargs['video'])) + image, _, audio, video_info = load_video(**kwargs, generator=ffmpeg_frame_generator) + if image.size(3) == 4: + return (image[:,:,:,:3], 1-image[:,:,:,3], audio, video_info) + return (image, torch.zeros(image.size(0), 64, 64, device="cpu"), audio, video_info) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + image_path = folder_paths.get_annotated_filepath(video) + return calculate_file_hash(image_path) + + @classmethod + def VALIDATE_INPUTS(s, video): + if not folder_paths.exists_annotated_filepath(video): + return "Invalid video file: {}".format(video) + return True + + +class LoadVideoFFmpegPath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video": ("STRING", {"placeholder": "X://insert/path/here.mp4", "vhs_path_extensions": video_extensions}), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "start_time": ("FLOAT", {"default": 0, "min": 0, "max": BIGMAX, "step": .001, "widgetType": "VHSTIMESTAMP"}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "MASK", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "mask", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + if kwargs['video'] is None or validate_path(kwargs['video']) != True: + raise Exception("video is not a valid path: " + kwargs['video']) + if is_url(kwargs['video']): + kwargs['video'] = try_download_video(kwargs['video']) or kwargs['video'] + image, _, audio, video_info = load_video(**kwargs, generator=ffmpeg_frame_generator) + if isinstance(image, dict): + return (image, None, audio, video_info) + if image.size(3) == 4: + return (image[:,:,:,:3], 1-image[:,:,:,3], audio, video_info) + return (image, torch.zeros(image.size(0), 64, 64, device="cpu"), audio, video_info) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + return hash_path(video) + + @classmethod + def VALIDATE_INPUTS(s, video): + return validate_path(video, allow_none=True) + +class LoadImagePath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("STRING", {"placeholder": "X://insert/path/here.png", "vhs_path_extensions": list(FolderOfImages.IMG_EXTENSIONS)}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, "step": 8, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, "step": 8, 'disable': 0}), + }, + "optional": { + "vae": ("VAE",), + }, + "hidden": { + "force_size": "STRING", + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "MASK") + RETURN_NAMES = ("IMAGE", "mask") + + FUNCTION = "load_image" + + def load_image(self, **kwargs): + if kwargs['image'] is None or validate_path(kwargs['image']) != True: + raise Exception("image is not a valid path: " + kwargs['image']) + kwargs.update({'video': kwargs['image'], 'force_rate': 0, 'frame_load_cap': 0, + 'start_time': 0}) + kwargs.pop('image') + image, _, _, _ = load_video(**kwargs, generator=ffmpeg_frame_generator) + if isinstance(image, dict): + return (image, None) + if image.size(3) == 4: + return (image[:,:,:,:3], 1-image[:,:,:,3]) + return (image, torch.zeros(image.size(0), 64, 64, device="cpu")) + + @classmethod + def IS_CHANGED(s, image, **kwargs): + return hash_path(image) + + @classmethod + def VALIDATE_INPUTS(s, image): + return validate_path(image, allow_none=True) diff --git a/docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py b/docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py new file mode 100644 index 00000000..f40461e7 --- /dev/null +++ b/docs/hel-892/multivideo-reference/load__videohelpersuite__nodes.py @@ -0,0 +1,1111 @@ +import os +import sys +import json +import subprocess +import numpy as np +import re +import datetime +from typing import List +import torch +from PIL import Image, ExifTags +from PIL.PngImagePlugin import PngInfo +from pathlib import Path +from string import Template +import itertools +import functools + +import folder_paths +from .logger import logger +from .image_latent_nodes import * +from .load_video_nodes import LoadVideoUpload, LoadVideoPath, LoadVideoFFmpegUpload, LoadVideoFFmpegPath, LoadImagePath +from .load_images_nodes import LoadImagesFromDirectoryUpload, LoadImagesFromDirectoryPath +from .batched_nodes import VAEEncodeBatched, VAEDecodeBatched +from .utils import ffmpeg_path, get_audio, hash_path, validate_path, requeue_workflow, \ + gifski_path, calculate_file_hash, strip_path, try_download_video, is_url, \ + imageOrLatent, BIGMAX, merge_filter_args, ENCODE_ARGS, floatOrInt, cached, \ + ContainsAll +from comfy.utils import ProgressBar + +if 'VHS_video_formats' not in folder_paths.folder_names_and_paths: + folder_paths.folder_names_and_paths["VHS_video_formats"] = ((),{".json"}) +if len(folder_paths.folder_names_and_paths['VHS_video_formats'][1]) == 0: + folder_paths.folder_names_and_paths["VHS_video_formats"][1].add(".json") +audio_extensions = ['mp3', 'mp4', 'wav', 'ogg'] + +def flatten_list(l): + ret = [] + for e in l: + if isinstance(e, list): + ret.extend(e) + else: + ret.append(e) + return ret + +def iterate_format(video_format, for_widgets=True): + """Provides an iterator over widgets, or arguments""" + def indirector(cont, index): + if isinstance(cont[index], list) and (not for_widgets + or len(cont[index])> 1 and not isinstance(cont[index][1], dict)): + inp = yield cont[index] + if inp is not None: + cont[index] = inp + yield + for k in video_format: + if k == "extra_widgets": + if for_widgets: + yield from video_format["extra_widgets"] + elif k.endswith("_pass"): + for i in range(len(video_format[k])): + yield from indirector(video_format[k], i) + if not for_widgets: + video_format[k] = flatten_list(video_format[k]) + else: + yield from indirector(video_format, k) + +base_formats_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "video_formats") +@cached(5) +def get_video_formats(): + format_files = {} + for format_name in folder_paths.get_filename_list("VHS_video_formats"): + format_files[format_name] = folder_paths.get_full_path("VHS_video_formats", format_name) + for item in os.scandir(base_formats_dir): + if not item.is_file() or not item.name.endswith('.json'): + continue + format_files[item.name[:-5]] = item.path + formats = [] + format_widgets = {} + for format_name, path in format_files.items(): + with open(path, 'r') as stream: + video_format = json.load(stream) + if "gifski_pass" in video_format and gifski_path is None: + #Skip format + continue + widgets = list(iterate_format(video_format)) + formats.append("video/" + format_name) + if (len(widgets) > 0): + format_widgets["video/"+ format_name] = widgets + return formats, format_widgets + +def apply_format_widgets(format_name, kwargs): + if os.path.exists(os.path.join(base_formats_dir, format_name + ".json")): + video_format_path = os.path.join(base_formats_dir, format_name + ".json") + else: + video_format_path = folder_paths.get_full_path("VHS_video_formats", format_name) + with open(video_format_path, 'r') as stream: + video_format = json.load(stream) + for w in iterate_format(video_format): + if w[0] not in kwargs: + if len(w) > 2 and 'default' in w[2]: + default = w[2]['default'] + else: + if type(w[1]) is list: + default = w[1][0] + else: + #NOTE: This doesn't respect max/min, but should be good enough as a fallback to a fallback to a fallback + default = {"BOOLEAN": False, "INT": 0, "FLOAT": 0, "STRING": ""}[w[1]] + kwargs[w[0]] = default + logger.warn(f"Missing input for {w[0][0]} has been set to {default}") + wit = iterate_format(video_format, False) + for w in wit: + while isinstance(w, list): + if len(w) == 1: + #TODO: mapping=kwargs should be safer, but results in key errors, investigate why + w = [Template(x).substitute(**kwargs) for x in w[0]] + break + elif isinstance(w[1], dict): + w = w[1][str(kwargs[w[0]])] + elif len(w) > 3: + w = Template(w[3]).substitute(val=kwargs[w[0]]) + else: + w = str(kwargs[w[0]]) + wit.send(w) + return video_format + +def tensor_to_int(tensor, bits): + tensor = tensor.cpu().numpy() * (2**bits-1) + 0.5 + return np.clip(tensor, 0, (2**bits-1)) +def tensor_to_shorts(tensor): + return tensor_to_int(tensor, 16).astype(np.uint16) +def tensor_to_bytes(tensor): + return tensor_to_int(tensor, 8).astype(np.uint8) + +def ffmpeg_process(args, video_format, video_metadata, file_path, env): + + res = None + frame_data = yield + total_frames_output = 0 + if video_format.get('save_metadata', 'False') != 'False': + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + metadata = json.dumps(video_metadata) + metadata_path = os.path.join(folder_paths.get_temp_directory(), "metadata.txt") + #metadata from file should escape = ; # \ and newline + metadata = metadata.replace("\\","\\\\") + metadata = metadata.replace(";","\\;") + metadata = metadata.replace("#","\\#") + metadata = metadata.replace("=","\\=") + metadata = metadata.replace("\n","\\\n") + metadata = "comment=" + metadata + with open(metadata_path, "w") as f: + f.write(";FFMETADATA1\n") + f.write(metadata) + m_args = args[:1] + ["-i", metadata_path] + args[1:] + ["-metadata", "creation_time=now"] + with subprocess.Popen(m_args + [file_path], stderr=subprocess.PIPE, + stdin=subprocess.PIPE, env=env) as proc: + try: + while frame_data is not None: + proc.stdin.write(frame_data) + #TODO: skip flush for increased speed + frame_data = yield + total_frames_output+=1 + proc.stdin.flush() + proc.stdin.close() + res = proc.stderr.read() + except BrokenPipeError as e: + err = proc.stderr.read() + #Check if output file exists. If it does, the re-execution + #will also fail. This obscures the cause of the error + #and seems to never occur concurrent to the metadata issue + if os.path.exists(file_path): + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + err.decode(*ENCODE_ARGS)) + #Res was not set + print(err.decode(*ENCODE_ARGS), end="", file=sys.stderr) + logger.warn("An error occurred when saving with metadata") + if res != b'': + with subprocess.Popen(args + [file_path], stderr=subprocess.PIPE, + stdin=subprocess.PIPE, env=env) as proc: + try: + while frame_data is not None: + proc.stdin.write(frame_data) + frame_data = yield + total_frames_output+=1 + proc.stdin.flush() + proc.stdin.close() + res = proc.stderr.read() + except BrokenPipeError as e: + res = proc.stderr.read() + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + res.decode(*ENCODE_ARGS)) + yield total_frames_output + if len(res) > 0: + print(res.decode(*ENCODE_ARGS), end="", file=sys.stderr) + +def gifski_process(args, dimensions, frame_rate, video_format, file_path, env): + frame_data = yield + with subprocess.Popen(args + video_format['main_pass'] + ['-f', 'yuv4mpegpipe', '-'], + stderr=subprocess.PIPE, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, env=env) as procff: + with subprocess.Popen([gifski_path] + video_format['gifski_pass'] + + ['-W', f'{dimensions[0]}', '-H', f'{dimensions[1]}'] + + ['-r', f'{frame_rate}'] + + ['-q', '-o', file_path, '-'], stderr=subprocess.PIPE, + stdin=procff.stdout, stdout=subprocess.PIPE, + env=env) as procgs: + try: + while frame_data is not None: + procff.stdin.write(frame_data) + frame_data = yield + procff.stdin.flush() + procff.stdin.close() + resff = procff.stderr.read() + resgs = procgs.stderr.read() + outgs = procgs.stdout.read() + except BrokenPipeError as e: + procff.stdin.close() + resff = procff.stderr.read() + resgs = procgs.stderr.read() + raise Exception("An error occurred while creating gifski output\n" \ + + "Make sure you are using gifski --version >=1.32.0\nffmpeg: " \ + + resff.decode(*ENCODE_ARGS) + '\ngifski: ' + resgs.decode(*ENCODE_ARGS)) + if len(resff) > 0: + print(resff.decode(*ENCODE_ARGS), end="", file=sys.stderr) + if len(resgs) > 0: + print(resgs.decode(*ENCODE_ARGS), end="", file=sys.stderr) + #should always be empty as the quiet flag is passed + if len(outgs) > 0: + print(outgs.decode(*ENCODE_ARGS)) + +def to_pingpong(inp): + if not hasattr(inp, "__getitem__"): + inp = list(inp) + yield from inp + for i in range(len(inp)-2,0,-1): + yield inp[i] + +class VideoCombine: + @classmethod + def INPUT_TYPES(s): + ffmpeg_formats, format_widgets = get_video_formats() + format_widgets["image/webp"] = [['lossless', "BOOLEAN", {'default': True}]] + return { + "required": { + "images": (imageOrLatent,), + "frame_rate": ( + floatOrInt, + {"default": 8, "min": 1, "step": 1}, + ), + "loop_count": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1}), + "filename_prefix": ("STRING", {"default": "AnimateDiff"}), + "format": (["image/gif", "image/webp"] + ffmpeg_formats, {'formats': format_widgets}), + "pingpong": ("BOOLEAN", {"default": False}), + "save_output": ("BOOLEAN", {"default": True}), + }, + "optional": { + "audio": ("AUDIO",), + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + }, + "hidden": ContainsAll({ + "prompt": "PROMPT", + "extra_pnginfo": "EXTRA_PNGINFO", + "unique_id": "UNIQUE_ID" + }), + } + + RETURN_TYPES = ("VHS_FILENAMES",) + RETURN_NAMES = ("Filenames",) + OUTPUT_NODE = True + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "combine_video" + + def combine_video( + self, + frame_rate: int, + loop_count: int, + images=None, + latents=None, + filename_prefix="AnimateDiff", + format="image/gif", + pingpong=False, + save_output=True, + prompt=None, + extra_pnginfo=None, + audio=None, + unique_id=None, + manual_format_widgets=None, + meta_batch=None, + vae=None, + **kwargs + ): + if latents is not None: + images = latents + if images is None: + return ((save_output, []),) + if vae is not None: + if isinstance(images, dict): + images = images['samples'] + else: + vae = None + + if isinstance(images, torch.Tensor) and images.size(0) == 0: + return ((save_output, []),) + num_frames = len(images) + pbar = ProgressBar(num_frames) + if vae is not None: + downscale_ratio = getattr(vae, "downscale_ratio", 8) + width = images.size(-1)*downscale_ratio + height = images.size(-2)*downscale_ratio + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + #Python 3.12 adds an itertools.batched, but it's easily replicated for legacy support + def batched(it, n): + while batch := tuple(itertools.islice(it, n)): + yield batch + def batched_encode(images, vae, frames_per_batch): + for batch in batched(iter(images), frames_per_batch): + image_batch = torch.from_numpy(np.array(batch)) + yield from vae.decode(image_batch) + images = batched_encode(images, vae, frames_per_batch) + first_image = next(images) + #repush first_image + images = itertools.chain([first_image], images) + #A single image has 3 dimensions. Discard higher dimensions + while len(first_image.shape) > 3: + first_image = first_image[0] + else: + first_image = images[0] + images = iter(images) + # get output information + output_dir = ( + folder_paths.get_output_directory() + if save_output + else folder_paths.get_temp_directory() + ) + ( + full_output_folder, + filename, + _, + subfolder, + _, + ) = folder_paths.get_save_image_path(filename_prefix, output_dir) + output_files = [] + + metadata = PngInfo() + video_metadata = {} + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + video_metadata["prompt"] = json.dumps(prompt) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + video_metadata[x] = extra_pnginfo[x] + extra_options = extra_pnginfo.get('workflow', {}).get('extra', {}) + else: + extra_options = {} + metadata.add_text("CreationTime", datetime.datetime.now().isoformat(" ")[:19]) + + if meta_batch is not None and unique_id in meta_batch.outputs: + (counter, output_process) = meta_batch.outputs[unique_id] + else: + # comfy counter workaround + max_counter = 0 + + # Loop through the existing files + matcher = re.compile(f"{re.escape(filename)}_(\\d+)\\D*\\..+", re.IGNORECASE) + for existing_file in os.listdir(full_output_folder): + # Check if the file matches the expected format + match = matcher.fullmatch(existing_file) + if match: + # Extract the numeric portion of the filename + file_counter = int(match.group(1)) + # Update the maximum counter value if necessary + if file_counter > max_counter: + max_counter = file_counter + + # Increment the counter by 1 to get the next available value + counter = max_counter + 1 + output_process = None + + # save first frame as png to keep metadata + first_image_file = f"{filename}_{counter:05}.png" + file_path = os.path.join(full_output_folder, first_image_file) + if extra_options.get('VHS_MetadataImage', True) != False: + Image.fromarray(tensor_to_bytes(first_image)).save( + file_path, + pnginfo=metadata, + compress_level=4, + ) + output_files.append(file_path) + + format_type, format_ext = format.split("/") + if format_type == "image": + if meta_batch is not None: + raise Exception("Pillow('image/') formats are not compatible with batched output") + image_kwargs = {} + if format_ext == "gif": + image_kwargs['disposal'] = 2 + if format_ext == "webp": + #Save timestamp information + exif = Image.Exif() + exif[ExifTags.IFD.Exif] = {36867: datetime.datetime.now().isoformat(" ")[:19]} + image_kwargs['exif'] = exif + image_kwargs['lossless'] = kwargs.get("lossless", True) + file = f"{filename}_{counter:05}.{format_ext}" + file_path = os.path.join(full_output_folder, file) + if pingpong: + images = to_pingpong(images) + def frames_gen(images): + for i in images: + pbar.update(1) + yield Image.fromarray(tensor_to_bytes(i)) + frames = frames_gen(images) + # Use pillow directly to save an animated image + next(frames).save( + file_path, + format=format_ext.upper(), + save_all=True, + append_images=frames, + duration=round(1000 / frame_rate), + loop=loop_count, + compress_level=4, + **image_kwargs + ) + output_files.append(file_path) + else: + # Use ffmpeg to save a video + if ffmpeg_path is None: + raise ProcessLookupError(f"ffmpeg is required for video outputs and could not be found.\nIn order to use video outputs, you must either:\n- Install imageio-ffmpeg with pip,\n- Place a ffmpeg executable in {os.path.abspath('')}, or\n- Install ffmpeg and add it to the system path.") + + if manual_format_widgets is not None: + logger.warn("Format args can now be passed directly. The manual_format_widgets argument is now deprecated") + kwargs.update(manual_format_widgets) + + has_alpha = first_image.shape[-1] == 4 + kwargs["has_alpha"] = has_alpha + video_format = apply_format_widgets(format_ext, kwargs) + dim_alignment = video_format.get("dim_alignment", 2) + if (first_image.shape[1] % dim_alignment) or (first_image.shape[0] % dim_alignment): + #output frames must be padded + to_pad = (-first_image.shape[1] % dim_alignment, + -first_image.shape[0] % dim_alignment) + padding = (to_pad[0]//2, to_pad[0] - to_pad[0]//2, + to_pad[1]//2, to_pad[1] - to_pad[1]//2) + padfunc = torch.nn.ReplicationPad2d(padding) + def pad(image): + image = image.permute((2,0,1))#HWC to CHW + padded = padfunc(image.to(dtype=torch.float32)) + return padded.permute((1,2,0)) + images = map(pad, images) + dimensions = (-first_image.shape[1] % dim_alignment + first_image.shape[1], + -first_image.shape[0] % dim_alignment + first_image.shape[0]) + logger.warn("Output images were not of valid resolution and have had padding applied") + else: + dimensions = (first_image.shape[1], first_image.shape[0]) + if pingpong: + if meta_batch is not None: + logger.error("pingpong is incompatible with batched output") + images = to_pingpong(images) + if num_frames > 2: + num_frames += num_frames -2 + pbar.total = num_frames + if loop_count > 0: + loop_args = ["-vf", "loop=loop=" + str(loop_count)+":size=" + str(num_frames)] + else: + loop_args = [] + if video_format.get('input_color_depth', '8bit') == '16bit': + images = map(tensor_to_shorts, images) + if has_alpha: + i_pix_fmt = 'rgba64' + else: + i_pix_fmt = 'rgb48' + else: + images = map(tensor_to_bytes, images) + if has_alpha: + i_pix_fmt = 'rgba' + else: + i_pix_fmt = 'rgb24' + file = f"{filename}_{counter:05}.{video_format['extension']}" + file_path = os.path.join(full_output_folder, file) + bitrate_arg = [] + bitrate = video_format.get('bitrate') + if bitrate is not None: + bitrate_arg = ["-b:v", str(bitrate) + "M" if video_format.get('megabit') == 'True' else str(bitrate) + "K"] + args = [ffmpeg_path, "-v", "error", "-f", "rawvideo", "-pix_fmt", i_pix_fmt, + # The image data is in an undefined generic RGB color space, which in practice means sRGB. + # sRGB has the same primaries and matrix as BT.709, but a different transfer function (gamma), + # called by the sRGB standard name IEC 61966-2-1. However, video hosting platforms like YouTube + # standardize on full BT.709 and will convert the colors accordingly. This last minute change + # in colors can be confusing to users. We can counter it by lying about the transfer function + # on a per format basis, i.e. for video we will lie to FFmpeg that it is already BT.709. Also, + # because the input data is in RGB (not YUV) it is more efficient (fewer scale filter invocations) + # to specify the input color space as RGB and then later, if the format actually wants YUV, + # to convert it to BT.709 YUV via FFmpeg's -vf "scale=out_color_matrix=bt709". + "-color_range", "pc", "-colorspace", "rgb", "-color_primaries", "bt709", + "-color_trc", video_format.get("fake_trc", "iec61966-2-1"), + "-s", f"{dimensions[0]}x{dimensions[1]}", "-r", str(frame_rate), "-i", "-"] \ + + loop_args + + images = map(lambda x: x.tobytes(), images) + env=os.environ.copy() + if "environment" in video_format: + env.update(video_format["environment"]) + + if "pre_pass" in video_format: + if meta_batch is not None: + #Performing a prepass requires keeping access to all frames. + #Potential solutions include keeping just output frames in + #memory or using 3 passes with intermediate file, but + #very long gifs probably shouldn't be encouraged + raise Exception("Formats which require a pre_pass are incompatible with Batch Manager.") + images = [b''.join(images)] + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + in_args_len = args.index("-i") + 2 # The index after ["-i", "-"] + pre_pass_args = args[:in_args_len] + video_format['pre_pass'] + merge_filter_args(pre_pass_args) + try: + subprocess.run(pre_pass_args, input=images[0], env=env, + capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg prepass:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if "inputs_main_pass" in video_format: + in_args_len = args.index("-i") + 2 # The index after ["-i", "-"] + args = args[:in_args_len] + video_format['inputs_main_pass'] + args[in_args_len:] + + if output_process is None: + if 'gifski_pass' in video_format: + format = 'image/gif' + output_process = gifski_process(args, dimensions, frame_rate, video_format, file_path, env) + audio = None + else: + args += video_format['main_pass'] + bitrate_arg + merge_filter_args(args) + output_process = ffmpeg_process(args, video_format, video_metadata, file_path, env) + #Proceed to first yield + output_process.send(None) + if meta_batch is not None: + meta_batch.outputs[unique_id] = (counter, output_process) + + for image in images: + pbar.update(1) + output_process.send(image) + if meta_batch is not None: + requeue_workflow((meta_batch.unique_id, not meta_batch.has_closed_inputs)) + if meta_batch is None or meta_batch.has_closed_inputs: + #Close pipe and wait for termination. + try: + total_frames_output = output_process.send(None) + output_process.send(None) + except StopIteration: + pass + if meta_batch is not None: + meta_batch.outputs.pop(unique_id) + if len(meta_batch.outputs) == 0: + meta_batch.reset() + else: + #batch is unfinished + #TODO: Check if empty output breaks other custom nodes + return {"ui": {"unfinished_batch": [True]}, "result": ((save_output, []),)} + + output_files.append(file_path) + + + a_waveform = None + if audio is not None: + try: + #safely check if audio produced by VHS_LoadVideo actually exists + a_waveform = audio['waveform'] + except: + pass + if a_waveform is not None: + # Create audio file if input was provided + output_file_with_audio = f"{filename}_{counter:05}-audio.{video_format['extension']}" + output_file_with_audio_path = os.path.join(full_output_folder, output_file_with_audio) + if "audio_pass" not in video_format: + logger.warn("Selected video format does not have explicit audio support") + video_format["audio_pass"] = ["-c:a", "libopus"] + + + # FFmpeg command with audio re-encoding + #TODO: expose audio quality options if format widgets makes it in + #Reconsider forcing apad/shortest + channels = audio['waveform'].size(1) + min_audio_dur = total_frames_output / frame_rate + 1 + if video_format.get('trim_to_audio', 'False') != 'False': + apad = [] + else: + apad = ["-af", "apad=whole_dur="+str(min_audio_dur)] + mux_args = [ffmpeg_path, "-v", "error", "-n", "-i", file_path, + "-ar", str(audio['sample_rate']), "-ac", str(channels), + "-f", "f32le", "-i", "-", "-c:v", "copy"] \ + + video_format["audio_pass"] \ + + apad + ["-shortest", output_file_with_audio_path] + + audio_data = audio['waveform'].squeeze(0).transpose(0,1) \ + .numpy().tobytes() + merge_filter_args(mux_args, '-af') + try: + res = subprocess.run(mux_args, input=audio_data, + env=env, capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if res.stderr: + print(res.stderr.decode(*ENCODE_ARGS), end="", file=sys.stderr) + output_files.append(output_file_with_audio_path) + #Return this file with audio to the webui. + #It will be muted unless opened or saved with right click + file = output_file_with_audio + if extra_options.get('VHS_KeepIntermediate', True) == False: + for intermediate in output_files[1:-1]: + if os.path.exists(intermediate): + os.remove(intermediate) + preview = { + "filename": file, + "subfolder": subfolder, + "type": "output" if save_output else "temp", + "format": format, + "frame_rate": frame_rate, + "workflow": first_image_file, + "fullpath": output_files[-1], + } + if num_frames == 1 and 'png' in format and '%03d' in file: + preview['format'] = 'image/png' + preview['filename'] = file.replace('%03d', '001') + return {"ui": {"gifs": [preview]}, "result": ((save_output, output_files),)} + +class LoadAudio: + @classmethod + def INPUT_TYPES(s): + #Hide ffmpeg formats if ffmpeg isn't available + return { + "required": { + "audio_file": ("STRING", {"default": "input/", "vhs_path_extensions": ['wav','mp3','ogg','m4a','flac']}), + }, + "optional" : { + "seek_seconds": ("FLOAT", {"default": 0, "min": 0, "widgetType": "VHSTIMESTAMP"}), + "duration": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01, "widgetType": "VHSTIMESTAMP"}), + } + } + + RETURN_TYPES = ("AUDIO", "FLOAT") + RETURN_NAMES = ("audio", "duration") + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + FUNCTION = "load_audio" + def load_audio(self, audio_file, seek_seconds=0, duration=0): + audio_file = strip_path(audio_file) + if audio_file is None or validate_path(audio_file) != True: + raise Exception("audio_file is not a valid path: " + audio_file) + if is_url(audio_file): + audio_file = try_download_video(audio_file) or audio_file + #Eagerly fetch the audio since the user must be using it if the + #node executes, unlike Load Video + audio = get_audio(audio_file, start_time=seek_seconds, duration=duration) + loaded_duration = audio['waveform'].size(2)/audio['sample_rate'] + return (audio, loaded_duration) + + @classmethod + def IS_CHANGED(s, audio_file, **kwargs): + return hash_path(audio_file) + + @classmethod + def VALIDATE_INPUTS(s, audio_file, **kwargs): + return validate_path(audio_file, allow_none=True) + +class LoadAudioUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1] in audio_extensions): + files.append(f) + return {"required": { + "audio": (sorted(files),),}, + "optional": { + "start_time": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01, "widgetType": "VHSTIMESTAMP"}), + "duration": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01, "widgetType": "VHSTIMESTAMP"}), + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("AUDIO", "FLOAT") + RETURN_NAMES = ("audio", "duration") + FUNCTION = "load_audio" + + def load_audio(self, start_time=0, duration=0, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(kwargs['audio'])) + if audio_file is None or validate_path(audio_file) != True: + raise Exception("audio_file is not a valid path: " + audio_file) + + audio = get_audio(audio_file, start_time, duration) + loaded_duration = audio['waveform'].size(2)/audio['sample_rate'] + return (audio, loaded_duration) + + @classmethod + def IS_CHANGED(s, audio, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(audio)) + return hash_path(audio_file) + + @classmethod + def VALIDATE_INPUTS(s, audio, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(audio)) + return validate_path(audio_file, allow_none=True) +class AudioToVHSAudio: + """Legacy method for external nodes that utilized VHS_AUDIO, + VHS_AUDIO is deprecated as a format and should no longer be used""" + @classmethod + def INPUT_TYPES(s): + return {"required": {"audio": ("AUDIO",)}} + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("VHS_AUDIO", ) + RETURN_NAMES = ("vhs_audio",) + FUNCTION = "convert_audio" + + def convert_audio(self, audio): + ar = str(audio['sample_rate']) + ac = str(audio['waveform'].size(1)) + mux_args = [ffmpeg_path, "-f", "f32le", "-ar", ar, "-ac", ac, + "-i", "-", "-f", "wav", "-"] + + audio_data = audio['waveform'].squeeze(0).transpose(0,1) \ + .numpy().tobytes() + try: + res = subprocess.run(mux_args, input=audio_data, + capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if res.stderr: + print(res.stderr.decode(*ENCODE_ARGS), end="", file=sys.stderr) + return (lambda: res.stdout,) + +class VHSAudioToAudio: + """Legacy method for external nodes that utilized VHS_AUDIO, + VHS_AUDIO is deprecated as a format and should no longer be used""" + @classmethod + def INPUT_TYPES(s): + return {"required": {"vhs_audio": ("VHS_AUDIO",)}} + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("AUDIO", ) + RETURN_NAMES = ("audio",) + FUNCTION = "convert_audio" + + def convert_audio(self, vhs_audio): + if not vhs_audio or not vhs_audio(): + raise Exception("audio input is not valid") + args = [ffmpeg_path, "-i", '-'] + try: + res = subprocess.run(args + ["-f", "f32le", "-"], input=vhs_audio(), + capture_output=True, check=True) + audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS)) + if match: + ar = int(match.group(1)) + #NOTE: Just throwing an error for other channel types right now + #Will deal with issues if they come + ac = {"mono": 1, "stereo": 2}[match.group(2)] + else: + ar = 44100 + ac = 2 + audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0) + return ({'waveform': audio, 'sample_rate': ar},) + +class PruneOutputs: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "filenames": ("VHS_FILENAMES",), + "options": (["Intermediate", "Intermediate and Utility"],) + } + } + + RETURN_TYPES = () + OUTPUT_NODE = True + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "prune_outputs" + + def prune_outputs(self, filenames, options): + if len(filenames[1]) == 0: + return () + assert(len(filenames[1]) <= 3 and len(filenames[1]) >= 2) + delete_list = [] + if options in ["Intermediate", "Intermediate and Utility", "All"]: + delete_list += filenames[1][1:-1] + if options in ["Intermediate and Utility", "All"]: + delete_list.append(filenames[1][0]) + if options in ["All"]: + delete_list.append(filenames[1][-1]) + + output_dirs = [folder_paths.get_output_directory(), + folder_paths.get_temp_directory()] + for file in delete_list: + #Check that path is actually an output directory + if (os.path.commonpath([output_dirs[0], file]) != output_dirs[0]) \ + and (os.path.commonpath([output_dirs[1], file]) != output_dirs[1]): + raise Exception("Tried to prune output from invalid directory: " + file) + if os.path.exists(file): + os.remove(file) + return () + +class BatchManager: + def __init__(self, frames_per_batch=-1): + self.frames_per_batch = frames_per_batch + self.inputs = {} + self.outputs = {} + self.unique_id = None + self.has_closed_inputs = False + self.total_frames = float('inf') + def reset(self): + self.close_inputs() + for key in self.outputs: + if getattr(self.outputs[key][-1], "gi_suspended", False): + try: + self.outputs[key][-1].send(None) + except StopIteration: + pass + self.__init__(self.frames_per_batch) + def has_open_inputs(self): + return len(self.inputs) > 0 + def close_inputs(self): + for key in self.inputs: + if getattr(self.inputs[key][-1], "gi_suspended", False): + try: + self.inputs[key][-1].send(1) + except StopIteration: + pass + self.inputs = {} + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "frames_per_batch": ("INT", {"default": 16, "min": 1, "max": BIGMAX, "step": 1}) + }, + "hidden": { + "prompt": "PROMPT", + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ("VHS_BatchManager",) + RETURN_NAMES = ("meta_batch",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "update_batch" + + def update_batch(self, frames_per_batch, prompt=None, unique_id=None): + if unique_id is not None and prompt is not None: + requeue = prompt[unique_id]['inputs'].get('requeue', 0) + else: + requeue = 0 + if requeue == 0: + self.reset() + self.frames_per_batch = frames_per_batch + self.unique_id = unique_id + else: + num_batches = (self.total_frames+self.frames_per_batch-1)//frames_per_batch + print(f'Meta-Batch {requeue}/{num_batches}') + #onExecuted seems to not be called unless some message is sent + return (self,) + + +class VideoInfo: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT", "FLOAT","INT", "FLOAT", "INT", "INT") + RETURN_NAMES = ( + "source_fps🟨", + "source_frame_count🟨", + "source_duration🟨", + "source_width🟨", + "source_height🟨", + "loaded_fps🟦", + "loaded_frame_count🟦", + "loaded_duration🟦", + "loaded_width🟦", + "loaded_height🟦", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + source_info = [] + loaded_info = [] + + for key in keys: + source_info.append(video_info[f"source_{key}"]) + loaded_info.append(video_info[f"loaded_{key}"]) + + return (*source_info, *loaded_info) + + +class VideoInfoSource: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT",) + RETURN_NAMES = ( + "fps🟨", + "frame_count🟨", + "duration🟨", + "width🟨", + "height🟨", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + source_info = [] + + for key in keys: + source_info.append(video_info[f"source_{key}"]) + + return (*source_info,) + + +class VideoInfoLoaded: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT",) + RETURN_NAMES = ( + "fps🟦", + "frame_count🟦", + "duration🟦", + "width🟦", + "height🟦", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + loaded_info = [] + + for key in keys: + loaded_info.append(video_info[f"loaded_{key}"]) + + return (*loaded_info,) + +class SelectFilename: + @classmethod + def INPUT_TYPES(s): + return {"required": {"filenames": ("VHS_FILENAMES",), "index": ("INT", {"default": -1, "step": 1, "min": -1})}} + RETURN_TYPES = ("STRING",) + RETURN_NAMES =("Filename",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "select_filename" + + def select_filename(self, filenames, index): + return (filenames[1][index],) +class Unbatch: + class Any(str): + def __ne__(self, other): + return False + @classmethod + def INPUT_TYPES(s): + return {"required": {"batched": ("*",)}} + RETURN_TYPES = (Any('*'),) + INPUT_IS_LIST = True + RETURN_NAMES =("unbatched",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "unbatch" + def unbatch(self, batched): + if isinstance(batched[0], torch.Tensor): + return (torch.cat(batched),) + if isinstance(batched[0], dict): + out = batched[0].copy() + if 'samples' in out: + out['samples'] = torch.cat([x['samples'] for x in batched]) + if 'waveform' in out: + out['waveform'] = torch.cat([x['waveform'] for x in batched]) + out.pop('batch_index', None) + return (out,) + return (functools.reduce(lambda x,y: x+y, batched),) + @classmethod + def VALIDATE_INPUTS(cls, input_types): + return True +class SelectLatest: + @classmethod + def INPUT_TYPES(s): + return {"required": {"filename_prefix": ("STRING", {'default': 'output/AnimateDiff', 'vhs_path_extensions': []}), + "filename_postfix": ("STRING", {"placeholder": ".webm"})}} + RETURN_TYPES = ("STRING",) + RETURN_NAMES =("Filename",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "select_latest" + EXPERIMENTAL = True + + def select_latest(self, filename_prefix, filename_postfix): + assert False, "Not Reachable" + +NODE_CLASS_MAPPINGS = { + "VHS_VideoCombine": VideoCombine, + "VHS_LoadVideo": LoadVideoUpload, + "VHS_LoadVideoPath": LoadVideoPath, + "VHS_LoadVideoFFmpeg": LoadVideoFFmpegUpload, + "VHS_LoadVideoFFmpegPath": LoadVideoFFmpegPath, + "VHS_LoadImagePath": LoadImagePath, + "VHS_LoadImages": LoadImagesFromDirectoryUpload, + "VHS_LoadImagesPath": LoadImagesFromDirectoryPath, + "VHS_LoadAudio": LoadAudio, + "VHS_LoadAudioUpload": LoadAudioUpload, + "VHS_AudioToVHSAudio": AudioToVHSAudio, + "VHS_VHSAudioToAudio": VHSAudioToAudio, + "VHS_PruneOutputs": PruneOutputs, + "VHS_BatchManager": BatchManager, + "VHS_VideoInfo": VideoInfo, + "VHS_VideoInfoSource": VideoInfoSource, + "VHS_VideoInfoLoaded": VideoInfoLoaded, + "VHS_SelectFilename": SelectFilename, + # Batched Nodes + "VHS_VAEEncodeBatched": VAEEncodeBatched, + "VHS_VAEDecodeBatched": VAEDecodeBatched, + # Latent and Image nodes + "VHS_SplitLatents": SplitLatents, + "VHS_SplitImages": SplitImages, + "VHS_SplitMasks": SplitMasks, + "VHS_MergeLatents": MergeLatents, + "VHS_MergeImages": MergeImages, + "VHS_MergeMasks": MergeMasks, + "VHS_GetLatentCount": GetLatentCount, + "VHS_GetImageCount": GetImageCount, + "VHS_GetMaskCount": GetMaskCount, + "VHS_DuplicateLatents": RepeatLatents, + "VHS_DuplicateImages": RepeatImages, + "VHS_DuplicateMasks": RepeatMasks, + "VHS_SelectEveryNthLatent": SelectEveryNthLatent, + "VHS_SelectEveryNthImage": SelectEveryNthImage, + "VHS_SelectEveryNthMask": SelectEveryNthMask, + "VHS_SelectLatents": SelectLatents, + "VHS_SelectImages": SelectImages, + "VHS_SelectMasks": SelectMasks, + "VHS_Unbatch": Unbatch, + "VHS_SelectLatest": SelectLatest, +} +NODE_DISPLAY_NAME_MAPPINGS = { + "VHS_VideoCombine": "Video Combine 🎥🅥🅗🅢", + "VHS_LoadVideo": "Load Video (Upload) 🎥🅥🅗🅢", + "VHS_LoadVideoPath": "Load Video (Path) 🎥🅥🅗🅢", + "VHS_LoadVideoFFmpeg": "Load Video FFmpeg (Upload) 🎥🅥🅗🅢", + "VHS_LoadVideoFFmpegPath": "Load Video FFmpeg (Path) 🎥🅥🅗🅢", + "VHS_LoadImagePath": "Load Image (Path) 🎥🅥🅗🅢", + "VHS_LoadImages": "Load Images (Upload) 🎥🅥🅗🅢", + "VHS_LoadImagesPath": "Load Images (Path) 🎥🅥🅗🅢", + "VHS_LoadAudio": "Load Audio (Path)🎥🅥🅗🅢", + "VHS_LoadAudioUpload": "Load Audio (Upload)🎥🅥🅗🅢", + "VHS_AudioToVHSAudio": "Audio to legacy VHS_AUDIO🎥🅥🅗🅢", + "VHS_VHSAudioToAudio": "Legacy VHS_AUDIO to Audio🎥🅥🅗🅢", + "VHS_PruneOutputs": "Prune Outputs 🎥🅥🅗🅢", + "VHS_BatchManager": "Meta Batch Manager 🎥🅥🅗🅢", + "VHS_VideoInfo": "Video Info 🎥🅥🅗🅢", + "VHS_VideoInfoSource": "Video Info (Source) 🎥🅥🅗🅢", + "VHS_VideoInfoLoaded": "Video Info (Loaded) 🎥🅥🅗🅢", + "VHS_SelectFilename": "Select Filename 🎥🅥🅗🅢", + # Batched Nodes + "VHS_VAEEncodeBatched": "VAE Encode Batched 🎥🅥🅗🅢", + "VHS_VAEDecodeBatched": "VAE Decode Batched 🎥🅥🅗🅢", + # Latent and Image nodes + "VHS_SplitLatents": "Split Latents 🎥🅥🅗🅢", + "VHS_SplitImages": "Split Images 🎥🅥🅗🅢", + "VHS_SplitMasks": "Split Masks 🎥🅥🅗🅢", + "VHS_MergeLatents": "Merge Latents 🎥🅥🅗🅢", + "VHS_MergeImages": "Merge Images 🎥🅥🅗🅢", + "VHS_MergeMasks": "Merge Masks 🎥🅥🅗🅢", + "VHS_GetLatentCount": "Get Latent Count 🎥🅥🅗🅢", + "VHS_GetImageCount": "Get Image Count 🎥🅥🅗🅢", + "VHS_GetMaskCount": "Get Mask Count 🎥🅥🅗🅢", + "VHS_DuplicateLatents": "Repeat Latents 🎥🅥🅗🅢", + "VHS_DuplicateImages": "Repeat Images 🎥🅥🅗🅢", + "VHS_DuplicateMasks": "Repeat Masks 🎥🅥🅗🅢", + "VHS_SelectEveryNthLatent": "Select Every Nth Latent 🎥🅥🅗🅢", + "VHS_SelectEveryNthImage": "Select Every Nth Image 🎥🅥🅗🅢", + "VHS_SelectEveryNthMask": "Select Every Nth Mask 🎥🅥🅗🅢", + "VHS_SelectLatents": "Select Latents 🎥🅥🅗🅢", + "VHS_SelectImages": "Select Images 🎥🅥🅗🅢", + "VHS_SelectMasks": "Select Masks 🎥🅥🅗🅢", + "VHS_Unbatch": "Unbatch 🎥🅥🅗🅢", + "VHS_SelectLatest": "Select Latest 🎥🅥🅗🅢", +} diff --git a/docs/hel-892/multivideo-reference/load__videohelpersuite__utils.py b/docs/hel-892/multivideo-reference/load__videohelpersuite__utils.py new file mode 100644 index 00000000..75431d5a --- /dev/null +++ b/docs/hel-892/multivideo-reference/load__videohelpersuite__utils.py @@ -0,0 +1,426 @@ +import hashlib +import os +from typing import Iterable +import shutil +import subprocess +import re +import time +from collections.abc import Mapping +from typing import Union +import functools +import torch +from torch import Tensor + +import server +from .logger import logger +import folder_paths + +BIGMIN = -(2**53-1) +BIGMAX = (2**53-1) + +DIMMAX = 8192 + +ENCODE_ARGS = ("utf-8", 'backslashreplace') + +def ffmpeg_suitability(path): + try: + version = subprocess.run([path, "-version"], check=True, + capture_output=True).stdout.decode(*ENCODE_ARGS) + except: + return 0 + score = 0 + #rough layout of the importance of various features + simple_criterion = [("libvpx", 20),("264",10), ("265",3), + ("svtav1",5),("libopus", 1)] + for criterion in simple_criterion: + if version.find(criterion[0]) >= 0: + score += criterion[1] + #obtain rough compile year from copyright information + copyright_index = version.find('2000-2') + if copyright_index >= 0: + copyright_year = version[copyright_index+6:copyright_index+9] + if copyright_year.isnumeric(): + score += int(copyright_year) + return score + +class MultiInput(str): + def __new__(cls, string, allowed_types="*"): + res = super().__new__(cls, string) + res.allowed_types=allowed_types + return res + def __ne__(self, other): + if self.allowed_types == "*" or other == "*": + return False + return other not in self.allowed_types +imageOrLatent = MultiInput("IMAGE", ["IMAGE", "LATENT"]) +floatOrInt = MultiInput("FLOAT", ["FLOAT", "INT"]) + +class ContainsAll(dict): + def __contains__(self, other): + return True + def __getitem__(self, key): + return super().get(key, (None, {})) + +if "VHS_FORCE_FFMPEG_PATH" in os.environ: + ffmpeg_path = os.environ.get("VHS_FORCE_FFMPEG_PATH") +else: + ffmpeg_paths = [] + try: + from imageio_ffmpeg import get_ffmpeg_exe + imageio_ffmpeg_path = get_ffmpeg_exe() + ffmpeg_paths.append(imageio_ffmpeg_path) + except: + if "VHS_USE_IMAGEIO_FFMPEG" in os.environ: + raise + logger.warn("Failed to import imageio_ffmpeg") + if "VHS_USE_IMAGEIO_FFMPEG" in os.environ: + ffmpeg_path = imageio_ffmpeg_path + else: + system_ffmpeg = shutil.which("ffmpeg") + if system_ffmpeg is not None: + ffmpeg_paths.append(system_ffmpeg) + if os.path.isfile("ffmpeg"): + ffmpeg_paths.append(os.path.abspath("ffmpeg")) + if os.path.isfile("ffmpeg.exe"): + ffmpeg_paths.append(os.path.abspath("ffmpeg.exe")) + if len(ffmpeg_paths) == 0: + logger.error("No valid ffmpeg found.") + ffmpeg_path = None + elif len(ffmpeg_paths) == 1: + #Evaluation of suitability isn't required, can take sole option + #to reduce startup time + ffmpeg_path = ffmpeg_paths[0] + else: + ffmpeg_path = max(ffmpeg_paths, key=ffmpeg_suitability) +gifski_path = os.environ.get("VHS_GIFSKI", None) +if gifski_path is None: + gifski_path = os.environ.get("JOV_GIFSKI", None) + if gifski_path is None: + gifski_path = shutil.which("gifski") +ytdl_path = os.environ.get("VHS_YTDL", None) or shutil.which('yt-dlp') \ + or shutil.which('youtube-dl') +download_history = {} +def try_download_video(url): + if ytdl_path is None: + return None + if url in download_history: + return download_history[url] + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + #Format information could be added to only download audio for Load Audio, + #but this gets hairy if same url is also used for video. + #Best to just always keep defaults + #dl_format = ['-f', 'ba'] if is_audio else [] + try: + res = subprocess.run([ytdl_path, "--print", "after_move:filepath", + "-P", folder_paths.get_temp_directory(), url], + capture_output=True, check=True) + #strip newline + file = res.stdout.decode(*ENCODE_ARGS)[:-1] + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the yt-dl process:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + file = None + download_history[url] = file + return file + +def is_safe_path(path, strict=False): + if "VHS_STRICT_PATHS" not in os.environ and not strict: + return True + basedir = os.path.abspath('.') + try: + common_path = os.path.commonpath([basedir, path]) + except: + #Different drive on windows + return False + return common_path == basedir + +def get_sorted_dir_files_from_directory(directory: str, skip_first_images: int=0, select_every_nth: int=1, extensions: Iterable=None): + directory = strip_path(directory) + dir_files = os.listdir(directory) + dir_files = sorted(dir_files) + dir_files = [os.path.join(directory, x) for x in dir_files] + dir_files = list(filter(lambda filepath: os.path.isfile(filepath), dir_files)) + # filter by extension, if needed + if extensions is not None: + extensions = list(extensions) + new_dir_files = [] + for filepath in dir_files: + ext = "." + filepath.split(".")[-1] + if ext.lower() in extensions: + new_dir_files.append(filepath) + dir_files = new_dir_files + # start at skip_first_images + dir_files = dir_files[skip_first_images:] + dir_files = dir_files[0::select_every_nth] + return dir_files + + +# modified from https://stackoverflow.com/questions/22058048/hashing-a-file-in-python +def calculate_file_hash(filename: str, hash_every_n: int = 1): + #Larger video files were taking >.5 seconds to hash even when cached, + #so instead the modified time from the filesystem is used as a hash + h = hashlib.sha256() + h.update(filename.encode()) + h.update(str(os.path.getmtime(filename)).encode()) + return h.hexdigest() + +prompt_queue = server.PromptServer.instance.prompt_queue +def requeue_workflow_unchecked(): + """Requeues the current workflow without checking for multiple requeues""" + currently_running = prompt_queue.currently_running + (_, _, prompt, extra_data, outputs_to_execute) = next(iter(currently_running.values())) + + #Ensure batch_managers are marked stale + prompt = prompt.copy() + for uid in prompt: + if prompt[uid]['class_type'] == 'VHS_BatchManager': + prompt[uid]['inputs']['requeue'] = prompt[uid]['inputs'].get('requeue',0)+1 + + #execution.py has guards for concurrency, but server doesn't. + #TODO: Check that this won't be an issue + number = -server.PromptServer.instance.number + server.PromptServer.instance.number += 1 + prompt_id = str(server.uuid.uuid4()) + prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute)) + +requeue_guard = [None, 0, 0, {}] +def requeue_workflow(requeue_required=(-1,True)): + assert(len(prompt_queue.currently_running) == 1) + global requeue_guard + (run_number, _, prompt, _, _) = next(iter(prompt_queue.currently_running.values())) + if requeue_guard[0] != run_number: + #Calculate a count of how many outputs are managed by a batch manager + managed_outputs=0 + for bm_uid in prompt: + if prompt[bm_uid]['class_type'] == 'VHS_BatchManager': + for output_uid in prompt: + if prompt[output_uid]['class_type'] in ["VHS_VideoCombine"]: + for inp in prompt[output_uid]['inputs'].values(): + if inp == [bm_uid, 0]: + managed_outputs+=1 + requeue_guard = [run_number, 0, managed_outputs, {}] + requeue_guard[1] = requeue_guard[1]+1 + requeue_guard[3][requeue_required[0]] = requeue_required[1] + if requeue_guard[1] == requeue_guard[2] and max(requeue_guard[3].values()): + requeue_workflow_unchecked() + +def get_audio(file, start_time=0, duration=0): + args = [ffmpeg_path, "-i", file] + if start_time > 0: + args += ["-ss", str(start_time)] + if duration > 0: + args += ["-t", str(duration)] + try: + #TODO: scan for sample rate and maintain + res = subprocess.run(args + ["-f", "f32le", "-"], + capture_output=True, check=True) + audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32) + match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS)) + except subprocess.CalledProcessError as e: + raise Exception(f"VHS failed to extract audio from {file}:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if match: + ar = int(match.group(1)) + #NOTE: Just throwing an error for other channel types right now + #Will deal with issues if they come + ac = {"mono": 1, "stereo": 2}[match.group(2)] + else: + ar = 44100 + ac = 2 + audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0) + return {'waveform': audio, 'sample_rate': ar} + +class LazyAudioMap(Mapping): + def __init__(self, file, start_time, duration): + self.file = file + self.start_time=start_time + self.duration=duration + self._dict=None + def __getitem__(self, key): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return self._dict[key] + def __iter__(self): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return iter(self._dict) + def __len__(self): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return len(self._dict) +def lazy_get_audio(file, start_time=0, duration=0, **kwargs): + return LazyAudioMap(file, start_time, duration) + +def is_url(url): + return url.split("://")[0] in ["http", "https"] + +def validate_sequence(path): + #Check if path is a valid ffmpeg sequence that points to at least one file + (path, file) = os.path.split(path) + if not os.path.isdir(path): + return False + match = re.search('%0?\\d+d', file) + if not match: + return False + seq = match.group() + if seq == '%d': + seq = '\\\\d+' + else: + seq = '\\\\d{%s}' % seq[1:-1] + file_matcher = re.compile(re.sub('%0?\\d+d', seq, file)) + for file in os.listdir(path): + if file_matcher.fullmatch(file): + return True + return False + +def strip_path(path): + #This leaves whitespace inside quotes and only a single " + #thus ' ""test"' -> '"test' + #consider path.strip(string.whitespace+"\"") + #or weightier re.fullmatch("[\\s\"]*(.+?)[\\s\"]*", path).group(1) + path = path.strip() + if path.startswith("\""): + path = path[1:] + if path.endswith("\""): + path = path[:-1] + return path +def hash_path(path): + if path is None: + return "input" + if is_url(path): + return "url" + if not os.path.isfile(path): + return "DNE" + return calculate_file_hash(strip_path(path)) + + +def validate_path(path, allow_none=False, allow_url=True): + if path is None: + return allow_none + if is_url(path): + #Probably not feasible to check if url resolves here + if not allow_url: + return "URLs are unsupported for this path" + return is_safe_path(path) + if not os.path.isfile(strip_path(path)): + return "Invalid file path: {}".format(path) + return is_safe_path(path) + + +def validate_index(index: int, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int: + # if part of range, do nothing + if is_range: + return index + # otherwise, validate index + # validate not out of range - only when latent_count is passed in + if length > 0 and index > length-1 and not allow_missing: + raise IndexError(f"Index '{index}' out of range for {length} item(s).") + # if negative, validate not out of range + if index < 0: + if not allow_negative: + raise IndexError(f"Negative indeces not allowed, but was '{index}'.") + conv_index = length+index + if conv_index < 0 and not allow_missing: + raise IndexError(f"Index '{index}', converted to '{conv_index}' out of range for {length} item(s).") + index = conv_index + return index + + +def convert_to_index_int(raw_index: str, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int: + try: + return validate_index(int(raw_index), length=length, is_range=is_range, allow_negative=allow_negative, allow_missing=allow_missing) + except ValueError as e: + raise ValueError(f"Index '{raw_index}' must be an integer.", e) + + +def convert_str_to_indexes(indexes_str: str, length: int=0, allow_missing=False) -> list[int]: + if not indexes_str: + return [] + int_indexes = list(range(0, length)) + allow_negative = length > 0 + chosen_indexes = [] + # parse string - allow positive ints, negative ints, and ranges separated by ':' + groups = indexes_str.split(",") + groups = [g.strip() for g in groups] + for g in groups: + # parse range of indeces (e.g. 2:16) + if ':' in g: + index_range = g.split(":", 2) + index_range = [r.strip() for r in index_range] + + start_index = index_range[0] + if len(start_index) > 0: + start_index = convert_to_index_int(start_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing) + else: + start_index = 0 + end_index = index_range[1] + if len(end_index) > 0: + end_index = convert_to_index_int(end_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing) + else: + end_index = length + # support step as well, to allow things like reversing, every-other, etc. + step = 1 + if len(index_range) > 2: + step = index_range[2] + if len(step) > 0: + step = convert_to_index_int(step, length=length, is_range=True, allow_negative=True, allow_missing=True) + else: + step = 1 + # if latents were passed in, base indeces on known latent count + if len(int_indexes) > 0: + chosen_indexes.extend(int_indexes[start_index:end_index][::step]) + # otherwise, assume indeces are valid + else: + chosen_indexes.extend(list(range(start_index, end_index, step))) + # parse individual indeces + else: + chosen_indexes.append(convert_to_index_int(g, length=length, allow_negative=allow_negative, allow_missing=allow_missing)) + return chosen_indexes + + +def select_indexes(input_obj: Union[Tensor, list], idxs: list): + if type(input_obj) == Tensor: + return input_obj[idxs] + else: + return [input_obj[i] for i in idxs] + +def merge_filter_args(args, ftype="-vf"): + #TODO This doesn't account for filter_complex + #Will likely need to convert all filters to filter complex in the future + #But that requires source/output deduplication + try: + start_index = args.index(ftype)+1 + index = start_index + while True: + index = args.index(ftype, index) + args[start_index] += ',' + args[index+1] + args.pop(index) + args.pop(index) + except ValueError: + pass + +def select_indexes_from_str(input_obj: Union[Tensor, list], indexes: str, err_if_missing=True, err_if_empty=True): + real_idxs = convert_str_to_indexes(indexes, len(input_obj), allow_missing=not err_if_missing) + if err_if_empty and len(real_idxs) == 0: + raise Exception(f"Nothing was selected based on indexes found in '{indexes}'.") + return select_indexes(input_obj, real_idxs) + +def hook(obj, attr): + def dec(f): + f = functools.update_wrapper(f, getattr(obj,attr)) + setattr(obj,attr,f) + return f + return dec + +def cached(duration): + def dec(f): + cached_ret = None + cache_time = 0 + def cached_func(): + nonlocal cache_time, cached_ret + if time.time() > cache_time + duration or cached_ret is None: + cache_time = time.time() + cached_ret = f() + return cached_ret + return cached_func + return dec diff --git a/docs/hel-892/multivideo-reference/load__web__js__VHS.core.js b/docs/hel-892/multivideo-reference/load__web__js__VHS.core.js new file mode 100644 index 00000000..adcce3ec --- /dev/null +++ b/docs/hel-892/multivideo-reference/load__web__js__VHS.core.js @@ -0,0 +1,2538 @@ +import { app } from '../../../scripts/app.js' +import { api } from '../../../scripts/api.js' +import { setWidgetConfig } from '../../../extensions/core/widgetInputs.js' +import { applyTextReplacements } from "../../../scripts/utils.js"; + +function chainCallback(object, property, callback) { + if (object == undefined) { + //This should not happen. + console.error("Tried to add callback to non-existant object") + return; + } + if (property in object && object[property]) { + const callback_orig = object[property] + object[property] = function () { + const r = callback_orig.apply(this, arguments); + return callback.apply(this, arguments) ?? r + }; + } else { + object[property] = callback; + } +} + +function getNodeById(id, graph=app.graph) { + let cg = graph + let node = undefined + for (let sid of (''+id).split(':')) { + node = cg?.getNodeById?.(sid) + cg = node?.subgraph + } + return node +} + +const convDict = { + VHS_LoadImages : ["directory", null, "image_load_cap", "skip_first_images", "select_every_nth"], + VHS_LoadImagesPath : ["directory", "image_load_cap", "skip_first_images", "select_every_nth"], + VHS_VideoCombine : ["frame_rate", "loop_count", "filename_prefix", "format", "pingpong", "save_image"], + VHS_LoadVideo : ["video", "force_rate", "force_size", "frame_load_cap", "skip_first_frames", "select_every_nth"], + VHS_LoadVideoPath : ["video", "force_rate", "force_size", "frame_load_cap", "skip_first_frames", "select_every_nth"], +}; +const renameDict = {VHS_VideoCombine : {save_output : "save_image"}} +function useKVState(nodeType) { + chainCallback(nodeType.prototype, "onNodeCreated", function () { + chainCallback(this, "onConfigure", function(info) { + if (!this.widgets) { + //Node has no widgets, there is nothing to restore + return + } + if (typeof(info.widgets_values) != "object") { + //widgets_values is in some unknown inactionable format + return + } + let widgetDict = info.widgets_values + if (info.widgets_values.length) { + //widgets_values is in the old list format + if (this.type in convDict) { + //widget does not have a conversion format provided + let convList = convDict[this.type]; + if(info.widgets_values.length >= convList.length) { + //has all required fields + widgetDict = {} + for (let i = 0; i < convList.length; i++) { + if(!convList[i]) { + //Element should not be processed (upload button on load image sequence) + continue + } + widgetDict[convList[i]] = info.widgets_values[i]; + } + } else { + //widgets_values is missing elements marked as required + //let it fall through to failure state + } + } + } + if ('force_size' in widgetDict) { + //force size has been phased out, Migrate state + if (widgetDict.force_size.includes?.('x')) { + let sizes = widgetDict.force_size.split('x') + if (sizes[0] != '?') { + widgetDict.custom_width = parseInt(sizes[0]) + } else { + widgetDict.custom_width = 0 + } + if (sizes[1] != '?') { + widgetDict.custom_height = parseInt(sizes[1]) + } else { + widgetDict.custom_height = 0 + } + } else { + if (['Disabled', 'Custom Height'].includes(widgetDict.force_size)) { + widgetDict.custom_width = 0 + } + if (['Disabled', 'Custom Width'].includes(widgetDict.force_size)) { + widgetDict.custom_height = 0 + } + } + } + if (widgetDict.videopreview?.params?.force_size) { + delete widgetDict.videopreview.params.force_size + } + let inputs = {} + for (let i of this.inputs) { + inputs[i.name] = i + } + if (widgetDict.length == undefined) { + for (let w of this.widgets) { + if (w.type =="button") { + continue + } + if (w.name in widgetDict) { + w.value = widgetDict[w.name]; + w.callback?.(w.value) + } else { + //Check for a legacy name that needs migrating + if (this.type in renameDict && w.name in renameDict[this.type]) { + if (renameDict[this.type][w.name] in widgetDict) { + w.value = widgetDict[renameDict[this.type][w.name]] + w.callback?.(w.value) + continue + } + } + //attempt to restore default value + let inputs = LiteGraph.getNodeType(this.type).nodeData.input; + let initialValue = null; + if (inputs?.required?.hasOwnProperty(w.name)) { + if (inputs.required[w.name][1]?.hasOwnProperty("default")) { + initialValue = inputs.required[w.name][1].default; + } else if (inputs.required[w.name][0].length) { + initialValue = inputs.required[w.name][0][0]; + } + } else if (inputs?.optional?.hasOwnProperty(w.name)) { + if (inputs.optional[w.name][1]?.hasOwnProperty("default")) { + initialValue = inputs.optional[w.name][1].default; + } else if (inputs.optional[w.name][0].length) { + initialValue = inputs.optional[w.name][0][0]; + } + } + if (initialValue) { + w.value = initialValue; + w.callback?.(w.value) + } + } + if (w.name in inputs && w.config) { + setWidgetConfig(inputs[w.name], w.config) + } + } + } else { + //Saved data was not a map made by this method + //and a conversion dict for it does not exist + //It's likely an array and that has been blindly applied + if (info?.widgets_values?.length != this.widgets.length) { + //Widget could not have restored properly + //Note if multiple node loads fail, only the latest error dialog displays + app.ui.dialog.show("Failed to restore node: " + this.title + "\nPlease remove and re-add it.") + this.bgcolor = "#C00" + } + } + }); + chainCallback(this, "onSerialize", function(info) { + info.widgets_values = {}; + if (!this.widgets) { + //object has no widgets, there is nothing to store + return; + } + for (let w of this.widgets) { + info.widgets_values[w.name] = w.value; + } + }); + }) +} +var helpDOM; +if (!app.helpDOM) { + helpDOM = document.createElement("div"); + app.VHSHelp = helpDOM +} +function initHelpDOM() { + let parentDOM = document.createElement("div"); + parentDOM.className = "VHS_floatinghelp" + document.body.appendChild(parentDOM) + parentDOM.appendChild(helpDOM) + helpDOM.className = "litegraph"; + let scrollbarStyle = document.createElement('style'); + scrollbarStyle.innerHTML = ` + .VHS_floatinghelp { + scrollbar-width: 6px; + scrollbar-color: #0003 #0000; + &::-webkit-scrollbar { + background: transparent; + width: 6px; + } + &::-webkit-scrollbar-thumb { + background: #0005; + border-radius: 20px + } + &::-webkit-scrollbar-button { + display: none; + } + } + .VHS_loopedvideo::-webkit-media-controls-mute-button { + display:none; + } + .VHS_loopedvideo::-webkit-media-controls-fullscreen-button { + display:none; + } + ` + scrollbarStyle.id = 'scroll-properties' + parentDOM.appendChild(scrollbarStyle) + chainCallback(app.canvas, "onDrawForeground", function (ctx, visible_rect){ + let n = helpDOM.node + if (!n || !n?.graph) { + parentDOM.style['left'] = '-5000px' + return + } + //draw : function(ctx, node, widgetWidth, widgetY, height) { + //update widget position, even if off screen + const transform = ctx.getTransform(); + const scale = app.canvas.ds.scale;//gets the litegraph zoom + //calculate coordinates with account for browser zoom + const bcr = app.canvas.canvas.getBoundingClientRect() + const x = transform.e*scale/transform.a + bcr.x; + const y = transform.f*scale/transform.a + bcr.y; + //TODO: text reflows at low zoom. investigate alternatives + Object.assign(parentDOM.style, { + left: (x+(n.pos[0] + n.size[0]+15)*scale) + "px", + top: (y+(n.pos[1]-LiteGraph.NODE_TITLE_HEIGHT)*scale) + "px", + width: "400px", + minHeight: "100px", + maxHeight: "600px", + overflowY: 'scroll', + transformOrigin: '0 0', + transform: 'scale(' + scale + ',' + scale +')', + fontSize: '18px', + backgroundColor: LiteGraph.NODE_DEFAULT_BGCOLOR, + boxShadow: '0 0 10px black', + borderRadius: '4px', + padding: '3px', + zIndex: 3, + position: "absolute", + display: 'inline', + }); + }); + function setCollapse(el, doCollapse) { + if (doCollapse) { + el.children[0].children[0].innerHTML = '+' + Object.assign(el.children[1].style, { + color: '#CCC', + overflowX: 'hidden', + width: '0px', + minWidth: 'calc(100% - 20px)', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + }) + for (let child of el.children[1].children) { + if (child.style.display != 'none'){ + child.origDisplay = child.style.display + } + child.style.display = 'none' + } + } else { + el.children[0].children[0].innerHTML = '-' + Object.assign(el.children[1].style, { + color: '', + overflowX: '', + width: '100%', + minWidth: '', + textOverflow: '', + whiteSpace: '', + }) + for (let child of el.children[1].children) { + child.style.display = child.origDisplay + } + } + } + helpDOM.collapseOnClick = function() { + let doCollapse = this.children[0].innerHTML == '-' + setCollapse(this.parentElement, doCollapse) + } + helpDOM.selectHelp = function(name, value) { + //attempt to navigate to name in help + function collapseUnlessMatch(items,t) { + var match = items.querySelector('[vhs_title="' + t + '"]') + if (!match) { + for (let i of items.children) { + if (i.innerHTML.slice(0,t.length+5).includes(t)) { + match = i + break + } + } + } + if (!match) { + return null + } + //For longer documentation items with fewer collapsable elements, + //scroll to make sure the entirety of the selected item is visible + //This has the unfortunate side effect of trying to scroll the main + //window if the documentation windows is forcibly offscreen, + //but it's easy to simply scroll the main window back and seems to + //have no visual side effects + match.scrollIntoView(false) + window.scrollTo(0,0) + for (let i of items.querySelectorAll('.VHS_collapse')) { + if (i.contains(match)) { + setCollapse(i, false) + } else { + setCollapse(i, true) + } + } + return match + } + let target = collapseUnlessMatch(helpDOM, name) + if (target && value) { + collapseUnlessMatch(target, value) + } + } + let titleContext = document.createElement("canvas").getContext("2d") + titleContext.font = app.canvas.title_text_font; + helpDOM.calculateTitleLength = function(text) { + return titleContext.measureText(text).width + } + helpDOM.addHelp = function(node, nodeType, description) { + if (!description) { + return + } + //Pad computed size for the clickable question mark + let originalComputeSize = node.computeSize + node.computeSize = function() { + let size = originalComputeSize.apply(this, arguments) + if (!this.title) { + return size + } + let title_width = helpDOM.calculateTitleLength(this.title) + size[0] = Math.max(size[0], title_width + LiteGraph.NODE_TITLE_HEIGHT*2) + return size + } + + node.description = description + chainCallback(node, "onDrawForeground", function (ctx) { + if (this?.flags?.collapsed) { + return + } + //draw question mark + ctx.save() + ctx.font = 'bold 20px Arial' + ctx.fillText("?", this.size[0]-17, -8) + ctx.restore() + }) + chainCallback(node, "onMouseDown", function (e, pos, canvas) { + if (this?.flags?.collapsed) { + return + } + //On click would be preferred, but this'll be good enough + if (pos[1] < 0 && pos[0] + LiteGraph.NODE_TITLE_HEIGHT > this.size[0]) { + //corner question mark clicked + if (helpDOM.node == this) { + helpDOM.node = undefined + } else { + helpDOM.node = this; + helpDOM.innerHTML = this.description || "no help provided " + for (let e of helpDOM.querySelectorAll('.VHS_collapse')) { + e.children[0].onclick = helpDOM.collapseOnClick + e.children[0].style.cursor = 'pointer' + } + for (let e of helpDOM.querySelectorAll('.VHS_precollapse')) { + setCollapse(e, true) + } + for (let e of helpDOM.querySelectorAll('.VHS_loopedvideo')) { + e?.play() + } + helpDOM.parentElement.scrollTo(0,0) + } + return true + } + }) + let timeout = null + chainCallback(node, "onMouseMove", function (e, pos, canvas) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + if (helpDOM.node != this) { + return + } + timeout = setTimeout(() => { + let n = this + if (pos[0] > 0 && pos[0] < n.size[0] + && pos[1] > 0 && pos[1] < n.size[1]) { + //TODO: provide help specific to element clicked + let inputRows = Math.max(n.inputs?.length || 0, n.outputs?.length || 0) + if (pos[1] < LiteGraph.NODE_SLOT_HEIGHT * inputRows) { + let row = Math.floor((pos[1] - 7) / LiteGraph.NODE_SLOT_HEIGHT) + if (pos[0] < n.size[0]/2) { + if (row < n.inputs.length) { + helpDOM.selectHelp(n.inputs[row].name) + } + } else { + if (row < n.outputs.length) { + helpDOM.selectHelp(n.outputs[row].name) + } + } + } else { + //probably widget, but widgets have variable height. + let basey = LiteGraph.NODE_SLOT_HEIGHT * inputRows + 6 + for (let w of n.widgets) { + if (w.y) { + basey = w.y + } + let wheight = LiteGraph.NODE_WIDGET_HEIGHT+4 + if (w.computeSize) { + wheight = w.computeSize(n.size[0])[1] + } + if (pos[1] < basey + wheight) { + helpDOM.selectHelp(w.name, w.value) + break + } + basey += wheight + } + } + } + }, 500) + }) + chainCallback(node, "onMouseLeave", function (e, pos, canvas) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + }); + } +} + +function fitHeight(node) { + node.setSize([node.size[0], node.computeSize([node.size[0], node.size[1]])[1]]) + node?.graph?.setDirtyCanvas(true); +} +function startDraggingItems(node, pointer) { + app.canvas.emitBeforeChange() + app.canvas.graph?.beforeChange() + // Ensure that dragging is properly cleaned up, on success or failure. + pointer.finally = () => { + app.canvas.isDragging = false + app.canvas.graph?.afterChange() + app.canvas.emitAfterChange() + } + app.canvas.processSelect(node, pointer.eDown, true) + app.canvas.isDragging = true +} +function processDraggedItems(e) { + if (e.shiftKey || LiteGraph.alwaysSnapToGrid) + app.canvas?.graph?.snapToGrid(app.canvas.selectedItems) + app.canvas.dirty_canvas = true + app.canvas.dirty_bgcanvas = true + app.canvas.onNodeMoved?.(findFirstNode(app.canvas.selectedItems)) +} +function allowDragFromWidget(widget) { + widget.onPointerDown = function(pointer, node) { + pointer.onDragStart = () => startDraggingItems(node, pointer) + pointer.onDragEnd = processDraggedItems + app.canvas.dirty_canvas = true + return true + } +} + +async function uploadFile(file, progressCallback) { + try { + // Wrap file in formdata so it includes filename + const body = new FormData(); + const i = file.webkitRelativePath.lastIndexOf('/'); + const subfolder = file.webkitRelativePath.slice(0,i+1) + const new_file = new File([file], file.name, { + type: file.type, + lastModified: file.lastModified, + }); + body.append("image", new_file); + if (i > 0) { + body.append("subfolder", subfolder); + } + const url = api.apiURL("/upload/image") + const resp = await new Promise((resolve) => { + let req = new XMLHttpRequest() + req.upload.onprogress = (e) => progressCallback?.(e.loaded/e.total) + req.onload = () => resolve(req) + req.open('post', url, true) + req.send(body) + }) + + if (resp.status !== 200) { + alert(resp.status + " - " + resp.statusText); + } + return resp + } catch (error) { + alert(error); + } +} + +function addVAEOutputToggle(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.reject_ue_connection = (input) => input?.name == "vae" + }) + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linfo) { + let slotType = this.inputs[slot]?.type + if (contype == LiteGraph.INPUT && slotType == "VAE") { + if (iscon && linfo) { + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } else if (this.outputs[0].type == "IMAGE") { + this.linkTimeout = setTimeout(() => { + if (this.outputs[0].type != "IMAGE") { + return + } + this.linkTimeout = false + this.disconnectOutput(0); + }, 50) + } + this.outputs[0].name = 'LATENT'; + this.outputs[0].type = 'LATENT'; + } else{ + if (this.outputs[0].type == "LATENT") { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + this.disconnectOutput(0); + }, 50) + } + this.outputs[0].name = "IMAGE"; + this.outputs[0].type = "IMAGE"; + } + } + }); +} +function addVAEInputToggle(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.reject_ue_connection = (input) => input?.name == "vae" + }) + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linf) { + if (contype == LiteGraph.INPUT && slot == 3 && this.inputs[3].type == "VAE") { + if (iscon && linf) { + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } else if (this.inputs[0].type == "IMAGE") { + this.linkTimeout = setTimeout(() => { + //workaround for out of order loading + if (this.inputs[0].type != "IMAGE") { + return + } + this.linkTimeout = false + this.disconnectInput(0); + }, 50) + } + this.inputs[0].type = 'LATENT'; + } else { + if (this.inputs[0].type == "LATENT") { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + this.disconnectInput(0); + }, 50) + } + this.inputs[0].type = "IMAGE"; + } + } + }); +} +function cloneType(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.changeOutputType = function (new_type) { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + if (this.outputs[0].type != new_type) { + this.outputs[0].type = new_type + //check and potentially remove links + if (!this.outputs[0].links) { + return + } + let removed_links = [] + for (let link_id of this.outputs[0].links) { + let link = app.graph.links[link_id] + if (!link) + debugger + let target_node = app.graph.getNodeById(link.target_id) + let target_input = target_node.inputs[link.target_slot] + let keep = LiteGraph.isValidConnection(new_type, target_input.type) + if (!keep) { + link.disconnect(app.graph, 'input') + removed_links.push(link_id) + } + target_node.onConnectionsChange?.(LiteGraph.INPUT, + link.target_slot, keep, link, target_input) + } + this.outputs[0].links = this.outputs[0].links + .filter((v) => !removed_links.includes(v)) + } + }, 50) + } + this.changeOutputType("VHS_DUMMY_NONE") + }); + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linf) { + if (contype == LiteGraph.INPUT && slot == 0) { + let new_type = "VHS_DUMMY_NONE" + if (iscon && linf) { + new_type = app.graph.getNodeById(linf.origin_id).outputs[linf.origin_slot].type + } + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + } + this.changeOutputType(new_type) + } + }); +} + +function addDateFormatting(nodeType, field, timestamp_widget = false) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const widget = this.widgets.find((w) => w.name === field); + widget.serializeValue = () => { + return applyTextReplacements(app, widget.value); + }; + }); +} +function addTimestampWidget(nodeType, nodeData, targetWidget) { + const newWidgets = {}; + for (let key in nodeData.input.required) { + if (key == targetWidget) { + //TODO: account for duplicate entries? + newWidgets["timestamp_directory"] = ["BOOLEAN", {"default": true}] + } + newWidgets[key] = nodeData.input.required[key]; + } + nodeDta.input.required = newWidgets; + chainCallback(nodeType.prototype, "onNodeCreated", function () { + const directoryWidget = this.widgets.find((w) => w.name === "directory_name"); + const timestampWidget = this.widgets.find((w) => w.name === "timestamp_directory"); + directoryWidget.serializeValue = () => { + if (timestampWidget.value) { + //ignore actual value and return timestamp + return formatDate("yyyy-MM-ddThh:mm:ss", new Date()); + } + return directoryWidget.value + }; + timestampWidget._value = value; + Object.definteProperty(timestampWidget, "value", { + set : function(value) { + this._value = value; + directoryWidget.disabled = value; + }, + get : function() { + return this._value; + } + }); + }); +} +function initializeLoadFormat(nodeType, nodeData) { + if (!nodeData?.input?.optional?.format) { + return + } + chainCallback(nodeType.prototype, "onNodeCreated", function() { + let node = this + let formatWidget = this.widgets.find((w) => w.name === "format") + formatWidget.options.formats = nodeData.input.optional.format[1].formats + let base = {} + for (let widget of this.widgets) { + if (['force_rate', 'custom_width', 'custom_height', + 'frame_load_cap'].includes(widget.name)) { + //TODO: filter these options? + base[widget.name] = widget.options + } + } + chainCallback(formatWidget, "callback", function(value) { + let format = this.options.formats[value] + if (!format) { + return + } + if ('target_rate' in format) { + format.force_rate = {'reset': format.target_rate} + } + if ('dim' in format) { + format.custom_width = {'step': format.dim[0], 'mod': format.dim[1]} + format.custom_height = {'step': format.dim[0], 'mod': format.dim[1]} + if (format.dim[2]) { + format.custom_width.reset = format.dim[2] + } + if (format.dim[3]) { + format.custom_height.reset = format.dim[3] + } + } + if ('frames' in format) { + format.frame_load_cap = {'step': format.frames[0], 'mod': format.frames[1]} + } + for (let widget of node.widgets) { + if (widget.name in base) { + let wasDefault = widget.options?.reset == widget.value + widget.options = Object.assign({}, base[widget.name], format[widget.name]) + if (wasDefault && widget.options.reset != undefined) { + widget.value = widget.options.reset + } + widget.callback(widget.value) + } + } + + }); + let capWidget = this.widgets.find((w) => w.name === "frame_load_cap") + capWidget.annotation = (value, width) => { + let max_frames = this.video_query?.loaded?.frames + if (!max_frames || value && value < max_frames) { + return + } + let format = formatWidget.options.formats[formatWidget.value] + const div = format?.frames?.[0] ?? 1 + const mod = format?.frames?.[1] ?? 0 + let loadable_frames = max_frames + if ((max_frames % div) != mod) { + loadable_frames = ((max_frames - mod)/div|0) * div + mod + } + return loadable_frames + "\u21FD" + } + let rateWidget = this.widgets.find((w) => w.name === "force_rate") + rateWidget.annotation = (value, width) => { + if (value == 0 && this.video_query?.source?.fps != undefined) { + return roundToPrecision(this.video_query.source.fps, 2) + "\u21FD" + } + } + }); +} + +function addUploadWidget(nodeType, nodeData, widgetName, type="video") { + let accept = {'video': ["video/webm","video/mp4","video/x-matroska","image/gif"], + 'audio': ["audio/mpeg","audio/wav","audio/x-wav","audio/ogg"]} + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const node = this + const pathWidget = this.widgets.find((w) => w.name === widgetName); + const fileInput = document.createElement("input"); + chainCallback(this, "onRemoved", () => { + fileInput?.remove(); + }); + if (type == "folder") { + Object.assign(fileInput, { + type: "file", + style: "display: none", + webkitdirectory: true, + onchange: async () => { + const directory = fileInput.files[0].webkitRelativePath; + const i = directory.lastIndexOf('/'); + if (i <= 0) { + throw "No directory found"; + } + const path = directory.slice(0,directory.lastIndexOf('/')) + if (pathWidget.options.values.includes(path)) { + alert("A folder of the same name already exists"); + return; + } + let successes = 0; + const onProg = (p) => this.progress = (successes + p) / fileInput.files.length + for(const file of fileInput.files) { + if ((await uploadFile(file, onProg)).status == 200) { + successes++; + } else { + this.progress = undefined + //Upload failed, but some prior uploads may have succeeded + //Stop future uploads to prevent cascading failures + //and only add to list if an upload has succeeded + if (successes > 0) { + break + } else { + return; + } + } + } + this.progress = undefined + pathWidget.options.values.push(path); + pathWidget.value = path; + if (pathWidget.callback) { + pathWidget.callback(path) + } + }, + }); + } else { + let accept = {'video': ["video/webm","video/mp4","video/x-matroska","image/gif"], + 'audio': ["audio/mpeg","audio/wav","audio/x-wav","audio/ogg"]}[type] + async function doUpload(file) { + let resp = await uploadFile(file, (p) => node.progress = p) + node.progress = undefined + if (resp.status != 200) { + return false + } + const filename = JSON.parse(resp.responseText).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + if (pathWidget.callback) { + pathWidget.callback(filename) + } + return true + } + Object.assign(fileInput, { + type: "file", + accept: accept.join(','), + style: "display: none", + onchange: async () => { + if (fileInput.files.length) { + return await doUpload(fileInput.files[0]) + } + }, + }); + this.onDragOver = (e) => !!e?.dataTransfer?.types?.includes?.('Files') + this.onDragDrop = async function(e) { + if (!e?.dataTransfer?.types?.includes?.('Files')) { + return false + } + //TODO: Allow dragging multiple files at once? + const item = e.dataTransfer?.files?.[0] + if (accept.includes(item?.type)) { + return await doUpload(item) + } + return false + } + } + document.body.append(fileInput); + let uploadWidget = this.addWidget("button", "choose " + type + " to upload", "image", () => { + //clear the active click event + app.canvas.node_widget = null + + fileInput.click(); + }); + uploadWidget.options.serialize = false; + + + }); +} +function addAudioPreview(nodeType, isInput=true) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var element = document.createElement("audio"); + element.controls = true + const previewNode = this; + var previewWidget = this.addDOMWidget("audiopreview", "preview", element, { + serialize: false, + hideOnZoom: true, + getValue() { + return element.value; + }, + setValue(v) { + element.value = v; + }, + }); + previewWidget.computeSize = function(width) { + return [width, 50]; + } + var timeout = null; + this.updateParameters = (params, force_update) => { + if (!previewWidget.value.params) { + if(typeof(previewWidget.value) != 'object') { + previewWidget.value = {} + } + previewWidget.value.params = {} + } + Object.assign(previewWidget.value.params, params) + if (!force_update && + app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == 'Never') { + return; + } + if (timeout) { + clearTimeout(timeout); + } + if (force_update) { + previewWidget.updateSource(); + } else { + timeout = setTimeout(() => previewWidget.updateSource(),100); + } + }; + previewWidget.updateSource = function () { + if (this.value.params == undefined) { + return; + } + let params = {} + let advp = app.ui.settings.getSettingValue("VHS.AdvancedPreviews") + if (advp == 'Never') { + advp = false + } else if (advp == 'Input Only') { + advp = isInput + } else { + advp = true + } + Object.assign(params, this.value.params);//shallow copy + params.timestamp = Date.now() + if (!advp) { + element.src = api.apiURL('/view?' + new URLSearchParams(params)); + } else { + params.deadline = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsDeadline") + element.src = api.apiURL('/vhs/viewaudio?' + new URLSearchParams(params)); + } + } + previewWidget.callback = previewWidget.updateSource + + + //setup widget tracking + function update(key) { + return function(value) { + let params = {} + params[key] = this.value + previewNode?.updateParameters(params) + } + } + let widgetMap = { 'seek_seconds': 'start_time', 'duration': 'duration', + 'start_time': 'start_time' } + for (let widget of this.widgets) { + if (widget.name in widgetMap) { + if (typeof(widgetMap[widget.name]) == 'function') { + chainCallback(widget, "callback", widgetMap[widget.name]); + } else { + chainCallback(widget, "callback", update(widgetMap[widget.name])) + } + } + if (widget.type != "button") { + widget.callback?.(widget.value) + } + } + }); +} + +function addVideoPreview(nodeType, isInput=true) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var element = document.createElement("div"); + const previewNode = this; + var previewWidget = this.addDOMWidget("videopreview", "preview", element, { + serialize: false, + hideOnZoom: false, + getValue() { + return element.value; + }, + setValue(v) { + element.value = v; + }, + }); + allowDragFromWidget(previewWidget) + previewWidget.computeSize = function(width) { + if (this.aspectRatio && !this.parentEl.hidden) { + let height = (previewNode.size[0]-20)/ this.aspectRatio + 10; + if (!(height > 0)) { + height = 0; + } + this.computedHeight = height + 10; + return [width, height]; + } + return [width, -4];//no loaded src, widget should not display + } + element.addEventListener('contextmenu', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + element.addEventListener('pointerdown', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + element.addEventListener('mousewheel', (e) => { + e.preventDefault() + return app.canvas._mousewheel_callback(e) + }, true); + element.addEventListener('pointermove', (e) => { + e.preventDefault() + return app.canvas._mousemove_callback(e) + }, true); + element.addEventListener('pointerup', (e) => { + e.preventDefault() + return app.canvas._mouseup_callback(e) + }, true); + element.addEventListener('dragover', (e) => { + //A little hacky, but allows drag events onto the preview itself + e.preventDefault(); + e.dataTransfer.dropEffect = "copy"; + app.dragOverNode = this + }) + previewWidget.value = {hidden: false, paused: false, params: {}, + muted: app.ui.settings.getSettingValue("VHS.DefaultMute")} + previewWidget.parentEl = document.createElement("div"); + previewWidget.parentEl.className = "vhs_preview"; + previewWidget.parentEl.style['width'] = "100%" + element.appendChild(previewWidget.parentEl); + previewWidget.videoEl = document.createElement("video"); + previewWidget.videoEl.controls = false; + previewWidget.videoEl.loop = true; + previewWidget.videoEl.muted = true; + previewWidget.videoEl.style['width'] = "100%" + previewWidget.videoEl.addEventListener("loadedmetadata", () => { + + previewWidget.aspectRatio = previewWidget.videoEl.videoWidth / previewWidget.videoEl.videoHeight; + fitHeight(this); + }); + previewWidget.videoEl.addEventListener("error", () => { + //TODO: consider a way to properly notify the user why a preview isn't shown. + previewWidget.parentEl.hidden = true; + fitHeight(this); + }); + previewWidget.videoEl.onmouseenter = () => { + previewWidget.videoEl.muted = previewWidget.value.muted + }; + previewWidget.videoEl.onmouseleave = () => { + previewWidget.videoEl.muted = true; + }; + + previewWidget.imgEl = document.createElement("img"); + previewWidget.imgEl.style['width'] = "100%" + previewWidget.imgEl.hidden = true; + previewWidget.imgEl.onload = () => { + previewWidget.aspectRatio = previewWidget.imgEl.naturalWidth / previewWidget.imgEl.naturalHeight; + fitHeight(this); + }; + previewWidget.parentEl.appendChild(previewWidget.videoEl) + previewWidget.parentEl.appendChild(previewWidget.imgEl) + var timeout = null; + this.updateParameters = (params, force_update) => { + if (!previewWidget.value.params) { + if(typeof(previewWidget.value) != 'object') { + previewWidget.value = {hidden: false, paused: false} + } + previewWidget.value.params = {} + } + Object.assign(previewWidget.value.params, params) + if (!force_update && + app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == 'Never') { + return; + } + if (timeout) { + clearTimeout(timeout); + } + if (force_update) { + previewWidget.updateSource(); + } else { + timeout = setTimeout(() => previewWidget.updateSource(),100); + } + }; + previewWidget.updateSource = function () { + if (this.value.params == undefined) { + return; + } + let params = {} + let advp = app.ui.settings.getSettingValue("VHS.AdvancedPreviews") + if (advp == 'Never') { + advp = false + } else if (advp == 'Input Only') { + advp = isInput + } else { + advp = true + } + Object.assign(params, this.value.params);//shallow copy + params.timestamp = Date.now() + this.parentEl.hidden = this.value.hidden; + if (params.format?.split('/')[0] == 'video' + || advp && (params.format?.split('/')[1] == 'gif') + || params.format == 'folder') { + + this.videoEl.autoplay = !this.value.paused && !this.value.hidden; + if (!advp) { + this.videoEl.src = api.apiURL('/view?' + new URLSearchParams(params)); + } else { + let target_width = (previewNode.size[0]-20)*2 || 256; + let minWidth = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsMinWidth") + if (target_width < minWidth) { + target_width = minWidth + } + if (!params.custom_width || !params.custom_height) { + params.force_size = target_width+"x?" + } else { + let ar = params.custom_width/params.custom_height + params.force_size = target_width+"x"+(target_width/ar) + } + params.deadline = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsDeadline") + this.videoEl.src = api.apiURL('/vhs/viewvideo?' + new URLSearchParams(params)); + } + this.videoEl.hidden = false; + this.imgEl.hidden = true; + } else if (params.format?.split('/')[0] == 'image'){ + //Is animated image + this.imgEl.src = api.apiURL('/view?' + new URLSearchParams(params)); + this.videoEl.hidden = true; + this.imgEl.hidden = false; + } + delete previewNode.video_query + const doQuery = async () => { + if (!previewWidget?.value?.params?.filename) { + return + } + let qurl = api.apiURL('/vhs/queryvideo?' + new URLSearchParams(previewWidget.value.params)) + let query = undefined + try { + let query_res = await fetch(qurl) + query = await query_res.json() + } catch(e) { + return + } + previewNode.video_query = query + } + doQuery() + } + previewWidget.callback = previewWidget.updateSource + previewWidget.parentEl.appendChild(previewWidget.videoEl) + previewWidget.parentEl.appendChild(previewWidget.imgEl) + }); +} +let copiedPath = undefined +function addPreviewOptions(nodeType) { + chainCallback(nodeType.prototype, "getExtraMenuOptions", function(_, options) { + // The intended way of appending options is returning a list of extra options, + // but this isn't used in widgetInputs.js and would require + // less generalization of chainCallback + let optNew = [] + const previewWidget = this.widgets.find((w) => w.name === "videopreview"); + + let url = null + if (previewWidget.videoEl?.hidden == false && previewWidget.videoEl.src) { + if (['input', 'output', 'temp'].includes(previewWidget.value.params.type)) { + //Use full quality video + url = api.apiURL('/view?' + new URLSearchParams(previewWidget.value.params)); + //Workaround for 16bit png: Just do first frame + url = url.replace('%2503d', '001') + } + } else if (previewWidget.imgEl?.hidden == false && previewWidget.imgEl.src) { + url = previewWidget.imgEl.src; + url = new URL(url); + } + if (this.video_query?.source) { + let info_string = this.video_query.source.size.join('x') + + '@' + this.video_query.source.fps + 'fps ' + + this.video_query.source.frames + 'frames' + optNew.push({content: info_string, disabled: true}) + } + if (url) { + optNew.push( + { + content: "Open preview", + callback: () => { + window.open(url, "_blank") + }, + }, + { + content: "Save preview", + callback: () => { + const a = document.createElement("a"); + a.href = url; + a.setAttribute("download", previewWidget.value.params.filename); + document.body.append(a); + a.click(); + requestAnimationFrame(() => a.remove()); + }, + } + ); + if (previewWidget.value.params.fullpath) { + copiedPath = previewWidget.value.params.fullpath + const blob = new Blob([previewWidget.value.params.fullpath], + { type: 'text/plain'}) + optNew.push({ + content: "Copy output filepath", + callback: async () => { + await navigator.clipboard.write([ + new ClipboardItem({ + 'text/plain': blob + })])} + }); + } + if (previewWidget.value.params.workflow) { + let wParams = {...previewWidget.value.params, + filename: previewWidget.value.params.workflow} + let wUrl = api.apiURL('/view?' + new URLSearchParams(wParams)); + optNew.push({ + content: "Save workflow image", + callback: () => { + const a = document.createElement("a"); + a.href = wUrl; + a.setAttribute("download", previewWidget.value.params.workflow); + document.body.append(a); + a.click(); + requestAnimationFrame(() => a.remove()); + } + }); + } + } + const PauseDesc = (previewWidget.value.paused ? "Resume" : "Pause") + " preview"; + if(previewWidget.videoEl.hidden == false) { + optNew.push({content: PauseDesc, callback: () => { + //animated images can't be paused and are more likely to cause performance issues. + //changing src to a single keyframe is possible, + //For now, the option is disabled if an animated image is being displayed + if(previewWidget.value.paused) { + previewWidget.videoEl?.play(); + } else { + previewWidget.videoEl?.pause(); + } + previewWidget.value.paused = !previewWidget.value.paused; + }}); + } + //TODO: Consider hiding elements if no video preview is available yet. + //It would reduce confusion at the cost of functionality + //(if a video preview lags the computer, the user should be able to hide in advance) + const visDesc = (previewWidget.value.hidden ? "Show" : "Hide") + " preview"; + optNew.push({content: visDesc, callback: () => { + if (!previewWidget.videoEl.hidden && !previewWidget.value.hidden) { + previewWidget.videoEl.pause(); + } else if (previewWidget.value.hidden && !previewWidget.videoEl.hidden && !previewWidget.value.paused) { + previewWidget.videoEl.play(); + } + previewWidget.value.hidden = !previewWidget.value.hidden; + previewWidget.parentEl.hidden = previewWidget.value.hidden; + fitHeight(this); + + }}); + optNew.push({content: "Sync preview", callback: () => { + //TODO: address case where videos have varying length + //Consider a system of sync groups which are opt-in? + for (let p of document.getElementsByClassName("vhs_preview")) { + for (let child of p.children) { + if (child.tagName == "VIDEO") { + child.currentTime=0; + } else if (child.tagName == "IMG") { + child.src = child.src; + } + } + } + }}); + const muteDesc = (previewWidget.value.muted ? "Unmute" : "Mute") + " Preview" + optNew.push({content: muteDesc, callback: () => { + previewWidget.value.muted = !previewWidget.value.muted + }}) + if(options.length > 0 && options[0] != null && optNew.length > 0) { + optNew.push(null); + } + options.unshift(...optNew); + }); +} +function addFormatWidgets(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var formatWidget = null; + var formatWidgetIndex = -1; + for(let i = 0; i < this.widgets.length; i++) { + if (this.widgets[i].name === "format"){ + formatWidget = this.widgets[i]; + formatWidgetIndex = i+1; + break + } + } + let formatWidgetsCount = 0; + chainCallback(formatWidget, "callback", (value) => { + const formats = (LiteGraph.registered_node_types[this.type] + ?.nodeData?.input?.required?.format?.[1]?.formats) + let newWidgets = []; + if (formats?.[value]) { + let formatWidgets = formats[value] + for (let wDef of formatWidgets) { + let type = wDef[2]?.widgetType ?? wDef[1] + if (Array.isArray(type)) { + type = "COMBO" + } + app.widgets[type](this, wDef[0], wDef.slice(1), app) + let w = this.widgets.pop() + w.config = wDef.slice(1) + newWidgets.push(w) + } + } + let removed = this.widgets.splice(formatWidgetIndex, + formatWidgetsCount, ...newWidgets); + let newNames = new Set(newWidgets.map((w) => w.name)) + for (let w of removed) { + w?.onRemove?.() + if (w.name in newNames) { + continue + } + //I do not like the performance of this, but it's safe + let slot = this.inputs.findIndex((i) => i.name == w.name) + if (slot >= 0) { + this.removeInput(slot) + } + } + for (let w of newWidgets) { + let existingInput = this.inputs.find((i) => i.name == w.name) + if (existingInput) { + setWidgetConfig(existingInput, w.config) + //TODO: Consider forcing disconnection if props change? + } else { + //NOTE: config is applied in wrapped addInput call + this.addInput(w.name, w.config[0], {widget: {name: w.name}}) + } + } + fitHeight(this); + formatWidgetsCount = newWidgets.length; + }); + }); +} +function addLoadCommon(nodeType, nodeData) { + addVideoPreview(nodeType); + initializeLoadFormat(nodeType, nodeData) + addPreviewOptions(nodeType); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + //widget.callback adds unused arguements which need culling + const node = this + function update(key) { + return function(value) { + let params = {} + params[key] = this.value + node?.updateParameters(params) + } + } + let prior_ar = -2 + const widthWidget = this.widgets.find((w) => w.name === "custom_width"); + const heightWidget = this.widgets.find((w) => w.name === "custom_height"); + function updateAR(value) { + let new_ar = -1 + if (widthWidget.value & heightWidget.value) { + new_ar = widthWidget.value / heightWidget.value + } + if (new_ar != prior_ar) { + node?.updateParameters({'custom_width': widthWidget.value, + 'custom_height': heightWidget.value}) + prior_ar = new_ar + } + } + const offsetWidget = this.widgets.find((w) => w.name === "start_time"); + if (offsetWidget) { + Object.defineProperty(offsetWidget.options, "step", { + set : (value) => {}, + get : () => { + return 1 / (this.video_query?.loaded?.fps ?? 1) + } + }) + } + let widgetMap = {'frame_load_cap': 'frame_load_cap', + 'skip_first_frames': 'skip_first_frames', 'select_every_nth': 'select_every_nth', + 'start_time': 'start_time', 'force_rate': 'force_rate', + 'custom_width': updateAR, 'custom_height': updateAR, + 'image_load_cap': 'image_load_cap', 'skip_first_images': 'skip_first_images' + } + for (let widget of this.widgets) { + if (widget.name in widgetMap) { + if (typeof(widgetMap[widget.name]) == 'function') { + chainCallback(widget, "callback", widgetMap[widget.name]); + } else { + chainCallback(widget, "callback", update(widgetMap[widget.name])) + } + } + if (widget.type != "button") { + widget.callback?.(widget.value) + } + } + }); +} + +function path_stem(path) { + let i = path.lastIndexOf("/"); + if (i >= 0) { + return [path.slice(0,i+1),path.slice(i+1)]; + } + return ["",path]; +} +function searchBox(event, [x,y], node) { + //Ensure only one dialogue shows at a time + if (this.prompt) + return; + this.prompt = true; + + let pathWidget = this; + let dialog = document.createElement("div"); + dialog.className = "litegraph litesearchbox graphdialog rounded" + dialog.innerHTML = 'Path
' + dialog.close = () => { + dialog.remove(); + } + document.body.append(dialog); + if (app.canvas.ds.scale > 1) { + dialog.style.transform = "scale(" + app.canvas.ds.scale + ")"; + } + var name_element = dialog.querySelector(".name"); + var input = dialog.querySelector(".value"); + var options_element = dialog.querySelector(".helper"); + input.value = pathWidget.value; + + var timeout = null; + let last_path = null; + let extensions = pathWidget.options.vhs_path_extensions + + input.addEventListener("keydown", (e) => { + dialog.is_modified = true; + if (e.keyCode == 27) { + //ESC + dialog.close(); + } else if (e.keyCode == 13 && e.target.localName != "textarea") { + pathWidget.value = input.value; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + dialog.close(); + } else { + if (e.keyCode == 9) { + //TAB + input.value = last_path + options_element.firstChild.innerText; + e.preventDefault(); + e.stopPropagation(); + } else if (e.ctrlKey && (e.keyCode == 87 || e.keyCode == 66)) { + //Ctrl+w or Ctrl+b + //most browsers won't support, but it's good QOL for those that do + input.value = path_stem(input.value.slice(0,-1))[0] + e.preventDefault(); + e.stopPropagation(); + } else if (e.ctrlKey && e.keyCode == 71) { + //Ctrl+g + //Temporarily disables extension filtering to show all files + e.preventDefault(); + e.stopPropagation(); + extensions = undefined + last_path = null; + } + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(updateOptions, 10); + return; + } + this.prompt=false; + e.preventDefault(); + e.stopPropagation(); + }); + + var button = dialog.querySelector("button"); + button.addEventListener("click", (e) => { + pathWidget.value = input.value; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + //unsure why dirty is set here, but not on enter-key above + node.graph.setDirtyCanvas(true); + dialog.close(); + this.prompt = false; + }); + var rect = app.canvas.canvas.getBoundingClientRect(); + var offsetx = -20; + var offsety = -20; + if (rect) { + offsetx -= rect.left; + offsety -= rect.top; + } + + if (event) { + dialog.style.left = event.clientX + offsetx + "px"; + dialog.style.top = event.clientY + offsety + "px"; + } else { + dialog.style.left = canvas.width * 0.5 + offsetx + "px"; + dialog.style.top = canvas.height * 0.5 + offsety + "px"; + } + //Search code + let options = [] + function addResult(name, isDir) { + let el = document.createElement("div"); + el.innerText = name; + el.className = "litegraph lite-search-item"; + if (isDir) { + el.className += " is-dir"; + el.addEventListener("click", (e) => { + input.value = last_path+name + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(updateOptions, 10); + }); + } else { + el.addEventListener("click", (e) => { + pathWidget.value = last_path+name; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + dialog.close(); + pathWidget.prompt = false; + }); + } + options_element.appendChild(el); + } + async function updateOptions() { + timeout = null; + let [path, remainder] = path_stem(input.value); + if (last_path != path) { + //fetch options. Must block execution here, so update should be async? + let params = {path : path} + if (extensions) { + params.extensions = extensions + } + let optionsURL = api.apiURL('/vhs/getpath?' + new URLSearchParams(params)); + try { + let resp = await fetch(optionsURL); + options = await resp.json(); + options = options.map((o) => o.replace('.','\0')) + options = options.sort() + options = options.map((o) => o.replace('\0','.')) + } catch(e) { + options = [] + } + last_path = path; + } + options_element.innerHTML = ''; + //filter options based on remainder + for (let option of options) { + if (option.startsWith(remainder)) { + let isDir = option.endsWith('/') + addResult(option, isDir); + } + } + } + + setTimeout(async function() { + input.focus(); + await updateOptions(); + }, 10); + + return dialog; +} +function button_action(widget) { + if ( + widget.options?.reset == undefined && + widget.options?.disable == undefined + ) { + return 'None' + } + if ( + widget.options.reset != undefined && + widget.value != widget.options.reset + ) { + return 'Reset' + } + if ( + widget.options.disable != undefined && + widget.value != widget.options.disable + ) { + return 'Disable' + } + if (widget.options.reset != undefined) { + return 'No Reset' + } + return 'No Disable' +} +function fitText(ctx, text, maxLength) { + if (maxLength <= 0) { + return ['', 0] + } + let fullLength = ctx.measureText(text).width + if (fullLength < maxLength) { + return [text, fullLength] + } + //determine approx safe cutoff + let cutoff = maxLength / fullLength * text.length | 0 + let shortened = text.slice(0, Math.max(0, cutoff - 2)) + '…' + return [shortened, ctx.measureText(shortened).width] +} +function fitPath(ctx, path, maxLength) { + let fullLength = ctx.measureText(path).width + if (fullLength < maxLength) { + return [path, fullLength] + } + //determine approx safe cutoff + let len = (maxLength / fullLength * path.length | 0) - 1 + + let displayPath = '' + let filename = path_stem(path)[1] + if (filename.length > len-2) { + //may all fit, but can't squeeze more info + displayPath = filename.substr(0,len); + } else { + //TODO: find solution for windows, path[1] == ':'? + let isAbs = path[0] == '/'; + let partial = path.substr(path.length - (isAbs ? len-2:len-1)) + let cutoff = partial.indexOf('/'); + if (cutoff < 0) { + //Can occur, but there isn't a nicer way to format + displayPath = path.substr(path.length-len); + } else { + displayPath = (isAbs ? '/…':'…') + partial.substr(cutoff); + } + } + return [displayPath, ctx.measureText(displayPath).width] +} +function roundToPrecision(num, precision) { + let strnum = Number(num).toFixed(precision) + let deci = strnum.indexOf('.') + if (deci > 0) { + let i = strnum.length - 1 + while (i > deci && strnum[i] == '0') { + i-- + } + if (i == deci) { + i-- + } + return strnum.slice(0, i+1) + } + return strnum +} +function inner_value_change(widget, value, node, pos) { + widget.value = value + if (widget.options?.property && widget.options.property in node.properties) { + node.setProperty(widget.options.property, value) + } + if (widget.callback) { + widget.callback(widget.value, app.canvas, node, event) + } +} +function drawAnnotated(ctx, node, widget_width, y, H) { + const litegraph_base = LiteGraph + const show_text = app.canvas.ds.scale >= (app.canvas.low_quality_zoom_threshold ?? 0.5) + const margin = 15 + ctx.strokeStyle = litegraph_base.WIDGET_OUTLINE_COLOR + ctx.fillStyle = litegraph_base.WIDGET_BGCOLOR + ctx.beginPath() + if (show_text) + ctx.roundRect(margin, y, widget_width - margin * 2, H, [H * 0.5]) + else ctx.rect(margin, y, widget_width - margin * 2, H) + ctx.fill() + if (show_text) { + if (!this.disabled) ctx.stroke() + const button = button_action(this) + if (button != 'None') { + ctx.save() + if (button.startsWith('No ')) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + ctx.strokeStyle = litegraph_base.WIDGET_OUTLINE_COLOR + } else { + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + ctx.strokeStyle = litegraph_base.WIDGET_TEXT_COLOR + } + ctx.beginPath() + if (button.endsWith('Reset')) { + ctx.arc(widget_width - margin - 26, y + H/2, 4, Math.PI*3/2, Math.PI) + ctx.stroke() + ctx.beginPath() + ctx.moveTo(widget_width - margin - 26, y + H/2 - 1.5) + ctx.lineTo(widget_width - margin - 26, y + H/2 - 6.5) + ctx.lineTo(widget_width - margin - 30, y + H/2 - 3.5) + ctx.fill() + } else { + ctx.arc(widget_width - margin - 26, y + H/2, 4, Math.PI*2/3, Math.PI*8/3) + ctx.moveTo(widget_width - margin - 26 - 8 ** .5, y + H/2 + 8 ** .5) + ctx.lineTo(widget_width - margin - 26 + 8 ** .5, y + H/2 - 8 ** .5) + ctx.stroke() + } + ctx.restore() + } + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + if (!this.disabled) { + ctx.beginPath() + ctx.moveTo(margin + 16, y + 5) + ctx.lineTo(margin + 6, y + H * 0.5) + ctx.lineTo(margin + 16, y + H - 5) + ctx.fill() + ctx.beginPath() + ctx.moveTo(widget_width - margin - 16, y + 5) + ctx.lineTo(widget_width - margin - 6, y + H * 0.5) + ctx.lineTo(widget_width - margin - 16, y + H - 5) + ctx.fill() + } + let freeWidth = widget_width - (40 + margin * 2 + 20) + let [valueText, valueWidth] = fitText(ctx, (this.displayValue?.() ?? ""), freeWidth) + freeWidth -= valueWidth + + ctx.textAlign = 'left' + ctx.fillStyle = litegraph_base.WIDGET_SECONDARY_TEXT_COLOR + if (freeWidth > 20) { + let [name, nameWidth] = fitText(ctx, this.label || this.name, freeWidth) + freeWidth -= nameWidth + ctx.fillText(name, margin * 2 + 5, y + H * 0.7) + } + + let value_offset = margin * 2 + 20 + ctx.textAlign = 'right' + if (this.options.unit) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + let [unitText, unitWidth] = fitText(ctx, this.options.unit, freeWidth) + if (unitText == this.options.unit) { + ctx.fillText(this.options.unit, widget_width - value_offset, y + H * 0.7) + value_offset += unitWidth + freeWidth -= unitWidth + } + } + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + ctx.fillText(valueText, widget_width - value_offset, y + H * 0.7) + ctx.fillStyle = litegraph_base.WIDGET_SECONDARY_TEXT_COLOR + + + let annotation = '' + if (this.annotation) { + annotation = this.annotation(this.value, freeWidth) + } else if ( + this.options.annotation && + this.value in this.options.annotation + ) { + annotation = this.options.annotation[this.value] + } + if (annotation) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + let [annoDisplay, annoWidth] = fitText(ctx, annotation, freeWidth) + ctx.fillText( + annoDisplay, + widget_width - 5 - valueWidth - value_offset, + y + H * 0.7 + ) + } + } +} +function mouseAnnotated(event, [x, y], node) { + //NOTE: Mouse actions contain no history element. + //This can cause overlapping actions since each triggers on different event type (down/move/up) + //TODO: Consider further rework + const widget_width = this.width || node.size[0] + const old_value = this.value + const margin = 15 + let isButton = 0 + if (x > margin + 6 && x < margin + 16) { + isButton = -1 + } else if (x > widget_width - margin - 16 & x < widget_width - margin - 6) { + isButton = 1 + } else if (x > widget_width - margin - 34 && x < widget_width - margin - 18) { + isButton = 2 + } + var allow_scroll = true + if (allow_scroll && event.type == 'pointermove') { + if (event.deltaX) + this.value += event.deltaX * (this.options.step || 1) + if (this.options.min != null && this.value < this.options.min) { + this.value = this.options.min + } + if (this.options.max != null && this.value > this.options.max) { + this.value = this.options.max + } + } else if (event.type == 'pointerdown') { + const buttonType = button_action(this) + if (isButton == 2) { + if (buttonType == 'Reset') { + this.value = this.options.reset + } else if (buttonType == 'Disable') { + this.value = this.options.disable + } + } else { + this.value += isButton * (this.options.step || 1) + if (this.options.min != null && this.value < this.options.min) { + this.value = this.options.min + } + if (this.options.max != null && this.value > this.options.max) { + this.value = this.options.max + } + } + } //end mousedown + else if (event.type == 'pointerup') { + if (event.click_time < 200 && !isButton) { + const d_callback = (v) => { + this.value = this.parseValue?.(v) ?? Number(v) + inner_value_change(this, this.value, node, [x, y]) + } + const dialog = app.canvas.prompt( + 'Value', + this.value,//TODO: Consider making this displayValue? + d_callback, + event + ) + const input = dialog.querySelector(".value") + input.addEventListener("keydown", (e) => { + if (e.keyCode == 9) { + e.preventDefault(); + e.stopPropagation(); + d_callback(input.value) + dialog.close() + node?.graph?.setDirtyCanvas(true); + let i = node.widgets.findIndex((w) => w == this) + if (e.shiftKey) + i-- + else + i++ + if (node.widgets[i]?.type == "VHS.ANNOTATED") {//restrict to annotatedNUmbers + node.widgets[i]?.mouse(event, [x, y+24], node) + } + } + }) + } + } + + if (old_value != this.value) + setTimeout( + function () { + inner_value_change(this, this.value, node, [x, y]) + }.bind(this), + 20 + ) + return true +} +let latentPreviewNodes = new Set() +app.registerExtension({ + name: "VideoHelperSuite.Core", + settings: [ + { + id: 'VHS.AdvancedPreviews', + category: ['🎥🅥🅗🅢', 'Previews', 'Advanced Previews'], + name: 'Advanced Previews', + tooltip: 'Automatically transcode previews on request. Required for advanced functionality', + type: 'combo', + options: ['Never', 'Always', 'Input Only'], + defaultValue: 'Input Only', + }, + { + id: 'VHS.AdvancedPreviewsMinWidth', + category: ['🎥🅥🅗🅢', 'Previews', 'Min Width'], + name: 'Minimum preview width', + tooltip: 'Advanced previews have their resolution downscaled to the node size for performance. While a node can be resized to increase preview quality, a minimum width can be set that previews won\'t be downscaled beneath. Preveiws will never be upscaled, so this can safely be set large.', + type: 'number', + attrs: { + min: 0, + step: 1, + max: 3840, + }, + defaultValue: 0, + }, + { + id: 'VHS.AdvancedPreviewsDeadline', + category: ['🎥🅥🅗🅢', 'Previews', 'Deadline'], + name: 'Deadline', + tooltip: 'Determines how much time can be spent when encoding advanced previews. Realtime results in reduced quality, but good will likely cause the preview to stutter as initial generation occurs', + type: 'combo', + options: ['realtime', 'good'], + defaultValue: 'realtime', + }, + { + id: 'VHS.AdvancedPreviewsDefaultMute', + category: ['🎥🅥🅗🅢', 'Previews', 'Default Mute'], + name: 'Mute videos by default', + type: 'boolean', + defaultValue: false, + }, + { + id: 'VHS.LatentPreview', + category: ['🎥🅥🅗🅢', 'Sampling', 'Latent Previews'], + name: 'Display animated previews when sampling', + type: 'boolean', + defaultValue: false, + onChange(value) { + if (!value) { + //Remove any previewWidgets + for (let id of latentPreviewNodes) { + let n = app.graph.getNodeById(id) + let i = n?.widgets?.findIndex((w) => w.name == 'vhslatentpreview') + if (i >= 0) { + n.widgets.splice(i,1)[0].onRemove() + } + } + latentPreviewNodes = new Set() + } + }, + }, + { + id: "VHS.LatentPreviewRate", + category: ['🎥🅥🅗🅢', 'Sampling', 'Latent Preview Rate'], + name: "Playback rate override.", + type: 'number', + attrs: { + min: 0, + step: 1, + max: 60 + }, + tooltip: + 'Force a specific frame rate for the playback of latent frames. This should not be confused with the output frame rate and will not match for video models.', + defaultValue: 0, + }, + { + id: 'VHS.MetadataImage', + category: ['🎥🅥🅗🅢', 'Output', 'MetadataImage'], + name: 'Save png of first frame for metadata', + type: 'boolean', + defaultValue: true, + }, + { + id: 'VHS.KeepIntermediate', + category: ['🎥🅥🅗🅢', 'Output', 'Keep Intermediate'], + name: 'Keep required intermediate files after sucessful execution', + type: 'boolean', + defaultValue: true, + }, + ], + + async beforeRegisterNodeDef(nodeType, nodeData, app) { + if(nodeData?.name?.startsWith("VHS_")) { + useKVState(nodeType); + if (nodeData.description) { + let description = nodeData.description + let el = document.createElement("div") + el.innerHTML = description + if (!el.children.length) { + //Is plaintext. Do minor convenience formatting + let chunks = description.split('\n') + nodeData.description = chunks[0] + description = chunks.join('
') + } else { + nodeData.description = el.querySelector('#VHS_shortdesc')?.innerHTML || el.children[1]?.firstChild?.innerHTML + } + chainCallback(nodeType.prototype, "onNodeCreated", function () { + helpDOM.addHelp(this, nodeType, description) + this.setSize(this.computeSize()) + }) + } + //set widgetType to use VHS widgets where possible + for(let inp of Object.values({...nodeData.input?.required, ...nodeData.input?.optional})) { + if (["INT", "FLOAT"].includes(inp[0])) { + if (!inp[1]) { + inp[1] = {} + } + inp[1].widgetType ??= "VHS" + inp[0] + } + } + chainCallback(nodeType.prototype, "onNodeCreated", function () { + let new_widgets = [] + if (this.widgets) { + for (let w of this.widgets) { + let input = this.constructor.nodeData.input + let config = input?.required[w.name] ?? input.optional[w.name] + if (!config) { + continue + } + if (w?.type == "text" && config[1].vhs_path_extensions) { + new_widgets.push(app.widgets.VHSPATH({}, w.name, ["VHSPATH", config[1]])); + } else { + new_widgets.push(w) + } + } + this.widgets = new_widgets; + } + const originalAddInput = this.addInput; + this.addInput = function(name, type, options) { + if (options.widget) { + //Is Converted Widget + const widget = this.widgets.find((w) => w.name == name) + if (widget?.config) { + //Has override for type + type = widget.config[0] + if (type == 'FLOAT') { + type = "FLOAT,INT" + } + setWidgetConfig(options, widget.config) + } + } + return originalAddInput.apply(this, [name, type, options]) + } + }); + } + if (nodeData?.name == "VHS_LoadImages") { + addUploadWidget(nodeType, nodeData, "directory", "folder"); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "directory"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let params = {filename : value, type : "input", format: "folder"}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadImagesPath") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "directory"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let params = {filename : value, type : "path", format: "folder"}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadVideo" || nodeData?.name == "VHS_LoadVideoFFmpeg") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "video"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let parts = ["input", value]; + let extension_index = parts[1].lastIndexOf("."); + let extension = parts[1].slice(extension_index+1); + let format = "video" + if (["gif", "webp", "avif"].includes(extension)) { + format = "image" + } + format += "/" + extension; + let params = {filename : parts[1], type : parts[0], format: format}; + this.updateParameters(params, true); + }); + }); + addUploadWidget(nodeType, nodeData, "video"); + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadAudio") { + addAudioPreview(nodeType) + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "audio_file"); + chainCallback(pathWidget, "callback", (filename) => { + this.updateParameters({filename, type: 'path'}, true); + }); + }); + } else if (nodeData?.name == "VHS_LoadAudioUpload") { + addUploadWidget(nodeType, nodeData, "audio", "audio"); + addAudioPreview(nodeType) + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "audio"); + chainCallback(pathWidget, "callback", (filename) => { + if (!filename) return + let params = {filename, type : "input"}; + this.updateParameters(params, true); + }); + }); + } else if (nodeData?.name == "VHS_LoadVideoPath" || nodeData?.name == "VHS_LoadVideoFFmpegPath") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "video"); + chainCallback(pathWidget, "callback", (value) => { + let extension_index = value.lastIndexOf("."); + let extension = value.slice(extension_index+1); + let format = "video" + if (["gif", "webp", "avif"].includes(extension)) { + format = "image" + } + format += "/" + extension; + let params = {filename : value, type: "path", format: format}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadImagePath") { + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "image"); + chainCallback(pathWidget, "callback", (value) => { + let extension_index = value.lastIndexOf("."); + let extension = value.slice(extension_index+1); + let format = "video" + "/" + extension; + let params = {filename : value, type: "path", format: format}; + this.updateParameters(params, true); + }); + }); + } else if (nodeData?.name == "VHS_VideoCombine") { + addDateFormatting(nodeType, "filename_prefix"); + chainCallback(nodeType.prototype, "onExecuted", function(message) { + if (message?.gifs) { + this.updateParameters(message.gifs[0], true); + } + }); + addVideoPreview(nodeType, false); + addPreviewOptions(nodeType); + addFormatWidgets(nodeType, nodeData); + addVAEInputToggle(nodeType, nodeData) + } else if (nodeData?.name == "VHS_SaveImageSequence") { + //Disabled for safety as VHS_SaveImageSequence is not currently merged + //addDateFormating(nodeType, "directory_name", timestamp_widget=true); + //addTimestampWidget(nodeType, nodeData, "directory_name") + } else if (nodeData?.name == "VHS_BatchManager") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.widgets.push({name: "count", type: "dummy", value: 0, + computeSize: () => {return [0,-4]}, + afterQueued: function() {this.value++;}}); + }); + } else if (nodeData?.name == "VHS_Unbatch") { + cloneType(nodeType, nodeData) + } else if (nodeData?.name == "VHS_SelectLatest") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.isVirtualNode = true + chainCallback(this, "onConnectionsChange", function (contype, slot, iscon, linfo) { + if (iscon) { + this.update_links() + } + }) + + this.update_links = function(extraLinks = []) { + if (!this.outputs[0].links?.length) return + + function get_links(node) { + let links = [] + for (const l of node.outputs[0].links) { + const linkInfo = this.graph.links[l] + const n = node.graph.getNodeById(linkInfo.target_id) + if (n.type == 'Reroute') { + links = links.concat(get_links(n)) + } else { + links.push(l) + } + } + return links + } + + let links = [ + ...get_links(this).map((l) => this.graph.links[l]), + ...extraLinks + ] + let v = this.latest_file + if (!v) { + return + } + + // 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] + const widgetName = input.widget.name + const widget = node.widgets.find((w) => w.name === widgetName) + if (widget) { + widget.value = v + if (widget.callback) { + widget.callback( widget.value, app.canvas, + node, app.canvas.graph_mouse, {}) + } + } + } + } + let fetch_files = async () => { + let [path, remainder] = path_stem(this.widgets[0].value) + let params = {path : path} + let optionsURL = api.apiURL('/vhs/getpath?' + new URLSearchParams(params)); + let options + try { + let resp = await fetch(optionsURL); + options = await resp.json(); + } catch(e) { + options = [] + } + options = options.filter((file) => file.startsWith(remainder) && file.endsWith(this.widgets[1].value)) + if (options.length && this.latest_file != options[options.length-1]) { + this.latest_file = path + options[options.length-1] + this.update_links() + } + } + this.widgets[0].callback = fetch_files + this.widgets[1].callback = fetch_files + this.onPromptExecuted = fetch_files + this.applyToGraph = this.update_links + }) + } + }, + async getCustomWidgets() { + return { + VHSPATH(node, inputName, inputData) { + let w = { + name : inputName, + type : "VHS.PATH", + value : "", + draw : function(ctx, node, widget_width, y, H) { + //Adapted from litegraph.core.js:drawNodeWidgets + var show_text = app.canvas.ds.scale >= (app.canvas.low_quality_zoom_threshold ?? 0.5) + var margin = 15; + var text_color = LiteGraph.WIDGET_TEXT_COLOR; + var secondary_text_color = LiteGraph.WIDGET_SECONDARY_TEXT_COLOR; + ctx.textAlign = "left"; + ctx.strokeStyle = LiteGraph.WIDGET_OUTLINE_COLOR; + ctx.fillStyle = LiteGraph.WIDGET_BGCOLOR; + ctx.beginPath(); + if (show_text) + ctx.roundRect(margin, y, widget_width - margin * 2, H, [H * 0.5]); + else + ctx.rect( margin, y, widget_width - margin * 2, H ); + ctx.fill(); + if (show_text) { + if(!this.disabled) + ctx.stroke(); + ctx.save(); + ctx.beginPath(); + ctx.rect(margin, y, widget_width - margin * 2, H); + ctx.clip(); + + //ctx.stroke(); + let freeWidth = widget_width - (margin * 2 + 40) + ctx.fillStyle = secondary_text_color; + const label = this.label || this.name; + if (label != null) { + let [labelDisplay, labelWidth] = fitText(ctx, label, freeWidth) + freeWidth -= labelWidth + ctx.fillText(labelDisplay, margin * 2, y + H * 0.7); + } + ctx.fillStyle = this.value ? text_color : '#777'; + ctx.textAlign = "right"; + let disp_text = fitPath(ctx, String(this.value || this.options.placeholder), freeWidth)[0] + ctx.fillText(disp_text, widget_width - margin * 2, y + H * 0.7); + ctx.restore(); + } + }, + mouse : searchBox, + options : {}, + }; + if (inputData.length > 1) { + w.options = inputData[1] + if (inputData[1].default) { + w.value = inputData[1].default; + } + } + + if (!node.widgets) { + node.widgets = []; + } + node.widgets.push(w); + return w; + }, + VHSFLOAT(node, inputName, inputData) { + let w = { + name: inputName, + type: "VHS.ANNOTATED", + value: inputData[1]?.default ?? 0, + draw: drawAnnotated, + mouse: mouseAnnotated, + computeSize(width) { + return [width, 20] + }, + callback(v) { + if (this.options.round) { + //TODO adopt ComfyUI_frontend#4291? + v = Math.round((v + Number.EPSILON) / + this.options.round) * this.options.round + } + if (this.options.max && v > this.options.max) { + v = this.options.max + } + if (this.options.min && v < this.options.max) { + v = this.options.min + } + this.value = v + }, + config: inputData, + displayValue: function() { + return roundToPrecision(this.value, this.options.precision ?? 3) + }, + options: Object.assign({}, inputData[1]) + } + if (!node.widgets) { + node.widgets = [] + } + node.widgets.push(w) + return w + }, + VHSINT(node, inputName, inputData) { + let w = { + name: inputName, + type: "VHS.ANNOTATED", + value: inputData[1]?.default ?? 0, + draw: drawAnnotated, + mouse: mouseAnnotated, + computeSize(width) { + return [width, 20] + }, + callback(v) { + if (this.options.max && v > this.options.max) { + v = this.options.max + } + if (this.options.min && v < this.options.min) { + v = this.options.min + } + if (v == 0) { + return + } + const s = this.options.step + let sh = this.options.mod ?? 0 + this.value = Math.round((v - sh) / s) * s + sh + }, + config: inputData, + displayValue: function() { + return this.value | 0 + }, + options: Object.assign({}, inputData[1]) + } + if (!node.widgets) { + node.widgets = [] + } + node.widgets.push(w) + return w + }, + VHSTIMESTAMP(node, inputName, inputData) { + let w = { + name: inputName, + type: "VHS.TIMESTAMP", + value: inputData[1]?.default ?? 0, + draw: drawAnnotated, + mouse: mouseAnnotated, + computeSize(width) { + return [width, 20] + }, + parseValue(v) { + if (typeof(v) == "string") { + let val = 0 + for (let chunk of v.split(":")) { + val = val * 60 + parseFloat(chunk) + } + return val + } + }, + callback(v) {}, + config: inputData, + options: Object.assign({}, inputData[1]), + displayValue() { + let seconds = this.value + let hours = seconds / 3600 | 0 + seconds -= 3600 * hours + let minutes = seconds / 60 | 0 + seconds -= 60 * minutes + let display = "" + if (hours > 0) { + display += hours + ":" + } + if (hours > 0 || minutes > 0) { + if (hours > 0) { + minutes = (''+minutes).padStart(2,'0') + } + display += minutes + ":" + } + seconds = roundToPrecision(seconds, 4) + if ((seconds[1] == '.' || seconds.length == 1) && (minutes > 0 || hours > 0)) { + seconds = '0'+seconds + } + display += seconds + return display + } + } + if (!node.widgets) { + node.widgets = [] + } + node.widgets.push(w) + return w + }, + } + }, + async loadedGraphNode(node) { + //Check and migrate inputs named batch_manager from old workflows + if (node.type?.startsWith("VHS_") && node.inputs) { + const batchInput = node.inputs.find((i) => i.name == "batch_manager") + if (batchInput) { + batchInput.name = "meta_batch" + } + } + }, + async beforeConfigureGraph(graphData, missingNodeTypes) { + if(helpDOM?.node) { + helpDOM.node = undefined + } + }, + async setup() { + let originalGraphToPrompt = app.graphToPrompt + let graphToPrompt = async function() { + let res = await originalGraphToPrompt.apply(this, arguments); + res.workflow.extra['VHS_latentpreview'] = app.ui.settings.getSettingValue("VHS.LatentPreview") + res.workflow.extra['VHS_latentpreviewrate'] = app.ui.settings.getSettingValue("VHS.LatentPreviewRate") + res.workflow.extra['VHS_MetadataImage'] = app.ui.settings.getSettingValue("VHS.MetadataImage") + res.workflow.extra['VHS_KeepIntermediate'] = app.ui.settings.getSettingValue("VHS.KeepIntermediate") + return res + } + app.graphToPrompt = graphToPrompt + //Add a handler for pasting video data + document.addEventListener('paste', async (e) => { + if (!e.target.classList.contains('litegraph') && + !e.target.classList.contains('graph-canvas-container')) { + return + } + let data = e.clipboardData || window.clipboardData + let filepath = data.getData('text/plain') + let video + for (const item of data.items) { + if (item.type.startsWith('video/')) { + video = item + break + } + } + if (filepath && copiedPath == filepath) { + //Add a Load Video (Path) and populate filepath + const pastedNode = LiteGraph.createNode('VHS_LoadVideoPath') + app.canvas.graph.add(pastedNode) + pastedNode.pos[0] = app.canvas.graph_mouse[0] + pastedNode.pos[1] = app.canvas.graph_mouse[1] + pastedNode.widgets[0].value = filepath + pastedNode.widgets[0].callback?.(filepath) + } else if (video && false) { + //Disabled due to lack of testing + //Add a Load Video (Upload), then upload the file, then select the file + const pastedNode = LiteGraph.createNode('VHS_LoadVideo') + app.canvas.graph.add(pastedNode) + pastedNode.pos[0] = app.canvas.graph_mouse[0] + pastedNode.pos[1] = app.canvas.graph_mouse[1] + const pathWidget = pastedNode.widgets[0] + //TODO: upload to pasted dir? + const blob = video.getAsFile() + const resp = await uploadFile(blob) + if (resp.status != 200) { + //upload failed and file can not be added to options + return; + } + const filename = (await resp.json()).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + pathWidget.callback?.(filename) + } else { + return + } + e.preventDefault() + e.stopImmediatePropagation() + return false + }, true) + }, + async init() { + if (app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == true) { + app.ui.settings.setSettingValue("VHS.AdvancedPreviews", 'Always') + } + if (app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == false) { + app.ui.settings.setSettingValue("VHS.AdvancedPreviews", 'Never') + } + if (app.VHSHelp != helpDOM) { + helpDOM = app.VHSHelp + } else { + initHelpDOM() + } + let e = app.extensions.filter((w) => w.name == 'UVR5.AudioPreviewer') + if (e.length) { + let orig = e[0].beforeRegisterNodeDef + e[0].beforeRegisterNodeDef = function(nodeType, nodeData, app) { + if(!nodeData?.name?.startsWith("VHS_")) { + return orig.apply(this, arguments); + } + } + } + }, +}); +let previewImages = [] +api.addEventListener('executing', ({ detail }) => { + if (detail === null) { + for (let graph of [app.graph, ...app.graph.subgraphs.values()]) { + for (let node of graph._nodes) { + if (node.type.startsWith("VHS_")) { + node.onPromptExecuted?.() + } + } + } + } +}) +function getLatentPreviewCtx(id, width, height) { + const node = getNodeById(id) + if (!node) { + return undefined + } + + let previewWidget = node.widgets.find((w) => w.name == "vhslatentpreview") + if (!previewWidget) { + let canvasEl = document.createElement("canvas") + previewWidget = node.addDOMWidget("vhslatentpreview", "vhscanvas", canvasEl, { + serialize: false, + hideOnZoom: false, + }); + previewWidget.serialize = false + allowDragFromWidget(previewWidget) + canvasEl.addEventListener('contextmenu', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + canvasEl.addEventListener('pointerdown', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + canvasEl.addEventListener('mousewheel', (e) => { + e.preventDefault() + return app.canvas._mousewheel_callback(e) + }, true); + canvasEl.addEventListener('pointermove', (e) => { + e.preventDefault() + return app.canvas._mousemove_callback(e) + }, true); + canvasEl.addEventListener('pointerup', (e) => { + e.preventDefault() + return app.canvas._mouseup_callback(e) + }, true); + + previewWidget.computeSize = function(width) { + if (this.aspectRatio) { + let height = (node.size[0]-20)/ this.aspectRatio + 10; + if (!(height > 0)) { + height = 0; + } + this.computedHeight = height + 10; + return [width, height]; + } + return [width, -4];//no loaded src, widget should not display + } + } + let canvasEl = previewWidget.element + if (!previewWidget.ctx || canvasEl.width != width + || canvasEl.height != height) { + previewWidget.aspectRatio = width / height + canvasEl.width = width + canvasEl.height = height + fitHeight(node) + } + return canvasEl.getContext("2d") +} +let animateIntervals = {} +function beginLatentPreview(id, previewImages, rate) { + latentPreviewNodes.add(id) + if (animateIntervals[id]) { + clearTimeout(animateIntervals[id]) + } + let displayIndex = 0 + let node = getNodeById(id) + //While progress is safely cleared on execution completion. + //Initial progress must be started here to avoid a race condition + node.progress = 0 + animateIntervals[id] = setInterval(() => { + if (getNodeById(id)?.progress == undefined + || app.canvas.graph.rootGraph != node.graph.rootGraph) { + clearTimeout(animateIntervals[id]) + delete animateIntervals[id] + return + } + if (!previewImages[displayIndex]) { + return + } + getLatentPreviewCtx(id, previewImages[displayIndex].width, + previewImages[displayIndex].height)?.drawImage?.(previewImages[displayIndex],0,0) + displayIndex = (displayIndex + 1) % previewImages.length + }, 1000/rate); + +} +let previewImagesDict = {} +api.addEventListener('VHS_latentpreview', ({ detail }) => { + if (detail.id == null) { + return + } + let previewImages = previewImagesDict[detail.id] = [] + previewImages.length = detail.length + + let idParts = detail.id.split(':') + for (let i=1; i <= idParts.length; i++) { + let id = idParts.slice(0,i).join(':') + beginLatentPreview(id, previewImages, detail.rate) + } +}); +let td = new TextDecoder() +api.addEventListener('b_preview', async (e) => { + if (Object.keys(animateIntervals).length == 0) { + return + } + e.preventDefault() + e.stopImmediatePropagation() + e.stopPropagation() + const dv = new DataView(await e.detail.slice(0,24).arrayBuffer()) + const index = dv.getUint32(4) + const idlen = dv.getUint8(8) + const id = td.decode(dv.buffer.slice(9,9+idlen)) + previewImagesDict[id][index] = await window.createImageBitmap(e.detail.slice(24)) + return false +}, true); diff --git a/docs/hel-892/multivideo-reference/resize-tree.json b/docs/hel-892/multivideo-reference/resize-tree.json new file mode 100644 index 00000000..83ae3b14 --- /dev/null +++ b/docs/hel-892/multivideo-reference/resize-tree.json @@ -0,0 +1,483 @@ +{ + "sha": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "tree": [ + { + "path": ".github", + "mode": "040000", + "type": "tree", + "sha": "1b2304151396baf6d8de2e7edbffc59016b21781", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/1b2304151396baf6d8de2e7edbffc59016b21781" + }, + { + "path": ".github/FUNDING.yml", + "mode": "100644", + "type": "blob", + "sha": "f475f425424d9172d049b4c016ebe8817987149e", + "size": 62, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f475f425424d9172d049b4c016ebe8817987149e" + }, + { + "path": ".github/workflows", + "mode": "040000", + "type": "tree", + "sha": "ab4de901c29628437fbf1394007d0c6d827da426", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/ab4de901c29628437fbf1394007d0c6d827da426" + }, + { + "path": ".github/workflows/publish.yml", + "mode": "100644", + "type": "blob", + "sha": "e155f5f40e46fa83942dee5a9460e8093f3b4208", + "size": 644, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e155f5f40e46fa83942dee5a9460e8093f3b4208" + }, + { + "path": ".gitignore", + "mode": "100644", + "type": "blob", + "sha": "d462a62fdd67858a783934170db4091ea95eb18f", + "size": 115, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/d462a62fdd67858a783934170db4091ea95eb18f" + }, + { + "path": "LICENSE", + "mode": "100644", + "type": "blob", + "sha": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "size": 35149, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "path": "README.md", + "mode": "100644", + "type": "blob", + "sha": "6371f5014823bc66ffd1f378fea8715a7dd590ff", + "size": 2873, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/6371f5014823bc66ffd1f378fea8715a7dd590ff" + }, + { + "path": "__init__.py", + "mode": "100644", + "type": "blob", + "sha": "0dfde533b157265472d32774ced0741ce75a8825", + "size": 19651, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/0dfde533b157265472d32774ced0741ce75a8825" + }, + { + "path": "custom_dimensions_example.json", + "mode": "100644", + "type": "blob", + "sha": "5c4814d377d44916a14b4d4a83b7cba72ae2958b", + "size": 329, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/5c4814d377d44916a14b4d4a83b7cba72ae2958b" + }, + { + "path": "docs", + "mode": "040000", + "type": "tree", + "sha": "527c09d24c9350ac085ad74a57181baced6892c6", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/527c09d24c9350ac085ad74a57181baced6892c6" + }, + { + "path": "docs/images", + "mode": "040000", + "type": "tree", + "sha": "c6c35df204fd98d771b05fcaaef9bda84be508a9", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/c6c35df204fd98d771b05fcaaef9bda84be508a9" + }, + { + "path": "docs/images/2024-04-03_20_49_29-ComfyUI.png", + "mode": "100644", + "type": "blob", + "sha": "43304322e9bad65a4d0bf5d216e3493d3bf67fc3", + "size": 176158, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/43304322e9bad65a4d0bf5d216e3493d3bf67fc3" + }, + { + "path": "docs/images/319121566-05f66385-7568-4b1f-8bbc-11053660b02f.png", + "mode": "100644", + "type": "blob", + "sha": "e749239c1c4ffd5ab29b51695dd8d8b51ed3597f", + "size": 94315, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e749239c1c4ffd5ab29b51695dd8d8b51ed3597f" + }, + { + "path": "docs/images/319121636-706b5081-9120-4a29-bd76-901691ada688.png", + "mode": "100644", + "type": "blob", + "sha": "b53ad666ff060d87971f3962e74101f0cb2a5c3f", + "size": 24783, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b53ad666ff060d87971f3962e74101f0cb2a5c3f" + }, + { + "path": "example_workflows", + "mode": "040000", + "type": "tree", + "sha": "894251e58277cabf8b1199ce2428966416ff3493", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/894251e58277cabf8b1199ce2428966416ff3493" + }, + { + "path": "example_workflows/leapfusion_hunyuuanvideo_i2v_native_testing.json", + "mode": "100644", + "type": "blob", + "sha": "134a83788815d04b5574a807db67eb6e45bf9263", + "size": 20396, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/134a83788815d04b5574a807db67eb6e45bf9263" + }, + { + "path": "fonts", + "mode": "040000", + "type": "tree", + "sha": "0a3834f1992ff10f4d4ea1c783ce8db0874c29da", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/0a3834f1992ff10f4d4ea1c783ce8db0874c29da" + }, + { + "path": "fonts/FreeMono.ttf", + "mode": "100644", + "type": "blob", + "sha": "7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a", + "size": 343980, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a" + }, + { + "path": "fonts/FreeMonoBoldOblique.otf", + "mode": "100644", + "type": "blob", + "sha": "dac575acbd08b6fa36d9aac4acd0b2d7ea140eec", + "size": 237600, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dac575acbd08b6fa36d9aac4acd0b2d7ea140eec" + }, + { + "path": "fonts/TTNorms-Black.otf", + "mode": "100644", + "type": "blob", + "sha": "39f96c80af61c25ca8c35b25b3cb21673cb0d037", + "size": 152736, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/39f96c80af61c25ca8c35b25b3cb21673cb0d037" + }, + { + "path": "intrinsic_loras", + "mode": "040000", + "type": "tree", + "sha": "55376ee40a826cffd59b40a5f6c2ae16e4b86321", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/55376ee40a826cffd59b40a5f6c2ae16e4b86321" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_albedo.safetensors", + "mode": "100644", + "type": "blob", + "sha": "4f34d153e2bac1868d08ac25bf96c5773c22ac4f", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/4f34d153e2bac1868d08ac25bf96c5773c22ac4f" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_depth.safetensors", + "mode": "100644", + "type": "blob", + "sha": "34fec4ce0bef3b34975a5713f001829a62ae97ae", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/34fec4ce0bef3b34975a5713f001829a62ae97ae" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_normal.safetensors", + "mode": "100644", + "type": "blob", + "sha": "e3ae0479fa74996d6efd9bf7433e87ac4f4caba1", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e3ae0479fa74996d6efd9bf7433e87ac4f4caba1" + }, + { + "path": "intrinsic_loras/intrinsic_lora_sd15_shading.safetensors", + "mode": "100644", + "type": "blob", + "sha": "68a0c76fe7d6a394f0177d02e6423b57c2a21d17", + "size": 6416109, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/68a0c76fe7d6a394f0177d02e6423b57c2a21d17" + }, + { + "path": "intrinsic_loras/intrinsic_loras.txt", + "mode": "100644", + "type": "blob", + "sha": "62ee933763a8aa9e1b232d228717ac754ab22751", + "size": 103, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/62ee933763a8aa9e1b232d228717ac754ab22751" + }, + { + "path": "kjweb_async", + "mode": "040000", + "type": "tree", + "sha": "612b1433e20f4c4e891e8cc7d8b03a0d771aff62", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/612b1433e20f4c4e891e8cc7d8b03a0d771aff62" + }, + { + "path": "kjweb_async/marked.min.js", + "mode": "100644", + "type": "blob", + "sha": "2e66c369c388c135cc68d399861a737f4c5e68cd", + "size": 35418, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/2e66c369c388c135cc68d399861a737f4c5e68cd" + }, + { + "path": "kjweb_async/protovis.min.js", + "mode": "100644", + "type": "blob", + "sha": "dfb84166521a49e4f7e41539933b101e126bd72f", + "size": 116869, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dfb84166521a49e4f7e41539933b101e126bd72f" + }, + { + "path": "kjweb_async/purify.min.js", + "mode": "100644", + "type": "blob", + "sha": "c2f5164618eebcc44b0186f594ccb8092639c670", + "size": 21346, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c2f5164618eebcc44b0186f594ccb8092639c670" + }, + { + "path": "kjweb_async/svg-path-properties.min.js", + "mode": "100644", + "type": "blob", + "sha": "88d47e0de4c54f881083164c20045a7e8b621caf", + "size": 26985, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/88d47e0de4c54f881083164c20045a7e8b621caf" + }, + { + "path": "nodes", + "mode": "040000", + "type": "tree", + "sha": "4c860d1bd98d8ebba2a4d40771ebbb5c763cf28a", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/4c860d1bd98d8ebba2a4d40771ebbb5c763cf28a" + }, + { + "path": "nodes/audioscheduler_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "69d0422e7da875298f87fe60a7f6d1494530dca2", + "size": 10708, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/69d0422e7da875298f87fe60a7f6d1494530dca2" + }, + { + "path": "nodes/batchcrop_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "304ff1265770265fe4786e424a05f372daaf1f03", + "size": 32069, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/304ff1265770265fe4786e424a05f372daaf1f03" + }, + { + "path": "nodes/curve_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "77be51f9a8a7a7fcc78b8fdc8ea6c423ed2a185c", + "size": 69826, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/77be51f9a8a7a7fcc78b8fdc8ea6c423ed2a185c" + }, + { + "path": "nodes/image_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "8de598ebfce304e41b2da906a5f5a6a64df56ce7", + "size": 165167, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/8de598ebfce304e41b2da906a5f5a6a64df56ce7" + }, + { + "path": "nodes/intrinsic_lora_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "c8f125363836cc7721b4b61d100702594522d389", + "size": 4553, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c8f125363836cc7721b4b61d100702594522d389" + }, + { + "path": "nodes/lora_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "926c6a3051615a1176708877c8c9d8bad396e499", + "size": 24056, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/926c6a3051615a1176708877c8c9d8bad396e499" + }, + { + "path": "nodes/mask_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "d9d6ad8d086f8569a08805b5aeb663bf9ce9c32a", + "size": 67983, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/d9d6ad8d086f8569a08805b5aeb663bf9ce9c32a" + }, + { + "path": "nodes/model_optimization_nodes.py", + "mode": "100644", + "type": "blob", + "sha": "543da07f87537e098229f64fd069ad8345b254d5", + "size": 107552, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/543da07f87537e098229f64fd069ad8345b254d5" + }, + { + "path": "nodes/nodes.py", + "mode": "100644", + "type": "blob", + "sha": "535289a7a563e32b37e4a8477ac41957f3787b27", + "size": 108252, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/535289a7a563e32b37e4a8477ac41957f3787b27" + }, + { + "path": "pyproject.toml", + "mode": "100644", + "type": "blob", + "sha": "b26155310209205613c5f858e97194f49937da67", + "size": 552, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b26155310209205613c5f858e97194f49937da67" + }, + { + "path": "requirements.txt", + "mode": "100644", + "type": "blob", + "sha": "3a339e26727f6fcb9c41538d0120560e1d863f2c", + "size": 89, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/3a339e26727f6fcb9c41538d0120560e1d863f2c" + }, + { + "path": "utility", + "mode": "040000", + "type": "tree", + "sha": "840c51ae3eb22cc5a67372ed55f58879d41cdfba", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/840c51ae3eb22cc5a67372ed55f58879d41cdfba" + }, + { + "path": "utility/fluid.py", + "mode": "100644", + "type": "blob", + "sha": "c0691987f5249a031ecbb74329ba513d5788b691", + "size": 2917, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c0691987f5249a031ecbb74329ba513d5788b691" + }, + { + "path": "utility/magictex.py", + "mode": "100644", + "type": "blob", + "sha": "e6d426f7deb3deb977604dd37581eb4e9fe9e6a9", + "size": 3117, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/e6d426f7deb3deb977604dd37581eb4e9fe9e6a9" + }, + { + "path": "utility/numerical.py", + "mode": "100644", + "type": "blob", + "sha": "b5b88bc63c45d63d8913e56cbd06eb7ab413fe4f", + "size": 906, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b5b88bc63c45d63d8913e56cbd06eb7ab413fe4f" + }, + { + "path": "utility/utility.py", + "mode": "100644", + "type": "blob", + "sha": "f3b5c425922784522791e33c225c29be1e8249e0", + "size": 1369, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f3b5c425922784522791e33c225c29be1e8249e0" + }, + { + "path": "web", + "mode": "040000", + "type": "tree", + "sha": "31e11e5ed26a54d6f46dfc5b3f7b42c67218a120", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/31e11e5ed26a54d6f46dfc5b3f7b42c67218a120" + }, + { + "path": "web/green.png", + "mode": "100644", + "type": "blob", + "sha": "900964e4b3907145fe1e75a5b58473567450e16d", + "size": 2340, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/900964e4b3907145fe1e75a5b58473567450e16d" + }, + { + "path": "web/js", + "mode": "040000", + "type": "tree", + "sha": "a4fe272383693ebb411019b27d53fc0636f9bcb5", + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/a4fe272383693ebb411019b27d53fc0636f9bcb5" + }, + { + "path": "web/js/appearance.js", + "mode": "100644", + "type": "blob", + "sha": "9069207e2ca079363e757da234318c76d24806ee", + "size": 865, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/9069207e2ca079363e757da234318c76d24806ee" + }, + { + "path": "web/js/browserstatus.js", + "mode": "100644", + "type": "blob", + "sha": "7ef12a186b9d78fc58c4f72deed18ad9573af477", + "size": 1892, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/7ef12a186b9d78fc58c4f72deed18ad9573af477" + }, + { + "path": "web/js/contextmenu.js", + "mode": "100644", + "type": "blob", + "sha": "f189b30ff12a4b3a20150c1a8997a44b086daac0", + "size": 4093, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/f189b30ff12a4b3a20150c1a8997a44b086daac0" + }, + { + "path": "web/js/fast_preview.js", + "mode": "100644", + "type": "blob", + "sha": "271784495d61c098b649af1b8f3a73bdfa457c21", + "size": 2916, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/271784495d61c098b649af1b8f3a73bdfa457c21" + }, + { + "path": "web/js/help_popup.js", + "mode": "100644", + "type": "blob", + "sha": "9ea71359207a208aa986d54617ac553d2e44e80f", + "size": 10268, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/9ea71359207a208aa986d54617ac553d2e44e80f" + }, + { + "path": "web/js/jsnodes.js", + "mode": "100644", + "type": "blob", + "sha": "c391bd55dc3c94ee81dc8d2f96462c03ed684279", + "size": 16456, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c391bd55dc3c94ee81dc8d2f96462c03ed684279" + }, + { + "path": "web/js/point_editor.js", + "mode": "100644", + "type": "blob", + "sha": "dc2368299d996a5f928bc9526cc03c0a9d894242", + "size": 25799, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dc2368299d996a5f928bc9526cc03c0a9d894242" + }, + { + "path": "web/js/setgetnodes.js", + "mode": "100644", + "type": "blob", + "sha": "c19368370a9b5500b95a0591c4669787d46ca4c6", + "size": 15809, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/c19368370a9b5500b95a0591c4669787d46ca4c6" + }, + { + "path": "web/js/spline_editor.js", + "mode": "100644", + "type": "blob", + "sha": "0b9163e797e48551dd68e0b52d7678f97d7b9fee", + "size": 49053, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/0b9163e797e48551dd68e0b52d7678f97d7b9fee" + }, + { + "path": "web/red.png", + "mode": "100644", + "type": "blob", + "sha": "4352c118b2c5fa6f33edc4d99a5e4d22649ff827", + "size": 2334, + "url": "https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/4352c118b2c5fa6f33edc4d99a5e4d22649ff827" + } + ], + "truncated": false +} diff --git a/docs/hel-892/multivideo-reference/resize__LICENSE b/docs/hel-892/multivideo-reference/resize__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/multivideo-reference/resize__LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + 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. + + + Copyright (C) + + 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 . + +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: + + Copyright (C) + 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 +. + + 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 +. diff --git a/docs/hel-892/multivideo-reference/resize____init__.py b/docs/hel-892/multivideo-reference/resize____init__.py new file mode 100644 index 00000000..0dfde533 --- /dev/null +++ b/docs/hel-892/multivideo-reference/resize____init__.py @@ -0,0 +1,257 @@ +from .nodes.nodes import * +from .nodes.curve_nodes import * +from .nodes.batchcrop_nodes import * +from .nodes.audioscheduler_nodes import * +from .nodes.image_nodes import * +from .nodes.intrinsic_lora_nodes import * +from .nodes.mask_nodes import * +from .nodes.model_optimization_nodes import * +from .nodes.lora_nodes import * +NODE_CONFIG = { + #constants + "BOOLConstant": {"class": BOOLConstant, "name": "BOOL Constant"}, + "INTConstant": {"class": INTConstant, "name": "INT Constant"}, + "FloatConstant": {"class": FloatConstant, "name": "Float Constant"}, + "StringConstant": {"class": StringConstant, "name": "String Constant"}, + "StringConstantMultiline": {"class": StringConstantMultiline, "name": "String Constant Multiline"}, + #conditioning + "ConditioningMultiCombine": {"class": ConditioningMultiCombine, "name": "Conditioning Multi Combine"}, + "ConditioningSetMaskAndCombine": {"class": ConditioningSetMaskAndCombine, "name": "ConditioningSetMaskAndCombine"}, + "ConditioningSetMaskAndCombine3": {"class": ConditioningSetMaskAndCombine3, "name": "ConditioningSetMaskAndCombine3"}, + "ConditioningSetMaskAndCombine4": {"class": ConditioningSetMaskAndCombine4, "name": "ConditioningSetMaskAndCombine4"}, + "ConditioningSetMaskAndCombine5": {"class": ConditioningSetMaskAndCombine5, "name": "ConditioningSetMaskAndCombine5"}, + "CondPassThrough": {"class": CondPassThrough}, + #masking + "DrawMaskOnImage": {"class": DrawMaskOnImage, "name": "Draw Mask On Image"}, + "DownloadAndLoadCLIPSeg": {"class": DownloadAndLoadCLIPSeg, "name": "(Down)load CLIPSeg"}, + "BatchCLIPSeg": {"class": BatchCLIPSeg, "name": "Batch CLIPSeg"}, + "BlockifyMask": {"class": BlockifyMask, "name": "Blockify Mask"}, + "ColorToMask": {"class": ColorToMask, "name": "Color To Mask"}, + "CreateGradientMask": {"class": CreateGradientMask, "name": "Create Gradient Mask"}, + "CreateTextMask": {"class": CreateTextMask, "name": "Create Text Mask"}, + "CreateAudioMask": {"class": CreateAudioMask, "name": "Create Audio Mask"}, + "CreateFadeMask": {"class": CreateFadeMask, "name": "Create Fade Mask"}, + "CreateFadeMaskAdvanced": {"class": CreateFadeMaskAdvanced, "name": "Create Fade Mask Advanced"}, + "CreateFluidMask": {"class": CreateFluidMask, "name": "Create Fluid Mask"}, + "CreateShapeMask": {"class": CreateShapeMask, "name": "Create Shape Mask"}, + "CreateVoronoiMask": {"class": CreateVoronoiMask, "name": "Create Voronoi Mask"}, + "CreateMagicMask": {"class": CreateMagicMask, "name": "Create Magic Mask"}, + "GetMaskSizeAndCount": {"class": GetMaskSizeAndCount, "name": "Get Mask Size & Count"}, + "GrowMaskWithBlur": {"class": GrowMaskWithBlur, "name": "Grow Mask With Blur"}, + "MaskBatchMulti": {"class": MaskBatchMulti, "name": "Mask Batch Multi"}, + "OffsetMask": {"class": OffsetMask, "name": "Offset Mask"}, + "RemapMaskRange": {"class": RemapMaskRange, "name": "Remap Mask Range"}, + "ResizeMask": {"class": ResizeMask, "name": "Resize Mask"}, + "RoundMask": {"class": RoundMask, "name": "Round Mask"}, + "SeparateMasks": {"class": SeparateMasks, "name": "Separate Masks"}, + "ConsolidateMasksKJ": {"class": ConsolidateMasksKJ, "name": "Consolidate Masks"}, + #images + "AddLabel": {"class": AddLabel, "name": "Add Label"}, + "ColorMatch": {"class": ColorMatch, "name": "Color Match"}, + "ImageTensorList": {"class": ImageTensorList, "name": "Image Tensor List"}, + "CrossFadeImages": {"class": CrossFadeImages, "name": "Cross Fade Images"}, + "CrossFadeImagesMulti": {"class": CrossFadeImagesMulti, "name": "Cross Fade Images Multi"}, + "GetImagesFromBatchIndexed": {"class": GetImagesFromBatchIndexed, "name": "Get Images From Batch Indexed"}, + "GetImageRangeFromBatch": {"class": GetImageRangeFromBatch, "name": "Get Image or Mask Range From Batch"}, + "GetLatentRangeFromBatch": {"class": GetLatentRangeFromBatch, "name": "Get Latent Range From Batch"}, + "GetLatentSizeAndCount": {"class": GetLatentSizeAndCount, "name": "Get Latent Size & Count"}, + "GetImageSizeAndCount": {"class": GetImageSizeAndCount, "name": "Get Image Size & Count"}, + "FastPreview": {"class": FastPreview, "name": "Fast Preview"}, + "ImageBatchFilter": {"class": ImageBatchFilter, "name": "Image Batch Filter"}, + "ImageAndMaskPreview": {"class": ImageAndMaskPreview}, + "ImageAddMulti": {"class": ImageAddMulti, "name": "Image Add Multi"}, + "ImageBatchJoinWithTransition": {"class": ImageBatchJoinWithTransition, "name": "Image Batch Join With Transition"}, + "ImageBatchMulti": {"class": ImageBatchMulti, "name": "Image Batch Multi"}, + "ImageBatchRepeatInterleaving": {"class": ImageBatchRepeatInterleaving}, + "ImageBatchTestPattern": {"class": ImageBatchTestPattern, "name": "Image Batch Test Pattern"}, + "ImageConcanate": {"class": ImageConcanate, "name": "Image Concatenate"}, + "ImageConcatFromBatch": {"class": ImageConcatFromBatch, "name": "Image Concatenate From Batch"}, + "ImageConcatMulti": {"class": ImageConcatMulti, "name": "Image Concatenate Multi"}, + "ImageCropByMask": {"class": ImageCropByMask, "name": "Image Crop By Mask"}, + "ImageCropByMaskAndResize": {"class": ImageCropByMaskAndResize, "name": "Image Crop By Mask And Resize"}, + "ImageCropByMaskBatch": {"class": ImageCropByMaskBatch, "name": "Image Crop By Mask Batch"}, + "ImageUncropByMask": {"class": ImageUncropByMask, "name": "Image Uncrop By Mask"}, + "ImageBatchExtendWithOverlap": {"class": ImageBatchExtendWithOverlap, "name": "Image Batch Extend With Overlap"}, + "ImageGrabPIL": {"class": ImageGrabPIL, "name": "Image Grab PIL"}, + "ImageGridComposite2x2": {"class": ImageGridComposite2x2, "name": "Image Grid Composite 2x2"}, + "ImageGridComposite3x3": {"class": ImageGridComposite3x3, "name": "Image Grid Composite 3x3"}, + "ImageGridtoBatch": {"class": ImageGridtoBatch, "name": "Image Grid To Batch"}, + "ImageNoiseAugmentation": {"class": ImageNoiseAugmentation, "name": "Image Noise Augmentation"}, + "ImageNormalize_Neg1_To_1": {"class": ImageNormalize_Neg1_To_1, "name": "Image Normalize -1 to 1"}, + "ImagePass": {"class": ImagePass}, + "ImagePadKJ": {"class": ImagePadKJ, "name": "ImagePad KJ"}, + "ImagePadForOutpaintMasked": {"class": ImagePadForOutpaintMasked, "name": "Image Pad For Outpaint Masked"}, + "ImagePadForOutpaintTargetSize": {"class": ImagePadForOutpaintTargetSize, "name": "Image Pad For Outpaint Target Size"}, + "ImagePrepForICLora": {"class": ImagePrepForICLora, "name": "Image Prep For ICLora"}, + "ImageResizeKJ": {"class": ImageResizeKJ, "name": "Resize Image (deprecated)"}, + "ImageResizeKJv2": {"class": ImageResizeKJv2, "name": "Resize Image v2"}, + "ImageUpscaleWithModelBatched": {"class": ImageUpscaleWithModelBatched, "name": "Image Upscale With Model Batched"}, + "InsertImagesToBatchIndexed": {"class": InsertImagesToBatchIndexed, "name": "Insert Images To Batch Indexed"}, + "InsertLatentToIndexed": {"class": InsertLatentToIndex, "name": "Insert Latent To Index"}, + "LoadAndResizeImage": {"class": LoadAndResizeImage, "name": "Load & Resize Image"}, + "LoadImagesFromFolderKJ": {"class": LoadImagesFromFolderKJ, "name": "Load Images From Folder (KJ)"}, + "LoadVideosFromFolder": {"class": LoadVideosFromFolder, "name": "Load Videos From Folder"}, + "MergeImageChannels": {"class": MergeImageChannels, "name": "Merge Image Channels"}, + "PadImageBatchInterleaved": {"class": PadImageBatchInterleaved, "name": "Pad Image Batch Interleaved"}, + "PreviewAnimation": {"class": PreviewAnimation, "name": "Preview Animation"}, + "RemapImageRange": {"class": RemapImageRange, "name": "Remap Image Range"}, + "ReverseImageBatch": {"class": ReverseImageBatch, "name": "Reverse Image Batch"}, + "ReplaceImagesInBatch": {"class": ReplaceImagesInBatch, "name": "Replace Images In Batch"}, + "SaveImageWithAlpha": {"class": SaveImageWithAlpha, "name": "Save Image With Alpha"}, + "SaveImageKJ": {"class": SaveImageKJ, "name": "Save Image KJ"}, + "ShuffleImageBatch": {"class": ShuffleImageBatch, "name": "Shuffle Image Batch"}, + "SplitImageChannels": {"class": SplitImageChannels, "name": "Split Image Channels"}, + "TransitionImagesMulti": {"class": TransitionImagesMulti, "name": "Transition Images Multi"}, + "TransitionImagesInBatch": {"class": TransitionImagesInBatch, "name": "Transition Images In Batch"}, + #batch cropping + "BatchCropFromMask": {"class": BatchCropFromMask, "name": "Batch Crop From Mask"}, + "BatchCropFromMaskAdvanced": {"class": BatchCropFromMaskAdvanced, "name": "Batch Crop From Mask Advanced"}, + "FilterZeroMasksAndCorrespondingImages": {"class": FilterZeroMasksAndCorrespondingImages}, + "InsertImageBatchByIndexes": {"class": InsertImageBatchByIndexes, "name": "Insert Image Batch By Indexes"}, + "BatchUncrop": {"class": BatchUncrop, "name": "Batch Uncrop"}, + "BatchUncropAdvanced": {"class": BatchUncropAdvanced, "name": "Batch Uncrop Advanced"}, + "SplitBboxes": {"class": SplitBboxes, "name": "Split Bboxes"}, + "BboxToInt": {"class": BboxToInt, "name": "Bbox To Int"}, + "BboxVisualize": {"class": BboxVisualize, "name": "Bbox Visualize"}, + #noise + "GenerateNoise": {"class": GenerateNoise, "name": "Generate Noise"}, + "FlipSigmasAdjusted": {"class": FlipSigmasAdjusted, "name": "Flip Sigmas Adjusted"}, + "InjectNoiseToLatent": {"class": InjectNoiseToLatent, "name": "Inject Noise To Latent"}, + "CustomSigmas": {"class": CustomSigmas, "name": "Custom Sigmas"}, + #utility + "StringToFloatList": {"class": StringToFloatList, "name": "String to Float List"}, + "WidgetToString": {"class": WidgetToString, "name": "Widget To String"}, + "SaveStringKJ": {"class": SaveStringKJ, "name": "Save String KJ"}, + "DummyOut": {"class": DummyOut, "name": "Dummy Out"}, + "GetLatentsFromBatchIndexed": {"class": GetLatentsFromBatchIndexed, "name": "Get Latents From Batch Indexed"}, + "ScaleBatchPromptSchedule": {"class": ScaleBatchPromptSchedule, "name": "Scale Batch Prompt Schedule"}, + "CameraPoseVisualizer": {"class": CameraPoseVisualizer, "name": "Camera Pose Visualizer"}, + "AppendStringsToList": {"class": AppendStringsToList, "name": "Append Strings To List"}, + "JoinStrings": {"class": JoinStrings, "name": "Join Strings"}, + "JoinStringMulti": {"class": JoinStringMulti, "name": "Join String Multi"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "Sleep": {"class": Sleep, "name": "Sleep"}, + "VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "EmptyLatentImagePresets": {"class": EmptyLatentImagePresets, "name": "Empty Latent Image Presets"}, + "EmptyLatentImageCustomPresets": {"class": EmptyLatentImageCustomPresets, "name": "Empty Latent Image Custom Presets"}, + "ModelPassThrough": {"class": ModelPassThrough, "name": "ModelPass"}, + "ModelSaveKJ": {"class": ModelSaveKJ, "name": "Model Save KJ"}, + "SetShakkerLabsUnionControlNetType": {"class": SetShakkerLabsUnionControlNetType, "name": "Set Shakker Labs Union ControlNet Type"}, + "StyleModelApplyAdvanced": {"class": StyleModelApplyAdvanced, "name": "Style Model Apply Advanced"}, + "DiffusionModelSelector": {"class": DiffusionModelSelector, "name": "Diffusion Model Selector"}, + "LazySwitchKJ": {"class": LazySwitchKJ, "name": "Lazy Switch KJ"}, + #audioscheduler stuff + "NormalizedAmplitudeToMask": {"class": NormalizedAmplitudeToMask}, + "NormalizedAmplitudeToFloatList": {"class": NormalizedAmplitudeToFloatList}, + "OffsetMaskByNormalizedAmplitude": {"class": OffsetMaskByNormalizedAmplitude}, + "ImageTransformByNormalizedAmplitude": {"class": ImageTransformByNormalizedAmplitude}, + "AudioConcatenate": {"class": AudioConcatenate}, + #curve nodes + "SplineEditor": {"class": SplineEditor, "name": "Spline Editor"}, + "CreateShapeImageOnPath": {"class": CreateShapeImageOnPath, "name": "Create Shape Image On Path"}, + "CreateShapeMaskOnPath": {"class": CreateShapeMaskOnPath, "name": "Create Shape Mask On Path"}, + "CreateTextOnPath": {"class": CreateTextOnPath, "name": "Create Text On Path"}, + "CreateGradientFromCoords": {"class": CreateGradientFromCoords, "name": "Create Gradient From Coords"}, + "CutAndDragOnPath": {"class": CutAndDragOnPath, "name": "Cut And Drag On Path"}, + "GradientToFloat": {"class": GradientToFloat, "name": "Gradient To Float"}, + "WeightScheduleExtend": {"class": WeightScheduleExtend, "name": "Weight Schedule Extend"}, + "MaskOrImageToWeight": {"class": MaskOrImageToWeight, "name": "Mask Or Image To Weight"}, + "WeightScheduleConvert": {"class": WeightScheduleConvert, "name": "Weight Schedule Convert"}, + "FloatToMask": {"class": FloatToMask, "name": "Float To Mask"}, + "FloatToSigmas": {"class": FloatToSigmas, "name": "Float To Sigmas"}, + "SigmasToFloat": {"class": SigmasToFloat, "name": "Sigmas To Float"}, + "PlotCoordinates": {"class": PlotCoordinates, "name": "Plot Coordinates"}, + "InterpolateCoords": {"class": InterpolateCoords, "name": "Interpolate Coords"}, + "PointsEditor": {"class": PointsEditor, "name": "Points Editor"}, + #experimental + "SoundReactive": {"class": SoundReactive, "name": "Sound Reactive"}, + "StableZero123_BatchSchedule": {"class": StableZero123_BatchSchedule, "name": "Stable Zero123 Batch Schedule"}, + "SV3D_BatchSchedule": {"class": SV3D_BatchSchedule, "name": "SV3D Batch Schedule"}, + "LoadResAdapterNormalization": {"class": LoadResAdapterNormalization}, + "Superprompt": {"class": Superprompt, "name": "Superprompt"}, + "GLIGENTextBoxApplyBatchCoords": {"class": GLIGENTextBoxApplyBatchCoords}, + "Intrinsic_lora_sampling": {"class": Intrinsic_lora_sampling, "name": "Intrinsic Lora Sampling"}, + "CheckpointPerturbWeights": {"class": CheckpointPerturbWeights, "name": "CheckpointPerturbWeights"}, + "Screencap_mss": {"class": Screencap_mss, "name": "Screencap mss"}, + "WebcamCaptureCV2": {"class": WebcamCaptureCV2, "name": "Webcam Capture CV2"}, + "DifferentialDiffusionAdvanced": {"class": DifferentialDiffusionAdvanced, "name": "Differential Diffusion Advanced"}, + "DiTBlockLoraLoader": {"class": DiTBlockLoraLoader, "name": "DiT Block Lora Loader"}, + "FluxBlockLoraSelect": {"class": FluxBlockLoraSelect, "name": "Flux Block Lora Select"}, + "HunyuanVideoBlockLoraSelect": {"class": HunyuanVideoBlockLoraSelect, "name": "Hunyuan Video Block Lora Select"}, + "Wan21BlockLoraSelect": {"class": Wan21BlockLoraSelect, "name": "Wan21 Block Lora Select"}, + "CustomControlNetWeightsFluxFromList": {"class": CustomControlNetWeightsFluxFromList, "name": "Custom ControlNet Weights Flux From List"}, + "CheckpointLoaderKJ": {"class": CheckpointLoaderKJ, "name": "CheckpointLoaderKJ"}, + "DiffusionModelLoaderKJ": {"class": DiffusionModelLoaderKJ, "name": "Diffusion Model Loader KJ"}, + "TorchCompileModelFluxAdvanced": {"class": TorchCompileModelFluxAdvanced, "name": "TorchCompileModelFluxAdvanced"}, + "TorchCompileModelFluxAdvancedV2": {"class": TorchCompileModelFluxAdvancedV2, "name": "TorchCompileModelFluxAdvancedV2"}, + "TorchCompileModelHyVideo": {"class": TorchCompileModelHyVideo, "name": "TorchCompileModelHyVideo"}, + "TorchCompileVAE": {"class": TorchCompileVAE, "name": "TorchCompileVAE"}, + "TorchCompileControlNet": {"class": TorchCompileControlNet, "name": "TorchCompileControlNet"}, + "PatchModelPatcherOrder": {"class": PatchModelPatcherOrder, "name": "Patch Model Patcher Order"}, + "TorchCompileLTXModel": {"class": TorchCompileLTXModel, "name": "TorchCompileLTXModel"}, + "TorchCompileCosmosModel": {"class": TorchCompileCosmosModel, "name": "TorchCompileCosmosModel"}, + "TorchCompileModelQwenImage": {"class": TorchCompileModelQwenImage, "name": "TorchCompileModelQwenImage"}, + "TorchCompileModelWanVideo": {"class": TorchCompileModelWanVideo, "name": "TorchCompileModelWanVideo"}, + "TorchCompileModelWanVideoV2": {"class": TorchCompileModelWanVideoV2, "name": "TorchCompileModelWanVideoV2"}, + "PathchSageAttentionKJ": {"class": PathchSageAttentionKJ, "name": "Patch Sage Attention KJ"}, + "LeapfusionHunyuanI2VPatcher": {"class": LeapfusionHunyuanI2V, "name": "Leapfusion Hunyuan I2V Patcher"}, + "VAELoaderKJ": {"class": VAELoaderKJ, "name": "VAELoader KJ"}, + "ScheduledCFGGuidance": {"class": ScheduledCFGGuidance, "name": "Scheduled CFG Guidance"}, + "ApplyRifleXRoPE_HunuyanVideo": {"class": ApplyRifleXRoPE_HunuyanVideo, "name": "Apply RifleXRoPE HunuyanVideo"}, + "ApplyRifleXRoPE_WanVideo": {"class": ApplyRifleXRoPE_WanVideo, "name": "Apply RifleXRoPE WanVideo"}, + "WanVideoTeaCacheKJ": {"class": WanVideoTeaCacheKJ, "name": "WanVideo Tea Cache (native)"}, + "WanVideoEnhanceAVideoKJ": {"class": WanVideoEnhanceAVideoKJ, "name": "WanVideo Enhance A Video (native)"}, + "SkipLayerGuidanceWanVideo": {"class": SkipLayerGuidanceWanVideo, "name": "Skip Layer Guidance WanVideo"}, + "TimerNodeKJ": {"class": TimerNodeKJ, "name": "Timer Node KJ"}, + "HunyuanVideoEncodeKeyframesToCond": {"class": HunyuanVideoEncodeKeyframesToCond, "name": "HunyuanVideo Encode Keyframes To Cond"}, + "CFGZeroStarAndInit": {"class": CFGZeroStarAndInit, "name": "CFG Zero Star/Init"}, + "ModelPatchTorchSettings": {"class": ModelPatchTorchSettings, "name": "Model Patch Torch Settings"}, + "WanVideoNAG": {"class": WanVideoNAG, "name": "WanVideoNAG"}, + "GGUFLoaderKJ": {"class": GGUFLoaderKJ, "name": "GGUF Loader KJ"}, + "LatentInpaintTTM": {"class": LatentInpaintTTM, "name": "Latent Inpaint TTM"}, + "NABLA_AttentionKJ": {"class": NABLA_AttentionKJ, "name": "NABLA Attention KJ"}, + "TorchCompileModelAdvanced": {"class": TorchCompileModelAdvanced, "name": "TorchCompileModelAdvanced"}, + "StartRecordCUDAMemoryHistory": {"class": StartRecordCUDAMemoryHistory, "name": "Start Recording CUDAMemory History"}, + "EndRecordCUDAMemoryHistory": {"class": EndRecordCUDAMemoryHistory, "name": "End Recording CUDAMemory History"}, + "VisualizeCUDAMemoryHistory": {"class": VisualizeCUDAMemoryHistory, "name": "Visualize CUDAMemory History"}, + + #instance diffusion + "CreateInstanceDiffusionTracking": {"class": CreateInstanceDiffusionTracking}, + "AppendInstanceDiffusionTracking": {"class": AppendInstanceDiffusionTracking}, + "DrawInstanceDiffusionTracking": {"class": DrawInstanceDiffusionTracking}, + + #lora + "LoraExtractKJ": {"class": LoraExtractKJ, "name": "LoraExtractKJ"}, + "LoraReduceRankKJ": {"class": LoraReduceRank, "name": "LoraReduceRank"} +} + +def generate_node_mappings(node_config): + node_class_mappings = {} + node_display_name_mappings = {} + + for node_name, node_info in node_config.items(): + node_class_mappings[node_name] = node_info["class"] + node_display_name_mappings[node_name] = node_info.get("name", node_info["class"].__name__) + + return node_class_mappings, node_display_name_mappings + +NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = generate_node_mappings(NODE_CONFIG) + +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] + +WEB_DIRECTORY = "./web" + +from aiohttp import web +from server import PromptServer +from pathlib import Path + +if hasattr(PromptServer, "instance"): + try: + # NOTE: we add an extra static path to avoid comfy mechanism + # that loads every script in web. + PromptServer.instance.app.add_routes( + [web.static("/kjweb_async", (Path(__file__).parent.absolute() / "kjweb_async").as_posix())] + ) + except: + pass diff --git a/docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py b/docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py new file mode 100644 index 00000000..8de598eb --- /dev/null +++ b/docs/hel-892/multivideo-reference/resize__nodes__image_nodes.py @@ -0,0 +1,4050 @@ +import numpy as np +import time +import torch +import torch.nn.functional as F +import torchvision.transforms as T +import io +import base64 +import random +import math +import os +import re +import json +import importlib +from PIL.PngImagePlugin import PngInfo +try: + import cv2 +except: + print("OpenCV not installed") + pass +from PIL import ImageGrab, ImageDraw, ImageFont, Image, ImageOps + +from nodes import MAX_RESOLUTION, SaveImage +from comfy_extras.nodes_mask import composite +import node_helpers +from comfy.cli_args import args +from comfy.utils import ProgressBar, common_upscale +import folder_paths +from comfy import model_management +try: + from server import PromptServer +except: + PromptServer = None +from concurrent.futures import ThreadPoolExecutor + +script_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + +class ImagePass: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + }, + "optional": { + "image": ("IMAGE",), + }, + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "passthrough" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Passes the image through without modifying it. +""" + + def passthrough(self, image=None): + return image, + +class ColorMatch: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image_ref": ("IMAGE",), + "image_target": ("IMAGE",), + "method": ( + [ + 'mkl', + 'hm', + 'reinhard', + 'mvgd', + 'hm-mvgd-hm', + 'hm-mkl-hm', + ], { + "default": 'mkl' + }), + }, + "optional": { + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "multithread": ("BOOLEAN", {"default": True}), + } + } + + CATEGORY = "KJNodes/image" + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "colormatch" + DESCRIPTION = """ +color-matcher enables color transfer across images which comes in handy for automatic +color-grading of photographs, paintings and film sequences as well as light-field +and stopmotion corrections. + +The methods behind the mappings are based on the approach from Reinhard et al., +the Monge-Kantorovich Linearization (MKL) as proposed by Pitie et al. and our analytical solution +to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with classical histogram +matching. As shown below our HM-MVGD-HM compound outperforms existing methods. +https://github.com/hahnec/color-matcher/ + +""" + + def colormatch(self, image_ref, image_target, method, strength=1.0, multithread=True): + # Skip unnecessary processing + if strength == 0: + return (image_target,) + + try: + from color_matcher import ColorMatcher + except: + raise Exception("Can't import color-matcher, did you install requirements.txt? Manual install: pip install color-matcher") + + image_ref = image_ref.cpu() + image_target = image_target.cpu() + batch_size = image_target.size(0) + + images_target = image_target.squeeze() + images_ref = image_ref.squeeze() + + image_ref_np = images_ref.numpy() + images_target_np = images_target.numpy() + + def process(i): + cm = ColorMatcher() + image_target_np_i = images_target_np if batch_size == 1 else images_target[i].numpy() + image_ref_np_i = image_ref_np if image_ref.size(0) == 1 else images_ref[i].numpy() + try: + image_result = cm.transfer(src=image_target_np_i, ref=image_ref_np_i, method=method) # Avoid potential blur when only the fully color-matched image is used + if strength != 1: + image_result = image_target_np_i + strength * (image_result - image_target_np_i) + + return torch.from_numpy(image_result) + + except Exception as e: + print(f"Thread {i} error: {e}") + return torch.from_numpy(image_target_np_i) # fallback + + if multithread and batch_size > 1: + max_threads = min(os.cpu_count() or 1, batch_size) + with ThreadPoolExecutor(max_workers=max_threads) as executor: + out = list(executor.map(process, range(batch_size))) + else: + out = [process(i) for i in range(batch_size)] + + out = torch.stack(out, dim=0).to(torch.float32) + out.clamp_(0, 1) + return (out,) + +class SaveImageWithAlpha: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + + @classmethod + def INPUT_TYPES(s): + return {"required": + {"images": ("IMAGE", ), + "mask": ("MASK", ), + "filename_prefix": ("STRING", {"default": "ComfyUI"})}, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + + RETURN_TYPES = () + FUNCTION = "save_images_alpha" + OUTPUT_NODE = True + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Saves an image and mask as .PNG with the mask as the alpha channel. +""" + + def save_images_alpha(self, images, mask, filename_prefix="ComfyUI_image_with_alpha", prompt=None, extra_pnginfo=None): + from PIL.PngImagePlugin import PngInfo + filename_prefix += self.prefix_append + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + results = list() + if mask.dtype == torch.float16: + mask = mask.to(torch.float32) + def file_counter(): + max_counter = 0 + # Loop through the existing files + for existing_file in sorted(os.listdir(full_output_folder)): + # Check if the file matches the expected format + match = re.fullmatch(fr"{filename}_(\d+)_?\.[a-zA-Z0-9]+", existing_file) + if match: + # Extract the numeric portion of the filename + file_counter = int(match.group(1)) + # Update the maximum counter value if necessary + if file_counter > max_counter: + max_counter = file_counter + return max_counter + + for image, alpha in zip(images, mask): + i = 255. * image.cpu().numpy() + a = 255. * alpha.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + + # Resize the mask to match the image size + a_resized = Image.fromarray(a).resize(img.size, Image.LANCZOS) + a_resized = np.clip(a_resized, 0, 255).astype(np.uint8) + img.putalpha(Image.fromarray(a_resized, mode='L')) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + # Increment the counter by 1 to get the next available value + counter = file_counter() + 1 + file = f"{filename}_{counter:05}.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=4) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + + return { "ui": { "images": results } } + +class ImageConcanate: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "direction": ( + [ 'right', + 'down', + 'left', + 'up', + ], + { + "default": 'right' + }), + "match_image_size": ("BOOLEAN", {"default": True}), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concatenate" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the image2 to image1 in the specified direction. +""" + + def concatenate(self, image1, image2, direction, match_image_size, first_image_shape=None): + # Check if the batch sizes are different + batch_size1 = image1.shape[0] + batch_size2 = image2.shape[0] + + if batch_size1 != batch_size2: + # Calculate the number of repetitions needed + max_batch_size = max(batch_size1, batch_size2) + repeats1 = max_batch_size - batch_size1 + repeats2 = max_batch_size - batch_size2 + + # Repeat the last image to match the largest batch size + if repeats1 > 0: + last_image1 = image1[-1].unsqueeze(0).repeat(repeats1, 1, 1, 1) + image1 = torch.cat([image1.clone(), last_image1], dim=0) + if repeats2 > 0: + last_image2 = image2[-1].unsqueeze(0).repeat(repeats2, 1, 1, 1) + image2 = torch.cat([image2.clone(), last_image2], dim=0) + + if match_image_size: + # Use first_image_shape if provided; otherwise, default to image1's shape + target_shape = first_image_shape if first_image_shape is not None else image1.shape + + original_height = image2.shape[1] + original_width = image2.shape[2] + original_aspect_ratio = original_width / original_height + + if direction in ['left', 'right']: + # Match the height and adjust the width to preserve aspect ratio + target_height = target_shape[1] # B, H, W, C format + target_width = int(target_height * original_aspect_ratio) + elif direction in ['up', 'down']: + # Match the width and adjust the height to preserve aspect ratio + target_width = target_shape[2] # B, H, W, C format + target_height = int(target_width / original_aspect_ratio) + + # Adjust image2 to the expected format for common_upscale + image2_for_upscale = image2.movedim(-1, 1) # Move C to the second position (B, C, H, W) + + # Resize image2 to match the target size while preserving aspect ratio + image2_resized = common_upscale(image2_for_upscale, target_width, target_height, "lanczos", "disabled") + + # Adjust image2 back to the original format (B, H, W, C) after resizing + image2_resized = image2_resized.movedim(1, -1) + else: + image2_resized = image2 + + # Ensure both images have the same number of channels + channels_image1 = image1.shape[-1] + channels_image2 = image2_resized.shape[-1] + + if channels_image1 != channels_image2: + if channels_image1 < channels_image2: + # Add alpha channel to image1 if image2 has it + alpha_channel = torch.ones((*image1.shape[:-1], channels_image2 - channels_image1), device=image1.device) + image1 = torch.cat((image1, alpha_channel), dim=-1) + else: + # Add alpha channel to image2 if image1 has it + alpha_channel = torch.ones((*image2_resized.shape[:-1], channels_image1 - channels_image2), device=image2_resized.device) + image2_resized = torch.cat((image2_resized, alpha_channel), dim=-1) + + + # Concatenate based on the specified direction + if direction == 'right': + concatenated_image = torch.cat((image1, image2_resized), dim=2) # Concatenate along width + elif direction == 'down': + concatenated_image = torch.cat((image1, image2_resized), dim=1) # Concatenate along height + elif direction == 'left': + concatenated_image = torch.cat((image2_resized, image1), dim=2) # Concatenate along width + elif direction == 'up': + concatenated_image = torch.cat((image2_resized, image1), dim=1) # Concatenate along height + return concatenated_image, + +import torch # Make sure you have PyTorch installed + +class ImageConcatFromBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "images": ("IMAGE",), + "num_columns": ("INT", {"default": 3, "min": 1, "max": 255, "step": 1}), + "match_image_size": ("BOOLEAN", {"default": False}), + "max_resolution": ("INT", {"default": 4096}), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concat" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ + Concatenates images from a batch into a grid with a specified number of columns. + """ + + def concat(self, images, num_columns, match_image_size, max_resolution): + # Assuming images is a batch of images (B, H, W, C) + batch_size, height, width, channels = images.shape + num_rows = (batch_size + num_columns - 1) // num_columns # Calculate number of rows + + print(f"Initial dimensions: batch_size={batch_size}, height={height}, width={width}, channels={channels}") + print(f"num_rows={num_rows}, num_columns={num_columns}") + + if match_image_size: + target_shape = images[0].shape + + resized_images = [] + for image in images: + original_height = image.shape[0] + original_width = image.shape[1] + original_aspect_ratio = original_width / original_height + + if original_aspect_ratio > 1: + target_height = target_shape[0] + target_width = int(target_height * original_aspect_ratio) + else: + target_width = target_shape[1] + target_height = int(target_width / original_aspect_ratio) + + print(f"Resizing image from ({original_height}, {original_width}) to ({target_height}, {target_width})") + + # Resize the image to match the target size while preserving aspect ratio + resized_image = common_upscale(image.movedim(-1, 0), target_width, target_height, "lanczos", "disabled") + resized_image = resized_image.movedim(0, -1) # Move channels back to the last dimension + resized_images.append(resized_image) + + # Convert the list of resized images back to a tensor + images = torch.stack(resized_images) + + height, width = target_shape[:2] # Update height and width + + # Initialize an empty grid + grid_height = num_rows * height + grid_width = num_columns * width + + print(f"Grid dimensions before scaling: grid_height={grid_height}, grid_width={grid_width}") + + # Original scale factor calculation remains unchanged + scale_factor = min(max_resolution / grid_height, max_resolution / grid_width, 1.0) + + # Apply scale factor to height and width + scaled_height = height * scale_factor + scaled_width = width * scale_factor + + # Round scaled dimensions to the nearest number divisible by 8 + height = max(1, int(round(scaled_height / 8) * 8)) + width = max(1, int(round(scaled_width / 8) * 8)) + + if abs(scaled_height - height) > 4: + height = max(1, int(round((scaled_height + 4) / 8) * 8)) + if abs(scaled_width - width) > 4: + width = max(1, int(round((scaled_width + 4) / 8) * 8)) + + # Recalculate grid dimensions with adjusted height and width + grid_height = num_rows * height + grid_width = num_columns * width + print(f"Grid dimensions after scaling: grid_height={grid_height}, grid_width={grid_width}") + print(f"Final image dimensions: height={height}, width={width}") + + grid = torch.zeros((grid_height, grid_width, channels), dtype=images.dtype) + + for idx, image in enumerate(images): + resized_image = torch.nn.functional.interpolate(image.unsqueeze(0).permute(0, 3, 1, 2), size=(height, width), mode="bilinear").squeeze().permute(1, 2, 0) + row = idx // num_columns + col = idx % num_columns + grid[row*height:(row+1)*height, col*width:(col+1)*width, :] = resized_image + + return grid.unsqueeze(0), + + +class ImageGridComposite2x2: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "image3": ("IMAGE",), + "image4": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "compositegrid" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the 4 input images into a 2x2 grid. +""" + + def compositegrid(self, image1, image2, image3, image4): + top_row = torch.cat((image1, image2), dim=2) + bottom_row = torch.cat((image3, image4), dim=2) + grid = torch.cat((top_row, bottom_row), dim=1) + return (grid,) + +class ImageGridComposite3x3: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + "image3": ("IMAGE",), + "image4": ("IMAGE",), + "image5": ("IMAGE",), + "image6": ("IMAGE",), + "image7": ("IMAGE",), + "image8": ("IMAGE",), + "image9": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "compositegrid" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Concatenates the 9 input images into a 3x3 grid. +""" + + def compositegrid(self, image1, image2, image3, image4, image5, image6, image7, image8, image9): + top_row = torch.cat((image1, image2, image3), dim=2) + mid_row = torch.cat((image4, image5, image6), dim=2) + bottom_row = torch.cat((image7, image8, image9), dim=2) + grid = torch.cat((top_row, mid_row, bottom_row), dim=1) + return (grid,) + +class ImageBatchTestPattern: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "batch_size": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "start_from": ("INT", {"default": 0,"min": 0, "max": 255, "step": 1}), + "text_x": ("INT", {"default": 256,"min": 0, "max": 4096, "step": 1}), + "text_y": ("INT", {"default": 256,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "font": (folder_paths.get_filename_list("kjnodes_fonts"), ), + "font_size": ("INT", {"default": 255,"min": 8, "max": 4096, "step": 1}), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "generatetestpattern" + CATEGORY = "KJNodes/text" + + def generatetestpattern(self, batch_size, font, font_size, start_from, width, height, text_x, text_y): + out = [] + # Generate the sequential numbers for each image + numbers = np.arange(start_from, start_from + batch_size) + font_path = folder_paths.get_full_path("kjnodes_fonts", font) + + for number in numbers: + # Create a black image with the number as a random color text + image = Image.new("RGB", (width, height), color='black') + draw = ImageDraw.Draw(image) + + # Generate a random color for the text + font_color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)) + + font = ImageFont.truetype(font_path, font_size) + + # Get the size of the text and position it in the center + text = str(number) + + try: + draw.text((text_x, text_y), text, font=font, fill=font_color, features=['-liga']) + except: + draw.text((text_x, text_y), text, font=font, fill=font_color,) + + # Convert the image to a numpy array and normalize the pixel values + image_np = np.array(image).astype(np.float32) / 255.0 + image_tensor = torch.from_numpy(image_np).unsqueeze(0) + out.append(image_tensor) + out_tensor = torch.cat(out, dim=0) + + return (out_tensor,) + +class ImageGrabPIL: + + @classmethod + def IS_CHANGED(cls): + + return + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "screencap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Captures an area specified by screen coordinates. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "delay": ("FLOAT", {"default": 0.1,"min": 0.0, "max": 10.0, "step": 0.01}), + }, + } + + def screencap(self, x, y, width, height, num_frames, delay): + start_time = time.time() + captures = [] + bbox = (x, y, x + width, y + height) + + for _ in range(num_frames): + # Capture screen + screen_capture = ImageGrab.grab(bbox=bbox) + screen_capture_torch = torch.from_numpy(np.array(screen_capture, dtype=np.float32) / 255.0).unsqueeze(0) + captures.append(screen_capture_torch) + + # Wait for a short delay if more than one frame is to be captured + if num_frames > 1: + time.sleep(delay) + + elapsed_time = time.time() - start_time + print(f"screengrab took {elapsed_time} seconds.") + + return (torch.cat(captures, dim=0),) + +class Screencap_mss: + + @classmethod + def IS_CHANGED(s, **kwargs): + return float("NaN") + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "screencap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Captures an area specified by screen coordinates. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 10000, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 10000, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 10000, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 10000, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 255, "step": 1}), + "delay": ("FLOAT", {"default": 0.1,"min": 0.0, "max": 10.0, "step": 0.01}), + }, + } + + def screencap(self, x, y, width, height, num_frames, delay): + from mss import mss + captures = [] + with mss() as sct: + bbox = {'top': y, 'left': x, 'width': width, 'height': height} + + for _ in range(num_frames): + sct_img = sct.grab(bbox) + img_np = np.array(sct_img) + img_torch = torch.from_numpy(img_np[..., [2, 1, 0]]).float() / 255.0 + captures.append(img_torch) + + if num_frames > 1: + time.sleep(delay) + + return (torch.stack(captures, 0),) + +class WebcamCaptureCV2: + + @classmethod + def IS_CHANGED(cls): + return + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "capture" + CATEGORY = "KJNodes/experimental" + DESCRIPTION = """ +Captures a frame from a webcam using CV2. +Can be used for realtime diffusion with autoqueue. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "x": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "y": ("INT", {"default": 0,"min": 0, "max": 4096, "step": 1}), + "width": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 0, "max": 4096, "step": 1}), + "cam_index": ("INT", {"default": 0,"min": 0, "max": 255, "step": 1}), + "release": ("BOOLEAN", {"default": False}), + }, + } + + def capture(self, x, y, cam_index, width, height, release): + # Check if the camera index has changed or the capture object doesn't exist + if not hasattr(self, "cap") or self.cap is None or self.current_cam_index != cam_index: + if hasattr(self, "cap") and self.cap is not None: + self.cap.release() + self.current_cam_index = cam_index + self.cap = cv2.VideoCapture(cam_index) + try: + self.cap.set(cv2.CAP_PROP_FRAME_WIDTH, width) + self.cap.set(cv2.CAP_PROP_FRAME_HEIGHT, height) + except: + pass + if not self.cap.isOpened(): + raise Exception("Could not open webcam") + + ret, frame = self.cap.read() + if not ret: + raise Exception("Failed to capture image from webcam") + + # Crop the frame to the specified bbox + frame = frame[y:y+height, x:x+width] + img_torch = torch.from_numpy(frame[..., [2, 1, 0]]).float() / 255.0 + + if release: + self.cap.release() + self.cap = None + + return (img_torch.unsqueeze(0),) + +class AddLabel: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image":("IMAGE",), + "text_x": ("INT", {"default": 10, "min": 0, "max": 4096, "step": 1}), + "text_y": ("INT", {"default": 2, "min": 0, "max": 4096, "step": 1}), + "height": ("INT", {"default": 48, "min": -1, "max": 4096, "step": 1}), + "font_size": ("INT", {"default": 32, "min": 0, "max": 4096, "step": 1}), + "font_color": ("STRING", {"default": "white"}), + "label_color": ("STRING", {"default": "black"}), + "font": (folder_paths.get_filename_list("kjnodes_fonts"), ), + "text": ("STRING", {"default": "Text"}), + "direction": ( + [ 'up', + 'down', + 'left', + 'right', + 'overlay' + ], + { + "default": 'up' + }), + }, + "optional":{ + "caption": ("STRING", {"default": "", "forceInput": True}), + } + } + RETURN_TYPES = ("IMAGE",) + FUNCTION = "addlabel" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +Creates a new with the given text, and concatenates it to +either above or below the input image. +Note that this changes the input image's height! +Fonts are loaded from this folder: +ComfyUI/custom_nodes/ComfyUI-KJNodes/fonts +""" + + def addlabel(self, image, text_x, text_y, text, height, font_size, font_color, label_color, font, direction, caption=""): + batch_size = image.shape[0] + width = image.shape[2] + + font_path = os.path.join(script_directory, "fonts", "TTNorms-Black.otf") if font == "TTNorms-Black.otf" else folder_paths.get_full_path("kjnodes_fonts", font) + + def process_image(input_image, caption_text): + font = ImageFont.truetype(font_path, font_size) + words = caption_text.split() + lines = [] + current_line = [] + current_line_width = 0 + + for word in words: + word_width = font.getbbox(word)[2] + if current_line_width + word_width <= width - 2 * text_x: + current_line.append(word) + current_line_width += word_width + font.getbbox(" ")[2] # Add space width + else: + lines.append(" ".join(current_line)) + current_line = [word] + current_line_width = word_width + + if current_line: + lines.append(" ".join(current_line)) + + if direction == 'overlay': + pil_image = Image.fromarray((input_image.cpu().numpy() * 255).astype(np.uint8)) + else: + if height == -1: + # Adjust the image height automatically + margin = 8 + required_height = (text_y + len(lines) * font_size) + margin # Calculate required height + pil_image = Image.new("RGB", (width, required_height), label_color) + else: + # Initialize with a minimal height + label_image = Image.new("RGB", (width, height), label_color) + pil_image = label_image + + draw = ImageDraw.Draw(pil_image) + + + y_offset = text_y + for line in lines: + try: + draw.text((text_x, y_offset), line, font=font, fill=font_color, features=['-liga']) + except: + draw.text((text_x, y_offset), line, font=font, fill=font_color) + y_offset += font_size + + processed_image = torch.from_numpy(np.array(pil_image).astype(np.float32) / 255.0).unsqueeze(0) + return processed_image + + if caption == "": + processed_images = [process_image(img, text) for img in image] + else: + assert len(caption) == batch_size, f"Number of captions {(len(caption))} does not match number of images" + processed_images = [process_image(img, cap) for img, cap in zip(image, caption)] + processed_batch = torch.cat(processed_images, dim=0) + + # Combine images based on direction + if direction == 'down': + combined_images = torch.cat((image, processed_batch), dim=1) + elif direction == 'up': + combined_images = torch.cat((processed_batch, image), dim=1) + elif direction == 'left': + processed_batch = torch.rot90(processed_batch, 3, (2, 3)).permute(0, 3, 1, 2) + combined_images = torch.cat((processed_batch, image), dim=2) + elif direction == 'right': + processed_batch = torch.rot90(processed_batch, 3, (2, 3)).permute(0, 3, 1, 2) + combined_images = torch.cat((image, processed_batch), dim=2) + else: + combined_images = processed_batch + + return (combined_images,) + +class GetImageSizeAndCount: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE","INT", "INT", "INT",) + RETURN_NAMES = ("image", "width", "height", "count",) + FUNCTION = "getsize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns width, height and batch size of the image, +and passes it through unchanged. + +""" + + def getsize(self, image): + width = image.shape[2] + height = image.shape[1] + count = image.shape[0] + return {"ui": { + "text": [f"{count}x{width}x{height}"]}, + "result": (image, width, height, count) + } + +class GetLatentSizeAndCount: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "latent": ("LATENT",), + }} + + RETURN_TYPES = ("LATENT","INT", "INT", "INT", "INT", "INT") + RETURN_NAMES = ("latent", "batch_size", "channels", "frames", "width", "height") + FUNCTION = "getsize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns latent tensor dimensions, +and passes the latent through unchanged. + +""" + def getsize(self, latent): + if len(latent["samples"].shape) == 5: + B, C, T, H, W = latent["samples"].shape + elif len(latent["samples"].shape) == 4: + B, C, H, W = latent["samples"].shape + T = 0 + else: + raise ValueError("Invalid latent shape") + + return {"ui": { + "text": [f"{B}x{C}x{T}x{H}x{W}"]}, + "result": (latent, B, C, T, H, W) + } + +class ImageBatchRepeatInterleaving: + + RETURN_TYPES = ("IMAGE", "MASK",) + FUNCTION = "repeat" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Repeats each image in a batch by the specified number of times. +Example batch of 5 images: 0, 1 ,2, 3, 4 +with repeats 2 becomes batch of 10 images: 0, 0, 1, 1, 2, 2, 3, 3, 4, 4 +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "repeats": ("INT", {"default": 1, "min": 1, "max": 4096}), + }, + "optional": { + "mask": ("MASK",), + } + } + + def repeat(self, images, repeats, mask=None): + original_count = images.shape[0] + total_count = original_count * repeats + + repeated_images = torch.repeat_interleave(images, repeats=repeats, dim=0) + if mask is not None: + mask = torch.repeat_interleave(mask, repeats=repeats, dim=0) + else: + mask = torch.zeros((total_count, images.shape[1], images.shape[2]), + device=images.device, dtype=images.dtype) + for i in range(original_count): + mask[i * repeats] = 1.0 + + print("mask shape", mask.shape) + return (repeated_images, mask) + +class ImageUpscaleWithModelBatched: + @classmethod + def INPUT_TYPES(s): + return {"required": { "upscale_model": ("UPSCALE_MODEL",), + "images": ("IMAGE",), + "per_batch": ("INT", {"default": 16, "min": 1, "max": 4096, "step": 1}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Same as ComfyUI native model upscaling node, +but allows setting sub-batches for reduced VRAM usage. +""" + def upscale(self, upscale_model, images, per_batch): + + device = model_management.get_torch_device() + upscale_model.to(device) + in_img = images.movedim(-1,-3) + + steps = in_img.shape[0] + pbar = ProgressBar(steps) + t = [] + + for start_idx in range(0, in_img.shape[0], per_batch): + sub_images = upscale_model(in_img[start_idx:start_idx+per_batch].to(device)) + t.append(sub_images.cpu()) + # Calculate the number of images processed in this batch + batch_count = sub_images.shape[0] + # Update the progress bar by the number of images processed in this batch + pbar.update(batch_count) + upscale_model.cpu() + + t = torch.cat(t, dim=0).permute(0, 2, 3, 1).cpu() + + return (t,) + +class ImageNormalize_Neg1_To_1: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "images": ("IMAGE",), + + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "normalize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Normalize the images to be in the range [-1, 1] +""" + + def normalize(self,images): + images = images * 2.0 - 1.0 + return (images,) + +class RemapImageRange: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + "min": ("FLOAT", {"default": 0.0,"min": -10.0, "max": 1.0, "step": 0.01}), + "max": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 10.0, "step": 0.01}), + "clamp": ("BOOLEAN", {"default": True}), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "remap" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Remaps the image values to the specified range. +""" + + def remap(self, image, min, max, clamp): + if image.dtype == torch.float16: + image = image.to(torch.float32) + image = min + image * (max - min) + if clamp: + image = torch.clamp(image, min=0.0, max=1.0) + return (image, ) + +class SplitImageChannels: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE",), + }, + } + + RETURN_TYPES = ("IMAGE", "IMAGE", "IMAGE", "MASK") + RETURN_NAMES = ("red", "green", "blue", "mask") + FUNCTION = "split" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Splits image channels into images where the selected channel +is repeated for all channels, and the alpha as a mask. +""" + + def split(self, image): + red = image[:, :, :, 0:1] # Red channel + green = image[:, :, :, 1:2] # Green channel + blue = image[:, :, :, 2:3] # Blue channel + alpha = image[:, :, :, 3:4] # Alpha channel + alpha = alpha.squeeze(-1) + + # Repeat the selected channel for all channels + red = torch.cat([red, red, red], dim=3) + green = torch.cat([green, green, green], dim=3) + blue = torch.cat([blue, blue, blue], dim=3) + return (red, green, blue, alpha) + +class MergeImageChannels: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "red": ("IMAGE",), + "green": ("IMAGE",), + "blue": ("IMAGE",), + + }, + "optional": { + "alpha": ("MASK", {"default": None}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "merge" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Merges channel data into an image. +""" + + def merge(self, red, green, blue, alpha=None): + image = torch.stack([ + red[..., 0, None], # Red channel + green[..., 1, None], # Green channel + blue[..., 2, None] # Blue channel + ], dim=-1) + image = image.squeeze(-2) + if alpha is not None: + image = torch.cat([image, alpha.unsqueeze(-1)], dim=-1) + return (image,) + +class ImagePadForOutpaintMasked: + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + }, + "optional": { + "mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, left, top, right, bottom, feathering, mask=None): + if mask is not None: + if torch.allclose(mask, torch.zeros_like(mask)): + print("Warning: The incoming mask is fully black. Handling it as None.") + mask = None + B, H, W, C = image.size() + + new_image = torch.ones( + (B, H + top + bottom, W + left + right, C), + dtype=torch.float32, + ) * 0.5 + + new_image[:, top:top + H, left:left + W, :] = image + + if mask is None: + new_mask = torch.ones( + (B, H + top + bottom, W + left + right), + dtype=torch.float32, + ) + + t = torch.zeros( + (B, H, W), + dtype=torch.float32 + ) + else: + # If a mask is provided, pad it to fit the new image size + mask = F.pad(mask, (left, right, top, bottom), mode='constant', value=0) + mask = 1 - mask + t = torch.zeros_like(mask) + + if feathering > 0 and feathering * 2 < H and feathering * 2 < W: + + for i in range(H): + for j in range(W): + dt = i if top != 0 else H + db = H - i if bottom != 0 else H + + dl = j if left != 0 else W + dr = W - j if right != 0 else W + + d = min(dt, db, dl, dr) + + if d >= feathering: + continue + + v = (feathering - d) / feathering + + if mask is None: + t[:, i, j] = v * v + else: + t[:, top + i, left + j] = v * v + + if mask is None: + new_mask[:, top:top + H, left:left + W] = t + return (new_image, new_mask,) + else: + return (new_image, mask,) + +class ImagePadForOutpaintTargetSize: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "target_width": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "target_height": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feathering": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "upscale_method": (s.upscale_methods,), + }, + "optional": { + "mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, target_width, target_height, feathering, upscale_method, mask=None): + B, H, W, C = image.size() + new_height = H + new_width = W + # Calculate the scaling factor while maintaining aspect ratio + scaling_factor = min(target_width / W, target_height / H) + + # Check if the image needs to be downscaled + if scaling_factor < 1: + image = image.movedim(-1,1) + # Calculate the new width and height after downscaling + new_width = int(W * scaling_factor) + new_height = int(H * scaling_factor) + + # Downscale the image + image_scaled = common_upscale(image, new_width, new_height, upscale_method, "disabled").movedim(1,-1) + else: + # If downscaling is not needed, use the original image dimensions + image_scaled = image + + # Ensure mask dimensions match image dimensions + if mask is not None: + mask_scaled = mask.unsqueeze(0) # Add an extra dimension for batch size + mask_scaled = F.interpolate(mask_scaled, size=(new_height, new_width), mode="nearest") + mask_scaled = mask_scaled.squeeze(0) # Remove the extra dimension after interpolation + else: + mask_scaled = None + + # Calculate how much padding is needed to reach the target dimensions + pad_top = max(0, (target_height - new_height) // 2) + pad_bottom = max(0, target_height - new_height - pad_top) + pad_left = max(0, (target_width - new_width) // 2) + pad_right = max(0, target_width - new_width - pad_left) + + # Now call the original expand_image with the calculated padding + return ImagePadForOutpaintMasked.expand_image(self, image_scaled, pad_left, pad_top, pad_right, pad_bottom, feathering, mask_scaled) + +class ImagePrepForICLora: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "reference_image": ("IMAGE",), + "output_width": ("INT", {"default": 1024, "min": 1, "max": 4096, "step": 1}), + "output_height": ("INT", {"default": 1024, "min": 1, "max": 4096, "step": 1}), + "border_width": ("INT", {"default": 0, "min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "latent_image": ("IMAGE",), + "latent_mask": ("MASK",), + "reference_mask": ("MASK",), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, reference_image, output_width, output_height, border_width, latent_image=None, reference_mask=None, latent_mask=None): + + if reference_mask is not None: + if torch.allclose(reference_mask, torch.zeros_like(reference_mask)): + print("Warning: The incoming mask is fully black. Handling it as None.") + reference_mask = None + image = reference_image + if latent_image is not None: + if image.shape[0] != latent_image.shape[0]: + image = image.repeat(latent_image.shape[0], 1, 1, 1) + B, H, W, C = image.size() + + # Handle mask + if reference_mask is not None: + resized_mask = torch.nn.functional.interpolate( + reference_mask.unsqueeze(1), + size=(H, W), + mode='nearest' + ).squeeze(1) + print(resized_mask.shape) + image = image * resized_mask.unsqueeze(-1) + + # Calculate new width maintaining aspect ratio + new_width = int((W / H) * output_height) + + # Resize image to new height while maintaining aspect ratio + resized_image = common_upscale(image.movedim(-1,1), new_width, output_height, "lanczos", "disabled").movedim(1,-1) + + # Create padded image + if latent_image is None: + pad_image = torch.zeros((B, output_height, output_width, C), device=image.device) + else: + resized_latent_image = common_upscale(latent_image.movedim(-1,1), output_width, output_height, "lanczos", "disabled").movedim(1,-1) + pad_image = resized_latent_image + if latent_mask is not None: + resized_latent_mask = torch.nn.functional.interpolate( + latent_mask.unsqueeze(1), + size=(pad_image.shape[1], pad_image.shape[2]), + mode='nearest' + ).squeeze(1) + + if border_width > 0: + border = torch.zeros((B, output_height, border_width, C), device=image.device) + padded_image = torch.cat((resized_image, border, pad_image), dim=2) + if latent_mask is not None: + padded_mask = torch.zeros((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, (new_width + border_width):] = resized_latent_mask + else: + padded_mask = torch.ones((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, :new_width + border_width] = 0 + else: + padded_image = torch.cat((resized_image, pad_image), dim=2) + if latent_mask is not None: + padded_mask = torch.zeros((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, new_width:] = resized_latent_mask + else: + padded_mask = torch.ones((B, padded_image.shape[1], padded_image.shape[2]), device=image.device) + padded_mask[:, :, :new_width] = 0 + + return (padded_image, padded_mask) + + +class ImageAndMaskPreview(SaveImage): + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "mask_opacity": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}), + "mask_color": ("STRING", {"default": "255, 255, 255"}), + "pass_through": ("BOOLEAN", {"default": False}), + }, + "optional": { + "image": ("IMAGE",), + "mask": ("MASK",), + }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("composite",) + FUNCTION = "execute" + CATEGORY = "KJNodes/masking" + DESCRIPTION = """ +Preview an image or a mask, when both inputs are used +composites the mask on top of the image. +with pass_through on the preview is disabled and the +composite is returned from the composite slot instead, +this allows for the preview to be passed for video combine +nodes for example. +""" + + def execute(self, mask_opacity, mask_color, pass_through, filename_prefix="ComfyUI", image=None, mask=None, prompt=None, extra_pnginfo=None): + if mask is not None and image is None: + preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3) + elif mask is None and image is not None: + preview = image + elif mask is not None and image is not None: + mask_adjusted = mask * mask_opacity + mask_image = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3).clone() + + if ',' in mask_color: + color_list = np.clip([int(channel) for channel in mask_color.split(',')], 0, 255) # RGB format + else: + mask_color = mask_color.lstrip('#') + color_list = [int(mask_color[i:i+2], 16) for i in (0, 2, 4)] # Hex format + mask_image[:, :, :, 0] = color_list[0] / 255 # Red channel + mask_image[:, :, :, 1] = color_list[1] / 255 # Green channel + mask_image[:, :, :, 2] = color_list[2] / 255 # Blue channel + + destination, source = node_helpers.image_alpha_fix(image, mask_image) + destination = destination.clone().movedim(-1, 1) + preview = composite(destination, source.movedim(-1, 1), 0, 0, mask_adjusted, 1, True).movedim(1, -1) + + if pass_through: + return (preview, ) + return(self.save_images(preview, filename_prefix, prompt, extra_pnginfo)) + +def crossfade(images_1, images_2, alpha): + crossfade = (1 - alpha) * images_1 + alpha * images_2 + return crossfade +def ease_in(t): + return t * t +def ease_out(t): + return 1 - (1 - t) * (1 - t) +def ease_in_out(t): + return 3 * t * t - 2 * t * t * t +def bounce(t): + if t < 0.5: + return ease_out(t * 2) * 0.5 + else: + return ease_in((t - 0.5) * 2) * 0.5 + 0.5 +def elastic(t): + return math.sin(13 * math.pi / 2 * t) * math.pow(2, 10 * (t - 1)) +def glitchy(t): + return t + 0.1 * math.sin(40 * t) +def exponential_ease_out(t): + return 1 - (1 - t) ** 4 + +easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, +} + +class CrossFadeImages: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "crossfadeimages" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images_1": ("IMAGE",), + "images_2": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_start_index": ("INT", {"default": 1,"min": -4096, "max": 4096, "step": 1}), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "start_level": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 1.0, "step": 0.01}), + "end_level": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 1.0, "step": 0.01}), + }, + } + + def crossfadeimages(self, images_1, images_2, transition_start_index, transitioning_frames, interpolation, start_level, end_level): + + crossfade_images = [] + + if transition_start_index < 0: + transition_start_index = len(images_1) + transition_start_index + if transition_start_index < 0: + raise ValueError("Transition start index is out of range for images_1.") + + transitioning_frames = min(transitioning_frames, len(images_1) - transition_start_index, len(images_2)) + + alphas = torch.linspace(start_level, end_level, transitioning_frames) + for i in range(transitioning_frames): + alpha = alphas[i] + image1 = images_1[transition_start_index + i] + image2 = images_2[i] + easing_function = easing_functions.get(interpolation) + alpha = easing_function(alpha) # Apply the easing function to the alpha value + + crossfade_image = crossfade(image1, image2, alpha) + crossfade_images.append(crossfade_image) + + # Convert crossfade_images to tensor + crossfade_images = torch.stack(crossfade_images, dim=0) + + # Append the beginning of images_1 (before the transition) + beginning_images_1 = images_1[:transition_start_index] + crossfade_images = torch.cat([beginning_images_1, crossfade_images], dim=0) + + # Append the remaining frames of images_2 (after the transition) + remaining_images_2 = images_2[transitioning_frames:] + if len(remaining_images_2) > 0: + crossfade_images = torch.cat([crossfade_images, remaining_images_2], dim=0) + + return (crossfade_images, ) + +class CrossFadeImagesMulti: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "crossfadeimages" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "image_2": ("IMAGE",), + } + } + + def crossfadeimages(self, inputcount, transitioning_frames, interpolation, **kwargs): + + image_1 = kwargs["image_1"] + first_image_shape = image_1.shape + first_image_device = image_1.device + height = image_1.shape[1] + width = image_1.shape[2] + + easing_function = easing_functions[interpolation] + + for c in range(1, inputcount): + frames = [] + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)).to(first_image_device) + new_image_height = new_image.shape[1] + new_image_width = new_image.shape[2] + + if new_image_height != height or new_image_width != width: + new_image = common_upscale(new_image.movedim(-1, 1), width, height, "lanczos", "disabled") + new_image = new_image.movedim(1, -1) # Move channels back to the last dimension + + last_frame_image_1 = image_1[-1] + first_frame_image_2 = new_image[0] + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=last_frame_image_1.dtype, device=last_frame_image_1.device) + frame_image = crossfade(last_frame_image_1, first_frame_image_2, alpha_tensor) + frames.append(frame_image) + + frames = torch.stack(frames) + image_1 = torch.cat((image_1, frames, new_image), dim=0) + + return image_1, + +def transition_images(images_1, images_2, alpha, transition_type, blur_radius, reverse): + width = images_1.shape[1] + height = images_1.shape[0] + + mask = torch.zeros_like(images_1, device=images_1.device) + + alpha = alpha.item() + if reverse: + alpha = 1 - alpha + + #transitions from matteo's essential nodes + if "horizontal slide" in transition_type: + pos = round(width * alpha) + mask[:, :pos, :] = 1.0 + elif "vertical slide" in transition_type: + pos = round(height * alpha) + mask[:pos, :, :] = 1.0 + elif "box" in transition_type: + box_w = round(width * alpha) + box_h = round(height * alpha) + x1 = (width - box_w) // 2 + y1 = (height - box_h) // 2 + x2 = x1 + box_w + y2 = y1 + box_h + mask[y1:y2, x1:x2, :] = 1.0 + elif "circle" in transition_type: + radius = math.ceil(math.sqrt(pow(width, 2) + pow(height, 2)) * alpha / 2) + c_x = width // 2 + c_y = height // 2 + x = torch.arange(0, width, dtype=torch.float32, device="cpu") + y = torch.arange(0, height, dtype=torch.float32, device="cpu") + y, x = torch.meshgrid((y, x), indexing="ij") + circle = ((x - c_x) ** 2 + (y - c_y) ** 2) <= (radius ** 2) + mask[circle] = 1.0 + elif "horizontal door" in transition_type: + bar = math.ceil(height * alpha / 2) + if bar > 0: + mask[:bar, :, :] = 1.0 + mask[-bar:,:, :] = 1.0 + elif "vertical door" in transition_type: + bar = math.ceil(width * alpha / 2) + if bar > 0: + mask[:, :bar,:] = 1.0 + mask[:, -bar:,:] = 1.0 + elif "fade" in transition_type: + mask[:, :, :] = alpha + + mask = gaussian_blur(mask, blur_radius) + + return images_1 * (1 - mask) + images_2 * mask + +def gaussian_blur(mask, blur_radius): + if blur_radius > 0: + kernel_size = int(blur_radius * 2) + 1 + if kernel_size % 2 == 0: + kernel_size += 1 # Ensure kernel size is odd + sigma = blur_radius / 3 + x = torch.arange(-kernel_size // 2 + 1, kernel_size // 2 + 1, dtype=torch.float32) + x = torch.exp(-0.5 * (x / sigma) ** 2) + kernel1d = x / x.sum() + kernel2d = kernel1d[:, None] * kernel1d[None, :] + kernel2d = kernel2d.to(mask.device) + kernel2d = kernel2d.expand(mask.shape[2], 1, kernel2d.shape[0], kernel2d.shape[1]) + mask = mask.permute(2, 0, 1).unsqueeze(0) # Change to [C, H, W] and add batch dimension + mask = F.conv2d(mask, kernel2d, padding=kernel_size // 2, groups=mask.shape[1]) + mask = mask.squeeze(0).permute(1, 2, 0) # Change back to [H, W, C] + return mask + +easing_functions = { + "linear": lambda t: t, + "ease_in": ease_in, + "ease_out": ease_out, + "ease_in_out": ease_in_out, + "bounce": bounce, + "elastic": elastic, + "glitchy": glitchy, + "exponential_ease_out": exponential_ease_out, +} + +class TransitionImagesMulti: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates transitions between images. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 2,"min": 2, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + "optional": { + "image_2": ("IMAGE",), + } + } + + def transition(self, inputcount, transitioning_frames, transition_type, interpolation, device, blur_radius, reverse, **kwargs): + + gpu = model_management.get_torch_device() + + image_1 = kwargs["image_1"] + height = image_1.shape[1] + width = image_1.shape[2] + first_image_shape = image_1.shape + first_image_device = image_1.device + + easing_function = easing_functions[interpolation] + + for c in range(1, inputcount): + frames = [] + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)).to(first_image_device) + new_image_height = new_image.shape[1] + new_image_width = new_image.shape[2] + + if new_image_height != height or new_image_width != width: + new_image = common_upscale(new_image.movedim(-1, 1), width, height, "lanczos", "disabled") + new_image = new_image.movedim(1, -1) # Move channels back to the last dimension + + last_frame_image_1 = image_1[-1] + first_frame_image_2 = new_image[0] + if device == "GPU": + last_frame_image_1 = last_frame_image_1.to(gpu) + first_frame_image_2 = first_frame_image_2.to(gpu) + + if reverse: + last_frame_image_1, first_frame_image_2 = first_frame_image_2, last_frame_image_1 + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=last_frame_image_1.dtype, device=last_frame_image_1.device) + frame_image = transition_images(last_frame_image_1, first_frame_image_2, alpha_tensor, transition_type, blur_radius, reverse) + frames.append(frame_image) + + frames = torch.stack(frames).cpu() + image_1 = torch.cat((image_1, frames, new_image), dim=0) + + return image_1.cpu(), + +class TransitionImagesInBatch: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates transitions between images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + } + + #transitions from matteo's essential nodes + def transition(self, images, transitioning_frames, transition_type, interpolation, device, blur_radius, reverse): + if images.shape[0] == 1: + return images, + + gpu = model_management.get_torch_device() + + easing_function = easing_functions[interpolation] + + images_list = [] + pbar = ProgressBar(images.shape[0] - 1) + for i in range(images.shape[0] - 1): + frames = [] + image_1 = images[i] + image_2 = images[i + 1] + + if device == "GPU": + image_1 = image_1.to(gpu) + image_2 = image_2.to(gpu) + + if reverse: + image_1, image_2 = image_2, image_1 + + for frame in range(transitioning_frames): + t = frame / (transitioning_frames - 1) + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=image_1.dtype, device=image_1.device) + frame_image = transition_images(image_1, image_2, alpha_tensor, transition_type, blur_radius, reverse) + frames.append(frame_image) + pbar.update(1) + + frames = torch.stack(frames).cpu() + images_list.append(frames) + images = torch.cat(images_list, dim=0) + + return images.cpu(), + +class ImageBatchJoinWithTransition: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "transition_batches" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Transitions between two batches of images, starting at a specified index in the first batch. +During the transition, frames from both batches are blended frame-by-frame, so the video keeps playing. +""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "images_1": ("IMAGE",), + "images_2": ("IMAGE",), + "start_index": ("INT", {"default": 0, "min": -10000, "max": 10000, "step": 1}), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out", "bounce", "elastic", "glitchy", "exponential_ease_out"],), + "transition_type": (["horizontal slide", "vertical slide", "box", "circle", "horizontal door", "vertical door", "fade"],), + "transitioning_frames": ("INT", {"default": 1, "min": 1, "max": 4096, "step": 1}), + "blur_radius": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step": 0.1}), + "reverse": ("BOOLEAN", {"default": False}), + "device": (["CPU", "GPU"], {"default": "CPU"}), + }, + } + + def transition_batches(self, images_1, images_2, start_index, interpolation, transition_type, transitioning_frames, blur_radius, reverse, device): + if images_1.shape[0] == 0 or images_2.shape[0] == 0: + raise ValueError("Both input batches must have at least one image.") + + if start_index < 0: + start_index = images_1.shape[0] + start_index + if start_index < 0 or start_index > images_1.shape[0]: + raise ValueError("start_index is out of range.") + + gpu = model_management.get_torch_device() + easing_function = easing_functions[interpolation] + out_frames = [] + + # Add images from images_1 up to start_index + if start_index > 0: + out_frames.append(images_1[:start_index]) + + # Determine how many frames we can blend + max_transition = min(transitioning_frames, images_1.shape[0] - start_index, images_2.shape[0]) + + # Blend corresponding frames from both batches + for i in range(max_transition): + img1 = images_1[start_index + i] + img2 = images_2[i] + if device == "GPU": + img1 = img1.to(gpu) + img2 = img2.to(gpu) + if reverse: + img1, img2 = img2, img1 + t = i / (max_transition - 1) if max_transition > 1 else 1.0 + alpha = easing_function(t) + alpha_tensor = torch.tensor(alpha, dtype=img1.dtype, device=img1.device) + frame_image = transition_images(img1, img2, alpha_tensor, transition_type, blur_radius, reverse) + out_frames.append(frame_image.cpu().unsqueeze(0)) + + # Add remaining images from images_2 after transition + if images_2.shape[0] > max_transition: + out_frames.append(images_2[max_transition:]) + + # Concatenate all frames + out = torch.cat(out_frames, dim=0) + return (out.cpu(),) + +class ShuffleImageBatch: + RETURN_TYPES = ("IMAGE",) + FUNCTION = "shuffle" + CATEGORY = "KJNodes/image" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + }, + } + + def shuffle(self, images, seed): + torch.manual_seed(seed) + B, H, W, C = images.shape + indices = torch.randperm(B) + shuffled_images = images[indices] + + return shuffled_images, + +class GetImageRangeFromBatch: + + RETURN_TYPES = ("IMAGE", "MASK", ) + FUNCTION = "imagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Returns a range of images from a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "start_index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": 1, "max": 4096, "step": 1}), + }, + "optional": { + "images": ("IMAGE",), + "masks": ("MASK",), + } + } + + def imagesfrombatch(self, start_index, num_frames, images=None, masks=None): + chosen_images = None + chosen_masks = None + + # Process images if provided + if images is not None: + if start_index == -1: + start_index = max(0, len(images) - num_frames) + if start_index < 0 or start_index >= len(images): + raise ValueError("Start index is out of range") + end_index = min(start_index + num_frames, len(images)) + chosen_images = images[start_index:end_index] + + # Process masks if provided + if masks is not None: + if start_index == -1: + start_index = max(0, len(masks) - num_frames) + if start_index < 0 or start_index >= len(masks): + raise ValueError("Start index is out of range for masks") + end_index = min(start_index + num_frames, len(masks)) + chosen_masks = masks[start_index:end_index] + + return (chosen_images, chosen_masks,) + +class ImageBatchExtendWithOverlap: + + RETURN_TYPES = ("IMAGE", "IMAGE", "IMAGE", ) + RETURN_NAMES = ("source_images", "start_images", "extended_images") + OUTPUT_TOOLTIPS = ( + "The original source images (passthrough)", + "The input images used as the starting point for extension", + "The extended images with overlap, if no new images are provided this will be empty", + ) + FUNCTION = "imagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Helper node for video generation extension +First input source and overlap amount to get the starting frames for the extension. +Then on another copy of the node provide the newly generated frames and choose how to overlap them. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "source_images": ("IMAGE", {"tooltip": "The source images to extend"}), + "overlap": ("INT", {"default": 13,"min": 1, "max": 4096, "step": 1, "tooltip": "Number of overlapping frames between source and new images"}), + "overlap_side": (["source", "new_images"], {"default": "source", "tooltip": "Which side to overlap on"}), + "overlap_mode": (["cut", "linear_blend", "ease_in_out"], {"default": "linear_blend", "tooltip": "Method to use for overlapping frames"}), + }, + "optional": { + "new_images": ("IMAGE", {"tooltip": "The new images to extend with"}), + } + } + + def imagesfrombatch(self, source_images, overlap, overlap_side, overlap_mode, new_images=None): + if overlap >= len(source_images): + return source_images, source_images, source_images + + if new_images is not None: + if source_images.shape[1:3] != new_images.shape[1:3]: + raise ValueError(f"Source and new images must have the same shape: {source_images.shape[1:3]} vs {new_images.shape[1:3]}") + # Determine where to place the overlap + prefix = source_images[:-overlap] + if overlap_side == "source": + blend_src = source_images[-overlap:] + blend_dst = new_images[:overlap] + elif overlap_side == "new_images": + blend_src = new_images[:overlap] + blend_dst = source_images[-overlap:] + suffix = new_images[overlap:] + + if overlap_mode == "linear_blend": + blended_images = [ + crossfade(blend_src[i], blend_dst[i], (i + 1) / (overlap + 1)) + for i in range(overlap) + ] + blended_images = torch.stack(blended_images, dim=0) + extended_images = torch.cat((prefix, blended_images, suffix), dim=0) + elif overlap_mode == "ease_in_out": + blended_images = [] + for i in range(overlap): + t = (i + 1) / (overlap + 1) + eased_t = ease_in_out(t) + blended_image = crossfade(blend_src[i], blend_dst[i], eased_t) + blended_images.append(blended_image) + blended_images = torch.stack(blended_images, dim=0) + extended_images = torch.cat((prefix, blended_images, suffix), dim=0) + + elif overlap_mode == "cut": + extended_images = torch.cat((prefix, suffix), dim=0) + if overlap_side == "new_images": + extended_images = torch.cat((source_images, new_images[overlap:]), dim=0) + elif overlap_side == "source": + extended_images = torch.cat((source_images[:-overlap], new_images), dim=0) + else: + extended_images = torch.zeros((1, 64, 64, 3), device="cpu") + + start_images = source_images[-overlap:] + + return (source_images, start_images, extended_images) + +class GetLatentRangeFromBatch: + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "latentsfrombatch" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Returns a range of latents from a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "latents": ("LATENT",), + "start_index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + "num_frames": ("INT", {"default": 1,"min": -1, "max": 4096, "step": 1}), + }, + } + + def latentsfrombatch(self, latents, start_index, num_frames): + chosen_latents = None + samples = latents["samples"] + if len(samples.shape) == 4: + B, C, H, W = samples.shape + num_latents = B + elif len(samples.shape) == 5: + B, C, T, H, W = samples.shape + num_latents = T + + if start_index == -1: + start_index = max(0, num_latents - num_frames) + if start_index < 0 or start_index >= num_latents: + raise ValueError("Start index is out of range") + + end_index = num_latents if num_frames == -1 else min(start_index + num_frames, num_latents) + + if len(samples.shape) == 4: + chosen_latents = samples[start_index:end_index] + elif len(samples.shape) == 5: + chosen_latents = samples[:, :, start_index:end_index] + + return ({"samples": chosen_latents.contiguous(),},) + +class InsertLatentToIndex: + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "insert" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Inserts a latent at the specified index into the original latent batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "source": ("LATENT",), + "destination": ("LATENT",), + "index": ("INT", {"default": 0,"min": -1, "max": 4096, "step": 1}), + }, + } + + def insert(self, source, destination, index): + samples_destination = destination["samples"] + samples_source = source["samples"].to(samples_destination) + + if len(samples_source.shape) == 4: + B, C, H, W = samples_source.shape + num_latents = B + elif len(samples_source.shape) == 5: + B, C, T, H, W = samples_source.shape + num_latents = T + + if index >= num_latents or index < 0: + raise ValueError(f"Index {index} out of bounds for tensor with {num_latents} latents") + + if len(samples_source.shape) == 4: + joined_latents = torch.cat([ + samples_destination[:index], + samples_source, + samples_destination[index+1:] + ], dim=0) + else: + joined_latents = torch.cat([ + samples_destination[:, :, :index], + samples_source, + samples_destination[:, :, index+1:] + ], dim=2) + + return ({"samples": joined_latents,},) + +class ImageBatchFilter: + + RETURN_TYPES = ("IMAGE", "STRING",) + RETURN_NAMES = ("images", "removed_indices",) + FUNCTION = "filter" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Removes empty images from a batch" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "empty_color": ("STRING", {"default": "0, 0, 0"}), + "empty_threshold": ("FLOAT", {"default": 0.01,"min": 0.0, "max": 1.0, "step": 0.01}), + }, + "optional": { + "replacement_image": ("IMAGE",), + } + } + + def filter(self, images, empty_color, empty_threshold, replacement_image=None): + B, H, W, C = images.shape + + input_images = images.clone() + + empty_color_list = [int(color.strip()) for color in empty_color.split(',')] + empty_color_tensor = torch.tensor(empty_color_list, dtype=torch.float32).to(input_images.device) + + color_diff = torch.abs(input_images - empty_color_tensor) + mean_diff = color_diff.mean(dim=(1, 2, 3)) + + empty_indices = mean_diff <= empty_threshold + empty_indices_string = ', '.join([str(i) for i in range(B) if empty_indices[i]]) + + if replacement_image is not None: + B_rep, H_rep, W_rep, C_rep = replacement_image.shape + replacement = replacement_image.clone() + if (H_rep != images.shape[1]) or (W_rep != images.shape[2]) or (C_rep != images.shape[3]): + replacement = common_upscale(replacement.movedim(-1, 1), W, H, "lanczos", "center").movedim(1, -1) + input_images[empty_indices] = replacement[0] + + return (input_images, empty_indices_string,) + else: + non_empty_images = input_images[~empty_indices] + return (non_empty_images, empty_indices_string,) + +class GetImagesFromBatchIndexed: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "indexedimagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Selects and returns the images at the specified indices as an image batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + }, + } + + def indexedimagesfrombatch(self, images, indexes): + + # Parse the indexes string into a list of integers + index_list = [int(index.strip()) for index in indexes.split(',')] + + # Convert list of indices to a PyTorch tensor + indices_tensor = torch.tensor(index_list, dtype=torch.long) + + # Select the images at the specified indices + chosen_images = images[indices_tensor] + + return (chosen_images,) + +class InsertImagesToBatchIndexed: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "insertimagesfrombatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Inserts images at the specified indices into the original image batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "original_images": ("IMAGE",), + "images_to_insert": ("IMAGE",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + }, + "optional": { + "mode": (["replace", "insert"],), + } + } + + def insertimagesfrombatch(self, original_images, images_to_insert, indexes, mode="replace"): + if indexes == "": + return (original_images,) + + input_images = original_images.clone() + + # Parse the indexes string into a list of integers + index_list = [int(index.strip()) for index in indexes.split(',')] + + # Convert list of indices to a PyTorch tensor + indices_tensor = torch.tensor(index_list, dtype=torch.long) + + # Ensure the images_to_insert is a tensor + if not isinstance(images_to_insert, torch.Tensor): + images_to_insert = torch.tensor(images_to_insert) + + if mode == "replace": + # Replace the images at the specified indices + for index, image in zip(indices_tensor, images_to_insert): + input_images[index] = image + else: + # Create a list to hold the new image sequence + new_images = [] + insert_offset = 0 + + for i in range(len(input_images) + len(indices_tensor)): + if insert_offset < len(indices_tensor) and i == indices_tensor[insert_offset]: + # Use modulo to cycle through images_to_insert + new_images.append(images_to_insert[insert_offset % len(images_to_insert)]) + insert_offset += 1 + else: + new_images.append(input_images[i - insert_offset]) + + # Convert the list back to a tensor + input_images = torch.stack(new_images, dim=0) + + return (input_images,) + +class PadImageBatchInterleaved: + + RETURN_TYPES = ("IMAGE", "MASK",) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "pad" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Inserts empty frames between the images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + "empty_frames_per_image": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + "pad_frame_value": ("FLOAT", {"default": 0.0,"min": 0.0, "max": 1.0, "step": 0.01}), + "add_after_last": ("BOOLEAN", {"default": False}), + }, + } + + def pad(self, images, empty_frames_per_image, pad_frame_value, add_after_last): + B, H, W, C = images.shape + + # Handle single frame case specifically + if B == 1: + total_frames = 1 + empty_frames_per_image if add_after_last else 1 + else: + # Original B images + (B-1) sets of empty frames between them + total_frames = B + (B-1) * empty_frames_per_image + # Add additional empty frames after the last image if requested + if add_after_last: + total_frames += empty_frames_per_image + + # Create new tensor with zeros (empty frames) + padded_batch = torch.ones((total_frames, H, W, C), + dtype=images.dtype, + device=images.device) * pad_frame_value + # Create mask tensor (1 for original frames, 0 for empty frames) + mask = torch.zeros((total_frames, H, W), + dtype=images.dtype, + device=images.device) + + # Fill in original images at their new positions + for i in range(B): + if B == 1: + # For single frame, just place it at the beginning + new_pos = 0 + else: + # Each image is separated by empty_frames_per_image blank frames + new_pos = i * (empty_frames_per_image + 1) + + padded_batch[new_pos] = images[i] + mask[new_pos] = 1.0 # Mark this as an original frame + + return (padded_batch, mask) + +class ReplaceImagesInBatch: + + RETURN_TYPES = ("IMAGE", "MASK",) + FUNCTION = "replace" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Replaces the images in a batch, starting from the specified start index, +with the replacement images. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "start_index": ("INT", {"default": 1,"min": 0, "max": 4096, "step": 1}), + }, + "optional": { + "original_images": ("IMAGE",), + "replacement_images": ("IMAGE",), + "original_masks": ("MASK",), + "replacement_masks": ("MASK",), + } + } + + def replace(self, original_images=None, replacement_images=None, start_index=1, original_masks=None, replacement_masks=None): + images = None + masks = None + + if original_images is not None and replacement_images is not None: + if start_index >= len(original_images): + raise ValueError("ReplaceImagesInBatch: Start index is out of range") + end_index = start_index + len(replacement_images) + if end_index > len(original_images): + raise ValueError("ReplaceImagesInBatch: End index is out of range") + + original_images_copy = original_images.clone() + if original_images_copy.shape[2] != replacement_images.shape[2] or original_images_copy.shape[3] != replacement_images.shape[3]: + replacement_images = common_upscale(replacement_images.movedim(-1, 1), original_images_copy.shape[1], original_images_copy.shape[2], "lanczos", "center").movedim(1, -1) + + original_images_copy[start_index:end_index] = replacement_images + images = original_images_copy + else: + images = torch.zeros((1, 64, 64, 3)) + + if original_masks is not None and replacement_masks is not None: + if start_index >= len(original_masks): + raise ValueError("ReplaceImagesInBatch: Start index is out of range") + end_index = start_index + len(replacement_masks) + if end_index > len(original_masks): + raise ValueError("ReplaceImagesInBatch: End index is out of range") + + original_masks_copy = original_masks.clone() + if original_masks_copy.shape[1] != replacement_masks.shape[1] or original_masks_copy.shape[2] != replacement_masks.shape[2]: + replacement_masks = common_upscale(replacement_masks.unsqueeze(1), original_masks_copy.shape[1], original_masks_copy.shape[2], "nearest-exact", "center").squeeze(0) + + original_masks_copy[start_index:end_index] = replacement_masks + masks = original_masks_copy + else: + masks = torch.zeros((1, 64, 64)) + + return (images, masks) + + +class ReverseImageBatch: + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "reverseimagebatch" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Reverses the order of the images in a batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE",), + }, + } + + def reverseimagebatch(self, images): + reversed_images = torch.flip(images, [0]) + return (reversed_images, ) + +class ImageBatchMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + + }, + "optional": { + "image_2": ("IMAGE", ), + } + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "combine" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image batch from multiple images. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, **kwargs): + from nodes import ImageBatch + image_batch_node = ImageBatch() + image = kwargs["image_1"].cpu() + first_image_shape = image.shape + for c in range(1, inputcount): + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)).cpu() + image, = image_batch_node.batch(image, new_image) + return (image,) + + +class ImageTensorList: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image1": ("IMAGE",), + "image2": ("IMAGE",), + }} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "append" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image list from the input images. +""" + + def append(self, image1, image2): + image_list = [] + if isinstance(image1, torch.Tensor) and isinstance(image2, torch.Tensor): + image_list = [image1, image2] + elif isinstance(image1, list) and isinstance(image2, torch.Tensor): + image_list = image1 + [image2] + elif isinstance(image1, torch.Tensor) and isinstance(image2, list): + image_list = [image1] + image2 + elif isinstance(image1, list) and isinstance(image2, list): + image_list = image1 + image2 + return image_list, + +class ImageAddMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + "image_2": ("IMAGE", ), + "blending": ( + [ 'add', + 'subtract', + 'multiply', + 'difference', + ], + { + "default": 'add' + }), + "blend_amount": ("FLOAT", {"default": 0.5, "min": 0, "max": 1, "step": 0.01}), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "add" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Add blends multiple images together. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def add(self, inputcount, blending, blend_amount, **kwargs): + image = kwargs["image_1"] + for c in range(1, inputcount): + new_image = kwargs[f"image_{c + 1}"] + if blending == "add": + image = torch.add(image * blend_amount, new_image * blend_amount) + elif blending == "subtract": + image = torch.sub(image * blend_amount, new_image * blend_amount) + elif blending == "multiply": + image = torch.mul(image * blend_amount, new_image * blend_amount) + elif blending == "difference": + image = torch.sub(image, new_image) + return (image,) + +class ImageConcatMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "image_1": ("IMAGE", ), + + "direction": ( + [ 'right', + 'down', + 'left', + 'up', + ], + { + "default": 'right' + }), + "match_image_size": ("BOOLEAN", {"default": False}), + }, + "optional": { + "image_2": ("IMAGE", ), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + FUNCTION = "combine" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Creates an image from multiple images. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, direction, match_image_size, **kwargs): + image = kwargs["image_1"] + first_image_shape = None + if first_image_shape is None: + first_image_shape = image.shape + for c in range(1, inputcount): + new_image = kwargs.get(f"image_{c + 1}", torch.zeros(first_image_shape)) + image, = ImageConcanate.concatenate(self, image, new_image, direction, match_image_size, first_image_shape=first_image_shape) + first_image_shape = None + return (image,) + +class PreviewAnimation: + def __init__(self): + self.output_dir = folder_paths.get_temp_directory() + self.type = "temp" + self.prefix_append = "_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for x in range(5)) + self.compress_level = 1 + + methods = {"default": 4, "fastest": 0, "slowest": 6} + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "fps": ("FLOAT", {"default": 8.0, "min": 0.01, "max": 1000.0, "step": 0.01}), + }, + "optional": { + "images": ("IMAGE", ), + "masks": ("MASK", ), + }, + } + + RETURN_TYPES = () + FUNCTION = "preview" + OUTPUT_NODE = True + CATEGORY = "KJNodes/image" + + def preview(self, fps, images=None, masks=None): + filename_prefix = "AnimPreview" + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + results = list() + + pil_images = [] + + if images is not None and masks is not None: + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + pil_images.append(img) + for mask in masks: + if pil_images: + mask_np = mask.cpu().numpy() + mask_np = np.clip(mask_np * 255, 0, 255).astype(np.uint8) # Convert to values between 0 and 255 + mask_img = Image.fromarray(mask_np, mode='L') + img = pil_images.pop(0) # Remove and get the first image + img = img.convert("RGBA") # Convert base image to RGBA + + # Create a new RGBA image based on the grayscale mask + rgba_mask_img = Image.new("RGBA", img.size, (255, 255, 255, 255)) + rgba_mask_img.putalpha(mask_img) # Use the mask image as the alpha channel + + # Composite the RGBA mask onto the base image + composited_img = Image.alpha_composite(img, rgba_mask_img) + pil_images.append(composited_img) # Add the composited image back + + elif images is not None and masks is None: + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + pil_images.append(img) + + elif masks is not None and images is None: + for mask in masks: + mask_np = 255. * mask.cpu().numpy() + mask_img = Image.fromarray(np.clip(mask_np, 0, 255).astype(np.uint8)) + pil_images.append(mask_img) + else: + print("PreviewAnimation: No images or masks provided") + return { "ui": { "images": results, "animated": (None,), "text": "empty" }} + + num_frames = len(pil_images) + + c = len(pil_images) + for i in range(0, c, num_frames): + file = f"{filename}_{counter:05}_.webp" + pil_images[i].save(os.path.join(full_output_folder, file), save_all=True, duration=int(1000.0/fps), append_images=pil_images[i + 1:i + num_frames], lossless=False, quality=50, method=0) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + counter += 1 + + animated = num_frames != 1 + return { "ui": { "images": results, "animated": (animated,), "text": [f"{num_frames}x{pil_images[0].size[0]}x{pil_images[0].size[1]}"] } } + +class ImageResizeKJ: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "upscale_method": (s.upscale_methods,), + "keep_proportion": ("BOOLEAN", { "default": False }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + }, + "optional" : { + #"width_input": ("INT", { "forceInput": True}), + #"height_input": ("INT", { "forceInput": True}), + "get_image_size": ("IMAGE",), + "crop": (["disabled","center", 0], { "tooltip": "0 will do the default center crop, this is a workaround for the widget order changing with the new frontend, as in old workflows the value of this widget becomes 0 automatically" }), + } + } + + RETURN_TYPES = ("IMAGE", "INT", "INT",) + RETURN_NAMES = ("IMAGE", "width", "height",) + FUNCTION = "resize" + CATEGORY = "KJNodes/image" + DEPRECATED = True + DESCRIPTION = """ +DEPRECATED! + +Due to ComfyUI frontend changes, this node should no longer be used, please check the +v2 of the node. This node is only kept to not completely break older workflows. + +""" + + def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, + width_input=None, height_input=None, get_image_size=None, crop="disabled"): + B, H, W, C = image.shape + + if width_input: + width = width_input + if height_input: + height = height_input + if get_image_size is not None: + _, height, width, _ = get_image_size.shape + + if keep_proportion and get_image_size is None: + # If one of the dimensions is zero, calculate it to maintain the aspect ratio + if width == 0 and height != 0: + ratio = height / H + width = round(W * ratio) + elif height == 0 and width != 0: + ratio = width / W + height = round(H * ratio) + elif width != 0 and height != 0: + # Scale based on which dimension is smaller in proportion to the desired dimensions + ratio = min(width / W, height / H) + width = round(W * ratio) + height = round(H * ratio) + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1 and get_image_size is None: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + + if crop == 0: #workaround for old workflows + crop = "center" + + image = image.movedim(-1,1) + image = common_upscale(image, width, height, upscale_method, crop) + image = image.movedim(1,-1) + + return(image, image.shape[2], image.shape[1],) + +class ImageResizeKJv2: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "upscale_method": (s.upscale_methods,), + "keep_proportion": (["stretch", "resize", "pad", "pad_edge", "pad_edge_pixel", "crop", "pillarbox_blur", "total_pixels"], { "default": False }), + "pad_color": ("STRING", { "default": "0, 0, 0", "tooltip": "Color to use for padding."}), + "crop_position": (["center", "top", "bottom", "left", "right"], { "default": "center" }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + }, + "optional" : { + "mask": ("MASK",), + "device": (["cpu", "gpu"],), + #"per_batch": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, "tooltip": "Process images in sub-batches to reduce memory usage. 0 disables sub-batching."}), + }, + "hidden": { + "unique_id": "UNIQUE_ID", + }, + } + + RETURN_TYPES = ("IMAGE", "INT", "INT", "MASK",) + RETURN_NAMES = ("IMAGE", "width", "height", "mask",) + FUNCTION = "resize" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ +Resizes the image to the specified width and height. +Size can be retrieved from the input. + +Keep proportions keeps the aspect ratio of the image, by +highest dimension. +""" + + def resize(self, image, width, height, keep_proportion, upscale_method, divisible_by, pad_color, crop_position, unique_id, device="cpu", mask=None, per_batch=64): + B, H, W, C = image.shape + + if device == "gpu": + if upscale_method == "lanczos": + raise Exception("Lanczos is not supported on the GPU") + device = model_management.get_torch_device() + else: + device = torch.device("cpu") + + pillarbox_blur = keep_proportion == "pillarbox_blur" + + # Initialize padding variables + pad_left = pad_right = pad_top = pad_bottom = 0 + + if keep_proportion in ["resize", "total_pixels"] or keep_proportion.startswith("pad") or pillarbox_blur: + if keep_proportion == "total_pixels": + total_pixels = width * height + aspect_ratio = W / H + new_height = int(math.sqrt(total_pixels / aspect_ratio)) + new_width = int(math.sqrt(total_pixels * aspect_ratio)) + + # If one of the dimensions is zero, calculate it to maintain the aspect ratio + elif width == 0 and height == 0: + new_width = W + new_height = H + elif width == 0 and height != 0: + ratio = height / H + new_width = round(W * ratio) + new_height = height + elif height == 0 and width != 0: + ratio = width / W + new_width = width + new_height = round(H * ratio) + elif width != 0 and height != 0: + ratio = min(width / W, height / H) + new_width = round(W * ratio) + new_height = round(H * ratio) + else: + new_width = width + new_height = height + + if keep_proportion.startswith("pad") or pillarbox_blur: + # Calculate padding based on position + if crop_position == "center": + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + elif crop_position == "top": + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = 0 + pad_bottom = height - new_height + elif crop_position == "bottom": + pad_left = (width - new_width) // 2 + pad_right = width - new_width - pad_left + pad_top = height - new_height + pad_bottom = 0 + elif crop_position == "left": + pad_left = 0 + pad_right = width - new_width + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + elif crop_position == "right": + pad_left = width - new_width + pad_right = 0 + pad_top = (height - new_height) // 2 + pad_bottom = height - new_height - pad_top + + width = new_width + height = new_height + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + + # Preflight estimate (log-only when batching is active) + if per_batch != 0 and B > per_batch: + try: + bytes_per_elem = image.element_size() # typically 4 for float32 + est_total_bytes = B * height * width * C * bytes_per_elem + est_mb = est_total_bytes / (1024 * 1024) + msg = f"Resize v2estimated output ~{est_mb:.2f} MB; batching {per_batch}/{B}" + if unique_id and PromptServer is not None: + try: + PromptServer.instance.send_progress_text(msg, unique_id) + except: + pass + else: + print(f"[ImageResizeKJv2] estimated output ~{est_mb:.2f} MB; batching {per_batch}/{B}") + except: + pass + + def _process_subbatch(in_image, in_mask, pad_left, pad_right, pad_top, pad_bottom): + # Avoid unnecessary clones; only move if needed + out_image = in_image if in_image.device == device else in_image.to(device) + out_mask = None if in_mask is None else (in_mask if in_mask.device == device else in_mask.to(device)) + + # Crop logic + if keep_proportion == "crop": + old_height = out_image.shape[-3] + old_width = out_image.shape[-2] + old_aspect = old_width / old_height + new_aspect = width / height + if old_aspect > new_aspect: + crop_w = round(old_height * new_aspect) + crop_h = old_height + else: + crop_w = old_width + crop_h = round(old_width / new_aspect) + if crop_position == "center": + x = (old_width - crop_w) // 2 + y = (old_height - crop_h) // 2 + elif crop_position == "top": + x = (old_width - crop_w) // 2 + y = 0 + elif crop_position == "bottom": + x = (old_width - crop_w) // 2 + y = old_height - crop_h + elif crop_position == "left": + x = 0 + y = (old_height - crop_h) // 2 + elif crop_position == "right": + x = old_width - crop_w + y = (old_height - crop_h) // 2 + out_image = out_image.narrow(-2, x, crop_w).narrow(-3, y, crop_h) + if out_mask is not None: + out_mask = out_mask.narrow(-1, x, crop_w).narrow(-2, y, crop_h) + + out_image = common_upscale(out_image.movedim(-1,1), width, height, upscale_method, crop="disabled").movedim(1,-1) + if out_mask is not None: + if upscale_method == "lanczos": + out_mask = common_upscale(out_mask.unsqueeze(1).repeat(1, 3, 1, 1), width, height, upscale_method, crop="disabled").movedim(1,-1)[:, :, :, 0] + else: + out_mask = common_upscale(out_mask.unsqueeze(1), width, height, upscale_method, crop="disabled").squeeze(1) + + # Pad logic + if (keep_proportion.startswith("pad") or pillarbox_blur) and (pad_left > 0 or pad_right > 0 or pad_top > 0 or pad_bottom > 0): + padded_width = width + pad_left + pad_right + padded_height = height + pad_top + pad_bottom + if divisible_by > 1: + width_remainder = padded_width % divisible_by + height_remainder = padded_height % divisible_by + if width_remainder > 0: + extra_width = divisible_by - width_remainder + pad_right += extra_width + if height_remainder > 0: + extra_height = divisible_by - height_remainder + pad_bottom += extra_height + + pad_mode = ( + "pillarbox_blur" if pillarbox_blur else + "edge" if keep_proportion == "pad_edge" else + "edge_pixel" if keep_proportion == "pad_edge_pixel" else + "color" + ) + out_image, out_mask = ImagePadKJ.pad(self, out_image, pad_left, pad_right, pad_top, pad_bottom, 0, pad_color, pad_mode, mask=out_mask) + + return out_image, out_mask + + # If batching disabled (per_batch==0) or batch fits, process whole batch + if per_batch == 0 or B <= per_batch: + out_image, out_mask = _process_subbatch(image, mask, pad_left, pad_right, pad_top, pad_bottom) + else: + chunks = [] + mask_chunks = [] if mask is not None else None + total_batches = (B + per_batch - 1) // per_batch + current_batch = 0 + for start_idx in range(0, B, per_batch): + current_batch += 1 + end_idx = min(start_idx + per_batch, B) + sub_img = image[start_idx:end_idx] + sub_mask = mask[start_idx:end_idx] if mask is not None else None + sub_out_img, sub_out_mask = _process_subbatch(sub_img, sub_mask, pad_left, pad_right, pad_top, pad_bottom) + chunks.append(sub_out_img.cpu()) + if mask is not None: + mask_chunks.append(sub_out_mask.cpu() if sub_out_mask is not None else None) + # Per-batch progress update + if unique_id and PromptServer is not None: + try: + PromptServer.instance.send_progress_text( + f"Resize v2batch {current_batch}/{total_batches} · images {end_idx}/{B}", + unique_id + ) + except: + pass + else: + try: + print(f"[ImageResizeKJv2] batch {current_batch}/{total_batches} · images {end_idx}/{B}") + except: + pass + out_image = torch.cat(chunks, dim=0) + if mask is not None and any(m is not None for m in mask_chunks): + out_mask = torch.cat([m for m in mask_chunks if m is not None], dim=0) + else: + out_mask = None + + # Progress UI + if unique_id and PromptServer is not None: + try: + num_elements = out_image.numel() + element_size = out_image.element_size() + memory_size_mb = (num_elements * element_size) / (1024 * 1024) + PromptServer.instance.send_progress_text( + f"Output: {out_image.shape[0]} x {out_image.shape[2]} x {out_image.shape[1]} | {memory_size_mb:.2f}MB", + unique_id + ) + except: + pass + + return (out_image.cpu(), out_image.shape[2], out_image.shape[1], out_mask.cpu() if out_mask is not None else torch.zeros(64,64, device=torch.device("cpu"), dtype=torch.float32)) + +import pathlib +class LoadAndResizeImage: + _color_channels = ["alpha", "red", "green", "blue"] + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f.name for f in pathlib.Path(input_dir).iterdir() if f.is_file()] + return {"required": + { + "image": (sorted(files), {"image_upload": True}), + "resize": ("BOOLEAN", { "default": False }), + "width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "repeat": ("INT", { "default": 1, "min": 1, "max": 4096, "step": 1, }), + "keep_proportion": ("BOOLEAN", { "default": False }), + "divisible_by": ("INT", { "default": 2, "min": 0, "max": 512, "step": 1, }), + "mask_channel": (s._color_channels, {"tooltip": "Channel to use for the mask output"}), + "background_color": ("STRING", { "default": "", "tooltip": "Fills the alpha channel with the specified color."}), + }, + } + + CATEGORY = "KJNodes/image" + RETURN_TYPES = ("IMAGE", "MASK", "INT", "INT", "STRING",) + RETURN_NAMES = ("image", "mask", "width", "height","image_path",) + FUNCTION = "load_image" + + def load_image(self, image, resize, width, height, repeat, keep_proportion, divisible_by, mask_channel, background_color): + from PIL import ImageColor, Image, ImageOps, ImageSequence + import numpy as np + import torch + image_path = folder_paths.get_annotated_filepath(image) + + import node_helpers + img = node_helpers.pillow(Image.open, image_path) + + # Process the background_color + if background_color: + try: + # Try to parse as RGB tuple + bg_color_rgba = tuple(int(x.strip()) for x in background_color.split(',')) + except ValueError: + # If parsing fails, it might be a hex color or named color + if background_color.startswith('#') or background_color.lower() in ImageColor.colormap: + bg_color_rgba = ImageColor.getrgb(background_color) + else: + raise ValueError(f"Invalid background color: {background_color}") + + bg_color_rgba += (255,) # Add alpha channel + else: + bg_color_rgba = None # No background color specified + + output_images = [] + output_masks = [] + w, h = None, None + + excluded_formats = ['MPO'] + + W, H = img.size + if resize: + if keep_proportion: + ratio = min(width / W, height / H) + width = round(W * ratio) + height = round(H * ratio) + else: + if width == 0: + width = W + if height == 0: + height = H + + if divisible_by > 1: + width = width - (width % divisible_by) + height = height - (height % divisible_by) + else: + width, height = W, H + + for frame in ImageSequence.Iterator(img): + frame = node_helpers.pillow(ImageOps.exif_transpose, frame) + + if frame.mode == 'I': + frame = frame.point(lambda i: i * (1 / 255)) + + if frame.mode == 'P': + frame = frame.convert("RGBA") + elif 'A' in frame.getbands(): + frame = frame.convert("RGBA") + + # Extract alpha channel if it exists + if 'A' in frame.getbands() and bg_color_rgba: + alpha_mask = np.array(frame.getchannel('A')).astype(np.float32) / 255.0 + alpha_mask = 1. - torch.from_numpy(alpha_mask) + bg_image = Image.new("RGBA", frame.size, bg_color_rgba) + # Composite the frame onto the background + frame = Image.alpha_composite(bg_image, frame) + else: + alpha_mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") + + image = frame.convert("RGB") + + if len(output_images) == 0: + w = image.size[0] + h = image.size[1] + + if image.size[0] != w or image.size[1] != h: + continue + if resize: + image = image.resize((width, height), Image.Resampling.BILINEAR) + + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + + c = mask_channel[0].upper() + if c in frame.getbands(): + if resize: + frame = frame.resize((width, height), Image.Resampling.BILINEAR) + mask = np.array(frame.getchannel(c)).astype(np.float32) / 255.0 + mask = torch.from_numpy(mask) + if c == 'A' and bg_color_rgba: + mask = alpha_mask + elif c == 'A': + mask = 1. - mask + else: + mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu") + + output_images.append(image) + output_masks.append(mask.unsqueeze(0)) + + if len(output_images) > 1 and img.format not in excluded_formats: + output_image = torch.cat(output_images, dim=0) + output_mask = torch.cat(output_masks, dim=0) + else: + output_image = output_images[0] + output_mask = output_masks[0] + if repeat > 1: + output_image = output_image.repeat(repeat, 1, 1, 1) + output_mask = output_mask.repeat(repeat, 1, 1) + + return (output_image, output_mask, width, height, image_path) + + + # @classmethod + # def IS_CHANGED(s, image, **kwargs): + # image_path = folder_paths.get_annotated_filepath(image) + # m = hashlib.sha256() + # with open(image_path, 'rb') as f: + # m.update(f.read()) + # return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, image): + if not folder_paths.exists_annotated_filepath(image): + return "Invalid image file: {}".format(image) + + return True + +import hashlib +class LoadImagesFromFolderKJ: + # Dictionary to store folder hashes + folder_hashes = {} + + @classmethod + def IS_CHANGED(cls, folder, **kwargs): + if not os.path.isdir(folder): + return float("NaN") + + valid_extensions = ['.jpg', '.jpeg', '.png', '.webp', '.tga'] + include_subfolders = kwargs.get('include_subfolders', False) + + file_data = [] + if include_subfolders: + for root, _, files in os.walk(folder): + for file in files: + if any(file.lower().endswith(ext) for ext in valid_extensions): + path = os.path.join(root, file) + try: + mtime = os.path.getmtime(path) + file_data.append((path, mtime)) + except OSError: + pass + else: + for file in sorted(os.listdir(folder)): + if any(file.lower().endswith(ext) for ext in valid_extensions): + path = os.path.join(folder, file) + try: + mtime = os.path.getmtime(path) + file_data.append((path, mtime)) + except OSError: + pass + + file_data.sort() + + combined_hash = hashlib.md5() + combined_hash.update(folder.encode('utf-8')) + combined_hash.update(str(len(file_data)).encode('utf-8')) + + for path, mtime in file_data: + combined_hash.update(f"{path}:{mtime}".encode('utf-8')) + + current_hash = combined_hash.hexdigest() + + old_hash = cls.folder_hashes.get(folder) + cls.folder_hashes[folder] = current_hash + + if old_hash == current_hash: + return old_hash + + return current_hash + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "folder": ("STRING", {"default": ""}), + "width": ("INT", {"default": 1024, "min": -1, "step": 1}), + "height": ("INT", {"default": 1024, "min": -1, "step": 1}), + "keep_aspect_ratio": (["crop", "pad", "stretch",],), + }, + "optional": { + "image_load_cap": ("INT", {"default": 0, "min": 0, "step": 1}), + "start_index": ("INT", {"default": 0, "min": 0, "step": 1}), + "include_subfolders": ("BOOLEAN", {"default": False}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", "INT", "STRING",) + RETURN_NAMES = ("image", "mask", "count", "image_path",) + FUNCTION = "load_images" + CATEGORY = "KJNodes/image" + DESCRIPTION = """Loads images from a folder into a batch, images are resized and loaded into a batch.""" + + def load_images(self, folder, width, height, image_load_cap, start_index, keep_aspect_ratio, include_subfolders=False): + if not os.path.isdir(folder): + raise FileNotFoundError(f"Folder '{folder} cannot be found.'") + + valid_extensions = ['.jpg', '.jpeg', '.png', '.webp', '.tga'] + image_paths = [] + if include_subfolders: + for root, _, files in os.walk(folder): + for file in files: + if any(file.lower().endswith(ext) for ext in valid_extensions): + image_paths.append(os.path.join(root, file)) + else: + for file in sorted(os.listdir(folder)): + if any(file.lower().endswith(ext) for ext in valid_extensions): + image_paths.append(os.path.join(folder, file)) + + dir_files = sorted(image_paths) + + if len(dir_files) == 0: + raise FileNotFoundError(f"No files in directory '{folder}'.") + + # start at start_index + dir_files = dir_files[start_index:] + + images = [] + masks = [] + image_path_list = [] + + limit_images = False + if image_load_cap > 0: + limit_images = True + image_count = 0 + + pbar = ProgressBar(len(dir_files)) + + for image_path in dir_files: + if os.path.isdir(image_path): + continue + if limit_images and image_count >= image_load_cap: + break + i = Image.open(image_path) + i = ImageOps.exif_transpose(i) + + # Resize image to maximum dimensions + if width == -1 and height == -1: + width = i.size[0] + height = i.size[1] + if i.size != (width, height): + i = self.resize_with_aspect_ratio(i, width, height, keep_aspect_ratio) + + + image = i.convert("RGB") + image = np.array(image).astype(np.float32) / 255.0 + image = torch.from_numpy(image)[None,] + + if 'A' in i.getbands(): + mask = np.array(i.getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(mask) + if mask.shape != (height, width): + mask = torch.nn.functional.interpolate(mask.unsqueeze(0).unsqueeze(0), + size=(height, width), + mode='bilinear', + align_corners=False).squeeze() + else: + mask = torch.zeros((height, width), dtype=torch.float32, device="cpu") + + images.append(image) + masks.append(mask) + image_path_list.append(image_path) + image_count += 1 + pbar.update(1) + + if len(images) == 1: + return (images[0], masks[0], 1, image_path_list) + + elif len(images) > 1: + image1 = images[0] + mask1 = masks[0].unsqueeze(0) + + for image2 in images[1:]: + image1 = torch.cat((image1, image2), dim=0) + + for mask2 in masks[1:]: + mask1 = torch.cat((mask1, mask2.unsqueeze(0)), dim=0) + + return (image1, mask1, len(images), image_path_list) + def resize_with_aspect_ratio(self, img, width, height, mode): + if mode == "stretch": + return img.resize((width, height), Image.Resampling.LANCZOS) + + img_width, img_height = img.size + aspect_ratio = img_width / img_height + target_ratio = width / height + + if mode == "crop": + # Calculate dimensions for center crop + if aspect_ratio > target_ratio: + # Image is wider - crop width + new_width = int(height * aspect_ratio) + img = img.resize((new_width, height), Image.Resampling.LANCZOS) + left = (new_width - width) // 2 + return img.crop((left, 0, left + width, height)) + else: + # Image is taller - crop height + new_height = int(width / aspect_ratio) + img = img.resize((width, new_height), Image.Resampling.LANCZOS) + top = (new_height - height) // 2 + return img.crop((0, top, width, top + height)) + + elif mode == "pad": + pad_color = self.get_edge_color(img) + # Calculate dimensions for padding + if aspect_ratio > target_ratio: + # Image is wider - pad height + new_height = int(width / aspect_ratio) + img = img.resize((width, new_height), Image.Resampling.LANCZOS) + padding = (height - new_height) // 2 + padded = Image.new('RGBA', (width, height), pad_color) + padded.paste(img, (0, padding)) + return padded + else: + # Image is taller - pad width + new_width = int(height * aspect_ratio) + img = img.resize((new_width, height), Image.Resampling.LANCZOS) + padding = (width - new_width) // 2 + padded = Image.new('RGBA', (width, height), pad_color) + padded.paste(img, (padding, 0)) + return padded + def get_edge_color(self, img): + from PIL import ImageStat + """Sample edges and return dominant color""" + width, height = img.size + img = img.convert('RGBA') + + # Create 1-pixel high/wide images from edges + top = img.crop((0, 0, width, 1)) + bottom = img.crop((0, height-1, width, height)) + left = img.crop((0, 0, 1, height)) + right = img.crop((width-1, 0, width, height)) + + # Combine edges into single image + edges = Image.new('RGBA', (width*2 + height*2, 1)) + edges.paste(top, (0, 0)) + edges.paste(bottom, (width, 0)) + edges.paste(left.resize((height, 1)), (width*2, 0)) + edges.paste(right.resize((height, 1)), (width*2 + height, 0)) + + # Get median color + stat = ImageStat.Stat(edges) + median = tuple(map(int, stat.median)) + return median + + +class ImageGridtoBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "columns": ("INT", {"default": 3, "min": 1, "max": 8, "tooltip": "The number of columns in the grid."}), + "rows": ("INT", {"default": 0, "min": 1, "max": 8, "tooltip": "The number of rows in the grid. Set to 0 for automatic calculation."}), + } + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "decompose" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Converts a grid of images to a batch of images." + + def decompose(self, image, columns, rows): + B, H, W, C = image.shape + print("input size: ", image.shape) + + # Calculate cell width, rounding down + cell_width = W // columns + + if rows == 0: + # If rows is 0, calculate number of full rows + rows = H // cell_height + else: + # If rows is specified, adjust cell_height + cell_height = H // rows + + # Crop the image to fit full cells + image = image[:, :rows*cell_height, :columns*cell_width, :] + + # Reshape and permute the image to get the grid + image = image.view(B, rows, cell_height, columns, cell_width, C) + image = image.permute(0, 1, 3, 2, 4, 5).contiguous() + image = image.view(B, rows * columns, cell_height, cell_width, C) + + # Reshape to the final batch tensor + img_tensor = image.view(-1, cell_height, cell_width, C) + + return (img_tensor,) + +class SaveImageKJ: + def __init__(self): + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "images": ("IMAGE", {"tooltip": "The images to save."}), + "filename_prefix": ("STRING", {"default": "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."}), + "output_folder": ("STRING", {"default": "output", "tooltip": "The folder to save the images to."}), + }, + "optional": { + "caption_file_extension": ("STRING", {"default": ".txt", "tooltip": "The extension for the caption file."}), + "caption": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), + }, + "hidden": { + "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO" + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("filename",) + FUNCTION = "save_images" + + OUTPUT_NODE = True + + CATEGORY = "KJNodes/image" + DESCRIPTION = "Saves the input images to your ComfyUI output directory." + + def save_images(self, images, output_folder, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None, caption=None, caption_file_extension=".txt"): + filename_prefix += self.prefix_append + + if os.path.isabs(output_folder): + if not os.path.exists(output_folder): + os.makedirs(output_folder, exist_ok=True) + full_output_folder = output_folder + _, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, output_folder, images[0].shape[1], images[0].shape[0]) + else: + self.output_dir = folder_paths.get_output_directory() + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0]) + + results = list() + for (batch_number, image) in enumerate(images): + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + metadata = None + if not args.disable_metadata: + metadata = PngInfo() + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + base_file_name = f"{filename_with_batch_num}_{counter:05}_" + file = f"{base_file_name}.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level) + results.append({ + "filename": file, + "subfolder": subfolder, + "type": self.type + }) + if caption is not None: + txt_file = base_file_name + caption_file_extension + file_path = os.path.join(full_output_folder, txt_file) + with open(file_path, 'w') as f: + f.write(caption) + + counter += 1 + + return file, + +class SaveStringKJ: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + self.type = "output" + self.prefix_append = "" + self.compress_level = 4 + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "string": ("STRING", {"forceInput": True, "tooltip": "string to save as .txt file"}), + "filename_prefix": ("STRING", {"default": "text", "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."}), + "output_folder": ("STRING", {"default": "output", "tooltip": "The folder to save the images to."}), + }, + "optional": { + "file_extension": ("STRING", {"default": ".txt", "tooltip": "The extension for the caption file."}), + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("filename",) + FUNCTION = "save_string" + + OUTPUT_NODE = True + + CATEGORY = "KJNodes/misc" + DESCRIPTION = "Saves the input string to your ComfyUI output directory." + + def save_string(self, string, output_folder, filename_prefix="text", file_extension=".txt"): + filename_prefix += self.prefix_append + + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + if output_folder != "output": + if not os.path.exists(output_folder): + os.makedirs(output_folder, exist_ok=True) + full_output_folder = output_folder + + base_file_name = f"{filename_prefix}_{counter:05}_" + results = list() + + txt_file = base_file_name + file_extension + file_path = os.path.join(full_output_folder, txt_file) + with open(file_path, 'w') as f: + f.write(string) + + return results, + +to_pil_image = T.ToPILImage() + +class FastPreview: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image": ("IMAGE", ), + "format": (["JPEG", "PNG", "WEBP"], {"default": "JPEG"}), + "quality" : ("INT", {"default": 75, "min": 1, "max": 100, "step": 1}), + }, + } + + RETURN_TYPES = () + FUNCTION = "preview" + CATEGORY = "KJNodes/experimental" + OUTPUT_NODE = True + DESCRIPTION = "Experimental node for faster image previews by displaying through base64 it without saving to disk." + + def preview(self, image, format, quality): + pil_image = to_pil_image(image[0].permute(2, 0, 1)) + + with io.BytesIO() as buffered: + pil_image.save(buffered, format=format, quality=quality) + img_bytes = buffered.getvalue() + + img_base64 = base64.b64encode(img_bytes).decode('utf-8') + + return { + "ui": {"bg_image": [img_base64]}, + "result": () + } + +class ImageCropByMaskAndResize: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE", ), + "mask": ("MASK", ), + "base_resolution": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "padding": ("INT", { "default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "min_crop_resolution": ("INT", { "default": 128, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "max_crop_resolution": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + + }, + } + + RETURN_TYPES = ("IMAGE", "MASK", "BBOX", ) + RETURN_NAMES = ("images", "masks", "bbox",) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + + def crop_by_mask(self, mask, padding=0, min_crop_resolution=None, max_crop_resolution=None): + iy, ix = (mask == 1).nonzero(as_tuple=True) + h0, w0 = mask.shape + + if iy.numel() == 0: + x_c = w0 / 2.0 + y_c = h0 / 2.0 + width = 0 + height = 0 + else: + x_min = ix.min().item() + x_max = ix.max().item() + y_min = iy.min().item() + y_max = iy.max().item() + + width = x_max - x_min + height = y_max - y_min + + if width > w0 or height > h0: + raise Exception("Masked area out of bounds") + + x_c = (x_min + x_max) / 2.0 + y_c = (y_min + y_max) / 2.0 + + if min_crop_resolution: + width = max(width, min_crop_resolution) + height = max(height, min_crop_resolution) + + if max_crop_resolution: + width = min(width, max_crop_resolution) + height = min(height, max_crop_resolution) + + if w0 <= width: + x0 = 0 + w = w0 + else: + x0 = max(0, x_c - width / 2 - padding) + w = width + 2 * padding + if x0 + w > w0: + x0 = w0 - w + + if h0 <= height: + y0 = 0 + h = h0 + else: + y0 = max(0, y_c - height / 2 - padding) + h = height + 2 * padding + if y0 + h > h0: + y0 = h0 - h + + return (int(x0), int(y0), int(w), int(h)) + + def crop(self, image, mask, base_resolution, padding=0, min_crop_resolution=128, max_crop_resolution=512): + mask = mask.round() + image_list = [] + mask_list = [] + bbox_list = [] + + # First, collect all bounding boxes + bbox_params = [] + aspect_ratios = [] + for i in range(image.shape[0]): + x0, y0, w, h = self.crop_by_mask(mask[i], padding, min_crop_resolution, max_crop_resolution) + bbox_params.append((x0, y0, w, h)) + aspect_ratios.append(w / h) + + # Find maximum width and height + max_w = max([w for x0, y0, w, h in bbox_params]) + max_h = max([h for x0, y0, w, h in bbox_params]) + max_aspect_ratio = max(aspect_ratios) + + # Ensure dimensions are divisible by 16 + max_w = (max_w + 15) // 16 * 16 + max_h = (max_h + 15) // 16 * 16 + # Calculate common target dimensions + if max_aspect_ratio > 1: + target_width = base_resolution + target_height = int(base_resolution / max_aspect_ratio) + else: + target_height = base_resolution + target_width = int(base_resolution * max_aspect_ratio) + + for i in range(image.shape[0]): + x0, y0, w, h = bbox_params[i] + + # Adjust cropping to use maximum width and height + x_center = x0 + w / 2 + y_center = y0 + h / 2 + + x0_new = int(max(0, x_center - max_w / 2)) + y0_new = int(max(0, y_center - max_h / 2)) + x1_new = int(min(x0_new + max_w, image.shape[2])) + y1_new = int(min(y0_new + max_h, image.shape[1])) + x0_new = x1_new - max_w + y0_new = y1_new - max_h + + cropped_image = image[i][y0_new:y1_new, x0_new:x1_new, :] + cropped_mask = mask[i][y0_new:y1_new, x0_new:x1_new] + + # Ensure dimensions are divisible by 16 + target_width = (target_width + 15) // 16 * 16 + target_height = (target_height + 15) // 16 * 16 + + cropped_image = cropped_image.unsqueeze(0).movedim(-1, 1) # Move C to the second position (B, C, H, W) + cropped_image = common_upscale(cropped_image, target_width, target_height, "lanczos", "disabled") + cropped_image = cropped_image.movedim(1, -1).squeeze(0) + + cropped_mask = cropped_mask.unsqueeze(0).unsqueeze(0) + cropped_mask = common_upscale(cropped_mask, target_width, target_height, 'bilinear', "disabled") + cropped_mask = cropped_mask.squeeze(0).squeeze(0) + + image_list.append(cropped_image) + mask_list.append(cropped_mask) + bbox_list.append((x0_new, y0_new, x1_new, y1_new)) + + + return (torch.stack(image_list), torch.stack(mask_list), bbox_list) + +class ImageCropByMask: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE", ), + "mask": ("MASK", ), + }, + } + + RETURN_TYPES = ("IMAGE", ) + RETURN_NAMES = ("image", ) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Crops the input images based on the provided mask." + + def crop(self, image, mask): + B, H, W, C = image.shape + mask = mask.round() + + # Find bounding box for each batch + crops = [] + + for b in range(B): + # Get coordinates of non-zero elements + rows = torch.any(mask[min(b, mask.shape[0]-1)] > 0, dim=1) + cols = torch.any(mask[min(b, mask.shape[0]-1)] > 0, dim=0) + + # Find boundaries + y_min, y_max = torch.where(rows)[0][[0, -1]] + x_min, x_max = torch.where(cols)[0][[0, -1]] + + # Crop image and mask + crop = image[b:b+1, y_min:y_max+1, x_min:x_max+1, :] + crops.append(crop) + + # Stack results back together + cropped_images = torch.cat(crops, dim=0) + + return (cropped_images, ) + + + +class ImageUncropByMask: + + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "destination": ("IMAGE",), + "source": ("IMAGE",), + "mask": ("MASK",), + "bbox": ("BBOX",), + }, + } + + CATEGORY = "KJNodes/image" + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "uncrop" + + def uncrop(self, destination, source, mask, bbox=None): + + output_list = [] + + B, H, W, C = destination.shape + + for i in range(source.shape[0]): + x0, y0, x1, y1 = bbox[i] + bbox_height = y1 - y0 + bbox_width = x1 - x0 + + # Resize source image to match the bounding box dimensions + #resized_source = F.interpolate(source[i].unsqueeze(0).movedim(-1, 1), size=(bbox_height, bbox_width), mode='bilinear', align_corners=False) + resized_source = common_upscale(source[i].unsqueeze(0).movedim(-1, 1), bbox_width, bbox_height, "lanczos", "disabled") + resized_source = resized_source.movedim(1, -1).squeeze(0) + + # Resize mask to match the bounding box dimensions + resized_mask = common_upscale(mask[i].unsqueeze(0).unsqueeze(0), bbox_width, bbox_height, "bilinear", "disabled") + resized_mask = resized_mask.squeeze(0).squeeze(0) + + # Calculate padding values + pad_left = x0 + pad_right = W - x1 + pad_top = y0 + pad_bottom = H - y1 + + # Pad the resized source image and mask to fit the destination dimensions + padded_source = F.pad(resized_source, pad=(0, 0, pad_left, pad_right, pad_top, pad_bottom), mode='constant', value=0) + padded_mask = F.pad(resized_mask, pad=(pad_left, pad_right, pad_top, pad_bottom), mode='constant', value=0) + + # Ensure the padded mask has the correct shape + padded_mask = padded_mask.unsqueeze(2).expand(-1, -1, destination[i].shape[2]) + # Ensure the padded source has the correct shape + padded_source = padded_source.unsqueeze(2).expand(-1, -1, -1, destination[i].shape[2]).squeeze(2) + + # Combine the destination and padded source images using the mask + result = destination[i] * (1.0 - padded_mask) + padded_source * padded_mask + + output_list.append(result) + + + return (torch.stack(output_list),) + +class ImageCropByMaskBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "masks": ("MASK", ), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }), + "padding": ("INT", {"default": 0, "min": 0, "max": 4096, "step": 1, }), + "preserve_size": ("BOOLEAN", {"default": False}), + "bg_color": ("STRING", {"default": "0, 0, 0", "tooltip": "Color as RGB values in range 0-255, separated by commas."}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", ) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "crop" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Crops the input images based on the provided masks." + + def crop(self, image, masks, width, height, bg_color, padding, preserve_size): + B, H, W, C = image.shape + BM, HM, WM = masks.shape + mask_count = BM + if HM != H or WM != W: + masks = F.interpolate(masks.unsqueeze(1), size=(H, W), mode='nearest-exact').squeeze(1) + print(masks.shape) + output_images = [] + output_masks = [] + + bg_color = [int(x.strip())/255.0 for x in bg_color.split(",")] + + # For each mask + for i in range(mask_count): + curr_mask = masks[i] + + # Find bounds + y_indices, x_indices = torch.nonzero(curr_mask, as_tuple=True) + if len(y_indices) == 0 or len(x_indices) == 0: + continue + + # Get exact bounds with padding + min_y = max(0, y_indices.min().item() - padding) + max_y = min(H, y_indices.max().item() + 1 + padding) + min_x = max(0, x_indices.min().item() - padding) + max_x = min(W, x_indices.max().item() + 1 + padding) + + # Ensure mask has correct shape for multiplication + curr_mask = curr_mask.unsqueeze(-1).expand(-1, -1, C) + + # Crop image and mask together + cropped_img = image[0, min_y:max_y, min_x:max_x, :] + cropped_mask = curr_mask[min_y:max_y, min_x:max_x, :] + + crop_h, crop_w = cropped_img.shape[0:2] + new_w = crop_w + new_h = crop_h + + if not preserve_size or crop_w > width or crop_h > height: + scale = min(width/crop_w, height/crop_h) + new_w = int(crop_w * scale) + new_h = int(crop_h * scale) + + # Resize RGB + resized_img = common_upscale(cropped_img.permute(2,0,1).unsqueeze(0), new_w, new_h, "lanczos", "disabled").squeeze(0).permute(1,2,0) + resized_mask = torch.nn.functional.interpolate( + cropped_mask.permute(2,0,1).unsqueeze(0), + size=(new_h, new_w), + mode='nearest' + ).squeeze(0).permute(1,2,0) + else: + resized_img = cropped_img + resized_mask = cropped_mask + + # Create empty tensors + new_img = torch.zeros((height, width, 3), dtype=image.dtype) + new_mask = torch.zeros((height, width), dtype=image.dtype) + + # Pad both + pad_x = (width - new_w) // 2 + pad_y = (height - new_h) // 2 + new_img[pad_y:pad_y+new_h, pad_x:pad_x+new_w, :] = resized_img + if len(resized_mask.shape) == 3: + resized_mask = resized_mask[:,:,0] # Take first channel if 3D + new_mask[pad_y:pad_y+new_h, pad_x:pad_x+new_w] = resized_mask + + output_images.append(new_img) + output_masks.append(new_mask) + + if not output_images: + return (torch.zeros((0, height, width, 3), dtype=image.dtype),) + + out_rgb = torch.stack(output_images, dim=0) + out_masks = torch.stack(output_masks, dim=0) + + # Apply mask to RGB + mask_expanded = out_masks.unsqueeze(-1).expand(-1, -1, -1, 3) + background_color = torch.tensor(bg_color, dtype=torch.float32, device=image.device) + out_rgb = out_rgb * mask_expanded + background_color * (1 - mask_expanded) + + return (out_rgb, out_masks) + +class ImagePadKJ: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "image": ("IMAGE", ), + "left": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "right": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "top": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "bottom": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "extra_padding": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1, }), + "pad_mode": (["edge", "edge_pixel", "color", "pillarbox_blur"],), + "color": ("STRING", {"default": "0, 0, 0", "tooltip": "Color as RGB values in range 0-255, separated by commas."}), + }, + "optional": { + "mask": ("MASK", ), + "target_width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, "forceInput": True}), + "target_height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1, "forceInput": True}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK", ) + RETURN_NAMES = ("images", "masks",) + FUNCTION = "pad" + CATEGORY = "KJNodes/image" + DESCRIPTION = "Pad the input image and optionally mask with the specified padding." + + def pad(self, image, left, right, top, bottom, extra_padding, color, pad_mode, mask=None, target_width=None, target_height=None): + B, H, W, C = image.shape + # Resize masks to image dimensions if necessary + if mask is not None: + BM, HM, WM = mask.shape + if HM != H or WM != W: + mask = F.interpolate(mask.unsqueeze(1), size=(H, W), mode='nearest-exact').squeeze(1) + + # Parse background color + bg_color = [int(x.strip())/255.0 for x in color.split(",")] + if len(bg_color) == 1: + bg_color = bg_color * 3 # Grayscale to RGB + bg_color = torch.tensor(bg_color, dtype=image.dtype, device=image.device) + + # Calculate padding sizes with extra padding + if target_width is not None and target_height is not None: + if extra_padding > 0: + image = common_upscale(image.movedim(-1, 1), W - extra_padding, H - extra_padding, "lanczos", "disabled").movedim(1, -1) + B, H, W, C = image.shape + + padded_width = target_width + padded_height = target_height + pad_left = (padded_width - W) // 2 + pad_right = padded_width - W - pad_left + pad_top = (padded_height - H) // 2 + pad_bottom = padded_height - H - pad_top + else: + pad_left = left + extra_padding + pad_right = right + extra_padding + pad_top = top + extra_padding + pad_bottom = bottom + extra_padding + + padded_width = W + pad_left + pad_right + padded_height = H + pad_top + pad_bottom + + # Pillarbox blur mode + if pad_mode == "pillarbox_blur": + def _gaussian_blur_nchw(img_nchw, sigma_px): + if sigma_px <= 0: + return img_nchw + radius = max(1, int(3.0 * float(sigma_px))) + k = 2 * radius + 1 + x = torch.arange(-radius, radius + 1, device=img_nchw.device, dtype=img_nchw.dtype) + k1 = torch.exp(-(x * x) / (2.0 * float(sigma_px) * float(sigma_px))) + k1 = k1 / k1.sum() + kx = k1.view(1, 1, 1, k) + ky = k1.view(1, 1, k, 1) + c = img_nchw.shape[1] + kx = kx.repeat(c, 1, 1, 1) + ky = ky.repeat(c, 1, 1, 1) + img_nchw = F.conv2d(img_nchw, kx, padding=(0, radius), groups=c) + img_nchw = F.conv2d(img_nchw, ky, padding=(radius, 0), groups=c) + return img_nchw + + out_image = torch.zeros((B, padded_height, padded_width, C), dtype=image.dtype, device=image.device) + for b in range(B): + scale_fill = max(padded_width / float(W), padded_height / float(H)) if (W > 0 and H > 0) else 1.0 + bg_w = max(1, int(round(W * scale_fill))) + bg_h = max(1, int(round(H * scale_fill))) + src_b = image[b].movedim(-1, 0).unsqueeze(0) + bg = common_upscale(src_b, bg_w, bg_h, "bilinear", crop="disabled") + y0 = max(0, (bg_h - padded_height) // 2) + x0 = max(0, (bg_w - padded_width) // 2) + y1 = min(bg_h, y0 + padded_height) + x1 = min(bg_w, x0 + padded_width) + bg = bg[:, :, y0:y1, x0:x1] + if bg.shape[2] != padded_height or bg.shape[3] != padded_width: + pad_h = padded_height - bg.shape[2] + pad_w = padded_width - bg.shape[3] + pad_top_fix = max(0, pad_h // 2) + pad_bottom_fix = max(0, pad_h - pad_top_fix) + pad_left_fix = max(0, pad_w // 2) + pad_right_fix = max(0, pad_w - pad_left_fix) + bg = F.pad(bg, (pad_left_fix, pad_right_fix, pad_top_fix, pad_bottom_fix), mode="replicate") + sigma = max(1.0, 0.006 * float(min(padded_height, padded_width))) + bg = _gaussian_blur_nchw(bg, sigma_px=sigma) + if C >= 3: + r, g, bch = bg[:, 0:1], bg[:, 1:2], bg[:, 2:3] + luma = 0.2126 * r + 0.7152 * g + 0.0722 * bch + gray = torch.cat([luma, luma, luma], dim=1) + desat = 0.20 + rgb = torch.cat([r, g, bch], dim=1) + rgb = rgb * (1.0 - desat) + gray * desat + bg[:, 0:3, :, :] = rgb + dim = 0.35 + bg = torch.clamp(bg * dim, 0.0, 1.0) + out_image[b] = bg.squeeze(0).movedim(0, -1) + out_image[:, pad_top:pad_top+H, pad_left:pad_left+W, :] = image + # Mask handling for pillarbox_blur + if mask is not None: + fg_mask = mask + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + out_masks[:, pad_top:pad_top+H, pad_left:pad_left+W] = fg_mask + else: + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + out_masks[:, pad_top:pad_top+H, pad_left:pad_left+W] = 0.0 + return (out_image, out_masks) + + # Standard pad logic (edge/color) + out_image = torch.zeros((B, padded_height, padded_width, C), dtype=image.dtype, device=image.device) + for b in range(B): + if pad_mode == "edge": + # Pad with edge color (mean) + top_edge = image[b, 0, :, :] + bottom_edge = image[b, H-1, :, :] + left_edge = image[b, :, 0, :] + right_edge = image[b, :, W-1, :] + out_image[b, :pad_top, :, :] = top_edge.mean(dim=0) + out_image[b, pad_top+H:, :, :] = bottom_edge.mean(dim=0) + out_image[b, :, :pad_left, :] = left_edge.mean(dim=0) + out_image[b, :, pad_left+W:, :] = right_edge.mean(dim=0) + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + elif pad_mode == "edge_pixel": + # Pad with exact edge pixel values + for y in range(pad_top): + out_image[b, y, pad_left:pad_left+W, :] = image[b, 0, :, :] + for y in range(pad_top+H, padded_height): + out_image[b, y, pad_left:pad_left+W, :] = image[b, H-1, :, :] + for x in range(pad_left): + out_image[b, pad_top:pad_top+H, x, :] = image[b, :, 0, :] + for x in range(pad_left+W, padded_width): + out_image[b, pad_top:pad_top+H, x, :] = image[b, :, W-1, :] + out_image[b, :pad_top, :pad_left, :] = image[b, 0, 0, :] + out_image[b, :pad_top, pad_left+W:, :] = image[b, 0, W-1, :] + out_image[b, pad_top+H:, :pad_left, :] = image[b, H-1, 0, :] + out_image[b, pad_top+H:, pad_left+W:, :] = image[b, H-1, W-1, :] + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + else: + # Pad with specified background color + out_image[b, :, :, :] = bg_color.unsqueeze(0).unsqueeze(0) + out_image[b, pad_top:pad_top+H, pad_left:pad_left+W, :] = image[b] + + if mask is not None: + out_masks = torch.nn.functional.pad( + mask, + (pad_left, pad_right, pad_top, pad_bottom), + mode='replicate' + ) + else: + out_masks = torch.ones((B, padded_height, padded_width), dtype=image.dtype, device=image.device) + for m in range(B): + out_masks[m, pad_top:pad_top+H, pad_left:pad_left+W] = 0.0 + + return (out_image, out_masks) + +# extends https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite +class LoadVideosFromFolder: + @classmethod + def __init__(cls): + try: + cls.vhs_nodes = importlib.import_module("ComfyUI-VideoHelperSuite.videohelpersuite") + except ImportError: + try: + cls.vhs_nodes = importlib.import_module("comfyui-videohelpersuite.videohelpersuite") + except ImportError: + # Fallback to sys.modules search for Windows compatibility + import sys + vhs_module = None + for module_name in sys.modules: + if 'videohelpersuite' in module_name and 'videohelpersuite' in sys.modules[module_name].__dict__: + vhs_module = sys.modules[module_name] + break + + if vhs_module is None: + # Try direct access to the videohelpersuite submodule + for module_name in sys.modules: + if module_name.endswith('videohelpersuite'): + vhs_module = sys.modules[module_name] + break + + if vhs_module is not None: + cls.vhs_nodes = vhs_module + else: + raise ImportError("This node requires ComfyUI-VideoHelperSuite to be installed.") + + except ImportError: + raise ImportError("This node requires ComfyUI-VideoHelperSuite to be installed.") + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video": ("STRING", {"default": "X://insert/path/"},), + "force_rate": ("FLOAT", {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": 4096, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": 4096, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": 10000, "step": 1, "disable": 0}), + "skip_first_frames": ("INT", {"default": 0, "min": 0, "max": 10000, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": 1000, "step": 1}), + "output_type": (["batch", "grid"], {"default": "batch"}), + "grid_max_columns": ("INT", {"default": 4, "min": 1, "max": 16, "step": 1, "disable": 1}), + "add_label": ( "BOOLEAN", {"default": False} ), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "KJNodes/misc" + + RETURN_TYPES = ("IMAGE", ) + RETURN_NAMES = ("IMAGE", ) + + FUNCTION = "load_video" + + def load_video(self, output_type, grid_max_columns, add_label=False, **kwargs): + if self.vhs_nodes is None: + raise ImportError("This node requires ComfyUI-VideoHelperSuite to be installed.") + videos_list = [] + filenames = [] + for f in sorted(os.listdir(kwargs['video'])): + if os.path.isfile(os.path.join(kwargs['video'], f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1].lower() in ['webm', 'mp4', 'mkv', 'gif', 'mov']): + videos_list.append(os.path.join(kwargs['video'], f)) + filenames.append(f) + print(videos_list) + kwargs.pop('video') + loaded_videos = [] + for idx, video in enumerate(videos_list): + video_tensor = self.vhs_nodes.load_video_nodes.load_video(video=video, **kwargs)[0] + if add_label: + # Add filename label above video (without extension) + if video_tensor.dim() == 4: + _, h, w, c = video_tensor.shape + else: + h, w, c = video_tensor.shape + # Remove extension from filename + label_text = filenames[idx].rsplit('.', 1)[0] + font_size = max(16, w // 20) + try: + font = ImageFont.truetype("arial.ttf", font_size) + except: + font = ImageFont.load_default() + dummy_img = Image.new("RGB", (w, 10), (0,0,0)) + draw = ImageDraw.Draw(dummy_img) + text_bbox = draw.textbbox((0,0), label_text, font=font) + extra_padding = max(12, font_size // 2) # More padding under the font + label_height = text_bbox[3] - text_bbox[1] + extra_padding + label_img = Image.new("RGB", (w, label_height), (0,0,0)) + draw = ImageDraw.Draw(label_img) + draw.text((w//2 - (text_bbox[2]-text_bbox[0])//2, 4), label_text, font=font, fill=(255,255,255)) + label_np = np.asarray(label_img).astype(np.float32) / 255.0 + label_tensor = torch.from_numpy(label_np) + if c == 1: + label_tensor = label_tensor.mean(dim=2, keepdim=True) + elif c == 4: + alpha = torch.ones((label_height, w, 1), dtype=label_tensor.dtype) + label_tensor = torch.cat([label_tensor, alpha], dim=2) + if video_tensor.dim() == 4: + label_tensor = label_tensor.unsqueeze(0).expand(video_tensor.shape[0], -1, -1, -1) + video_tensor = torch.cat([label_tensor, video_tensor], dim=1) + else: + video_tensor = torch.cat([label_tensor, video_tensor], dim=0) + loaded_videos.append(video_tensor) + if output_type == "batch": + out_tensor = torch.cat(loaded_videos) + elif output_type == "grid": + rows = (len(loaded_videos) + grid_max_columns - 1) // grid_max_columns + # Pad the last row if needed + total_slots = rows * grid_max_columns + while len(loaded_videos) < total_slots: + loaded_videos.append(torch.zeros_like(loaded_videos[0])) + # Create grid by rows + row_tensors = [] + for row_idx in range(rows): + start_idx = row_idx * grid_max_columns + end_idx = start_idx + grid_max_columns + row_videos = loaded_videos[start_idx:end_idx] + # Pad all videos in this row to the same height + heights = [v.shape[1] for v in row_videos] + max_height = max(heights) + padded_row_videos = [] + for v in row_videos: + pad_height = max_height - v.shape[1] + if pad_height > 0: + # Pad (frames, H, W, C) or (H, W, C) + if v.dim() == 4: + pad = (0,0, 0,0, 0,pad_height, 0,0) # (C,W,H,F) + v = torch.nn.functional.pad(v, (0,0,0,0,0,pad_height,0,0)) + else: + v = torch.nn.functional.pad(v, (0,0,0,0,pad_height,0)) + padded_row_videos.append(v) + row_tensor = torch.cat(padded_row_videos, dim=2) # Concatenate horizontally + row_tensors.append(row_tensor) + out_tensor = torch.cat(row_tensors, dim=1) # Concatenate rows vertically + print(out_tensor.shape) + return out_tensor, + + @classmethod + def IS_CHANGED(s, video, **kwargs): + if s.vhs_nodes is not None: + return s.vhs_nodes.utils.hash_path(video) + return None diff --git a/docs/hel-892/multivideo-reference/sources.json b/docs/hel-892/multivideo-reference/sources.json new file mode 100644 index 00000000..a2520c0f --- /dev/null +++ b/docs/hel-892/multivideo-reference/sources.json @@ -0,0 +1,175 @@ +{ + "sources": [ + { + "id": "concat", + "file": "__init__.py", + "local_file": "concat____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825" + }, + { + "id": "concat", + "file": "nodes/image_nodes.py", + "local_file": "concat__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687", + "git_blob_sha1": "320a95339ac5a4576e9f9550905473d28a76dbc0" + }, + { + "id": "concat", + "file": "web/js/jsnodes.js", + "local_file": "concat__web__js__jsnodes.js", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7", + "git_blob_sha1": "c391bd55dc3c94ee81dc8d2f96462c03ed684279" + }, + { + "id": "concat", + "file": "LICENSE", + "local_file": "concat__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE", + "commit": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "resize", + "file": "__init__.py", + "local_file": "resize____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c", + "git_blob_sha1": "0dfde533b157265472d32774ced0741ce75a8825" + }, + { + "id": "resize", + "file": "nodes/image_nodes.py", + "local_file": "resize__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee", + "git_blob_sha1": "8de598ebfce304e41b2da906a5f5a6a64df56ce7" + }, + { + "id": "resize", + "file": "LICENSE", + "local_file": "resize__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE", + "commit": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "load", + "file": "__init__.py", + "local_file": "load____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041" + }, + { + "id": "load", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "load__videohelpersuite__load_video_nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963", + "git_blob_sha1": "409e59a48fca2632dc65d961d5ff08c2c517e36e" + }, + { + "id": "load", + "file": "videohelpersuite/nodes.py", + "local_file": "load__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_blob_sha1": "f40461e7b9b9e01a4d4eb1453f95aef26be9be97" + }, + { + "id": "load", + "file": "videohelpersuite/utils.py", + "local_file": "load__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_blob_sha1": "75431d5a9e151ae50257d3fd14c03ffbc7570d39" + }, + { + "id": "load", + "file": "web/js/VHS.core.js", + "local_file": "load__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97", + "git_blob_sha1": "adcce3ecdfc1a4b98a246a2b84a141ed1278f7f6" + }, + { + "id": "load", + "file": "LICENSE", + "local_file": "load__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE", + "commit": "8550981384301e9bc5bfea83e5c2c75258102593", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "combine", + "file": "__init__.py", + "local_file": "combine____init__.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_blob_sha1": "9fa995f0ac7e296a62bcba9df68b5250a0f7d041" + }, + { + "id": "combine", + "file": "videohelpersuite/nodes.py", + "local_file": "combine__videohelpersuite__nodes.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d", + "git_blob_sha1": "920bac90807e4b1beca83615ef45c4ca8546783f" + }, + { + "id": "combine", + "file": "videohelpersuite/utils.py", + "local_file": "combine__videohelpersuite__utils.py", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/utils.py", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "737ad04961da91c52c1fc918c427b7683fdbc209f8a767b173cf2a9331f4cc71", + "git_blob_sha1": "f17ed7c4028b6fcf1d52272fed07438b95ebdd7a" + }, + { + "id": "combine", + "file": "web/js/VHS.core.js", + "local_file": "combine__web__js__VHS.core.js", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad", + "git_blob_sha1": "dceb9774acf51707d7caf2fbc6b707868e5a2fa9" + }, + { + "id": "combine", + "file": "video_formats/h264-mp4.json", + "local_file": "combine__video_formats__h264-mp4.json", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288", + "git_blob_sha1": "c591b5b6c4604276d86a6b6bd453cf44fb74566d" + }, + { + "id": "combine", + "file": "LICENSE", + "local_file": "combine__LICENSE", + "url": "https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE", + "commit": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + } + ] +} diff --git a/docs/hel-892/watermark-document-evidence/delivery-summary.md b/docs/hel-892/watermark-document-evidence/delivery-summary.md index 1bed31b2..00213ddb 100644 --- a/docs/hel-892/watermark-document-evidence/delivery-summary.md +++ b/docs/hel-892/watermark-document-evidence/delivery-summary.md @@ -4,7 +4,7 @@ PR #25:https://gitea.xbay.cc/leefer/aigc-home/pulls/25;分支agent/agent/a64 - 新增一图56顶层标量保存位置、0注释,17节点/15物理边/17个mode0。三LoadImage各2、Camera28、CR9、孤海13;九实体原[]零位置、两个Reroute缺键分列。其它155审校对象和旧24块665+16逐对象不变;25图721+16仅参考展示,155完整定稿0/必要实跑0/本轮新增转换0。 - 生产只在fixed_document.py增加精确路径与硬编码定义digest,在source_reviews.json增加该图块。绑定源SHA1、原字节SHA256、全图规范摘要与定义digest;调用方重算摘要不能扩信任。转换执行链、资格、registry/object_info/client/output/worker、163原图收件、28profiles/9候选hash/六差分及Drawer整文件冻结。 -- 准确core v0.25.0→135abed8da169e33ab0b86550e05e3ae55d6df8c、CR d78b780ae43fcf8c6b7c6505e6ffb4584281ceca、孤海0b267384faaa9201c821c68dfa3dacd784da171d、Camera c461dedc6ce65e1defe7308e97e7081cedcaf2a7;11份Git文本按tree blob核验。7份Registry2.0.38必要文本按SHA固定、ZIP读取校验CRC;HTTP Range只读取中央目录/文本,不下载包内素材。LayerStyle Git commit绑定unknown,blind-watermark未锁版本,未借其它版本填算法/容量/鲁棒性。35条引用包含复用原frontend1.43.17固定参考,非本图宿主身份;local_file以docs/hel-892/watermark-document-evidence为基准。 +- 准确core v0.25.0→135abed8da169e33ab0b86550e05e3ae55d6df8c、CR d78b780ae43fcf8c6b7c6505e6ffb4584281ceca、孤海0b267384faaa9201c821c68dfa3dacd784da171d、Camera c461dedc6ce65e1defe7308e97e7081cedcaf2a7;12份Git文本按tree blob核验。6份Registry2.0.38必要文本按SHA固定、ZIP读取校验CRC;HTTP Range只读取中央目录/文本,不下载包内素材。LayerStyle Git commit绑定unknown,blind-watermark未锁版本,未借其它版本填算法/容量/鲁棒性。版本元数据JSON单列;35条引用包含复用原frontend1.43.17的7个唯一raw固定参考,非本图宿主身份;local_file以docs/hel-892/watermark-document-evidence为基准。 - 中文重点:同一底图经Reroute12并行四路,没有顺序叠加;Show16对另载图10独立提取,不是刚写出图片。盲水印仅按固定包讲wm_size/灰度/YCbCr U通道/批次复用、临时文件/WaterMark接口/异常回退;内部算法和目标依赖未知。CR white忽略HEX、center忽略边距、逐批处理;show_help未接只帮助字符串。孤海未接水印图时文字支路,平铺false仍旋转60度,间距22仅平铺时按底图高度百分比作用,输出false转RGB。Camera27服务端控件与额外randomize分开;未接EXIF时六手工文案回退,保存seed非最终提交seed;尺寸/字体按min(1,图宽/1200)缩放,第1布局不用bar_width/height。三MASK未接,无SaveImage,六预览只temp PNG/UI,不称永久导出。 - 首次专项406通过。最终受影响后台432通过=406新增专项+26回归,0失败/1既有依赖弃用warning;没有机械跑全后台/前端/冻结转换套件。历史全后台5个基线失败沿用上批记录,本轮未复测,不称全仓全绿。新检查覆盖每值/类型/说明篡改、身份/模式/UE、15双向端点、错图/摘要/引用、缺键与[]/null/{}区别和所有旧块互换拒绝。历史测试仅拓展集合边界,旧字段语义/拒绝断言未移除。 - 真实11938ca隔离库仅1update/154skip/1excluded,其余154整行不变;重导155skip、回退精确恢复、再导1update;升级前后用户编辑各1conflict/154skip,保护全部29列。新155/排除1、16pending_check/139needs_conversion、1217/3660/294保持,全停用/未检查,定稿/实跑时间戳空。wheel/sdist三资源原字节一致,191冻结资源及Drawer不变,双次定义和文档生成差分零。 @@ -14,3 +14,5 @@ PR #25:https://gitea.xbay.cc/leefer/aigc-home/pulls/25;分支agent/agent/a64 复现入口:validation-commands.txt,含本图完整专项、受影响回归、真实旧库升级/保护、包字节与确定性、双尺寸GET浏览。完整中文在四种水印固定参考中文说明.md,实际doc在actual-图像4种添加水印节点.json。 剩余真实环境待办:155全量说明定稿与必要实跑、145UI中9参考候选/136关闭仍原状;本图真实前端/UE恢复、动态图片/字体/logo成员/许可、依赖/尺寸条件/权限与实际水印效果未知。本轮不索取机器窗口、不连接目标、不停TTS、不启ComfyUI、不提交prompt、不执行插件/算法/媒体、不下载权重/字体/logo、不新增依赖/付费、不写在线库、不合并部署。总管统一安排后续核对与审核发布。 + +本段来源计数于多视频分屏批次按source-check.json勘误;旧运行日志、旧说明块及其受信摘要均未修改。 diff --git a/docs/hel-892/多视频分屏固定参考中文说明.md b/docs/hel-892/多视频分屏固定参考中文说明.md new file mode 100644 index 00000000..44d96186 --- /dev/null +++ b/docs/hel-892/多视频分屏固定参考中文说明.md @@ -0,0 +1,2697 @@ +# 多视频分屏固定参考中文说明 + +新增99保存位置(92标量含4null+7完整历史对象)/0注释;旧25图721+16逐对象不变。26图820+16仅参考展示,155完整定稿0、实跑0、新增转换0。 + +复用SQLite→GET→既有抽屉,仅新增受信说明块与摘要;来源local_file以docs/hel-892/multivideo-document-evidence为基准。 + +上批计数勘误:watermark source-check.json实际12 Git+6 Registry发布包文本,版本元数据JSON单列;复用前端为7个唯一raw。旧日志与旧实际说明块保留。 + +## 多视频合成分屏展示 + +这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。 + +声明提交源码仅作固定参考;活动10缺必需第一路、上半mode4旁路、音频未接,未实跑、转换保持关闭。 + +源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json` + +SHA1:e5eb21854fe2919519247b4d69957dbca00b88e0 + +原字节SHA256:3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7 + +规范全图SHA256:1920161949401e21c194b4b6f05f3a954c64fcd7fc74b42db0c764469e395b07 + +concat准确完整提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;注册/schema/实现和许可独立固定,不跨版本混用。 + +resize准确完整提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;注册/schema/实现和许可独立固定,不跨版本混用。 + +load准确完整提交8550981384301e9bc5bfea83e5c2c75258102593;注册/schema/实现和许可独立固定,不跨版本混用。 + +combine准确完整提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;注册/schema/实现和许可独立固定,不跨版本混用。 + +源无frontendVersion;LG仅渲染器标记,UE7.5.1/Bypasser7.5.2仅源状态;Bypasser提供方/版本与当前动态作用未知,固定文本不是目标安装或运行证明。 + +### 具体连线与处理条件 + +这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。 + +上半mode4节点为2/1/3/7/5/8/6/4,物理支路4→5、6→7、5+7→1、8+1→2→3。不能模拟旁路追线,也不把8或1补连活动10。 + +下半mode0节点10/11/12/17/18/16;活动11第一输入17、第二输入16,direction=down;11输出接10.image_2,10保存left但image_1原link=null。Concat准确schema必需image_1,实现直接kwargs["image_1"];仅后续缺输入回退零张量,不能套给第一路。宿主验证/报错细节未运行确认。 + +拼接是空间拼接,不是视频首尾相接;match_image_size=true时down以第一幅宽为准、left以第一幅高为准,另一边按比例int计算。短批次重复末帧补齐到较长批次,不保证时间同步。四个null槽只作按钮候选。 + +两个Resize5/7均mode4,保存512×896/lanczos/crop/0, 0, 0/center/32/cpu;crop先按32向下取整,再round算裁切区,居中切片后缩放。crop不走pad颜色填充;gpu+lanczos源码明确抛错。两width/height UE可连声明保持,物理link均null。 + +五LoadVideo均force_rate16、width/height0、nth1、AnimateDiff。17及4 cap161/skip25;16/6/8 cap0/skip0。采样后skip→nth→cap,实际帧数/源FPS/素材尺寸未知;AnimateDiff target_rate8不等于Python强制把16覆盖为8,动态格式回调和UE恢复未知。 + +两Combine3/12均保存16/loop0/WanVideo_SCAIL/h264-mp4/yuv420p/CRF19/save_metadata=true/trim_to_audio=false/pingpong=false/save_output=false;帧率均无外线覆盖。两audio、meta_batch、vae均未接,五加载器音频出口均未接,不称音画自动同步或保留原声音。 + +H264视频分支使用libx264及模板颜色参数,尺寸可能按dim_alignment默认2补边;save_metadata控制视频元数据,VHS_MetadataImage默认true独立控制首帧PNG。save_output=false选择temp仍可能写文件;VHS_KeepIntermediate按条件清中间文件,不是禁止落盘。 + +trim_to_audio=false只在有效音频波形存在时影响apad/-shortest混流;当前audio无源线,不编AAC成品或保留原音。loop0不追加视频循环,pingpong=false不追加往返,源路径和16fps不保证时长或输出。 + +7个完整历史预览对象逐节点纯文本保留:3与12的旧D盘temp路径对象完全相同也不去重;4/6/8/17/16保留各自input缓存。hidden/paused/params均保存,不请求api/view、图片或视频,也不验证路径存在。 + +Bypasser18原缺widgets_values键,不能改成[]、null或{}。没有提供方/版本声明,类名不证明注册或当前动态开关;matchColors/matchTitle/showNav/showAllGraphs/sort/customSortAlphabet/toggleRestriction仅源保存状态,不推算执行作用。 + +源无frontendVersion,workflowRendererVersion=LG不当版本;通常UE7.5.1,Bypasser7.5.2,extra.ue_links及links_added_by_ue原[]。空表不证明无回调影响,未加载宿主或UE,不调查旧别名或目标机器。 + +素材目录、动态选项、源尺寸/FPS、编解码器、权限和真实效果未知;源无模型节点,不编模型依赖。只固定准确声明提交文本,不执行插件/模型/媒体探测/ffmpeg,不修复源图,不构造prompt。 + +源物理边:[2, 2, 0, 3, 0, "IMAGE"] + +源物理边:[3, 4, 0, 5, 0, "IMAGE"] + +源物理边:[5, 6, 0, 7, 0, "IMAGE"] + +源物理边:[11, 5, 0, 1, 0, "IMAGE"] + +源物理边:[12, 7, 0, 1, 1, "IMAGE"] + +源物理边:[15, 8, 0, 2, 0, "IMAGE"] + +源物理边:[16, 1, 0, 2, 1, "IMAGE"] + +源物理边:[18, 11, 0, 10, 1, "IMAGE"] + +源物理边:[21, 10, 0, 12, 0, "IMAGE"] + +源物理边:[24, 16, 0, 11, 1, "IMAGE"] + +源物理边:[25, 17, 0, 11, 0, "IMAGE"] + +节点2 ImageConcatMulti mode=4;保存位置=4;原properties={"cnr_id": "comfyui-kjnodes", "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}, "Node name for S&R": "ImageConcatMulti"} + +节点1 ImageConcatMulti mode=4;保存位置=4;原properties={"cnr_id": "comfyui-kjnodes", "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}, "Node name for S&R": "ImageConcatMulti"} + +节点3 VHS_VideoCombine mode=4;保存位置=11;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", "Node name for S&R": "VHS_VideoCombine", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点7 ImageResizeKJv2 mode=4;保存位置=8;原properties={"cnr_id": "comfyui-kjnodes", "ver": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", "Node name for S&R": "ImageResizeKJv2", "ue_properties": {"widget_ue_connectable": {"width": true, "height": true}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点5 ImageResizeKJv2 mode=4;保存位置=8;原properties={"cnr_id": "comfyui-kjnodes", "ver": "50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b", "Node name for S&R": "ImageResizeKJv2", "ue_properties": {"widget_ue_connectable": {"width": true, "height": true}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点8 VHS_LoadVideo mode=4;保存位置=9;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "8550981384301e9bc5bfea83e5c2c75258102593", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点6 VHS_LoadVideo mode=4;保存位置=9;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "8550981384301e9bc5bfea83e5c2c75258102593", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点4 VHS_LoadVideo mode=4;保存位置=9;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "8550981384301e9bc5bfea83e5c2c75258102593", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点10 ImageConcatMulti mode=0;保存位置=4;原properties={"cnr_id": "comfyui-kjnodes", "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}, "Node name for S&R": "ImageConcatMulti"} + +节点11 ImageConcatMulti mode=0;保存位置=4;原properties={"cnr_id": "comfyui-kjnodes", "ver": "ff7f876c09ff5a53be051073c3c1731b96ee31a3", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}, "Node name for S&R": "ImageConcatMulti"} + +节点12 VHS_VideoCombine mode=0;保存位置=11;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "0a75c7958fe320efcb052f1d9f8451fd20c730a8", "Node name for S&R": "VHS_VideoCombine", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点17 VHS_LoadVideo mode=0;保存位置=9;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "8550981384301e9bc5bfea83e5c2c75258102593", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +节点18 Fast Groups Bypasser (rgthree) mode=0;保存位置=缺widgets_values键;原properties={"matchColors": "", "matchTitle": "", "showNav": true, "showAllGraphs": true, "sort": "position", "customSortAlphabet": "", "toggleRestriction": "default", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}} + +节点16 VHS_LoadVideo mode=0;保存位置=9;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "8550981384301e9bc5bfea83e5c2c75258102593", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "version": "7.5.1", "input_ue_unconnectable": {}}} + +### 使用与核对 + +这张图保存多路视频的空间分屏配置,上半8个节点为mode4旁路。下半活动物理边17→11.image_1、16→11.image_2、11→10.image_2、10→12.images;10.image_1原link=null,缺必需第一路输入,不能称三屏完整可执行。11向下拼、10向左拼;17跳过25帧/上限161,16不跳过/不设此上限,均force16。两合成音频均未接,不能称保留原声音;save_output=false仍可能写temp视频和首帧PNG。7个预览仅历史缓存;未实跑,转换保持关闭。 + +素材要求:源引用的多路视频只作纯文本,未读取/上传/探测;无模型节点,不编模型依赖。 + +操作1:保持停用,先读mode4上半与mode0下半的区别;10.image_1未接,不将旁路组补接或称三屏可运行。 + +操作2:核11的down和10的left空间位置、首路/次路顺序、短批次末帧补齐条件;活动下半没有经过Resize5/7。 + +操作3:分别核17 cap161/skip25与16 cap0/skip0、force16;采样起点不同,不把帧率视作自动同步保证。 + +操作4:核两个合成audio未接、temp选择及独立首帧PNG条件;历史D盘路径只作保存缓存,不访问或当成当前结果。 + +常见问题:缺第一路不能靠inputcount2或后续零张量回退解决;短视频末尾停住可能来自末帧重复。crop不加黑边、lanczos不支持gpu均以固定实现为参考,实际效果未测。 + +目标宿主/UE、动态格式、素材尺寸/目录、权限/编码器与真实效果待后续核对;本轮只GET说明,无prompt/新候选/实跑,155完整定稿0。 + +### 逐保存位置说明 + +#### 1. 节点2 · 拼接输入数量(inputcount) + +四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。 + +```json +2 +``` + +类:ImageConcatMulti;JSON类型:int;角色:scalar。 + +源位置:`/nodes/0/widgets_values/0` + +定义默认:2;单位:路 + +范围/条件:2~1000,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 2. 节点2 · 空间拼接方向(direction) + +1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。 + +```json +"left" +``` + +类:ImageConcatMulti;JSON类型:str;角色:scalar。 + +源位置:`/nodes/0/widgets_values/1` + +定义默认:right;单位:方向 + +范围/条件:right/down/left/up + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 3. 节点2 · 匹配图像尺寸(match_image_size) + +保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。 + +```json +true +``` + +类:ImageConcatMulti;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/0/widgets_values/2` + +定义默认:false;单位:布尔 + +范围/条件:true/false + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 4. 节点2 · 额外null保存位置(按钮候选)(saved_position_3) + +本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。 + +```json +null +``` + +类:ImageConcatMulti;JSON类型:NoneType;角色:frontend_state_unknown。 + +源位置:`/nodes/0/widgets_values/3` + +定义默认:服务端无此参数;本提交JS创建null按钮;单位:未知 + +范围/条件:原值null;不同于缺键/[]/{} + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [2] 本提交Update inputs按钮值null;不证明未知宿主第4位置身份;web/js/jsnodes.js 36~65行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py + +#### 5. 节点1 · 拼接输入数量(inputcount) + +四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。 + +```json +2 +``` + +类:ImageConcatMulti;JSON类型:int;角色:scalar。 + +源位置:`/nodes/1/widgets_values/0` + +定义默认:2;单位:路 + +范围/条件:2~1000,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 6. 节点1 · 空间拼接方向(direction) + +1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。 + +```json +"down" +``` + +类:ImageConcatMulti;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/1` + +定义默认:right;单位:方向 + +范围/条件:right/down/left/up + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 7. 节点1 · 匹配图像尺寸(match_image_size) + +保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。 + +```json +true +``` + +类:ImageConcatMulti;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/1/widgets_values/2` + +定义默认:false;单位:布尔 + +范围/条件:true/false + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 8. 节点1 · 额外null保存位置(按钮候选)(saved_position_3) + +本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。 + +```json +null +``` + +类:ImageConcatMulti;JSON类型:NoneType;角色:frontend_state_unknown。 + +源位置:`/nodes/1/widgets_values/3` + +定义默认:服务端无此参数;本提交JS创建null按钮;单位:未知 + +范围/条件:原值null;不同于缺键/[]/{} + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [2] 本提交Update inputs按钮值null;不证明未知宿主第4位置身份;web/js/jsnodes.js 36~65行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py + +#### 9. 节点3 · 合成播放帧率(frame_rate) + +两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。 + +```json +16 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/frame_rate` + +定义默认:8;单位:帧/秒 + +范围/条件:min1,step1;无schema max + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 10. 节点3 · 视频额外循环(loop_count) + +保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。 + +```json +0 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/loop_count` + +定义默认:0;单位:循环 + +范围/条件:0~100,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 11. 节点3 · 输出文件名前缀(filename_prefix) + +保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。 + +```json +"WanVideo_SCAIL" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/2/widgets_values/filename_prefix` + +定义默认:AnimateDiff;单位:路径前缀 + +范围/条件:无schema长度范围;目录权限未知 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 12. 节点3 · 合成输出格式(format) + +保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。 + +```json +"video/h264-mp4" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/2/widgets_values/format` + +定义默认:列表首项image/gif;动态视频格式无固定目标默认;单位:格式 + +范围/条件:image/gif、image/webp及动态FFmpeg模板 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 13. 节点3 · 视频像素格式(pix_fmt) + +保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。 + +```json +"yuv420p" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/2/widgets_values/pix_fmt` + +定义默认:首项yuv420p;单位:像素格式 + +范围/条件:yuv420p/yuv420p10le + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 14. 节点3 · H264质量参数(crf) + +保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。 + +```json +19 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/crf` + +定义默认:19;单位:CRF + +范围/条件:模板0~100,step1;编码器可接受范围另待核 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 15. 节点3 · 视频元数据开关(save_metadata) + +保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。 + +```json +true +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/2/widgets_values/save_metadata` + +定义默认:true;单位:布尔 + +范围/条件:true/false;视频模板条件 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 16. 节点3 · 按音频条件裁切(trim_to_audio) + +保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/2/widgets_values/trim_to_audio` + +定义默认:false;单位:布尔 + +范围/条件:仅audio波形有效才进入混流 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 17. 节点3 · 追加往返帧(pingpong) + +保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/2/widgets_values/pingpong` + +定义默认:false;单位:布尔 + +范围/条件:true/false;meta_batch兼容受实现限制 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 18. 节点3 · 保存目录选择(save_output) + +保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/2/widgets_values/save_output` + +定义默认:true;单位:布尔 + +范围/条件:true→output;false→temp;均可能写文件 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 19. 节点3 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } +} +``` + +类:VHS_VideoCombine;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/2/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [19] 0a75c795完整历史预览对象保存;web/js/VHS.core.js 805~865行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 20. 节点7 · 目标宽度(width) + +两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。 + +```json +512 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源位置:`/nodes/3/widgets_values/0` + +定义默认:512;单位:像素 + +范围/条件:0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 21. 节点7 · 目标高度(height) + +两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。 + +```json +896 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源位置:`/nodes/3/widgets_values/1` + +定义默认:512;单位:像素 + +范围/条件:0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 22. 节点7 · 缩放插值方法(upscale_method) + +保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。 + +```json +"lanczos" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/3/widgets_values/2` + +定义默认:无显式default;列表首项nearest-exact;单位:插值方式 + +范围/条件:nearest-exact/bilinear/area/bicubic/lanczos + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 23. 节点7 · 比例与裁切模式(keep_proportion) + +保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。 + +```json +"crop" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/3/widgets_values/3` + +定义默认:schema显式false(不在选项中);真实恢复默认未知;单位:模式 + +范围/条件:stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 24. 节点7 · 填充背景色(pad_color) + +保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。 + +```json +"0, 0, 0" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/3/widgets_values/4` + +定义默认:0, 0, 0;单位:RGB字符串 + +范围/条件:schema无字符串范围;填充色解析受实现约束 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 25. 节点7 · 裁切位置(crop_position) + +保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。 + +```json +"center" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/3/widgets_values/5` + +定义默认:center;单位:位置 + +范围/条件:center/top/bottom/left/right + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 26. 节点7 · 尺寸整除因数(divisible_by) + +保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。 + +```json +32 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源位置:`/nodes/3/widgets_values/6` + +定义默认:2;单位:像素因数 + +范围/条件:0~512,step1;>1才取整 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 27. 节点7 · 缩放设备(device) + +保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。 + +```json +"cpu" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/3/widgets_values/7` + +定义默认:schema无显式default,首项cpu;函数默认cpu;单位:设备 + +范围/条件:cpu/gpu + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 28. 节点5 · 目标宽度(width) + +两节点保存512;crop用目标宽高比裁切,0在此分支回退原宽,再按divisible_by向下取整。UE声明width可连,但源link=null;不是运行512像素保证。 + +```json +512 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源位置:`/nodes/4/widgets_values/0` + +定义默认:512;单位:像素 + +范围/条件:0~核心MAX_RESOLUTION(导入常量,本图未声明核心版本,数值上限未知),step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 29. 节点5 · 目标高度(height) + +两节点保存896;crop按目标比例裁切,0回退原高。512与896均已被32整除;源素材尺寸和旁路执行未知。UE声明height可连且源link=null。 + +```json +896 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源位置:`/nodes/4/widgets_values/1` + +定义默认:512;单位:像素 + +范围/条件:0~核心MAX_RESOLUTION(核心版本未知,数值上限未知),step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 30. 节点5 · 缩放插值方法(upscale_method) + +保存lanczos;裁切后由common_upscale缩放,CPU分支可用,准确实现gpu+lanczos会抛错。本轮不执行,不断言目标效果。 + +```json +"lanczos" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/2` + +定义默认:无显式default;列表首项nearest-exact;单位:插值方式 + +范围/条件:nearest-exact/bilinear/area/bicubic/lanczos + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 31. 节点5 · 比例与裁切模式(keep_proportion) + +保存crop;此分支先回退0尺寸并做divisible_by取整,再比较原图/目标宽高比,round计算裁切区域,最后缩放至目标尺寸。与resize/pad分支的min比例缩放不同。 + +```json +"crop" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/3` + +定义默认:schema显式false(不在选项中);真实恢复默认未知;单位:模式 + +范围/条件:stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 32. 节点5 · 填充背景色(pad_color) + +保存0, 0, 0黑色。只在pad或pillarbox_blur的有填充条件使用;当前crop分支不以此填充黑边,不称输出必有黑底。 + +```json +"0, 0, 0" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/4` + +定义默认:0, 0, 0;单位:RGB字符串 + +范围/条件:schema无字符串范围;填充色解析受实现约束 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 33. 节点5 · 裁切位置(crop_position) + +保存center;crop时按裁切宽高差//2居中定位,图像和可选mask一起切片;源mask未接,不编遮罩输入。 + +```json +"center" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/5` + +定义默认:center;单位:位置 + +范围/条件:center/top/bottom/left/right + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 34. 节点5 · 尺寸整除因数(divisible_by) + +保存32;width -= width % 32,height同理,向下取整而非四舍五入。512×896在该步不变;不保证素材尺寸或活动下半分支经过此缩放。 + +```json +32 +``` + +类:ImageResizeKJv2;JSON类型:int;角色:scalar。 + +源位置:`/nodes/4/widgets_values/6` + +定义默认:2;单位:像素因数 + +范围/条件:0~512,step1;>1才取整 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 35. 节点5 · 缩放设备(device) + +保存cpu,准确实现选择torch.device(cpu);gpu才取宿主设备,且lanczos不支持gpu。两个Resize均mode4,不代表本轮执行CPU处理。 + +```json +"cpu" +``` + +类:ImageResizeKJv2;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/7` + +定义默认:schema无显式default,首项cpu;函数默认cpu;单位:设备 + +范围/条件:cpu/gpu + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [4] 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 2550~2790行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py +- [5] 准确Resize v2注册与导入;__init__.py 1~100行;commit 50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +#### 36. 节点8 · 视频文件引用(video) + +只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。 + +```json +"WanVideo_SCAIL_00006.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/5/widgets_values/video` + +定义默认:input目录动态枚举,无固定默认;单位:引用 + +范围/条件:普通文件扩展webm/mp4/mkv/gif/mov + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 37. 节点8 · 加载重采样帧率(force_rate) + +五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/5/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0不强制重采样 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 38. 节点8 · 自定义加载宽度(custom_width) + +五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/5/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 39. 节点8 · 自定义加载高度(custom_height) + +五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/5/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 40. 节点8 · 加载帧数上限(frame_load_cap) + +节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/5/widgets_values/frame_load_cap` + +定义默认:0;单位:加载帧 + +范围/条件:0~2**53-1,step1;0不设该上限 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 41. 节点8 · 跳过起始采样帧(skip_first_frames) + +4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/5/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~2**53-1,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 42. 节点8 · 间隔抽取采样帧(select_every_nth) + +均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/5/widgets_values/select_every_nth` + +定义默认:1;单位:间隔 + +范围/条件:1~2**53-1,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 43. 节点8 · 加载格式约束(format) + +保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/5/widgets_values/format` + +定义默认:AnimateDiff;单位:格式 + +范围/条件:内置与动态核心扩展;目标选项未知 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 44. 节点8 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": true, + "params": { + "filename": "WanVideo_SCAIL_00006.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/5/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [11] 85509813历史预览对象保存;web/js/VHS.core.js 915~970行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js +- [10] 85509813包内字典保存恢复,不证明未知宿主/UE次序;web/js/VHS.core.js 41~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 45. 节点6 · 视频文件引用(video) + +只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。 + +```json +"onetotall_pose_00001.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/6/widgets_values/video` + +定义默认:input目录动态枚举,无固定默认;单位:引用 + +范围/条件:普通文件扩展webm/mp4/mkv/gif/mov + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 46. 节点6 · 加载重采样帧率(force_rate) + +五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/6/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0不强制重采样 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 47. 节点6 · 自定义加载宽度(custom_width) + +五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/6/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 48. 节点6 · 自定义加载高度(custom_height) + +五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/6/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 49. 节点6 · 加载帧数上限(frame_load_cap) + +节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/6/widgets_values/frame_load_cap` + +定义默认:0;单位:加载帧 + +范围/条件:0~2**53-1,step1;0不设该上限 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 50. 节点6 · 跳过起始采样帧(skip_first_frames) + +4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/6/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~2**53-1,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 51. 节点6 · 间隔抽取采样帧(select_every_nth) + +均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/6/widgets_values/select_every_nth` + +定义默认:1;单位:间隔 + +范围/条件:1~2**53-1,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 52. 节点6 · 加载格式约束(format) + +保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/6/widgets_values/format` + +定义默认:AnimateDiff;单位:格式 + +范围/条件:内置与动态核心扩展;目标选项未知 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 53. 节点6 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/6/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [11] 85509813历史预览对象保存;web/js/VHS.core.js 915~970行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js +- [10] 85509813包内字典保存恢复,不证明未知宿主/UE次序;web/js/VHS.core.js 41~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 54. 节点4 · 视频文件引用(video) + +只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。 + +```json +"@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/7/widgets_values/video` + +定义默认:input目录动态枚举,无固定默认;单位:引用 + +范围/条件:普通文件扩展webm/mp4/mkv/gif/mov + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 55. 节点4 · 加载重采样帧率(force_rate) + +五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0不强制重采样 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 56. 节点4 · 自定义加载宽度(custom_width) + +五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 57. 节点4 · 自定义加载高度(custom_height) + +五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 58. 节点4 · 加载帧数上限(frame_load_cap) + +节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。 + +```json +161 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/frame_load_cap` + +定义默认:0;单位:加载帧 + +范围/条件:0~2**53-1,step1;0不设该上限 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 59. 节点4 · 跳过起始采样帧(skip_first_frames) + +4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。 + +```json +25 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~2**53-1,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 60. 节点4 · 间隔抽取采样帧(select_every_nth) + +均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/select_every_nth` + +定义默认:1;单位:间隔 + +范围/条件:1~2**53-1,step1 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 61. 节点4 · 加载格式约束(format) + +保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/7/widgets_values/format` + +定义默认:AnimateDiff;单位:格式 + +范围/条件:内置与动态核心扩展;目标选项未知 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 62. 节点4 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/7/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=4;上半mode4旁路组,不能当活动正常分支结果。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [11] 85509813历史预览对象保存;web/js/VHS.core.js 915~970行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js +- [10] 85509813包内字典保存恢复,不证明未知宿主/UE次序;web/js/VHS.core.js 41~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 63. 节点10 · 拼接输入数量(inputcount) + +四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。 + +```json +2 +``` + +类:ImageConcatMulti;JSON类型:int;角色:scalar。 + +源位置:`/nodes/8/widgets_values/0` + +定义默认:2;单位:路 + +范围/条件:2~1000,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 64. 节点10 · 空间拼接方向(direction) + +1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。 + +```json +"left" +``` + +类:ImageConcatMulti;JSON类型:str;角色:scalar。 + +源位置:`/nodes/8/widgets_values/1` + +定义默认:right;单位:方向 + +范围/条件:right/down/left/up + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 65. 节点10 · 匹配图像尺寸(match_image_size) + +保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。 + +```json +true +``` + +类:ImageConcatMulti;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/8/widgets_values/2` + +定义默认:false;单位:布尔 + +范围/条件:true/false + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 66. 节点10 · 额外null保存位置(按钮候选)(saved_position_3) + +本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。 + +```json +null +``` + +类:ImageConcatMulti;JSON类型:NoneType;角色:frontend_state_unknown。 + +源位置:`/nodes/8/widgets_values/3` + +定义默认:服务端无此参数;本提交JS创建null按钮;单位:未知 + +范围/条件:原值null;不同于缺键/[]/{} + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [2] 本提交Update inputs按钮值null;不证明未知宿主第4位置身份;web/js/jsnodes.js 36~65行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py + +#### 67. 节点11 · 拼接输入数量(inputcount) + +四节点均保存2。必需image_1由kwargs直接索引;仅image_2等后续缺输入有零张量回退,不能据此补足10缺失的第一路。 + +```json +2 +``` + +类:ImageConcatMulti;JSON类型:int;角色:scalar。 + +源位置:`/nodes/9/widgets_values/0` + +定义默认:2;单位:路 + +范围/条件:2~1000,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 68. 节点11 · 空间拼接方向(direction) + +1/11保存down,第二幅在第一幅下方;2/10保存left,第二幅在第一幅左方。活动11第一路17、第二路16;10第一路未接,不能宣称实际三屏结果。 + +```json +"down" +``` + +类:ImageConcatMulti;JSON类型:str;角色:scalar。 + +源位置:`/nodes/9/widgets_values/1` + +定义默认:right;单位:方向 + +范围/条件:right/down/left/up + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 69. 节点11 · 匹配图像尺寸(match_image_size) + +保存true;down匹配第一幅宽、left匹配第一幅高,另一边按第二幅比例int取整,lanczos/disabled缩放。短批次重复末帧到较长批次;通道差异用1补齐,不是音画时间同步。 + +```json +true +``` + +类:ImageConcatMulti;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/9/widgets_values/2` + +定义默认:false;单位:布尔 + +范围/条件:true/false + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [1] 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 220~325行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py +- [3] 准确Concat注册与image_nodes导入;__init__.py 1~100行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +#### 70. 节点11 · 额外null保存位置(按钮候选)(saved_position_3) + +本提交创建Update inputs按钮并按inputcount增删IMAGE口,但源无frontendVersion;第4位置仅按钮候选,宿主恢复与UE影响未知,不当执行参数。 + +```json +null +``` + +类:ImageConcatMulti;JSON类型:NoneType;角色:frontend_state_unknown。 + +源位置:`/nodes/9/widgets_values/3` + +定义默认:服务端无此参数;本提交JS创建null按钮;单位:未知 + +范围/条件:原值null;不同于缺键/[]/{} + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [2] 本提交Update inputs按钮值null;不证明未知宿主第4位置身份;web/js/jsnodes.js 36~65行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js +- [0] 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 2344~2391行;commit ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py + +#### 71. 节点12 · 合成播放帧率(frame_rate) + +两个合成均保存16且帧率外线未接;播放采样帧率并不保证素材时长、两路起点一致或音画同步。历史缓存16不是当前产物。 + +```json +16 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/10/widgets_values/frame_rate` + +定义默认:8;单位:帧/秒 + +范围/条件:min1,step1;无schema max + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 72. 节点12 · 视频额外循环(loop_count) + +保存0,视频分支不添加loop滤镜;不是GIF loop=0无限循环规则。 + +```json +0 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/10/widgets_values/loop_count` + +定义默认:0;单位:循环 + +范围/条件:0~100,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 73. 节点12 · 输出文件名前缀(filename_prefix) + +保存WanVideo_SCAIL,参与目录和递增编号计算;不是已有文件,也不等于历史缓存00004。 + +```json +"WanVideo_SCAIL" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/10/widgets_values/filename_prefix` + +定义默认:AnimateDiff;单位:路径前缀 + +范围/条件:无schema长度范围;目录权限未知 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 74. 节点12 · 合成输出格式(format) + +保存video/h264-mp4,准确模板调用libx264并配置颜色转换及bt709颜色标记。编码器可用性、动态成员和源色彩未知,未执行FFmpeg。 + +```json +"video/h264-mp4" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/10/widgets_values/format` + +定义默认:列表首项image/gif;动态视频格式无固定目标默认;单位:格式 + +范围/条件:image/gif、image/webp及动态FFmpeg模板 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 75. 节点12 · 视频像素格式(pix_fmt) + +保存yuv420p,交给H264模板;视频分支按模板dim_alignment(默认2)按需补边,真实输出尺寸未知。 + +```json +"yuv420p" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/10/widgets_values/pix_fmt` + +定义默认:首项yuv420p;单位:像素格式 + +范围/条件:yuv420p/yuv420p10le + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 76. 节点12 · H264质量参数(crf) + +保存19,交给libx264 -crf。一般降低值可提高质量并增大体积;模板上限100不证明编码器接受100,真实效果未测。 + +```json +19 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/10/widgets_values/crf` + +定义默认:19;单位:CRF + +范围/条件:模板0~100,step1;编码器可接受范围另待核 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 77. 节点12 · 视频元数据开关(save_metadata) + +保存true,模板展开str后控制ffmpeg元数据分支;独立首帧PNG由VHS_MetadataImage默认true另控。不是关闭此值即可禁止文件或首帧PNG。 + +```json +true +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/10/widgets_values/save_metadata` + +定义默认:true;单位:布尔 + +范围/条件:true/false;视频模板条件 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 78. 节点12 · 按音频条件裁切(trim_to_audio) + +保存false,模板转成字符串False;有有效音频时加apad=whole_dur(输出帧数/合成FPS+1)并-shortest。本图两audio均未接,此分支无源音频输入,不能称保留原声音。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/10/widgets_values/trim_to_audio` + +定义默认:false;单位:布尔 + +范围/条件:仅audio波形有效才进入混流 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 79. 节点12 · 追加往返帧(pingpong) + +保存false不追加往返帧;不代表原片没有倒放,不自动修复缺失第一路或保证时长。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/10/widgets_values/pingpong` + +定义默认:false;单位:布尔 + +范围/条件:true/false;meta_batch兼容受实现限制 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 80. 节点12 · 保存目录选择(save_output) + +保存false选择temp,不是禁止落盘。按输入/编码条件可能写视频与独立首帧workflow PNG;VHS_MetadataImage和VHS_KeepIntermediate另有条件。本轮仅GET,不生成文件。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/10/widgets_values/save_output` + +定义默认:true;单位:布尔 + +范围/条件:true→output;false→temp;均可能写文件 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [13] 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 207~395行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [14] 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 395~592行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [15] 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 40~160行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [16] 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 1~14行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json +- [17] 准确VideoCombine注册;videohelpersuite/nodes.py 979~1010行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py +- [20] 0a75c795格式改变重建额外控件;web/js/VHS.core.js 1103~1149行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 81. 节点12 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "filename": "WanVideo_SCAIL_00004.mp4", + "subfolder": "", + "type": "temp", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "WanVideo_SCAIL_00004.png", + "fullpath": "D:\\AI\\ComfyUI_cu128\\ComfyUI\\temp\\WanVideo_SCAIL_00004.mp4" + } +} +``` + +类:VHS_VideoCombine;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/10/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [19] 0a75c795完整历史预览对象保存;web/js/VHS.core.js 805~865行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js +- [18] 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 31~158行;commit 0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +#### 82. 节点17 · 视频文件引用(video) + +只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。 + +```json +"@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/11/widgets_values/video` + +定义默认:input目录动态枚举,无固定默认;单位:引用 + +范围/条件:普通文件扩展webm/mp4/mkv/gif/mov + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 83. 节点17 · 加载重采样帧率(force_rate) + +五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/11/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0不强制重采样 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 84. 节点17 · 自定义加载宽度(custom_width) + +五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/11/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 85. 节点17 · 自定义加载高度(custom_height) + +五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/11/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 86. 节点17 · 加载帧数上限(frame_load_cap) + +节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。 + +```json +161 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/11/widgets_values/frame_load_cap` + +定义默认:0;单位:加载帧 + +范围/条件:0~2**53-1,step1;0不设该上限 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 87. 节点17 · 跳过起始采样帧(skip_first_frames) + +4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。 + +```json +25 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/11/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~2**53-1,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 88. 节点17 · 间隔抽取采样帧(select_every_nth) + +均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/11/widgets_values/select_every_nth` + +定义默认:1;单位:间隔 + +范围/条件:1~2**53-1,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 89. 节点17 · 加载格式约束(format) + +保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/11/widgets_values/format` + +定义默认:AnimateDiff;单位:格式 + +范围/条件:内置与动态核心扩展;目标选项未知 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 90. 节点17 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": true, + "params": { + "filename": "@宸荨樱桃 我就是 总一个人从午夜到清晨~ 2K.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 161, + "skip_first_frames": 25, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/11/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [11] 85509813历史预览对象保存;web/js/VHS.core.js 915~970行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js +- [10] 85509813包内字典保存恢复,不证明未知宿主/UE次序;web/js/VHS.core.js 41~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 91. 节点16 · 视频文件引用(video) + +只保留各节点独立文件引用,不读取素材,不证明输入目录存在、上传成功或素材有音轨。 + +```json +"onetotall_pose_00001.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/13/widgets_values/video` + +定义默认:input目录动态枚举,无固定默认;单位:引用 + +范围/条件:普通文件扩展webm/mp4/mkv/gif/mov + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 92. 节点16 · 加载重采样帧率(force_rate) + +五节点保存16;采样时间间隔1/16,按源帧时间选择帧,仍受源FPS/时长/内存限制。不是原片FPS已知或音画自动同步保证。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/13/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0不强制重采样 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 93. 节点16 · 自定义加载宽度(custom_width) + +五节点保存0;两边0从媒体尺寸出发仍受格式dim规则,单边非0按比例推算另一边。未探测素材,不保证原尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/13/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 94. 节点16 · 自定义加载高度(custom_height) + +五节点保存0;AnimateDiff的dim(8,0,512,512)约束仍适用,素材真实高度未知,不把0当输出0像素。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/13/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;schema未声明step;0不指定 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 95. 节点16 · 加载帧数上限(frame_load_cap) + +节点4/17保存161,6/8/16保存0;限制取出的帧数,不保证有161帧。0仍受源长度、内存和格式规则限制。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/13/widgets_values/frame_load_cap` + +定义默认:0;单位:加载帧 + +范围/条件:0~2**53-1,step1;0不设该上限 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 96. 节点16 · 跳过起始采样帧(skip_first_frames) + +4/17保存25,6/8/16保存0;强制采样后计数跳过,先skip后nth/cap。音频参考起点skip×target_frame_time;本图音频全未接,不等于混流。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/13/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~2**53-1,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 97. 节点16 · 间隔抽取采样帧(select_every_nth) + +均保存1,不再隔帧抽取;改变此值会改变loaded_fps和音频时长参数,不能自动同步不同素材。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/13/widgets_values/select_every_nth` + +定义默认:1;单位:间隔 + +范围/条件:1~2**53-1,step1 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 98. 节点16 · 加载格式约束(format) + +保存AnimateDiff,内置target_rate8及dim8;Python采样接收force_rate16,不据target_rate把保存16改为8。包内动态回调、宿主/UE恢复次序未知。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/13/widgets_values/format` + +定义默认:AnimateDiff;单位:格式 + +范围/条件:内置与动态核心扩展;目标选项未知 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [6] 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 22~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [7] 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 315~475行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py +- [9] BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 17~56行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py +- [8] 准确LoadVideo注册;videohelpersuite/nodes.py 1024~1055行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py +- [12] 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 1222~1282行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +#### 99. 节点16 · 历史预览完整对象(videopreview) + +只代表保存的历史预览,不当当前产物/可达性/帧率/时长证明。7对象逐节点保留,两个相同D盘temp完整对象不去重,不请求api/view或图片视频。 + +```json +{ + "hidden": false, + "paused": true, + "params": { + "filename": "onetotall_pose_00001.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/13/widgets_values/videopreview` + +定义默认:无服务端默认;单位:完整对象 + +范围/条件:hidden/paused/params整体保留;嵌套不重复计数 + +源mode=0;下半mode0活动保存态;10.image_1原link=null,链路缺必需输入,未实跑。无frontendVersion;LG仅渲染器标记。UE空表不证明无回调影响,恢复/钩子次序未知,保存位置解释不构造prompt。 + +依据: +- [11] 85509813历史预览对象保存;web/js/VHS.core.js 915~970行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js +- [10] 85509813包内字典保存恢复,不证明未知宿主/UE次序;web/js/VHS.core.js 41~168行;commit 8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +### 零保存节点与源注释 + +18 Fast Groups Bypasser (rgthree):原缺widgets_values键,提供方/版本未声明;原组控制属性仅源状态,注册与动态开关/执行作用未知。 + +### 固定原件索引 + +0. 准确Concat schema及必需kwargs[image_1],仅后续缺输入零张量回退;nodes/image_nodes.py 第2344~2391行;提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py + +1. 空间拼接方向、匹配第一图尺寸、短批次末帧补齐与通道补齐;nodes/image_nodes.py 第220~325行;提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 70703981d7b36ab4b5e667dd2af6bfa5aa5a3384817eb3156660f9f740cda687;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/nodes/image_nodes.py + +2. 本提交Update inputs按钮值null;不证明未知宿主第4位置身份;web/js/jsnodes.js 第36~65行;提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 646a6289a5713cd64c52882b494a0240a35b496a41e6c55f5a7af8e45f9d01f7;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/web/js/jsnodes.js + +3. 准确Concat注册与image_nodes导入;__init__.py 第1~100行;提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +4. 准确Resize v2 schema、cpu/lanczos、32向下取整、居中crop及返回槽;nodes/image_nodes.py 第2550~2790行;提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 a867ce465d9ee148ba7a2cfa4bff09a4a7584f32e2f99e1ff27cc5cf6ee7a0ee;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/nodes/image_nodes.py + +5. 准确Resize v2注册与导入;__init__.py 第1~100行;提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +6. 准确85509813格式/尺寸规则与采样、skip、nth、cap;videohelpersuite/load_video_nodes.py 第22~168行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py + +7. 内存/格式限制、音频起点与时长参数、加载schema与输出;videohelpersuite/load_video_nodes.py 第315~475行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 f8124d8b24dd020383c62846f2acb67b3accb71b35491c2e013e4c6eeb070963;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/load_video_nodes.py + +8. 准确LoadVideo注册;videohelpersuite/nodes.py 第1024~1055行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/nodes.py + +9. BIGMAX=2**53-1、DIMMAX8192、floatOrInt;videohelpersuite/utils.py 第17~56行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/videohelpersuite/utils.py + +10. 85509813包内字典保存恢复,不证明未知宿主/UE次序;web/js/VHS.core.js 第41~168行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +11. 85509813历史预览对象保存;web/js/VHS.core.js 第915~970行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +12. 85509813格式动态控件/回调,不执行恢复;web/js/VHS.core.js 第1222~1282行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 19ee929e57bedaea0b12bf678970575be341bdd3722915d2d8d19b5bc7507c97;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/web/js/VHS.core.js + +13. 准确0a75c795合成schema、temp目录、独立首帧PNG与图像格式条件;videohelpersuite/nodes.py 第207~395行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py + +14. 准确0a75c795视频补边/编码、循环、音频混流和中间文件条件;videohelpersuite/nodes.py 第395~592行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py + +15. 准确0a75c795模板展开str转换与元数据FFmpeg条件;videohelpersuite/nodes.py 第40~160行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py + +16. 本提交H264/libx264、像素/CRF/颜色、AAC及元数据模板;video_formats/h264-mp4.json 第1~14行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 772c3873e8aba511454b4c3f76b2bdea6a848dc7df7bccbde5d4662c68416288;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/video_formats/h264-mp4.json + +17. 准确VideoCombine注册;videohelpersuite/nodes.py 第979~1010行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 b04ce204f83c2b9fc505e1f567c2d0e743c119fba3e1b0c2f7ba3a0259069b2d;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/videohelpersuite/nodes.py + +18. 0a75c795包内保存恢复,非宿主前端版本证明;web/js/VHS.core.js 第31~158行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +19. 0a75c795完整历史预览对象保存;web/js/VHS.core.js 第805~865行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +20. 0a75c795格式改变重建额外控件;web/js/VHS.core.js 第1103~1149行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 7f90a1c8dc76c758fb888d36648034e564fddd2cc1f80045045b3f61710987ad;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/web/js/VHS.core.js + +21. NODE_CONFIG导出真实注册映射;__init__.py 第227~257行;提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/__init__.py + +22. NODE_CONFIG导出真实注册映射;__init__.py 第227~257行;提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 c31013ae8f950d5dacb58a8b5bb5916ea597b32d11b7a03bea5f502755ceff1c;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/__init__.py + +23. VHS包节点导出及web目录;__init__.py 第1~9行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/__init__.py + +24. VHS包节点导出及web目录;__init__.py 第1~9行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/__init__.py + +25. 准确完整提交许可原文;LICENSE 第1~674行;提交ff7f876c09ff5a53be051073c3c1731b96ee31a3;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/ff7f876c09ff5a53be051073c3c1731b96ee31a3/LICENSE + +26. 准确完整提交许可原文;LICENSE 第1~674行;提交50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/50e7dd34d3b6e6bbab1d41e8068e1ddd19bd4d1b/LICENSE + +27. 准确完整提交许可原文;LICENSE 第1~674行;提交8550981384301e9bc5bfea83e5c2c75258102593;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/8550981384301e9bc5bfea83e5c2c75258102593/LICENSE + +28. 准确完整提交许可原文;LICENSE 第1~674行;提交0a75c7958fe320efcb052f1d9f8451fd20c730a8;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Kosinkadink/ComfyUI-VideoHelperSuite/0a75c7958fe320efcb052f1d9f8451fd20c730a8/LICENSE diff --git a/e2e/multivideo-document.mjs b/e2e/multivideo-document.mjs new file mode 100644 index 00000000..c9077cdc --- /dev/null +++ b/e2e/multivideo-document.mjs @@ -0,0 +1,102 @@ +// Local GET-only: 56 multivideo positions, no new notes, and 25 frozen summaries. +import fs from 'node:fs'; +import assert from 'node:assert/strict'; +const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright'); +const out='.local-evidence/multivideo-document/browser';fs.mkdirSync(out,{recursive:true}); +const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={};let group='aggregate'; +function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);} +const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE}); +try { + const page=await browser.newPage({viewport:{width:1440,height:1000}}); + await page.route('**/*',route=>{ + const u=new URL(route.request().url()); + if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});} + if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();} + return route.continue(); + }); + page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});}); + page.on('pageerror',e=>errors.push(e.message)); + requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'}); + const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json(); + const names=['多视频合成分屏展示','图像4种添加水印节点','birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述']; + const details=[]; + for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());} + check(details.length===26&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===820,'26图820保存位置'); + check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===16,'26图16源注释'); + await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'}); + const dialog=page.getByRole('dialog',{name:'工作流说明'}); + const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})}); + async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;} + async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));} + for(const width of [1440,390]){ + await page.setViewportSize({width,height:width===390?844:1000}); + for(const d of details){ + group=details.indexOf(d)<1?'new_multivideo':'old_twenty_five';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded(); + const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})}); + check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`); + check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`); + check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`); + const visible=await fixedCard.innerText(); + check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`); + check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`); + for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`); + check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`); + check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`); + check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`); + await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0); + if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`}); + if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;} + await dialog.getByText('源图与审校记录',{exact:true}).click(); + check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`); + await dialog.getByText('核对范围与来源依据',{exact:true}).click(); + const flowText=await fixedCard.innerText(); + for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`); + if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-branch-flow.png`});} + await dialog.getByText('版本、源图与连线依据',{exact:true}).click(); + check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`); + const versionText=await fixedCard.innerText(); + for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`); + if(details.indexOf(d)<1){ + for(const f of b.fields){ + const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..'); + check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`); + let text=await box.innerText();check(text.includes(f.effect)&&text.includes(f.limits)&&text.includes(f.schema_default)&&text.includes(f.execution_note)&&text.includes(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`); + check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`); + check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`); + await box.getByText('来源依据',{exact:true}).click();text=await box.innerText(); + check(text.includes(f.pointer)&&text.includes(f.class_type)&&text.includes(f.json_type)&&f.evidence.every(i=>{const e=b.sources[i];return text.includes(e.commit)&&text.includes(e.sha256)&&text.includes(e.lines.join('~'));}),`${width} ${f.node_id}.${f.field}精确源码/类型/指针`); + check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`); + if(width===1440&&f.field==='save_output'&&f.node_id==='12')await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`}); + await summary.click(); + } + for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-note.png`});}await summary.click();} + await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`); + } + await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`); + } + } + group='shared_regressions'; + for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');} + // Missing summary and mismatched bindings are tested with local GET fixtures, without writes. + for(const variant of ['missing-overview','mismatched','html-summary']){ + const d=structuredClone(details[0]); + if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview; + if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'}; + if(variant==='html-summary')d.doc_json.fixed_version.user_overview='仅纯文本'; + await page.route(`**/api/workflows/${d.id}`,route=>route.fulfill({json:d}));await begin(d.name);await loaded(); + if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退'); + if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段'); + if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求'); + check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`); + } + let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r); + await page.route(`**/api/workflows/${details[0].id}`,async route=>{entered();await hold;await route.fulfill({json:details[0]});delivered();}); + await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done; + check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到分屏响应不覆盖旧水印摘要/56字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`); + await page.route(`**/api/workflows/${details[0].id}`,route=>route.fulfill({status:500,json:{detail:'隔离失败夹具'}}));await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape'); + check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求'); + const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname)); + const fixed=requests.filter(r=>!polling.includes(r)); + const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length])); + fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2)); +} finally {await browser.close();} diff --git a/e2e/run-multivideo-document.py b/e2e/run-multivideo-document.py new file mode 100644 index 00000000..4afe2d2c --- /dev/null +++ b/e2e/run-multivideo-document.py @@ -0,0 +1,92 @@ +"""Foreground local browser check; stop every owned service before returning.""" + +from __future__ import annotations + +import os +import signal +import subprocess +import sys +import time +import urllib.error +import urllib.request +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +OUT = ROOT / ".local-evidence/multivideo-document/browser" + + +def main(): + OUT.mkdir(parents=True, exist_ok=True) + # Refuse to reuse another operator's service or port. + import socket + + for port in (8247, 5173): + with socket.socket() as sock: + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + sock.bind(("127.0.0.1", port)) + processes = [] + logs = [] + try: + commands = [ + ([sys.executable, str(ROOT / "e2e/workflow-document-server.py")], ROOT), + ( + ["node", "node_modules/vite/bin/vite.js", "--host", "127.0.0.1"], + ROOT / "calliope-web", + ), + ] + for i, (command, cwd) in enumerate(commands): + log = (OUT / f"service-{i}.log").open("w") + logs.append(log) + processes.append( + subprocess.Popen(command, cwd=cwd, stdout=log, stderr=log, start_new_session=True) + ) + for url in ( + "http://127.0.0.1:8247/api/workflows", + "http://127.0.0.1:5173/connections", + ): + deadline = time.monotonic() + 30 + while True: + if any(p.poll() is not None for p in processes): + raise RuntimeError("Local service exited; inspect service logs") + try: + with urllib.request.urlopen(url, timeout=1) as response: + if response.status == 200: + break + except (urllib.error.URLError, TimeoutError): + pass + if time.monotonic() > deadline: + raise TimeoutError(url) + time.sleep(0.2) + names = ["multivideo"] + for name in names: + subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True) + finally: + for p in processes: + if p.poll() is None: + os.killpg(p.pid, signal.SIGTERM) + try: + p.wait(timeout=10) + except subprocess.TimeoutExpired: + os.killpg(p.pid, signal.SIGKILL) + p.wait(timeout=5) + for log in logs: + log.close() + import json + + released = [] + for port in (8247, 5173): + with socket.socket() as sock: + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + sock.bind(("127.0.0.1", port)) + released.append(port) + (OUT / "service-stop.json").write_text( + json.dumps( + dict(ports_released=released, child_exit_codes=[p.returncode for p in processes]) + ) + + "\n" + ) + print("All owned browser services stopped; ports released.") + + +if __name__ == "__main__": + main()