diff --git a/calliope-backend/src/calliope/comfyui/fixed_document.py b/calliope-backend/src/calliope/comfyui/fixed_document.py index d35fa268..197b7bd0 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" + ): "982b2326c129d00da6e1a2d0f1f843f09f3e9963cf3ac85f3d19691ef9e7b5ec", ( "example_ComfyUI_workflows/0-基础处理:图像合并-音频" "分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json" diff --git a/calliope-backend/src/calliope/comfyui/source_reviews.json b/calliope-backend/src/calliope/comfyui/source_reviews.json index 27c3fda0..a1672847 100644 --- a/calliope-backend/src/calliope/comfyui/source_reviews.json +++ b/calliope-backend/src/calliope/comfyui/source_reviews.json @@ -31037,7 +31037,1903 @@ "scope": [ "结构及用途局部审校", "源具名参数/注释/连线/素材模型用途人工语义局部审校" - ] + ], + "fixed_version_document": { + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "source_sha1": "59487d0fc84d64832e36f865bb78008f0d90cf67", + "source_sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132", + "canonical_sha256": "632cb01a99b3c09f19a149d6fb09a31b9b15e45f0591c9a2c13d034d91b423dc", + "notice": "准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。", + "user_overview": "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "versions": [ + "KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;LayerStyle3b17c7f488006c872f4cb3d6b37029a9464f1d7b;CustomScripts f2838ed5e59de4d73cde5c98354b87a8d3200190。", + "VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。", + "core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67b007c9f391;无宿主前端声明。Set/Get/Bypasser身份未知,UE版本仅源文本。" + ], + "counts": { + "saved_fields": 50, + "source_nodes": 22, + "physical_edges": 24, + "source_notes": 2, + "history_objects": 4, + "linked_saved_fields": 9, + "frontend_only": 4, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "field": "directory", + "label": "图片文件夹引用", + "type": "STRING", + "schema_default": "schema无显式默认", + "unit": "目录文本", + "limits": "字符串,目标目录权限/存在性未知", + "effect": "保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.images;按准确实现文件名排序、筛选、跳过和间隔,再受cap限制,不能当作分镜智能识别。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "scalar", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/directory", + "value": "E:\\ComfyUI-Data\\output\\tmp\\image", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "image_load_cap", + "label": "文件夹图片数量上限", + "type": "INT", + "schema_default": "0", + "unit": "图片/间隔", + "limits": "0~9007199254740991;0不设此上限", + "effect": "保存0被13保存44经边20覆盖;44是上限,不保证44张。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "linked_saved_value", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/image_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "skip_first_images", + "label": "文件夹跳过图片数", + "type": "INT", + "schema_default": "0", + "unit": "图片/间隔", + "limits": "0~9007199254740991", + "effect": "保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "linked_saved_value", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/skip_first_images", + "value": 0, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "select_every_nth", + "label": "文件夹间隔取图", + "type": "INT", + "schema_default": "1", + "unit": "图片/间隔", + "limits": "1~9007199254740991", + "effect": "保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "scalar", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "image_load_cap": 0, + "skip_first_images": 0, + "select_every_nth": 1, + "filename": "E:\\ComfyUI-Data\\output\\tmp\\image", + "type": "path", + "format": "folder" + } + }, + "json_type": "dict", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "FLOAT", + "schema_default": "0.0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "18", + "scope": "root", + "class_type": "FloatConstant", + "pointer": "/nodes/1/widgets_values/0", + "value": 16, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "INT", + "schema_default": "0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "21", + "scope": "root", + "class_type": "INTConstant", + "pointer": "/nodes/2/widgets_values/0", + "value": 200, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "name", + "label": "具名源标签(身份未知)", + "type": "STRING(仅源保存态)", + "schema_default": "未知:未声明提供方版本", + "unit": "标签文本", + "limits": "未知:不以类名绑定实现", + "effect": "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + "evidence": [], + "role": "identity_unknown", + "node_id": "29", + "scope": "root", + "class_type": "SetNode", + "pointer": "/nodes/3/widgets_values/0", + "value": "每批截取帧数", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "purge_cache", + "label": "显存清理保存开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true/false", + "effect": "28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。", + "evidence": [ + 17 + ], + "role": "scalar", + "node_id": "28", + "scope": "root", + "class_type": "LayerUtility: PurgeVRAM", + "pointer": "/nodes/4/widgets_values/0", + "value": true, + "json_type": "bool", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "purge_models", + "label": "显存清理保存开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true/false", + "effect": "28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。", + "evidence": [ + 17 + ], + "role": "scalar", + "node_id": "28", + "scope": "root", + "class_type": "LayerUtility: PurgeVRAM", + "pointer": "/nodes/4/widgets_values/1", + "value": true, + "json_type": "bool", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "name", + "label": "具名源标签(身份未知)", + "type": "STRING(仅源保存态)", + "schema_default": "未知:未声明提供方版本", + "unit": "标签文本", + "limits": "未知:不以类名绑定实现", + "effect": "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + "evidence": [], + "role": "identity_unknown", + "node_id": "30", + "scope": "root", + "class_type": "GetNode", + "pointer": "/nodes/6/widgets_values/0", + "value": "每批截取帧数", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "动态input枚举,无固定默认", + "unit": "文件引用", + "limits": "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "effect": "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/video", + "value": "牧马人-1-逃荒来的-1.mp4", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "force_rate", + "label": "强制采样帧率", + "type": "floatOrInt", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0关闭强制采样", + "effect": "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际宽度及动态格式约束未知,不读素材。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际高度未知;不以保存值保证原片尺寸。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "帧", + "limits": "0~9007199254740991,0不设此上限", + "effect": "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/frame_load_cap", + "value": 200, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~9007199254740991,step1", + "effect": "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/skip_first_frames", + "value": 200, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔取帧", + "type": "INT", + "schema_default": "1", + "unit": "采样帧间隔", + "limits": "1~9007199254740991", + "effect": "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式选择", + "limits": "AnimateDiff内置,外部格式动态扩展未知", + "effect": "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "牧马人-1-逃荒来的-1.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 200, + "skip_first_frames": 200, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "total", + "label": "循环总量保存值", + "type": "INT", + "schema_default": "1", + "unit": "循环上限", + "limits": "1~100000,step1", + "effect": "保存1被22外线覆盖;19.initial_value1由1.frame_count输入,非total或已计算index。准确包从索引0或hidden initial_value0开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。", + "evidence": [ + 23 + ], + "role": "linked_saved_value", + "node_id": "19", + "scope": "root", + "class_type": "easy forLoopStart", + "pointer": "/nodes/9/widgets_values/0", + "value": 1, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "expression", + "label": "原始表达式文本", + "type": "STRING", + "schema_default": "schema无显式默认", + "unit": "未知,随输入而定", + "limits": "多行,dynamicPrompts=false;未声明字符串长度范围", + "effect": "22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。", + "evidence": [ + 20, + 21 + ], + "role": "scalar", + "node_id": "22", + "scope": "root", + "class_type": "MathExpression|pysssss", + "pointer": "/nodes/10/widgets_values/0", + "value": "ceil(a / b)", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "frame_rate", + "label": "合成播放帧率", + "type": "floatOrInt", + "schema_default": "8", + "unit": "帧/秒", + "limits": "min1,step1,无显式max", + "effect": "10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "linked_saved_value", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/frame_rate", + "value": 30, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "loop_count", + "label": "附加循环次数", + "type": "INT", + "schema_default": "0", + "unit": "次", + "limits": "0~100", + "effect": "保存0;本H264视频分支不额外循环,不混同GIF循环。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "filename_prefix", + "label": "合成文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "路径/前缀", + "limits": "无显式长度限制,目录权限未知", + "effect": "保存video/ComfyUI被5模板外线覆盖;模板保存tmp/video/video_{var_1}-{var_2},6/13接var_1/var_2。不执行替换或证明当前文件存在。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "linked_saved_value", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/filename_prefix", + "value": "video/ComfyUI", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "format", + "label": "合成编码格式", + "type": "COMBO", + "schema_default": "动态格式;函数回退image/gif", + "unit": "格式选择", + "limits": "动态ffmpeg格式,准确包含video/h264-mp4", + "effect": "保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "pix_fmt", + "label": "像素格式", + "type": "COMBO", + "schema_default": "yuv420p(模板首项)", + "unit": "像素格式", + "limits": "yuv420p/yuv420p10le", + "effect": "保存yuv420p,不保证实际尺寸、兼容性或编码成功。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "crf", + "label": "恒定质量因子", + "type": "INT", + "schema_default": "19", + "unit": "CRF", + "limits": "0~100,step1", + "effect": "保存19传入-crf;不承诺固定码率/大小或效果。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/crf", + "value": 19, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true/false,模板及全局条件", + "effect": "保存false控制视频元数据;不等于没有独立首帧PNG,首帧另受VHS_MetadataImage影响。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/save_metadata", + "value": false, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "trim_to_audio", + "label": "混流裁切策略", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "开关", + "limits": "有效音频存在才进入混流", + "effect": "保存false,本图10.audio未接,不能称保留原声音或自动混流;不执行编码。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "pingpong", + "label": "往返追加", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "开关", + "limits": "true/false", + "effect": "保存false不追加逆序中间帧。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "save_output", + "label": "选择输出目录", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true选output,false选temp", + "effect": "保存true选择output,前缀被外线覆盖。可能涉及视频和独立PNG;目录/权限/实际结果未知。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/save_output", + "value": true, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "video_1126-44_00001.mp4", + "subfolder": "tmp\\video", + "type": "output", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "video_1126-44_00001.png", + "fullpath": "E:\\ComfyUI-Data\\output\\tmp\\video\\video_1126-44_00001.mp4" + } + }, + "json_type": "dict", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "expression", + "label": "原始表达式文本", + "type": "STRING", + "schema_default": "schema无显式默认", + "unit": "未知,随输入而定", + "limits": "多行,dynamicPrompts=false;未声明字符串长度范围", + "effect": "22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。", + "evidence": [ + 20, + 21 + ], + "role": "scalar", + "node_id": "24", + "scope": "root", + "class_type": "MathExpression|pysssss", + "pointer": "/nodes/14/widgets_values/0", + "value": "a*b", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "filename_prefix", + "label": "图片保存前缀", + "type": "STRING", + "schema_default": "ComfyUI", + "unit": "文本/路径", + "limits": "schema无显式长度限制;目录与权限未知", + "effect": "保存tmp/image/ComfyUI,图像来自25;mode4,不保证产物存在。", + "evidence": [ + 14 + ], + "role": "scalar", + "node_id": "26", + "scope": "root", + "class_type": "SaveImageKJ", + "pointer": "/nodes/15/widgets_values/0", + "value": "tmp/image/ComfyUI", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "output_folder", + "label": "图片输出目录", + "type": "STRING", + "schema_default": "output", + "unit": "文本/路径", + "limits": "schema无显式长度限制;目录与权限未知", + "effect": "保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。", + "evidence": [ + 14 + ], + "role": "scalar", + "node_id": "26", + "scope": "root", + "class_type": "SaveImageKJ", + "pointer": "/nodes/15/widgets_values/1", + "value": "", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "caption_file_extension", + "label": "标注扩展名", + "type": "STRING", + "schema_default": ".txt", + "unit": "文本/路径", + "limits": "schema无显式长度限制;目录与权限未知", + "effect": "保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。", + "evidence": [ + 14 + ], + "role": "scalar", + "node_id": "26", + "scope": "root", + "class_type": "SaveImageKJ", + "pointer": "/nodes/15/widgets_values/2", + "value": ".txt", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "template", + "label": "文件名前缀模板", + "type": "STRING", + "schema_default": "空字符串", + "unit": "模板文本", + "limits": "多行,无显式长度范围", + "effect": "保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。", + "evidence": [ + 25 + ], + "role": "scalar", + "node_id": "5", + "scope": "root", + "class_type": "Apply Text Template (mtb)", + "pointer": "/nodes/16/widgets_values/0", + "value": "tmp/video/video_{var_1}-{var_2}", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "动态input枚举,无固定默认", + "unit": "文件引用", + "limits": "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "effect": "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/video", + "value": "牧马人-1-逃荒来的-1.mp4", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "force_rate", + "label": "强制采样帧率", + "type": "floatOrInt", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0关闭强制采样", + "effect": "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际宽度及动态格式约束未知,不读素材。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际高度未知;不以保存值保证原片尺寸。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "帧", + "limits": "0~9007199254740991,0不设此上限", + "effect": "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/frame_load_cap", + "value": 200, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~9007199254740991,step1", + "effect": "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔取帧", + "type": "INT", + "schema_default": "1", + "unit": "采样帧间隔", + "limits": "1~9007199254740991", + "effect": "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式选择", + "limits": "AnimateDiff内置,外部格式动态扩展未知", + "effect": "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "牧马人-1-逃荒来的-1.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 200, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "filename_prefix", + "label": "旁路音频保存前缀", + "type": "STRING", + "schema_default": "audio/ComfyUI", + "unit": "路径/前缀", + "limits": "schema无显式长度范围;动态目录权限未知", + "effect": "仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最终视频有音轨。", + "evidence": [ + 33, + 34 + ], + "role": "scalar", + "node_id": "36", + "scope": "root", + "class_type": "SaveAudio", + "pointer": "/nodes/19/widgets_values/0", + "value": "tmp/audio", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "INT", + "schema_default": "0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "13", + "scope": "root", + "class_type": "INTConstant", + "pointer": "/nodes/20/widgets_values/0", + "value": 44, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "INT", + "schema_default": "0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "6", + "scope": "root", + "class_type": "INTConstant", + "pointer": "/nodes/21/widgets_values/0", + "value": 1126, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + } + ], + "sources": [ + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown", + "lines": [ + 22, + 168 + ], + "claim": "1.7.7加载格式、采样和尺寸条件" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown", + "lines": [ + 293, + 477 + ], + "claim": "加载实现和schema;不执行媒体" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown", + "lines": [ + 15, + 126 + ], + "claim": "目录读取、图像尺寸匹配和批次;不访问E盘" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown", + "lines": [ + 165, + 206 + ], + "claim": "路径加载具名schema,cap/skip/nth" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_commit_binding": "unknown", + "lines": [ + 137, + 155 + ], + "claim": "按文件名排序、过滤、跳过和间隔" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 234, + 420 + ], + "claim": "1.7.7合成schema、目录和首帧PNG条件" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 420, + 625 + ], + "claim": "视频编码、音频条件和中间文件" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../storyboard-reference/../reverse-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown", + "lines": [ + 1, + 15 + ], + "claim": "H264/CRF/像素及音频模板" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 48, + 165 + ], + "claim": "格式模板、元数据参数条件" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 940, + 970 + ], + "claim": "VideoInfoLoaded五出口与loaded_键" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 1020, + 1050 + ], + "claim": "VHS准确四类节点注册" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown", + "lines": [ + 41, + 168 + ], + "claim": "同包保存恢复;不证明未知宿主及UE次序" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown", + "lines": [ + 915, + 970 + ], + "claim": "历史预览缓存回调,非实际媒体" + }, + { + "id": "kj", + "file": "nodes/nodes.py", + "local_file": "../storyboard-reference/kj__nodes__nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "git_blob_sha1": "372c8518a77b20fa808de3b70736ceb8dde0092e", + "lines": [ + 31, + 59 + ], + "claim": "INTConstant与FloatConstant默认范围及舍入" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../storyboard-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "git_blob_sha1": "aac70d4770f5428a7e3f6bd9a10d50a821987199", + "lines": [ + 3235, + 3321 + ], + "claim": "SaveImageKJ目录、PNG及caption条件" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "../storyboard-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "lines": [ + 1, + 120 + ], + "claim": "KJ节点映射配置" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "../storyboard-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "lines": [ + 232, + 246 + ], + "claim": "KJ配置生成准确注册映射" + }, + { + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "lines": [ + 8, + 37 + ], + "claim": "PurgeVRAM默认true,clear_memory无条件、模型清理有条件" + }, + { + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "lines": [ + 72, + 80 + ], + "claim": "PurgeVRAM准确注册" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../storyboard-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 2123, + 2130 + ], + "claim": "clear_memory的GC及CUDA可用条件;不执行" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 15, + 59 + ], + "claim": "运算符及ceil函数注册;只读不求值" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 98, + 126 + ], + "claim": "表达式schema、无显式默认及INT/FLOAT出口" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 245, + 251 + ], + "claim": "MathExpression准确注册" + }, + { + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown", + "lines": [ + 800, + 903 + ], + "claim": "1.3.4循环schema、初始索引及图展开条件;不模拟循环" + }, + { + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown", + "lines": [ + 1738, + 1745 + ], + "claim": "循环准确注册" + }, + { + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown", + "lines": [ + 113, + 141 + ], + "claim": "0.5.4模板schema及按kwargs字面替换,不计算本图结果" + }, + { + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown", + "lines": [ + 870, + 882 + ], + "claim": "模板__nodes__模块列表" + }, + { + "id": "mtb", + "file": "__init__.py", + "local_file": "../storyboard-reference/mtb____init__.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "git_commit_binding": "unknown", + "lines": [ + 190, + 205 + ], + "claim": "MTB显示名注册规则" + }, + { + "id": "mtb", + "file": "log.py", + "local_file": "../storyboard-reference/mtb__log.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "git_commit_binding": "unknown", + "lines": [ + 77, + 87 + ], + "claim": "MTB类名去前缀及驼峰显示名" + }, + { + "id": "mtb", + "file": "web/mtb_widgets.js", + "local_file": "../storyboard-reference/mtb__web__mtb_widgets.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "git_commit_binding": "unknown", + "lines": [ + 1168, + 1171 + ], + "claim": "同包模板动态var_输入恢复;未知宿主及UE次序" + }, + { + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "lines": [ + 603, + 626 + ], + "claim": "SaveAudio准确扩展注册" + }, + { + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "lines": [ + 27, + 76 + ], + "claim": "音频文件描述符和output目录分派" + }, + { + "id": "mtb", + "file": "web/comfy_shared.js", + "local_file": "../storyboard-reference/mtb__web__comfy_shared.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "git_commit_binding": "unknown", + "lines": [ + 377, + 445 + ], + "claim": "模板动态连接setup与恢复回调" + }, + { + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "lines": [ + 120, + 141 + ], + "claim": "core0.6.0 SaveAudio具名schema及FLAC输出调用" + }, + { + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "lines": [ + 260, + 390 + ], + "claim": "AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "../storyboard-reference/kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "../storyboard-reference/layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "math", + "file": "LICENSE", + "local_file": "../storyboard-reference/math__LICENSE", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "easy", + "file": "LICENSE", + "local_file": "../storyboard-reference/easy__LICENSE", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "mtb", + "file": "LICENSE", + "local_file": "../storyboard-reference/mtb__LICENSE", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "git_commit_binding": "unknown", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "../storyboard-reference/core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "../storyboard-reference/../reverse-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + } + ], + "comments": [ + { + "node_id": "31", + "pointer": "/nodes/11/widgets_values", + "scope": "root", + "text": "循环次数向上取整", + "meaning": "完整源注释,仅作者说明,不是执行证明。" + }, + { + "node_id": "35", + "pointer": "/nodes/17/widgets_values", + "scope": "root", + "text": "在截取的帧图像中,按照分镜头选取帧图像合成", + "meaning": "完整源注释,仅作者说明,不是执行证明。" + } + ], + "flow": [ + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "活动物理链8.IMAGE→10.images;6保存1126经边19覆盖8.skip_first_images,13保存44经边20覆盖8.image_load_cap。两个常量另经11/25接5.var_1/var_2;模板tmp/video/video_{var_1}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图像称为当前直接视频截取。", + "18保存16(JSON int,源出口FLOAT分开)经23覆盖10保存30,也经26接旁路1.force_rate。10无audio/VAE/meta_batch线;16不是同步或源时长保证。H264/yuv420p/crf19/save_output=true、save_metadata=false/trimfalse/pingpongfalse按准确VHS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果。", + "视频组mode4:1.IMAGE空出口,frame_count→19.initial_value1、VHS info槽3→27;27.frame_count→22.ceil(a / b)→19.total,27.FPS→25.force_rate;19.index→24.a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.SaveImageKJ,frame_count→20,19.flow→20→28.PurgeVRAM。只保留物理线,不模拟旁路、循环或求值。", + "21保存200→Set29[每批截取帧数],Get30同名但提供方/版本均未声明,身份/解析未证,不能假定可靠取200。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。", + "1/25保存同视频名、cap200,skip0/200;25的force/skip/cap有外线覆盖。1.AUDIO→36.SaveAudio且mode4;10.audio未接,最终视频不保证声音。SaveAudio只有tmp/audio一个保存值,audioUI源口没有第二保存值,不补空串,不称已试听或写入。", + "26保存tmp/image/ComfyUI、空output_folder、.txt;caption未接。准确KJ实现相对/空目录走output,绝对路径另处理;PNG按计数名保存,caption非None才写标注。不声称实际.txt/目录/图像存在。28准确实现无条件clear_memory且purge_cache参数未使用,purge_models控制卸载;本轮不执行显存清理。", + "四个完整历史对象仅文本保留,含旧E盘与tmp/video产物、工作流PNG及输入引用;不去重、不递归凑位置,不请求api/view或媒体。Info27={}、LoopEnd20=[]与Bypasser15缺键分别零保存;组匹配1|2仅源属性,不证明当前动态作用。", + "根22节点24边,无子图,无frontendVersion;workflowRendererVersion=LG不是版本。UE7.5.1/7.5.2及缺version分别保留,空连接声明不证明无回调。EasyUse1.3.4、MTB0.5.4、VHS1.7.7固定准确包字节,Git绑定未知;不借近版本。无模型节点,不编模型依赖;目标安装、目录权限、素材尺寸、实际帧率/编码器/效果待核。", + "两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/必要实跑0/新增转换0,保持全停用未检查。", + "原边 root [11, 6, 0, 5, 1, \"INT\"]", + "原边 root [16, 8, 0, 10, 0, \"IMAGE\"]", + "原边 root [19, 6, 0, 8, 3, \"INT\"]", + "原边 root [20, 13, 0, 8, 2, \"INT\"]", + "原边 root [21, 5, 0, 10, 6, \"STRING\"]", + "原边 root [23, 18, 0, 10, 4, \"FLOAT\"]", + "原边 root [25, 13, 0, 5, 2, \"INT\"]", + "原边 root [26, 18, 0, 1, 3, \"FLOAT\"]", + "原边 root [29, 22, 0, 19, 1, \"INT\"]", + "原边 root [31, 19, 0, 20, 0, \"FLOW_CONTROL\"]", + "原边 root [32, 19, 1, 24, 0, \"INT\"]", + "原边 root [38, 24, 0, 25, 7, \"INT\"]", + "原边 root [41, 25, 0, 26, 0, \"IMAGE\"]", + "原边 root [43, 1, 3, 27, 0, \"VHS_VIDEOINFO\"]", + "原边 root [44, 27, 1, 22, 0, \"INT\"]", + "原边 root [45, 27, 0, 25, 3, \"FLOAT\"]", + "原边 root [46, 20, 0, 28, 0, \"*\"]", + "原边 root [47, 21, 0, 29, 0, \"INT\"]", + "原边 root [48, 30, 0, 22, 1, \"INT\"]", + "原边 root [49, 30, 0, 24, 1, \"INT\"]", + "原边 root [50, 30, 0, 25, 6, \"INT\"]", + "原边 root [51, 1, 1, 19, 0, \"INT\"]", + "原边 root [52, 25, 1, 20, 1, \"INT\"]", + "原边 root [56, 1, 2, 36, 0, \"AUDIO\"]", + "原节点 root {\"id\": 8, \"type\": \"VHS_LoadImagesPath\", \"mode\": 0, \"inputs\": [{\"label\": \"批次管理\", \"localized_name\": \"批次管理\", \"name\": \"meta_batch\", \"shape\": 7, \"type\": \"VHS_BatchManager\", \"link\": null}, {\"label\": \"路径\", \"localized_name\": \"路径\", \"name\": \"directory\", \"type\": \"STRING\", \"widget\": {\"name\": \"directory\"}, \"link\": null}, {\"label\": \"图像读取上限\", \"localized_name\": \"图像读取上限\", \"name\": \"image_load_cap\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"image_load_cap\"}, \"link\": 20}, {\"label\": \"跳过前X张\", \"localized_name\": \"跳过前X张\", \"name\": \"skip_first_images\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"skip_first_images\"}, \"link\": 19}, {\"label\": \"间隔\", \"localized_name\": \"间隔\", \"name\": \"select_every_nth\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"select_every_nth\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"图像\", \"type\": \"IMAGE\", \"links\": [16]}, {\"localized_name\": \"遮罩\", \"name\": \"遮罩\", \"type\": \"MASK\", \"links\": null}, {\"localized_name\": \"帧数\", \"name\": \"帧数\", \"type\": \"INT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"Node name for S&R\": \"VHS_LoadImagesPath\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.1\"}}}", + "原节点 root {\"id\": 18, \"type\": \"FloatConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"FLOAT\", \"links\": [23, 26]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"FloatConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 21, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [47]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 29, \"type\": \"SetNode\", \"mode\": 0, \"inputs\": [{\"name\": \"INT\", \"type\": \"INT\", \"link\": 47}], \"outputs\": [{\"name\": \"*\", \"type\": \"*\", \"links\": null}], \"properties\": {\"previousName\": \"每批截取帧数\"}}", + "原节点 root {\"id\": 28, \"type\": \"LayerUtility: PurgeVRAM\", \"mode\": 4, \"inputs\": [{\"localized_name\": \"任意内容\", \"name\": \"anything\", \"type\": \"*\", \"link\": 46}, {\"localized_name\": \"清除缓存\", \"name\": \"purge_cache\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"purge_cache\"}, \"link\": null}, {\"localized_name\": \"清除模型\", \"name\": \"purge_models\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"purge_models\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"cnr_id\": \"comfyui_layerstyle\", \"ver\": \"3b17c7f488006c872f4cb3d6b37029a9464f1d7b\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"LayerUtility: PurgeVRAM\"}}", + "原节点 root {\"id\": 27, \"type\": \"VHS_VideoInfoLoaded\", \"mode\": 4, \"inputs\": [{\"label\": \"视频信息\", \"localized_name\": \"视频信息\", \"name\": \"video_info\", \"type\": \"VHS_VIDEOINFO\", \"link\": 43}], \"outputs\": [{\"localized_name\": \"FPS🟦\", \"name\": \"FPS🟦\", \"type\": \"FLOAT\", \"links\": [45]}, {\"localized_name\": \"帧数🟦\", \"name\": \"帧数🟦\", \"type\": \"INT\", \"links\": [44]}, {\"localized_name\": \"时长🟦\", \"name\": \"时长🟦\", \"type\": \"FLOAT\", \"links\": null}, {\"localized_name\": \"宽度🟦\", \"name\": \"宽度🟦\", \"type\": \"INT\", \"links\": null}, {\"localized_name\": \"高度🟦\", \"name\": \"高度🟦\", \"type\": \"INT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"VHS_VideoInfoLoaded\"}}", + "原节点 root {\"id\": 30, \"type\": \"GetNode\", \"mode\": 4, \"inputs\": [], \"outputs\": [{\"name\": \"INT\", \"type\": \"INT\", \"links\": [48, 49, 50]}], \"properties\": {}}", + "原节点 root {\"id\": 25, \"type\": \"VHS_LoadVideo\", \"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\": 45}, {\"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\": 50}, {\"label\": \"跳过前X帧\", \"localized_name\": \"跳过前X帧\", \"name\": \"skip_first_frames\", \"type\": \"INT\", \"widget\": {\"name\": \"skip_first_frames\"}, \"link\": 38}, {\"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\": [41]}, {\"localized_name\": \"帧计数\", \"name\": \"帧计数\", \"type\": \"INT\", \"links\": [52]}, {\"localized_name\": \"音频\", \"name\": \"音频\", \"type\": \"AUDIO\", \"links\": []}, {\"localized_name\": \"视频信息\", \"name\": \"视频信息\", \"type\": \"VHS_VIDEOINFO\", \"links\": []}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}, \"Node name for S&R\": \"VHS_LoadVideo\"}}", + "原节点 root {\"id\": 20, \"type\": \"easy forLoopEnd\", \"mode\": 4, \"inputs\": [{\"label\": \"流\", \"localized_name\": \"流\", \"name\": \"flow\", \"shape\": 5, \"type\": \"FLOW_CONTROL\", \"link\": 31}, {\"label\": \"初始值1\", \"localized_name\": \"初始值1\", \"name\": \"initial_value1\", \"shape\": 7, \"type\": \"*\", \"link\": 52}, {\"label\": \"初始值2\", \"localized_name\": \"初始值2\", \"name\": \"initial_value2\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"值1\", \"name\": \"值1\", \"type\": \"*\", \"links\": [46]}, {\"name\": \"value2\", \"type\": \"*\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-easy-use\", \"ver\": \"1.3.4\", \"Node name for S&R\": \"easy forLoopEnd\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 19, \"type\": \"easy forLoopStart\", \"mode\": 4, \"inputs\": [{\"label\": \"初始值1\", \"localized_name\": \"初始值1\", \"name\": \"initial_value1\", \"shape\": 7, \"type\": \"*\", \"link\": 51}, {\"label\": \"总量\", \"localized_name\": \"总量\", \"name\": \"total\", \"type\": \"INT\", \"widget\": {\"name\": \"total\"}, \"link\": 29}, {\"label\": \"初始值2\", \"localized_name\": \"初始值2\", \"name\": \"initial_value2\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"开始\", \"name\": \"流\", \"type\": \"FLOW_CONTROL\", \"links\": [31]}, {\"localized_name\": \"索引\", \"name\": \"索引\", \"type\": \"INT\", \"links\": [32]}, {\"localized_name\": \"值1\", \"name\": \"值1\", \"type\": \"*\", \"links\": null}, {\"name\": \"value2\", \"type\": \"*\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-easy-use\", \"ver\": \"1.3.4\", \"Node name for S&R\": \"easy forLoopStart\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 22, \"type\": \"MathExpression|pysssss\", \"mode\": 4, \"inputs\": [{\"label\": \"a\", \"localized_name\": \"a\", \"name\": \"a\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 44}, {\"label\": \"b\", \"localized_name\": \"b\", \"name\": \"b\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 48}, {\"label\": \"c\", \"localized_name\": \"c\", \"name\": \"c\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": null}, {\"label\": \"表达式\", \"localized_name\": \"表达式\", \"name\": \"expression\", \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"widget\": {\"name\": \"expression\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"整数\", \"name\": \"整数\", \"type\": \"INT\", \"links\": [29]}, {\"localized_name\": \"浮点\", \"name\": \"浮点\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-custom-scripts\", \"ver\": \"f2838ed5e59de4d73cde5c98354b87a8d3200190\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 31, \"type\": \"Note\", \"mode\": 4, \"inputs\": [], \"outputs\": [], \"properties\": {}}", + "原节点 root {\"id\": 10, \"type\": \"VHS_VideoCombine\", \"mode\": 0, \"inputs\": [{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 16}, {\"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\": 23}, {\"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\": 21}, {\"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\": \"1.7.7\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.1\"}}}", + "原节点 root {\"id\": 15, \"type\": \"Fast Groups Bypasser (rgthree)\", \"mode\": 0, \"inputs\": [], \"outputs\": [{\"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}], \"properties\": {\"matchColors\": \"\", \"matchTitle\": \"1|2\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 24, \"type\": \"MathExpression|pysssss\", \"mode\": 4, \"inputs\": [{\"label\": \"a\", \"localized_name\": \"a\", \"name\": \"a\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 32}, {\"label\": \"b\", \"localized_name\": \"b\", \"name\": \"b\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 49}, {\"label\": \"c\", \"localized_name\": \"c\", \"name\": \"c\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": null}, {\"label\": \"表达式\", \"localized_name\": \"表达式\", \"name\": \"expression\", \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"widget\": {\"name\": \"expression\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"整数\", \"name\": \"整数\", \"type\": \"INT\", \"links\": [38]}, {\"localized_name\": \"浮点\", \"name\": \"浮点\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-custom-scripts\", \"ver\": \"f2838ed5e59de4d73cde5c98354b87a8d3200190\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}}}", + "原节点 root {\"id\": 26, \"type\": \"SaveImageKJ\", \"mode\": 4, \"inputs\": [{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 41}, {\"label\": \"标注\", \"localized_name\": \"标注\", \"name\": \"caption\", \"shape\": 7, \"type\": \"STRING\", \"link\": null}, {\"label\": \"文件名前缀\", \"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"label\": \"输出文件夹\", \"localized_name\": \"输出文件夹\", \"name\": \"output_folder\", \"type\": \"STRING\", \"widget\": {\"name\": \"output_folder\"}, \"link\": null}, {\"label\": \"标注文件扩展名\", \"localized_name\": \"标注文件扩展名\", \"name\": \"caption_file_extension\", \"shape\": 7, \"type\": \"STRING\", \"widget\": {\"name\": \"caption_file_extension\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"文件名\", \"name\": \"文件名\", \"type\": \"STRING\", \"links\": []}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}, \"Node name for S&R\": \"SaveImageKJ\"}}", + "原节点 root {\"id\": 5, \"type\": \"Apply Text Template (mtb)\", \"mode\": 0, \"inputs\": [{\"label\": \"模板\", \"localized_name\": \"模板\", \"name\": \"template\", \"type\": \"STRING\", \"widget\": {\"name\": \"template\"}, \"link\": null}, {\"label\": \"变量_1\", \"localized_name\": \"变量_1\", \"name\": \"var_1\", \"type\": \"*\", \"link\": 11}, {\"label\": \"var_2\", \"name\": \"var_2\", \"type\": \"*\", \"link\": 25}, {\"name\": \"var_3\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"字符串\", \"name\": \"字符串\", \"type\": \"STRING\", \"links\": [21]}], \"properties\": {\"cnr_id\": \"comfy-mtb\", \"ver\": \"0.5.4\", \"Node name for S&R\": \"Apply Text Template (mtb)\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 35, \"type\": \"Note\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {}}", + "原节点 root {\"id\": 1, \"type\": \"VHS_LoadVideo\", \"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\": 26}, {\"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\": []}, {\"localized_name\": \"帧计数\", \"name\": \"帧计数\", \"type\": \"INT\", \"links\": [51]}, {\"localized_name\": \"音频\", \"name\": \"音频\", \"type\": \"AUDIO\", \"links\": [56]}, {\"localized_name\": \"视频信息\", \"name\": \"视频信息\", \"type\": \"VHS_VIDEOINFO\", \"links\": [43]}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 36, \"type\": \"SaveAudio\", \"mode\": 4, \"inputs\": [{\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"link\": 56}, {\"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"localized_name\": \"音频UI\", \"name\": \"audioUI\", \"type\": \"AUDIO_UI\", \"widget\": {\"name\": \"audioUI\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"cnr_id\": \"comfy-core\", \"ver\": \"0.6.0\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"SaveAudio\"}}", + "原节点 root {\"id\": 13, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [20, 25]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 6, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [11, 19]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}" + ], + "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, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41 + ], + "zero_saved_nodes": [ + { + "node_id": "27", + "class_type": "VHS_VideoInfoLoaded", + "effect": "原{}零位置;不同于缺键/[]。" + }, + { + "node_id": "20", + "class_type": "easy forLoopEnd", + "effect": "原[]零位置;不补参数。" + }, + { + "node_id": "15", + "class_type": "Fast Groups Bypasser (rgthree)", + "effect": "原缺widgets_values键;提供方/版本未知,不模拟动态组开关。" + } + ], + "steps": [ + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。", + "操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。", + "操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。", + "常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。" + ] + } }, "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json": { "source_sha": "1dfec71c0840ceaa1e9bf0422741d96183372861", diff --git a/calliope-backend/tests/test_storyboard_fixed_document.py b/calliope-backend/tests/test_storyboard_fixed_document.py new file mode 100644 index 00000000..1ebee2da --- /dev/null +++ b/calliope-backend/tests/test_storyboard_fixed_document.py @@ -0,0 +1,257 @@ +"Storyboard saved values, physical links, unknown identities and fail-closed binding." + +import copy +import hashlib +import json +import subprocess +from pathlib import Path + +import pytest +from calliope.comfyui.fixed_document import DEFINITIONS, canonical +from calliope.comfyui.library import build_document +from calliope.comfyui.source_reviews import review_for + +REPO = Path(__file__).resolve().parents[2] +OUT = REPO / "docs/hel-892/storyboard-document-evidence" +PATH = next(p for p in DEFINITIONS if p.endswith("/手动按分镜视频截取.json")) +SOURCE = json.loads((REPO / PATH).read_bytes()) +REVIEW = review_for(PATH, hashlib.sha1((REPO / PATH).read_bytes()).hexdigest()) +BLOCK = REVIEW["fixed_version_document"] + + +def pointer(obj, path): + for part in path.strip("/").split("/"): + obj = obj[int(part)] if isinstance(obj, list) else obj[part] + return obj + + +def doc(source=None, review=None): + return build_document( + PATH, + SOURCE if source is None else source, + None, + None, + [], + REVIEW if review is None else review, + ) + + +def refuse(s, r): + r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest() + r["caller_digest"] = hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest() + assert not doc(s, r)["fixed_version"]["matched"] + + +@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"]) +def test_each_saved_value_type_pointer_and_exact_evidence(f): + v = pointer(SOURCE, f["pointer"]) + assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"] + for k in [ + "label", + "type", + "schema_default", + "unit", + "limits", + "effect", + "execution_note", + "role", + ]: + assert f[k] + for k in f["evidence"]: + e = BLOCK["sources"][k] + raw = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines()) + assert len(e["commit"]) == 40 or e["git_commit_binding"] == "unknown" + + +@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"]) +@pytest.mark.parametrize("variant", ["value", "type", "text"]) +def test_each_saved_position_refuses_forged_source_or_definition(f, variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + b = r["fixed_version_document"] + bf = next(x for x in b["fields"] if x["pointer"] == f["pointer"]) + if variant == "text": + bf["limits"] = "forged" + else: + parent, _, key = f["pointer"].rpartition("/") + target = pointer(s, parent) + target[int(key) if isinstance(target, list) else key] = ( + "forged" if variant == "type" else None + ) + bf["value"] = pointer(s, f["pointer"]) + bf["json_type"] = type(bf["value"]).__name__ + refuse(s, r) + + +@pytest.mark.parametrize("i", range(22)) +@pytest.mark.parametrize("variant", ["mode", "identity"]) +def test_each_node_mode_and_identity_bound(i, variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + n = s["nodes"][i] + if variant == "mode": + n["mode"] = 0 if n["mode"] == 4 else 4 + else: + n["properties"]["ver"] = "forged" + refuse(s, r) + + +@pytest.mark.parametrize("i", range(24)) +def test_each_physical_endpoint_bound_both_directions(i): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + s["links"][i][3] = 99999 + refuse(s, r) + + +@pytest.mark.parametrize( + "variant", + [ + "empty_info", + "empty_loop", + "missing_bypasser", + "missing_audio_value", + "history", + "comment", + "summary", + "citation", + "source_sha", + "path", + "layout", + "ue", + "frontend", + ], +) +def test_special_shapes_history_comments_and_restoration_bound(variant): + s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + ns = {n["id"]: n for n in s["nodes"]} + b = r["fixed_version_document"] + if variant == "empty_info": + ns[27]["widgets_values"] = [] + elif variant == "empty_loop": + ns[20]["widgets_values"] = {} + elif variant == "missing_bypasser": + ns[15]["widgets_values"] = [] + elif variant == "missing_audio_value": + ns[36]["widgets_values"].append("") + elif variant == "history": + ns[10]["widgets_values"]["videopreview"]["params"]["frame_rate"] = 30 + elif variant == "comment": + ns[35]["widgets_values"][0] = "forged" + elif variant == "summary": + b["user_overview"] = "already executed" + elif variant == "citation": + b["sources"][0]["sha256"] = "0" * 64 + elif variant == "source_sha": + b["source_sha1"] = "0" * 40 + elif variant == "path": + b["source_path"] = "forged" + elif variant == "layout": + ns[8]["pos"][0] += 1 + elif variant == "ue": + ns[8]["properties"]["ue_properties"]["version"] = "forged" + else: + s["extra"]["frontendVersion"] = "forged" + refuse(s, r) + + +def test_precise_inventory_connections_and_limits(): + ns = {n["id"]: n for n in SOURCE["nodes"]} + b = BLOCK + assert len(ns) == 22 and len(SOURCE["links"]) == 24 + assert {i for i, n in ns.items() if n["mode"] == 0} == {8, 18, 21, 29, 10, 15, 5, 35, 13, 6} + assert {i for i, n in ns.items() if n["mode"] == 4} == { + 28, + 27, + 30, + 25, + 20, + 19, + 22, + 31, + 24, + 26, + 1, + 36, + } + assert ( + ns[27]["widgets_values"] == {} + and ns[20]["widgets_values"] == [] + and "widgets_values" not in ns[15] + ) + assert ns[36]["widgets_values"] == ["tmp/audio"] + assert ns[18]["widgets_values"] == [16] and type(ns[18]["widgets_values"][0]) is int + assert ns[29]["widgets_values"] == ns[30]["widgets_values"] == ["每批截取帧数"] + assert not any( + k in ns[29]["properties"] or k in ns[30]["properties"] for k in ["cnr_id", "ver"] + ) + assert len(b["fields"]) == len({f["pointer"] for f in b["fields"]}) == 50 + assert sum(isinstance(f["value"], dict) for f in b["fields"]) == 4 + assert sum(not isinstance(f["value"], dict) for f in b["fields"]) == 46 + assert len(b["comments"]) == 2 + for e, src, slot, dst, inp, _ in SOURCE["links"]: + assert e in ns[src]["outputs"][slot]["links"] and ns[dst]["inputs"][inp]["link"] == e + for nid, name, e in [ + (8, "skip_first_images", 19), + (8, "image_load_cap", 20), + (10, "filename_prefix", 21), + (10, "frame_rate", 23), + (1, "force_rate", 26), + (25, "force_rate", 45), + (25, "skip_first_frames", 38), + (25, "frame_load_cap", 50), + (19, "total", 29), + ]: + assert next(x for x in ns[nid]["inputs"] if x["name"] == name)["link"] == e + assert all( + x["link"] is None for x in ns[10]["inputs"] if x["name"] in ["audio", "vae", "meta_batch"] + ) + assert ns[1]["outputs"][0]["links"] in ([], None) + assert next(x for x in ns[26]["inputs"] if x["name"] == "caption")["link"] is None + d = doc() + assert d["fixed_version"]["matched"] + assert d["dependencies"]["check_state"] == "unchecked" and d["status"] == dict( + imported=True, doc_done=False, exec_verified=False + ) + for c in b["comments"]: + assert pointer(SOURCE, c["pointer"]) == [c["text"]] + assert next(n for n in d["source_notes"] if str(n["node_id"]) == c["node_id"])[ + "content" + ] == [c["text"]] + assert not b["counts"]["final_prompt_constructed"] + for word in [ + "原前端", + "purge_cache", + "caption", + "audioUI", + "每批截取帧数", + "不模拟", + "历史", + "30", + "16", + "1|2", + ]: + assert word in " ".join(b["flow"]) + + +def test_old_review_objects_and_27_documents_unchanged(): + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + old = json.loads(subprocess.check_output(["git", "show", "2a82f1f:" + resource], cwd=REPO)) + now = json.loads((REPO / resource).read_bytes()) + now[PATH].pop("fixed_version_document") + assert now == old and len(DEFINITIONS) == 28 + blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r] + assert ( + len(blocks) == 27 + and sum(len(b["fields"]) for b in blocks) == 838 + and sum( + len( + build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], r)[ + "source_notes" + ] + ) + for p, r in old.items() + if "fixed_version_document" in r + ) + == 19 + ) + assert review_for(PATH, "0" * 40) is None diff --git a/docs/hel-892/storyboard-document-evidence/.gitignore b/docs/hel-892/storyboard-document-evidence/.gitignore new file mode 100644 index 00000000..7a60b85e --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +*.pyc diff --git a/docs/hel-892/storyboard-document-evidence/actual-手动按分镜视频截取.json b/docs/hel-892/storyboard-document-evidence/actual-手动按分镜视频截取.json new file mode 100644 index 00000000..13e3f62a --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/actual-手动按分镜视频截取.json @@ -0,0 +1,4132 @@ +{ + "companion_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "dependencies": { + "check_state": "unchecked", + "checked_at": null, + "missing": [], + "model_locations": "待目标机提供", + "models": [], + "node_packs": [], + "node_types": [ + "Apply Text Template (mtb)", + "Fast Groups Bypasser (rgthree)", + "FloatConstant", + "GetNode", + "INTConstant", + "LayerUtility: PurgeVRAM", + "MathExpression|pysssss", + "Note", + "SaveAudio", + "SaveImageKJ", + "SetNode", + "VHS_LoadImagesPath", + "VHS_LoadVideo", + "VHS_VideoCombine", + "VHS_VideoInfoLoaded", + "easy forLoopEnd", + "easy forLoopStart" + ], + "source": null + }, + "draft": true, + "errors": [ + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_LoadImagesPath" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:FloatConstant" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:INTConstant" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:SetNode" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "LayerUtility: PurgeVRAM 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_VideoInfoLoaded 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "GetNode 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_LoadVideo 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "easy forLoopEnd 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "easy forLoopStart 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "MathExpression|pysssss 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_VideoCombine" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Fast Groups Bypasser (rgthree)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "MathExpression|pysssss 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "SaveImageKJ 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:Apply Text Template (mtb)" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "VHS_LoadVideo 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "SaveAudio 包含静音/旁路状态,需 API 导出核对" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:INTConstant" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:INTConstant" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "未得到可执行节点" + } + ], + "fixed_version": { + "canonical_sha256": "632cb01a99b3c09f19a149d6fb09a31b9b15e45f0591c9a2c13d034d91b423dc", + "comments": [ + { + "meaning": "完整源注释,仅作者说明,不是执行证明。", + "node_id": "31", + "pointer": "/nodes/11/widgets_values", + "scope": "root", + "text": "循环次数向上取整" + }, + { + "meaning": "完整源注释,仅作者说明,不是执行证明。", + "node_id": "35", + "pointer": "/nodes/17/widgets_values", + "scope": "root", + "text": "在截取的帧图像中,按照分镜头选取帧图像合成" + } + ], + "counts": { + "final_prompt_constructed": false, + "final_scalars": 0, + "frontend_only": 4, + "history_objects": 4, + "linked_saved_fields": 9, + "physical_edges": 24, + "saved_fields": 50, + "source_nodes": 22, + "source_notes": 2 + }, + "fields": [ + { + "class_type": "VHS_LoadImagesPath", + "effect": "保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.images;按准确实现文件名排序、筛选、跳过和间隔,再受cap限制,不能当作分镜智能识别。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "directory", + "json_type": "str", + "label": "图片文件夹引用", + "limits": "字符串,目标目录权限/存在性未知", + "node_id": "8", + "pointer": "/nodes/0/widgets_values/directory", + "role": "scalar", + "schema_default": "schema无显式默认", + "scope": "root", + "type": "STRING", + "unit": "目录文本", + "value": "E:\\ComfyUI-Data\\output\\tmp\\image" + }, + { + "class_type": "VHS_LoadImagesPath", + "effect": "保存0被13保存44经边20覆盖;44是上限,不保证44张。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "image_load_cap", + "json_type": "int", + "label": "文件夹图片数量上限", + "limits": "0~9007199254740991;0不设此上限", + "node_id": "8", + "pointer": "/nodes/0/widgets_values/image_load_cap", + "role": "linked_saved_value", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "图片/间隔", + "value": 0 + }, + { + "class_type": "VHS_LoadImagesPath", + "effect": "保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "skip_first_images", + "json_type": "int", + "label": "文件夹跳过图片数", + "limits": "0~9007199254740991", + "node_id": "8", + "pointer": "/nodes/0/widgets_values/skip_first_images", + "role": "linked_saved_value", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "图片/间隔", + "value": 0 + }, + { + "class_type": "VHS_LoadImagesPath", + "effect": "保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "文件夹间隔取图", + "limits": "1~9007199254740991", + "node_id": "8", + "pointer": "/nodes/0/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "图片/间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadImagesPath", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "完整历史预览对象", + "limits": "完整对象,不递归增加位置", + "node_id": "8", + "pointer": "/nodes/0/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端嵌套对象", + "unit": "历史状态", + "value": { + "hidden": false, + "params": { + "filename": "E:\\ComfyUI-Data\\output\\tmp\\image", + "format": "folder", + "image_load_cap": 0, + "select_every_nth": 1, + "skip_first_images": 0, + "type": "path" + }, + "paused": false + } + }, + { + "class_type": "FloatConstant", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "value", + "json_type": "int", + "label": "具名常量保存值", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "node_id": "18", + "pointer": "/nodes/1/widgets_values/0", + "role": "scalar", + "schema_default": "0.0", + "scope": "root", + "type": "FLOAT", + "unit": "无固有物理单位", + "value": 16 + }, + { + "class_type": "INTConstant", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "value", + "json_type": "int", + "label": "具名常量保存值", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "node_id": "21", + "pointer": "/nodes/2/widgets_values/0", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "无固有物理单位", + "value": 200 + }, + { + "class_type": "SetNode", + "effect": "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + "evidence": [], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "name", + "json_type": "str", + "label": "具名源标签(身份未知)", + "limits": "未知:不以类名绑定实现", + "node_id": "29", + "pointer": "/nodes/3/widgets_values/0", + "role": "identity_unknown", + "schema_default": "未知:未声明提供方版本", + "scope": "root", + "type": "STRING(仅源保存态)", + "unit": "标签文本", + "value": "每批截取帧数" + }, + { + "class_type": "LayerUtility: PurgeVRAM", + "effect": "28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。", + "evidence": [ + 17 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "purge_cache", + "json_type": "bool", + "label": "显存清理保存开关", + "limits": "true/false", + "node_id": "28", + "pointer": "/nodes/4/widgets_values/0", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "开关", + "value": true + }, + { + "class_type": "LayerUtility: PurgeVRAM", + "effect": "28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。", + "evidence": [ + 17 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "purge_models", + "json_type": "bool", + "label": "显存清理保存开关", + "limits": "true/false", + "node_id": "28", + "pointer": "/nodes/4/widgets_values/1", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "开关", + "value": true + }, + { + "class_type": "GetNode", + "effect": "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + "evidence": [], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "name", + "json_type": "str", + "label": "具名源标签(身份未知)", + "limits": "未知:不以类名绑定实现", + "node_id": "30", + "pointer": "/nodes/6/widgets_values/0", + "role": "identity_unknown", + "schema_default": "未知:未声明提供方版本", + "scope": "root", + "type": "STRING(仅源保存态)", + "unit": "标签文本", + "value": "每批截取帧数" + }, + { + "class_type": "VHS_LoadVideo", + "effect": "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/video", + "role": "scalar", + "schema_default": "动态input枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "文件引用", + "value": "牧马人-1-逃荒来的-1.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "effect": "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "强制采样帧率", + "limits": "0~60,step1;0关闭强制采样", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/force_rate", + "role": "linked_saved_value", + "schema_default": "0", + "scope": "root", + "type": "floatOrInt", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "保存0,实际宽度及动态格式约束未知,不读素材。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义宽度", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "保存0,实际高度未知;不以保存值保证原片尺寸。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义高度", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~9007199254740991,0不设此上限", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/frame_load_cap", + "role": "linked_saved_value", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "帧", + "value": 200 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~9007199254740991,step1", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/skip_first_frames", + "role": "linked_saved_value", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 200 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔取帧", + "limits": "1~9007199254740991", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "采样帧间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "AnimateDiff内置,外部格式动态扩展未知", + "node_id": "25", + "pointer": "/nodes/7/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式选择", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "完整历史预览对象", + "limits": "完整对象,不递归增加位置", + "node_id": "25", + "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": "牧马人-1-逃荒来的-1.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 200, + "select_every_nth": 1, + "skip_first_frames": 200, + "type": "input" + }, + "paused": false + } + }, + { + "class_type": "easy forLoopStart", + "effect": "保存1被22外线覆盖;19.initial_value1由1.frame_count输入,非total或已计算index。准确包从索引0或hidden initial_value0开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。", + "evidence": [ + 23 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "total", + "json_type": "int", + "label": "循环总量保存值", + "limits": "1~100000,step1", + "node_id": "19", + "pointer": "/nodes/9/widgets_values/0", + "role": "linked_saved_value", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "循环上限", + "value": 1 + }, + { + "class_type": "MathExpression|pysssss", + "effect": "22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。", + "evidence": [ + 20, + 21 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "expression", + "json_type": "str", + "label": "原始表达式文本", + "limits": "多行,dynamicPrompts=false;未声明字符串长度范围", + "node_id": "22", + "pointer": "/nodes/10/widgets_values/0", + "role": "scalar", + "schema_default": "schema无显式默认", + "scope": "root", + "type": "STRING", + "unit": "未知,随输入而定", + "value": "ceil(a / b)" + }, + { + "class_type": "VHS_VideoCombine", + "effect": "10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "frame_rate", + "json_type": "int", + "label": "合成播放帧率", + "limits": "min1,step1,无显式max", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/frame_rate", + "role": "linked_saved_value", + "schema_default": "8", + "scope": "root", + "type": "floatOrInt", + "unit": "帧/秒", + "value": 30 + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存0;本H264视频分支不额外循环,不混同GIF循环。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "loop_count", + "json_type": "int", + "label": "附加循环次数", + "limits": "0~100", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/loop_count", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "次", + "value": 0 + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存video/ComfyUI被5模板外线覆盖;模板保存tmp/video/video_{var_1}-{var_2},6/13接var_1/var_2。不执行替换或证明当前文件存在。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "filename_prefix", + "json_type": "str", + "label": "合成文件名前缀", + "limits": "无显式长度限制,目录权限未知", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/filename_prefix", + "role": "linked_saved_value", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "STRING", + "unit": "路径/前缀", + "value": "video/ComfyUI" + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "format", + "json_type": "str", + "label": "合成编码格式", + "limits": "动态ffmpeg格式,准确包含video/h264-mp4", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/format", + "role": "scalar", + "schema_default": "动态格式;函数回退image/gif", + "scope": "root", + "type": "COMBO", + "unit": "格式选择", + "value": "video/h264-mp4" + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存yuv420p,不保证实际尺寸、兼容性或编码成功。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "pix_fmt", + "json_type": "str", + "label": "像素格式", + "limits": "yuv420p/yuv420p10le", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/pix_fmt", + "role": "scalar", + "schema_default": "yuv420p(模板首项)", + "scope": "root", + "type": "COMBO", + "unit": "像素格式", + "value": "yuv420p" + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存19传入-crf;不承诺固定码率/大小或效果。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "crf", + "json_type": "int", + "label": "恒定质量因子", + "limits": "0~100,step1", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/crf", + "role": "scalar", + "schema_default": "19", + "scope": "root", + "type": "INT", + "unit": "CRF", + "value": 19 + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存false控制视频元数据;不等于没有独立首帧PNG,首帧另受VHS_MetadataImage影响。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "save_metadata", + "json_type": "bool", + "label": "视频元数据开关", + "limits": "true/false,模板及全局条件", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/save_metadata", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "开关", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存false,本图10.audio未接,不能称保留原声音或自动混流;不执行编码。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "trim_to_audio", + "json_type": "bool", + "label": "混流裁切策略", + "limits": "有效音频存在才进入混流", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/trim_to_audio", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "开关", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存false不追加逆序中间帧。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "pingpong", + "json_type": "bool", + "label": "往返追加", + "limits": "true/false", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/pingpong", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "开关", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "effect": "保存true选择output,前缀被外线覆盖。可能涉及视频和独立PNG;目录/权限/实际结果未知。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "save_output", + "json_type": "bool", + "label": "选择输出目录", + "limits": "true选output,false选temp", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/save_output", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "开关", + "value": true + }, + { + "class_type": "VHS_VideoCombine", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "完整历史预览对象", + "limits": "完整对象,不递归增加位置", + "node_id": "10", + "pointer": "/nodes/12/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端嵌套对象", + "unit": "历史状态", + "value": { + "hidden": false, + "params": { + "filename": "video_1126-44_00001.mp4", + "format": "video/h264-mp4", + "frame_rate": 16, + "fullpath": "E:\\ComfyUI-Data\\output\\tmp\\video\\video_1126-44_00001.mp4", + "subfolder": "tmp\\video", + "type": "output", + "workflow": "video_1126-44_00001.png" + }, + "paused": false + } + }, + { + "class_type": "MathExpression|pysssss", + "effect": "22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。", + "evidence": [ + 20, + 21 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "expression", + "json_type": "str", + "label": "原始表达式文本", + "limits": "多行,dynamicPrompts=false;未声明字符串长度范围", + "node_id": "24", + "pointer": "/nodes/14/widgets_values/0", + "role": "scalar", + "schema_default": "schema无显式默认", + "scope": "root", + "type": "STRING", + "unit": "未知,随输入而定", + "value": "a*b" + }, + { + "class_type": "SaveImageKJ", + "effect": "保存tmp/image/ComfyUI,图像来自25;mode4,不保证产物存在。", + "evidence": [ + 14 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "filename_prefix", + "json_type": "str", + "label": "图片保存前缀", + "limits": "schema无显式长度限制;目录与权限未知", + "node_id": "26", + "pointer": "/nodes/15/widgets_values/0", + "role": "scalar", + "schema_default": "ComfyUI", + "scope": "root", + "type": "STRING", + "unit": "文本/路径", + "value": "tmp/image/ComfyUI" + }, + { + "class_type": "SaveImageKJ", + "effect": "保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。", + "evidence": [ + 14 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "output_folder", + "json_type": "str", + "label": "图片输出目录", + "limits": "schema无显式长度限制;目录与权限未知", + "node_id": "26", + "pointer": "/nodes/15/widgets_values/1", + "role": "scalar", + "schema_default": "output", + "scope": "root", + "type": "STRING", + "unit": "文本/路径", + "value": "" + }, + { + "class_type": "SaveImageKJ", + "effect": "保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。", + "evidence": [ + 14 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "caption_file_extension", + "json_type": "str", + "label": "标注扩展名", + "limits": "schema无显式长度限制;目录与权限未知", + "node_id": "26", + "pointer": "/nodes/15/widgets_values/2", + "role": "scalar", + "schema_default": ".txt", + "scope": "root", + "type": "STRING", + "unit": "文本/路径", + "value": ".txt" + }, + { + "class_type": "Apply Text Template (mtb)", + "effect": "保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。", + "evidence": [ + 25 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "template", + "json_type": "str", + "label": "文件名前缀模板", + "limits": "多行,无显式长度范围", + "node_id": "5", + "pointer": "/nodes/16/widgets_values/0", + "role": "scalar", + "schema_default": "空字符串", + "scope": "root", + "type": "STRING", + "unit": "模板文本", + "value": "tmp/video/video_{var_1}-{var_2}" + }, + { + "class_type": "VHS_LoadVideo", + "effect": "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "video", + "json_type": "str", + "label": "视频文件引用", + "limits": "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/video", + "role": "scalar", + "schema_default": "动态input枚举,无固定默认", + "scope": "root", + "type": "COMBO", + "unit": "文件引用", + "value": "牧马人-1-逃荒来的-1.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "effect": "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "force_rate", + "json_type": "int", + "label": "强制采样帧率", + "limits": "0~60,step1;0关闭强制采样", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/force_rate", + "role": "linked_saved_value", + "schema_default": "0", + "scope": "root", + "type": "floatOrInt", + "unit": "帧/秒", + "value": 16 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "保存0,实际宽度及动态格式约束未知,不读素材。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义宽度", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "保存0,实际高度未知;不以保存值保证原片尺寸。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义高度", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "加载帧数上限", + "limits": "0~9007199254740991,0不设此上限", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "帧", + "value": 200 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过起始采样帧", + "limits": "0~9007199254740991,step1", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "采样帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "间隔取帧", + "limits": "1~9007199254740991", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "采样帧间隔", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "effect": "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + "evidence": [ + 0, + 1, + 10 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "AnimateDiff内置,外部格式动态扩展未知", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式选择", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "完整历史预览对象", + "limits": "完整对象,不递归增加位置", + "node_id": "1", + "pointer": "/nodes/18/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无服务端默认", + "scope": "root", + "type": "前端嵌套对象", + "unit": "历史状态", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "牧马人-1-逃荒来的-1.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 200, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": false + } + }, + { + "class_type": "SaveAudio", + "effect": "仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最终视频有音轨。", + "evidence": [ + 33, + 34 + ], + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。", + "field": "filename_prefix", + "json_type": "str", + "label": "旁路音频保存前缀", + "limits": "schema无显式长度范围;动态目录权限未知", + "node_id": "36", + "pointer": "/nodes/19/widgets_values/0", + "role": "scalar", + "schema_default": "audio/ComfyUI", + "scope": "root", + "type": "STRING", + "unit": "路径/前缀", + "value": "tmp/audio" + }, + { + "class_type": "INTConstant", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "value", + "json_type": "int", + "label": "具名常量保存值", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "node_id": "13", + "pointer": "/nodes/20/widgets_values/0", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "无固有物理单位", + "value": 44 + }, + { + "class_type": "INTConstant", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。", + "field": "value", + "json_type": "int", + "label": "具名常量保存值", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "node_id": "6", + "pointer": "/nodes/21/widgets_values/0", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "无固有物理单位", + "value": 1126 + } + ], + "flow": [ + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "活动物理链8.IMAGE→10.images;6保存1126经边19覆盖8.skip_first_images,13保存44经边20覆盖8.image_load_cap。两个常量另经11/25接5.var_1/var_2;模板tmp/video/video_{var_1}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图像称为当前直接视频截取。", + "18保存16(JSON int,源出口FLOAT分开)经23覆盖10保存30,也经26接旁路1.force_rate。10无audio/VAE/meta_batch线;16不是同步或源时长保证。H264/yuv420p/crf19/save_output=true、save_metadata=false/trimfalse/pingpongfalse按准确VHS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果。", + "视频组mode4:1.IMAGE空出口,frame_count→19.initial_value1、VHS info槽3→27;27.frame_count→22.ceil(a / b)→19.total,27.FPS→25.force_rate;19.index→24.a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.SaveImageKJ,frame_count→20,19.flow→20→28.PurgeVRAM。只保留物理线,不模拟旁路、循环或求值。", + "21保存200→Set29[每批截取帧数],Get30同名但提供方/版本均未声明,身份/解析未证,不能假定可靠取200。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。", + "1/25保存同视频名、cap200,skip0/200;25的force/skip/cap有外线覆盖。1.AUDIO→36.SaveAudio且mode4;10.audio未接,最终视频不保证声音。SaveAudio只有tmp/audio一个保存值,audioUI源口没有第二保存值,不补空串,不称已试听或写入。", + "26保存tmp/image/ComfyUI、空output_folder、.txt;caption未接。准确KJ实现相对/空目录走output,绝对路径另处理;PNG按计数名保存,caption非None才写标注。不声称实际.txt/目录/图像存在。28准确实现无条件clear_memory且purge_cache参数未使用,purge_models控制卸载;本轮不执行显存清理。", + "四个完整历史对象仅文本保留,含旧E盘与tmp/video产物、工作流PNG及输入引用;不去重、不递归凑位置,不请求api/view或媒体。Info27={}、LoopEnd20=[]与Bypasser15缺键分别零保存;组匹配1|2仅源属性,不证明当前动态作用。", + "根22节点24边,无子图,无frontendVersion;workflowRendererVersion=LG不是版本。UE7.5.1/7.5.2及缺version分别保留,空连接声明不证明无回调。EasyUse1.3.4、MTB0.5.4、VHS1.7.7固定准确包字节,Git绑定未知;不借近版本。无模型节点,不编模型依赖;目标安装、目录权限、素材尺寸、实际帧率/编码器/效果待核。", + "两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/必要实跑0/新增转换0,保持全停用未检查。", + "原边 root [11, 6, 0, 5, 1, \"INT\"]", + "原边 root [16, 8, 0, 10, 0, \"IMAGE\"]", + "原边 root [19, 6, 0, 8, 3, \"INT\"]", + "原边 root [20, 13, 0, 8, 2, \"INT\"]", + "原边 root [21, 5, 0, 10, 6, \"STRING\"]", + "原边 root [23, 18, 0, 10, 4, \"FLOAT\"]", + "原边 root [25, 13, 0, 5, 2, \"INT\"]", + "原边 root [26, 18, 0, 1, 3, \"FLOAT\"]", + "原边 root [29, 22, 0, 19, 1, \"INT\"]", + "原边 root [31, 19, 0, 20, 0, \"FLOW_CONTROL\"]", + "原边 root [32, 19, 1, 24, 0, \"INT\"]", + "原边 root [38, 24, 0, 25, 7, \"INT\"]", + "原边 root [41, 25, 0, 26, 0, \"IMAGE\"]", + "原边 root [43, 1, 3, 27, 0, \"VHS_VIDEOINFO\"]", + "原边 root [44, 27, 1, 22, 0, \"INT\"]", + "原边 root [45, 27, 0, 25, 3, \"FLOAT\"]", + "原边 root [46, 20, 0, 28, 0, \"*\"]", + "原边 root [47, 21, 0, 29, 0, \"INT\"]", + "原边 root [48, 30, 0, 22, 1, \"INT\"]", + "原边 root [49, 30, 0, 24, 1, \"INT\"]", + "原边 root [50, 30, 0, 25, 6, \"INT\"]", + "原边 root [51, 1, 1, 19, 0, \"INT\"]", + "原边 root [52, 25, 1, 20, 1, \"INT\"]", + "原边 root [56, 1, 2, 36, 0, \"AUDIO\"]", + "原节点 root {\"id\": 8, \"type\": \"VHS_LoadImagesPath\", \"mode\": 0, \"inputs\": [{\"label\": \"批次管理\", \"localized_name\": \"批次管理\", \"name\": \"meta_batch\", \"shape\": 7, \"type\": \"VHS_BatchManager\", \"link\": null}, {\"label\": \"路径\", \"localized_name\": \"路径\", \"name\": \"directory\", \"type\": \"STRING\", \"widget\": {\"name\": \"directory\"}, \"link\": null}, {\"label\": \"图像读取上限\", \"localized_name\": \"图像读取上限\", \"name\": \"image_load_cap\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"image_load_cap\"}, \"link\": 20}, {\"label\": \"跳过前X张\", \"localized_name\": \"跳过前X张\", \"name\": \"skip_first_images\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"skip_first_images\"}, \"link\": 19}, {\"label\": \"间隔\", \"localized_name\": \"间隔\", \"name\": \"select_every_nth\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"select_every_nth\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"图像\", \"type\": \"IMAGE\", \"links\": [16]}, {\"localized_name\": \"遮罩\", \"name\": \"遮罩\", \"type\": \"MASK\", \"links\": null}, {\"localized_name\": \"帧数\", \"name\": \"帧数\", \"type\": \"INT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"Node name for S&R\": \"VHS_LoadImagesPath\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.1\"}}}", + "原节点 root {\"id\": 18, \"type\": \"FloatConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"FLOAT\", \"links\": [23, 26]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"FloatConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 21, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [47]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 29, \"type\": \"SetNode\", \"mode\": 0, \"inputs\": [{\"name\": \"INT\", \"type\": \"INT\", \"link\": 47}], \"outputs\": [{\"name\": \"*\", \"type\": \"*\", \"links\": null}], \"properties\": {\"previousName\": \"每批截取帧数\"}}", + "原节点 root {\"id\": 28, \"type\": \"LayerUtility: PurgeVRAM\", \"mode\": 4, \"inputs\": [{\"localized_name\": \"任意内容\", \"name\": \"anything\", \"type\": \"*\", \"link\": 46}, {\"localized_name\": \"清除缓存\", \"name\": \"purge_cache\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"purge_cache\"}, \"link\": null}, {\"localized_name\": \"清除模型\", \"name\": \"purge_models\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"purge_models\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"cnr_id\": \"comfyui_layerstyle\", \"ver\": \"3b17c7f488006c872f4cb3d6b37029a9464f1d7b\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"LayerUtility: PurgeVRAM\"}}", + "原节点 root {\"id\": 27, \"type\": \"VHS_VideoInfoLoaded\", \"mode\": 4, \"inputs\": [{\"label\": \"视频信息\", \"localized_name\": \"视频信息\", \"name\": \"video_info\", \"type\": \"VHS_VIDEOINFO\", \"link\": 43}], \"outputs\": [{\"localized_name\": \"FPS🟦\", \"name\": \"FPS🟦\", \"type\": \"FLOAT\", \"links\": [45]}, {\"localized_name\": \"帧数🟦\", \"name\": \"帧数🟦\", \"type\": \"INT\", \"links\": [44]}, {\"localized_name\": \"时长🟦\", \"name\": \"时长🟦\", \"type\": \"FLOAT\", \"links\": null}, {\"localized_name\": \"宽度🟦\", \"name\": \"宽度🟦\", \"type\": \"INT\", \"links\": null}, {\"localized_name\": \"高度🟦\", \"name\": \"高度🟦\", \"type\": \"INT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"VHS_VideoInfoLoaded\"}}", + "原节点 root {\"id\": 30, \"type\": \"GetNode\", \"mode\": 4, \"inputs\": [], \"outputs\": [{\"name\": \"INT\", \"type\": \"INT\", \"links\": [48, 49, 50]}], \"properties\": {}}", + "原节点 root {\"id\": 25, \"type\": \"VHS_LoadVideo\", \"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\": 45}, {\"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\": 50}, {\"label\": \"跳过前X帧\", \"localized_name\": \"跳过前X帧\", \"name\": \"skip_first_frames\", \"type\": \"INT\", \"widget\": {\"name\": \"skip_first_frames\"}, \"link\": 38}, {\"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\": [41]}, {\"localized_name\": \"帧计数\", \"name\": \"帧计数\", \"type\": \"INT\", \"links\": [52]}, {\"localized_name\": \"音频\", \"name\": \"音频\", \"type\": \"AUDIO\", \"links\": []}, {\"localized_name\": \"视频信息\", \"name\": \"视频信息\", \"type\": \"VHS_VIDEOINFO\", \"links\": []}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}, \"Node name for S&R\": \"VHS_LoadVideo\"}}", + "原节点 root {\"id\": 20, \"type\": \"easy forLoopEnd\", \"mode\": 4, \"inputs\": [{\"label\": \"流\", \"localized_name\": \"流\", \"name\": \"flow\", \"shape\": 5, \"type\": \"FLOW_CONTROL\", \"link\": 31}, {\"label\": \"初始值1\", \"localized_name\": \"初始值1\", \"name\": \"initial_value1\", \"shape\": 7, \"type\": \"*\", \"link\": 52}, {\"label\": \"初始值2\", \"localized_name\": \"初始值2\", \"name\": \"initial_value2\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"值1\", \"name\": \"值1\", \"type\": \"*\", \"links\": [46]}, {\"name\": \"value2\", \"type\": \"*\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-easy-use\", \"ver\": \"1.3.4\", \"Node name for S&R\": \"easy forLoopEnd\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 19, \"type\": \"easy forLoopStart\", \"mode\": 4, \"inputs\": [{\"label\": \"初始值1\", \"localized_name\": \"初始值1\", \"name\": \"initial_value1\", \"shape\": 7, \"type\": \"*\", \"link\": 51}, {\"label\": \"总量\", \"localized_name\": \"总量\", \"name\": \"total\", \"type\": \"INT\", \"widget\": {\"name\": \"total\"}, \"link\": 29}, {\"label\": \"初始值2\", \"localized_name\": \"初始值2\", \"name\": \"initial_value2\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"开始\", \"name\": \"流\", \"type\": \"FLOW_CONTROL\", \"links\": [31]}, {\"localized_name\": \"索引\", \"name\": \"索引\", \"type\": \"INT\", \"links\": [32]}, {\"localized_name\": \"值1\", \"name\": \"值1\", \"type\": \"*\", \"links\": null}, {\"name\": \"value2\", \"type\": \"*\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-easy-use\", \"ver\": \"1.3.4\", \"Node name for S&R\": \"easy forLoopStart\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 22, \"type\": \"MathExpression|pysssss\", \"mode\": 4, \"inputs\": [{\"label\": \"a\", \"localized_name\": \"a\", \"name\": \"a\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 44}, {\"label\": \"b\", \"localized_name\": \"b\", \"name\": \"b\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 48}, {\"label\": \"c\", \"localized_name\": \"c\", \"name\": \"c\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": null}, {\"label\": \"表达式\", \"localized_name\": \"表达式\", \"name\": \"expression\", \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"widget\": {\"name\": \"expression\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"整数\", \"name\": \"整数\", \"type\": \"INT\", \"links\": [29]}, {\"localized_name\": \"浮点\", \"name\": \"浮点\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-custom-scripts\", \"ver\": \"f2838ed5e59de4d73cde5c98354b87a8d3200190\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 31, \"type\": \"Note\", \"mode\": 4, \"inputs\": [], \"outputs\": [], \"properties\": {}}", + "原节点 root {\"id\": 10, \"type\": \"VHS_VideoCombine\", \"mode\": 0, \"inputs\": [{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 16}, {\"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\": 23}, {\"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\": 21}, {\"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\": \"1.7.7\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.1\"}}}", + "原节点 root {\"id\": 15, \"type\": \"Fast Groups Bypasser (rgthree)\", \"mode\": 0, \"inputs\": [], \"outputs\": [{\"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}], \"properties\": {\"matchColors\": \"\", \"matchTitle\": \"1|2\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 24, \"type\": \"MathExpression|pysssss\", \"mode\": 4, \"inputs\": [{\"label\": \"a\", \"localized_name\": \"a\", \"name\": \"a\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 32}, {\"label\": \"b\", \"localized_name\": \"b\", \"name\": \"b\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 49}, {\"label\": \"c\", \"localized_name\": \"c\", \"name\": \"c\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": null}, {\"label\": \"表达式\", \"localized_name\": \"表达式\", \"name\": \"expression\", \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"widget\": {\"name\": \"expression\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"整数\", \"name\": \"整数\", \"type\": \"INT\", \"links\": [38]}, {\"localized_name\": \"浮点\", \"name\": \"浮点\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-custom-scripts\", \"ver\": \"f2838ed5e59de4d73cde5c98354b87a8d3200190\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}}}", + "原节点 root {\"id\": 26, \"type\": \"SaveImageKJ\", \"mode\": 4, \"inputs\": [{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 41}, {\"label\": \"标注\", \"localized_name\": \"标注\", \"name\": \"caption\", \"shape\": 7, \"type\": \"STRING\", \"link\": null}, {\"label\": \"文件名前缀\", \"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"label\": \"输出文件夹\", \"localized_name\": \"输出文件夹\", \"name\": \"output_folder\", \"type\": \"STRING\", \"widget\": {\"name\": \"output_folder\"}, \"link\": null}, {\"label\": \"标注文件扩展名\", \"localized_name\": \"标注文件扩展名\", \"name\": \"caption_file_extension\", \"shape\": 7, \"type\": \"STRING\", \"widget\": {\"name\": \"caption_file_extension\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"文件名\", \"name\": \"文件名\", \"type\": \"STRING\", \"links\": []}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}, \"Node name for S&R\": \"SaveImageKJ\"}}", + "原节点 root {\"id\": 5, \"type\": \"Apply Text Template (mtb)\", \"mode\": 0, \"inputs\": [{\"label\": \"模板\", \"localized_name\": \"模板\", \"name\": \"template\", \"type\": \"STRING\", \"widget\": {\"name\": \"template\"}, \"link\": null}, {\"label\": \"变量_1\", \"localized_name\": \"变量_1\", \"name\": \"var_1\", \"type\": \"*\", \"link\": 11}, {\"label\": \"var_2\", \"name\": \"var_2\", \"type\": \"*\", \"link\": 25}, {\"name\": \"var_3\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"字符串\", \"name\": \"字符串\", \"type\": \"STRING\", \"links\": [21]}], \"properties\": {\"cnr_id\": \"comfy-mtb\", \"ver\": \"0.5.4\", \"Node name for S&R\": \"Apply Text Template (mtb)\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 35, \"type\": \"Note\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {}}", + "原节点 root {\"id\": 1, \"type\": \"VHS_LoadVideo\", \"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\": 26}, {\"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\": []}, {\"localized_name\": \"帧计数\", \"name\": \"帧计数\", \"type\": \"INT\", \"links\": [51]}, {\"localized_name\": \"音频\", \"name\": \"音频\", \"type\": \"AUDIO\", \"links\": [56]}, {\"localized_name\": \"视频信息\", \"name\": \"视频信息\", \"type\": \"VHS_VIDEOINFO\", \"links\": [43]}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 36, \"type\": \"SaveAudio\", \"mode\": 4, \"inputs\": [{\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"link\": 56}, {\"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"localized_name\": \"音频UI\", \"name\": \"audioUI\", \"type\": \"AUDIO_UI\", \"widget\": {\"name\": \"audioUI\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"cnr_id\": \"comfy-core\", \"ver\": \"0.6.0\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"SaveAudio\"}}", + "原节点 root {\"id\": 13, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [20, 25]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 6, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [11, 19]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}" + ], + "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, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41 + ], + "matched": true, + "notice": "准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "source_sha1": "59487d0fc84d64832e36f865bb78008f0d90cf67", + "source_sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132", + "sources": [ + { + "claim": "1.7.7加载格式、采样和尺寸条件", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/load_video_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 22, + 168 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "加载实现和schema;不执行媒体", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/load_video_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 293, + 477 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "目录读取、图像尺寸匹配和批次;不访问E盘", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/load_images_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 15, + 126 + ], + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "路径加载具名schema,cap/skip/nth", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/load_images_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 165, + 206 + ], + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "按文件名排序、过滤、跳过和间隔", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/utils.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 137, + 155 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__utils.py", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "1.7.7合成schema、目录和首帧PNG条件", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 234, + 420 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "视频编码、音频条件和中间文件", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 420, + 625 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "H264/CRF/像素及音频模板", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "video_formats/h264-mp4.json", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1, + 15 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__video_formats__h264-mp4.json", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "格式模板、元数据参数条件", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 48, + 165 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "VideoInfoLoaded五出口与loaded_键", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 940, + 970 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "VHS准确四类节点注册", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1020, + 1050 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "同包保存恢复;不证明未知宿主及UE次序", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "web/js/VHS.core.js", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 41, + 168 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "历史预览缓存回调,非实际媒体", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "web/js/VHS.core.js", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 915, + 970 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + }, + { + "claim": "INTConstant与FloatConstant默认范围及舍入", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "file": "nodes/nodes.py", + "git_blob_sha1": "372c8518a77b20fa808de3b70736ceb8dde0092e", + "id": "kj", + "lines": [ + 31, + 59 + ], + "local_file": "../storyboard-reference/kj__nodes__nodes.py", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py" + }, + { + "claim": "SaveImageKJ目录、PNG及caption条件", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "file": "nodes/image_nodes.py", + "git_blob_sha1": "aac70d4770f5428a7e3f6bd9a10d50a821987199", + "id": "kj", + "lines": [ + 3235, + 3321 + ], + "local_file": "../storyboard-reference/kj__nodes__image_nodes.py", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py" + }, + { + "claim": "KJ节点映射配置", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "file": "__init__.py", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "id": "kj", + "lines": [ + 1, + 120 + ], + "local_file": "../storyboard-reference/kj____init__.py", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py" + }, + { + "claim": "KJ配置生成准确注册映射", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "file": "__init__.py", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "id": "kj", + "lines": [ + 232, + 246 + ], + "local_file": "../storyboard-reference/kj____init__.py", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py" + }, + { + "claim": "PurgeVRAM默认true,clear_memory无条件、模型清理有条件", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "file": "py/purge_vram.py", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "id": "layer", + "lines": [ + 8, + 37 + ], + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py" + }, + { + "claim": "PurgeVRAM准确注册", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "file": "py/purge_vram.py", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "id": "layer", + "lines": [ + 72, + 80 + ], + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py" + }, + { + "claim": "clear_memory的GC及CUDA可用条件;不执行", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "file": "py/imagefunc.py", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "id": "layer", + "lines": [ + 2123, + 2130 + ], + "local_file": "../storyboard-reference/layer__py__imagefunc.py", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py" + }, + { + "claim": "运算符及ceil函数注册;只读不求值", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "file": "py/math_expression.py", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "id": "math", + "lines": [ + 15, + 59 + ], + "local_file": "../storyboard-reference/math__py__math_expression.py", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py" + }, + { + "claim": "表达式schema、无显式默认及INT/FLOAT出口", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "file": "py/math_expression.py", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "id": "math", + "lines": [ + 98, + 126 + ], + "local_file": "../storyboard-reference/math__py__math_expression.py", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py" + }, + { + "claim": "MathExpression准确注册", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "file": "py/math_expression.py", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "id": "math", + "lines": [ + 245, + 251 + ], + "local_file": "../storyboard-reference/math__py__math_expression.py", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py" + }, + { + "claim": "1.3.4循环schema、初始索引及图展开条件;不模拟循环", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "file": "py/nodes/logic.py", + "git_commit_binding": "unknown", + "id": "easy", + "lines": [ + 800, + 903 + ], + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip" + }, + { + "claim": "循环准确注册", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "file": "py/nodes/logic.py", + "git_commit_binding": "unknown", + "id": "easy", + "lines": [ + 1738, + 1745 + ], + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip" + }, + { + "claim": "0.5.4模板schema及按kwargs字面替换,不计算本图结果", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "nodes/graph_utils.py", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 113, + 141 + ], + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "模板__nodes__模块列表", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "nodes/graph_utils.py", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 870, + 882 + ], + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "MTB显示名注册规则", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "__init__.py", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 190, + 205 + ], + "local_file": "../storyboard-reference/mtb____init__.py", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "MTB类名去前缀及驼峰显示名", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "log.py", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 77, + 87 + ], + "local_file": "../storyboard-reference/mtb__log.py", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "同包模板动态var_输入恢复;未知宿主及UE次序", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "web/mtb_widgets.js", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 1168, + 1171 + ], + "local_file": "../storyboard-reference/mtb__web__mtb_widgets.js", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "SaveAudio准确扩展注册", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "file": "comfy_extras/nodes_audio.py", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "id": "core", + "lines": [ + 603, + 626 + ], + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py" + }, + { + "claim": "音频文件描述符和output目录分派", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "file": "comfy_api/latest/_ui.py", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "id": "core", + "lines": [ + 27, + 76 + ], + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py" + }, + { + "claim": "模板动态连接setup与恢复回调", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "web/comfy_shared.js", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 377, + 445 + ], + "local_file": "../storyboard-reference/mtb__web__comfy_shared.js", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "core0.6.0 SaveAudio具名schema及FLAC输出调用", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "file": "comfy_extras/nodes_audio.py", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "id": "core", + "lines": [ + 120, + 141 + ], + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py" + }, + { + "claim": "AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "file": "comfy_api/latest/_ui.py", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "id": "core", + "lines": [ + 260, + 390 + ], + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "kj", + "lines": [ + 1, + 674 + ], + "local_file": "../storyboard-reference/kj__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "file": "LICENSE", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "id": "layer", + "lines": [ + 1, + 21 + ], + "local_file": "../storyboard-reference/layer__LICENSE", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "file": "LICENSE", + "git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c", + "id": "math", + "lines": [ + 1, + 21 + ], + "local_file": "../storyboard-reference/math__LICENSE", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "file": "LICENSE", + "git_commit_binding": "unknown", + "id": "easy", + "lines": [ + 1, + 674 + ], + "local_file": "../storyboard-reference/easy__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "file": "LICENSE", + "git_commit_binding": "unknown", + "id": "mtb", + "lines": [ + 1, + 21 + ], + "local_file": "../storyboard-reference/mtb__LICENSE", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "file": "LICENSE", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "id": "core", + "lines": [ + 1, + 674 + ], + "local_file": "../storyboard-reference/core__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE" + }, + { + "claim": "准确提交或发布包许可原文", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "file": "LICENSE", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1, + 674 + ], + "local_file": "../storyboard-reference/../reverse-reference/vhs__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + } + ], + "steps": [ + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。", + "操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。", + "操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。", + "常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。" + ], + "user_overview": "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "versions": [ + "KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;LayerStyle3b17c7f488006c872f4cb3d6b37029a9464f1d7b;CustomScripts f2838ed5e59de4d73cde5c98354b87a8d3200190。", + "VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。", + "core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67b007c9f391;无宿主前端声明。Set/Get/Bypasser身份未知,UE版本仅源文本。" + ], + "zero_saved_nodes": [ + { + "class_type": "VHS_VideoInfoLoaded", + "effect": "原{}零位置;不同于缺键/[]。", + "node_id": "27" + }, + { + "class_type": "easy forLoopEnd", + "effect": "原[]零位置;不补参数。", + "node_id": "20" + }, + { + "class_type": "Fast Groups Bypasser (rgthree)", + "effect": "原缺widgets_values键;提供方/版本未知,不模拟动态组开关。", + "node_id": "15" + } + ] + }, + "io": { + "inputs": [], + "outputs": [] + }, + "materials": [], + "params": [ + { + "advanced": false, + "default": "E:\\ComfyUI-Data\\output\\tmp\\image", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "directory", + "max": null, + "min": null, + "name": "directory", + "node_id": "8", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "image_load_cap", + "max": null, + "min": null, + "name": "image_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_images", + "max": null, + "min": null, + "name": "skip_first_images", + "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": "牧马人-1-逃荒来的-1.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "25", + "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": "25", + "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": "25", + "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": "25", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 200, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "25", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 200, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "skip_first_frames", + "max": null, + "min": null, + "name": "skip_first_frames", + "node_id": "25", + "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": "25", + "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": "25", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 30, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_rate", + "max": null, + "min": null, + "name": "frame_rate", + "node_id": "10", + "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": "10", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "video/ComfyUI", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "filename_prefix", + "max": null, + "min": null, + "name": "filename_prefix", + "node_id": "10", + "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": "10", + "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": "10", + "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": "10", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": false, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_metadata", + "max": null, + "min": null, + "name": "save_metadata", + "node_id": "10", + "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": "10", + "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": "10", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": true, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_output", + "max": null, + "min": null, + "name": "save_output", + "node_id": "10", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "牧马人-1-逃荒来的-1.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "1", + "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": "1", + "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": "1", + "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": "1", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 200, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "1", + "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": "1", + "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": "1", + "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": "1", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + } + ], + "purpose": "分镜截取包含图像文件夹、视频片段合成及旁路的 forLoop 分段处理。", + "snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "source_links": [ + { + "link": [ + 11, + 6, + 0, + 5, + 1, + "INT" + ], + "scope": "" + }, + { + "link": [ + 16, + 8, + 0, + 10, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 19, + 6, + 0, + 8, + 3, + "INT" + ], + "scope": "" + }, + { + "link": [ + 20, + 13, + 0, + 8, + 2, + "INT" + ], + "scope": "" + }, + { + "link": [ + 21, + 5, + 0, + 10, + 6, + "STRING" + ], + "scope": "" + }, + { + "link": [ + 23, + 18, + 0, + 10, + 4, + "FLOAT" + ], + "scope": "" + }, + { + "link": [ + 25, + 13, + 0, + 5, + 2, + "INT" + ], + "scope": "" + }, + { + "link": [ + 26, + 18, + 0, + 1, + 3, + "FLOAT" + ], + "scope": "" + }, + { + "link": [ + 29, + 22, + 0, + 19, + 1, + "INT" + ], + "scope": "" + }, + { + "link": [ + 31, + 19, + 0, + 20, + 0, + "FLOW_CONTROL" + ], + "scope": "" + }, + { + "link": [ + 32, + 19, + 1, + 24, + 0, + "INT" + ], + "scope": "" + }, + { + "link": [ + 38, + 24, + 0, + 25, + 7, + "INT" + ], + "scope": "" + }, + { + "link": [ + 41, + 25, + 0, + 26, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 43, + 1, + 3, + 27, + 0, + "VHS_VIDEOINFO" + ], + "scope": "" + }, + { + "link": [ + 44, + 27, + 1, + 22, + 0, + "INT" + ], + "scope": "" + }, + { + "link": [ + 45, + 27, + 0, + 25, + 3, + "FLOAT" + ], + "scope": "" + }, + { + "link": [ + 46, + 20, + 0, + 28, + 0, + "*" + ], + "scope": "" + }, + { + "link": [ + 47, + 21, + 0, + 29, + 0, + "INT" + ], + "scope": "" + }, + { + "link": [ + 48, + 30, + 0, + 22, + 1, + "INT" + ], + "scope": "" + }, + { + "link": [ + 49, + 30, + 0, + 24, + 1, + "INT" + ], + "scope": "" + }, + { + "link": [ + 50, + 30, + 0, + 25, + 6, + "INT" + ], + "scope": "" + }, + { + "link": [ + 51, + 1, + 1, + 19, + 0, + "INT" + ], + "scope": "" + }, + { + "link": [ + 52, + 25, + 1, + 20, + 1, + "INT" + ], + "scope": "" + }, + { + "link": [ + 56, + 1, + 2, + 36, + 0, + "AUDIO" + ], + "scope": "" + } + ], + "source_nodes": [ + { + "class_type": "VHS_LoadImagesPath", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "label": "路径", + "link": null, + "localized_name": "路径", + "name": "directory", + "type": "STRING", + "widget": { + "name": "directory" + } + }, + { + "label": "图像读取上限", + "link": 20, + "localized_name": "图像读取上限", + "name": "image_load_cap", + "shape": 7, + "type": "INT", + "widget": { + "name": "image_load_cap" + } + }, + { + "label": "跳过前X张", + "link": 19, + "localized_name": "跳过前X张", + "name": "skip_first_images", + "shape": 7, + "type": "INT", + "widget": { + "name": "skip_first_images" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "shape": 7, + "type": "INT", + "widget": { + "name": "select_every_nth" + } + } + ], + "mode": 0, + "node_id": "8", + "source_values": { + "directory": "E:\\ComfyUI-Data\\output\\tmp\\image", + "image_load_cap": 0, + "select_every_nth": 1, + "skip_first_images": 0, + "videopreview": { + "hidden": false, + "params": { + "filename": "E:\\ComfyUI-Data\\output\\tmp\\image", + "format": "folder", + "image_load_cap": 0, + "select_every_nth": 1, + "skip_first_images": 0, + "type": "path" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "FloatConstant", + "inputs": [ + { + "label": "值", + "link": null, + "localized_name": "值", + "name": "value", + "type": "FLOAT", + "widget": { + "name": "value" + } + } + ], + "mode": 0, + "node_id": "18", + "source_values": [ + 16 + ], + "title": null + }, + { + "class_type": "INTConstant", + "inputs": [ + { + "label": "值", + "link": null, + "localized_name": "值", + "name": "value", + "type": "INT", + "widget": { + "name": "value" + } + } + ], + "mode": 0, + "node_id": "21", + "source_values": [ + 200 + ], + "title": "每批截取帧数" + }, + { + "class_type": "SetNode", + "inputs": [ + { + "link": 47, + "name": "INT", + "type": "INT" + } + ], + "mode": 0, + "node_id": "29", + "source_values": [ + "每批截取帧数" + ], + "title": "Set_每批截取帧数" + }, + { + "class_type": "LayerUtility: PurgeVRAM", + "inputs": [ + { + "link": 46, + "localized_name": "任意内容", + "name": "anything", + "type": "*" + }, + { + "link": null, + "localized_name": "清除缓存", + "name": "purge_cache", + "type": "BOOLEAN", + "widget": { + "name": "purge_cache" + } + }, + { + "link": null, + "localized_name": "清除模型", + "name": "purge_models", + "type": "BOOLEAN", + "widget": { + "name": "purge_models" + } + } + ], + "mode": 4, + "node_id": "28", + "source_values": [ + true, + true + ], + "title": null + }, + { + "class_type": "VHS_VideoInfoLoaded", + "inputs": [ + { + "label": "视频信息", + "link": 43, + "localized_name": "视频信息", + "name": "video_info", + "type": "VHS_VIDEOINFO" + } + ], + "mode": 4, + "node_id": "27", + "source_values": {}, + "title": null + }, + { + "class_type": "GetNode", + "inputs": [], + "mode": 4, + "node_id": "30", + "source_values": [ + "每批截取帧数" + ], + "title": "Get_每批截取帧数" + }, + { + "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": 45, + "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": 50, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": 38, + "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": "25", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 200, + "select_every_nth": 1, + "skip_first_frames": 200, + "video": "牧马人-1-逃荒来的-1.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "牧马人-1-逃荒来的-1.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 200, + "select_every_nth": 1, + "skip_first_frames": 200, + "type": "input" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "easy forLoopEnd", + "inputs": [ + { + "label": "流", + "link": 31, + "localized_name": "流", + "name": "flow", + "shape": 5, + "type": "FLOW_CONTROL" + }, + { + "label": "初始值1", + "link": 52, + "localized_name": "初始值1", + "name": "initial_value1", + "shape": 7, + "type": "*" + }, + { + "label": "初始值2", + "link": null, + "localized_name": "初始值2", + "name": "initial_value2", + "type": "*" + } + ], + "mode": 4, + "node_id": "20", + "source_values": [], + "title": null + }, + { + "class_type": "easy forLoopStart", + "inputs": [ + { + "label": "初始值1", + "link": 51, + "localized_name": "初始值1", + "name": "initial_value1", + "shape": 7, + "type": "*" + }, + { + "label": "总量", + "link": 29, + "localized_name": "总量", + "name": "total", + "type": "INT", + "widget": { + "name": "total" + } + }, + { + "label": "初始值2", + "link": null, + "localized_name": "初始值2", + "name": "initial_value2", + "type": "*" + } + ], + "mode": 4, + "node_id": "19", + "source_values": [ + 1 + ], + "title": null + }, + { + "class_type": "MathExpression|pysssss", + "inputs": [ + { + "label": "a", + "link": 44, + "localized_name": "a", + "name": "a", + "shape": 7, + "type": "INT,FLOAT,IMAGE,LATENT" + }, + { + "label": "b", + "link": 48, + "localized_name": "b", + "name": "b", + "shape": 7, + "type": "INT,FLOAT,IMAGE,LATENT" + }, + { + "label": "c", + "link": null, + "localized_name": "c", + "name": "c", + "shape": 7, + "type": "INT,FLOAT,IMAGE,LATENT" + }, + { + "label": "表达式", + "link": null, + "localized_name": "表达式", + "name": "expression", + "type": "INT,FLOAT,IMAGE,LATENT", + "widget": { + "name": "expression" + } + } + ], + "mode": 4, + "node_id": "22", + "source_values": [ + "ceil(a / b)" + ], + "title": null + }, + { + "class_type": "Note", + "inputs": [], + "mode": 4, + "node_id": "31", + "source_values": [ + "循环次数向上取整" + ], + "title": "注释" + }, + { + "class_type": "VHS_VideoCombine", + "inputs": [ + { + "label": "图像", + "link": 16, + "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": 23, + "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": 21, + "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": "10", + "source_values": { + "crf": 19, + "filename_prefix": "video/ComfyUI", + "format": "video/h264-mp4", + "frame_rate": 30, + "loop_count": 0, + "pingpong": false, + "pix_fmt": "yuv420p", + "save_metadata": false, + "save_output": true, + "trim_to_audio": false, + "videopreview": { + "hidden": false, + "params": { + "filename": "video_1126-44_00001.mp4", + "format": "video/h264-mp4", + "frame_rate": 16, + "fullpath": "E:\\ComfyUI-Data\\output\\tmp\\video\\video_1126-44_00001.mp4", + "subfolder": "tmp\\video", + "type": "output", + "workflow": "video_1126-44_00001.png" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "Fast Groups Bypasser (rgthree)", + "inputs": [], + "mode": 0, + "node_id": "15", + "source_values": [], + "title": null + }, + { + "class_type": "MathExpression|pysssss", + "inputs": [ + { + "label": "a", + "link": 32, + "localized_name": "a", + "name": "a", + "shape": 7, + "type": "INT,FLOAT,IMAGE,LATENT" + }, + { + "label": "b", + "link": 49, + "localized_name": "b", + "name": "b", + "shape": 7, + "type": "INT,FLOAT,IMAGE,LATENT" + }, + { + "label": "c", + "link": null, + "localized_name": "c", + "name": "c", + "shape": 7, + "type": "INT,FLOAT,IMAGE,LATENT" + }, + { + "label": "表达式", + "link": null, + "localized_name": "表达式", + "name": "expression", + "type": "INT,FLOAT,IMAGE,LATENT", + "widget": { + "name": "expression" + } + } + ], + "mode": 4, + "node_id": "24", + "source_values": [ + "a*b" + ], + "title": null + }, + { + "class_type": "SaveImageKJ", + "inputs": [ + { + "label": "图像", + "link": 41, + "localized_name": "图像", + "name": "images", + "type": "IMAGE" + }, + { + "label": "标注", + "link": null, + "localized_name": "标注", + "name": "caption", + "shape": 7, + "type": "STRING" + }, + { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + { + "label": "输出文件夹", + "link": null, + "localized_name": "输出文件夹", + "name": "output_folder", + "type": "STRING", + "widget": { + "name": "output_folder" + } + }, + { + "label": "标注文件扩展名", + "link": null, + "localized_name": "标注文件扩展名", + "name": "caption_file_extension", + "shape": 7, + "type": "STRING", + "widget": { + "name": "caption_file_extension" + } + } + ], + "mode": 4, + "node_id": "26", + "source_values": [ + "tmp/image/ComfyUI", + "", + ".txt" + ], + "title": null + }, + { + "class_type": "Apply Text Template (mtb)", + "inputs": [ + { + "label": "模板", + "link": null, + "localized_name": "模板", + "name": "template", + "type": "STRING", + "widget": { + "name": "template" + } + }, + { + "label": "变量_1", + "link": 11, + "localized_name": "变量_1", + "name": "var_1", + "type": "*" + }, + { + "label": "var_2", + "link": 25, + "name": "var_2", + "type": "*" + }, + { + "link": null, + "name": "var_3", + "type": "*" + } + ], + "mode": 0, + "node_id": "5", + "source_values": [ + "tmp/video/video_{var_1}-{var_2}" + ], + "title": null + }, + { + "class_type": "Note", + "inputs": [], + "mode": 0, + "node_id": "35", + "source_values": [ + "在截取的帧图像中,按照分镜头选取帧图像合成" + ], + "title": "注释" + }, + { + "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": 26, + "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": "1", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 16, + "format": "AnimateDiff", + "frame_load_cap": 200, + "select_every_nth": 1, + "skip_first_frames": 0, + "video": "牧马人-1-逃荒来的-1.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "牧马人-1-逃荒来的-1.mp4", + "force_rate": 16, + "format": "video/mp4", + "frame_load_cap": 200, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "SaveAudio", + "inputs": [ + { + "link": 56, + "localized_name": "音频", + "name": "audio", + "type": "AUDIO" + }, + { + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + { + "link": null, + "localized_name": "音频UI", + "name": "audioUI", + "type": "AUDIO_UI", + "widget": { + "name": "audioUI" + } + } + ], + "mode": 4, + "node_id": "36", + "source_values": [ + "tmp/audio" + ], + "title": null + }, + { + "class_type": "INTConstant", + "inputs": [ + { + "label": "值", + "link": null, + "localized_name": "值", + "name": "value", + "type": "INT", + "widget": { + "name": "value" + } + } + ], + "mode": 0, + "node_id": "13", + "source_values": [ + 44 + ], + "title": "读取数量" + }, + { + "class_type": "INTConstant", + "inputs": [ + { + "label": "值", + "link": null, + "localized_name": "值", + "name": "value", + "type": "INT", + "widget": { + "name": "value" + } + } + ], + "mode": 0, + "node_id": "6", + "source_values": [ + 1126 + ], + "title": "跳过前X帧" + } + ], + "source_notes": [ + { + "content": [ + "循环次数向上取整" + ], + "node_id": "31" + }, + { + "content": [ + "在截取的帧图像中,按照分镜头选取帧图像合成" + ], + "node_id": "35" + } + ], + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "source_review": { + "complete": false, + "evidence": { + "link_count": 24, + "model_references": [], + "named_value_count": 30, + "node_count": 22, + "note_node_ids": [ + "31", + "35" + ], + "unnamed_widget_node_ids": [ + "18", + "21", + "29", + "28", + "30", + "19", + "22", + "24", + "26", + "5", + "36", + "13", + "6" + ] + }, + "instruction": "源注释要求在截取帧中按分镜选取帧图像合成;先替换 E 盘目录,旁路循环中的 ceil(a/b) 不能直接当作当前执行次数。", + "purpose": "分镜截取包含图像文件夹、视频片段合成及旁路的 forLoop 分段处理。", + "reviewed_named_fields": [ + { + "field": "directory", + "label": "读入图像目录", + "node_id": "8", + "node_type": "VHS_LoadImagesPath", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "E:\\ComfyUI-Data\\output\\tmp\\image" + }, + { + "field": "image_load_cap", + "label": "读入图像数量上限字段", + "node_id": "8", + "node_type": "VHS_LoadImagesPath", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "skip_first_images", + "label": "读入图像跳过数量字段", + "node_id": "8", + "node_type": "VHS_LoadImagesPath", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "select_every_nth", + "label": "读入间隔字段", + "node_id": "8", + "node_type": "VHS_LoadImagesPath", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 1 + }, + { + "field": "video", + "label": "读入视频选择/路径现值(可能由连线覆盖)", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "牧马人-1-逃荒来的-1.mp4" + }, + { + "field": "force_rate", + "label": "读入端强制帧率字段", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 16 + }, + { + "field": "custom_width", + "label": "读入端自定义宽度字段", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "custom_height", + "label": "读入端自定义高度字段", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "frame_load_cap", + "label": "读入帧数上限字段", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 200 + }, + { + "field": "skip_first_frames", + "label": "读入跳过起始帧字段", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 200 + }, + { + "field": "select_every_nth", + "label": "读入间隔字段", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 1 + }, + { + "field": "format", + "label": "该节点格式选择现值(读入与合成不可混用)", + "node_id": "25", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "AnimateDiff" + }, + { + "field": "frame_rate", + "label": "合成端帧率现值", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 30 + }, + { + "field": "loop_count", + "label": "合成循环字段现值", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "filename_prefix", + "label": "输出文件名前缀", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "video/ComfyUI" + }, + { + "field": "format", + "label": "该节点格式选择现值(读入与合成不可混用)", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "video/h264-mp4" + }, + { + "field": "pix_fmt", + "label": "输出像素格式选择", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "yuv420p" + }, + { + "field": "crf", + "label": "输出编码质量字段现值", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 19 + }, + { + "field": "save_metadata", + "label": "输出元数据保存开关", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": false + }, + { + "field": "trim_to_audio", + "label": "合成端按音频裁切开关", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": false + }, + { + "field": "pingpong", + "label": "合成端往返字段开关", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": false + }, + { + "field": "save_output", + "label": "合成端保存开关", + "node_id": "10", + "node_type": "VHS_VideoCombine", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": true + }, + { + "field": "video", + "label": "读入视频选择/路径现值(可能由连线覆盖)", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "牧马人-1-逃荒来的-1.mp4" + }, + { + "field": "force_rate", + "label": "读入端强制帧率字段", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 16 + }, + { + "field": "custom_width", + "label": "读入端自定义宽度字段", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "custom_height", + "label": "读入端自定义高度字段", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "frame_load_cap", + "label": "读入帧数上限字段", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 200 + }, + { + "field": "skip_first_frames", + "label": "读入跳过起始帧字段", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 0 + }, + { + "field": "select_every_nth", + "label": "读入间隔字段", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": 1 + }, + { + "field": "format", + "label": "该节点格式选择现值(读入与合成不可混用)", + "node_id": "1", + "node_type": "VHS_LoadVideo", + "scope": "人工核对源具名字段及现值、所在节点的读入/合成用途;单位、合法范围、插件行为和调整效果未确认", + "source_value": "AnimateDiff" + } + ], + "scope": [ + "结构及用途局部审校", + "源具名参数/注释/连线/素材模型用途人工语义局部审校" + ], + "semantic_review": { + "batch": "HEL-892-third", + "conclusions": [ + "8具名directory指向E盘临时图像,连线16送10合成", + "1和25读取同名视频,但skip_first_frames分别0与200,force_rate均16,10的frame_rate为30,需核对是否有意改变播放速度。31说明ceil向上取整,35说明按分镜选帧", + "56把1音频送36单独保存,不能误称所有截取分支已自动对齐音轨。" + ], + "evidence_refs": { + "nodes": [ + { + "node_id": "8", + "pointer": "/source_nodes/0" + }, + { + "node_id": "30", + "pointer": "/source_nodes/6" + }, + { + "node_id": "25", + "pointer": "/source_nodes/7" + }, + { + "node_id": "31", + "pointer": "/source_nodes/11" + }, + { + "node_id": "10", + "pointer": "/source_nodes/12" + }, + { + "node_id": "35", + "pointer": "/source_nodes/17" + }, + { + "node_id": "1", + "pointer": "/source_nodes/18" + }, + { + "node_id": "36", + "pointer": "/source_nodes/19" + } + ], + "notes": [ + { + "node_id": "31", + "pointer": "/source_notes/0" + }, + { + "node_id": "35", + "pointer": "/source_notes/1" + } + ], + "source_graph": "/source_links(按scope区分主图与子图;连线ID仅在各自scope内有效)" + }, + "mechanical_inventory": { + "link_count": 24, + "named_value_count": 30, + "note_count": 2, + "position_widget_node_count": 13 + }, + "named_parameter_finding": "已核对源具名字段及现值,详见reviewed_named_fields", + "operation_check": "8具名directory指向E盘临时图像,连线16送10合成;1和25读取同名视频,但skip_first_frames分别0与200,force_rate均16,10的frame_rate为30,需核对是否有意改变播放速度。31说明ceil向上取整,35说明按分镜选帧;56把1音频送36单独保存,不能误称所有截取分支已自动对齐音轨。", + "unknowns": [ + "位置数组未按位置具名,具名字段单位/合法范围/调整效果未获定义验证", + "注释中的效果、性能、版本支持为源作者陈述,未作外部或环境验证", + "静音/旁路、虚拟节点、子图、开关与连线覆盖的实际执行结果待原前端API导出", + "模型/素材引用只表示源文件出现,实际安装、位置、可用性和输出编码待真实环境核对" + ] + }, + "source_sha": "59487d0fc84d64832e36f865bb78008f0d90cf67", + "unconfirmed": [ + "逐参数语义、单位、范围和调整效果未定稿", + "UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出", + "模型/节点包位置、素材可用性及实际输出未在目标环境核对" + ] + }, + "source_review_sha": "b3ac8c84551547f71b5cc4874885460de06b52d448d931df30abee39f8c6f575", + "status": { + "doc_done": false, + "exec_verified": false, + "imported": true + }, + "steps": [ + "源注释要求在截取帧中按分镜选取帧图像合成;先替换 E 盘目录,旁路循环中的 ceil(a/b) 不能直接当作当前执行次数。", + "8具名directory指向E盘临时图像,连线16送10合成;1和25读取同名视频,但skip_first_frames分别0与200,force_rate均16,10的frame_rate为30,需核对是否有意改变播放速度。31说明ceil向上取整,35说明按分镜选帧;56把1音频送36单独保存,不能误称所有截取分支已自动对齐音轨。", + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。", + "操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。", + "操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。", + "常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。" + ], + "title": "手动按分镜视频截取" +} diff --git a/docs/hel-892/storyboard-document-evidence/audit-summary.json b/docs/hel-892/storyboard-document-evidence/audit-summary.json new file mode 100644 index 00000000..dfd588aa --- /dev/null +++ b/docs/hel-892/storyboard-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/storyboard-document-evidence/backend-final.txt b/docs/hel-892/storyboard-document-evidence/backend-final.txt new file mode 100644 index 00000000..42b052d8 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/backend-final.txt @@ -0,0 +1,12 @@ +........................................................................ [ 24%] +........................................................................ [ 48%] +........................................................................ [ 72%] +........................................................................ [ 97%] +........ [100%] +=============================== warnings summary =============================== +calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53 + /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead. + _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]] + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +296 passed, 1 warning in 4.89s diff --git a/docs/hel-892/storyboard-document-evidence/backend-initial.txt b/docs/hel-892/storyboard-document-evidence/backend-initial.txt new file mode 100644 index 00000000..bee0ba0a --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/backend-initial.txt @@ -0,0 +1,35 @@ +........................................................................ [ 24%] +........................................................................ [ 48%] +........................................................................ [ 72%] +..................................................................F..... [ 97%] +........ [100%] +=================================== FAILURES =================================== +______________ test_old_review_objects_and_27_documents_unchanged ______________ + + def test_old_review_objects_and_27_documents_unchanged(): + resource='calliope-backend/src/calliope/comfyui/source_reviews.json' + old=json.loads(subprocess.check_output(['git','show','2a82f1f:'+resource],cwd=REPO));now=json.loads((REPO/resource).read_bytes()) + now[PATH].pop('fixed_version_document');assert now==old and len(DEFINITIONS)==28 + blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] +> assert len(blocks)==27 and sum(len(b['fields']) for b in blocks)==838 and sum(len(b['comments']) for b in blocks)==19 + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +calliope-backend/tests/test_storyboard_fixed_document.py:121: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +.0 = + +> assert len(blocks)==27 and sum(len(b['fields']) for b in blocks)==838 and sum(len(b['comments']) for b in blocks)==19 + ^^^^^^^^^^^^^ +E KeyError: 'comments' + +calliope-backend/tests/test_storyboard_fixed_document.py:121: KeyError +=============================== warnings summary =============================== +calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53 + /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead. + _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]] + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +=========================== short test summary info ============================ +FAILED calliope-backend/tests/test_storyboard_fixed_document.py::test_old_review_objects_and_27_documents_unchanged +1 failed, 295 passed, 1 warning in 4.94s diff --git a/docs/hel-892/storyboard-document-evidence/backend-second.txt b/docs/hel-892/storyboard-document-evidence/backend-second.txt new file mode 100644 index 00000000..6688e891 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/backend-second.txt @@ -0,0 +1,12 @@ +........................................................................ [ 24%] +........................................................................ [ 48%] +........................................................................ [ 72%] +........................................................................ [ 97%] +........ [100%] +=============================== warnings summary =============================== +calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53 + /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead. + _PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]] + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +296 passed, 1 warning in 4.91s diff --git a/docs/hel-892/storyboard-document-evidence/boundaries.json b/docs/hel-892/storyboard-document-evidence/boundaries.json new file mode 100644 index 00000000..1b210943 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/boundaries.json @@ -0,0 +1,728 @@ +{ + "base": "2a82f1f4de16e6694ce800b0d51c98a47351bb24", + "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_seven_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/storyboard-document-evidence/bounded-investigation.json b/docs/hel-892/storyboard-document-evidence/bounded-investigation.json new file mode 100644 index 00000000..7d2d3701 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/bounded-investigation.json @@ -0,0 +1,377 @@ +{ + "scope": "Only the listed exact Git source files and exact release archive members; no upstream execution, newer-version substitution, model/media/target access or alias history search.", + "files": [ + { + "id": "kj", + "file": "__init__.py", + "local_file": "kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819" + }, + { + "id": "kj", + "file": "nodes/nodes.py", + "local_file": "kj__nodes__nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "git_blob_sha1": "372c8518a77b20fa808de3b70736ceb8dde0092e" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "git_blob_sha1": "aac70d4770f5428a7e3f6bd9a10d50a821987199" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "layer", + "file": "__init__.py", + "local_file": "layer____init__.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/__init__.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a" + }, + { + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559" + }, + { + "id": "math", + "file": "__init__.py", + "local_file": "math____init__.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/__init__.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684", + "git_blob_sha1": "ae43dd2090ce782074bf72f2b7f49ad28dff1a5c" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2" + }, + { + "id": "math", + "file": "LICENSE", + "local_file": "math__LICENSE", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "../reverse-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "__init__.py", + "local_file": "../reverse-reference/vhs____init__.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "pyproject.toml", + "local_file": "../reverse-reference/vhs__pyproject.toml", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "10c69eeae93c21cdfc22cb63f39ba4ce83bcd459725fcf6beb0298276541a1c2", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../reverse-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../reverse-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "web/js/videoinfo.js", + "local_file": "../reverse-reference/vhs__web__js__videoinfo.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "LICENSE", + "local_file": "easy__LICENSE", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "__init__.py", + "local_file": "easy____init__.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "d225b7157796aa5f015bb28bfa6cee8e3048fb810a45e988122ea3b365bdde22", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "pyproject.toml", + "local_file": "easy__pyproject.toml", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "123745784e7e332be08f29a4fc90d96393af25262c3b4e8cfc806cfaa91799d8", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "LICENSE", + "local_file": "mtb__LICENSE", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "__init__.py", + "local_file": "mtb____init__.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "pyproject.toml", + "local_file": "mtb__pyproject.toml", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "d6f354766a928079ffb85d996b82bb3db517e2246e2216471aadf0a6d03f324d", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown" + }, + { + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/nodes.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "1d8eb523db6753a01a9bdd8efface14a76ff91babb2be434a98ea2a1a757b894", + "git_blob_sha1": "7d83ecb21db8d30bf71c24bd2fbd2c7adfdff7d6" + }, + { + "id": "core", + "file": "folder_paths.py", + "local_file": "core__folder_paths.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/folder_paths.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112", + "git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce" + }, + { + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "log.py", + "local_file": "mtb__log.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "web/mtb_ui.js", + "local_file": "mtb__web__mtb_ui.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5d5c686d8c7646bccc8efa74ba6815d4f4a65b310cf0d3760399ec55e0fbdf67", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "web/mtb_widgets.js", + "local_file": "mtb__web__mtb_widgets.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "web/comfy_shared.js", + "local_file": "mtb__web__comfy_shared.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "wiki/nodes/nodes-apply-text-template.md", + "local_file": "mtb__wiki__nodes__nodes-apply-text-template.md", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "f2926be6da3ba5ff0ab992da0ff2baf1404904561ac65867ee50a72e8428f6e8", + "git_commit_binding": "unknown" + }, + { + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa" + }, + { + "id": "core", + "file": "comfy_api/latest/_io.py", + "local_file": "core__comfy_api__latest___io.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_io.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "9ae0d719957a3d31472d4c9de0ff9635db074e222903055bab880b26c295ed86", + "git_blob_sha1": "4b14e5ded38b1061acec725e019e6e14c977b538" + } + ], + "unknown": [ + "host frontend version and UE restoration order", + "Set/Get and Bypasser identity/resolution", + "target packages, directories, actual FPS, media and codecs", + "loop execution, real results and effects" + ], + "reuse": "9 VHS1.7.7 text members from reverse-reference with original release package SHA; LoadImagesPath member independently read from same exact package", + "counts": { + "git": 17, + "package": 23, + "unique": 40 + } +} diff --git a/docs/hel-892/storyboard-document-evidence/browser-final.txt b/docs/hel-892/storyboard-document-evidence/browser-final.txt new file mode 100644 index 00000000..a2462e8f --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/browser-final.txt @@ -0,0 +1,1423 @@ +PASS 28图888保存位置 +PASS 28图21源注释 +PASS 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 手动按分镜视频截取展开流程 38 +PASS 1440 手动按分镜视频截取展开流程 39 +PASS 1440 手动按分镜视频截取展开流程 40 +PASS 1440 手动按分镜视频截取展开流程 41 +PASS 1440 手动按分镜视频截取展开流程 42 +PASS 1440 手动按分镜视频截取展开流程 43 +PASS 1440 手动按分镜视频截取展开流程 44 +PASS 1440 手动按分镜视频截取展开流程 45 +PASS 1440 手动按分镜视频截取展开流程 46 +PASS 1440 手动按分镜视频截取展开流程 47 +PASS 1440 手动按分镜视频截取展开流程 48 +PASS 1440 手动按分镜视频截取展开流程 49 +PASS 1440 手动按分镜视频截取展开流程 50 +PASS 1440 手动按分镜视频截取展开流程 51 +PASS 1440 手动按分镜视频截取展开流程 52 +PASS 1440 手动按分镜视频截取展开流程 53 +PASS 1440 手动按分镜视频截取展开流程 54 +PASS 1440 手动按分镜视频截取展开流程 55 +PASS 1440 手动按分镜视频截取原件摘要可展开 +PASS 1440 手动按分镜视频截取版本 0 +PASS 1440 手动按分镜视频截取版本 1 +PASS 1440 手动按分镜视频截取版本 2 +PASS 1440 8.directory键盘展开 +PASS 1440 8.directory用途/单位/范围/来源条件 +PASS 1440 8.directory精确保留现值 +PASS 1440 8.directory指针默认折叠 +PASS 1440 8.directory精确源码/类型/指针 +PASS 1440 8.directory展开无溢出 +PASS 1440 8.image_load_cap键盘展开 +PASS 1440 8.image_load_cap用途/单位/范围/来源条件 +PASS 1440 8.image_load_cap精确保留现值 +PASS 1440 8.image_load_cap指针默认折叠 +PASS 1440 8.image_load_cap精确源码/类型/指针 +PASS 1440 8.image_load_cap展开无溢出 +PASS 1440 8.skip_first_images键盘展开 +PASS 1440 8.skip_first_images用途/单位/范围/来源条件 +PASS 1440 8.skip_first_images精确保留现值 +PASS 1440 8.skip_first_images指针默认折叠 +PASS 1440 8.skip_first_images精确源码/类型/指针 +PASS 1440 8.skip_first_images展开无溢出 +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.videopreview键盘展开 +PASS 1440 8.videopreview用途/单位/范围/来源条件 +PASS 1440 8.videopreview精确保留现值 +PASS 1440 8.videopreview指针默认折叠 +PASS 1440 8.videopreview精确源码/类型/指针 +PASS 1440 8.videopreview展开无溢出 +PASS 1440 18.value键盘展开 +PASS 1440 18.value用途/单位/范围/来源条件 +PASS 1440 18.value精确保留现值 +PASS 1440 18.value指针默认折叠 +PASS 1440 18.value精确源码/类型/指针 +PASS 1440 18.value展开无溢出 +PASS 1440 21.value键盘展开 +PASS 1440 21.value用途/单位/范围/来源条件 +PASS 1440 21.value精确保留现值 +PASS 1440 21.value指针默认折叠 +PASS 1440 21.value精确源码/类型/指针 +PASS 1440 21.value展开无溢出 +PASS 1440 29.name键盘展开 +PASS 1440 29.name用途/单位/范围/来源条件 +PASS 1440 29.name精确保留现值 +PASS 1440 29.name指针默认折叠 +PASS 1440 29.name精确源码/类型/指针 +PASS 1440 29.name展开无溢出 +PASS 1440 28.purge_cache键盘展开 +PASS 1440 28.purge_cache用途/单位/范围/来源条件 +PASS 1440 28.purge_cache精确保留现值 +PASS 1440 28.purge_cache指针默认折叠 +PASS 1440 28.purge_cache精确源码/类型/指针 +PASS 1440 28.purge_cache展开无溢出 +PASS 1440 28.purge_models键盘展开 +PASS 1440 28.purge_models用途/单位/范围/来源条件 +PASS 1440 28.purge_models精确保留现值 +PASS 1440 28.purge_models指针默认折叠 +PASS 1440 28.purge_models精确源码/类型/指针 +PASS 1440 28.purge_models展开无溢出 +PASS 1440 30.name键盘展开 +PASS 1440 30.name用途/单位/范围/来源条件 +PASS 1440 30.name精确保留现值 +PASS 1440 30.name指针默认折叠 +PASS 1440 30.name精确源码/类型/指针 +PASS 1440 30.name展开无溢出 +PASS 1440 25.video键盘展开 +PASS 1440 25.video用途/单位/范围/来源条件 +PASS 1440 25.video精确保留现值 +PASS 1440 25.video指针默认折叠 +PASS 1440 25.video精确源码/类型/指针 +PASS 1440 25.video展开无溢出 +PASS 1440 25.force_rate键盘展开 +PASS 1440 25.force_rate用途/单位/范围/来源条件 +PASS 1440 25.force_rate精确保留现值 +PASS 1440 25.force_rate指针默认折叠 +PASS 1440 25.force_rate精确源码/类型/指针 +PASS 1440 25.force_rate展开无溢出 +PASS 1440 25.custom_width键盘展开 +PASS 1440 25.custom_width用途/单位/范围/来源条件 +PASS 1440 25.custom_width精确保留现值 +PASS 1440 25.custom_width指针默认折叠 +PASS 1440 25.custom_width精确源码/类型/指针 +PASS 1440 25.custom_width展开无溢出 +PASS 1440 25.custom_height键盘展开 +PASS 1440 25.custom_height用途/单位/范围/来源条件 +PASS 1440 25.custom_height精确保留现值 +PASS 1440 25.custom_height指针默认折叠 +PASS 1440 25.custom_height精确源码/类型/指针 +PASS 1440 25.custom_height展开无溢出 +PASS 1440 25.frame_load_cap键盘展开 +PASS 1440 25.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 25.frame_load_cap精确保留现值 +PASS 1440 25.frame_load_cap指针默认折叠 +PASS 1440 25.frame_load_cap精确源码/类型/指针 +PASS 1440 25.frame_load_cap展开无溢出 +PASS 1440 25.skip_first_frames键盘展开 +PASS 1440 25.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 25.skip_first_frames精确保留现值 +PASS 1440 25.skip_first_frames指针默认折叠 +PASS 1440 25.skip_first_frames精确源码/类型/指针 +PASS 1440 25.skip_first_frames展开无溢出 +PASS 1440 25.select_every_nth键盘展开 +PASS 1440 25.select_every_nth用途/单位/范围/来源条件 +PASS 1440 25.select_every_nth精确保留现值 +PASS 1440 25.select_every_nth指针默认折叠 +PASS 1440 25.select_every_nth精确源码/类型/指针 +PASS 1440 25.select_every_nth展开无溢出 +PASS 1440 25.format键盘展开 +PASS 1440 25.format用途/单位/范围/来源条件 +PASS 1440 25.format精确保留现值 +PASS 1440 25.format指针默认折叠 +PASS 1440 25.format精确源码/类型/指针 +PASS 1440 25.format展开无溢出 +PASS 1440 25.videopreview键盘展开 +PASS 1440 25.videopreview用途/单位/范围/来源条件 +PASS 1440 25.videopreview精确保留现值 +PASS 1440 25.videopreview指针默认折叠 +PASS 1440 25.videopreview精确源码/类型/指针 +PASS 1440 25.videopreview展开无溢出 +PASS 1440 19.total键盘展开 +PASS 1440 19.total用途/单位/范围/来源条件 +PASS 1440 19.total精确保留现值 +PASS 1440 19.total指针默认折叠 +PASS 1440 19.total精确源码/类型/指针 +PASS 1440 19.total展开无溢出 +PASS 1440 22.expression键盘展开 +PASS 1440 22.expression用途/单位/范围/来源条件 +PASS 1440 22.expression精确保留现值 +PASS 1440 22.expression指针默认折叠 +PASS 1440 22.expression精确源码/类型/指针 +PASS 1440 22.expression展开无溢出 +PASS 1440 10.frame_rate键盘展开 +PASS 1440 10.frame_rate用途/单位/范围/来源条件 +PASS 1440 10.frame_rate精确保留现值 +PASS 1440 10.frame_rate指针默认折叠 +PASS 1440 10.frame_rate精确源码/类型/指针 +PASS 1440 10.frame_rate展开无溢出 +PASS 1440 10.loop_count键盘展开 +PASS 1440 10.loop_count用途/单位/范围/来源条件 +PASS 1440 10.loop_count精确保留现值 +PASS 1440 10.loop_count指针默认折叠 +PASS 1440 10.loop_count精确源码/类型/指针 +PASS 1440 10.loop_count展开无溢出 +PASS 1440 10.filename_prefix键盘展开 +PASS 1440 10.filename_prefix用途/单位/范围/来源条件 +PASS 1440 10.filename_prefix精确保留现值 +PASS 1440 10.filename_prefix指针默认折叠 +PASS 1440 10.filename_prefix精确源码/类型/指针 +PASS 1440 10.filename_prefix展开无溢出 +PASS 1440 10.format键盘展开 +PASS 1440 10.format用途/单位/范围/来源条件 +PASS 1440 10.format精确保留现值 +PASS 1440 10.format指针默认折叠 +PASS 1440 10.format精确源码/类型/指针 +PASS 1440 10.format展开无溢出 +PASS 1440 10.pix_fmt键盘展开 +PASS 1440 10.pix_fmt用途/单位/范围/来源条件 +PASS 1440 10.pix_fmt精确保留现值 +PASS 1440 10.pix_fmt指针默认折叠 +PASS 1440 10.pix_fmt精确源码/类型/指针 +PASS 1440 10.pix_fmt展开无溢出 +PASS 1440 10.crf键盘展开 +PASS 1440 10.crf用途/单位/范围/来源条件 +PASS 1440 10.crf精确保留现值 +PASS 1440 10.crf指针默认折叠 +PASS 1440 10.crf精确源码/类型/指针 +PASS 1440 10.crf展开无溢出 +PASS 1440 10.save_metadata键盘展开 +PASS 1440 10.save_metadata用途/单位/范围/来源条件 +PASS 1440 10.save_metadata精确保留现值 +PASS 1440 10.save_metadata指针默认折叠 +PASS 1440 10.save_metadata精确源码/类型/指针 +PASS 1440 10.save_metadata展开无溢出 +PASS 1440 10.trim_to_audio键盘展开 +PASS 1440 10.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 10.trim_to_audio精确保留现值 +PASS 1440 10.trim_to_audio指针默认折叠 +PASS 1440 10.trim_to_audio精确源码/类型/指针 +PASS 1440 10.trim_to_audio展开无溢出 +PASS 1440 10.pingpong键盘展开 +PASS 1440 10.pingpong用途/单位/范围/来源条件 +PASS 1440 10.pingpong精确保留现值 +PASS 1440 10.pingpong指针默认折叠 +PASS 1440 10.pingpong精确源码/类型/指针 +PASS 1440 10.pingpong展开无溢出 +PASS 1440 10.save_output键盘展开 +PASS 1440 10.save_output用途/单位/范围/来源条件 +PASS 1440 10.save_output精确保留现值 +PASS 1440 10.save_output指针默认折叠 +PASS 1440 10.save_output精确源码/类型/指针 +PASS 1440 10.save_output展开无溢出 +PASS 1440 10.videopreview键盘展开 +PASS 1440 10.videopreview用途/单位/范围/来源条件 +PASS 1440 10.videopreview精确保留现值 +PASS 1440 10.videopreview指针默认折叠 +PASS 1440 10.videopreview精确源码/类型/指针 +PASS 1440 10.videopreview展开无溢出 +PASS 1440 24.expression键盘展开 +PASS 1440 24.expression用途/单位/范围/来源条件 +PASS 1440 24.expression精确保留现值 +PASS 1440 24.expression指针默认折叠 +PASS 1440 24.expression精确源码/类型/指针 +PASS 1440 24.expression展开无溢出 +PASS 1440 26.filename_prefix键盘展开 +PASS 1440 26.filename_prefix用途/单位/范围/来源条件 +PASS 1440 26.filename_prefix精确保留现值 +PASS 1440 26.filename_prefix指针默认折叠 +PASS 1440 26.filename_prefix精确源码/类型/指针 +PASS 1440 26.filename_prefix展开无溢出 +PASS 1440 26.output_folder键盘展开 +PASS 1440 26.output_folder用途/单位/范围/来源条件 +PASS 1440 26.output_folder精确保留现值 +PASS 1440 26.output_folder指针默认折叠 +PASS 1440 26.output_folder精确源码/类型/指针 +PASS 1440 26.output_folder展开无溢出 +PASS 1440 26.caption_file_extension键盘展开 +PASS 1440 26.caption_file_extension用途/单位/范围/来源条件 +PASS 1440 26.caption_file_extension精确保留现值 +PASS 1440 26.caption_file_extension指针默认折叠 +PASS 1440 26.caption_file_extension精确源码/类型/指针 +PASS 1440 26.caption_file_extension展开无溢出 +PASS 1440 5.template键盘展开 +PASS 1440 5.template用途/单位/范围/来源条件 +PASS 1440 5.template精确保留现值 +PASS 1440 5.template指针默认折叠 +PASS 1440 5.template精确源码/类型/指针 +PASS 1440 5.template展开无溢出 +PASS 1440 1.video键盘展开 +PASS 1440 1.video用途/单位/范围/来源条件 +PASS 1440 1.video精确保留现值 +PASS 1440 1.video指针默认折叠 +PASS 1440 1.video精确源码/类型/指针 +PASS 1440 1.video展开无溢出 +PASS 1440 1.force_rate键盘展开 +PASS 1440 1.force_rate用途/单位/范围/来源条件 +PASS 1440 1.force_rate精确保留现值 +PASS 1440 1.force_rate指针默认折叠 +PASS 1440 1.force_rate精确源码/类型/指针 +PASS 1440 1.force_rate展开无溢出 +PASS 1440 1.custom_width键盘展开 +PASS 1440 1.custom_width用途/单位/范围/来源条件 +PASS 1440 1.custom_width精确保留现值 +PASS 1440 1.custom_width指针默认折叠 +PASS 1440 1.custom_width精确源码/类型/指针 +PASS 1440 1.custom_width展开无溢出 +PASS 1440 1.custom_height键盘展开 +PASS 1440 1.custom_height用途/单位/范围/来源条件 +PASS 1440 1.custom_height精确保留现值 +PASS 1440 1.custom_height指针默认折叠 +PASS 1440 1.custom_height精确源码/类型/指针 +PASS 1440 1.custom_height展开无溢出 +PASS 1440 1.frame_load_cap键盘展开 +PASS 1440 1.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 1.frame_load_cap精确保留现值 +PASS 1440 1.frame_load_cap指针默认折叠 +PASS 1440 1.frame_load_cap精确源码/类型/指针 +PASS 1440 1.frame_load_cap展开无溢出 +PASS 1440 1.skip_first_frames键盘展开 +PASS 1440 1.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 1.skip_first_frames精确保留现值 +PASS 1440 1.skip_first_frames指针默认折叠 +PASS 1440 1.skip_first_frames精确源码/类型/指针 +PASS 1440 1.skip_first_frames展开无溢出 +PASS 1440 1.select_every_nth键盘展开 +PASS 1440 1.select_every_nth用途/单位/范围/来源条件 +PASS 1440 1.select_every_nth精确保留现值 +PASS 1440 1.select_every_nth指针默认折叠 +PASS 1440 1.select_every_nth精确源码/类型/指针 +PASS 1440 1.select_every_nth展开无溢出 +PASS 1440 1.format键盘展开 +PASS 1440 1.format用途/单位/范围/来源条件 +PASS 1440 1.format精确保留现值 +PASS 1440 1.format指针默认折叠 +PASS 1440 1.format精确源码/类型/指针 +PASS 1440 1.format展开无溢出 +PASS 1440 1.videopreview键盘展开 +PASS 1440 1.videopreview用途/单位/范围/来源条件 +PASS 1440 1.videopreview精确保留现值 +PASS 1440 1.videopreview指针默认折叠 +PASS 1440 1.videopreview精确源码/类型/指针 +PASS 1440 1.videopreview展开无溢出 +PASS 1440 36.filename_prefix键盘展开 +PASS 1440 36.filename_prefix用途/单位/范围/来源条件 +PASS 1440 36.filename_prefix精确保留现值 +PASS 1440 36.filename_prefix指针默认折叠 +PASS 1440 36.filename_prefix精确源码/类型/指针 +PASS 1440 36.filename_prefix展开无溢出 +PASS 1440 13.value键盘展开 +PASS 1440 13.value用途/单位/范围/来源条件 +PASS 1440 13.value精确保留现值 +PASS 1440 13.value指针默认折叠 +PASS 1440 13.value精确源码/类型/指针 +PASS 1440 13.value展开无溢出 +PASS 1440 6.value键盘展开 +PASS 1440 6.value用途/单位/范围/来源条件 +PASS 1440 6.value精确保留现值 +PASS 1440 6.value指针默认折叠 +PASS 1440 6.value精确源码/类型/指针 +PASS 1440 6.value展开无溢出 +PASS 1440注释31全文 +PASS 1440注释31无溢出 +PASS 1440注释35全文 +PASS 1440注释35无溢出 +PASS 1440Tab焦点保留 +PASS 1440ShiftTab焦点保留 +PASS 1440 手动按分镜视频截取关闭归还焦点 +PASS 1440 sam3_图像视频-提示词遮罩分割默认中文用途 +PASS 1440 sam3_图像视频-提示词遮罩分割源审校默认折叠 +PASS 1440 sam3_图像视频-提示词遮罩分割技术范围默认折叠 +PASS 1440 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识 +PASS 1440 sam3_图像视频-提示词遮罩分割默认依据限制可见 +PASS 1440 sam3_图像视频-提示词遮罩分割 说明未定稿 +PASS 1440 sam3_图像视频-提示词遮罩分割 未验证实跑 +PASS 1440 sam3_图像视频-提示词遮罩分割 未检查 +PASS 1440 sam3_图像视频-提示词遮罩分割停用/时间戳空 +PASS 1440 sam3_图像视频-提示词遮罩分割参数全保留 +PASS 1440 sam3_图像视频-提示词遮罩分割默认无溢出 +PASS 1440 sam3_图像视频-提示词遮罩分割旧图归还焦点 +PASS 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 图像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 手动按分镜视频截取展开流程 38 +PASS 390 手动按分镜视频截取展开流程 39 +PASS 390 手动按分镜视频截取展开流程 40 +PASS 390 手动按分镜视频截取展开流程 41 +PASS 390 手动按分镜视频截取展开流程 42 +PASS 390 手动按分镜视频截取展开流程 43 +PASS 390 手动按分镜视频截取展开流程 44 +PASS 390 手动按分镜视频截取展开流程 45 +PASS 390 手动按分镜视频截取展开流程 46 +PASS 390 手动按分镜视频截取展开流程 47 +PASS 390 手动按分镜视频截取展开流程 48 +PASS 390 手动按分镜视频截取展开流程 49 +PASS 390 手动按分镜视频截取展开流程 50 +PASS 390 手动按分镜视频截取展开流程 51 +PASS 390 手动按分镜视频截取展开流程 52 +PASS 390 手动按分镜视频截取展开流程 53 +PASS 390 手动按分镜视频截取展开流程 54 +PASS 390 手动按分镜视频截取展开流程 55 +PASS 390 手动按分镜视频截取原件摘要可展开 +PASS 390 手动按分镜视频截取版本 0 +PASS 390 手动按分镜视频截取版本 1 +PASS 390 手动按分镜视频截取版本 2 +PASS 390 8.directory键盘展开 +PASS 390 8.directory用途/单位/范围/来源条件 +PASS 390 8.directory精确保留现值 +PASS 390 8.directory指针默认折叠 +PASS 390 8.directory精确源码/类型/指针 +PASS 390 8.directory展开无溢出 +PASS 390 8.image_load_cap键盘展开 +PASS 390 8.image_load_cap用途/单位/范围/来源条件 +PASS 390 8.image_load_cap精确保留现值 +PASS 390 8.image_load_cap指针默认折叠 +PASS 390 8.image_load_cap精确源码/类型/指针 +PASS 390 8.image_load_cap展开无溢出 +PASS 390 8.skip_first_images键盘展开 +PASS 390 8.skip_first_images用途/单位/范围/来源条件 +PASS 390 8.skip_first_images精确保留现值 +PASS 390 8.skip_first_images指针默认折叠 +PASS 390 8.skip_first_images精确源码/类型/指针 +PASS 390 8.skip_first_images展开无溢出 +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.videopreview键盘展开 +PASS 390 8.videopreview用途/单位/范围/来源条件 +PASS 390 8.videopreview精确保留现值 +PASS 390 8.videopreview指针默认折叠 +PASS 390 8.videopreview精确源码/类型/指针 +PASS 390 8.videopreview展开无溢出 +PASS 390 18.value键盘展开 +PASS 390 18.value用途/单位/范围/来源条件 +PASS 390 18.value精确保留现值 +PASS 390 18.value指针默认折叠 +PASS 390 18.value精确源码/类型/指针 +PASS 390 18.value展开无溢出 +PASS 390 21.value键盘展开 +PASS 390 21.value用途/单位/范围/来源条件 +PASS 390 21.value精确保留现值 +PASS 390 21.value指针默认折叠 +PASS 390 21.value精确源码/类型/指针 +PASS 390 21.value展开无溢出 +PASS 390 29.name键盘展开 +PASS 390 29.name用途/单位/范围/来源条件 +PASS 390 29.name精确保留现值 +PASS 390 29.name指针默认折叠 +PASS 390 29.name精确源码/类型/指针 +PASS 390 29.name展开无溢出 +PASS 390 28.purge_cache键盘展开 +PASS 390 28.purge_cache用途/单位/范围/来源条件 +PASS 390 28.purge_cache精确保留现值 +PASS 390 28.purge_cache指针默认折叠 +PASS 390 28.purge_cache精确源码/类型/指针 +PASS 390 28.purge_cache展开无溢出 +PASS 390 28.purge_models键盘展开 +PASS 390 28.purge_models用途/单位/范围/来源条件 +PASS 390 28.purge_models精确保留现值 +PASS 390 28.purge_models指针默认折叠 +PASS 390 28.purge_models精确源码/类型/指针 +PASS 390 28.purge_models展开无溢出 +PASS 390 30.name键盘展开 +PASS 390 30.name用途/单位/范围/来源条件 +PASS 390 30.name精确保留现值 +PASS 390 30.name指针默认折叠 +PASS 390 30.name精确源码/类型/指针 +PASS 390 30.name展开无溢出 +PASS 390 25.video键盘展开 +PASS 390 25.video用途/单位/范围/来源条件 +PASS 390 25.video精确保留现值 +PASS 390 25.video指针默认折叠 +PASS 390 25.video精确源码/类型/指针 +PASS 390 25.video展开无溢出 +PASS 390 25.force_rate键盘展开 +PASS 390 25.force_rate用途/单位/范围/来源条件 +PASS 390 25.force_rate精确保留现值 +PASS 390 25.force_rate指针默认折叠 +PASS 390 25.force_rate精确源码/类型/指针 +PASS 390 25.force_rate展开无溢出 +PASS 390 25.custom_width键盘展开 +PASS 390 25.custom_width用途/单位/范围/来源条件 +PASS 390 25.custom_width精确保留现值 +PASS 390 25.custom_width指针默认折叠 +PASS 390 25.custom_width精确源码/类型/指针 +PASS 390 25.custom_width展开无溢出 +PASS 390 25.custom_height键盘展开 +PASS 390 25.custom_height用途/单位/范围/来源条件 +PASS 390 25.custom_height精确保留现值 +PASS 390 25.custom_height指针默认折叠 +PASS 390 25.custom_height精确源码/类型/指针 +PASS 390 25.custom_height展开无溢出 +PASS 390 25.frame_load_cap键盘展开 +PASS 390 25.frame_load_cap用途/单位/范围/来源条件 +PASS 390 25.frame_load_cap精确保留现值 +PASS 390 25.frame_load_cap指针默认折叠 +PASS 390 25.frame_load_cap精确源码/类型/指针 +PASS 390 25.frame_load_cap展开无溢出 +PASS 390 25.skip_first_frames键盘展开 +PASS 390 25.skip_first_frames用途/单位/范围/来源条件 +PASS 390 25.skip_first_frames精确保留现值 +PASS 390 25.skip_first_frames指针默认折叠 +PASS 390 25.skip_first_frames精确源码/类型/指针 +PASS 390 25.skip_first_frames展开无溢出 +PASS 390 25.select_every_nth键盘展开 +PASS 390 25.select_every_nth用途/单位/范围/来源条件 +PASS 390 25.select_every_nth精确保留现值 +PASS 390 25.select_every_nth指针默认折叠 +PASS 390 25.select_every_nth精确源码/类型/指针 +PASS 390 25.select_every_nth展开无溢出 +PASS 390 25.format键盘展开 +PASS 390 25.format用途/单位/范围/来源条件 +PASS 390 25.format精确保留现值 +PASS 390 25.format指针默认折叠 +PASS 390 25.format精确源码/类型/指针 +PASS 390 25.format展开无溢出 +PASS 390 25.videopreview键盘展开 +PASS 390 25.videopreview用途/单位/范围/来源条件 +PASS 390 25.videopreview精确保留现值 +PASS 390 25.videopreview指针默认折叠 +PASS 390 25.videopreview精确源码/类型/指针 +PASS 390 25.videopreview展开无溢出 +PASS 390 19.total键盘展开 +PASS 390 19.total用途/单位/范围/来源条件 +PASS 390 19.total精确保留现值 +PASS 390 19.total指针默认折叠 +PASS 390 19.total精确源码/类型/指针 +PASS 390 19.total展开无溢出 +PASS 390 22.expression键盘展开 +PASS 390 22.expression用途/单位/范围/来源条件 +PASS 390 22.expression精确保留现值 +PASS 390 22.expression指针默认折叠 +PASS 390 22.expression精确源码/类型/指针 +PASS 390 22.expression展开无溢出 +PASS 390 10.frame_rate键盘展开 +PASS 390 10.frame_rate用途/单位/范围/来源条件 +PASS 390 10.frame_rate精确保留现值 +PASS 390 10.frame_rate指针默认折叠 +PASS 390 10.frame_rate精确源码/类型/指针 +PASS 390 10.frame_rate展开无溢出 +PASS 390 10.loop_count键盘展开 +PASS 390 10.loop_count用途/单位/范围/来源条件 +PASS 390 10.loop_count精确保留现值 +PASS 390 10.loop_count指针默认折叠 +PASS 390 10.loop_count精确源码/类型/指针 +PASS 390 10.loop_count展开无溢出 +PASS 390 10.filename_prefix键盘展开 +PASS 390 10.filename_prefix用途/单位/范围/来源条件 +PASS 390 10.filename_prefix精确保留现值 +PASS 390 10.filename_prefix指针默认折叠 +PASS 390 10.filename_prefix精确源码/类型/指针 +PASS 390 10.filename_prefix展开无溢出 +PASS 390 10.format键盘展开 +PASS 390 10.format用途/单位/范围/来源条件 +PASS 390 10.format精确保留现值 +PASS 390 10.format指针默认折叠 +PASS 390 10.format精确源码/类型/指针 +PASS 390 10.format展开无溢出 +PASS 390 10.pix_fmt键盘展开 +PASS 390 10.pix_fmt用途/单位/范围/来源条件 +PASS 390 10.pix_fmt精确保留现值 +PASS 390 10.pix_fmt指针默认折叠 +PASS 390 10.pix_fmt精确源码/类型/指针 +PASS 390 10.pix_fmt展开无溢出 +PASS 390 10.crf键盘展开 +PASS 390 10.crf用途/单位/范围/来源条件 +PASS 390 10.crf精确保留现值 +PASS 390 10.crf指针默认折叠 +PASS 390 10.crf精确源码/类型/指针 +PASS 390 10.crf展开无溢出 +PASS 390 10.save_metadata键盘展开 +PASS 390 10.save_metadata用途/单位/范围/来源条件 +PASS 390 10.save_metadata精确保留现值 +PASS 390 10.save_metadata指针默认折叠 +PASS 390 10.save_metadata精确源码/类型/指针 +PASS 390 10.save_metadata展开无溢出 +PASS 390 10.trim_to_audio键盘展开 +PASS 390 10.trim_to_audio用途/单位/范围/来源条件 +PASS 390 10.trim_to_audio精确保留现值 +PASS 390 10.trim_to_audio指针默认折叠 +PASS 390 10.trim_to_audio精确源码/类型/指针 +PASS 390 10.trim_to_audio展开无溢出 +PASS 390 10.pingpong键盘展开 +PASS 390 10.pingpong用途/单位/范围/来源条件 +PASS 390 10.pingpong精确保留现值 +PASS 390 10.pingpong指针默认折叠 +PASS 390 10.pingpong精确源码/类型/指针 +PASS 390 10.pingpong展开无溢出 +PASS 390 10.save_output键盘展开 +PASS 390 10.save_output用途/单位/范围/来源条件 +PASS 390 10.save_output精确保留现值 +PASS 390 10.save_output指针默认折叠 +PASS 390 10.save_output精确源码/类型/指针 +PASS 390 10.save_output展开无溢出 +PASS 390 10.videopreview键盘展开 +PASS 390 10.videopreview用途/单位/范围/来源条件 +PASS 390 10.videopreview精确保留现值 +PASS 390 10.videopreview指针默认折叠 +PASS 390 10.videopreview精确源码/类型/指针 +PASS 390 10.videopreview展开无溢出 +PASS 390 24.expression键盘展开 +PASS 390 24.expression用途/单位/范围/来源条件 +PASS 390 24.expression精确保留现值 +PASS 390 24.expression指针默认折叠 +PASS 390 24.expression精确源码/类型/指针 +PASS 390 24.expression展开无溢出 +PASS 390 26.filename_prefix键盘展开 +PASS 390 26.filename_prefix用途/单位/范围/来源条件 +PASS 390 26.filename_prefix精确保留现值 +PASS 390 26.filename_prefix指针默认折叠 +PASS 390 26.filename_prefix精确源码/类型/指针 +PASS 390 26.filename_prefix展开无溢出 +PASS 390 26.output_folder键盘展开 +PASS 390 26.output_folder用途/单位/范围/来源条件 +PASS 390 26.output_folder精确保留现值 +PASS 390 26.output_folder指针默认折叠 +PASS 390 26.output_folder精确源码/类型/指针 +PASS 390 26.output_folder展开无溢出 +PASS 390 26.caption_file_extension键盘展开 +PASS 390 26.caption_file_extension用途/单位/范围/来源条件 +PASS 390 26.caption_file_extension精确保留现值 +PASS 390 26.caption_file_extension指针默认折叠 +PASS 390 26.caption_file_extension精确源码/类型/指针 +PASS 390 26.caption_file_extension展开无溢出 +PASS 390 5.template键盘展开 +PASS 390 5.template用途/单位/范围/来源条件 +PASS 390 5.template精确保留现值 +PASS 390 5.template指针默认折叠 +PASS 390 5.template精确源码/类型/指针 +PASS 390 5.template展开无溢出 +PASS 390 1.video键盘展开 +PASS 390 1.video用途/单位/范围/来源条件 +PASS 390 1.video精确保留现值 +PASS 390 1.video指针默认折叠 +PASS 390 1.video精确源码/类型/指针 +PASS 390 1.video展开无溢出 +PASS 390 1.force_rate键盘展开 +PASS 390 1.force_rate用途/单位/范围/来源条件 +PASS 390 1.force_rate精确保留现值 +PASS 390 1.force_rate指针默认折叠 +PASS 390 1.force_rate精确源码/类型/指针 +PASS 390 1.force_rate展开无溢出 +PASS 390 1.custom_width键盘展开 +PASS 390 1.custom_width用途/单位/范围/来源条件 +PASS 390 1.custom_width精确保留现值 +PASS 390 1.custom_width指针默认折叠 +PASS 390 1.custom_width精确源码/类型/指针 +PASS 390 1.custom_width展开无溢出 +PASS 390 1.custom_height键盘展开 +PASS 390 1.custom_height用途/单位/范围/来源条件 +PASS 390 1.custom_height精确保留现值 +PASS 390 1.custom_height指针默认折叠 +PASS 390 1.custom_height精确源码/类型/指针 +PASS 390 1.custom_height展开无溢出 +PASS 390 1.frame_load_cap键盘展开 +PASS 390 1.frame_load_cap用途/单位/范围/来源条件 +PASS 390 1.frame_load_cap精确保留现值 +PASS 390 1.frame_load_cap指针默认折叠 +PASS 390 1.frame_load_cap精确源码/类型/指针 +PASS 390 1.frame_load_cap展开无溢出 +PASS 390 1.skip_first_frames键盘展开 +PASS 390 1.skip_first_frames用途/单位/范围/来源条件 +PASS 390 1.skip_first_frames精确保留现值 +PASS 390 1.skip_first_frames指针默认折叠 +PASS 390 1.skip_first_frames精确源码/类型/指针 +PASS 390 1.skip_first_frames展开无溢出 +PASS 390 1.select_every_nth键盘展开 +PASS 390 1.select_every_nth用途/单位/范围/来源条件 +PASS 390 1.select_every_nth精确保留现值 +PASS 390 1.select_every_nth指针默认折叠 +PASS 390 1.select_every_nth精确源码/类型/指针 +PASS 390 1.select_every_nth展开无溢出 +PASS 390 1.format键盘展开 +PASS 390 1.format用途/单位/范围/来源条件 +PASS 390 1.format精确保留现值 +PASS 390 1.format指针默认折叠 +PASS 390 1.format精确源码/类型/指针 +PASS 390 1.format展开无溢出 +PASS 390 1.videopreview键盘展开 +PASS 390 1.videopreview用途/单位/范围/来源条件 +PASS 390 1.videopreview精确保留现值 +PASS 390 1.videopreview指针默认折叠 +PASS 390 1.videopreview精确源码/类型/指针 +PASS 390 1.videopreview展开无溢出 +PASS 390 36.filename_prefix键盘展开 +PASS 390 36.filename_prefix用途/单位/范围/来源条件 +PASS 390 36.filename_prefix精确保留现值 +PASS 390 36.filename_prefix指针默认折叠 +PASS 390 36.filename_prefix精确源码/类型/指针 +PASS 390 36.filename_prefix展开无溢出 +PASS 390 13.value键盘展开 +PASS 390 13.value用途/单位/范围/来源条件 +PASS 390 13.value精确保留现值 +PASS 390 13.value指针默认折叠 +PASS 390 13.value精确源码/类型/指针 +PASS 390 13.value展开无溢出 +PASS 390 6.value键盘展开 +PASS 390 6.value用途/单位/范围/来源条件 +PASS 390 6.value精确保留现值 +PASS 390 6.value指针默认折叠 +PASS 390 6.value精确源码/类型/指针 +PASS 390 6.value展开无溢出 +PASS 390注释31全文 +PASS 390注释31无溢出 +PASS 390注释35全文 +PASS 390注释35无溢出 +PASS 390Tab焦点保留 +PASS 390ShiftTab焦点保留 +PASS 390 手动按分镜视频截取关闭归还焦点 +PASS 390 sam3_图像视频-提示词遮罩分割默认中文用途 +PASS 390 sam3_图像视频-提示词遮罩分割源审校默认折叠 +PASS 390 sam3_图像视频-提示词遮罩分割技术范围默认折叠 +PASS 390 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识 +PASS 390 sam3_图像视频-提示词遮罩分割默认依据限制可见 +PASS 390 sam3_图像视频-提示词遮罩分割 说明未定稿 +PASS 390 sam3_图像视频-提示词遮罩分割 未验证实跑 +PASS 390 sam3_图像视频-提示词遮罩分割 未检查 +PASS 390 sam3_图像视频-提示词遮罩分割停用/时间戳空 +PASS 390 sam3_图像视频-提示词遮罩分割参数全保留 +PASS 390 sam3_图像视频-提示词遮罩分割默认无溢出 +PASS 390 sam3_图像视频-提示词遮罩分割旧图归还焦点 +PASS 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 图像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 迟到分镜响应不覆盖旧SAM3摘要/18字段 +PASS GET失败显示重试 +PASS 读取失败隐藏旧摘要 +PASS 重试恢复摘要 +PASS 无脚本错误或禁止请求 [] +PASS 全程本地GET无写/生成/目标/历史预览请求 +All owned browser services stopped; ports released. diff --git a/docs/hel-892/storyboard-document-evidence/browser-initial.txt b/docs/hel-892/storyboard-document-evidence/browser-initial.txt new file mode 100644 index 00000000..a2462e8f --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/browser-initial.txt @@ -0,0 +1,1423 @@ +PASS 28图888保存位置 +PASS 28图21源注释 +PASS 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 手动按分镜视频截取展开流程 38 +PASS 1440 手动按分镜视频截取展开流程 39 +PASS 1440 手动按分镜视频截取展开流程 40 +PASS 1440 手动按分镜视频截取展开流程 41 +PASS 1440 手动按分镜视频截取展开流程 42 +PASS 1440 手动按分镜视频截取展开流程 43 +PASS 1440 手动按分镜视频截取展开流程 44 +PASS 1440 手动按分镜视频截取展开流程 45 +PASS 1440 手动按分镜视频截取展开流程 46 +PASS 1440 手动按分镜视频截取展开流程 47 +PASS 1440 手动按分镜视频截取展开流程 48 +PASS 1440 手动按分镜视频截取展开流程 49 +PASS 1440 手动按分镜视频截取展开流程 50 +PASS 1440 手动按分镜视频截取展开流程 51 +PASS 1440 手动按分镜视频截取展开流程 52 +PASS 1440 手动按分镜视频截取展开流程 53 +PASS 1440 手动按分镜视频截取展开流程 54 +PASS 1440 手动按分镜视频截取展开流程 55 +PASS 1440 手动按分镜视频截取原件摘要可展开 +PASS 1440 手动按分镜视频截取版本 0 +PASS 1440 手动按分镜视频截取版本 1 +PASS 1440 手动按分镜视频截取版本 2 +PASS 1440 8.directory键盘展开 +PASS 1440 8.directory用途/单位/范围/来源条件 +PASS 1440 8.directory精确保留现值 +PASS 1440 8.directory指针默认折叠 +PASS 1440 8.directory精确源码/类型/指针 +PASS 1440 8.directory展开无溢出 +PASS 1440 8.image_load_cap键盘展开 +PASS 1440 8.image_load_cap用途/单位/范围/来源条件 +PASS 1440 8.image_load_cap精确保留现值 +PASS 1440 8.image_load_cap指针默认折叠 +PASS 1440 8.image_load_cap精确源码/类型/指针 +PASS 1440 8.image_load_cap展开无溢出 +PASS 1440 8.skip_first_images键盘展开 +PASS 1440 8.skip_first_images用途/单位/范围/来源条件 +PASS 1440 8.skip_first_images精确保留现值 +PASS 1440 8.skip_first_images指针默认折叠 +PASS 1440 8.skip_first_images精确源码/类型/指针 +PASS 1440 8.skip_first_images展开无溢出 +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.videopreview键盘展开 +PASS 1440 8.videopreview用途/单位/范围/来源条件 +PASS 1440 8.videopreview精确保留现值 +PASS 1440 8.videopreview指针默认折叠 +PASS 1440 8.videopreview精确源码/类型/指针 +PASS 1440 8.videopreview展开无溢出 +PASS 1440 18.value键盘展开 +PASS 1440 18.value用途/单位/范围/来源条件 +PASS 1440 18.value精确保留现值 +PASS 1440 18.value指针默认折叠 +PASS 1440 18.value精确源码/类型/指针 +PASS 1440 18.value展开无溢出 +PASS 1440 21.value键盘展开 +PASS 1440 21.value用途/单位/范围/来源条件 +PASS 1440 21.value精确保留现值 +PASS 1440 21.value指针默认折叠 +PASS 1440 21.value精确源码/类型/指针 +PASS 1440 21.value展开无溢出 +PASS 1440 29.name键盘展开 +PASS 1440 29.name用途/单位/范围/来源条件 +PASS 1440 29.name精确保留现值 +PASS 1440 29.name指针默认折叠 +PASS 1440 29.name精确源码/类型/指针 +PASS 1440 29.name展开无溢出 +PASS 1440 28.purge_cache键盘展开 +PASS 1440 28.purge_cache用途/单位/范围/来源条件 +PASS 1440 28.purge_cache精确保留现值 +PASS 1440 28.purge_cache指针默认折叠 +PASS 1440 28.purge_cache精确源码/类型/指针 +PASS 1440 28.purge_cache展开无溢出 +PASS 1440 28.purge_models键盘展开 +PASS 1440 28.purge_models用途/单位/范围/来源条件 +PASS 1440 28.purge_models精确保留现值 +PASS 1440 28.purge_models指针默认折叠 +PASS 1440 28.purge_models精确源码/类型/指针 +PASS 1440 28.purge_models展开无溢出 +PASS 1440 30.name键盘展开 +PASS 1440 30.name用途/单位/范围/来源条件 +PASS 1440 30.name精确保留现值 +PASS 1440 30.name指针默认折叠 +PASS 1440 30.name精确源码/类型/指针 +PASS 1440 30.name展开无溢出 +PASS 1440 25.video键盘展开 +PASS 1440 25.video用途/单位/范围/来源条件 +PASS 1440 25.video精确保留现值 +PASS 1440 25.video指针默认折叠 +PASS 1440 25.video精确源码/类型/指针 +PASS 1440 25.video展开无溢出 +PASS 1440 25.force_rate键盘展开 +PASS 1440 25.force_rate用途/单位/范围/来源条件 +PASS 1440 25.force_rate精确保留现值 +PASS 1440 25.force_rate指针默认折叠 +PASS 1440 25.force_rate精确源码/类型/指针 +PASS 1440 25.force_rate展开无溢出 +PASS 1440 25.custom_width键盘展开 +PASS 1440 25.custom_width用途/单位/范围/来源条件 +PASS 1440 25.custom_width精确保留现值 +PASS 1440 25.custom_width指针默认折叠 +PASS 1440 25.custom_width精确源码/类型/指针 +PASS 1440 25.custom_width展开无溢出 +PASS 1440 25.custom_height键盘展开 +PASS 1440 25.custom_height用途/单位/范围/来源条件 +PASS 1440 25.custom_height精确保留现值 +PASS 1440 25.custom_height指针默认折叠 +PASS 1440 25.custom_height精确源码/类型/指针 +PASS 1440 25.custom_height展开无溢出 +PASS 1440 25.frame_load_cap键盘展开 +PASS 1440 25.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 25.frame_load_cap精确保留现值 +PASS 1440 25.frame_load_cap指针默认折叠 +PASS 1440 25.frame_load_cap精确源码/类型/指针 +PASS 1440 25.frame_load_cap展开无溢出 +PASS 1440 25.skip_first_frames键盘展开 +PASS 1440 25.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 25.skip_first_frames精确保留现值 +PASS 1440 25.skip_first_frames指针默认折叠 +PASS 1440 25.skip_first_frames精确源码/类型/指针 +PASS 1440 25.skip_first_frames展开无溢出 +PASS 1440 25.select_every_nth键盘展开 +PASS 1440 25.select_every_nth用途/单位/范围/来源条件 +PASS 1440 25.select_every_nth精确保留现值 +PASS 1440 25.select_every_nth指针默认折叠 +PASS 1440 25.select_every_nth精确源码/类型/指针 +PASS 1440 25.select_every_nth展开无溢出 +PASS 1440 25.format键盘展开 +PASS 1440 25.format用途/单位/范围/来源条件 +PASS 1440 25.format精确保留现值 +PASS 1440 25.format指针默认折叠 +PASS 1440 25.format精确源码/类型/指针 +PASS 1440 25.format展开无溢出 +PASS 1440 25.videopreview键盘展开 +PASS 1440 25.videopreview用途/单位/范围/来源条件 +PASS 1440 25.videopreview精确保留现值 +PASS 1440 25.videopreview指针默认折叠 +PASS 1440 25.videopreview精确源码/类型/指针 +PASS 1440 25.videopreview展开无溢出 +PASS 1440 19.total键盘展开 +PASS 1440 19.total用途/单位/范围/来源条件 +PASS 1440 19.total精确保留现值 +PASS 1440 19.total指针默认折叠 +PASS 1440 19.total精确源码/类型/指针 +PASS 1440 19.total展开无溢出 +PASS 1440 22.expression键盘展开 +PASS 1440 22.expression用途/单位/范围/来源条件 +PASS 1440 22.expression精确保留现值 +PASS 1440 22.expression指针默认折叠 +PASS 1440 22.expression精确源码/类型/指针 +PASS 1440 22.expression展开无溢出 +PASS 1440 10.frame_rate键盘展开 +PASS 1440 10.frame_rate用途/单位/范围/来源条件 +PASS 1440 10.frame_rate精确保留现值 +PASS 1440 10.frame_rate指针默认折叠 +PASS 1440 10.frame_rate精确源码/类型/指针 +PASS 1440 10.frame_rate展开无溢出 +PASS 1440 10.loop_count键盘展开 +PASS 1440 10.loop_count用途/单位/范围/来源条件 +PASS 1440 10.loop_count精确保留现值 +PASS 1440 10.loop_count指针默认折叠 +PASS 1440 10.loop_count精确源码/类型/指针 +PASS 1440 10.loop_count展开无溢出 +PASS 1440 10.filename_prefix键盘展开 +PASS 1440 10.filename_prefix用途/单位/范围/来源条件 +PASS 1440 10.filename_prefix精确保留现值 +PASS 1440 10.filename_prefix指针默认折叠 +PASS 1440 10.filename_prefix精确源码/类型/指针 +PASS 1440 10.filename_prefix展开无溢出 +PASS 1440 10.format键盘展开 +PASS 1440 10.format用途/单位/范围/来源条件 +PASS 1440 10.format精确保留现值 +PASS 1440 10.format指针默认折叠 +PASS 1440 10.format精确源码/类型/指针 +PASS 1440 10.format展开无溢出 +PASS 1440 10.pix_fmt键盘展开 +PASS 1440 10.pix_fmt用途/单位/范围/来源条件 +PASS 1440 10.pix_fmt精确保留现值 +PASS 1440 10.pix_fmt指针默认折叠 +PASS 1440 10.pix_fmt精确源码/类型/指针 +PASS 1440 10.pix_fmt展开无溢出 +PASS 1440 10.crf键盘展开 +PASS 1440 10.crf用途/单位/范围/来源条件 +PASS 1440 10.crf精确保留现值 +PASS 1440 10.crf指针默认折叠 +PASS 1440 10.crf精确源码/类型/指针 +PASS 1440 10.crf展开无溢出 +PASS 1440 10.save_metadata键盘展开 +PASS 1440 10.save_metadata用途/单位/范围/来源条件 +PASS 1440 10.save_metadata精确保留现值 +PASS 1440 10.save_metadata指针默认折叠 +PASS 1440 10.save_metadata精确源码/类型/指针 +PASS 1440 10.save_metadata展开无溢出 +PASS 1440 10.trim_to_audio键盘展开 +PASS 1440 10.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 10.trim_to_audio精确保留现值 +PASS 1440 10.trim_to_audio指针默认折叠 +PASS 1440 10.trim_to_audio精确源码/类型/指针 +PASS 1440 10.trim_to_audio展开无溢出 +PASS 1440 10.pingpong键盘展开 +PASS 1440 10.pingpong用途/单位/范围/来源条件 +PASS 1440 10.pingpong精确保留现值 +PASS 1440 10.pingpong指针默认折叠 +PASS 1440 10.pingpong精确源码/类型/指针 +PASS 1440 10.pingpong展开无溢出 +PASS 1440 10.save_output键盘展开 +PASS 1440 10.save_output用途/单位/范围/来源条件 +PASS 1440 10.save_output精确保留现值 +PASS 1440 10.save_output指针默认折叠 +PASS 1440 10.save_output精确源码/类型/指针 +PASS 1440 10.save_output展开无溢出 +PASS 1440 10.videopreview键盘展开 +PASS 1440 10.videopreview用途/单位/范围/来源条件 +PASS 1440 10.videopreview精确保留现值 +PASS 1440 10.videopreview指针默认折叠 +PASS 1440 10.videopreview精确源码/类型/指针 +PASS 1440 10.videopreview展开无溢出 +PASS 1440 24.expression键盘展开 +PASS 1440 24.expression用途/单位/范围/来源条件 +PASS 1440 24.expression精确保留现值 +PASS 1440 24.expression指针默认折叠 +PASS 1440 24.expression精确源码/类型/指针 +PASS 1440 24.expression展开无溢出 +PASS 1440 26.filename_prefix键盘展开 +PASS 1440 26.filename_prefix用途/单位/范围/来源条件 +PASS 1440 26.filename_prefix精确保留现值 +PASS 1440 26.filename_prefix指针默认折叠 +PASS 1440 26.filename_prefix精确源码/类型/指针 +PASS 1440 26.filename_prefix展开无溢出 +PASS 1440 26.output_folder键盘展开 +PASS 1440 26.output_folder用途/单位/范围/来源条件 +PASS 1440 26.output_folder精确保留现值 +PASS 1440 26.output_folder指针默认折叠 +PASS 1440 26.output_folder精确源码/类型/指针 +PASS 1440 26.output_folder展开无溢出 +PASS 1440 26.caption_file_extension键盘展开 +PASS 1440 26.caption_file_extension用途/单位/范围/来源条件 +PASS 1440 26.caption_file_extension精确保留现值 +PASS 1440 26.caption_file_extension指针默认折叠 +PASS 1440 26.caption_file_extension精确源码/类型/指针 +PASS 1440 26.caption_file_extension展开无溢出 +PASS 1440 5.template键盘展开 +PASS 1440 5.template用途/单位/范围/来源条件 +PASS 1440 5.template精确保留现值 +PASS 1440 5.template指针默认折叠 +PASS 1440 5.template精确源码/类型/指针 +PASS 1440 5.template展开无溢出 +PASS 1440 1.video键盘展开 +PASS 1440 1.video用途/单位/范围/来源条件 +PASS 1440 1.video精确保留现值 +PASS 1440 1.video指针默认折叠 +PASS 1440 1.video精确源码/类型/指针 +PASS 1440 1.video展开无溢出 +PASS 1440 1.force_rate键盘展开 +PASS 1440 1.force_rate用途/单位/范围/来源条件 +PASS 1440 1.force_rate精确保留现值 +PASS 1440 1.force_rate指针默认折叠 +PASS 1440 1.force_rate精确源码/类型/指针 +PASS 1440 1.force_rate展开无溢出 +PASS 1440 1.custom_width键盘展开 +PASS 1440 1.custom_width用途/单位/范围/来源条件 +PASS 1440 1.custom_width精确保留现值 +PASS 1440 1.custom_width指针默认折叠 +PASS 1440 1.custom_width精确源码/类型/指针 +PASS 1440 1.custom_width展开无溢出 +PASS 1440 1.custom_height键盘展开 +PASS 1440 1.custom_height用途/单位/范围/来源条件 +PASS 1440 1.custom_height精确保留现值 +PASS 1440 1.custom_height指针默认折叠 +PASS 1440 1.custom_height精确源码/类型/指针 +PASS 1440 1.custom_height展开无溢出 +PASS 1440 1.frame_load_cap键盘展开 +PASS 1440 1.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 1.frame_load_cap精确保留现值 +PASS 1440 1.frame_load_cap指针默认折叠 +PASS 1440 1.frame_load_cap精确源码/类型/指针 +PASS 1440 1.frame_load_cap展开无溢出 +PASS 1440 1.skip_first_frames键盘展开 +PASS 1440 1.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 1.skip_first_frames精确保留现值 +PASS 1440 1.skip_first_frames指针默认折叠 +PASS 1440 1.skip_first_frames精确源码/类型/指针 +PASS 1440 1.skip_first_frames展开无溢出 +PASS 1440 1.select_every_nth键盘展开 +PASS 1440 1.select_every_nth用途/单位/范围/来源条件 +PASS 1440 1.select_every_nth精确保留现值 +PASS 1440 1.select_every_nth指针默认折叠 +PASS 1440 1.select_every_nth精确源码/类型/指针 +PASS 1440 1.select_every_nth展开无溢出 +PASS 1440 1.format键盘展开 +PASS 1440 1.format用途/单位/范围/来源条件 +PASS 1440 1.format精确保留现值 +PASS 1440 1.format指针默认折叠 +PASS 1440 1.format精确源码/类型/指针 +PASS 1440 1.format展开无溢出 +PASS 1440 1.videopreview键盘展开 +PASS 1440 1.videopreview用途/单位/范围/来源条件 +PASS 1440 1.videopreview精确保留现值 +PASS 1440 1.videopreview指针默认折叠 +PASS 1440 1.videopreview精确源码/类型/指针 +PASS 1440 1.videopreview展开无溢出 +PASS 1440 36.filename_prefix键盘展开 +PASS 1440 36.filename_prefix用途/单位/范围/来源条件 +PASS 1440 36.filename_prefix精确保留现值 +PASS 1440 36.filename_prefix指针默认折叠 +PASS 1440 36.filename_prefix精确源码/类型/指针 +PASS 1440 36.filename_prefix展开无溢出 +PASS 1440 13.value键盘展开 +PASS 1440 13.value用途/单位/范围/来源条件 +PASS 1440 13.value精确保留现值 +PASS 1440 13.value指针默认折叠 +PASS 1440 13.value精确源码/类型/指针 +PASS 1440 13.value展开无溢出 +PASS 1440 6.value键盘展开 +PASS 1440 6.value用途/单位/范围/来源条件 +PASS 1440 6.value精确保留现值 +PASS 1440 6.value指针默认折叠 +PASS 1440 6.value精确源码/类型/指针 +PASS 1440 6.value展开无溢出 +PASS 1440注释31全文 +PASS 1440注释31无溢出 +PASS 1440注释35全文 +PASS 1440注释35无溢出 +PASS 1440Tab焦点保留 +PASS 1440ShiftTab焦点保留 +PASS 1440 手动按分镜视频截取关闭归还焦点 +PASS 1440 sam3_图像视频-提示词遮罩分割默认中文用途 +PASS 1440 sam3_图像视频-提示词遮罩分割源审校默认折叠 +PASS 1440 sam3_图像视频-提示词遮罩分割技术范围默认折叠 +PASS 1440 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识 +PASS 1440 sam3_图像视频-提示词遮罩分割默认依据限制可见 +PASS 1440 sam3_图像视频-提示词遮罩分割 说明未定稿 +PASS 1440 sam3_图像视频-提示词遮罩分割 未验证实跑 +PASS 1440 sam3_图像视频-提示词遮罩分割 未检查 +PASS 1440 sam3_图像视频-提示词遮罩分割停用/时间戳空 +PASS 1440 sam3_图像视频-提示词遮罩分割参数全保留 +PASS 1440 sam3_图像视频-提示词遮罩分割默认无溢出 +PASS 1440 sam3_图像视频-提示词遮罩分割旧图归还焦点 +PASS 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 图像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 手动按分镜视频截取展开流程 38 +PASS 390 手动按分镜视频截取展开流程 39 +PASS 390 手动按分镜视频截取展开流程 40 +PASS 390 手动按分镜视频截取展开流程 41 +PASS 390 手动按分镜视频截取展开流程 42 +PASS 390 手动按分镜视频截取展开流程 43 +PASS 390 手动按分镜视频截取展开流程 44 +PASS 390 手动按分镜视频截取展开流程 45 +PASS 390 手动按分镜视频截取展开流程 46 +PASS 390 手动按分镜视频截取展开流程 47 +PASS 390 手动按分镜视频截取展开流程 48 +PASS 390 手动按分镜视频截取展开流程 49 +PASS 390 手动按分镜视频截取展开流程 50 +PASS 390 手动按分镜视频截取展开流程 51 +PASS 390 手动按分镜视频截取展开流程 52 +PASS 390 手动按分镜视频截取展开流程 53 +PASS 390 手动按分镜视频截取展开流程 54 +PASS 390 手动按分镜视频截取展开流程 55 +PASS 390 手动按分镜视频截取原件摘要可展开 +PASS 390 手动按分镜视频截取版本 0 +PASS 390 手动按分镜视频截取版本 1 +PASS 390 手动按分镜视频截取版本 2 +PASS 390 8.directory键盘展开 +PASS 390 8.directory用途/单位/范围/来源条件 +PASS 390 8.directory精确保留现值 +PASS 390 8.directory指针默认折叠 +PASS 390 8.directory精确源码/类型/指针 +PASS 390 8.directory展开无溢出 +PASS 390 8.image_load_cap键盘展开 +PASS 390 8.image_load_cap用途/单位/范围/来源条件 +PASS 390 8.image_load_cap精确保留现值 +PASS 390 8.image_load_cap指针默认折叠 +PASS 390 8.image_load_cap精确源码/类型/指针 +PASS 390 8.image_load_cap展开无溢出 +PASS 390 8.skip_first_images键盘展开 +PASS 390 8.skip_first_images用途/单位/范围/来源条件 +PASS 390 8.skip_first_images精确保留现值 +PASS 390 8.skip_first_images指针默认折叠 +PASS 390 8.skip_first_images精确源码/类型/指针 +PASS 390 8.skip_first_images展开无溢出 +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.videopreview键盘展开 +PASS 390 8.videopreview用途/单位/范围/来源条件 +PASS 390 8.videopreview精确保留现值 +PASS 390 8.videopreview指针默认折叠 +PASS 390 8.videopreview精确源码/类型/指针 +PASS 390 8.videopreview展开无溢出 +PASS 390 18.value键盘展开 +PASS 390 18.value用途/单位/范围/来源条件 +PASS 390 18.value精确保留现值 +PASS 390 18.value指针默认折叠 +PASS 390 18.value精确源码/类型/指针 +PASS 390 18.value展开无溢出 +PASS 390 21.value键盘展开 +PASS 390 21.value用途/单位/范围/来源条件 +PASS 390 21.value精确保留现值 +PASS 390 21.value指针默认折叠 +PASS 390 21.value精确源码/类型/指针 +PASS 390 21.value展开无溢出 +PASS 390 29.name键盘展开 +PASS 390 29.name用途/单位/范围/来源条件 +PASS 390 29.name精确保留现值 +PASS 390 29.name指针默认折叠 +PASS 390 29.name精确源码/类型/指针 +PASS 390 29.name展开无溢出 +PASS 390 28.purge_cache键盘展开 +PASS 390 28.purge_cache用途/单位/范围/来源条件 +PASS 390 28.purge_cache精确保留现值 +PASS 390 28.purge_cache指针默认折叠 +PASS 390 28.purge_cache精确源码/类型/指针 +PASS 390 28.purge_cache展开无溢出 +PASS 390 28.purge_models键盘展开 +PASS 390 28.purge_models用途/单位/范围/来源条件 +PASS 390 28.purge_models精确保留现值 +PASS 390 28.purge_models指针默认折叠 +PASS 390 28.purge_models精确源码/类型/指针 +PASS 390 28.purge_models展开无溢出 +PASS 390 30.name键盘展开 +PASS 390 30.name用途/单位/范围/来源条件 +PASS 390 30.name精确保留现值 +PASS 390 30.name指针默认折叠 +PASS 390 30.name精确源码/类型/指针 +PASS 390 30.name展开无溢出 +PASS 390 25.video键盘展开 +PASS 390 25.video用途/单位/范围/来源条件 +PASS 390 25.video精确保留现值 +PASS 390 25.video指针默认折叠 +PASS 390 25.video精确源码/类型/指针 +PASS 390 25.video展开无溢出 +PASS 390 25.force_rate键盘展开 +PASS 390 25.force_rate用途/单位/范围/来源条件 +PASS 390 25.force_rate精确保留现值 +PASS 390 25.force_rate指针默认折叠 +PASS 390 25.force_rate精确源码/类型/指针 +PASS 390 25.force_rate展开无溢出 +PASS 390 25.custom_width键盘展开 +PASS 390 25.custom_width用途/单位/范围/来源条件 +PASS 390 25.custom_width精确保留现值 +PASS 390 25.custom_width指针默认折叠 +PASS 390 25.custom_width精确源码/类型/指针 +PASS 390 25.custom_width展开无溢出 +PASS 390 25.custom_height键盘展开 +PASS 390 25.custom_height用途/单位/范围/来源条件 +PASS 390 25.custom_height精确保留现值 +PASS 390 25.custom_height指针默认折叠 +PASS 390 25.custom_height精确源码/类型/指针 +PASS 390 25.custom_height展开无溢出 +PASS 390 25.frame_load_cap键盘展开 +PASS 390 25.frame_load_cap用途/单位/范围/来源条件 +PASS 390 25.frame_load_cap精确保留现值 +PASS 390 25.frame_load_cap指针默认折叠 +PASS 390 25.frame_load_cap精确源码/类型/指针 +PASS 390 25.frame_load_cap展开无溢出 +PASS 390 25.skip_first_frames键盘展开 +PASS 390 25.skip_first_frames用途/单位/范围/来源条件 +PASS 390 25.skip_first_frames精确保留现值 +PASS 390 25.skip_first_frames指针默认折叠 +PASS 390 25.skip_first_frames精确源码/类型/指针 +PASS 390 25.skip_first_frames展开无溢出 +PASS 390 25.select_every_nth键盘展开 +PASS 390 25.select_every_nth用途/单位/范围/来源条件 +PASS 390 25.select_every_nth精确保留现值 +PASS 390 25.select_every_nth指针默认折叠 +PASS 390 25.select_every_nth精确源码/类型/指针 +PASS 390 25.select_every_nth展开无溢出 +PASS 390 25.format键盘展开 +PASS 390 25.format用途/单位/范围/来源条件 +PASS 390 25.format精确保留现值 +PASS 390 25.format指针默认折叠 +PASS 390 25.format精确源码/类型/指针 +PASS 390 25.format展开无溢出 +PASS 390 25.videopreview键盘展开 +PASS 390 25.videopreview用途/单位/范围/来源条件 +PASS 390 25.videopreview精确保留现值 +PASS 390 25.videopreview指针默认折叠 +PASS 390 25.videopreview精确源码/类型/指针 +PASS 390 25.videopreview展开无溢出 +PASS 390 19.total键盘展开 +PASS 390 19.total用途/单位/范围/来源条件 +PASS 390 19.total精确保留现值 +PASS 390 19.total指针默认折叠 +PASS 390 19.total精确源码/类型/指针 +PASS 390 19.total展开无溢出 +PASS 390 22.expression键盘展开 +PASS 390 22.expression用途/单位/范围/来源条件 +PASS 390 22.expression精确保留现值 +PASS 390 22.expression指针默认折叠 +PASS 390 22.expression精确源码/类型/指针 +PASS 390 22.expression展开无溢出 +PASS 390 10.frame_rate键盘展开 +PASS 390 10.frame_rate用途/单位/范围/来源条件 +PASS 390 10.frame_rate精确保留现值 +PASS 390 10.frame_rate指针默认折叠 +PASS 390 10.frame_rate精确源码/类型/指针 +PASS 390 10.frame_rate展开无溢出 +PASS 390 10.loop_count键盘展开 +PASS 390 10.loop_count用途/单位/范围/来源条件 +PASS 390 10.loop_count精确保留现值 +PASS 390 10.loop_count指针默认折叠 +PASS 390 10.loop_count精确源码/类型/指针 +PASS 390 10.loop_count展开无溢出 +PASS 390 10.filename_prefix键盘展开 +PASS 390 10.filename_prefix用途/单位/范围/来源条件 +PASS 390 10.filename_prefix精确保留现值 +PASS 390 10.filename_prefix指针默认折叠 +PASS 390 10.filename_prefix精确源码/类型/指针 +PASS 390 10.filename_prefix展开无溢出 +PASS 390 10.format键盘展开 +PASS 390 10.format用途/单位/范围/来源条件 +PASS 390 10.format精确保留现值 +PASS 390 10.format指针默认折叠 +PASS 390 10.format精确源码/类型/指针 +PASS 390 10.format展开无溢出 +PASS 390 10.pix_fmt键盘展开 +PASS 390 10.pix_fmt用途/单位/范围/来源条件 +PASS 390 10.pix_fmt精确保留现值 +PASS 390 10.pix_fmt指针默认折叠 +PASS 390 10.pix_fmt精确源码/类型/指针 +PASS 390 10.pix_fmt展开无溢出 +PASS 390 10.crf键盘展开 +PASS 390 10.crf用途/单位/范围/来源条件 +PASS 390 10.crf精确保留现值 +PASS 390 10.crf指针默认折叠 +PASS 390 10.crf精确源码/类型/指针 +PASS 390 10.crf展开无溢出 +PASS 390 10.save_metadata键盘展开 +PASS 390 10.save_metadata用途/单位/范围/来源条件 +PASS 390 10.save_metadata精确保留现值 +PASS 390 10.save_metadata指针默认折叠 +PASS 390 10.save_metadata精确源码/类型/指针 +PASS 390 10.save_metadata展开无溢出 +PASS 390 10.trim_to_audio键盘展开 +PASS 390 10.trim_to_audio用途/单位/范围/来源条件 +PASS 390 10.trim_to_audio精确保留现值 +PASS 390 10.trim_to_audio指针默认折叠 +PASS 390 10.trim_to_audio精确源码/类型/指针 +PASS 390 10.trim_to_audio展开无溢出 +PASS 390 10.pingpong键盘展开 +PASS 390 10.pingpong用途/单位/范围/来源条件 +PASS 390 10.pingpong精确保留现值 +PASS 390 10.pingpong指针默认折叠 +PASS 390 10.pingpong精确源码/类型/指针 +PASS 390 10.pingpong展开无溢出 +PASS 390 10.save_output键盘展开 +PASS 390 10.save_output用途/单位/范围/来源条件 +PASS 390 10.save_output精确保留现值 +PASS 390 10.save_output指针默认折叠 +PASS 390 10.save_output精确源码/类型/指针 +PASS 390 10.save_output展开无溢出 +PASS 390 10.videopreview键盘展开 +PASS 390 10.videopreview用途/单位/范围/来源条件 +PASS 390 10.videopreview精确保留现值 +PASS 390 10.videopreview指针默认折叠 +PASS 390 10.videopreview精确源码/类型/指针 +PASS 390 10.videopreview展开无溢出 +PASS 390 24.expression键盘展开 +PASS 390 24.expression用途/单位/范围/来源条件 +PASS 390 24.expression精确保留现值 +PASS 390 24.expression指针默认折叠 +PASS 390 24.expression精确源码/类型/指针 +PASS 390 24.expression展开无溢出 +PASS 390 26.filename_prefix键盘展开 +PASS 390 26.filename_prefix用途/单位/范围/来源条件 +PASS 390 26.filename_prefix精确保留现值 +PASS 390 26.filename_prefix指针默认折叠 +PASS 390 26.filename_prefix精确源码/类型/指针 +PASS 390 26.filename_prefix展开无溢出 +PASS 390 26.output_folder键盘展开 +PASS 390 26.output_folder用途/单位/范围/来源条件 +PASS 390 26.output_folder精确保留现值 +PASS 390 26.output_folder指针默认折叠 +PASS 390 26.output_folder精确源码/类型/指针 +PASS 390 26.output_folder展开无溢出 +PASS 390 26.caption_file_extension键盘展开 +PASS 390 26.caption_file_extension用途/单位/范围/来源条件 +PASS 390 26.caption_file_extension精确保留现值 +PASS 390 26.caption_file_extension指针默认折叠 +PASS 390 26.caption_file_extension精确源码/类型/指针 +PASS 390 26.caption_file_extension展开无溢出 +PASS 390 5.template键盘展开 +PASS 390 5.template用途/单位/范围/来源条件 +PASS 390 5.template精确保留现值 +PASS 390 5.template指针默认折叠 +PASS 390 5.template精确源码/类型/指针 +PASS 390 5.template展开无溢出 +PASS 390 1.video键盘展开 +PASS 390 1.video用途/单位/范围/来源条件 +PASS 390 1.video精确保留现值 +PASS 390 1.video指针默认折叠 +PASS 390 1.video精确源码/类型/指针 +PASS 390 1.video展开无溢出 +PASS 390 1.force_rate键盘展开 +PASS 390 1.force_rate用途/单位/范围/来源条件 +PASS 390 1.force_rate精确保留现值 +PASS 390 1.force_rate指针默认折叠 +PASS 390 1.force_rate精确源码/类型/指针 +PASS 390 1.force_rate展开无溢出 +PASS 390 1.custom_width键盘展开 +PASS 390 1.custom_width用途/单位/范围/来源条件 +PASS 390 1.custom_width精确保留现值 +PASS 390 1.custom_width指针默认折叠 +PASS 390 1.custom_width精确源码/类型/指针 +PASS 390 1.custom_width展开无溢出 +PASS 390 1.custom_height键盘展开 +PASS 390 1.custom_height用途/单位/范围/来源条件 +PASS 390 1.custom_height精确保留现值 +PASS 390 1.custom_height指针默认折叠 +PASS 390 1.custom_height精确源码/类型/指针 +PASS 390 1.custom_height展开无溢出 +PASS 390 1.frame_load_cap键盘展开 +PASS 390 1.frame_load_cap用途/单位/范围/来源条件 +PASS 390 1.frame_load_cap精确保留现值 +PASS 390 1.frame_load_cap指针默认折叠 +PASS 390 1.frame_load_cap精确源码/类型/指针 +PASS 390 1.frame_load_cap展开无溢出 +PASS 390 1.skip_first_frames键盘展开 +PASS 390 1.skip_first_frames用途/单位/范围/来源条件 +PASS 390 1.skip_first_frames精确保留现值 +PASS 390 1.skip_first_frames指针默认折叠 +PASS 390 1.skip_first_frames精确源码/类型/指针 +PASS 390 1.skip_first_frames展开无溢出 +PASS 390 1.select_every_nth键盘展开 +PASS 390 1.select_every_nth用途/单位/范围/来源条件 +PASS 390 1.select_every_nth精确保留现值 +PASS 390 1.select_every_nth指针默认折叠 +PASS 390 1.select_every_nth精确源码/类型/指针 +PASS 390 1.select_every_nth展开无溢出 +PASS 390 1.format键盘展开 +PASS 390 1.format用途/单位/范围/来源条件 +PASS 390 1.format精确保留现值 +PASS 390 1.format指针默认折叠 +PASS 390 1.format精确源码/类型/指针 +PASS 390 1.format展开无溢出 +PASS 390 1.videopreview键盘展开 +PASS 390 1.videopreview用途/单位/范围/来源条件 +PASS 390 1.videopreview精确保留现值 +PASS 390 1.videopreview指针默认折叠 +PASS 390 1.videopreview精确源码/类型/指针 +PASS 390 1.videopreview展开无溢出 +PASS 390 36.filename_prefix键盘展开 +PASS 390 36.filename_prefix用途/单位/范围/来源条件 +PASS 390 36.filename_prefix精确保留现值 +PASS 390 36.filename_prefix指针默认折叠 +PASS 390 36.filename_prefix精确源码/类型/指针 +PASS 390 36.filename_prefix展开无溢出 +PASS 390 13.value键盘展开 +PASS 390 13.value用途/单位/范围/来源条件 +PASS 390 13.value精确保留现值 +PASS 390 13.value指针默认折叠 +PASS 390 13.value精确源码/类型/指针 +PASS 390 13.value展开无溢出 +PASS 390 6.value键盘展开 +PASS 390 6.value用途/单位/范围/来源条件 +PASS 390 6.value精确保留现值 +PASS 390 6.value指针默认折叠 +PASS 390 6.value精确源码/类型/指针 +PASS 390 6.value展开无溢出 +PASS 390注释31全文 +PASS 390注释31无溢出 +PASS 390注释35全文 +PASS 390注释35无溢出 +PASS 390Tab焦点保留 +PASS 390ShiftTab焦点保留 +PASS 390 手动按分镜视频截取关闭归还焦点 +PASS 390 sam3_图像视频-提示词遮罩分割默认中文用途 +PASS 390 sam3_图像视频-提示词遮罩分割源审校默认折叠 +PASS 390 sam3_图像视频-提示词遮罩分割技术范围默认折叠 +PASS 390 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识 +PASS 390 sam3_图像视频-提示词遮罩分割默认依据限制可见 +PASS 390 sam3_图像视频-提示词遮罩分割 说明未定稿 +PASS 390 sam3_图像视频-提示词遮罩分割 未验证实跑 +PASS 390 sam3_图像视频-提示词遮罩分割 未检查 +PASS 390 sam3_图像视频-提示词遮罩分割停用/时间戳空 +PASS 390 sam3_图像视频-提示词遮罩分割参数全保留 +PASS 390 sam3_图像视频-提示词遮罩分割默认无溢出 +PASS 390 sam3_图像视频-提示词遮罩分割旧图归还焦点 +PASS 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 图像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 迟到分镜响应不覆盖旧SAM3摘要/18字段 +PASS GET失败显示重试 +PASS 读取失败隐藏旧摘要 +PASS 重试恢复摘要 +PASS 无脚本错误或禁止请求 [] +PASS 全程本地GET无写/生成/目标/历史预览请求 +All owned browser services stopped; ports released. diff --git a/docs/hel-892/storyboard-document-evidence/browser-results.json b/docs/hel-892/storyboard-document-evidence/browser-results.json new file mode 100644 index 00000000..472e4f18 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/browser-results.json @@ -0,0 +1,1914 @@ +{ + "request_accounting": { + "fixed_count": 97, + "fixed_paths": { + "/api/settings": 1, + "/api/workflows": 2, + "/api/workflows/1": 3, + "/api/workflows/10": 3, + "/api/workflows/11": 3, + "/api/workflows/12": 3, + "/api/workflows/13": 3, + "/api/workflows/14": 3, + "/api/workflows/15": 3, + "/api/workflows/156": 1, + "/api/workflows/157": 1, + "/api/workflows/16": 3, + "/api/workflows/17": 10, + "/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/4": 4, + "/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": 10, + "polling_paths": { + "/api/jobs": 10 + }, + "polling_tolerance": 1, + "reason": "定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。" + }, + "assertion_count": 1422, + "assertionGroups": { + "aggregate": 2, + "new_storyboard": 758, + "old_twenty_seven": 648, + "shared_regressions": 14 + }, + "checks": [ + "28图888保存位置", + "28图21源注释", + "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 手动按分镜视频截取展开流程 38", + "1440 手动按分镜视频截取展开流程 39", + "1440 手动按分镜视频截取展开流程 40", + "1440 手动按分镜视频截取展开流程 41", + "1440 手动按分镜视频截取展开流程 42", + "1440 手动按分镜视频截取展开流程 43", + "1440 手动按分镜视频截取展开流程 44", + "1440 手动按分镜视频截取展开流程 45", + "1440 手动按分镜视频截取展开流程 46", + "1440 手动按分镜视频截取展开流程 47", + "1440 手动按分镜视频截取展开流程 48", + "1440 手动按分镜视频截取展开流程 49", + "1440 手动按分镜视频截取展开流程 50", + "1440 手动按分镜视频截取展开流程 51", + "1440 手动按分镜视频截取展开流程 52", + "1440 手动按分镜视频截取展开流程 53", + "1440 手动按分镜视频截取展开流程 54", + "1440 手动按分镜视频截取展开流程 55", + "1440 手动按分镜视频截取原件摘要可展开", + "1440 手动按分镜视频截取版本 0", + "1440 手动按分镜视频截取版本 1", + "1440 手动按分镜视频截取版本 2", + "1440 8.directory键盘展开", + "1440 8.directory用途/单位/范围/来源条件", + "1440 8.directory精确保留现值", + "1440 8.directory指针默认折叠", + "1440 8.directory精确源码/类型/指针", + "1440 8.directory展开无溢出", + "1440 8.image_load_cap键盘展开", + "1440 8.image_load_cap用途/单位/范围/来源条件", + "1440 8.image_load_cap精确保留现值", + "1440 8.image_load_cap指针默认折叠", + "1440 8.image_load_cap精确源码/类型/指针", + "1440 8.image_load_cap展开无溢出", + "1440 8.skip_first_images键盘展开", + "1440 8.skip_first_images用途/单位/范围/来源条件", + "1440 8.skip_first_images精确保留现值", + "1440 8.skip_first_images指针默认折叠", + "1440 8.skip_first_images精确源码/类型/指针", + "1440 8.skip_first_images展开无溢出", + "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.videopreview键盘展开", + "1440 8.videopreview用途/单位/范围/来源条件", + "1440 8.videopreview精确保留现值", + "1440 8.videopreview指针默认折叠", + "1440 8.videopreview精确源码/类型/指针", + "1440 8.videopreview展开无溢出", + "1440 18.value键盘展开", + "1440 18.value用途/单位/范围/来源条件", + "1440 18.value精确保留现值", + "1440 18.value指针默认折叠", + "1440 18.value精确源码/类型/指针", + "1440 18.value展开无溢出", + "1440 21.value键盘展开", + "1440 21.value用途/单位/范围/来源条件", + "1440 21.value精确保留现值", + "1440 21.value指针默认折叠", + "1440 21.value精确源码/类型/指针", + "1440 21.value展开无溢出", + "1440 29.name键盘展开", + "1440 29.name用途/单位/范围/来源条件", + "1440 29.name精确保留现值", + "1440 29.name指针默认折叠", + "1440 29.name精确源码/类型/指针", + "1440 29.name展开无溢出", + "1440 28.purge_cache键盘展开", + "1440 28.purge_cache用途/单位/范围/来源条件", + "1440 28.purge_cache精确保留现值", + "1440 28.purge_cache指针默认折叠", + "1440 28.purge_cache精确源码/类型/指针", + "1440 28.purge_cache展开无溢出", + "1440 28.purge_models键盘展开", + "1440 28.purge_models用途/单位/范围/来源条件", + "1440 28.purge_models精确保留现值", + "1440 28.purge_models指针默认折叠", + "1440 28.purge_models精确源码/类型/指针", + "1440 28.purge_models展开无溢出", + "1440 30.name键盘展开", + "1440 30.name用途/单位/范围/来源条件", + "1440 30.name精确保留现值", + "1440 30.name指针默认折叠", + "1440 30.name精确源码/类型/指针", + "1440 30.name展开无溢出", + "1440 25.video键盘展开", + "1440 25.video用途/单位/范围/来源条件", + "1440 25.video精确保留现值", + "1440 25.video指针默认折叠", + "1440 25.video精确源码/类型/指针", + "1440 25.video展开无溢出", + "1440 25.force_rate键盘展开", + "1440 25.force_rate用途/单位/范围/来源条件", + "1440 25.force_rate精确保留现值", + "1440 25.force_rate指针默认折叠", + "1440 25.force_rate精确源码/类型/指针", + "1440 25.force_rate展开无溢出", + "1440 25.custom_width键盘展开", + "1440 25.custom_width用途/单位/范围/来源条件", + "1440 25.custom_width精确保留现值", + "1440 25.custom_width指针默认折叠", + "1440 25.custom_width精确源码/类型/指针", + "1440 25.custom_width展开无溢出", + "1440 25.custom_height键盘展开", + "1440 25.custom_height用途/单位/范围/来源条件", + "1440 25.custom_height精确保留现值", + "1440 25.custom_height指针默认折叠", + "1440 25.custom_height精确源码/类型/指针", + "1440 25.custom_height展开无溢出", + "1440 25.frame_load_cap键盘展开", + "1440 25.frame_load_cap用途/单位/范围/来源条件", + "1440 25.frame_load_cap精确保留现值", + "1440 25.frame_load_cap指针默认折叠", + "1440 25.frame_load_cap精确源码/类型/指针", + "1440 25.frame_load_cap展开无溢出", + "1440 25.skip_first_frames键盘展开", + "1440 25.skip_first_frames用途/单位/范围/来源条件", + "1440 25.skip_first_frames精确保留现值", + "1440 25.skip_first_frames指针默认折叠", + "1440 25.skip_first_frames精确源码/类型/指针", + "1440 25.skip_first_frames展开无溢出", + "1440 25.select_every_nth键盘展开", + "1440 25.select_every_nth用途/单位/范围/来源条件", + "1440 25.select_every_nth精确保留现值", + "1440 25.select_every_nth指针默认折叠", + "1440 25.select_every_nth精确源码/类型/指针", + "1440 25.select_every_nth展开无溢出", + "1440 25.format键盘展开", + "1440 25.format用途/单位/范围/来源条件", + "1440 25.format精确保留现值", + "1440 25.format指针默认折叠", + "1440 25.format精确源码/类型/指针", + "1440 25.format展开无溢出", + "1440 25.videopreview键盘展开", + "1440 25.videopreview用途/单位/范围/来源条件", + "1440 25.videopreview精确保留现值", + "1440 25.videopreview指针默认折叠", + "1440 25.videopreview精确源码/类型/指针", + "1440 25.videopreview展开无溢出", + "1440 19.total键盘展开", + "1440 19.total用途/单位/范围/来源条件", + "1440 19.total精确保留现值", + "1440 19.total指针默认折叠", + "1440 19.total精确源码/类型/指针", + "1440 19.total展开无溢出", + "1440 22.expression键盘展开", + "1440 22.expression用途/单位/范围/来源条件", + "1440 22.expression精确保留现值", + "1440 22.expression指针默认折叠", + "1440 22.expression精确源码/类型/指针", + "1440 22.expression展开无溢出", + "1440 10.frame_rate键盘展开", + "1440 10.frame_rate用途/单位/范围/来源条件", + "1440 10.frame_rate精确保留现值", + "1440 10.frame_rate指针默认折叠", + "1440 10.frame_rate精确源码/类型/指针", + "1440 10.frame_rate展开无溢出", + "1440 10.loop_count键盘展开", + "1440 10.loop_count用途/单位/范围/来源条件", + "1440 10.loop_count精确保留现值", + "1440 10.loop_count指针默认折叠", + "1440 10.loop_count精确源码/类型/指针", + "1440 10.loop_count展开无溢出", + "1440 10.filename_prefix键盘展开", + "1440 10.filename_prefix用途/单位/范围/来源条件", + "1440 10.filename_prefix精确保留现值", + "1440 10.filename_prefix指针默认折叠", + "1440 10.filename_prefix精确源码/类型/指针", + "1440 10.filename_prefix展开无溢出", + "1440 10.format键盘展开", + "1440 10.format用途/单位/范围/来源条件", + "1440 10.format精确保留现值", + "1440 10.format指针默认折叠", + "1440 10.format精确源码/类型/指针", + "1440 10.format展开无溢出", + "1440 10.pix_fmt键盘展开", + "1440 10.pix_fmt用途/单位/范围/来源条件", + "1440 10.pix_fmt精确保留现值", + "1440 10.pix_fmt指针默认折叠", + "1440 10.pix_fmt精确源码/类型/指针", + "1440 10.pix_fmt展开无溢出", + "1440 10.crf键盘展开", + "1440 10.crf用途/单位/范围/来源条件", + "1440 10.crf精确保留现值", + "1440 10.crf指针默认折叠", + "1440 10.crf精确源码/类型/指针", + "1440 10.crf展开无溢出", + "1440 10.save_metadata键盘展开", + "1440 10.save_metadata用途/单位/范围/来源条件", + "1440 10.save_metadata精确保留现值", + "1440 10.save_metadata指针默认折叠", + "1440 10.save_metadata精确源码/类型/指针", + "1440 10.save_metadata展开无溢出", + "1440 10.trim_to_audio键盘展开", + "1440 10.trim_to_audio用途/单位/范围/来源条件", + "1440 10.trim_to_audio精确保留现值", + "1440 10.trim_to_audio指针默认折叠", + "1440 10.trim_to_audio精确源码/类型/指针", + "1440 10.trim_to_audio展开无溢出", + "1440 10.pingpong键盘展开", + "1440 10.pingpong用途/单位/范围/来源条件", + "1440 10.pingpong精确保留现值", + "1440 10.pingpong指针默认折叠", + "1440 10.pingpong精确源码/类型/指针", + "1440 10.pingpong展开无溢出", + "1440 10.save_output键盘展开", + "1440 10.save_output用途/单位/范围/来源条件", + "1440 10.save_output精确保留现值", + "1440 10.save_output指针默认折叠", + "1440 10.save_output精确源码/类型/指针", + "1440 10.save_output展开无溢出", + "1440 10.videopreview键盘展开", + "1440 10.videopreview用途/单位/范围/来源条件", + "1440 10.videopreview精确保留现值", + "1440 10.videopreview指针默认折叠", + "1440 10.videopreview精确源码/类型/指针", + "1440 10.videopreview展开无溢出", + "1440 24.expression键盘展开", + "1440 24.expression用途/单位/范围/来源条件", + "1440 24.expression精确保留现值", + "1440 24.expression指针默认折叠", + "1440 24.expression精确源码/类型/指针", + "1440 24.expression展开无溢出", + "1440 26.filename_prefix键盘展开", + "1440 26.filename_prefix用途/单位/范围/来源条件", + "1440 26.filename_prefix精确保留现值", + "1440 26.filename_prefix指针默认折叠", + "1440 26.filename_prefix精确源码/类型/指针", + "1440 26.filename_prefix展开无溢出", + "1440 26.output_folder键盘展开", + "1440 26.output_folder用途/单位/范围/来源条件", + "1440 26.output_folder精确保留现值", + "1440 26.output_folder指针默认折叠", + "1440 26.output_folder精确源码/类型/指针", + "1440 26.output_folder展开无溢出", + "1440 26.caption_file_extension键盘展开", + "1440 26.caption_file_extension用途/单位/范围/来源条件", + "1440 26.caption_file_extension精确保留现值", + "1440 26.caption_file_extension指针默认折叠", + "1440 26.caption_file_extension精确源码/类型/指针", + "1440 26.caption_file_extension展开无溢出", + "1440 5.template键盘展开", + "1440 5.template用途/单位/范围/来源条件", + "1440 5.template精确保留现值", + "1440 5.template指针默认折叠", + "1440 5.template精确源码/类型/指针", + "1440 5.template展开无溢出", + "1440 1.video键盘展开", + "1440 1.video用途/单位/范围/来源条件", + "1440 1.video精确保留现值", + "1440 1.video指针默认折叠", + "1440 1.video精确源码/类型/指针", + "1440 1.video展开无溢出", + "1440 1.force_rate键盘展开", + "1440 1.force_rate用途/单位/范围/来源条件", + "1440 1.force_rate精确保留现值", + "1440 1.force_rate指针默认折叠", + "1440 1.force_rate精确源码/类型/指针", + "1440 1.force_rate展开无溢出", + "1440 1.custom_width键盘展开", + "1440 1.custom_width用途/单位/范围/来源条件", + "1440 1.custom_width精确保留现值", + "1440 1.custom_width指针默认折叠", + "1440 1.custom_width精确源码/类型/指针", + "1440 1.custom_width展开无溢出", + "1440 1.custom_height键盘展开", + "1440 1.custom_height用途/单位/范围/来源条件", + "1440 1.custom_height精确保留现值", + "1440 1.custom_height指针默认折叠", + "1440 1.custom_height精确源码/类型/指针", + "1440 1.custom_height展开无溢出", + "1440 1.frame_load_cap键盘展开", + "1440 1.frame_load_cap用途/单位/范围/来源条件", + "1440 1.frame_load_cap精确保留现值", + "1440 1.frame_load_cap指针默认折叠", + "1440 1.frame_load_cap精确源码/类型/指针", + "1440 1.frame_load_cap展开无溢出", + "1440 1.skip_first_frames键盘展开", + "1440 1.skip_first_frames用途/单位/范围/来源条件", + "1440 1.skip_first_frames精确保留现值", + "1440 1.skip_first_frames指针默认折叠", + "1440 1.skip_first_frames精确源码/类型/指针", + "1440 1.skip_first_frames展开无溢出", + "1440 1.select_every_nth键盘展开", + "1440 1.select_every_nth用途/单位/范围/来源条件", + "1440 1.select_every_nth精确保留现值", + "1440 1.select_every_nth指针默认折叠", + "1440 1.select_every_nth精确源码/类型/指针", + "1440 1.select_every_nth展开无溢出", + "1440 1.format键盘展开", + "1440 1.format用途/单位/范围/来源条件", + "1440 1.format精确保留现值", + "1440 1.format指针默认折叠", + "1440 1.format精确源码/类型/指针", + "1440 1.format展开无溢出", + "1440 1.videopreview键盘展开", + "1440 1.videopreview用途/单位/范围/来源条件", + "1440 1.videopreview精确保留现值", + "1440 1.videopreview指针默认折叠", + "1440 1.videopreview精确源码/类型/指针", + "1440 1.videopreview展开无溢出", + "1440 36.filename_prefix键盘展开", + "1440 36.filename_prefix用途/单位/范围/来源条件", + "1440 36.filename_prefix精确保留现值", + "1440 36.filename_prefix指针默认折叠", + "1440 36.filename_prefix精确源码/类型/指针", + "1440 36.filename_prefix展开无溢出", + "1440 13.value键盘展开", + "1440 13.value用途/单位/范围/来源条件", + "1440 13.value精确保留现值", + "1440 13.value指针默认折叠", + "1440 13.value精确源码/类型/指针", + "1440 13.value展开无溢出", + "1440 6.value键盘展开", + "1440 6.value用途/单位/范围/来源条件", + "1440 6.value精确保留现值", + "1440 6.value指针默认折叠", + "1440 6.value精确源码/类型/指针", + "1440 6.value展开无溢出", + "1440注释31全文", + "1440注释31无溢出", + "1440注释35全文", + "1440注释35无溢出", + "1440Tab焦点保留", + "1440ShiftTab焦点保留", + "1440 手动按分镜视频截取关闭归还焦点", + "1440 sam3_图像视频-提示词遮罩分割默认中文用途", + "1440 sam3_图像视频-提示词遮罩分割源审校默认折叠", + "1440 sam3_图像视频-提示词遮罩分割技术范围默认折叠", + "1440 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识", + "1440 sam3_图像视频-提示词遮罩分割默认依据限制可见", + "1440 sam3_图像视频-提示词遮罩分割 说明未定稿", + "1440 sam3_图像视频-提示词遮罩分割 未验证实跑", + "1440 sam3_图像视频-提示词遮罩分割 未检查", + "1440 sam3_图像视频-提示词遮罩分割停用/时间戳空", + "1440 sam3_图像视频-提示词遮罩分割参数全保留", + "1440 sam3_图像视频-提示词遮罩分割默认无溢出", + "1440 sam3_图像视频-提示词遮罩分割旧图归还焦点", + "1440 多视频合成分屏展示默认中文用途", + "1440 多视频合成分屏展示源审校默认折叠", + "1440 多视频合成分屏展示技术范围默认折叠", + "1440 多视频合成分屏展示默认无执行计数/实现标识", + "1440 多视频合成分屏展示默认依据限制可见", + "1440 多视频合成分屏展示 说明未定稿", + "1440 多视频合成分屏展示 未验证实跑", + "1440 多视频合成分屏展示 未检查", + "1440 多视频合成分屏展示停用/时间戳空", + "1440 多视频合成分屏展示参数全保留", + "1440 多视频合成分屏展示默认无溢出", + "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 手动按分镜视频截取展开流程 38", + "390 手动按分镜视频截取展开流程 39", + "390 手动按分镜视频截取展开流程 40", + "390 手动按分镜视频截取展开流程 41", + "390 手动按分镜视频截取展开流程 42", + "390 手动按分镜视频截取展开流程 43", + "390 手动按分镜视频截取展开流程 44", + "390 手动按分镜视频截取展开流程 45", + "390 手动按分镜视频截取展开流程 46", + "390 手动按分镜视频截取展开流程 47", + "390 手动按分镜视频截取展开流程 48", + "390 手动按分镜视频截取展开流程 49", + "390 手动按分镜视频截取展开流程 50", + "390 手动按分镜视频截取展开流程 51", + "390 手动按分镜视频截取展开流程 52", + "390 手动按分镜视频截取展开流程 53", + "390 手动按分镜视频截取展开流程 54", + "390 手动按分镜视频截取展开流程 55", + "390 手动按分镜视频截取原件摘要可展开", + "390 手动按分镜视频截取版本 0", + "390 手动按分镜视频截取版本 1", + "390 手动按分镜视频截取版本 2", + "390 8.directory键盘展开", + "390 8.directory用途/单位/范围/来源条件", + "390 8.directory精确保留现值", + "390 8.directory指针默认折叠", + "390 8.directory精确源码/类型/指针", + "390 8.directory展开无溢出", + "390 8.image_load_cap键盘展开", + "390 8.image_load_cap用途/单位/范围/来源条件", + "390 8.image_load_cap精确保留现值", + "390 8.image_load_cap指针默认折叠", + "390 8.image_load_cap精确源码/类型/指针", + "390 8.image_load_cap展开无溢出", + "390 8.skip_first_images键盘展开", + "390 8.skip_first_images用途/单位/范围/来源条件", + "390 8.skip_first_images精确保留现值", + "390 8.skip_first_images指针默认折叠", + "390 8.skip_first_images精确源码/类型/指针", + "390 8.skip_first_images展开无溢出", + "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.videopreview键盘展开", + "390 8.videopreview用途/单位/范围/来源条件", + "390 8.videopreview精确保留现值", + "390 8.videopreview指针默认折叠", + "390 8.videopreview精确源码/类型/指针", + "390 8.videopreview展开无溢出", + "390 18.value键盘展开", + "390 18.value用途/单位/范围/来源条件", + "390 18.value精确保留现值", + "390 18.value指针默认折叠", + "390 18.value精确源码/类型/指针", + "390 18.value展开无溢出", + "390 21.value键盘展开", + "390 21.value用途/单位/范围/来源条件", + "390 21.value精确保留现值", + "390 21.value指针默认折叠", + "390 21.value精确源码/类型/指针", + "390 21.value展开无溢出", + "390 29.name键盘展开", + "390 29.name用途/单位/范围/来源条件", + "390 29.name精确保留现值", + "390 29.name指针默认折叠", + "390 29.name精确源码/类型/指针", + "390 29.name展开无溢出", + "390 28.purge_cache键盘展开", + "390 28.purge_cache用途/单位/范围/来源条件", + "390 28.purge_cache精确保留现值", + "390 28.purge_cache指针默认折叠", + "390 28.purge_cache精确源码/类型/指针", + "390 28.purge_cache展开无溢出", + "390 28.purge_models键盘展开", + "390 28.purge_models用途/单位/范围/来源条件", + "390 28.purge_models精确保留现值", + "390 28.purge_models指针默认折叠", + "390 28.purge_models精确源码/类型/指针", + "390 28.purge_models展开无溢出", + "390 30.name键盘展开", + "390 30.name用途/单位/范围/来源条件", + "390 30.name精确保留现值", + "390 30.name指针默认折叠", + "390 30.name精确源码/类型/指针", + "390 30.name展开无溢出", + "390 25.video键盘展开", + "390 25.video用途/单位/范围/来源条件", + "390 25.video精确保留现值", + "390 25.video指针默认折叠", + "390 25.video精确源码/类型/指针", + "390 25.video展开无溢出", + "390 25.force_rate键盘展开", + "390 25.force_rate用途/单位/范围/来源条件", + "390 25.force_rate精确保留现值", + "390 25.force_rate指针默认折叠", + "390 25.force_rate精确源码/类型/指针", + "390 25.force_rate展开无溢出", + "390 25.custom_width键盘展开", + "390 25.custom_width用途/单位/范围/来源条件", + "390 25.custom_width精确保留现值", + "390 25.custom_width指针默认折叠", + "390 25.custom_width精确源码/类型/指针", + "390 25.custom_width展开无溢出", + "390 25.custom_height键盘展开", + "390 25.custom_height用途/单位/范围/来源条件", + "390 25.custom_height精确保留现值", + "390 25.custom_height指针默认折叠", + "390 25.custom_height精确源码/类型/指针", + "390 25.custom_height展开无溢出", + "390 25.frame_load_cap键盘展开", + "390 25.frame_load_cap用途/单位/范围/来源条件", + "390 25.frame_load_cap精确保留现值", + "390 25.frame_load_cap指针默认折叠", + "390 25.frame_load_cap精确源码/类型/指针", + "390 25.frame_load_cap展开无溢出", + "390 25.skip_first_frames键盘展开", + "390 25.skip_first_frames用途/单位/范围/来源条件", + "390 25.skip_first_frames精确保留现值", + "390 25.skip_first_frames指针默认折叠", + "390 25.skip_first_frames精确源码/类型/指针", + "390 25.skip_first_frames展开无溢出", + "390 25.select_every_nth键盘展开", + "390 25.select_every_nth用途/单位/范围/来源条件", + "390 25.select_every_nth精确保留现值", + "390 25.select_every_nth指针默认折叠", + "390 25.select_every_nth精确源码/类型/指针", + "390 25.select_every_nth展开无溢出", + "390 25.format键盘展开", + "390 25.format用途/单位/范围/来源条件", + "390 25.format精确保留现值", + "390 25.format指针默认折叠", + "390 25.format精确源码/类型/指针", + "390 25.format展开无溢出", + "390 25.videopreview键盘展开", + "390 25.videopreview用途/单位/范围/来源条件", + "390 25.videopreview精确保留现值", + "390 25.videopreview指针默认折叠", + "390 25.videopreview精确源码/类型/指针", + "390 25.videopreview展开无溢出", + "390 19.total键盘展开", + "390 19.total用途/单位/范围/来源条件", + "390 19.total精确保留现值", + "390 19.total指针默认折叠", + "390 19.total精确源码/类型/指针", + "390 19.total展开无溢出", + "390 22.expression键盘展开", + "390 22.expression用途/单位/范围/来源条件", + "390 22.expression精确保留现值", + "390 22.expression指针默认折叠", + "390 22.expression精确源码/类型/指针", + "390 22.expression展开无溢出", + "390 10.frame_rate键盘展开", + "390 10.frame_rate用途/单位/范围/来源条件", + "390 10.frame_rate精确保留现值", + "390 10.frame_rate指针默认折叠", + "390 10.frame_rate精确源码/类型/指针", + "390 10.frame_rate展开无溢出", + "390 10.loop_count键盘展开", + "390 10.loop_count用途/单位/范围/来源条件", + "390 10.loop_count精确保留现值", + "390 10.loop_count指针默认折叠", + "390 10.loop_count精确源码/类型/指针", + "390 10.loop_count展开无溢出", + "390 10.filename_prefix键盘展开", + "390 10.filename_prefix用途/单位/范围/来源条件", + "390 10.filename_prefix精确保留现值", + "390 10.filename_prefix指针默认折叠", + "390 10.filename_prefix精确源码/类型/指针", + "390 10.filename_prefix展开无溢出", + "390 10.format键盘展开", + "390 10.format用途/单位/范围/来源条件", + "390 10.format精确保留现值", + "390 10.format指针默认折叠", + "390 10.format精确源码/类型/指针", + "390 10.format展开无溢出", + "390 10.pix_fmt键盘展开", + "390 10.pix_fmt用途/单位/范围/来源条件", + "390 10.pix_fmt精确保留现值", + "390 10.pix_fmt指针默认折叠", + "390 10.pix_fmt精确源码/类型/指针", + "390 10.pix_fmt展开无溢出", + "390 10.crf键盘展开", + "390 10.crf用途/单位/范围/来源条件", + "390 10.crf精确保留现值", + "390 10.crf指针默认折叠", + "390 10.crf精确源码/类型/指针", + "390 10.crf展开无溢出", + "390 10.save_metadata键盘展开", + "390 10.save_metadata用途/单位/范围/来源条件", + "390 10.save_metadata精确保留现值", + "390 10.save_metadata指针默认折叠", + "390 10.save_metadata精确源码/类型/指针", + "390 10.save_metadata展开无溢出", + "390 10.trim_to_audio键盘展开", + "390 10.trim_to_audio用途/单位/范围/来源条件", + "390 10.trim_to_audio精确保留现值", + "390 10.trim_to_audio指针默认折叠", + "390 10.trim_to_audio精确源码/类型/指针", + "390 10.trim_to_audio展开无溢出", + "390 10.pingpong键盘展开", + "390 10.pingpong用途/单位/范围/来源条件", + "390 10.pingpong精确保留现值", + "390 10.pingpong指针默认折叠", + "390 10.pingpong精确源码/类型/指针", + "390 10.pingpong展开无溢出", + "390 10.save_output键盘展开", + "390 10.save_output用途/单位/范围/来源条件", + "390 10.save_output精确保留现值", + "390 10.save_output指针默认折叠", + "390 10.save_output精确源码/类型/指针", + "390 10.save_output展开无溢出", + "390 10.videopreview键盘展开", + "390 10.videopreview用途/单位/范围/来源条件", + "390 10.videopreview精确保留现值", + "390 10.videopreview指针默认折叠", + "390 10.videopreview精确源码/类型/指针", + "390 10.videopreview展开无溢出", + "390 24.expression键盘展开", + "390 24.expression用途/单位/范围/来源条件", + "390 24.expression精确保留现值", + "390 24.expression指针默认折叠", + "390 24.expression精确源码/类型/指针", + "390 24.expression展开无溢出", + "390 26.filename_prefix键盘展开", + "390 26.filename_prefix用途/单位/范围/来源条件", + "390 26.filename_prefix精确保留现值", + "390 26.filename_prefix指针默认折叠", + "390 26.filename_prefix精确源码/类型/指针", + "390 26.filename_prefix展开无溢出", + "390 26.output_folder键盘展开", + "390 26.output_folder用途/单位/范围/来源条件", + "390 26.output_folder精确保留现值", + "390 26.output_folder指针默认折叠", + "390 26.output_folder精确源码/类型/指针", + "390 26.output_folder展开无溢出", + "390 26.caption_file_extension键盘展开", + "390 26.caption_file_extension用途/单位/范围/来源条件", + "390 26.caption_file_extension精确保留现值", + "390 26.caption_file_extension指针默认折叠", + "390 26.caption_file_extension精确源码/类型/指针", + "390 26.caption_file_extension展开无溢出", + "390 5.template键盘展开", + "390 5.template用途/单位/范围/来源条件", + "390 5.template精确保留现值", + "390 5.template指针默认折叠", + "390 5.template精确源码/类型/指针", + "390 5.template展开无溢出", + "390 1.video键盘展开", + "390 1.video用途/单位/范围/来源条件", + "390 1.video精确保留现值", + "390 1.video指针默认折叠", + "390 1.video精确源码/类型/指针", + "390 1.video展开无溢出", + "390 1.force_rate键盘展开", + "390 1.force_rate用途/单位/范围/来源条件", + "390 1.force_rate精确保留现值", + "390 1.force_rate指针默认折叠", + "390 1.force_rate精确源码/类型/指针", + "390 1.force_rate展开无溢出", + "390 1.custom_width键盘展开", + "390 1.custom_width用途/单位/范围/来源条件", + "390 1.custom_width精确保留现值", + "390 1.custom_width指针默认折叠", + "390 1.custom_width精确源码/类型/指针", + "390 1.custom_width展开无溢出", + "390 1.custom_height键盘展开", + "390 1.custom_height用途/单位/范围/来源条件", + "390 1.custom_height精确保留现值", + "390 1.custom_height指针默认折叠", + "390 1.custom_height精确源码/类型/指针", + "390 1.custom_height展开无溢出", + "390 1.frame_load_cap键盘展开", + "390 1.frame_load_cap用途/单位/范围/来源条件", + "390 1.frame_load_cap精确保留现值", + "390 1.frame_load_cap指针默认折叠", + "390 1.frame_load_cap精确源码/类型/指针", + "390 1.frame_load_cap展开无溢出", + "390 1.skip_first_frames键盘展开", + "390 1.skip_first_frames用途/单位/范围/来源条件", + "390 1.skip_first_frames精确保留现值", + "390 1.skip_first_frames指针默认折叠", + "390 1.skip_first_frames精确源码/类型/指针", + "390 1.skip_first_frames展开无溢出", + "390 1.select_every_nth键盘展开", + "390 1.select_every_nth用途/单位/范围/来源条件", + "390 1.select_every_nth精确保留现值", + "390 1.select_every_nth指针默认折叠", + "390 1.select_every_nth精确源码/类型/指针", + "390 1.select_every_nth展开无溢出", + "390 1.format键盘展开", + "390 1.format用途/单位/范围/来源条件", + "390 1.format精确保留现值", + "390 1.format指针默认折叠", + "390 1.format精确源码/类型/指针", + "390 1.format展开无溢出", + "390 1.videopreview键盘展开", + "390 1.videopreview用途/单位/范围/来源条件", + "390 1.videopreview精确保留现值", + "390 1.videopreview指针默认折叠", + "390 1.videopreview精确源码/类型/指针", + "390 1.videopreview展开无溢出", + "390 36.filename_prefix键盘展开", + "390 36.filename_prefix用途/单位/范围/来源条件", + "390 36.filename_prefix精确保留现值", + "390 36.filename_prefix指针默认折叠", + "390 36.filename_prefix精确源码/类型/指针", + "390 36.filename_prefix展开无溢出", + "390 13.value键盘展开", + "390 13.value用途/单位/范围/来源条件", + "390 13.value精确保留现值", + "390 13.value指针默认折叠", + "390 13.value精确源码/类型/指针", + "390 13.value展开无溢出", + "390 6.value键盘展开", + "390 6.value用途/单位/范围/来源条件", + "390 6.value精确保留现值", + "390 6.value指针默认折叠", + "390 6.value精确源码/类型/指针", + "390 6.value展开无溢出", + "390注释31全文", + "390注释31无溢出", + "390注释35全文", + "390注释35无溢出", + "390Tab焦点保留", + "390ShiftTab焦点保留", + "390 手动按分镜视频截取关闭归还焦点", + "390 sam3_图像视频-提示词遮罩分割默认中文用途", + "390 sam3_图像视频-提示词遮罩分割源审校默认折叠", + "390 sam3_图像视频-提示词遮罩分割技术范围默认折叠", + "390 sam3_图像视频-提示词遮罩分割默认无执行计数/实现标识", + "390 sam3_图像视频-提示词遮罩分割默认依据限制可见", + "390 sam3_图像视频-提示词遮罩分割 说明未定稿", + "390 sam3_图像视频-提示词遮罩分割 未验证实跑", + "390 sam3_图像视频-提示词遮罩分割 未检查", + "390 sam3_图像视频-提示词遮罩分割停用/时间戳空", + "390 sam3_图像视频-提示词遮罩分割参数全保留", + "390 sam3_图像视频-提示词遮罩分割默认无溢出", + "390 sam3_图像视频-提示词遮罩分割旧图归还焦点", + "390 多视频合成分屏展示默认中文用途", + "390 多视频合成分屏展示源审校默认折叠", + "390 多视频合成分屏展示技术范围默认折叠", + "390 多视频合成分屏展示默认无执行计数/实现标识", + "390 多视频合成分屏展示默认依据限制可见", + "390 多视频合成分屏展示 说明未定稿", + "390 多视频合成分屏展示 未验证实跑", + "390 多视频合成分屏展示 未检查", + "390 多视频合成分屏展示停用/时间戳空", + "390 多视频合成分屏展示参数全保留", + "390 多视频合成分屏展示默认无溢出", + "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", + "迟到分镜响应不覆盖旧SAM3摘要/18字段", + "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/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:8247/api/workflows/4" + }, + { + "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/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/4" + }, + { + "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/jobs" + }, + { + "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/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/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/4" + }, + { + "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/3" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/9" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "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/jobs" + }, + { + "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/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/156" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/157" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/4" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/17" + } + ], + "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/storyboard-document-evidence/build-final.txt b/docs/hel-892/storyboard-document-evidence/build-final.txt new file mode 100644 index 00000000..ae5fa5cc --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/build-final.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/storyboard-document-evidence/build-initial.txt b/docs/hel-892/storyboard-document-evidence/build-initial.txt new file mode 100644 index 00000000..ae5fa5cc --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/build-initial.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/storyboard-document-evidence/build_definition.py b/docs/hel-892/storyboard-document-evidence/build_definition.py new file mode 100644 index 00000000..1266c7db --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/build_definition.py @@ -0,0 +1,717 @@ +"Source-bound storyboard editorial definition. Never execute the described graph." + +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 / "storyboard-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": "../storyboard-reference/" + e["local_file"], + "lines": [first, last], + "claim": claim, + } + ) + return len(refs) - 1 + + load = ref( + "vhs", "videohelpersuite/load_video_nodes.py", 22, 168, "1.7.7加载格式、采样和尺寸条件" + ) + run = ref( + "vhs", "videohelpersuite/load_video_nodes.py", 293, 477, "加载实现和schema;不执行媒体" + ) + image = ref( + "vhs", + "videohelpersuite/load_images_nodes.py", + 15, + 126, + "目录读取、图像尺寸匹配和批次;不访问E盘", + ) + image_schema = ref( + "vhs", "videohelpersuite/load_images_nodes.py", 165, 206, "路径加载具名schema,cap/skip/nth" + ) + utils = ref("vhs", "videohelpersuite/utils.py", 137, 155, "按文件名排序、过滤、跳过和间隔") + combine = ref( + "vhs", "videohelpersuite/nodes.py", 234, 420, "1.7.7合成schema、目录和首帧PNG条件" + ) + video = ref("vhs", "videohelpersuite/nodes.py", 420, 625, "视频编码、音频条件和中间文件") + fmt = ref("vhs", "video_formats/h264-mp4.json", 1, 15, "H264/CRF/像素及音频模板") + meta = ref("vhs", "videohelpersuite/nodes.py", 48, 165, "格式模板、元数据参数条件") + ref("vhs", "videohelpersuite/nodes.py", 940, 970, "VideoInfoLoaded五出口与loaded_键") + reg = ref("vhs", "videohelpersuite/nodes.py", 1020, 1050, "VHS准确四类节点注册") + js = ref("vhs", "web/js/VHS.core.js", 41, 168, "同包保存恢复;不证明未知宿主及UE次序") + hist = ref("vhs", "web/js/VHS.core.js", 915, 970, "历史预览缓存回调,非实际媒体") + const = ref("kj", "nodes/nodes.py", 31, 59, "INTConstant与FloatConstant默认范围及舍入") + save = ref("kj", "nodes/image_nodes.py", 3235, 3321, "SaveImageKJ目录、PNG及caption条件") + ref("kj", "__init__.py", 1, 120, "KJ节点映射配置") + ref("kj", "__init__.py", 232, 246, "KJ配置生成准确注册映射") + purge = ref( + "layer", "py/purge_vram.py", 8, 37, "PurgeVRAM默认true,clear_memory无条件、模型清理有条件" + ) + ref("layer", "py/purge_vram.py", 72, 80, "PurgeVRAM准确注册") + ref("layer", "py/imagefunc.py", 2123, 2130, "clear_memory的GC及CUDA可用条件;不执行") + math = ref("math", "py/math_expression.py", 15, 59, "运算符及ceil函数注册;只读不求值") + mathschema = ref( + "math", "py/math_expression.py", 98, 126, "表达式schema、无显式默认及INT/FLOAT出口" + ) + ref("math", "py/math_expression.py", 245, 251, "MathExpression准确注册") + loop = ref( + "easy", "py/nodes/logic.py", 800, 903, "1.3.4循环schema、初始索引及图展开条件;不模拟循环" + ) + ref("easy", "py/nodes/logic.py", 1738, 1745, "循环准确注册") + template = ref( + "mtb", "nodes/graph_utils.py", 113, 141, "0.5.4模板schema及按kwargs字面替换,不计算本图结果" + ) + ref("mtb", "nodes/graph_utils.py", 870, 882, "模板__nodes__模块列表") + ref("mtb", "__init__.py", 190, 205, "MTB显示名注册规则") + ref("mtb", "log.py", 77, 87, "MTB类名去前缀及驼峰显示名") + ref("mtb", "web/mtb_widgets.js", 1168, 1171, "同包模板动态var_输入恢复;未知宿主及UE次序") + ref("core", "comfy_extras/nodes_audio.py", 603, 626, "SaveAudio准确扩展注册") + ref("core", "comfy_api/latest/_ui.py", 27, 76, "音频文件描述符和output目录分派") + ref("mtb", "web/comfy_shared.js", 377, 445, "模板动态连接setup与恢复回调") + audio = ref( + "core", + "comfy_extras/nodes_audio.py", + 120, + 141, + "core0.6.0 SaveAudio具名schema及FLAC输出调用", + ) + audiohelper = ref( + "core", + "comfy_api/latest/_ui.py", + 260, + 390, + "AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频", + ) + for key in ["kj", "layer", "math", "easy", "mtb", "core", "vhs"]: + e = next(e for e in entries if e["id"] == key and e["file"] == "LICENSE") + ref( + key, + "LICENSE", + 1, + len((REF / e["local_file"]).read_text().splitlines()), + "准确提交或发布包许可原文", + ) + specs = {} + + def spec(cls, name, label, typ, default, unit, limits, effect, ev, role="scalar"): + specs[cls, name] = dict( + field=name, + label=label, + type=typ, + schema_default=default, + unit=unit, + limits=limits, + effect=effect, + evidence=ev, + role=role, + ) + + for name, label, typ, default, unit, limits, effect in [ + ( + "video", + "视频文件引用", + "COMBO", + "动态input枚举,无固定默认", + "文件引用", + "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + ), + ( + "force_rate", + "强制采样帧率", + "floatOrInt", + "0", + "帧/秒", + "0~60,step1;0关闭强制采样", + "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + ), + ( + "custom_width", + "自定义宽度", + "INT", + "0", + "像素", + "0~8192;0保持原尺寸或按另一维比例", + "保存0,实际宽度及动态格式约束未知,不读素材。", + ), + ( + "custom_height", + "自定义高度", + "INT", + "0", + "像素", + "0~8192;0保持原尺寸或按另一维比例", + "保存0,实际高度未知;不以保存值保证原片尺寸。", + ), + ( + "frame_load_cap", + "加载帧数上限", + "INT", + "0", + "帧", + "0~9007199254740991,0不设此上限", + "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + ), + ( + "skip_first_frames", + "跳过起始采样帧", + "INT", + "0", + "采样帧", + "0~9007199254740991,step1", + "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + ), + ( + "select_every_nth", + "间隔取帧", + "INT", + "1", + "采样帧间隔", + "1~9007199254740991", + "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + ), + ( + "format", + "加载格式约束", + "COMBO", + "AnimateDiff", + "格式选择", + "AnimateDiff内置,外部格式动态扩展未知", + "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + ), + ]: + spec("VHS_LoadVideo", name, label, typ, default, unit, limits, effect, [load, run, reg]) + for name, label, default, limits, effect in [ + ( + "directory", + "图片文件夹引用", + "schema无显式默认", + "字符串,目标目录权限/存在性未知", + "保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.images;按准确实现文件名排序、筛选、跳过和间隔,再受cap限制,不能当作分镜智能识别。", + ), + ( + "image_load_cap", + "文件夹图片数量上限", + "0", + "0~9007199254740991;0不设此上限", + "保存0被13保存44经边20覆盖;44是上限,不保证44张。", + ), + ( + "skip_first_images", + "文件夹跳过图片数", + "0", + "0~9007199254740991", + "保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。", + ), + ( + "select_every_nth", + "文件夹间隔取图", + "1", + "1~9007199254740991", + "保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。", + ), + ]: + spec( + "VHS_LoadImagesPath", + name, + label, + "STRING" if name == "directory" else "INT", + default, + "目录文本" if name == "directory" else "图片/间隔", + limits, + effect, + [image, image_schema, utils, reg], + ) + for name, label, typ, default, unit, limits, effect in [ + ( + "frame_rate", + "合成播放帧率", + "floatOrInt", + "8", + "帧/秒", + "min1,step1,无显式max", + "10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。", + ), + ( + "loop_count", + "附加循环次数", + "INT", + "0", + "次", + "0~100", + "保存0;本H264视频分支不额外循环,不混同GIF循环。", + ), + ( + "filename_prefix", + "合成文件名前缀", + "STRING", + "AnimateDiff", + "路径/前缀", + "无显式长度限制,目录权限未知", + ( + "保存video/ComfyUI被5模板外线覆盖;模板保存tmp/video/video_{" + "var_1}-{var_2},6/13接var_1/var_2。不执行替换或证明当前文件存" + "在。" + ), + ), + ( + "format", + "合成编码格式", + "COMBO", + "动态格式;函数回退image/gif", + "格式选择", + "动态ffmpeg格式,准确包含video/h264-mp4", + "保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。", + ), + ( + "pix_fmt", + "像素格式", + "COMBO", + "yuv420p(模板首项)", + "像素格式", + "yuv420p/yuv420p10le", + "保存yuv420p,不保证实际尺寸、兼容性或编码成功。", + ), + ( + "crf", + "恒定质量因子", + "INT", + "19", + "CRF", + "0~100,step1", + "保存19传入-crf;不承诺固定码率/大小或效果。", + ), + ( + "save_metadata", + "视频元数据开关", + "BOOLEAN", + "true", + "开关", + "true/false,模板及全局条件", + "保存false控制视频元数据;不等于没有独立首帧PNG,首帧另受VHS_MetadataImage影响。", + ), + ( + "trim_to_audio", + "混流裁切策略", + "BOOLEAN", + "false", + "开关", + "有效音频存在才进入混流", + "保存false,本图10.audio未接,不能称保留原声音或自动混流;不执行编码。", + ), + ( + "pingpong", + "往返追加", + "BOOLEAN", + "false", + "开关", + "true/false", + "保存false不追加逆序中间帧。", + ), + ( + "save_output", + "选择输出目录", + "BOOLEAN", + "true", + "开关", + "true选output,false选temp", + "保存true选择output,前缀被外线覆盖。可能涉及视频和独立PNG;目录/权限/实际结果未知。", + ), + ]: + spec( + "VHS_VideoCombine", + name, + label, + typ, + default, + unit, + limits, + effect, + [combine, video, fmt, meta, reg], + ) + for cls in ["VHS_LoadImagesPath", "VHS_LoadVideo", "VHS_VideoCombine"]: + spec( + cls, + "videopreview", + "完整历史预览对象", + "前端嵌套对象", + "无服务端默认", + "历史状态", + "完整对象,不递归增加位置", + ( + "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/v" + "ideo文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。" + ), + [hist, js], + "frontend_history", + ) + for cls, typ, default in [("FloatConstant", "FLOAT", "0.0"), ("INTConstant", "INT", "0")]: + spec( + cls, + "value", + "具名常量保存值", + typ, + default, + "无固有物理单位", + "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + ( + "18保存16的JSON为int,schema为FLOAT;实现round(value,6)" + "。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8" + ".skip及5.var_1。仅说明物理连接,不计算运行结果。" + ), + [const], + ) + for name in ["purge_cache", "purge_models"]: + spec( + "LayerUtility: PurgeVRAM", + name, + "显存清理保存开关", + "BOOLEAN", + "true", + "开关", + "true/false", + ( + "28为mode4,两个值均true。准确实现无条件clear_memory;purge_c" + "ache参数未被函数体使用,purge_models条件卸载模型并soft_empty_c" + "ache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。" + ), + [purge], + ) + for cls in ["SetNode", "GetNode"]: + spec( + cls, + "name", + "具名源标签(身份未知)", + "STRING(仅源保存态)", + "未知:未声明提供方版本", + "标签文本", + "未知:不以类名绑定实现", + "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + [], + "identity_unknown", + ) + spec( + "easy forLoopStart", + "total", + "循环总量保存值", + "INT", + "1", + "循环上限", + "1~100000,step1", + ( + "保存1被22外线覆盖;19.initial_value1由1.frame_count输入," + "非total或已计算index。准确包从索引0或hidden initial_value0" + "开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。" + ), + [loop], + "linked_saved_value", + ) + spec( + "MathExpression|pysssss", + "expression", + "原始表达式文本", + "STRING", + "schema无显式默认", + "未知,随输入而定", + "多行,dynamicPrompts=false;未声明字符串长度范围", + ( + "22保存ceil(a / b),a来自27.loaded_frame_count、b来自G" + "et30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固" + "定算式和注册语义,不求值、不推次数/分段长度。" + ), + [math, mathschema], + ) + for name, label, default, effect in [ + ( + "filename_prefix", + "图片保存前缀", + "ComfyUI", + "保存tmp/image/ComfyUI,图像来自25;mode4,不保证产物存在。", + ), + ( + "output_folder", + "图片输出目录", + "output", + "保存空字符串;准确实现只有绝对路径走指定目录," + "否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。", + ), + ( + "caption_file_extension", + "标注扩展名", + ".txt", + "保存.txt但caption未接。" + "准确实现仅caption is not None才写标注;不能声称本图输出.txt。" + "PNG仍按图像保存路径处理。", + ), + ]: + spec( + "SaveImageKJ", + name, + label, + "STRING", + default, + "文本/路径", + "schema无显式长度限制;目录与权限未知", + effect, + [save], + ) + spec( + "Apply Text Template (mtb)", + "template", + "文件名前缀模板", + "STRING", + "空字符串", + "模板文本", + "多行,无显式长度范围", + ( + "保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按" + "{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声" + "明,动态口恢复/UE次序未知。" + ), + [template], + ) + spec( + "SaveAudio", + "filename_prefix", + "旁路音频保存前缀", + "STRING", + "audio/ComfyUI", + "路径/前缀", + "schema无显式长度范围;动态目录权限未知", + ( + "仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1." + "AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试" + "听/写入,不代表10最终视频有音轨。" + ), + [audio, audiohelper], + ) + names = { + "FloatConstant": ["value"], + "INTConstant": ["value"], + "SetNode": ["name"], + "GetNode": ["name"], + "LayerUtility: PurgeVRAM": ["purge_cache", "purge_models"], + "easy forLoopStart": ["total"], + "MathExpression|pysssss": ["expression"], + "SaveImageKJ": ["filename_prefix", "output_folder", "caption_file_extension"], + "Apply Text Template (mtb)": ["template"], + "SaveAudio": ["filename_prefix"], + } + fields = [] + comments = [] + zeros = [] + linked = { + (8, "image_load_cap"), + (8, "skip_first_images"), + (10, "frame_rate"), + (10, "filename_prefix"), + (1, "force_rate"), + (25, "force_rate"), + (25, "frame_load_cap"), + (25, "skip_first_frames"), + (19, "total"), + } + for i, n in enumerate(graph["nodes"]): + ptr = f"/nodes/{i}/widgets_values" + vals = n.get("widgets_values") + if n["type"] == "Note": + comments.append( + dict( + node_id=str(n["id"]), + pointer=ptr, + scope="root", + text=vals[0], + meaning="完整源注释,仅作者说明,不是执行证明。", + ) + ) + continue + if not vals: + zeros.append( + dict( + node_id=str(n["id"]), + class_type=n["type"], + effect="原缺widgets_values键;提供方/版本未知,不模拟动态组开关。" + if "widgets_values" not in n + else "原{}零位置;不同于缺键/[]。" + if isinstance(vals, dict) + else "原[]零位置;不补参数。", + ) + ) + continue + for k, v in vals.items() if isinstance(vals, dict) else enumerate(vals): + name = k if isinstance(vals, dict) else names[n["type"]][k] + s = specs[n["type"], name].copy() + if (n["id"], name) in linked: + s["role"] = "linked_saved_value" + fields.append( + { + **s, + "node_id": str(n["id"]), + "scope": "root", + "class_type": n["type"], + "pointer": ptr + "/" + str(k), + "value": v, + "json_type": type(v).__name__, + "execution_note": f"原mode={n['mode']};" + + ("旁路,不模拟执行。" if n["mode"] == 4 else "活动保存态,不等于实际已执行。") + + "源声明不是目标安装证明;未构造prompt。", + } + ) + assert ( + len(fields) == 50 + and len(comments) == 2 + and sum(isinstance(f["value"], dict) for f in fields) == 4 + ) + overview = ( + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合" + "成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组m" + "ode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、" + "目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。" + ) + flow = [ + overview, + ( + "活动物理链8.IMAGE→10.images;6保存1126经边19覆盖8.skip_fi" + "rst_images,13保存44经边20覆盖8.image_load_cap。两个常量另" + "经11/25接5.var_1/var_2;模板tmp/video/video_{var_1" + "}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图" + "像称为当前直接视频截取。" + ), + ( + "18保存16(JSON int,源出口FLOAT分开)经23覆盖10保存30,也经26接旁" + "路1.force_rate。10无audio/VAE/meta_batch线;16不是同步" + "或源时长保证。H264/yuv420p/crf19/save_output=true、sa" + "ve_metadata=false/trimfalse/pingpongfalse按准确V" + "HS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果" + "。" + ), + ( + "视频组mode4:1.IMAGE空出口,frame_count→19.initial_va" + "lue1、VHS info槽3→27;27.frame_count→22.ceil(a /" + " b)→19.total,27.FPS→25.force_rate;19.index→24" + ".a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.Sav" + "eImageKJ,frame_count→20,19.flow→20→28.PurgeVR" + "AM。只保留物理线,不模拟旁路、循环或求值。" + ), + ( + "21保存200→Set29[每批截取帧数],Get30同名但提供方/版本均未声明,身份/解" + "析未证,不能假定可靠取200。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。" + ), + ( + "1/25保存同视频名、cap200,skip0/200;25的force/skip/cap" + "有外线覆盖。1.AUDIO→36.SaveAudio且mode4;10.audio未接,最" + "终视频不保证声音。SaveAudio只有tmp/audio一个保存值,audioUI源口没" + "有第二保存值,不补空串,不称已试听或写入。" + ), + ( + "26保存tmp/image/ComfyUI、空output_folder、.txt;cap" + "tion未接。准确KJ实现相对/空目录走output,绝对路径另处理;PNG按计数名保存," + "caption非None才写标注。不声称实际.txt/目录/图像存在。28准确实现无条件c" + "lear_memory且purge_cache参数未使用,purge_models控制卸载" + ";本轮不执行显存清理。" + ), + ( + "四个完整历史对象仅文本保留,含旧E盘与tmp/video产物、工作流PNG及输入引用;不去" + "重、不递归凑位置,不请求api/view或媒体。Info27={}、LoopEnd20=[" + "]与Bypasser15缺键分别零保存;组匹配1|2仅源属性,不证明当前动态作用。" + ), + ( + "根22节点24边,无子图,无frontendVersion;workflowRendere" + "rVersion=LG不是版本。UE7.5.1/7.5.2及缺version分别保留,空连" + "接声明不证明无回调。EasyUse1.3.4、MTB0.5.4、VHS1.7.7固定准确包" + "字节,Git绑定未知;不借近版本。无模型节点,不编模型依赖;目标安装、目录权限、素材尺寸、" + "实际帧率/编码器/效果待核。" + ), + ( + "两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜" + "头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/必要实跑0/新增转换0,保持" + "全停用未检查。" + ), + ] + for e in graph["links"]: + flow.append("原边 root " + json.dumps(e, ensure_ascii=False)) + for n in graph["nodes"]: + flow.append( + "原节点 root " + + json.dumps( + { + k: n[k] + for k in ["id", "type", "mode", "inputs", "outputs", "properties"] + if k in n + }, + ensure_ascii=False, + ) + ) + return dict( + source_path=path, + source_sha1=hashlib.sha1(raw).hexdigest(), + source_sha256=hashlib.sha256(raw).hexdigest(), + canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(), + notice="准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。", + user_overview=overview, + versions=[ + ( + "KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;La" + "yerStyle3b17c7f488006c872f4cb3d6b37029a9464f1" + "d7b;CustomScripts f2838ed5e59de4d73cde5c98354" + "b87a8d3200190。" + ), + "VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。", + ( + "core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67" + "b007c9f391;无宿主前端声明。Set/Get/Bypasser身份未知,UE版本仅" + "源文本。" + ), + ], + counts=dict( + saved_fields=50, + source_nodes=22, + physical_edges=24, + source_notes=2, + history_objects=4, + linked_saved_fields=9, + frontend_only=4, + final_scalars=0, + final_prompt_constructed=False, + ), + fields=fields, + sources=refs, + comments=comments, + flow=flow, + flow_evidence=list(range(len(refs))), + zero_saved_nodes=zeros, + steps=[ + overview, + "操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。", + "操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。", + "操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。", + "常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。", + ], + ) diff --git a/docs/hel-892/storyboard-document-evidence/changed-files.json b/docs/hel-892/storyboard-document-evidence/changed-files.json new file mode 100644 index 00000000..720f66a8 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/changed-files.json @@ -0,0 +1,607 @@ +[ + { + "path": "calliope-backend/src/calliope/comfyui/fixed_document.py", + "sha256": "05b717e5a181346bec26b4de00a54dcaeb63ef64ccc4463f55b4c09510f9e929", + "purpose": "Runtime trust allowlist" + }, + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.json", + "sha256": "39b11527c7af466c94b351c905d11f7ffb4aefddbf00d5fcf8e35d632c29adc4", + "purpose": "One source review block" + }, + { + "path": "calliope-backend/tests/test_storyboard_fixed_document.py", + "sha256": "a67d742ea705f470fd91aae864a3c31dc071512589fd44104fcd73afd6cae031", + "purpose": "Runtime trust allowlist" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/.gitignore", + "sha256": "862263fa1f46c20f0d1e4dac5ffcc75abd55c08211b2c3864c5f8764b9d87793", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/actual-手动按分镜视频截取.json", + "sha256": "0d16e2cc9c7964220dec148a9cac6fb4f5f42c1c3520fb133c9638d8dd85dad9", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/audit-summary.json", + "sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/backend-final.txt", + "sha256": "d6929bfd2eeec15918b11baead8605203656df041b937d5ccb7c6617e8c8a301", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/backend-initial.txt", + "sha256": "962c220f02609551a16d423c6c9e65f6bde29e27beb57b4b99cc948c829647f0", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/backend-second.txt", + "sha256": "a7e5e49b526b8b89af322c4048cb4956e375723af22859e088619820ad71ee0e", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/boundaries.json", + "sha256": "23794eb349dca5be72883cda99818856d688f2d176c1d7f3691e31f4744fa531", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/bounded-investigation.json", + "sha256": "9863a0c89cadc11b3f8bbe8eaafd131b84e4f02d4038a62d2ce103f9e6ade91e", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/browser-final.txt", + "sha256": "9773dc1cf5657dc0d97e9142d2163232b361b6e254b2e8f45b2ae36be4ca10cc", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/browser-initial.txt", + "sha256": "9773dc1cf5657dc0d97e9142d2163232b361b6e254b2e8f45b2ae36be4ca10cc", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/browser-results.json", + "sha256": "6d2f6674efdb774e99e4e5bc1f6c1ac9978f9927949fb14833c39a2f271f1db0", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/build-final.txt", + "sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/build-initial.txt", + "sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/build_definition.py", + "sha256": "666c84e0664a77feac74a09aca1938f89021edcbe0eecebdaa373f3ed50cb4cc", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/check_code.py", + "sha256": "05ac741dbf38a962748462619fc7b121477ffff8ee841c36f285c8da7a8e1967", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/definition-0.json", + "sha256": "32490e25cd866e34a2dc69ed5d74d34c9b85b7c19be807b8f11861ea5ce0987b", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/delivery-summary.md", + "sha256": "17b60442173df2e0c96d97261664d2f6d35f4a97cf30f599bc050d8792f4ff12", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/development-notes.txt", + "sha256": "4cbe28052f55592ceee6cabb8488162c2b9544b03812ef3c5b23c641bf4da691", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch-additional.txt", + "sha256": "f7c4877785814c6628661f3f19f203c01a2b7d797a6c18f927333794465ea0cf", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch-helpers-second.txt", + "sha256": "b20deb9914f36fe21b71b38a4b3f22f36768e357af5968940b2fe1d030d04abf", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch-helpers.txt", + "sha256": "7ea2523666f049a5a0b5116264468cd7166a03dc528596c8908cd390b7c9523d", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch-initial.txt", + "sha256": "0ae7f343bf9fe261cf9925b90a68f7b7b56c43db050dab14cbf7f96c5e83c577", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch_additional.py", + "sha256": "8a574c335a878b067ceb0bba2b4eb1de41a021421ae1df31d925a057cca989ee", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch_helpers.py", + "sha256": "0fc39af917287f7b64317bdee02cec60a224507b15646ea62a80203db2c424a4", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch_sources.py", + "sha256": "32cb42a208fc65568dba4d4877b21a1b3160ee6f6a2e8012e16a2f85ef95e386", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fixed-source-index.json", + "sha256": "ccc192af85d76c8293c38081ea013a5ec1a7f3bad6381a3ed9bad3b92ad508c3", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/format-final.txt", + "sha256": "811e323b70518c91fa91f39493c31d0ce553003f9104e292e404a6aa8a943320", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/frozen-resource-check.json", + "sha256": "0ac34b45127b704bd09e1aa4f96e35172e04786d003f9f834998752080b5a65c", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/import-protection.json", + "sha256": "b7615ed9208148a56754a391ab4757972ab88207f4d171c7144c1e564311a29d", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/lint-final.txt", + "sha256": "f13a665b53482d1dceeb38f992ce3c317dd520fd0bfcecb96e398c69cd24f7b0", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/lint-fix.txt", + "sha256": "713fa1fa5ae0fbad60272c3d7f734d03a6466c4063dfd1de2b46956ba8f1225f", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/lint-initial.txt", + "sha256": "9790a8c642282002bca1c1a801200ab879873b3becdba06ebebfef2c582f76a6", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/lint-second.txt", + "sha256": "d688e889d87d99cb223820bb5e7b5e18e5b46864411184bd46ab48fd924d35a0", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/lint-third.txt", + "sha256": "f13a665b53482d1dceeb38f992ce3c317dd520fd0bfcecb96e398c69cd24f7b0", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/npm-ci.txt", + "sha256": "99aec36e74054441a1e4c2ee0d37b5e5cbe2e3ce61938cf82941f876a338315b", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/package-check.json", + "sha256": "e62bb2945250ba8b4725e80c3d5bdb7135d5ad8c2f5cbada7a30a7a7366098dd", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/pins.json", + "sha256": "e0c12f1df962be7f927eafc7d164d4be84e7eb2ec3a03895b0ed5d160342024b", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/pr-before.json", + "sha256": "4cef6638bc79d58002c9d99a73c00a5972d521cb0c2cbb89ea9c24ee166e0e26", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/python-check-files.json", + "sha256": "239a4dd80fb29738593125ff6896d390a3f4b996b38b3a6c9f242354330061f4", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild-fifth.txt", + "sha256": "48ad7af34457a07dfc0be28c86ed734ab7606c2c0ce375d0f0ae7481e9c7a722", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild-final.txt", + "sha256": "18dda0b2b809e0653277427f2f660455944b0e3b592d8cebf3ba16edecd23d5d", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild-fourth.txt", + "sha256": "a4bbc46c2168ee60d81fb6c92f71fe5b5a90242d477c16540223fe6e44b1500f", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild-initial.txt", + "sha256": "27221d00c968ef1ff08cadabc8dc86f71f80918e12e872d923fef99e6bce6643", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild-second.txt", + "sha256": "8e7bca3df85f802d6d0ba5dbf8b723dc304813a35dd98d9fc50fdd179c056873", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild-third.txt", + "sha256": "18dda0b2b809e0653277427f2f660455944b0e3b592d8cebf3ba16edecd23d5d", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild.py", + "sha256": "59c7cf1496c04fd82491cc7fc2f45ef1191a2234b5b03d58ac5cd4edb92301dd", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/recompute-final.txt", + "sha256": "8c9fef075953c37bc375133ecdefb0bb479bd351b7e3b993adad8dbbd03a7299", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/recompute-initial.txt", + "sha256": "2c0bee73e3cea5f699299dae88fab54110815e3531541e1c31880cfae79b306c", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/recompute.py", + "sha256": "cbdc2353a594ed75104309d930da178bb151eda8d9100123718a62c7e7e42d4b", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/render_report.py", + "sha256": "ef237655267d5c5db9501f7c5574d0465f3046ae46d274c3701da1f8727edb32", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/repeat-final.txt", + "sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/repeat.py", + "sha256": "292f7c76a7270abcd68b659e3c67290d04224d8baf564fc08ef4367562eecde3", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/repeatability.json", + "sha256": "aec7d476696aac1592d393c3a21da9ef754c0146d874f1dad8db999781517bb3", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/request-counts.txt", + "sha256": "e203c3d99085c20a429a8bbbc3e27908dfc2ec4a085448b06772e526547d25d7", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/request_counts.py", + "sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/review-delta.json", + "sha256": "31656c238e350310f965fef989a7666bcfffd5ddc768448e7952a418b8259da2", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/screenshots/1440-17-10-frame_rate.png", + "sha256": "445818a95f429dc0e3ef86ce65ec4c6ebd4706988572437901b27f87fbb67dad", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/screenshots/1440-17-branch-flow.png", + "sha256": "529701529eb35d74b3141baa749a8ddbbd2799715978d601176476bb68ae5558", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/screenshots/1440-17-default.png", + "sha256": "951e2f836a6e307a3de24b7465cbfb484c966195bd2d92240f80a7fdc6c916f1", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/screenshots/390-17-default.png", + "sha256": "261a9a262f842e1b8ed1a179ec41d3a2ba59f429503d5dd6fdb34b4a4a0cfe46", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/screenshots/390-17-note.png", + "sha256": "ca1a0b8fc04a1e9105965ce85f01a9a75ea38647f53753fe9e3eaf0c59cda848", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/server-request-accounting.json", + "sha256": "bb170694c6900edbaf3f877a317c3bbeb5693292030fc68fc3bc4f6ecb2bc823", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/service-0.txt", + "sha256": "acaa5b18450a63814fe6a7294d6d7bf90165060d7104899d8cd9627cf5b3cf84", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/service-1.txt", + "sha256": "64bcf8c2604af730aefcd833a87ee03c1eeb893482f3e959c5cac9522419ecb9", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/service-stop.json", + "sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/source-check-final.txt", + "sha256": "a5d638672425c889073e12539bacae24be71e215b841d705977f3642ba505bbc", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/source-check-initial.txt", + "sha256": "bbb0fb83e09d0504f3bfb96d6c6ae3dda8a90658b743bee789b8128dea329b44", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/source-check.json", + "sha256": "5cce46827fc2ba93bfbb034d4b756eafa560cae76fbf1e27c89e78cb63949e08", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/staged-diff-check.txt", + "sha256": "e6120b2d885348d513978caeda67ad72eb581d5ba82b2bd554e005e8936c8e73", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/tested-files.json", + "sha256": "0c42a7dc619fe632515131aa86e834abdbfb8227e8241bca3dac56669438108c", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/validation-commands.txt", + "sha256": "b638145b94765a2bbeb4495639e0c657be4bd3b5653f3a791d9b87407a61246b", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/verify_sources.py", + "sha256": "7fe93e321487c7add6ab5dfd7ee08b17782bf42cd44afaafb804e66995ae3927", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/visual-review.txt", + "sha256": "7e1f42c0589ec39c3f0b6f6968ec14e6e9bf6743547d537421da85a19106cc8c", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "docs/hel-892/storyboard-reference/comfy-mtb-version.json", + "sha256": "f6960f4c4f653cbcbe23679841a17ba800c94d7127e32f292c26f8e5dda30c38", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/comfyui-easy-use-version.json", + "sha256": "4d34c973f4465e3c9b1e3321604e893bbd359eeeadd71e88a85abb4dd425d033", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core-tag.json", + "sha256": "d83b85e246899bbf32d3f37c18fa6578ad40e220e0eef12278c0ed1a34c67402", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core-tree.json", + "sha256": "634fe5801ce8e37b9de348d92050d9f7c55a66979abd335b3bb36a5ca167ff37", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core__comfy_api__latest___io.py", + "sha256": "9ae0d719957a3d31472d4c9de0ff9635db074e222903055bab880b26c295ed86", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core__comfy_api__latest___ui.py", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core__comfy_extras__nodes_audio.py", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core__folder_paths.py", + "sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/core__nodes.py", + "sha256": "1d8eb523db6753a01a9bdd8efface14a76ff91babb2be434a98ea2a1a757b894", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/easy-package-index.json", + "sha256": "814f9f08a44f89dfcf1007b32e9a4e5d76a99ed71ed4f06763ed2cec3b1b29f4", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/easy__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/easy____init__.py", + "sha256": "d225b7157796aa5f015bb28bfa6cee8e3048fb810a45e988122ea3b365bdde22", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/easy__py__nodes__logic.py", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/easy__pyproject.toml", + "sha256": "123745784e7e332be08f29a4fc90d96393af25262c3b4e8cfc806cfaa91799d8", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/kj-tree.json", + "sha256": "90afc84358d03d3917eb94b584b616f0a1fdc213e86f388aac6745e61f22db9a", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/kj__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/kj____init__.py", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/kj__nodes__image_nodes.py", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/kj__nodes__nodes.py", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/layer-tree.json", + "sha256": "9fda0de2cf4d0f310899bf097332cb3615c02ed32a8bb4bd19215b831b2ab230", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/layer__LICENSE", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/layer____init__.py", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/layer__py__imagefunc.py", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/layer__py__purge_vram.py", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/math-tree.json", + "sha256": "a20ac14784fbf05876201952fdbd99510a0000e4a7f0d90b42f9fbdd2eb95b43", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/math__LICENSE", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/math____init__.py", + "sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/math__py__math_expression.py", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb-package-index.json", + "sha256": "64c43747e724e777b9608fdc161a09c3af82eae88466477abedf0628ab98c3dd", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__LICENSE", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb____init__.py", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__log.py", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__nodes__graph_utils.py", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__pyproject.toml", + "sha256": "d6f354766a928079ffb85d996b82bb3db517e2246e2216471aadf0a6d03f324d", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__web__comfy_shared.js", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__web__mtb_ui.js", + "sha256": "5d5c686d8c7646bccc8efa74ba6815d4f4a65b310cf0d3760399ec55e0fbdf67", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__web__mtb_widgets.js", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__wiki__nodes__nodes-apply-text-template.md", + "sha256": "f2926be6da3ba5ff0ab992da0ff2baf1404904561ac65867ee50a72e8428f6e8", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/sources.json", + "sha256": "115157b8b8434684e439b8f1515b0aff5b1c307ce87b2aadccdb9d96c68acf71", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/vhs-package-index.json", + "sha256": "3a12ff186d30171e79041cf7988ed2686e3faf99552c42cfa5ff417978db2722", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "purpose": "Exact upstream text/identity, never executed" + }, + { + "path": "docs/hel-892/手动分镜视频截取固定参考中文说明.md", + "sha256": "381d30f2d20f76ac6956075a0c6a3a59d21e549338911ebf2b7628b11bbbaf3f", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "e2e/run-storyboard-document.py", + "sha256": "ea3b1d35e662155d030900c2955fa828e8a0a25257ca11f6f12bea72171b3e96", + "purpose": "Editorial verification/document/evidence" + }, + { + "path": "e2e/storyboard-document.mjs", + "sha256": "27857e8ddab373551e6801943ebc342e28eedc80c3c979680718cf8a73cb5389", + "purpose": "Editorial verification/document/evidence" + } +] diff --git a/docs/hel-892/storyboard-document-evidence/check_code.py b/docs/hel-892/storyboard-document-evidence/check_code.py new file mode 100644 index 00000000..ddf02de4 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/check_code.py @@ -0,0 +1,40 @@ +"""Check changed authored Python only; upstream originals remain byte-for-byte.""" + +import json +import subprocess +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[3] +OUT = Path(__file__).resolve().parent +FILES = [ + "calliope-backend/src/calliope/comfyui/fixed_document.py", + "calliope-backend/tests/test_storyboard_fixed_document.py", + "e2e/run-storyboard-document.py", +] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))] + + +def main(): + for command in [["check"], ["format", "--check"]]: + subprocess.run( + [ + "uv", + "run", + "--project", + "calliope-backend", + "--offline", + "ruff", + *command, + "--config", + "calliope-backend/pyproject.toml", + *FILES, + ], + cwd=ROOT, + check=True, + ) + subprocess.run(["node", "--check", "e2e/storyboard-document.mjs"], cwd=ROOT, check=True) + (OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n") + print("PASS", len(FILES), "authored Python files and one JS syntax check") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/definition-0.json b/docs/hel-892/storyboard-document-evidence/definition-0.json new file mode 100644 index 00000000..5677bb81 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/definition-0.json @@ -0,0 +1,1896 @@ +{ + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "source_sha1": "59487d0fc84d64832e36f865bb78008f0d90cf67", + "source_sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132", + "canonical_sha256": "632cb01a99b3c09f19a149d6fb09a31b9b15e45f0591c9a2c13d034d91b423dc", + "notice": "准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。", + "user_overview": "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "versions": [ + "KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;LayerStyle3b17c7f488006c872f4cb3d6b37029a9464f1d7b;CustomScripts f2838ed5e59de4d73cde5c98354b87a8d3200190。", + "VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。", + "core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67b007c9f391;无宿主前端声明。Set/Get/Bypasser身份未知,UE版本仅源文本。" + ], + "counts": { + "saved_fields": 50, + "source_nodes": 22, + "physical_edges": 24, + "source_notes": 2, + "history_objects": 4, + "linked_saved_fields": 9, + "frontend_only": 4, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "field": "directory", + "label": "图片文件夹引用", + "type": "STRING", + "schema_default": "schema无显式默认", + "unit": "目录文本", + "limits": "字符串,目标目录权限/存在性未知", + "effect": "保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.images;按准确实现文件名排序、筛选、跳过和间隔,再受cap限制,不能当作分镜智能识别。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "scalar", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/directory", + "value": "E:\\ComfyUI-Data\\output\\tmp\\image", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "image_load_cap", + "label": "文件夹图片数量上限", + "type": "INT", + "schema_default": "0", + "unit": "图片/间隔", + "limits": "0~9007199254740991;0不设此上限", + "effect": "保存0被13保存44经边20覆盖;44是上限,不保证44张。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "linked_saved_value", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/image_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "skip_first_images", + "label": "文件夹跳过图片数", + "type": "INT", + "schema_default": "0", + "unit": "图片/间隔", + "limits": "0~9007199254740991", + "effect": "保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "linked_saved_value", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/skip_first_images", + "value": 0, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "select_every_nth", + "label": "文件夹间隔取图", + "type": "INT", + "schema_default": "1", + "unit": "图片/间隔", + "limits": "1~9007199254740991", + "effect": "保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。", + "evidence": [ + 2, + 3, + 4, + 10 + ], + "role": "scalar", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "8", + "scope": "root", + "class_type": "VHS_LoadImagesPath", + "pointer": "/nodes/0/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "image_load_cap": 0, + "skip_first_images": 0, + "select_every_nth": 1, + "filename": "E:\\ComfyUI-Data\\output\\tmp\\image", + "type": "path", + "format": "folder" + } + }, + "json_type": "dict", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "FLOAT", + "schema_default": "0.0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "18", + "scope": "root", + "class_type": "FloatConstant", + "pointer": "/nodes/1/widgets_values/0", + "value": 16, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "INT", + "schema_default": "0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "21", + "scope": "root", + "class_type": "INTConstant", + "pointer": "/nodes/2/widgets_values/0", + "value": 200, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "name", + "label": "具名源标签(身份未知)", + "type": "STRING(仅源保存态)", + "schema_default": "未知:未声明提供方版本", + "unit": "标签文本", + "limits": "未知:不以类名绑定实现", + "effect": "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + "evidence": [], + "role": "identity_unknown", + "node_id": "29", + "scope": "root", + "class_type": "SetNode", + "pointer": "/nodes/3/widgets_values/0", + "value": "每批截取帧数", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "purge_cache", + "label": "显存清理保存开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true/false", + "effect": "28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。", + "evidence": [ + 17 + ], + "role": "scalar", + "node_id": "28", + "scope": "root", + "class_type": "LayerUtility: PurgeVRAM", + "pointer": "/nodes/4/widgets_values/0", + "value": true, + "json_type": "bool", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "purge_models", + "label": "显存清理保存开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true/false", + "effect": "28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。", + "evidence": [ + 17 + ], + "role": "scalar", + "node_id": "28", + "scope": "root", + "class_type": "LayerUtility: PurgeVRAM", + "pointer": "/nodes/4/widgets_values/1", + "value": true, + "json_type": "bool", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "name", + "label": "具名源标签(身份未知)", + "type": "STRING(仅源保存态)", + "schema_default": "未知:未声明提供方版本", + "unit": "标签文本", + "limits": "未知:不以类名绑定实现", + "effect": "保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。", + "evidence": [], + "role": "identity_unknown", + "node_id": "30", + "scope": "root", + "class_type": "GetNode", + "pointer": "/nodes/6/widgets_values/0", + "value": "每批截取帧数", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "动态input枚举,无固定默认", + "unit": "文件引用", + "limits": "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "effect": "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/video", + "value": "牧马人-1-逃荒来的-1.mp4", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "force_rate", + "label": "强制采样帧率", + "type": "floatOrInt", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0关闭强制采样", + "effect": "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际宽度及动态格式约束未知,不读素材。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际高度未知;不以保存值保证原片尺寸。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "帧", + "limits": "0~9007199254740991,0不设此上限", + "effect": "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/frame_load_cap", + "value": 200, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~9007199254740991,step1", + "effect": "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/skip_first_frames", + "value": 200, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔取帧", + "type": "INT", + "schema_default": "1", + "unit": "采样帧间隔", + "limits": "1~9007199254740991", + "effect": "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式选择", + "limits": "AnimateDiff内置,外部格式动态扩展未知", + "effect": "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "25", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/7/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "牧马人-1-逃荒来的-1.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 200, + "skip_first_frames": 200, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "total", + "label": "循环总量保存值", + "type": "INT", + "schema_default": "1", + "unit": "循环上限", + "limits": "1~100000,step1", + "effect": "保存1被22外线覆盖;19.initial_value1由1.frame_count输入,非total或已计算index。准确包从索引0或hidden initial_value0开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。", + "evidence": [ + 23 + ], + "role": "linked_saved_value", + "node_id": "19", + "scope": "root", + "class_type": "easy forLoopStart", + "pointer": "/nodes/9/widgets_values/0", + "value": 1, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "expression", + "label": "原始表达式文本", + "type": "STRING", + "schema_default": "schema无显式默认", + "unit": "未知,随输入而定", + "limits": "多行,dynamicPrompts=false;未声明字符串长度范围", + "effect": "22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。", + "evidence": [ + 20, + 21 + ], + "role": "scalar", + "node_id": "22", + "scope": "root", + "class_type": "MathExpression|pysssss", + "pointer": "/nodes/10/widgets_values/0", + "value": "ceil(a / b)", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "frame_rate", + "label": "合成播放帧率", + "type": "floatOrInt", + "schema_default": "8", + "unit": "帧/秒", + "limits": "min1,step1,无显式max", + "effect": "10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "linked_saved_value", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/frame_rate", + "value": 30, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "loop_count", + "label": "附加循环次数", + "type": "INT", + "schema_default": "0", + "unit": "次", + "limits": "0~100", + "effect": "保存0;本H264视频分支不额外循环,不混同GIF循环。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "filename_prefix", + "label": "合成文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "路径/前缀", + "limits": "无显式长度限制,目录权限未知", + "effect": "保存video/ComfyUI被5模板外线覆盖;模板保存tmp/video/video_{var_1}-{var_2},6/13接var_1/var_2。不执行替换或证明当前文件存在。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "linked_saved_value", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/filename_prefix", + "value": "video/ComfyUI", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "format", + "label": "合成编码格式", + "type": "COMBO", + "schema_default": "动态格式;函数回退image/gif", + "unit": "格式选择", + "limits": "动态ffmpeg格式,准确包含video/h264-mp4", + "effect": "保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "pix_fmt", + "label": "像素格式", + "type": "COMBO", + "schema_default": "yuv420p(模板首项)", + "unit": "像素格式", + "limits": "yuv420p/yuv420p10le", + "effect": "保存yuv420p,不保证实际尺寸、兼容性或编码成功。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "crf", + "label": "恒定质量因子", + "type": "INT", + "schema_default": "19", + "unit": "CRF", + "limits": "0~100,step1", + "effect": "保存19传入-crf;不承诺固定码率/大小或效果。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/crf", + "value": 19, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true/false,模板及全局条件", + "effect": "保存false控制视频元数据;不等于没有独立首帧PNG,首帧另受VHS_MetadataImage影响。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/save_metadata", + "value": false, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "trim_to_audio", + "label": "混流裁切策略", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "开关", + "limits": "有效音频存在才进入混流", + "effect": "保存false,本图10.audio未接,不能称保留原声音或自动混流;不执行编码。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "pingpong", + "label": "往返追加", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "开关", + "limits": "true/false", + "effect": "保存false不追加逆序中间帧。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "save_output", + "label": "选择输出目录", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "开关", + "limits": "true选output,false选temp", + "effect": "保存true选择output,前缀被外线覆盖。可能涉及视频和独立PNG;目录/权限/实际结果未知。", + "evidence": [ + 5, + 6, + 7, + 8, + 10 + ], + "role": "scalar", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/save_output", + "value": true, + "json_type": "bool", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "10", + "scope": "root", + "class_type": "VHS_VideoCombine", + "pointer": "/nodes/12/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "video_1126-44_00001.mp4", + "subfolder": "tmp\\video", + "type": "output", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "video_1126-44_00001.png", + "fullpath": "E:\\ComfyUI-Data\\output\\tmp\\video\\video_1126-44_00001.mp4" + } + }, + "json_type": "dict", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "expression", + "label": "原始表达式文本", + "type": "STRING", + "schema_default": "schema无显式默认", + "unit": "未知,随输入而定", + "limits": "多行,dynamicPrompts=false;未声明字符串长度范围", + "effect": "22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。", + "evidence": [ + 20, + 21 + ], + "role": "scalar", + "node_id": "24", + "scope": "root", + "class_type": "MathExpression|pysssss", + "pointer": "/nodes/14/widgets_values/0", + "value": "a*b", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "filename_prefix", + "label": "图片保存前缀", + "type": "STRING", + "schema_default": "ComfyUI", + "unit": "文本/路径", + "limits": "schema无显式长度限制;目录与权限未知", + "effect": "保存tmp/image/ComfyUI,图像来自25;mode4,不保证产物存在。", + "evidence": [ + 14 + ], + "role": "scalar", + "node_id": "26", + "scope": "root", + "class_type": "SaveImageKJ", + "pointer": "/nodes/15/widgets_values/0", + "value": "tmp/image/ComfyUI", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "output_folder", + "label": "图片输出目录", + "type": "STRING", + "schema_default": "output", + "unit": "文本/路径", + "limits": "schema无显式长度限制;目录与权限未知", + "effect": "保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。", + "evidence": [ + 14 + ], + "role": "scalar", + "node_id": "26", + "scope": "root", + "class_type": "SaveImageKJ", + "pointer": "/nodes/15/widgets_values/1", + "value": "", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "caption_file_extension", + "label": "标注扩展名", + "type": "STRING", + "schema_default": ".txt", + "unit": "文本/路径", + "limits": "schema无显式长度限制;目录与权限未知", + "effect": "保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。", + "evidence": [ + 14 + ], + "role": "scalar", + "node_id": "26", + "scope": "root", + "class_type": "SaveImageKJ", + "pointer": "/nodes/15/widgets_values/2", + "value": ".txt", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "template", + "label": "文件名前缀模板", + "type": "STRING", + "schema_default": "空字符串", + "unit": "模板文本", + "limits": "多行,无显式长度范围", + "effect": "保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。", + "evidence": [ + 25 + ], + "role": "scalar", + "node_id": "5", + "scope": "root", + "class_type": "Apply Text Template (mtb)", + "pointer": "/nodes/16/widgets_values/0", + "value": "tmp/video/video_{var_1}-{var_2}", + "json_type": "str", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "video", + "label": "视频文件引用", + "type": "COMBO", + "schema_default": "动态input枚举,无固定默认", + "unit": "文件引用", + "limits": "mp4/webm/mkv/gif/mov等普通文件;实际列表未知", + "effect": "1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/video", + "value": "牧马人-1-逃荒来的-1.mp4", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "force_rate", + "label": "强制采样帧率", + "type": "floatOrInt", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1;0关闭强制采样", + "effect": "两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "linked_saved_value", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/force_rate", + "value": 16, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_width", + "label": "自定义宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际宽度及动态格式约束未知,不读素材。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "custom_height", + "label": "自定义高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0保持原尺寸或按另一维比例", + "effect": "保存0,实际高度未知;不以保存值保证原片尺寸。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "frame_load_cap", + "label": "加载帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "帧", + "limits": "0~9007199254740991,0不设此上限", + "effect": "两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/frame_load_cap", + "value": 200, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过起始采样帧", + "type": "INT", + "schema_default": "0", + "unit": "采样帧", + "limits": "0~9007199254740991,step1", + "effect": "1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "select_every_nth", + "label": "间隔取帧", + "type": "INT", + "schema_default": "1", + "unit": "采样帧间隔", + "limits": "1~9007199254740991", + "effect": "均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式选择", + "limits": "AnimateDiff内置,外部格式动态扩展未知", + "effect": "保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。", + "evidence": [ + 0, + 1, + 10 + ], + "role": "scalar", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "videopreview", + "label": "完整历史预览对象", + "type": "前端嵌套对象", + "schema_default": "无服务端默认", + "unit": "历史状态", + "limits": "完整对象,不递归增加位置", + "effect": "四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。", + "evidence": [ + 12, + 11 + ], + "role": "frontend_history", + "node_id": "1", + "scope": "root", + "class_type": "VHS_LoadVideo", + "pointer": "/nodes/18/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "牧马人-1-逃荒来的-1.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 200, + "skip_first_frames": 0, + "select_every_nth": 1 + } + }, + "json_type": "dict", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "filename_prefix", + "label": "旁路音频保存前缀", + "type": "STRING", + "schema_default": "audio/ComfyUI", + "unit": "路径/前缀", + "limits": "schema无显式长度范围;动态目录权限未知", + "effect": "仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最终视频有音轨。", + "evidence": [ + 33, + 34 + ], + "role": "scalar", + "node_id": "36", + "scope": "root", + "class_type": "SaveAudio", + "pointer": "/nodes/19/widgets_values/0", + "value": "tmp/audio", + "json_type": "str", + "execution_note": "原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "INT", + "schema_default": "0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "13", + "scope": "root", + "class_type": "INTConstant", + "pointer": "/nodes/20/widgets_values/0", + "value": 44, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + }, + { + "field": "value", + "label": "具名常量保存值", + "type": "INT", + "schema_default": "0", + "unit": "无固有物理单位", + "limits": "-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001", + "effect": "18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。", + "evidence": [ + 13 + ], + "role": "scalar", + "node_id": "6", + "scope": "root", + "class_type": "INTConstant", + "pointer": "/nodes/21/widgets_values/0", + "value": 1126, + "json_type": "int", + "execution_note": "原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。" + } + ], + "sources": [ + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown", + "lines": [ + 22, + 168 + ], + "claim": "1.7.7加载格式、采样和尺寸条件" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown", + "lines": [ + 293, + 477 + ], + "claim": "加载实现和schema;不执行媒体" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown", + "lines": [ + 15, + 126 + ], + "claim": "目录读取、图像尺寸匹配和批次;不访问E盘" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown", + "lines": [ + 165, + 206 + ], + "claim": "路径加载具名schema,cap/skip/nth" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_commit_binding": "unknown", + "lines": [ + 137, + 155 + ], + "claim": "按文件名排序、过滤、跳过和间隔" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 234, + 420 + ], + "claim": "1.7.7合成schema、目录和首帧PNG条件" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 420, + 625 + ], + "claim": "视频编码、音频条件和中间文件" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../storyboard-reference/../reverse-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown", + "lines": [ + 1, + 15 + ], + "claim": "H264/CRF/像素及音频模板" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 48, + 165 + ], + "claim": "格式模板、元数据参数条件" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 940, + 970 + ], + "claim": "VideoInfoLoaded五出口与loaded_键" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 1020, + 1050 + ], + "claim": "VHS准确四类节点注册" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown", + "lines": [ + 41, + 168 + ], + "claim": "同包保存恢复;不证明未知宿主及UE次序" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown", + "lines": [ + 915, + 970 + ], + "claim": "历史预览缓存回调,非实际媒体" + }, + { + "id": "kj", + "file": "nodes/nodes.py", + "local_file": "../storyboard-reference/kj__nodes__nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "git_blob_sha1": "372c8518a77b20fa808de3b70736ceb8dde0092e", + "lines": [ + 31, + 59 + ], + "claim": "INTConstant与FloatConstant默认范围及舍入" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../storyboard-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "git_blob_sha1": "aac70d4770f5428a7e3f6bd9a10d50a821987199", + "lines": [ + 3235, + 3321 + ], + "claim": "SaveImageKJ目录、PNG及caption条件" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "../storyboard-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "lines": [ + 1, + 120 + ], + "claim": "KJ节点映射配置" + }, + { + "id": "kj", + "file": "__init__.py", + "local_file": "../storyboard-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "lines": [ + 232, + 246 + ], + "claim": "KJ配置生成准确注册映射" + }, + { + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "lines": [ + 8, + 37 + ], + "claim": "PurgeVRAM默认true,clear_memory无条件、模型清理有条件" + }, + { + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "lines": [ + 72, + 80 + ], + "claim": "PurgeVRAM准确注册" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../storyboard-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 2123, + 2130 + ], + "claim": "clear_memory的GC及CUDA可用条件;不执行" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 15, + 59 + ], + "claim": "运算符及ceil函数注册;只读不求值" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 98, + 126 + ], + "claim": "表达式schema、无显式默认及INT/FLOAT出口" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 245, + 251 + ], + "claim": "MathExpression准确注册" + }, + { + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown", + "lines": [ + 800, + 903 + ], + "claim": "1.3.4循环schema、初始索引及图展开条件;不模拟循环" + }, + { + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown", + "lines": [ + 1738, + 1745 + ], + "claim": "循环准确注册" + }, + { + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown", + "lines": [ + 113, + 141 + ], + "claim": "0.5.4模板schema及按kwargs字面替换,不计算本图结果" + }, + { + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown", + "lines": [ + 870, + 882 + ], + "claim": "模板__nodes__模块列表" + }, + { + "id": "mtb", + "file": "__init__.py", + "local_file": "../storyboard-reference/mtb____init__.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "git_commit_binding": "unknown", + "lines": [ + 190, + 205 + ], + "claim": "MTB显示名注册规则" + }, + { + "id": "mtb", + "file": "log.py", + "local_file": "../storyboard-reference/mtb__log.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "git_commit_binding": "unknown", + "lines": [ + 77, + 87 + ], + "claim": "MTB类名去前缀及驼峰显示名" + }, + { + "id": "mtb", + "file": "web/mtb_widgets.js", + "local_file": "../storyboard-reference/mtb__web__mtb_widgets.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "git_commit_binding": "unknown", + "lines": [ + 1168, + 1171 + ], + "claim": "同包模板动态var_输入恢复;未知宿主及UE次序" + }, + { + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "lines": [ + 603, + 626 + ], + "claim": "SaveAudio准确扩展注册" + }, + { + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "lines": [ + 27, + 76 + ], + "claim": "音频文件描述符和output目录分派" + }, + { + "id": "mtb", + "file": "web/comfy_shared.js", + "local_file": "../storyboard-reference/mtb__web__comfy_shared.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "git_commit_binding": "unknown", + "lines": [ + 377, + 445 + ], + "claim": "模板动态连接setup与恢复回调" + }, + { + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "lines": [ + 120, + 141 + ], + "claim": "core0.6.0 SaveAudio具名schema及FLAC输出调用" + }, + { + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "lines": [ + 260, + 390 + ], + "claim": "AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "../storyboard-reference/kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "../storyboard-reference/layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "math", + "file": "LICENSE", + "local_file": "../storyboard-reference/math__LICENSE", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "easy", + "file": "LICENSE", + "local_file": "../storyboard-reference/easy__LICENSE", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "mtb", + "file": "LICENSE", + "local_file": "../storyboard-reference/mtb__LICENSE", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "git_commit_binding": "unknown", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "../storyboard-reference/core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "../storyboard-reference/../reverse-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + } + ], + "comments": [ + { + "node_id": "31", + "pointer": "/nodes/11/widgets_values", + "scope": "root", + "text": "循环次数向上取整", + "meaning": "完整源注释,仅作者说明,不是执行证明。" + }, + { + "node_id": "35", + "pointer": "/nodes/17/widgets_values", + "scope": "root", + "text": "在截取的帧图像中,按照分镜头选取帧图像合成", + "meaning": "完整源注释,仅作者说明,不是执行证明。" + } + ], + "flow": [ + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "活动物理链8.IMAGE→10.images;6保存1126经边19覆盖8.skip_first_images,13保存44经边20覆盖8.image_load_cap。两个常量另经11/25接5.var_1/var_2;模板tmp/video/video_{var_1}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图像称为当前直接视频截取。", + "18保存16(JSON int,源出口FLOAT分开)经23覆盖10保存30,也经26接旁路1.force_rate。10无audio/VAE/meta_batch线;16不是同步或源时长保证。H264/yuv420p/crf19/save_output=true、save_metadata=false/trimfalse/pingpongfalse按准确VHS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果。", + "视频组mode4:1.IMAGE空出口,frame_count→19.initial_value1、VHS info槽3→27;27.frame_count→22.ceil(a / b)→19.total,27.FPS→25.force_rate;19.index→24.a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.SaveImageKJ,frame_count→20,19.flow→20→28.PurgeVRAM。只保留物理线,不模拟旁路、循环或求值。", + "21保存200→Set29[每批截取帧数],Get30同名但提供方/版本均未声明,身份/解析未证,不能假定可靠取200。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。", + "1/25保存同视频名、cap200,skip0/200;25的force/skip/cap有外线覆盖。1.AUDIO→36.SaveAudio且mode4;10.audio未接,最终视频不保证声音。SaveAudio只有tmp/audio一个保存值,audioUI源口没有第二保存值,不补空串,不称已试听或写入。", + "26保存tmp/image/ComfyUI、空output_folder、.txt;caption未接。准确KJ实现相对/空目录走output,绝对路径另处理;PNG按计数名保存,caption非None才写标注。不声称实际.txt/目录/图像存在。28准确实现无条件clear_memory且purge_cache参数未使用,purge_models控制卸载;本轮不执行显存清理。", + "四个完整历史对象仅文本保留,含旧E盘与tmp/video产物、工作流PNG及输入引用;不去重、不递归凑位置,不请求api/view或媒体。Info27={}、LoopEnd20=[]与Bypasser15缺键分别零保存;组匹配1|2仅源属性,不证明当前动态作用。", + "根22节点24边,无子图,无frontendVersion;workflowRendererVersion=LG不是版本。UE7.5.1/7.5.2及缺version分别保留,空连接声明不证明无回调。EasyUse1.3.4、MTB0.5.4、VHS1.7.7固定准确包字节,Git绑定未知;不借近版本。无模型节点,不编模型依赖;目标安装、目录权限、素材尺寸、实际帧率/编码器/效果待核。", + "两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/必要实跑0/新增转换0,保持全停用未检查。", + "原边 root [11, 6, 0, 5, 1, \"INT\"]", + "原边 root [16, 8, 0, 10, 0, \"IMAGE\"]", + "原边 root [19, 6, 0, 8, 3, \"INT\"]", + "原边 root [20, 13, 0, 8, 2, \"INT\"]", + "原边 root [21, 5, 0, 10, 6, \"STRING\"]", + "原边 root [23, 18, 0, 10, 4, \"FLOAT\"]", + "原边 root [25, 13, 0, 5, 2, \"INT\"]", + "原边 root [26, 18, 0, 1, 3, \"FLOAT\"]", + "原边 root [29, 22, 0, 19, 1, \"INT\"]", + "原边 root [31, 19, 0, 20, 0, \"FLOW_CONTROL\"]", + "原边 root [32, 19, 1, 24, 0, \"INT\"]", + "原边 root [38, 24, 0, 25, 7, \"INT\"]", + "原边 root [41, 25, 0, 26, 0, \"IMAGE\"]", + "原边 root [43, 1, 3, 27, 0, \"VHS_VIDEOINFO\"]", + "原边 root [44, 27, 1, 22, 0, \"INT\"]", + "原边 root [45, 27, 0, 25, 3, \"FLOAT\"]", + "原边 root [46, 20, 0, 28, 0, \"*\"]", + "原边 root [47, 21, 0, 29, 0, \"INT\"]", + "原边 root [48, 30, 0, 22, 1, \"INT\"]", + "原边 root [49, 30, 0, 24, 1, \"INT\"]", + "原边 root [50, 30, 0, 25, 6, \"INT\"]", + "原边 root [51, 1, 1, 19, 0, \"INT\"]", + "原边 root [52, 25, 1, 20, 1, \"INT\"]", + "原边 root [56, 1, 2, 36, 0, \"AUDIO\"]", + "原节点 root {\"id\": 8, \"type\": \"VHS_LoadImagesPath\", \"mode\": 0, \"inputs\": [{\"label\": \"批次管理\", \"localized_name\": \"批次管理\", \"name\": \"meta_batch\", \"shape\": 7, \"type\": \"VHS_BatchManager\", \"link\": null}, {\"label\": \"路径\", \"localized_name\": \"路径\", \"name\": \"directory\", \"type\": \"STRING\", \"widget\": {\"name\": \"directory\"}, \"link\": null}, {\"label\": \"图像读取上限\", \"localized_name\": \"图像读取上限\", \"name\": \"image_load_cap\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"image_load_cap\"}, \"link\": 20}, {\"label\": \"跳过前X张\", \"localized_name\": \"跳过前X张\", \"name\": \"skip_first_images\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"skip_first_images\"}, \"link\": 19}, {\"label\": \"间隔\", \"localized_name\": \"间隔\", \"name\": \"select_every_nth\", \"shape\": 7, \"type\": \"INT\", \"widget\": {\"name\": \"select_every_nth\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"图像\", \"name\": \"图像\", \"type\": \"IMAGE\", \"links\": [16]}, {\"localized_name\": \"遮罩\", \"name\": \"遮罩\", \"type\": \"MASK\", \"links\": null}, {\"localized_name\": \"帧数\", \"name\": \"帧数\", \"type\": \"INT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"Node name for S&R\": \"VHS_LoadImagesPath\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.1\"}}}", + "原节点 root {\"id\": 18, \"type\": \"FloatConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"FLOAT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"FLOAT\", \"links\": [23, 26]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"FloatConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 21, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [47]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 29, \"type\": \"SetNode\", \"mode\": 0, \"inputs\": [{\"name\": \"INT\", \"type\": \"INT\", \"link\": 47}], \"outputs\": [{\"name\": \"*\", \"type\": \"*\", \"links\": null}], \"properties\": {\"previousName\": \"每批截取帧数\"}}", + "原节点 root {\"id\": 28, \"type\": \"LayerUtility: PurgeVRAM\", \"mode\": 4, \"inputs\": [{\"localized_name\": \"任意内容\", \"name\": \"anything\", \"type\": \"*\", \"link\": 46}, {\"localized_name\": \"清除缓存\", \"name\": \"purge_cache\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"purge_cache\"}, \"link\": null}, {\"localized_name\": \"清除模型\", \"name\": \"purge_models\", \"type\": \"BOOLEAN\", \"widget\": {\"name\": \"purge_models\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"cnr_id\": \"comfyui_layerstyle\", \"ver\": \"3b17c7f488006c872f4cb3d6b37029a9464f1d7b\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"LayerUtility: PurgeVRAM\"}}", + "原节点 root {\"id\": 27, \"type\": \"VHS_VideoInfoLoaded\", \"mode\": 4, \"inputs\": [{\"label\": \"视频信息\", \"localized_name\": \"视频信息\", \"name\": \"video_info\", \"type\": \"VHS_VIDEOINFO\", \"link\": 43}], \"outputs\": [{\"localized_name\": \"FPS🟦\", \"name\": \"FPS🟦\", \"type\": \"FLOAT\", \"links\": [45]}, {\"localized_name\": \"帧数🟦\", \"name\": \"帧数🟦\", \"type\": \"INT\", \"links\": [44]}, {\"localized_name\": \"时长🟦\", \"name\": \"时长🟦\", \"type\": \"FLOAT\", \"links\": null}, {\"localized_name\": \"宽度🟦\", \"name\": \"宽度🟦\", \"type\": \"INT\", \"links\": null}, {\"localized_name\": \"高度🟦\", \"name\": \"高度🟦\", \"type\": \"INT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"VHS_VideoInfoLoaded\"}}", + "原节点 root {\"id\": 30, \"type\": \"GetNode\", \"mode\": 4, \"inputs\": [], \"outputs\": [{\"name\": \"INT\", \"type\": \"INT\", \"links\": [48, 49, 50]}], \"properties\": {}}", + "原节点 root {\"id\": 25, \"type\": \"VHS_LoadVideo\", \"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\": 45}, {\"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\": 50}, {\"label\": \"跳过前X帧\", \"localized_name\": \"跳过前X帧\", \"name\": \"skip_first_frames\", \"type\": \"INT\", \"widget\": {\"name\": \"skip_first_frames\"}, \"link\": 38}, {\"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\": [41]}, {\"localized_name\": \"帧计数\", \"name\": \"帧计数\", \"type\": \"INT\", \"links\": [52]}, {\"localized_name\": \"音频\", \"name\": \"音频\", \"type\": \"AUDIO\", \"links\": []}, {\"localized_name\": \"视频信息\", \"name\": \"视频信息\", \"type\": \"VHS_VIDEOINFO\", \"links\": []}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}, \"Node name for S&R\": \"VHS_LoadVideo\"}}", + "原节点 root {\"id\": 20, \"type\": \"easy forLoopEnd\", \"mode\": 4, \"inputs\": [{\"label\": \"流\", \"localized_name\": \"流\", \"name\": \"flow\", \"shape\": 5, \"type\": \"FLOW_CONTROL\", \"link\": 31}, {\"label\": \"初始值1\", \"localized_name\": \"初始值1\", \"name\": \"initial_value1\", \"shape\": 7, \"type\": \"*\", \"link\": 52}, {\"label\": \"初始值2\", \"localized_name\": \"初始值2\", \"name\": \"initial_value2\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"值1\", \"name\": \"值1\", \"type\": \"*\", \"links\": [46]}, {\"name\": \"value2\", \"type\": \"*\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-easy-use\", \"ver\": \"1.3.4\", \"Node name for S&R\": \"easy forLoopEnd\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 19, \"type\": \"easy forLoopStart\", \"mode\": 4, \"inputs\": [{\"label\": \"初始值1\", \"localized_name\": \"初始值1\", \"name\": \"initial_value1\", \"shape\": 7, \"type\": \"*\", \"link\": 51}, {\"label\": \"总量\", \"localized_name\": \"总量\", \"name\": \"total\", \"type\": \"INT\", \"widget\": {\"name\": \"total\"}, \"link\": 29}, {\"label\": \"初始值2\", \"localized_name\": \"初始值2\", \"name\": \"initial_value2\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"开始\", \"name\": \"流\", \"type\": \"FLOW_CONTROL\", \"links\": [31]}, {\"localized_name\": \"索引\", \"name\": \"索引\", \"type\": \"INT\", \"links\": [32]}, {\"localized_name\": \"值1\", \"name\": \"值1\", \"type\": \"*\", \"links\": null}, {\"name\": \"value2\", \"type\": \"*\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-easy-use\", \"ver\": \"1.3.4\", \"Node name for S&R\": \"easy forLoopStart\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 22, \"type\": \"MathExpression|pysssss\", \"mode\": 4, \"inputs\": [{\"label\": \"a\", \"localized_name\": \"a\", \"name\": \"a\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 44}, {\"label\": \"b\", \"localized_name\": \"b\", \"name\": \"b\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 48}, {\"label\": \"c\", \"localized_name\": \"c\", \"name\": \"c\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": null}, {\"label\": \"表达式\", \"localized_name\": \"表达式\", \"name\": \"expression\", \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"widget\": {\"name\": \"expression\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"整数\", \"name\": \"整数\", \"type\": \"INT\", \"links\": [29]}, {\"localized_name\": \"浮点\", \"name\": \"浮点\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-custom-scripts\", \"ver\": \"f2838ed5e59de4d73cde5c98354b87a8d3200190\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 31, \"type\": \"Note\", \"mode\": 4, \"inputs\": [], \"outputs\": [], \"properties\": {}}", + "原节点 root {\"id\": 10, \"type\": \"VHS_VideoCombine\", \"mode\": 0, \"inputs\": [{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 16}, {\"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\": 23}, {\"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\": 21}, {\"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\": \"1.7.7\", \"Node name for S&R\": \"VHS_VideoCombine\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.1\"}}}", + "原节点 root {\"id\": 15, \"type\": \"Fast Groups Bypasser (rgthree)\", \"mode\": 0, \"inputs\": [], \"outputs\": [{\"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}], \"properties\": {\"matchColors\": \"\", \"matchTitle\": \"1|2\", \"showNav\": true, \"showAllGraphs\": true, \"sort\": \"position\", \"customSortAlphabet\": \"\", \"toggleRestriction\": \"default\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 24, \"type\": \"MathExpression|pysssss\", \"mode\": 4, \"inputs\": [{\"label\": \"a\", \"localized_name\": \"a\", \"name\": \"a\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 32}, {\"label\": \"b\", \"localized_name\": \"b\", \"name\": \"b\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": 49}, {\"label\": \"c\", \"localized_name\": \"c\", \"name\": \"c\", \"shape\": 7, \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"link\": null}, {\"label\": \"表达式\", \"localized_name\": \"表达式\", \"name\": \"expression\", \"type\": \"INT,FLOAT,IMAGE,LATENT\", \"widget\": {\"name\": \"expression\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"整数\", \"name\": \"整数\", \"type\": \"INT\", \"links\": [38]}, {\"localized_name\": \"浮点\", \"name\": \"浮点\", \"type\": \"FLOAT\", \"links\": null}], \"properties\": {\"cnr_id\": \"comfyui-custom-scripts\", \"ver\": \"f2838ed5e59de4d73cde5c98354b87a8d3200190\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}}}", + "原节点 root {\"id\": 26, \"type\": \"SaveImageKJ\", \"mode\": 4, \"inputs\": [{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"images\", \"type\": \"IMAGE\", \"link\": 41}, {\"label\": \"标注\", \"localized_name\": \"标注\", \"name\": \"caption\", \"shape\": 7, \"type\": \"STRING\", \"link\": null}, {\"label\": \"文件名前缀\", \"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"label\": \"输出文件夹\", \"localized_name\": \"输出文件夹\", \"name\": \"output_folder\", \"type\": \"STRING\", \"widget\": {\"name\": \"output_folder\"}, \"link\": null}, {\"label\": \"标注文件扩展名\", \"localized_name\": \"标注文件扩展名\", \"name\": \"caption_file_extension\", \"shape\": 7, \"type\": \"STRING\", \"widget\": {\"name\": \"caption_file_extension\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"文件名\", \"name\": \"文件名\", \"type\": \"STRING\", \"links\": []}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}, \"Node name for S&R\": \"SaveImageKJ\"}}", + "原节点 root {\"id\": 5, \"type\": \"Apply Text Template (mtb)\", \"mode\": 0, \"inputs\": [{\"label\": \"模板\", \"localized_name\": \"模板\", \"name\": \"template\", \"type\": \"STRING\", \"widget\": {\"name\": \"template\"}, \"link\": null}, {\"label\": \"变量_1\", \"localized_name\": \"变量_1\", \"name\": \"var_1\", \"type\": \"*\", \"link\": 11}, {\"label\": \"var_2\", \"name\": \"var_2\", \"type\": \"*\", \"link\": 25}, {\"name\": \"var_3\", \"type\": \"*\", \"link\": null}], \"outputs\": [{\"localized_name\": \"字符串\", \"name\": \"字符串\", \"type\": \"STRING\", \"links\": [21]}], \"properties\": {\"cnr_id\": \"comfy-mtb\", \"ver\": \"0.5.4\", \"Node name for S&R\": \"Apply Text Template (mtb)\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 35, \"type\": \"Note\", \"mode\": 0, \"inputs\": [], \"outputs\": [], \"properties\": {}}", + "原节点 root {\"id\": 1, \"type\": \"VHS_LoadVideo\", \"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\": 26}, {\"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\": []}, {\"localized_name\": \"帧计数\", \"name\": \"帧计数\", \"type\": \"INT\", \"links\": [51]}, {\"localized_name\": \"音频\", \"name\": \"音频\", \"type\": \"AUDIO\", \"links\": [56]}, {\"localized_name\": \"视频信息\", \"name\": \"视频信息\", \"type\": \"VHS_VIDEOINFO\", \"links\": [43]}], \"properties\": {\"cnr_id\": \"comfyui-videohelpersuite\", \"ver\": \"1.7.7\", \"Node name for S&R\": \"VHS_LoadVideo\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 36, \"type\": \"SaveAudio\", \"mode\": 4, \"inputs\": [{\"localized_name\": \"音频\", \"name\": \"audio\", \"type\": \"AUDIO\", \"link\": 56}, {\"localized_name\": \"文件名前缀\", \"name\": \"filename_prefix\", \"type\": \"STRING\", \"widget\": {\"name\": \"filename_prefix\"}, \"link\": null}, {\"localized_name\": \"音频UI\", \"name\": \"audioUI\", \"type\": \"AUDIO_UI\", \"widget\": {\"name\": \"audioUI\"}, \"link\": null}], \"outputs\": [], \"properties\": {\"cnr_id\": \"comfy-core\", \"ver\": \"0.6.0\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}}, \"Node name for S&R\": \"SaveAudio\"}}", + "原节点 root {\"id\": 13, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [20, 25]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}", + "原节点 root {\"id\": 6, \"type\": \"INTConstant\", \"mode\": 0, \"inputs\": [{\"label\": \"值\", \"localized_name\": \"值\", \"name\": \"value\", \"type\": \"INT\", \"widget\": {\"name\": \"value\"}, \"link\": null}], \"outputs\": [{\"localized_name\": \"值\", \"name\": \"值\", \"type\": \"INT\", \"links\": [11, 19]}], \"properties\": {\"cnr_id\": \"comfyui-kjnodes\", \"ver\": \"79f529a84a8c20fe5dcdfa984c6be7a94102c014\", \"Node name for S&R\": \"INTConstant\", \"ue_properties\": {\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}}}" + ], + "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, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41 + ], + "zero_saved_nodes": [ + { + "node_id": "27", + "class_type": "VHS_VideoInfoLoaded", + "effect": "原{}零位置;不同于缺键/[]。" + }, + { + "node_id": "20", + "class_type": "easy forLoopEnd", + "effect": "原[]零位置;不补参数。" + }, + { + "node_id": "15", + "class_type": "Fast Groups Bypasser (rgthree)", + "effect": "原缺widgets_values键;提供方/版本未知,不模拟动态组开关。" + } + ], + "steps": [ + "这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。", + "操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。", + "操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。", + "操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。", + "常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。" + ] +} diff --git a/docs/hel-892/storyboard-document-evidence/delivery-summary.md b/docs/hel-892/storyboard-document-evidence/delivery-summary.md new file mode 100644 index 00000000..79662766 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/delivery-summary.md @@ -0,0 +1,15 @@ +本轮“手动按分镜视频截取”固定参考中文说明已接入实际doc_json、GET及既有抽屉。新增50非注释顶层保存位置(46标量+4完整历史对象)与2完整源注释;旧27图838位置+19注释、其余155审校对象逐对象不变。28图888+21仅参考展示,155完整定稿0、必要实跑0、新增转换0,全量目标未完成。 + +代码边界:原PR #25、原分支agent/agent/a64a969a6a44、base main;真实旧库基线2a82f1f4de16e6694ce800b0d51c98a47351bb24。生产只改fixed_document.py的一条显式受信路径/digest和source_reviews.json本图块。163原件、191冻结资源、28 profiles/9候选/六差分、转换/registry/output/client/worker/资格和Drawer整文件保持。case06仍排除,无新依赖/样式/执行入口。 + +具体内容:22节点24双向端点、10活动/12旁路,Info={}、LoopEnd=[]、Bypasser缺键分开。活动8文件夹图片→10合成;6保存1126覆盖8.skip,13保存44覆盖8.cap,18的JSON int16/源FLOAT分开并覆盖10保存30;5模板与var_1/var_2物理线覆盖合成前缀。视频组mode4及循环/算式仅源结构,不模拟旁路、表达式或循环,不假定Set/Get可靠取200。10无audio/VAE/meta_batch线;SaveAudio只有tmp/audio一个保存值,不补audioUI空串。SaveImageKJ空目录及caption条件、PurgeVRAM无条件clear_memory且purge_cache参数未用,均按准确实现保留限制。4完整历史对象不证明当前产物,save_metadata=false不等于无首帧PNG。两Note全文可读;无宿主前端声明、LG非版本,UE版本及身份/动态恢复未知分别保留;无模型节点,不编模型依赖。 + +来源:17准确Git文本、23准确发布包文本,共40个唯一文本;core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67b007c9f391、四Git树固定。42条精确行号/commit/SHA引用;9个VHS1.7.7成员复用reverse-reference,另从同一准确包固定LoadImagesPath。EasyUse1.3.4、MTB0.5.4、VHS1.7.7包SHA与成员固定,Git绑定未知;不套近版本。local_file以docs/hel-892/storyboard-document-evidence为基准。bounded-investigation.json列精确集合与未知,不无限搜索历史。 + +本轮验证:296后台通过(283本图专项+13库回归),覆盖逐位置值/类型/文本摘要拒绝、身份/模式/端点、零/缺键、历史缓存/音频缺位及源绑定;真实旧代码隔离库仅1updated/154skipped/1excluded,其余154整行不变;重导155skip、回退精确恢复、再导1update;升级前后用户编辑各1conflict,29列整行保护。新155/排除1、16/139和1217/3660/294保持,停用未检查、定稿实跑时间戳空。wheel/sdist三资源字节、双次确定性、14本轮自写Python Ruff check/format与JS语法通过。开发失败与修正日志保留;历史5个后台业务失败及旧I001仅沿用证据,未机械复跑无关全套,不称全仓绿。 + +浏览:1440/390共1422检查通过(758新图+648旧27摘要+2汇总+14共享)。核50位置/2注释、默认折叠、活动/旁路/前缀帧率外线、历史和未知、焦点/迟到/重试/旧空错绑定回退/无横溢;5截图实际目验。浏览固定97+轮询10;服务固定92含就绪1+轮询10,禁止请求0,字体CSS本地拦截。finally停两服务并核8247/5173释放。最终浏览脚本随后仅更正首行计数注释,JS语法复核,逻辑和截图未改。 + +复现入口:validation-commands.txt含本图专项及完整本地检查。主要报告:source-check.json、review-delta.json、import-protection.json、package-check.json、frozen-resource-check.json、repeatability.json、browser-results.json及server-request-accounting.json;actual-手动按分镜视频截取.json为实际库导出,完整中文另附。tested-files.json给出验证输入与代码摘要;final-head.json由最终Git/PR核准后随附件交付,含完整逐文件差分与摘要。 + +剩余真实环境待办:宿主前端/UE恢复、Set/Get与Bypasser身份、目标节点安装/目录素材/真实FPS/编码器/实际效果未核。145UI仍9参考候选/136关闭。155全量完成并审核后才发布。不索取机器窗口、不连接目标、不停TTS、不启ComfyUI、不提交prompt、不执行插件/表达式/循环/清显存/模型/媒体/ffmpeg、不下载权重素材字体、不付费、不写在线库、不合并部署。交总管功能+界面一次审核,不派额度耗尽总工。 diff --git a/docs/hel-892/storyboard-document-evidence/development-notes.txt b/docs/hel-892/storyboard-document-evidence/development-notes.txt new file mode 100644 index 00000000..7b168e6d --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/development-notes.txt @@ -0,0 +1,10 @@ +本轮开发非零结果全部保留,不覆盖历史日志。 +1. rebuild-initial/second/fourth/fifth:初始引用结束行超出准确文本实际行数;按原件实际行界修正,third/final通过。 +2. backend-initial:新增整库保护测试直接读取旧块comments键,旧块部分无该键;改为通过build_document核对真实source_notes合计19,不改变旧块。295通过/1失败→最终296通过。 +3. lint-initial/second:新草稿长行、缩进、导入及未用变量;仅格式化本轮自写代码并修复,third/final14文件全过;上游原件不格式化。 +4. fetch_additional初选按文件名提取,含4项非必要辅助/嵌套许可;最终收窄显式路径,来源清单移除并清理自有未引用文件,原包成员目录保留收件轨迹。 +5. fetch_helpers追加改为幂等去重;可选重取需按validation-commands所述三步,不只运行第一步。 +6. 初轮浏览成功,但来源引用细化后重跑最终浏览;最终证据只引用browser-final及复制的结果/服务日志/截图。 +7. old baseline全后台5既有业务失败及旧I001沿用既有证据,本轮未重跑无关全套,不称全仓全绿。 +8. 全差分whitespace检查非零仅准确上游原字节和保留的初始失败日志;自写代码/最终产物范围检查通过,完整诊断摘要与逐文件计数见staged-diff-check.txt。不格式化上游。 +9. 首次提交因新checkout无Git user身份失败,未产生提交;沿用原PR最近提交的leefer/hello@shengshentech.com,仅git -c单次参数,不修改全局或共享配置。 diff --git a/docs/hel-892/storyboard-document-evidence/fetch-additional.txt b/docs/hel-892/storyboard-document-evidence/fetch-additional.txt new file mode 100644 index 00000000..0a9ed825 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch-additional.txt @@ -0,0 +1 @@ +PASS 36 exact texts; package Git bindings unknown diff --git a/docs/hel-892/storyboard-document-evidence/fetch-helpers-second.txt b/docs/hel-892/storyboard-document-evidence/fetch-helpers-second.txt new file mode 100644 index 00000000..f3354d6e --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch-helpers-second.txt @@ -0,0 +1 @@ +PASS 44 texts diff --git a/docs/hel-892/storyboard-document-evidence/fetch-helpers.txt b/docs/hel-892/storyboard-document-evidence/fetch-helpers.txt new file mode 100644 index 00000000..2a585590 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch-helpers.txt @@ -0,0 +1 @@ +PASS 41 texts diff --git a/docs/hel-892/storyboard-document-evidence/fetch-initial.txt b/docs/hel-892/storyboard-document-evidence/fetch-initial.txt new file mode 100644 index 00000000..783815b8 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch-initial.txt @@ -0,0 +1,5 @@ +comfyui-easy-use {"changelog":"","createdAt":"2025-10-15T13:34:43.350536Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip","id":"d6cbf9fb-bb40-4d51-9559-1bac0c6c965e","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.3.4"} + +comfy-mtb {"changelog":"","createdAt":"2025-05-22T23:35:20.117593Z","dependencies":["qrcode","cachetools","onnxruntime-gpu","requirements-parserx","rembg","imageio_ffmpeg","rich","rich_argparse","matplotlib","pillow"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip","id":"cee541d7-b679-4903-bd82-a15d3fc81d3d","node_id":"comfy-mtb","status":"NodeVersionStatusActive","supported_accelerators":null,"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":null,"tags":[],"version":"0.5.4"} + +core {"ref":"refs/tags/v0.6.0","node_id":"REF_kwDOIygeJrByZWZzL3RhZ3MvdjAuNi4w","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.6.0","object":{"sha":"e4c61d75555036fa28b6bb34e5fd67b007c9f391","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/e4c61d75555036fa28b6bb34e5fd67b007c9f391"}} diff --git a/docs/hel-892/storyboard-document-evidence/fetch_additional.py b/docs/hel-892/storyboard-document-evidence/fetch_additional.py new file mode 100644 index 00000000..e5d38d31 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch_additional.py @@ -0,0 +1,115 @@ +"""Bounded release members and exact core tag, no plugin execution.""" + +import hashlib +import io +import json +import zipfile + +from fetch_sources import REF, fetch + + +def main(): + d = json.loads((REF / "sources.json").read_bytes()) + entries = d["sources"] + for id, key, words in [ + ("comfyui-easy-use", "easy", ["logic.py", "__init__.py", "LICENSE", "pyproject.toml"]), + ("comfy-mtb", "mtb", ["text.py", "__init__.py", "LICENSE", "pyproject.toml"]), + ("comfyui-videohelpersuite", "vhs", ["load_images_nodes.py"]), + ]: + url = ( + json.loads((REF / (id + "-version.json")).read_bytes())["downloadUrl"] + if key != "vhs" + else "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip" + ) + raw = fetch(url) + digest = hashlib.sha256(raw).hexdigest() + if key == "vhs": + assert digest == "f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1" + with zipfile.ZipFile(io.BytesIO(raw)) as z: + selected = [ + n for n in z.namelist() if any(n == w or n.endswith("/" + w) for w in words) + ] + # Root registration and only the chosen implementation. + selected = [ + n + for n in selected + if n in words or n in ["py/nodes/logic.py", "videohelpersuite/load_images_nodes.py"] + ] + (REF / (key + "-package-index.json")).write_text( + json.dumps( + dict(url=url, sha256=digest, members=z.namelist(), selected=selected), + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + for n in selected: + data = z.read(n) + name = key + "__" + n.replace("/", "__") + (REF / name).write_bytes(data) + entries.append( + dict( + id=key, + file=n, + local_file=name, + url=url, + commit="发布包SHA256:" + digest, + sha256=hashlib.sha256(data).hexdigest(), + git_commit_binding="unknown", + ) + ) + commit = json.loads((REF / "core-tag.json").read_bytes())["object"]["sha"] + repo = "Comfy-Org/ComfyUI" + raw = fetch(f"https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1") + (REF / "core-tree.json").write_bytes(raw) + blobs = {x["path"]: x["sha"] for x in json.loads(raw)["tree"] if x["type"] == "blob"} + for file in ["comfy_extras/nodes_audio.py", "nodes.py", "folder_paths.py", "LICENSE"]: + url = f"https://raw.githubusercontent.com/{repo}/{commit}/{file}" + raw = fetch(url) + name = "core__" + file.replace("/", "__") + (REF / name).write_bytes(raw) + blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() + assert blob == blobs[file] + entries.append( + dict( + id="core", + file=file, + local_file=name, + url=url, + commit=commit, + sha256=hashlib.sha256(raw).hexdigest(), + git_blob_sha1=blob, + ) + ) + # necessary LayerStyle helper; never import. + e = next(e for e in entries if e["id"] == "layer") + file = "py/imagefunc.py" + url = e["url"].rsplit("/", 1)[0] + "/py/imagefunc.py" if e["file"] == "__init__.py" else "" + url = ( + "https://raw.githubusercontent.com/chflame163/" + "ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b3" + "7029a9464f1d7b/" + ) + file + raw = fetch(url) + name = "layer__py__imagefunc.py" + (REF / name).write_bytes(raw) + tree = json.loads((REF / "layer-tree.json").read_bytes()) + blob = next(x["sha"] for x in tree["tree"] if x["path"] == file) + assert hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() == blob + entries.append( + dict( + id="layer", + file=file, + local_file=name, + url=url, + commit=e["commit"], + sha256=hashlib.sha256(raw).hexdigest(), + git_blob_sha1=blob, + ) + ) + (REF / "sources.json").write_text(json.dumps(d, ensure_ascii=False, indent=2) + "\n") + print("PASS", len(entries), "exact texts; package Git bindings unknown") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/fetch_helpers.py b/docs/hel-892/storyboard-document-evidence/fetch_helpers.py new file mode 100644 index 00000000..10c9106f --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch_helpers.py @@ -0,0 +1,87 @@ +"""Fetch a bounded template module and audio helper descriptor chain as text.""" + +import hashlib +import io +import json +import zipfile + +from fetch_sources import REF, fetch + + +def main(): + d = json.loads((REF / "sources.json").read_bytes()) + es = [ + e + for e in d["sources"] + if not ( + e["id"] == "mtb" + and e["file"] + in [ + "nodes/graph_utils.py", + "nodes/constant.py", + "log.py", + "web/mtb_ui.js", + "web/mtb_widgets.js", + "web/comfy_shared.js", + "wiki/nodes/nodes-apply-text-template.md", + ] + ) + and not ( + e["id"] == "core" + and e["file"] in ["comfy_api/latest/_ui.py", "comfy_api/latest/_io.py"] + ) + ] + d["sources"] = es + meta = json.loads((REF / "mtb-package-index.json").read_bytes()) + raw = fetch(meta["url"]) + assert hashlib.sha256(raw).hexdigest() == meta["sha256"] + with zipfile.ZipFile(io.BytesIO(raw)) as z: + for n in [ + "nodes/graph_utils.py", + "log.py", + "web/mtb_ui.js", + "web/mtb_widgets.js", + "web/comfy_shared.js", + "wiki/nodes/nodes-apply-text-template.md", + ]: + data = z.read(n) + name = "mtb__" + n.replace("/", "__") + (REF / name).write_bytes(data) + es.append( + dict( + id="mtb", + file=n, + local_file=name, + url=meta["url"], + commit="发布包SHA256:" + meta["sha256"], + sha256=hashlib.sha256(data).hexdigest(), + git_commit_binding="unknown", + ) + ) + commit = json.loads((REF / "core-tag.json").read_bytes())["object"]["sha"] + tree = json.loads((REF / "core-tree.json").read_bytes()) + blobs = {x["path"]: x["sha"] for x in tree["tree"] if x["type"] == "blob"} + for file in ["comfy_api/latest/_ui.py", "comfy_api/latest/_io.py"]: + url = f"https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}" + raw = fetch(url) + blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() + assert blob == blobs[file] + name = "core__" + file.replace("/", "__") + (REF / name).write_bytes(raw) + es.append( + dict( + id="core", + file=file, + local_file=name, + url=url, + commit=commit, + sha256=hashlib.sha256(raw).hexdigest(), + git_blob_sha1=blob, + ) + ) + (REF / "sources.json").write_text(json.dumps(d, ensure_ascii=False, indent=2) + "\n") + print("PASS", len(es), "texts") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/fetch_sources.py b/docs/hel-892/storyboard-document-evidence/fetch_sources.py new file mode 100644 index 00000000..892a5d60 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fetch_sources.py @@ -0,0 +1,86 @@ +"""Fetch only exact textual sources, never import upstream implementations.""" + +import hashlib +import json +import urllib.request +from pathlib import Path + +OUT = Path(__file__).resolve().parent +REF = OUT.parent / "storyboard-reference" +PINS = { + "kj": ( + "kijai/ComfyUI-KJNodes", + "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + ["__init__.py", "nodes/nodes.py", "nodes/image_nodes.py", "LICENSE"], + ), + "layer": ( + "chflame163/ComfyUI_LayerStyle", + "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + ["__init__.py", "py/purge_vram.py", "LICENSE"], + ), + "math": ( + "pythongosssss/ComfyUI-Custom-Scripts", + "f2838ed5e59de4d73cde5c98354b87a8d3200190", + ["__init__.py", "py/math_expression.py", "LICENSE"], + ), +} + + +def fetch(url): + with urllib.request.urlopen( + urllib.request.Request(url, headers={"User-Agent": "HEL-892-text-review"}), timeout=35 + ) as r: + return r.read() + + +def main(): + entries = [] + for key, (repo, commit, files) in PINS.items(): + tree = fetch(f"https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1") + (REF / (key + "-tree.json")).write_bytes(tree) + t = json.loads(tree) + assert t["sha"] == commit and not t["truncated"] + blobs = {x["path"]: x["sha"] for x in t["tree"] if x["type"] == "blob"} + for file in files: + if file not in blobs: + print("MISSING", key, file, [p for p in blobs if "purge" in p.lower()]) + continue + 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] + name = key + "__" + file.replace("/", "__") + (REF / name).write_bytes(raw) + entries.append( + dict( + id=key, + file=file, + local_file=name, + url=url, + commit=commit, + sha256=hashlib.sha256(raw).hexdigest(), + git_blob_sha1=blob, + ) + ) + # Reuse exact VHS1.7.7 members only, including package hash and unknown Git binding. + for e in json.loads((OUT.parent / "reverse-reference/sources.json").read_bytes())["sources"]: + if e["id"] == "vhs": + entries.append({**e, "local_file": "../reverse-reference/" + e["local_file"]}) + (REF / "sources.json").write_text( + json.dumps({"sources": entries}, ensure_ascii=False, indent=2) + "\n" + ) + for id, version in [("comfyui-easy-use", "1.3.4"), ("comfy-mtb", "0.5.4")]: + url = f"https://api.comfy.org/nodes/{id}/versions/{version}" + try: + raw = fetch(url) + (REF / (id + "-version.json")).write_bytes(raw) + print(id, raw.decode()[:1200]) + except Exception as exc: + print(id, type(exc).__name__, str(exc)) + raw = fetch("https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0") + (REF / "core-tag.json").write_bytes(raw) + print("core", raw.decode()) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/fixed-source-index.json b/docs/hel-892/storyboard-document-evidence/fixed-source-index.json new file mode 100644 index 00000000..a488693d --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/fixed-source-index.json @@ -0,0 +1,632 @@ +[ + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown", + "lines": [ + 22, + 168 + ], + "claim": "1.7.7加载格式、采样和尺寸条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown", + "lines": [ + 293, + 477 + ], + "claim": "加载实现和schema;不执行媒体" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown", + "lines": [ + 15, + 126 + ], + "claim": "目录读取、图像尺寸匹配和批次;不访问E盘" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "../storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown", + "lines": [ + 165, + 206 + ], + "claim": "路径加载具名schema,cap/skip/nth" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_commit_binding": "unknown", + "lines": [ + 137, + 155 + ], + "claim": "按文件名排序、过滤、跳过和间隔" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 234, + 420 + ], + "claim": "1.7.7合成schema、目录和首帧PNG条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 420, + 625 + ], + "claim": "视频编码、音频条件和中间文件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../storyboard-reference/../reverse-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown", + "lines": [ + 1, + 15 + ], + "claim": "H264/CRF/像素及音频模板" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 48, + 165 + ], + "claim": "格式模板、元数据参数条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 940, + 970 + ], + "claim": "VideoInfoLoaded五出口与loaded_键" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../storyboard-reference/../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown", + "lines": [ + 1020, + 1050 + ], + "claim": "VHS准确四类节点注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown", + "lines": [ + 41, + 168 + ], + "claim": "同包保存恢复;不证明未知宿主及UE次序" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../storyboard-reference/../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown", + "lines": [ + 915, + 970 + ], + "claim": "历史预览缓存回调,非实际媒体" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "kj", + "file": "nodes/nodes.py", + "local_file": "../storyboard-reference/kj__nodes__nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "git_blob_sha1": "372c8518a77b20fa808de3b70736ceb8dde0092e", + "lines": [ + 31, + 59 + ], + "claim": "INTConstant与FloatConstant默认范围及舍入" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "../storyboard-reference/kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "git_blob_sha1": "aac70d4770f5428a7e3f6bd9a10d50a821987199", + "lines": [ + 3235, + 3321 + ], + "claim": "SaveImageKJ目录、PNG及caption条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "kj", + "file": "__init__.py", + "local_file": "../storyboard-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "lines": [ + 1, + 120 + ], + "claim": "KJ节点映射配置" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "kj", + "file": "__init__.py", + "local_file": "../storyboard-reference/kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819", + "lines": [ + 232, + 246 + ], + "claim": "KJ配置生成准确注册映射" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "lines": [ + 8, + 37 + ], + "claim": "PurgeVRAM默认true,clear_memory无条件、模型清理有条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "../storyboard-reference/layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365", + "lines": [ + 72, + 80 + ], + "claim": "PurgeVRAM准确注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "../storyboard-reference/layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce", + "lines": [ + 2123, + 2130 + ], + "claim": "clear_memory的GC及CUDA可用条件;不执行" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 15, + 59 + ], + "claim": "运算符及ceil函数注册;只读不求值" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 98, + 126 + ], + "claim": "表达式schema、无显式默认及INT/FLOAT出口" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "math", + "file": "py/math_expression.py", + "local_file": "../storyboard-reference/math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2", + "lines": [ + 245, + 251 + ], + "claim": "MathExpression准确注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown", + "lines": [ + 800, + 903 + ], + "claim": "1.3.4循环schema、初始索引及图展开条件;不模拟循环" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "../storyboard-reference/easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown", + "lines": [ + 1738, + 1745 + ], + "claim": "循环准确注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown", + "lines": [ + 113, + 141 + ], + "claim": "0.5.4模板schema及按kwargs字面替换,不计算本图结果" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "../storyboard-reference/mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown", + "lines": [ + 870, + 882 + ], + "claim": "模板__nodes__模块列表" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "__init__.py", + "local_file": "../storyboard-reference/mtb____init__.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "git_commit_binding": "unknown", + "lines": [ + 190, + 205 + ], + "claim": "MTB显示名注册规则" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "log.py", + "local_file": "../storyboard-reference/mtb__log.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "git_commit_binding": "unknown", + "lines": [ + 77, + 87 + ], + "claim": "MTB类名去前缀及驼峰显示名" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "web/mtb_widgets.js", + "local_file": "../storyboard-reference/mtb__web__mtb_widgets.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "git_commit_binding": "unknown", + "lines": [ + 1168, + 1171 + ], + "claim": "同包模板动态var_输入恢复;未知宿主及UE次序" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "lines": [ + 603, + 626 + ], + "claim": "SaveAudio准确扩展注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "lines": [ + 27, + 76 + ], + "claim": "音频文件描述符和output目录分派" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "web/comfy_shared.js", + "local_file": "../storyboard-reference/mtb__web__comfy_shared.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "git_commit_binding": "unknown", + "lines": [ + 377, + 445 + ], + "claim": "模板动态连接setup与恢复回调" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "../storyboard-reference/core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d", + "lines": [ + 120, + 141 + ], + "claim": "core0.6.0 SaveAudio具名schema及FLAC输出调用" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "../storyboard-reference/core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa", + "lines": [ + 260, + 390 + ], + "claim": "AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "kj", + "file": "LICENSE", + "local_file": "../storyboard-reference/kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "layer", + "file": "LICENSE", + "local_file": "../storyboard-reference/layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "math", + "file": "LICENSE", + "local_file": "../storyboard-reference/math__LICENSE", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "easy", + "file": "LICENSE", + "local_file": "../storyboard-reference/easy__LICENSE", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "mtb", + "file": "LICENSE", + "local_file": "../storyboard-reference/mtb__LICENSE", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "git_commit_binding": "unknown", + "lines": [ + 1, + 21 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "core", + "file": "LICENSE", + "local_file": "../storyboard-reference/core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "id": "vhs", + "file": "LICENSE", + "local_file": "../storyboard-reference/../reverse-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 674 + ], + "claim": "准确提交或发布包许可原文" + } +] diff --git a/docs/hel-892/storyboard-document-evidence/format-final.txt b/docs/hel-892/storyboard-document-evidence/format-final.txt new file mode 100644 index 00000000..017fe8c0 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/format-final.txt @@ -0,0 +1 @@ +1 file reformatted, 13 files left unchanged diff --git a/docs/hel-892/storyboard-document-evidence/frozen-resource-check.json b/docs/hel-892/storyboard-document-evidence/frozen-resource-check.json new file mode 100644 index 00000000..153af8e7 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/frozen-resource-check.json @@ -0,0 +1,771 @@ +{ + "base": "2a82f1f4de16e6694ce800b0d51c98a47351bb24", + "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/storyboard-document-evidence/import-protection.json b/docs/hel-892/storyboard-document-evidence/import-protection.json new file mode 100644 index 00000000..b50eb357 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/import-protection.json @@ -0,0 +1,69 @@ +{ + "base": "2a82f1f4de16e6694ce800b0d51c98a47351bb24", + "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": 50, + "new_notes": 2, + "old_saved": 838, + "old_notes": 19, + "overviews": 28, + "all_disabled": true, + "doc_done": 0, + "executed": 0 +} diff --git a/docs/hel-892/storyboard-document-evidence/lint-final.txt b/docs/hel-892/storyboard-document-evidence/lint-final.txt new file mode 100644 index 00000000..562ec2f1 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/lint-final.txt @@ -0,0 +1,3 @@ +All checks passed! +14 files already formatted +PASS 14 authored Python files and one JS syntax check diff --git a/docs/hel-892/storyboard-document-evidence/lint-fix.txt b/docs/hel-892/storyboard-document-evidence/lint-fix.txt new file mode 100644 index 00000000..cd22d7a1 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/lint-fix.txt @@ -0,0 +1,1656 @@ +E501 Line too long (115 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:29:101 + | +28 | def doc(source=None,review=None): +29 | return build_document(PATH,SOURCE if source is None else source,None,None,[],REVIEW if review is None else review) + | ^^^^^^^^^^^^^^^ +30 | +31 | def refuse(s,r): + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:40:93 + | +38 | v=pointer(SOURCE,f['pointer']) +39 | assert canonical(v)==canonical(f['value']) and type(v).__name__==f['json_type'] +40 | for k in ['label','type','schema_default','unit','limits','effect','execution_note','role']:assert f[k] + | ^ +41 | for k in f['evidence']: +42 | e=BLOCK['sources'][k];raw=(OUT/e['local_file']).read_bytes() + | + +E501 Line too long (104 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:40:101 + | +38 | v=pointer(SOURCE,f['pointer']) +39 | assert canonical(v)==canonical(f['value']) and type(v).__name__==f['json_type'] +40 | for k in ['label','type','schema_default','unit','limits','effect','execution_note','role']:assert f[k] + | ^^^^ +41 | for k in f['evidence']: +42 | e=BLOCK['sources'][k];raw=(OUT/e['local_file']).read_bytes() + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:42:24 + | +40 | for k in ['label','type','schema_default','unit','limits','effect','execution_note','role']:assert f[k] +41 | for k in f['evidence']: +42 | e=BLOCK['sources'][k];raw=(OUT/e['local_file']).read_bytes() + | ^ +43 | assert hashlib.sha256(raw).hexdigest()==e['sha256'] +44 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:51:31 + | +49 | def test_each_saved_position_refuses_forged_source_or_definition(f,variant): +50 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +51 | b=r['fixed_version_document'];bf=next(x for x in b['fields'] if x['pointer']==f['pointer']) + | ^ +52 | if variant=='text':bf['limits']='forged' +53 | else: + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:52:20 + | +50 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +51 | b=r['fixed_version_document'];bf=next(x for x in b['fields'] if x['pointer']==f['pointer']) +52 | if variant=='text':bf['limits']='forged' + | ^ +53 | else: +54 | parent,_,key=f['pointer'].rpartition('/');target=pointer(s,parent) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:54:44 + | +52 | if variant=='text':bf['limits']='forged' +53 | else: +54 | parent,_,key=f['pointer'].rpartition('/');target=pointer(s,parent) + | ^ +55 | target[int(key) if isinstance(target,list) else key]='forged' if variant=='type' else None +56 | bf['value']=pointer(s,f['pointer']);bf['json_type']=type(bf['value']).__name__ + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:56:38 + | +54 | parent,_,key=f['pointer'].rpartition('/');target=pointer(s,parent) +55 | target[int(key) if isinstance(target,list) else key]='forged' if variant=='type' else None +56 | bf['value']=pointer(s,f['pointer']);bf['json_type']=type(bf['value']).__name__ + | ^ +57 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:62:49 + | +60 | @pytest.mark.parametrize('variant',['mode','identity']) +61 | def test_each_node_mode_and_identity_bound(i,variant): +62 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);n=s['nodes'][i] + | ^ +63 | if variant=='mode':n['mode']=0 if n['mode']==4 else 4 +64 | else:n['properties']['ver']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:63:20 + | +61 | def test_each_node_mode_and_identity_bound(i,variant): +62 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);n=s['nodes'][i] +63 | if variant=='mode':n['mode']=0 if n['mode']==4 else 4 + | ^ +64 | else:n['properties']['ver']='forged' +65 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:64:6 + | +62 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);n=s['nodes'][i] +63 | if variant=='mode':n['mode']=0 if n['mode']==4 else 4 +64 | else:n['properties']['ver']='forged' + | ^ +65 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:69:49 + | +67 | @pytest.mark.parametrize('i',range(24)) +68 | def test_each_physical_endpoint_bound_both_directions(i): +69 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);s['links'][i][3]=99999;refuse(s,r) + | ^ +70 | +71 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:69:72 + | +67 | @pytest.mark.parametrize('i',range(24)) +68 | def test_each_physical_endpoint_bound_both_directions(i): +69 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);s['links'][i][3]=99999;refuse(s,r) + | ^ +70 | +71 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:73:49 + | +71 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… +72 | def test_special_shapes_history_comments_and_restoration_bound(variant): +73 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^ +74 | if variant=='empty_info':ns[27]['widgets_values']=[] +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:73:84 + | +71 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… +72 | def test_special_shapes_history_comments_and_restoration_bound(variant): +73 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^ +74 | if variant=='empty_info':ns[27]['widgets_values']=[] +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | + +E501 Line too long (113 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:73:101 + | +71 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… +72 | def test_special_shapes_history_comments_and_restoration_bound(variant): +73 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^^^^^^^^^^^^^ +74 | if variant=='empty_info':ns[27]['widgets_values']=[] +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:74:26 + | +72 | def test_special_shapes_history_comments_and_restoration_bound(variant): +73 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] +74 | if variant=='empty_info':ns[27]['widgets_values']=[] + | ^ +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} +76 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:75:28 + | +73 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] +74 | if variant=='empty_info':ns[27]['widgets_values']=[] +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | ^ +76 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] +77 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:76:34 + | +74 | if variant=='empty_info':ns[27]['widgets_values']=[] +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} +76 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] + | ^ +77 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') +78 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:77:37 + | +75 | elif variant=='empty_loop':ns[20]['widgets_values']={} +76 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] +77 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') + | ^ +78 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 +79 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:78:25 + | +76 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] +77 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') +78 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 + | ^ +79 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' +80 | elif variant=='summary':b['user_overview']='already executed' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:79:25 + | +77 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') +78 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 +79 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' + | ^ +80 | elif variant=='summary':b['user_overview']='already executed' +81 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:80:25 + | +78 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 +79 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' +80 | elif variant=='summary':b['user_overview']='already executed' + | ^ +81 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 +82 | elif variant=='source_sha':b['source_sha1']='0'*40 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:81:26 + | +79 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' +80 | elif variant=='summary':b['user_overview']='already executed' +81 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 + | ^ +82 | elif variant=='source_sha':b['source_sha1']='0'*40 +83 | elif variant=='path':b['source_path']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:82:28 + | +80 | elif variant=='summary':b['user_overview']='already executed' +81 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 +82 | elif variant=='source_sha':b['source_sha1']='0'*40 + | ^ +83 | elif variant=='path':b['source_path']='forged' +84 | elif variant=='layout':ns[8]['pos'][0]+=1 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:83:22 + | +81 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 +82 | elif variant=='source_sha':b['source_sha1']='0'*40 +83 | elif variant=='path':b['source_path']='forged' + | ^ +84 | elif variant=='layout':ns[8]['pos'][0]+=1 +85 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:84:24 + | +82 | elif variant=='source_sha':b['source_sha1']='0'*40 +83 | elif variant=='path':b['source_path']='forged' +84 | elif variant=='layout':ns[8]['pos'][0]+=1 + | ^ +85 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' +86 | else:s['extra']['frontendVersion']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:85:20 + | +83 | elif variant=='path':b['source_path']='forged' +84 | elif variant=='layout':ns[8]['pos'][0]+=1 +85 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' + | ^ +86 | else:s['extra']['frontendVersion']='forged' +87 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:86:6 + | +84 | elif variant=='layout':ns[8]['pos'][0]+=1 +85 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' +86 | else:s['extra']['frontendVersion']='forged' + | ^ +87 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:90:41 + | +89 | def test_precise_inventory_connections_and_limits(): +90 | ns={n['id']:n for n in SOURCE['nodes']};b=BLOCK + | ^ +91 | assert len(ns)==22 and len(SOURCE['links'])==24 +92 | assert {i for i,n in ns.items() if n['mode']==0}=={8,18,21,29,10,15,5,35,13,6} + | + +E501 Line too long (104 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:94:101 + | +92 | assert {i for i,n in ns.items() if n['mode']==0}=={8,18,21,29,10,15,5,35,13,6} +93 | assert {i for i,n in ns.items() if n['mode']==4}=={28,27,30,25,20,19,22,31,24,26,1,36} +94 | assert ns[27]['widgets_values']=={} and ns[20]['widgets_values']==[] and 'widgets_values' not in ns[15] + | ^^^^ +95 | assert ns[36]['widgets_values']==['tmp/audio'] +96 | assert ns[18]['widgets_values']==[16] and type(ns[18]['widgets_values'][0]) is int + | + +E501 Line too long (229 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:105:101 + | +103 | … +104 | … +105 | …),(10,'frame_rate',23),(1,'force_rate',26),(25,'force_rate',45),(25,'skip_first_frames',38),(25,'frame_load_cap',50),(19,'total',29)]: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +106 | … +107 | …tch']) + | + +E501 Line too long (101 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:107:101 + | +105 | for nid,name,e in [(8,'skip_first_images',19),(8,'image_load_cap',20),(10,'filename_prefix',21),(10,'frame_rate',23),(1,'force_rate'… +106 | assert next(x for x in ns[nid]['inputs'] if x['name']==name)['link']==e +107 | assert all(x['link'] is None for x in ns[10]['inputs'] if x['name'] in ['audio','vae','meta_batch']) + | ^ +108 | assert ns[1]['outputs'][0]['links'] in ([],None) +109 | assert next(x for x in ns[26]['inputs'] if x['name']=='caption')['link'] is None + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:110:9 + | +108 | assert ns[1]['outputs'][0]['links'] in ([],None) +109 | assert next(x for x in ns[26]['inputs'] if x['name']=='caption')['link'] is None +110 | d=doc();assert d['fixed_version']['matched'] + | ^ +111 | assert d['dependencies']['check_state']=='unchecked' and d['status']==dict(imported=True,doc_done=False,exec_verified=False) +112 | for c in b['comments']: + | + +E501 Line too long (125 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:111:101 + | +109 | assert next(x for x in ns[26]['inputs'] if x['name']=='caption')['link'] is None +110 | d=doc();assert d['fixed_version']['matched'] +111 | assert d['dependencies']['check_state']=='unchecked' and d['status']==dict(imported=True,doc_done=False,exec_verified=False) + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +112 | for c in b['comments']: +113 | assert pointer(SOURCE,c['pointer'])==[c['text']] + | + +E501 Line too long (102 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:114:101 + | +112 | for c in b['comments']: +113 | assert pointer(SOURCE,c['pointer'])==[c['text']] +114 | assert next(n for n in d['source_notes'] if str(n['node_id'])==c['node_id'])['content']==[c['text']] + | ^^ +115 | assert not b['counts']['final_prompt_constructed'] +116 | for word in ['原前端','purge_cache','caption','audioUI','每批截取帧数','不模拟','历史','30','16','1|2']: + | + +E501 Line too long (105 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:116:87 + | +114 | assert next(n for n in d['source_notes'] if str(n['node_id'])==c['node_id'])['content']==[c['text']] +115 | assert not b['counts']['final_prompt_constructed'] +116 | for word in ['原前端','purge_cache','caption','audioUI','每批截取帧数','不模拟','历史','30','16','1|2']: + | ^^^^^ +117 | assert word in ' '.join(b['flow']) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:121:86 + | +119 | def test_old_review_objects_and_27_documents_unchanged(): +120 | resource='calliope-backend/src/calliope/comfyui/source_reviews.json' +121 | old=json.loads(subprocess.check_output(['git','show','2a82f1f:'+resource],cwd=REPO));now=json.loads((REPO/resource).read_bytes()) + | ^ +122 | now[PATH].pop('fixed_version_document');assert now==old and len(DEFINITIONS)==28 +123 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:122:41 + | +120 | resource='calliope-backend/src/calliope/comfyui/source_reviews.json' +121 | old=json.loads(subprocess.check_output(['git','show','2a82f1f:'+resource],cwd=REPO));now=json.loads((REPO/resource).read_bytes()) +122 | now[PATH].pop('fixed_version_document');assert now==old and len(DEFINITIONS)==28 + | ^ +123 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] +124 | assert len(blocks)==27 and sum(len(b['fields']) for b in blocks)==838 and sum(len(build_document(p,json.loads((REPO/p).read_bytes())… + | + +E501 Line too long (227 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:124:101 + | +122 | … +123 | … +124 | …nt(p,json.loads((REPO/p).read_bytes()),None,None,[],r)['source_notes']) for p,r in old.items() if 'fixed_version_document' in r)==19 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +125 | … + | + +E501 Line too long (117 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:14:72 + | +12 | OUT = Path(__file__).resolve().parent +13 | REF = OUT.parent / 'storyboard-reference' +14 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json'] + | ^^^^^^^^^^^^^^^^^ +15 | def canonical(value): +16 | return json.dumps(value,ensure_ascii=False,sort_keys=True,separators=(',',':')).encode() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:19:19 + | +18 | def build(index=0): +19 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw) + | ^ +20 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +21 | def ref(key,file,first,last,claim): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:19:49 + | +18 | def build(index=0): +19 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw) + | ^ +20 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +21 | def ref(key,file,first,last,claim): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:20:66 + | +18 | def build(index=0): +19 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw) +20 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] + | ^ +21 | def ref(key,file,first,last,claim): +22 | e=next(e for e in entries if e['id']==key and e['file']==file); data=(REF/e['local_file']).read_bytes() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:22:65 + | +20 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +21 | def ref(key,file,first,last,claim): +22 | e=next(e for e in entries if e['id']==key and e['file']==file); data=(REF/e['local_file']).read_bytes() + | ^ +23 | assert hashlib.sha256(data).hexdigest()==e['sha256'] +24 | assert 1<=first<=last<=len(data.decode().splitlines()) + | + +E501 Line too long (105 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:22:101 + | +20 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +21 | def ref(key,file,first,last,claim): +22 | e=next(e for e in entries if e['id']==key and e['file']==file); data=(REF/e['local_file']).read_bytes() + | ^^^^^ +23 | assert hashlib.sha256(data).hexdigest()==e['sha256'] +24 | assert 1<=first<=last<=len(data.decode().splitlines()) + | + +F841 Local variable `info` is assigned to but never used + --> docs/hel-892/storyboard-document-evidence/build_definition.py:36:2 + | +34 | fmt=ref('vhs','video_formats/h264-mp4.json',1,15,'H264/CRF/像素及音频模板') +35 | meta=ref('vhs','videohelpersuite/nodes.py',48,165,'格式模板、元数据参数条件') +36 | info=ref('vhs','videohelpersuite/nodes.py',940,970,'VideoInfoLoaded五出口与loaded_键') + | ^^^^ +37 | reg=ref('vhs','videohelpersuite/nodes.py',1020,1050,'VHS准确四类节点注册') +38 | js=ref('vhs','web/js/VHS.core.js',41,168,'同包保存恢复;不证明未知宿主及UE次序') + | +help: Remove assignment to unused variable `info` + +E501 Line too long (102 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:60:94 + | +58 | ref('core','comfy_api/latest/_ui.py',27,76,'音频文件描述符和output目录分派') +59 | ref('mtb','web/comfy_shared.js',377,445,'模板动态连接setup与恢复回调') +60 | audio=ref('core','comfy_extras/nodes_audio.py',120,141,'core0.6.0 SaveAudio具名schema及FLAC输出调用') + | ^^ +61 | audiohelper=ref('core','comfy_api/latest/_ui.py',260,390,'AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频') +62 | for key in ['kj','layer','math','easy','mtb','core','vhs']: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:77:3 + | +75 | ('select_every_nth','间隔取帧','INT','1','采样帧间隔','1~9007199254740991','均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同… +76 | ('format','加载格式约束','COMBO','AnimateDiff','格式选择','AnimateDiff内置,外部格式动态扩展未知','保存AnimateDiff是加载约束,不是… +77 | ]: spec('VHS_LoadVideo',name,label,typ,default,unit,limits,effect,[load,run,reg]) + | ^ +78 | for name,label,default,limits,effect in [ +79 | ('directory','图片文件夹引用','schema无显式默认','字符串,目标目录权限/存在性未知','保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.im… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:83:3 + | +81 | ('skip_first_images','文件夹跳过图片数','0','0~9007199254740991','保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。'), +82 | ('select_every_nth','文件夹间隔取图','1','1~9007199254740991','保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。'), +83 | ]: spec('VHS_LoadImagesPath',name,label,'STRING' if name=='directory' else 'INT',default,'目录文本' if name=='directory' else '图片/… + | ^ +84 | for name,label,typ,default,unit,limits,effect in [ +85 | ('frame_rate','合成播放帧率','floatOrInt','8','帧/秒','min1,step1,无显式max','10保存30被18保存16经边23覆盖。18源JSON为int,声明输… + | + +E501 Line too long (184 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:83:97 + | +81 | …保存1126经边19覆盖;不是视频原始帧索引或精确时间。'), +82 | … 排序/图片尺寸和可用素材未核验,不访问E盘。'), +83 | …'INT',default,'目录文本' if name=='directory' else '图片/间隔',limits,effect,[image,image_schema,utils,reg]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +84 | … +85 | …ax','10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。'), + | + +E501 Line too long (180 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:92:74 + | +90 | … '在。' +91 | … )), +92 | …,'动态ffmpeg格式,准确包含video/h264-mp4','保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +93 | …yuv420p10le','保存yuv420p,不保证实际尺寸、兼容性或编码成功。'), +94 | … 承诺固定码率/大小或效果。'), + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:99:3 + | + 97 | ('pingpong','往返追加','BOOLEAN','false','开关','true/false','保存false不追加逆序中间帧。'), + 98 | ('save_output','选择输出目录','BOOLEAN','true','开关','true选output,false选temp','保存true选择output,前缀被外线覆盖。可能涉及视… + 99 | ]: spec('VHS_VideoCombine',name,label,typ,default,unit,limits,effect,[combine,video,fmt,meta,reg]) + | ^ +100 | for cls in ['VHS_LoadImagesPath','VHS_LoadVideo','VHS_VideoCombine']: +101 | spec(cls,'videopreview','完整历史预览对象','前端嵌套对象','无服务端默认','历史状态','完整对象,不递归增加位置',( + | + +E501 Line too long (127 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:106:86 + | +104 | ),[hist,js],'frontend_history') +105 | for cls,typ,default in [('FloatConstant','FLOAT','0.0'),('INTConstant','INT','0')]: +106 | spec(cls,'value','具名常量保存值',typ,default,'无固有物理单位','-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001',( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +107 | '18保存16的JSON为in… +108 | '。21保存200→Set29… + | + +E501 Line too long (142 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:121:96 + | +119 | …','1','循环上限','1~100000,step1',( +120 | … '保存1被22外线覆盖;19.initial_value1由1.frame_count输入,' +121 | … '非total或已计算index。准确包从索引0或hidden initial_value0' + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +122 | … '开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。' +123 | … ),[loop],'linked_saved_value') + | + +E501 Line too long (184 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:125:101 + | +123 | … ),[loop],'linked_saved_value') +124 | …a无显式默认','未知,随输入而定','多行,dynamicPrompts=false;未声明字符串长度范围',( +125 | … '22保存ceil(a / b),a来自27.loaded_frame_count、b来自G' + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +126 | … 'et30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固' +127 | … '定算式和注册语义,不求值、不推次数/分段长度。' + | + +E501 Line too long (155 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:131:69 + | +129 | … +130 | …omfyUI,图像来自25;mode4,不保证产物存在。'), +131 | … 现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +132 | …tion未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。'), +133 | …'schema无显式长度限制;目录与权限未知',effect,[save]) + | + +E501 Line too long (161 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:132:85 + | +130 | …yUI,图像来自25;mode4,不保证产物存在。'), +131 | … 只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。'), +132 | …n未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +133 | …hema无显式长度限制;目录与权限未知',effect,[save]) +134 | …RING','空字符串','模板文本','多行,无显式长度范围',( + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:133:3 + | +131 | ('output_folder','图片输出目录','output','保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补… +132 | ('caption_file_extension','标注扩展名','.txt','保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。… +133 | ]:spec('SaveImageKJ',name,label,'STRING',default,'文本/路径','schema无显式长度限制;目录与权限未知',effect,[save]) + | ^ +134 | spec('Apply Text Template (mtb)','template','文件名前缀模板','STRING','空字符串','模板文本','多行,无显式长度范围',( +135 | '保存tmp/video/video_{var_1}-{var_2}… + | + +E501 Line too long (117 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:134:83 + | +132 | ('caption_file_extension','标注扩展名','.txt','保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。… +133 | ]:spec('SaveImageKJ',name,label,'STRING',default,'文本/路径','schema无显式长度限制;目录与权限未知',effect,[save]) +134 | spec('Apply Text Template (mtb)','template','文件名前缀模板','STRING','空字符串','模板文本','多行,无显式长度范围',( + | ^^^^^^^^^^^^^^^^^ +135 | '保存tmp/video/video_{var_1}-{var_2}… +136 | '{键}逐字替换;源6/13连var_1/var_2,… + | + +E501 Line too long (170 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:141:101 + | +139 | …o/ComfyUI','路径/前缀','schema无显式长度范围;动态目录权限未知',( +140 | … '仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.' +141 | … 'AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试' + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +142 | … '听/写入,不代表10最终视频有音轨。' +143 | … ),[audio,audiohelper]) + | + +E501 Line too long (371 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:144:101 + | +142 | … '听/写入,不代表10最终视频有音轨。' +143 | … ),[audio,audiohelper]) +144 | …,'LayerUtility: PurgeVRAM':['purge_cache','purge_…'template'],'SaveAudio':['filename_prefix']} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +145 | … +146 | …(1,'force_rate'),(25,'force_rate'),(25,'frame_load_cap'),(25,'skip_first_frames'),(19,'total')} + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:145:11 + | +143 | ),[audio,audiohelper]) +144 | names={'FloatConstant':['value'],'INTConstant':['value'],'SetNode':['name'],'GetNode':['name'],'LayerUtility: PurgeVRAM':['purge_cac… +145 | fields=[];comments=[];zeros=[] + | ^ +146 | linked={(8,'image_load_cap'),(8,'skip_first_images'),(10,'frame_rate'),(10,'filename_prefix'),(1,'force_rate'),(25,'force_rate'),(25… +147 | for i,n in enumerate(graph['nodes']): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:145:23 + | +143 | ),[audio,audiohelper]) +144 | names={'FloatConstant':['value'],'INTConstant':['value'],'SetNode':['name'],'GetNode':['name'],'LayerUtility: PurgeVRAM':['purge_cac… +145 | fields=[];comments=[];zeros=[] + | ^ +146 | linked={(8,'image_load_cap'),(8,'skip_first_images'),(10,'frame_rate'),(10,'filename_prefix'),(1,'force_rate'),(25,'force_rate'),(25… +147 | for i,n in enumerate(graph['nodes']): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:148:35 + | +146 | linked={(8,'image_load_cap'),(8,'skip_first_images'),(10,'frame_rate'),(10,'filename_prefix'),(1,'force_rate'),(25,'force_rate'),(25… +147 | for i,n in enumerate(graph['nodes']): +148 | ptr=f'/nodes/{i}/widgets_values'; vals=n.get('widgets_values') + | ^ +149 | if n['type']=='Note': +150 | comments.append(dict(node_id=str(n['id']),pointer=ptr,scope='root',text=vals[0],meaning='完整源注释,仅作者说明,不是执行证明。'))… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:150:115 + | +148 | … +149 | … +150 | …',text=vals[0],meaning='完整源注释,仅作者说明,不是执行证明。'));continue + | ^ +151 | … +152 | …t='原缺widgets_values键;提供方/版本未知,不模拟动态组开关。' if 'widgets_values' not in n else '原{}零位置;不同于缺键/[]。' if isi… + | + +E501 Line too long (259 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:152:94 + | +150 | … 源注释,仅作者说明,不是执行证明。'));continue +151 | … +152 | … 方/版本未知,不模拟动态组开关。' if 'widgets_values' not in n else '原{}零位置;不同于缺键/[]。' if isinstance(vals,dict) else '原[]零位置;不补参数。'));continue + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +153 | … +154 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:152:209 + | +150 | … +151 | … +152 | … /[]。' if isinstance(vals,dict) else '原[]零位置;不补参数。'));continue + | ^ +153 | … +154 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:154:60 + | +152 | zeros.append(dict(node_id=str(n['id']),class_type=n['type'],effect='原缺widgets_values键;提供方/版本未知,不模拟动态组开关。' if … +153 | for k,v in vals.items() if isinstance(vals,dict) else enumerate(vals): +154 | name=k if isinstance(vals,dict) else names[n['type']][k]; s=specs[n['type'],name].copy() + | ^ +155 | if (n['id'],name) in linked:s['role']='linked_saved_value' +156 | fields.append({**s,'node_id':str(n['id']),'scope':'root','class_type':n['type'],'pointer':ptr+'/'+str(k),'value':v,'json_type':typ… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:155:31 + | +153 | for k,v in vals.items() if isinstance(vals,dict) else enumerate(vals): +154 | name=k if isinstance(vals,dict) else names[n['type']][k]; s=specs[n['type'],name].copy() +155 | if (n['id'],name) in linked:s['role']='linked_saved_value' + | ^ +156 | fields.append({**s,'node_id':str(n['id']),'scope':'root','class_type':n['type'],'pointer':ptr+'/'+str(k),'value':v,'json_type':typ… +157 | assert len(fields)==50 and len(comments)==2 and sum(isinstance(f['value'],dict) for f in fields)==4 + | + +E501 Line too long (307 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:156:101 + | +154 | … +155 | … +156 | …r+'/'+str(k),'value':v,'json_type':type(v).__name__,'execution_note':f'原mode={n["mode"]};'+('旁路,不模拟执行。' if n['mode']==4 else '活动保存态,不等于实际已执行。')+'源声明不是目标安装证明;未构造prompt。'}) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +157 | …s)==4 +158 | … + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:222:25 + | +220 | '全停用未检查。' +221 | )] +222 | for e in graph['links']:flow.append('原边 root '+json.dumps(e,ensure_ascii=False)) + | ^ +223 | for n in graph['nodes']:flow.append('原节点 root '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties'] … +224 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha25… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:223:25 + | +221 | )] +222 | for e in graph['links']:flow.append('原边 root '+json.dumps(e,ensure_ascii=False)) +223 | for n in graph['nodes']:flow.append('原节点 root '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties'] … + | ^ +224 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha25… +225 | … + | + +E501 Line too long (164 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:223:98 + | +221 | … +222 | …ure_ascii=False)) +223 | …n[k] for k in ['id','type','mode','inputs','outputs','properties'] if k in n},ensure_ascii=False)) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +224 | …est(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='准确版本… +225 | … … + | + +E501 Line too long (312 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:224:101 + | +222 | … +223 | …ode','inputs','outputs','properties'] if k in n},ensure_ascii=False)) +224 | …ha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。',user_overview=overview,versions=[( + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +225 | … 'KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;… +226 | … 'yerStyle3b17c7f488006c872f4cb3d6b37029a9464f… + | + +E501 Line too long (320 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:227:101 + | +225 | … 'KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;La' +226 | … 'yerStyle3b17c7f488006c872f4cb3d6b37029a9464f1' +227 | … 'd7b;CustomScripts f2838ed5e59de4d73cde5c98354' +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +228 | … 'b87a8d3200190。' +229 | … ),'VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。',( + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:11:49 + | +10 | def main(): +11 | d=json.loads((REF/'sources.json').read_bytes()); entries=d['sources'] + | ^ +12 | for id,key,words in [('comfyui-easy-use','easy',['logic.py','__init__.py','LICENSE','pyproject.toml']),('comfy-mtb','mtb',['text.py',… +13 | url=(json.loads((REF/(id+'-version.json')).read_bytes())['downloadUrl'] if key!='vhs' else 'https://cdn.comfy.org/kosinkadink/comfyu… + | + +E501 Line too long (238 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:12:101 + | +10 | … +11 | … +12 | ….toml']),('comfy-mtb','mtb',['text.py','__init__.py','LICENSE','pyproject.toml']),('comfyui-videohelpersuite','vhs',['load_images_nodes.py'])]: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | …ttps://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip') +14 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:14:17 + | +12 | for id,key,words in [('comfyui-easy-use','easy',['logic.py','__init__.py','LICENSE','pyproject.toml']),('comfy-mtb','mtb',['text.py',… +13 | url=(json.loads((REF/(id+'-version.json')).read_bytes())['downloadUrl'] if key!='vhs' else 'https://cdn.comfy.org/kosinkadink/comfyu… +14 | raw=fetch(url); digest=hashlib.sha256(raw).hexdigest() + | ^ +15 | if key=='vhs': assert digest=='f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1' +16 | with zipfile.ZipFile(io.BytesIO(raw)) as z: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:15:16 + | +13 | url=(json.loads((REF/(id+'-version.json')).read_bytes())['downloadUrl'] if key!='vhs' else 'https://cdn.comfy.org/kosinkadink/comfyu… +14 | raw=fetch(url); digest=hashlib.sha256(raw).hexdigest() +15 | if key=='vhs': assert digest=='f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1' + | ^ +16 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +17 | selected=[n for n in z.namelist() if any(n==w or n.endswith('/'+w) for w in words)] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:22:19 + | +20 | (REF/(key+'-package-index.json')).write_text(json.dumps(dict(url=url,sha256=digest,members=z.namelist(),selected=selected),ensure_a… +21 | for n in selected: +22 | data=z.read(n); name=key+'__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +23 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +24 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:22:54 + | +20 | (REF/(key+'-package-index.json')).write_text(json.dumps(dict(url=url,sha256=digest,members=z.namelist(),selected=selected),ensure_a… +21 | for n in selected: +22 | data=z.read(n); name=key+'__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +23 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +24 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:24:72 + | +22 | data=z.read(n); name=key+'__'+n.replace('/','__'); (REF/name).write_bytes(data) +23 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +24 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' + | ^ +25 | raw=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/'core-tree.json').write_bytes(raw) +26 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:25:82 + | +23 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +24 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' +25 | raw=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/'core-tree.json').write_bytes(raw) + | ^ +26 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +27 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: + | + +E501 Line too long (122 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:25:101 + | +23 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +24 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' +25 | raw=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/'core-tree.json').write_bytes(raw) + | ^^^^^^^^^^^^^^^^^^^^^^ +26 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +27 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:28:66 + | +26 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +27 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +28 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… + | ^ +29 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] +30 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:28:82 + | +26 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +27 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +28 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… + | ^ +29 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] +30 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… + | + +E501 Line too long (148 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:28:101 + | +26 | …] if x['type']=='blob'} +27 | …lder_paths.py','LICENSE']: +28 | …{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +29 | …raw).hexdigest(); assert blob==blobs[file] +30 | …url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:28:120 + | +26 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +27 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +28 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… + | ^ +29 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] +30 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:29:75 + | +27 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +28 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… +29 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] + | ^ +30 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… +31 | # necessary LayerStyle helper; never import. + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:32:48 + | +30 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… +31 | # necessary LayerStyle helper; never import. +32 | e=next(e for e in entries if e['id']=='layer'); file='py/imagefunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']… + | ^ +33 | url=( +34 | 'https://raw.githubusercontent.com/chflame163/' + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:32:72 + | +30 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… +31 | # necessary LayerStyle helper; never import. +32 | e=next(e for e in entries if e['id']=='layer'); file='py/imagefunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']… + | ^ +33 | url=( +34 | 'https://raw.githubusercontent.com/chflame163/' + | + +E501 Line too long (157 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:32:101 + | +30 | …url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +31 | … +32 | …efunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']=='__init__.py' else '' + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +33 | … +34 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:38:16 + | +36 | '7029a9464f1d7b/' +37 | )+file +38 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) + | ^ +39 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… +40 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:38:48 + | +36 | '7029a9464f1d7b/' +37 | )+file +38 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) + | ^ +39 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… +40 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:39:55 + | +37 | )+file +38 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) +39 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… + | ^ +40 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… +41 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E501 Line too long (198 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:39:101 + | +37 | … +38 | … +39 | … tree['tree'] if x['path']==file); assert hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest()==blob + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +40 | …],sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +41 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:39:117 + | +37 | )+file +38 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) +39 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… + | ^ +40 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… +41 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:43:24 + | +41 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +42 | print('PASS',len(entries),'exact texts; package Git bindings unknown') +43 | if __name__=='__main__':main() + | ^ + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:11:49 + | +10 | def main(): +11 | d=json.loads((REF/'sources.json').read_bytes()); es=[e for e in d['sources'] if not (e['id']=='mtb' and e['file'] in ['nodes/graph_ut… + | ^ +12 | raw=fetch(meta['url']); assert hashlib.sha256(raw).hexdigest()==meta['sha256'] +13 | with zipfile.ZipFile(io.BytesIO(raw)) as z: + | + +E501 Line too long (382 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:11:101 + | +10 | … +11 | …'mtb' and e['file'] in ['nodes/graph_utils.py','no…((REF/'mtb-package-index.json').read_bytes()) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12 | … +13 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:11:304 + | +10 | … +11 | …'file'] in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py'])]; d['sources']=es; meta=json.loads((REF/'mtb-package-index.json').r… + | ^ +12 | … +13 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:11:321 + | +10 | … +11 | …y_api/latest/_ui.py','comfy_api/latest/_io.py'])]; d['sources']=es; meta=json.loads((REF/'mtb-package-index.json').read_bytes()) + | ^ +12 | … +13 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:12:24 + | +10 | def main(): +11 | d=json.loads((REF/'sources.json').read_bytes()); es=[e for e in d['sources'] if not (e['id']=='mtb' and e['file'] in ['nodes/graph_ut… +12 | raw=fetch(meta['url']); assert hashlib.sha256(raw).hexdigest()==meta['sha256'] + | ^ +13 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +14 | for n in ['nodes/graph_utils.py','log.py','web/mtb_ui.js','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-te… + | + +E501 Line too long (146 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:14:101 + | +12 | …gest()==meta['sha256'] +13 | … +14 | …s','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-template.md']: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +15 | …/name).write_bytes(data) +16 | …a['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).hexdigest(),git_commit_binding='unknown')) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:15:18 + | +13 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +14 | for n in ['nodes/graph_utils.py','log.py','web/mtb_ui.js','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-te… +15 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +16 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +17 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:15:52 + | +13 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +14 | for n in ['nodes/graph_utils.py','log.py','web/mtb_ui.js','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-te… +15 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +16 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +17 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:72 + | +15 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) +16 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +17 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | ^ +18 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +19 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | + +E501 Line too long (196 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:101 + | +15 | … +16 | …A256:'+meta['sha256'],sha256=hashlib.sha256(data).hexdigest(),git_commit_binding='unknown')) +17 | ….loads((REF/'core-tree.json').read_bytes()); blobs={x['path']:x['sha'] for x in tree['tree'] if x['type']=='blob'} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +18 | … +19 | …fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest();assert blob==blobs[file] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:126 + | +15 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) +16 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +17 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | ^ +18 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +19 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:19:77 + | +17 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… +18 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +19 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | ^ +20 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… +21 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:19:93 + | +17 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… +18 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +19 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | ^ +20 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… +21 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E501 Line too long (191 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:19:101 + | +17 | …son.loads((REF/'core-tree.json').read_bytes()); blobs={x['path']:x['sha'] for x in tree['tree'] if x['type']=='blob'} +18 | … +19 | …aw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest();assert blob==blobs[file] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20 | …ct(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +21 | …) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:19:167 + | +17 | …tree.json').read_bytes()); blobs={x['path']:x['sha'] for x in tree['tree'] if x['type']=='blob'} +18 | … +19 | …ashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest();assert blob==blobs[file] + | ^ +20 | …e,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +21 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:20:39 + | +18 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +19 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… +20 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… + | ^ +21 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +22 | print('PASS',len(es),'texts') + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:20:67 + | +18 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +19 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… +20 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… + | ^ +21 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +22 | print('PASS',len(es),'texts') + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:23:24 + | +21 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +22 | print('PASS',len(es),'texts') +23 | if __name__=='__main__':main() + | ^ + +E501 Line too long (142 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:10:101 + | + 8 | … + 9 | … +10 | …984c6be7a94102c014',['__init__.py','nodes/nodes.py','nodes/image_nodes.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +11 | …06c872f4cb3d6b37029a9464f1d7b',['__init__.py','py/purge_vram.py','LICENSE']), +12 | …ed5e59de4d73cde5c98354b87a8d3200190',['__init__.py','py/math_expression.py','LICENSE']), + | + +E501 Line too long (132 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:11:101 + | + 9 | … +10 | …dcdfa984c6be7a94102c014',['__init__.py','nodes/nodes.py','nodes/image_nodes.py','LICENSE']), +11 | …f488006c872f4cb3d6b37029a9464f1d7b',['__init__.py','py/purge_vram.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12 | …f2838ed5e59de4d73cde5c98354b87a8d3200190',['__init__.py','py/math_expression.py','LICENSE']), +13 | … + | + +E501 Line too long (143 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:12:101 + | +10 | …984c6be7a94102c014',['__init__.py','nodes/nodes.py','nodes/image_nodes.py','LICENSE']), +11 | …06c872f4cb3d6b37029a9464f1d7b',['__init__.py','py/purge_vram.py','LICENSE']), +12 | …ed5e59de4d73cde5c98354b87a8d3200190',['__init__.py','py/math_expression.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | … +14 | … + | + +E501 Line too long (135 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:15:101 + | +13 | } +14 | def fetch(url): +15 | with urllib.request.urlopen(urllib.request.Request(url,headers={'User-Agent':'HEL-892-text-review'}),timeout=35) as r: return r.read() + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16 | def main(): +17 | entries=[] + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:15:119 + | +13 | } +14 | def fetch(url): +15 | with urllib.request.urlopen(urllib.request.Request(url,headers={'User-Agent':'HEL-892-text-review'}),timeout=35) as r: return r.read() + | ^ +16 | def main(): +17 | entries=[] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:19:84 + | +17 | entries=[] +18 | for key,(repo,commit,files) in PINS.items(): +19 | tree=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/(key+'-tree.json')).write_bytes(tree) + | ^ +20 | t=json.loads(tree); assert t['sha']==commit and not t['truncated'] +21 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} + | + +E501 Line too long (127 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:19:101 + | +17 | entries=[] +18 | for key,(repo,commit,files) in PINS.items(): +19 | tree=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/(key+'-tree.json')).write_bytes(tree) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +20 | t=json.loads(tree); assert t['sha']==commit and not t['truncated'] +21 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:20:21 + | +18 | for key,(repo,commit,files) in PINS.items(): +19 | tree=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/(key+'-tree.json')).write_bytes(tree) +20 | t=json.loads(tree); assert t['sha']==commit and not t['truncated'] + | ^ +21 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +22 | for file in files: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:23:24 + | +21 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +22 | for file in files: +23 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue + | ^ +24 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +25 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:23:95 + | +21 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +22 | for file in files: +23 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue + | ^ +24 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +25 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | + +E501 Line too long (104 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:23:101 + | +21 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +22 | for file in files: +23 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue + | ^^^^ +24 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +25 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:67 + | +22 | for file in files: +23 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue +24 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… + | ^ +25 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) +26 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blo… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:83 + | +22 | for file in files: +23 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue +24 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… + | ^ +25 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) +26 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blo… + | + +E501 Line too long (182 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:101 + | +22 | … +23 | …rge' in p.lower()]); continue +24 | …ch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +25 | … +26 | …it,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:157 + | +22 | … +23 | …()]); continue +24 | …ashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] + | ^ +25 | … +26 | …ib.sha256(raw).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:25:40 + | +23 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue +24 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +25 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | ^ +26 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blo… +27 | # Reuse exact VHS1.7.7 members only, including package hash and unknown Git binding. + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:29:20 + | +27 | # Reuse exact VHS1.7.7 members only, including package hash and unknown Git binding. +28 | for e in json.loads((OUT.parent/'reverse-reference/sources.json').read_bytes())['sources']: +29 | if e['id']=='vhs': entries.append({**e,'local_file':'../reverse-reference/'+e['local_file']}) + | ^ +30 | (REF/'sources.json').write_text(json.dumps({'sources':entries},ensure_ascii=False,indent=2)+'\n') +31 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:33:6 + | +31 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: +32 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +33 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) + | ^ +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:33:22 + | +31 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: +32 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +33 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) + | ^ +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:33:67 + | +31 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: +32 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +33 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) + | ^ +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:34:26 + | +32 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +33 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) + | ^ +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… +36 | if __name__=='__main__':main() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:35:81 + | +33 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | ^ +36 | if __name__=='__main__':main() + | + +E501 Line too long (148 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:35:101 + | +33 | …tes(raw); print(id,raw.decode()[:1200]) +34 | …(exc)) +35 | …/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core',raw.decode()) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +36 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:35:121 + | +33 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | ^ +36 | if __name__=='__main__':main() + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:36:24 + | +34 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +35 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… +36 | if __name__=='__main__':main() + | ^ + +E501 Line too long (101 > 100) + --> docs/hel-892/storyboard-document-evidence/render_report.py:105:85 + | +103 | ] +104 | index.append(dict(document=b["source_path"], **e)) +105 | (OUT.parent / "手动分镜视频截取固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n") + | ^ +106 | (OUT / "fixed-source-index.json").write_text( +107 | json.dumps(index, ensure_ascii=False, indent=2) + "\n" + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:12:61 + | +11 | def main(): +12 | es=json.loads((REF/'sources.json').read_bytes())['sources'];counts={'git_texts':0,'package_texts':0} + | ^ +13 | for e in es: +14 | raw=(REF/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:14:41 + | +12 | es=json.loads((REF/'sources.json').read_bytes())['sources'];counts={'git_texts':0,'package_texts':0} +13 | for e in es: +14 | raw=(REF/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'] + | ^ +15 | if e.get('git_commit_binding')=='unknown': +16 | assert e['commit'].startswith('发布包SHA256:') and len(e['commit'].split(':')[1])==64 + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:19:62 + | +17 | counts['package_texts']+=1 +18 | else: +19 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());assert tree['sha']==e['commit'] and not tree['truncated'] + | ^ +20 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest() +21 | assert blob==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file']);counts['git_texts']+=1 + | + +E501 Line too long (119 > 100) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:19:101 + | +17 | counts['package_texts']+=1 +18 | else: +19 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());assert tree['sha']==e['commit'] and not tree['truncated'] + | ^^^^^^^^^^^^^^^^^^^ +20 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest() +21 | assert blob==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file']);counts['git_texts']+=1 + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:21:97 + | +19 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());assert tree['sha']==e['commit'] and not tree['truncated'] +20 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest() +21 | assert blob==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file']);counts['git_texts']+=1 + | ^ +22 | tag=json.loads((REF/'core-tag.json').read_bytes());assert tag['object']['type']=='commit' and tag['object']['sha']==next(e['commit'] … +23 | b=build() + | + +E501 Line too long (119 > 100) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:21:101 + | +19 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());assert tree['sha']==e['commit'] and not tree['truncated'] +20 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest() +21 | assert blob==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file']);counts['git_texts']+=1 + | ^^^^^^^^^^^^^^^^^^^ +22 | tag=json.loads((REF/'core-tag.json').read_bytes());assert tag['object']['type']=='commit' and tag['object']['sha']==next(e['commit'] … +23 | b=build() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:22:52 + | +20 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest() +21 | assert blob==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file']);counts['git_texts']+=1 +22 | tag=json.loads((REF/'core-tag.json').read_bytes());assert tag['object']['type']=='commit' and tag['object']['sha']==next(e['commit'] … + | ^ +23 | b=build() +24 | for e in b['sources']: + | + +E501 Line too long (165 > 100) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:22:101 + | +20 | …xdigest() +21 | …ree'] if x['path']==e['file']);counts['git_texts']+=1 +22 | …ject']['type']=='commit' and tag['object']['sha']==next(e['commit'] for e in es if e['id']=='core') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +23 | … +24 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:25:41 + | +23 | b=build() +24 | for e in b['sources']: +25 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'] + | ^ +26 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +27 | (OUT/'source-check.json').write_text(json.dumps(dict(**counts,citations=len(b['sources']),tag=tag['ref'],commit=tag['object']['sha'],… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:29:24 + | +27 | (OUT/'source-check.json').write_text(json.dumps(dict(**counts,citations=len(b['sources']),tag=tag['ref'],commit=tag['object']['sha'],… +28 | print('PASS exact identities, bytes and lines',counts) +29 | if __name__=='__main__':main() + | ^ + +Found 160 errors (7 fixed, 153 remaining). +No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). diff --git a/docs/hel-892/storyboard-document-evidence/lint-initial.txt b/docs/hel-892/storyboard-document-evidence/lint-initial.txt new file mode 100644 index 00000000..2bcecbfd --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/lint-initial.txt @@ -0,0 +1,1820 @@ +E501 Line too long (115 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:26:101 + | +25 | def doc(source=None,review=None): +26 | return build_document(PATH,SOURCE if source is None else source,None,None,[],REVIEW if review is None else review) + | ^^^^^^^^^^^^^^^ +27 | +28 | def refuse(s,r): + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:37:93 + | +35 | v=pointer(SOURCE,f['pointer']) +36 | assert canonical(v)==canonical(f['value']) and type(v).__name__==f['json_type'] +37 | for k in ['label','type','schema_default','unit','limits','effect','execution_note','role']:assert f[k] + | ^ +38 | for k in f['evidence']: +39 | e=BLOCK['sources'][k];raw=(OUT/e['local_file']).read_bytes() + | + +E501 Line too long (104 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:37:101 + | +35 | v=pointer(SOURCE,f['pointer']) +36 | assert canonical(v)==canonical(f['value']) and type(v).__name__==f['json_type'] +37 | for k in ['label','type','schema_default','unit','limits','effect','execution_note','role']:assert f[k] + | ^^^^ +38 | for k in f['evidence']: +39 | e=BLOCK['sources'][k];raw=(OUT/e['local_file']).read_bytes() + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:39:24 + | +37 | for k in ['label','type','schema_default','unit','limits','effect','execution_note','role']:assert f[k] +38 | for k in f['evidence']: +39 | e=BLOCK['sources'][k];raw=(OUT/e['local_file']).read_bytes() + | ^ +40 | assert hashlib.sha256(raw).hexdigest()==e['sha256'] +41 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:48:31 + | +46 | def test_each_saved_position_refuses_forged_source_or_definition(f,variant): +47 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +48 | b=r['fixed_version_document'];bf=next(x for x in b['fields'] if x['pointer']==f['pointer']) + | ^ +49 | if variant=='text':bf['limits']='forged' +50 | else: + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:49:20 + | +47 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW) +48 | b=r['fixed_version_document'];bf=next(x for x in b['fields'] if x['pointer']==f['pointer']) +49 | if variant=='text':bf['limits']='forged' + | ^ +50 | else: +51 | parent,_,key=f['pointer'].rpartition('/');target=pointer(s,parent) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:51:44 + | +49 | if variant=='text':bf['limits']='forged' +50 | else: +51 | parent,_,key=f['pointer'].rpartition('/');target=pointer(s,parent) + | ^ +52 | target[int(key) if isinstance(target,list) else key]='forged' if variant=='type' else None +53 | bf['value']=pointer(s,f['pointer']);bf['json_type']=type(bf['value']).__name__ + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:53:38 + | +51 | parent,_,key=f['pointer'].rpartition('/');target=pointer(s,parent) +52 | target[int(key) if isinstance(target,list) else key]='forged' if variant=='type' else None +53 | bf['value']=pointer(s,f['pointer']);bf['json_type']=type(bf['value']).__name__ + | ^ +54 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:59:49 + | +57 | @pytest.mark.parametrize('variant',['mode','identity']) +58 | def test_each_node_mode_and_identity_bound(i,variant): +59 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);n=s['nodes'][i] + | ^ +60 | if variant=='mode':n['mode']=0 if n['mode']==4 else 4 +61 | else:n['properties']['ver']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:60:20 + | +58 | def test_each_node_mode_and_identity_bound(i,variant): +59 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);n=s['nodes'][i] +60 | if variant=='mode':n['mode']=0 if n['mode']==4 else 4 + | ^ +61 | else:n['properties']['ver']='forged' +62 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:61:6 + | +59 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);n=s['nodes'][i] +60 | if variant=='mode':n['mode']=0 if n['mode']==4 else 4 +61 | else:n['properties']['ver']='forged' + | ^ +62 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:66:49 + | +64 | @pytest.mark.parametrize('i',range(24)) +65 | def test_each_physical_endpoint_bound_both_directions(i): +66 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);s['links'][i][3]=99999;refuse(s,r) + | ^ +67 | +68 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:66:72 + | +64 | @pytest.mark.parametrize('i',range(24)) +65 | def test_each_physical_endpoint_bound_both_directions(i): +66 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);s['links'][i][3]=99999;refuse(s,r) + | ^ +67 | +68 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:70:49 + | +68 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… +69 | def test_special_shapes_history_comments_and_restoration_bound(variant): +70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^ +71 | if variant=='empty_info':ns[27]['widgets_values']=[] +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:70:84 + | +68 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… +69 | def test_special_shapes_history_comments_and_restoration_bound(variant): +70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^ +71 | if variant=='empty_info':ns[27]['widgets_values']=[] +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | + +E501 Line too long (113 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:70:101 + | +68 | @pytest.mark.parametrize('variant',['empty_info','empty_loop','missing_bypasser','missing_audio_value','history','comment','summary','… +69 | def test_special_shapes_history_comments_and_restoration_bound(variant): +70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] + | ^^^^^^^^^^^^^ +71 | if variant=='empty_info':ns[27]['widgets_values']=[] +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:71:26 + | +69 | def test_special_shapes_history_comments_and_restoration_bound(variant): +70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] +71 | if variant=='empty_info':ns[27]['widgets_values']=[] + | ^ +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} +73 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:72:28 + | +70 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW);ns={n['id']:n for n in s['nodes']};b=r['fixed_version_document'] +71 | if variant=='empty_info':ns[27]['widgets_values']=[] +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} + | ^ +73 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] +74 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:73:34 + | +71 | if variant=='empty_info':ns[27]['widgets_values']=[] +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} +73 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] + | ^ +74 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') +75 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:74:37 + | +72 | elif variant=='empty_loop':ns[20]['widgets_values']={} +73 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] +74 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') + | ^ +75 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 +76 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:75:25 + | +73 | elif variant=='missing_bypasser':ns[15]['widgets_values']=[] +74 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') +75 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 + | ^ +76 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' +77 | elif variant=='summary':b['user_overview']='already executed' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:76:25 + | +74 | elif variant=='missing_audio_value':ns[36]['widgets_values'].append('') +75 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 +76 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' + | ^ +77 | elif variant=='summary':b['user_overview']='already executed' +78 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:77:25 + | +75 | elif variant=='history':ns[10]['widgets_values']['videopreview']['params']['frame_rate']=30 +76 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' +77 | elif variant=='summary':b['user_overview']='already executed' + | ^ +78 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 +79 | elif variant=='source_sha':b['source_sha1']='0'*40 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:78:26 + | +76 | elif variant=='comment':ns[35]['widgets_values'][0]='forged' +77 | elif variant=='summary':b['user_overview']='already executed' +78 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 + | ^ +79 | elif variant=='source_sha':b['source_sha1']='0'*40 +80 | elif variant=='path':b['source_path']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:79:28 + | +77 | elif variant=='summary':b['user_overview']='already executed' +78 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 +79 | elif variant=='source_sha':b['source_sha1']='0'*40 + | ^ +80 | elif variant=='path':b['source_path']='forged' +81 | elif variant=='layout':ns[8]['pos'][0]+=1 + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:80:22 + | +78 | elif variant=='citation':b['sources'][0]['sha256']='0'*64 +79 | elif variant=='source_sha':b['source_sha1']='0'*40 +80 | elif variant=='path':b['source_path']='forged' + | ^ +81 | elif variant=='layout':ns[8]['pos'][0]+=1 +82 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:81:24 + | +79 | elif variant=='source_sha':b['source_sha1']='0'*40 +80 | elif variant=='path':b['source_path']='forged' +81 | elif variant=='layout':ns[8]['pos'][0]+=1 + | ^ +82 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' +83 | else:s['extra']['frontendVersion']='forged' + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:82:20 + | +80 | elif variant=='path':b['source_path']='forged' +81 | elif variant=='layout':ns[8]['pos'][0]+=1 +82 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' + | ^ +83 | else:s['extra']['frontendVersion']='forged' +84 | refuse(s,r) + | + +E701 Multiple statements on one line (colon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:83:6 + | +81 | elif variant=='layout':ns[8]['pos'][0]+=1 +82 | elif variant=='ue':ns[8]['properties']['ue_properties']['version']='forged' +83 | else:s['extra']['frontendVersion']='forged' + | ^ +84 | refuse(s,r) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:87:41 + | +86 | def test_precise_inventory_connections_and_limits(): +87 | ns={n['id']:n for n in SOURCE['nodes']};b=BLOCK + | ^ +88 | assert len(ns)==22 and len(SOURCE['links'])==24 +89 | assert {i for i,n in ns.items() if n['mode']==0}=={8,18,21,29,10,15,5,35,13,6} + | + +E501 Line too long (104 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:91:101 + | +89 | assert {i for i,n in ns.items() if n['mode']==0}=={8,18,21,29,10,15,5,35,13,6} +90 | assert {i for i,n in ns.items() if n['mode']==4}=={28,27,30,25,20,19,22,31,24,26,1,36} +91 | assert ns[27]['widgets_values']=={} and ns[20]['widgets_values']==[] and 'widgets_values' not in ns[15] + | ^^^^ +92 | assert ns[36]['widgets_values']==['tmp/audio'] +93 | assert ns[18]['widgets_values']==[16] and type(ns[18]['widgets_values'][0]) is int + | + +E501 Line too long (229 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:102:101 + | +100 | … +101 | … +102 | …),(10,'frame_rate',23),(1,'force_rate',26),(25,'force_rate',45),(25,'skip_first_frames',38),(25,'frame_load_cap',50),(19,'total',29)]: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +103 | … +104 | …tch']) + | + +E501 Line too long (101 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:104:101 + | +102 | for nid,name,e in [(8,'skip_first_images',19),(8,'image_load_cap',20),(10,'filename_prefix',21),(10,'frame_rate',23),(1,'force_rate'… +103 | assert next(x for x in ns[nid]['inputs'] if x['name']==name)['link']==e +104 | assert all(x['link'] is None for x in ns[10]['inputs'] if x['name'] in ['audio','vae','meta_batch']) + | ^ +105 | assert ns[1]['outputs'][0]['links'] in ([],None) +106 | assert next(x for x in ns[26]['inputs'] if x['name']=='caption')['link'] is None + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:107:9 + | +105 | assert ns[1]['outputs'][0]['links'] in ([],None) +106 | assert next(x for x in ns[26]['inputs'] if x['name']=='caption')['link'] is None +107 | d=doc();assert d['fixed_version']['matched'] + | ^ +108 | assert d['dependencies']['check_state']=='unchecked' and d['status']==dict(imported=True,doc_done=False,exec_verified=False) +109 | for c in b['comments']: + | + +E501 Line too long (125 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:108:101 + | +106 | assert next(x for x in ns[26]['inputs'] if x['name']=='caption')['link'] is None +107 | d=doc();assert d['fixed_version']['matched'] +108 | assert d['dependencies']['check_state']=='unchecked' and d['status']==dict(imported=True,doc_done=False,exec_verified=False) + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +109 | for c in b['comments']: +110 | assert pointer(SOURCE,c['pointer'])==[c['text']] + | + +E501 Line too long (102 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:111:101 + | +109 | for c in b['comments']: +110 | assert pointer(SOURCE,c['pointer'])==[c['text']] +111 | assert next(n for n in d['source_notes'] if str(n['node_id'])==c['node_id'])['content']==[c['text']] + | ^^ +112 | assert not b['counts']['final_prompt_constructed'] +113 | for word in ['原前端','purge_cache','caption','audioUI','每批截取帧数','不模拟','历史','30','16','1|2']: + | + +E501 Line too long (105 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:113:87 + | +111 | assert next(n for n in d['source_notes'] if str(n['node_id'])==c['node_id'])['content']==[c['text']] +112 | assert not b['counts']['final_prompt_constructed'] +113 | for word in ['原前端','purge_cache','caption','audioUI','每批截取帧数','不模拟','历史','30','16','1|2']: + | ^^^^^ +114 | assert word in ' '.join(b['flow']) + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:118:86 + | +116 | def test_old_review_objects_and_27_documents_unchanged(): +117 | resource='calliope-backend/src/calliope/comfyui/source_reviews.json' +118 | old=json.loads(subprocess.check_output(['git','show','2a82f1f:'+resource],cwd=REPO));now=json.loads((REPO/resource).read_bytes()) + | ^ +119 | now[PATH].pop('fixed_version_document');assert now==old and len(DEFINITIONS)==28 +120 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] + | + +E702 Multiple statements on one line (semicolon) + --> calliope-backend/tests/test_storyboard_fixed_document.py:119:41 + | +117 | resource='calliope-backend/src/calliope/comfyui/source_reviews.json' +118 | old=json.loads(subprocess.check_output(['git','show','2a82f1f:'+resource],cwd=REPO));now=json.loads((REPO/resource).read_bytes()) +119 | now[PATH].pop('fixed_version_document');assert now==old and len(DEFINITIONS)==28 + | ^ +120 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r] +121 | assert len(blocks)==27 and sum(len(b['fields']) for b in blocks)==838 and sum(len(build_document(p,json.loads((REPO/p).read_bytes())… + | + +E501 Line too long (227 > 100) + --> calliope-backend/tests/test_storyboard_fixed_document.py:121:101 + | +119 | … +120 | … +121 | …nt(p,json.loads((REPO/p).read_bytes()),None,None,[],r)['source_notes']) for p,r in old.items() if 'fixed_version_document' in r)==19 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +122 | … + | + +I001 [*] Import block is un-sorted or un-formatted + --> docs/hel-892/storyboard-document-evidence/build_definition.py:2:1 + | +1 | """Source-bound storyboard editorial definition. Never execute the described graph.""" +2 | / from __future__ import annotations +3 | | import hashlib +4 | | import json +5 | | from pathlib import Path + | |________________________^ +6 | +7 | REPO = Path(__file__).resolve().parents[3] + | +help: Organize imports + | +2 | from __future__ import annotations +3 + +4 | import hashlib + | + +E501 Line too long (117 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:10:72 + | + 8 | OUT = Path(__file__).resolve().parent + 9 | REF = OUT.parent / 'storyboard-reference' +10 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json'] + | ^^^^^^^^^^^^^^^^^ +11 | def canonical(value): +12 | return json.dumps(value,ensure_ascii=False,sort_keys=True,separators=(',',':')).encode() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:15:19 + | +14 | def build(index=0): +15 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw) + | ^ +16 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +17 | def ref(key,file,first,last,claim): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:15:49 + | +14 | def build(index=0): +15 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw) + | ^ +16 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +17 | def ref(key,file,first,last,claim): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:16:66 + | +14 | def build(index=0): +15 | path=PATHS[index]; raw=(REPO/path).read_bytes(); graph=json.loads(raw) +16 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] + | ^ +17 | def ref(key,file,first,last,claim): +18 | e=next(e for e in entries if e['id']==key and e['file']==file); data=(REF/e['local_file']).read_bytes() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:18:65 + | +16 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +17 | def ref(key,file,first,last,claim): +18 | e=next(e for e in entries if e['id']==key and e['file']==file); data=(REF/e['local_file']).read_bytes() + | ^ +19 | assert hashlib.sha256(data).hexdigest()==e['sha256'] +20 | assert 1<=first<=last<=len(data.decode().splitlines()) + | + +E501 Line too long (105 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:18:101 + | +16 | entries=json.loads((REF/'sources.json').read_bytes())['sources']; refs=[] +17 | def ref(key,file,first,last,claim): +18 | e=next(e for e in entries if e['id']==key and e['file']==file); data=(REF/e['local_file']).read_bytes() + | ^^^^^ +19 | assert hashlib.sha256(data).hexdigest()==e['sha256'] +20 | assert 1<=first<=last<=len(data.decode().splitlines()) + | + +F841 Local variable `info` is assigned to but never used + --> docs/hel-892/storyboard-document-evidence/build_definition.py:32:2 + | +30 | fmt=ref('vhs','video_formats/h264-mp4.json',1,15,'H264/CRF/像素及音频模板') +31 | meta=ref('vhs','videohelpersuite/nodes.py',48,165,'格式模板、元数据参数条件') +32 | info=ref('vhs','videohelpersuite/nodes.py',940,970,'VideoInfoLoaded五出口与loaded_键') + | ^^^^ +33 | reg=ref('vhs','videohelpersuite/nodes.py',1020,1050,'VHS准确四类节点注册') +34 | js=ref('vhs','web/js/VHS.core.js',41,168,'同包保存恢复;不证明未知宿主及UE次序') + | +help: Remove assignment to unused variable `info` + +E501 Line too long (102 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:56:94 + | +54 | ref('core','comfy_api/latest/_ui.py',27,76,'音频文件描述符和output目录分派') +55 | ref('mtb','web/comfy_shared.js',377,445,'模板动态连接setup与恢复回调') +56 | audio=ref('core','comfy_extras/nodes_audio.py',120,141,'core0.6.0 SaveAudio具名schema及FLAC输出调用') + | ^^ +57 | audiohelper=ref('core','comfy_api/latest/_ui.py',260,390,'AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频') +58 | for key in ['kj','layer','math','easy','mtb','core','vhs']: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:73:3 + | +71 | ('select_every_nth','间隔取帧','INT','1','采样帧间隔','1~9007199254740991','均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同… +72 | ('format','加载格式约束','COMBO','AnimateDiff','格式选择','AnimateDiff内置,外部格式动态扩展未知','保存AnimateDiff是加载约束,不是… +73 | ]: spec('VHS_LoadVideo',name,label,typ,default,unit,limits,effect,[load,run,reg]) + | ^ +74 | for name,label,default,limits,effect in [ +75 | ('directory','图片文件夹引用','schema无显式默认','字符串,目标目录权限/存在性未知','保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.im… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:79:3 + | +77 | ('skip_first_images','文件夹跳过图片数','0','0~9007199254740991','保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。'), +78 | ('select_every_nth','文件夹间隔取图','1','1~9007199254740991','保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。'), +79 | ]: spec('VHS_LoadImagesPath',name,label,'STRING' if name=='directory' else 'INT',default,'目录文本' if name=='directory' else '图片/… + | ^ +80 | for name,label,typ,default,unit,limits,effect in [ +81 | ('frame_rate','合成播放帧率','floatOrInt','8','帧/秒','min1,step1,无显式max','10保存30被18保存16经边23覆盖。18源JSON为int,声明输… + | + +E501 Line too long (184 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:79:97 + | +77 | …保存1126经边19覆盖;不是视频原始帧索引或精确时间。'), +78 | … 排序/图片尺寸和可用素材未核验,不访问E盘。'), +79 | …'INT',default,'目录文本' if name=='directory' else '图片/间隔',limits,effect,[image,image_schema,utils,reg]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +80 | … +81 | …ax','10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。'), + | + +E501 Line too long (180 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:84:74 + | +82 | … 支不额外循环,不混同GIF循环。'), +83 | …无显式长度限制,目录权限未知','保存video/ComfyUI被5模板外线覆盖;模板保存tmp/video/video_{var_1}-{var_2},6/13接var_1/var_2。不执行… +84 | …,'动态ffmpeg格式,准确包含video/h264-mp4','保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +85 | …yuv420p10le','保存yuv420p,不保证实际尺寸、兼容性或编码成功。'), +86 | … 承诺固定码率/大小或效果。'), + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:91:3 + | +89 | ('pingpong','往返追加','BOOLEAN','false','开关','true/false','保存false不追加逆序中间帧。'), +90 | ('save_output','选择输出目录','BOOLEAN','true','开关','true选output,false选temp','保存true选择output,前缀被外线覆盖。可能涉及视频… +91 | ]: spec('VHS_VideoCombine',name,label,typ,default,unit,limits,effect,[combine,video,fmt,meta,reg]) + | ^ +92 | for cls in ['VHS_LoadImagesPath','VHS_LoadVideo','VHS_VideoCombine']: +93 | spec(cls,'videopreview','完整历史预览对象','前端嵌套对象','无服务端默认','历史状态','完整对象,不递归增加位置','四对象分别原样保存。… + | + +E501 Line too long (294 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:95:86 + | +93 | … 不递归增加位置','四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。',[hist,js],'frontend_history') +94 | … +95 | …ffffffffff;FLOAT step0.00001','18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。',[const]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +96 | … +97 | …28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。',[purge]) + | + +E501 Line too long (286 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:97:90 + | +95 | …ffffffffff;FLOAT step0.00001','18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。',[cons… +96 | … +97 | …28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。',[purge]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +98 | … +99 | … 文本','未知:不以类名绑定实现','保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。',[],'identity_unknown') + | + +E501 Line too long (296 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:100:85 + | + 98 | … + 99 | … 文本','未知:不以类名绑定实现','保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。',[],'identity_unknown') +100 | … 1被22外线覆盖;19.initial_value1由1.frame_count输入,非total或已计算index。准确包从索引0或hidden initial_value0开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。',[loop],'linked_saved_value') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +101 | … 随输入而定','多行,dynamicPrompts=false;未声明字符串长度范围','22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不… +102 | … + | + +E501 Line too long (337 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:101:84 + | + 99 | … 文本','未知:不以类名绑定实现','保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。',[],'identity_unknown') +100 | … 1被22外线覆盖;19.initial_value1由1.frame_count输入,非total或已计算index。准确包从索引0或hidden initial_value0开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。',[loop],'linked_saved_value') +101 | … 随输入而定','多行,dynamicPrompts=false;未声明字符串长度范围','22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。',[math,mathschema]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +102 | … +103 | … 物存在。'), + | + +E501 Line too long (155 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:104:69 + | +102 | … +103 | …omfyUI,图像来自25;mode4,不保证产物存在。'), +104 | … 现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +105 | …tion未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。'), +106 | …'schema无显式长度限制;目录与权限未知',effect,[save]) + | + +E501 Line too long (161 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:105:85 + | +103 | …yUI,图像来自25;mode4,不保证产物存在。'), +104 | … 只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。'), +105 | …n未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。'), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +106 | …hema无显式长度限制;目录与权限未知',effect,[save]) +107 | …RING','空字符串','模板文本','多行,无显式长度范围','保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:106:3 + | +104 | ('output_folder','图片输出目录','output','保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补… +105 | ('caption_file_extension','标注扩展名','.txt','保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。… +106 | ]:spec('SaveImageKJ',name,label,'STRING',default,'文本/路径','schema无显式长度限制;目录与权限未知',effect,[save]) + | ^ +107 | spec('Apply Text Template (mtb)','template','文件名前缀模板','STRING','空字符串','模板文本','多行,无显式长度范围','保存tmp/video/vi… +108 | spec('SaveAudio','filename_prefix','旁路音频保存前缀','STRING','audio/ComfyUI','路径/前缀','schema无显式长度范围;动态目录权限未知',… + | + +E501 Line too long (281 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:107:83 + | +105 | …t None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。'), +106 | … 知',effect,[save]) +107 | … 行,无显式长度范围','保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。',[template]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +108 | …hema无显式长度范围;动态目录权限未知','仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最… +109 | …,'LayerUtility: PurgeVRAM':['purge_cache','purge_models'],'easy forLoopStart':['total'],'MathExpression|pysssss':['expression'],'SaveImageKJ':['filename_prefix','output_folder','caption_file_… + | + +E501 Line too long (320 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:108:89 + | +106 | … 知',effect,[save]) +107 | … ,无显式长度范围','保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。',[template]) +108 | …ema无显式长度范围;动态目录权限未知','仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最终视频有音轨。',[audio,audiohelper]) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +109 | …'LayerUtility: PurgeVRAM':['purge_cache','purge_models'],'easy forLoopStart':['total'],'MathExpression|pysssss':['expression'],'SaveImageKJ':['filename_prefix','output_folder','caption_file_extension'],'Apply Text Template (mtb)'… +110 | … + | + +E501 Line too long (371 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:109:101 + | +107 | … 行,无显式长度范围','保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。',[template]) +108 | …hema无显式长度范围;动态目录权限未知','仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最终视频有音轨。',[audio,audiohelper]) +109 | …,'LayerUtility: PurgeVRAM':['purge_cache','purge_…'template'],'SaveAudio':['filename_prefix']} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +110 | … +111 | …(1,'force_rate'),(25,'force_rate'),(25,'frame_load_cap'),(25,'skip_first_frames'),(19,'total')} + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:110:11 + | +108 | spec('SaveAudio','filename_prefix','旁路音频保存前缀','STRING','audio/ComfyUI','路径/前缀','schema无显式长度范围;动态目录权限未知',… +109 | names={'FloatConstant':['value'],'INTConstant':['value'],'SetNode':['name'],'GetNode':['name'],'LayerUtility: PurgeVRAM':['purge_cac… +110 | fields=[];comments=[];zeros=[] + | ^ +111 | linked={(8,'image_load_cap'),(8,'skip_first_images'),(10,'frame_rate'),(10,'filename_prefix'),(1,'force_rate'),(25,'force_rate'),(25… +112 | for i,n in enumerate(graph['nodes']): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:110:23 + | +108 | spec('SaveAudio','filename_prefix','旁路音频保存前缀','STRING','audio/ComfyUI','路径/前缀','schema无显式长度范围;动态目录权限未知',… +109 | names={'FloatConstant':['value'],'INTConstant':['value'],'SetNode':['name'],'GetNode':['name'],'LayerUtility: PurgeVRAM':['purge_cac… +110 | fields=[];comments=[];zeros=[] + | ^ +111 | linked={(8,'image_load_cap'),(8,'skip_first_images'),(10,'frame_rate'),(10,'filename_prefix'),(1,'force_rate'),(25,'force_rate'),(25… +112 | for i,n in enumerate(graph['nodes']): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:113:35 + | +111 | linked={(8,'image_load_cap'),(8,'skip_first_images'),(10,'frame_rate'),(10,'filename_prefix'),(1,'force_rate'),(25,'force_rate'),(25… +112 | for i,n in enumerate(graph['nodes']): +113 | ptr=f'/nodes/{i}/widgets_values'; vals=n.get('widgets_values') + | ^ +114 | if n['type']=='Note': +115 | comments.append(dict(node_id=str(n['id']),pointer=ptr,scope='root',text=vals[0],meaning='完整源注释,仅作者说明,不是执行证明。'))… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:115:115 + | +113 | … +114 | … +115 | …',text=vals[0],meaning='完整源注释,仅作者说明,不是执行证明。'));continue + | ^ +116 | … +117 | …t='原缺widgets_values键;提供方/版本未知,不模拟动态组开关。' if 'widgets_values' not in n else '原{}零位置;不同于缺键/[]。' if isi… + | + +E501 Line too long (259 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:117:94 + | +115 | … 源注释,仅作者说明,不是执行证明。'));continue +116 | … +117 | … 方/版本未知,不模拟动态组开关。' if 'widgets_values' not in n else '原{}零位置;不同于缺键/[]。' if isinstance(vals,dict) else '原[]零位置;不补参数。'));continue + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +118 | … +119 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:117:209 + | +115 | … +116 | … +117 | … /[]。' if isinstance(vals,dict) else '原[]零位置;不补参数。'));continue + | ^ +118 | … +119 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:119:60 + | +117 | zeros.append(dict(node_id=str(n['id']),class_type=n['type'],effect='原缺widgets_values键;提供方/版本未知,不模拟动态组开关。' if … +118 | for k,v in vals.items() if isinstance(vals,dict) else enumerate(vals): +119 | name=k if isinstance(vals,dict) else names[n['type']][k]; s=specs[n['type'],name].copy() + | ^ +120 | if (n['id'],name) in linked:s['role']='linked_saved_value' +121 | fields.append({**s,'node_id':str(n['id']),'scope':'root','class_type':n['type'],'pointer':ptr+'/'+str(k),'value':v,'json_type':typ… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:120:31 + | +118 | for k,v in vals.items() if isinstance(vals,dict) else enumerate(vals): +119 | name=k if isinstance(vals,dict) else names[n['type']][k]; s=specs[n['type'],name].copy() +120 | if (n['id'],name) in linked:s['role']='linked_saved_value' + | ^ +121 | fields.append({**s,'node_id':str(n['id']),'scope':'root','class_type':n['type'],'pointer':ptr+'/'+str(k),'value':v,'json_type':typ… +122 | assert len(fields)==50 and len(comments)==2 and sum(isinstance(f['value'],dict) for f in fields)==4 + | + +E501 Line too long (307 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:121:101 + | +119 | … +120 | … +121 | …r+'/'+str(k),'value':v,'json_type':type(v).__name__,'execution_note':f'原mode={n["mode"]};'+('旁路,不模拟执行。' if n['mode']==4 else '活动保存态,不等于实际已执行。')+'源声明不是目标安装证明;未构造prompt。'}) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +122 | …s)==4 +123 | …合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。' + | + +E501 Line too long (299 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:126:78 + | +124 | … +125 | …e_load_cap。两个常量另经11/25接5.var_1/var_2;模板tmp/video/video_{var_1}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图像称为当前直接视频截取。', +126 | …E/meta_batch线;16不是同步或源时长保证。H264/yuv420p/crf19/save_output=true、save_metadata=false/trimfalse/pingpongfalse按准确VHS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果。', + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +127 | …ceil(a / b)→19.total,27.FPS→25.force_rate;19.index→24.a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.SaveImageKJ,frame_count→20,19.flow→20→28.PurgeVRAM。只保留物理线,不模拟旁路、循环或求值。', +128 | …00。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。', + | + +E501 Line too long (292 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:127:90 + | +125 | …e_load_cap。两个常量另经11/25接5.var_1/var_2;模板tmp/video/video_{var_1}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图像称为当前直接视频截取。', +126 | …E/meta_batch线;16不是同步或源时长保证。H264/yuv420p/crf19/save_output=true、save_metadata=false/trimfalse/pingpongfalse按准确VHS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果。… +127 | …ceil(a / b)→19.total,27.FPS→25.force_rate;19.index→24.a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.SaveImageKJ,frame_count→20,19.flow→20→28.PurgeVRAM。只保留物理线,不模拟旁路、循环或求值。', + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +128 | …00。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。', +129 | …4;10.audio未接,最终视频不保证声音。SaveAudio只有tmp/audio一个保存值,audioUI源口没有第二保存值,不补空串,不称已试听或写入。', + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:134:25 + | +132 | '根22节点24边,无子图,无frontendVersion;workflowRendererVersion=LG不是版本。UE7.5.1/7.5.2及缺version分别保留,空连接声明不证明无… +133 | '两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/… +134 | for e in graph['links']:flow.append('原边 root '+json.dumps(e,ensure_ascii=False)) + | ^ +135 | for n in graph['nodes']:flow.append('原节点 root '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties'] … +136 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha25… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:135:25 + | +133 | '两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/… +134 | for e in graph['links']:flow.append('原边 root '+json.dumps(e,ensure_ascii=False)) +135 | for n in graph['nodes']:flow.append('原节点 root '+json.dumps({k:n[k] for k in ['id','type','mode','inputs','outputs','properties'] … + | ^ +136 | return dict(source_path=path,source_sha1=hashlib.sha1(raw).hexdigest(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha25… + | + +E501 Line too long (164 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:135:98 + | +133 | … 照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/必要实跑0/新增转换0,保持全停用未检查。'] +134 | …ure_ascii=False)) +135 | …n[k] for k in ['id','type','mode','inputs','outputs','properties'] if k in n},ensure_ascii=False)) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +136 | …est(),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='准确版本… + | + +E501 Line too long (1290 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:136:101 + | +134 | … +135 | …ode','inputs','outputs','properties'] if k in n},ensure_ascii=False)) +136 | …ha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。',user_overview=overview,versions=['KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;LayerStyle3b17c7f488006c872f4cb3d6b37029a9464f1d7b;CustomScripts f2838ed5e59de4d73cde5c98354b87a8d3200190。','VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。','core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67b007c9f391;无宿主前端声明。Set/Get/Bypasser身份未知,UE版本仅源文本。'],counts=dict(saved_fields=50,source_nodes=22,physical_edges=24,source_notes=2,history_objects=4,linked_saved_fields=9,frontend_only=4,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=refs,comments=comments,flow=flow,flow_evidence=list(range(len(refs))),zero_saved_nodes=zeros,steps=[overview,'操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。','操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。','操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。','常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。']) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +I001 [*] Import block is un-sorted or un-formatted + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:2:1 + | +1 | """Bounded release members and exact core tag, no plugin execution.""" +2 | / import hashlib +3 | | import io +4 | | import json +5 | | import urllib.request +6 | | import zipfile +7 | | from fetch_sources import OUT, REF, fetch + | |_________________________________________^ +8 | +9 | def main(): + | +help: Organize imports + | +6 | import zipfile +7 + +8 | from fetch_sources import OUT, REF, fetch +9 | +10 + +11 | def main(): + | + +F401 [*] `urllib.request` imported but unused + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:5:8 + | +3 | import io +4 | import json +5 | import urllib.request + | ^^^^^^^^^^^^^^ +6 | import zipfile +7 | from fetch_sources import OUT, REF, fetch + | +help: Remove unused import: `urllib.request` + | +4 | import json + - import urllib.request +5 | import zipfile + | + +F401 [*] `fetch_sources.OUT` imported but unused + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:7:27 + | +5 | import urllib.request +6 | import zipfile +7 | from fetch_sources import OUT, REF, fetch + | ^^^ +8 | +9 | def main(): + | +help: Remove unused import: `fetch_sources.OUT` + | +6 | import zipfile + - from fetch_sources import OUT, REF, fetch +7 + from fetch_sources import REF, fetch +8 | + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:10:49 + | + 9 | def main(): +10 | d=json.loads((REF/'sources.json').read_bytes()); entries=d['sources'] + | ^ +11 | for id,key,words in [('comfyui-easy-use','easy',['logic.py','__init__.py','LICENSE','pyproject.toml']),('comfy-mtb','mtb',['text.py',… +12 | url=(json.loads((REF/(id+'-version.json')).read_bytes())['downloadUrl'] if key!='vhs' else 'https://cdn.comfy.org/kosinkadink/comfyu… + | + +E501 Line too long (238 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:11:101 + | + 9 | … +10 | … +11 | ….toml']),('comfy-mtb','mtb',['text.py','__init__.py','LICENSE','pyproject.toml']),('comfyui-videohelpersuite','vhs',['load_images_nodes.py'])]: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12 | …ttps://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip') +13 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:13:17 + | +11 | for id,key,words in [('comfyui-easy-use','easy',['logic.py','__init__.py','LICENSE','pyproject.toml']),('comfy-mtb','mtb',['text.py',… +12 | url=(json.loads((REF/(id+'-version.json')).read_bytes())['downloadUrl'] if key!='vhs' else 'https://cdn.comfy.org/kosinkadink/comfyu… +13 | raw=fetch(url); digest=hashlib.sha256(raw).hexdigest() + | ^ +14 | if key=='vhs': assert digest=='f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1' +15 | with zipfile.ZipFile(io.BytesIO(raw)) as z: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:14:16 + | +12 | url=(json.loads((REF/(id+'-version.json')).read_bytes())['downloadUrl'] if key!='vhs' else 'https://cdn.comfy.org/kosinkadink/comfyu… +13 | raw=fetch(url); digest=hashlib.sha256(raw).hexdigest() +14 | if key=='vhs': assert digest=='f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1' + | ^ +15 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +16 | selected=[n for n in z.namelist() if any(n==w or n.endswith('/'+w) for w in words)] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:21:19 + | +19 | (REF/(key+'-package-index.json')).write_text(json.dumps(dict(url=url,sha256=digest,members=z.namelist(),selected=selected),ensure_a… +20 | for n in selected: +21 | data=z.read(n); name=key+'__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +22 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +23 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:21:54 + | +19 | (REF/(key+'-package-index.json')).write_text(json.dumps(dict(url=url,sha256=digest,members=z.namelist(),selected=selected),ensure_a… +20 | for n in selected: +21 | data=z.read(n); name=key+'__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +22 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +23 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:23:72 + | +21 | data=z.read(n); name=key+'__'+n.replace('/','__'); (REF/name).write_bytes(data) +22 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +23 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' + | ^ +24 | raw=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/'core-tree.json').write_bytes(raw) +25 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:24:82 + | +22 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +23 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' +24 | raw=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/'core-tree.json').write_bytes(raw) + | ^ +25 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +26 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: + | + +E501 Line too long (122 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:24:101 + | +22 | entries.append(dict(id=key,file=n,local_file=name,url=url,commit='发布包SHA256:'+digest,sha256=hashlib.sha256(data).hexdigest(),gi… +23 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; repo='Comfy-Org/ComfyUI' +24 | raw=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/'core-tree.json').write_bytes(raw) + | ^^^^^^^^^^^^^^^^^^^^^^ +25 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +26 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:27:66 + | +25 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +26 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +27 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… + | ^ +28 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] +29 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:27:82 + | +25 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +26 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +27 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… + | ^ +28 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] +29 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… + | + +E501 Line too long (148 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:27:101 + | +25 | …] if x['type']=='blob'} +26 | …lder_paths.py','LICENSE']: +27 | …{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +28 | …raw).hexdigest(); assert blob==blobs[file] +29 | …url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:27:120 + | +25 | blobs={x['path']:x['sha'] for x in json.loads(raw)['tree'] if x['type']=='blob'} +26 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +27 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… + | ^ +28 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] +29 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:28:75 + | +26 | for file in ['comfy_extras/nodes_audio.py','nodes.py','folder_paths.py','LICENSE']: +27 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); name='core__'+file.replace('/','__'); (REF/name).wr… +28 | blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] + | ^ +29 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… +30 | # necessary LayerStyle helper; never import. + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:31:48 + | +29 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… +30 | # necessary LayerStyle helper; never import. +31 | e=next(e for e in entries if e['id']=='layer'); file='py/imagefunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']… + | ^ +32 | url='https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:31:72 + | +29 | entries.append(dict(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=b… +30 | # necessary LayerStyle helper; never import. +31 | e=next(e for e in entries if e['id']=='layer'); file='py/imagefunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']… + | ^ +32 | url='https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) + | + +E501 Line too long (157 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:31:101 + | +29 | …url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +30 | … +31 | …efunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']=='__init__.py' else '' + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +32 | …erStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | …ite_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:33:16 + | +31 | e=next(e for e in entries if e['id']=='layer'); file='py/imagefunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']… +32 | url='https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) + | ^ +34 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… +35 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:33:48 + | +31 | e=next(e for e in entries if e['id']=='layer'); file='py/imagefunc.py'; url=e['url'].rsplit('/',1)[0]+'/py/imagefunc.py' if e['file']… +32 | url='https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) + | ^ +34 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… +35 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:34:55 + | +32 | url='https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) +34 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… + | ^ +35 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… +36 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E501 Line too long (198 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:34:101 + | +32 | …c872f4cb3d6b37029a9464f1d7b/'+file +33 | … +34 | … tree['tree'] if x['path']==file); assert hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest()==blob + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +35 | …],sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +36 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:34:117 + | +32 | url='https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/'+file +33 | raw=fetch(url); name='layer__py__imagefunc.py'; (REF/name).write_bytes(raw) +34 | tree=json.loads((REF/'layer-tree.json').read_bytes()); blob=next(x['sha'] for x in tree['tree'] if x['path']==file); assert hashlib.s… + | ^ +35 | entries.append(dict(id='layer',file=file,local_file=name,url=url,commit=e['commit'],sha256=hashlib.sha256(raw).hexdigest(),git_blob_s… +36 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:38:24 + | +36 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +37 | print('PASS',len(entries),'exact texts; package Git bindings unknown') +38 | if __name__=='__main__':main() + | ^ + +I001 [*] Import block is un-sorted or un-formatted + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:2:1 + | +1 | """Fetch a bounded template module and audio helper descriptor chain as text.""" +2 | / import hashlib +3 | | import io +4 | | import json +5 | | import zipfile +6 | | from fetch_sources import REF, fetch + | |____________________________________^ +7 | +8 | def main(): + | +help: Organize imports + | +5 | import zipfile +6 + +7 | from fetch_sources import REF, fetch +8 | +9 + +10 | def main(): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:9:49 + | + 8 | def main(): + 9 | d=json.loads((REF/'sources.json').read_bytes()); es=[e for e in d['sources'] if not (e['id']=='mtb' and e['file'] in ['nodes/graph_ut… + | ^ +10 | raw=fetch(meta['url']); assert hashlib.sha256(raw).hexdigest()==meta['sha256'] +11 | with zipfile.ZipFile(io.BytesIO(raw)) as z: + | + +E501 Line too long (382 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:9:101 + | + 8 | … + 9 | …'mtb' and e['file'] in ['nodes/graph_utils.py','no…((REF/'mtb-package-index.json').read_bytes()) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +10 | … +11 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:9:304 + | + 8 | … + 9 | …'file'] in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py'])]; d['sources']=es; meta=json.loads((REF/'mtb-package-index.json').r… + | ^ +10 | … +11 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:9:321 + | + 8 | … + 9 | …y_api/latest/_ui.py','comfy_api/latest/_io.py'])]; d['sources']=es; meta=json.loads((REF/'mtb-package-index.json').read_bytes()) + | ^ +10 | … +11 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:10:24 + | + 8 | def main(): + 9 | d=json.loads((REF/'sources.json').read_bytes()); es=[e for e in d['sources'] if not (e['id']=='mtb' and e['file'] in ['nodes/graph_ut… +10 | raw=fetch(meta['url']); assert hashlib.sha256(raw).hexdigest()==meta['sha256'] + | ^ +11 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +12 | for n in ['nodes/graph_utils.py','log.py','web/mtb_ui.js','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-te… + | + +E501 Line too long (146 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:12:101 + | +10 | …gest()==meta['sha256'] +11 | … +12 | …s','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-template.md']: + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | …/name).write_bytes(data) +14 | …a['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).hexdigest(),git_commit_binding='unknown')) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:13:18 + | +11 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +12 | for n in ['nodes/graph_utils.py','log.py','web/mtb_ui.js','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-te… +13 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +14 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +15 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:13:52 + | +11 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +12 | for n in ['nodes/graph_utils.py','log.py','web/mtb_ui.js','web/mtb_widgets.js','web/comfy_shared.js','wiki/nodes/nodes-apply-text-te… +13 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) + | ^ +14 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +15 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:15:72 + | +13 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) +14 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +15 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | ^ +16 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +17 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | + +E501 Line too long (196 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:15:101 + | +13 | … +14 | …A256:'+meta['sha256'],sha256=hashlib.sha256(data).hexdigest(),git_commit_binding='unknown')) +15 | ….loads((REF/'core-tree.json').read_bytes()); blobs={x['path']:x['sha'] for x in tree['tree'] if x['type']=='blob'} + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +16 | … +17 | …fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest();assert blob==blobs[file] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:15:126 + | +13 | data=z.read(n); name='mtb__'+n.replace('/','__'); (REF/name).write_bytes(data) +14 | es.append(dict(id='mtb',file=n,local_file=name,url=meta['url'],commit='发布包SHA256:'+meta['sha256'],sha256=hashlib.sha256(data).he… +15 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… + | ^ +16 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +17 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:77 + | +15 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… +16 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +17 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | ^ +18 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… +19 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:93 + | +15 | commit=json.loads((REF/'core-tag.json').read_bytes())['object']['sha']; tree=json.loads((REF/'core-tree.json').read_bytes()); blobs={… +16 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +17 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… + | ^ +18 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… +19 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') + | + +E501 Line too long (191 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:101 + | +15 | …son.loads((REF/'core-tree.json').read_bytes()); blobs={x['path']:x['sha'] for x in tree['tree'] if x['type']=='blob'} +16 | … +17 | …aw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest();assert blob==blobs[file] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +18 | …ct(id='core',file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +19 | …) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:17:167 + | +15 | …tree.json').read_bytes()); blobs={x['path']:x['sha'] for x in tree['tree'] if x['type']=='blob'} +16 | … +17 | …ashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest();assert blob==blobs[file] + | ^ +18 | …e,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) +19 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:18:39 + | +16 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +17 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… +18 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… + | ^ +19 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +20 | print('PASS',len(es),'texts') + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:18:67 + | +16 | for file in ['comfy_api/latest/_ui.py','comfy_api/latest/_io.py']: +17 | url=f'https://raw.githubusercontent.com/Comfy-Org/ComfyUI/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw))… +18 | name='core__'+file.replace('/','__');(REF/name).write_bytes(raw);es.append(dict(id='core',file=file,local_file=name,url=url,commit=c… + | ^ +19 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +20 | print('PASS',len(es),'texts') + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_helpers.py:21:24 + | +19 | (REF/'sources.json').write_text(json.dumps(d,ensure_ascii=False,indent=2)+'\n') +20 | print('PASS',len(es),'texts') +21 | if __name__=='__main__':main() + | ^ + +F401 [*] `concurrent.futures` imported but unused + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:2:8 + | +1 | """Fetch only exact textual sources, never import upstream implementations.""" +2 | import concurrent.futures + | ^^^^^^^^^^^^^^^^^^ +3 | import hashlib +4 | import json + | +help: Remove unused import: `concurrent.futures` + | +1 | """Fetch only exact textual sources, never import upstream implementations.""" + - import concurrent.futures +2 | import hashlib + | + +E501 Line too long (142 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:11:101 + | + 9 | … +10 | … +11 | …984c6be7a94102c014',['__init__.py','nodes/nodes.py','nodes/image_nodes.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +12 | …06c872f4cb3d6b37029a9464f1d7b',['__init__.py','py/purge_vram.py','LICENSE']), +13 | …ed5e59de4d73cde5c98354b87a8d3200190',['__init__.py','py/math_expression.py','LICENSE']), + | + +E501 Line too long (132 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:12:101 + | +10 | … +11 | …dcdfa984c6be7a94102c014',['__init__.py','nodes/nodes.py','nodes/image_nodes.py','LICENSE']), +12 | …f488006c872f4cb3d6b37029a9464f1d7b',['__init__.py','py/purge_vram.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | …f2838ed5e59de4d73cde5c98354b87a8d3200190',['__init__.py','py/math_expression.py','LICENSE']), +14 | … + | + +E501 Line too long (143 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:13:101 + | +11 | …984c6be7a94102c014',['__init__.py','nodes/nodes.py','nodes/image_nodes.py','LICENSE']), +12 | …06c872f4cb3d6b37029a9464f1d7b',['__init__.py','py/purge_vram.py','LICENSE']), +13 | …ed5e59de4d73cde5c98354b87a8d3200190',['__init__.py','py/math_expression.py','LICENSE']), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +14 | … +15 | … + | + +E501 Line too long (135 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:16:101 + | +14 | } +15 | def fetch(url): +16 | with urllib.request.urlopen(urllib.request.Request(url,headers={'User-Agent':'HEL-892-text-review'}),timeout=35) as r: return r.read() + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +17 | def main(): +18 | entries=[] + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:16:119 + | +14 | } +15 | def fetch(url): +16 | with urllib.request.urlopen(urllib.request.Request(url,headers={'User-Agent':'HEL-892-text-review'}),timeout=35) as r: return r.read() + | ^ +17 | def main(): +18 | entries=[] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:20:84 + | +18 | entries=[] +19 | for key,(repo,commit,files) in PINS.items(): +20 | tree=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/(key+'-tree.json')).write_bytes(tree) + | ^ +21 | t=json.loads(tree); assert t['sha']==commit and not t['truncated'] +22 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} + | + +E501 Line too long (127 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:20:101 + | +18 | entries=[] +19 | for key,(repo,commit,files) in PINS.items(): +20 | tree=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/(key+'-tree.json')).write_bytes(tree) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +21 | t=json.loads(tree); assert t['sha']==commit and not t['truncated'] +22 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:21:21 + | +19 | for key,(repo,commit,files) in PINS.items(): +20 | tree=fetch(f'https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1'); (REF/(key+'-tree.json')).write_bytes(tree) +21 | t=json.loads(tree); assert t['sha']==commit and not t['truncated'] + | ^ +22 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +23 | for file in files: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:24 + | +22 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +23 | for file in files: +24 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue + | ^ +25 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +26 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:95 + | +22 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +23 | for file in files: +24 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue + | ^ +25 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +26 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | + +E501 Line too long (104 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:24:101 + | +22 | blobs={x['path']:x['sha'] for x in t['tree'] if x['type']=='blob'} +23 | for file in files: +24 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue + | ^^^^ +25 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +26 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:25:67 + | +23 | for file in files: +24 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue +25 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… + | ^ +26 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) +27 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blo… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:25:83 + | +23 | for file in files: +24 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue +25 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… + | ^ +26 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) +27 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blo… + | + +E501 Line too long (182 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:25:101 + | +23 | … +24 | …rge' in p.lower()]); continue +25 | …ch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +26 | … +27 | …it,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:25:157 + | +23 | … +24 | …()]); continue +25 | …ashlib.sha1(b'blob '+str(len(raw)).encode()+b'\0'+raw).hexdigest(); assert blob==blobs[file] + | ^ +26 | … +27 | …ib.sha256(raw).hexdigest(),git_blob_sha1=blob)) + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:26:40 + | +24 | if file not in blobs: print('MISSING',key,file, [p for p in blobs if 'purge' in p.lower()]); continue +25 | url=f'https://raw.githubusercontent.com/{repo}/{commit}/{file}'; raw=fetch(url); blob=hashlib.sha1(b'blob '+str(len(raw)).encode()+… +26 | name=key+'__'+file.replace('/','__'); (REF/name).write_bytes(raw) + | ^ +27 | entries.append(dict(id=key,file=file,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(raw).hexdigest(),git_blob_sha1=blo… +28 | # Reuse exact VHS1.7.7 members only, including package hash and unknown Git binding. + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:30:20 + | +28 | # Reuse exact VHS1.7.7 members only, including package hash and unknown Git binding. +29 | for e in json.loads((OUT.parent/'reverse-reference/sources.json').read_bytes())['sources']: +30 | if e['id']=='vhs': entries.append({**e,'local_file':'../reverse-reference/'+e['local_file']}) + | ^ +31 | (REF/'sources.json').write_text(json.dumps({'sources':entries},ensure_ascii=False,indent=2)+'\n') +32 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:34:6 + | +32 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: +33 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +34 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) + | ^ +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:34:22 + | +32 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: +33 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +34 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) + | ^ +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:34:67 + | +32 | for id,version in [('comfyui-easy-use','1.3.4'),('comfy-mtb','0.5.4')]: +33 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +34 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) + | ^ +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:35:26 + | +33 | url=f'https://api.comfy.org/nodes/{id}/versions/{version}' +34 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) + | ^ +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… +37 | if __name__=='__main__':main() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:36:81 + | +34 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | ^ +37 | if __name__=='__main__':main() + | + +E501 Line too long (148 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:36:101 + | +34 | …tes(raw); print(id,raw.decode()[:1200]) +35 | …(exc)) +36 | …/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core',raw.decode()) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +37 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:36:121 + | +34 | try: raw=fetch(url); (REF/(id+'-version.json')).write_bytes(raw); print(id,raw.decode()[:1200]) +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… + | ^ +37 | if __name__=='__main__':main() + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/fetch_sources.py:37:24 + | +35 | except Exception as exc: print(id,type(exc).__name__,str(exc)) +36 | raw=fetch('https://api.github.com/repos/Comfy-Org/ComfyUI/git/ref/tags/v0.6.0'); (REF/'core-tag.json').write_bytes(raw); print('core'… +37 | if __name__=='__main__':main() + | ^ + +E501 Line too long (101 > 100) + --> docs/hel-892/storyboard-document-evidence/render_report.py:102:85 + | +100 | ] +101 | index.append(dict(document=b["source_path"], **e)) +102 | (OUT.parent / "手动分镜视频截取固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n") + | ^ +103 | (OUT / "fixed-source-index.json").write_text( +104 | json.dumps(index, ensure_ascii=False, indent=2) + "\n" + | + +I001 [*] Import block is un-sorted or un-formatted + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:2:1 + | +1 | """Verify exact Git blobs, package-member hashes and editorial source lines offline.""" +2 | / import hashlib +3 | | import json +4 | | from build_definition import OUT,REF,build + | |__________________________________________^ +5 | +6 | def main(): + | +help: Organize imports + | +3 | import json + - from build_definition import OUT,REF,build +4 | +5 + from build_definition import OUT, REF, build +6 + +7 + +8 | def main(): + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:7:61 + | +6 | def main(): +7 | es=json.loads((REF/'sources.json').read_bytes())['sources'];counts={'git_texts':0,'package_texts':0} + | ^ +8 | for e in es: +9 | raw=(REF/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'] + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:9:41 + | + 7 | es=json.loads((REF/'sources.json').read_bytes())['sources'];counts={'git_texts':0,'package_texts':0} + 8 | for e in es: + 9 | raw=(REF/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'] + | ^ +10 | if e.get('git_commit_binding')=='unknown': +11 | assert e['commit'].startswith('发布包SHA256:') and len(e['commit'].split(':')[1])==64 + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:14:62 + | +12 | counts['package_texts']+=1 +13 | else: +14 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());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']);counts['git_texts']+=1 + | + +E501 Line too long (119 > 100) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:14:101 + | +12 | counts['package_texts']+=1 +13 | else: +14 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());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']);counts['git_texts']+=1 + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:16:97 + | +14 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());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']);counts['git_texts']+=1 + | ^ +17 | tag=json.loads((REF/'core-tag.json').read_bytes());assert tag['object']['type']=='commit' and tag['object']['sha']==next(e['commit'] … +18 | b=build() + | + +E501 Line too long (119 > 100) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:16:101 + | +14 | tree=json.loads((REF/(e['id']+'-tree.json')).read_bytes());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']);counts['git_texts']+=1 + | ^^^^^^^^^^^^^^^^^^^ +17 | tag=json.loads((REF/'core-tag.json').read_bytes());assert tag['object']['type']=='commit' and tag['object']['sha']==next(e['commit'] … +18 | b=build() + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:17:52 + | +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']);counts['git_texts']+=1 +17 | tag=json.loads((REF/'core-tag.json').read_bytes());assert tag['object']['type']=='commit' and tag['object']['sha']==next(e['commit'] … + | ^ +18 | b=build() +19 | for e in b['sources']: + | + +E501 Line too long (165 > 100) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:17:101 + | +15 | …xdigest() +16 | …ree'] if x['path']==e['file']);counts['git_texts']+=1 +17 | …ject']['type']=='commit' and tag['object']['sha']==next(e['commit'] for e in es if e['id']=='core') + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +18 | … +19 | … + | + +E702 Multiple statements on one line (semicolon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:20:41 + | +18 | b=build() +19 | for e in b['sources']: +20 | raw=(OUT/e['local_file']).read_bytes();assert hashlib.sha256(raw).hexdigest()==e['sha256'] + | ^ +21 | assert 1<=e['lines'][0]<=e['lines'][1]<=len(raw.decode().splitlines()) +22 | (OUT/'source-check.json').write_text(json.dumps(dict(**counts,citations=len(b['sources']),tag=tag['ref'],commit=tag['object']['sha'],… + | + +E701 Multiple statements on one line (colon) + --> docs/hel-892/storyboard-document-evidence/verify_sources.py:24:24 + | +22 | (OUT/'source-check.json').write_text(json.dumps(dict(**counts,citations=len(b['sources']),tag=tag['ref'],commit=tag['object']['sha'],… +23 | print('PASS exact identities, bytes and lines',counts) +24 | if __name__=='__main__':main() + | ^ + +Found 162 errors. +[*] 7 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option). +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/check_code.py", line 40, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/check_code.py", line 18, in main + subprocess.run( + File "/home/xiaomo/.local/share/uv/python/cpython-3.11.16-linux-x86_64-gnu/lib/python3.11/subprocess.py", line 571, in run + raise CalledProcessError(retcode, process.args, +subprocess.CalledProcessError: Command '['uv', 'run', '--project', 'calliope-backend', '--offline', 'ruff', 'check', '--config', 'calliope-backend/pyproject.toml', 'calliope-backend/src/calliope/comfyui/fixed_document.py', 'calliope-backend/tests/test_storyboard_fixed_document.py', 'e2e/run-storyboard-document.py', 'docs/hel-892/storyboard-document-evidence/build_definition.py', 'docs/hel-892/storyboard-document-evidence/check_code.py', 'docs/hel-892/storyboard-document-evidence/fetch_additional.py', 'docs/hel-892/storyboard-document-evidence/fetch_helpers.py', 'docs/hel-892/storyboard-document-evidence/fetch_sources.py', 'docs/hel-892/storyboard-document-evidence/rebuild.py', 'docs/hel-892/storyboard-document-evidence/recompute.py', 'docs/hel-892/storyboard-document-evidence/render_report.py', 'docs/hel-892/storyboard-document-evidence/repeat.py', 'docs/hel-892/storyboard-document-evidence/request_counts.py', 'docs/hel-892/storyboard-document-evidence/verify_sources.py']' returned non-zero exit status 1. diff --git a/docs/hel-892/storyboard-document-evidence/lint-second.txt b/docs/hel-892/storyboard-document-evidence/lint-second.txt new file mode 100644 index 00000000..b1188c5b --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/lint-second.txt @@ -0,0 +1,55 @@ +F841 Local variable `info` is assigned to but never used + --> docs/hel-892/storyboard-document-evidence/build_definition.py:66:5 + | +64 | fmt = ref("vhs", "video_formats/h264-mp4.json", 1, 15, "H264/CRF/像素及音频模板") +65 | meta = ref("vhs", "videohelpersuite/nodes.py", 48, 165, "格式模板、元数据参数条件") +66 | info = ref("vhs", "videohelpersuite/nodes.py", 940, 970, "VideoInfoLoaded五出口与loaded_键") + | ^^^^ +67 | reg = ref("vhs", "videohelpersuite/nodes.py", 1020, 1050, "VHS准确四类节点注册") +68 | js = ref("vhs", "web/js/VHS.core.js", 41, 168, "同包保存恢复;不证明未知宿主及UE次序") + | +help: Remove assignment to unused variable `info` + +E501 Line too long (123 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:462:65 + | +460 | "图片输出目录", +461 | "output", +462 | "保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。", + | ^^^^^^^^^^^^^^^^^^^^^^ +463 | ), +464 | ( + | + +E501 Line too long (124 > 100) + --> docs/hel-892/storyboard-document-evidence/build_definition.py:468:76 + | +466 | "标注扩展名", +467 | ".txt", +468 | "保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。", + | ^^^^^^^^^^^^^^^^^^^^^^^^ +469 | ), +470 | ]: + | + +E501 Line too long (101 > 100) + --> docs/hel-892/storyboard-document-evidence/fetch_additional.py:32:101 + | +30 | n for n in z.namelist() if any(n == w or n.endswith("/" + w) for w in words) +31 | ] +32 | # __init__ only package root and py/nodes registration relevant to chosen implementation. + | ^ +33 | selected = [n for n in selected if n.count("/") < 3] +34 | (REF / (key + "-package-index.json")).write_text( + | + +Found 4 errors. +No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/check_code.py", line 40, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/check_code.py", line 18, in main + subprocess.run( + File "/usr/lib/python3.10/subprocess.py", line 526, in run + raise CalledProcessError(retcode, process.args, +subprocess.CalledProcessError: Command '['uv', 'run', '--project', 'calliope-backend', '--offline', 'ruff', 'check', '--config', 'calliope-backend/pyproject.toml', 'calliope-backend/src/calliope/comfyui/fixed_document.py', 'calliope-backend/tests/test_storyboard_fixed_document.py', 'e2e/run-storyboard-document.py', 'docs/hel-892/storyboard-document-evidence/build_definition.py', 'docs/hel-892/storyboard-document-evidence/check_code.py', 'docs/hel-892/storyboard-document-evidence/fetch_additional.py', 'docs/hel-892/storyboard-document-evidence/fetch_helpers.py', 'docs/hel-892/storyboard-document-evidence/fetch_sources.py', 'docs/hel-892/storyboard-document-evidence/rebuild.py', 'docs/hel-892/storyboard-document-evidence/recompute.py', 'docs/hel-892/storyboard-document-evidence/render_report.py', 'docs/hel-892/storyboard-document-evidence/repeat.py', 'docs/hel-892/storyboard-document-evidence/request_counts.py', 'docs/hel-892/storyboard-document-evidence/verify_sources.py']' returned non-zero exit status 1. diff --git a/docs/hel-892/storyboard-document-evidence/lint-third.txt b/docs/hel-892/storyboard-document-evidence/lint-third.txt new file mode 100644 index 00000000..562ec2f1 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/lint-third.txt @@ -0,0 +1,3 @@ +All checks passed! +14 files already formatted +PASS 14 authored Python files and one JS syntax check diff --git a/docs/hel-892/storyboard-document-evidence/npm-ci.txt b/docs/hel-892/storyboard-document-evidence/npm-ci.txt new file mode 100644 index 00000000..d397f2f6 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/npm-ci.txt @@ -0,0 +1,7 @@ + +added 255 packages, and audited 256 packages in 1s + +59 packages are looking for funding + run `npm fund` for details + +found 0 vulnerabilities diff --git a/docs/hel-892/storyboard-document-evidence/package-check.json b/docs/hel-892/storyboard-document-evidence/package-check.json new file mode 100644 index 00000000..bff67e61 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/package-check.json @@ -0,0 +1,23 @@ +[ + { + "file": "fixed_document.py", + "sha256": "05b717e5a181346bec26b4de00a54dcaeb63ef64ccc4463f55b4c09510f9e929", + "wheel": true, + "sdist": true, + "definitions": 28 + }, + { + "file": "source_reviews.json", + "sha256": "39b11527c7af466c94b351c905d11f7ffb4aefddbf00d5fcf8e35d632c29adc4", + "wheel": true, + "sdist": true, + "definitions": 28 + }, + { + "file": "library.py", + "sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c", + "wheel": true, + "sdist": true, + "definitions": 28 + } +] diff --git a/docs/hel-892/storyboard-document-evidence/pins.json b/docs/hel-892/storyboard-document-evidence/pins.json new file mode 100644 index 00000000..b82b6466 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/pins.json @@ -0,0 +1,3 @@ +{ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json": "982b2326c129d00da6e1a2d0f1f843f09f3e9963cf3ac85f3d19691ef9e7b5ec" +} diff --git a/docs/hel-892/storyboard-document-evidence/pr-before.json b/docs/hel-892/storyboard-document-evidence/pr-before.json new file mode 100644 index 00000000..a5409049 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/pr-before.json @@ -0,0 +1,220 @@ +{ + "number": 25, + "state": "open", + "merged": false, + "html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25", + "head": { + "label": "agent/agent/a64a969a6a44", + "ref": "agent/agent/a64a969a6a44", + "sha": "2a82f1f4de16e6694ce800b0d51c98a47351bb24", + "repo_id": 41, + "repo": { + "id": 41, + "owner": { + "id": 1, + "login": "leefer", + "login_name": "", + "source_id": 0, + "full_name": "白栖知", + "email": "2298888111@qq.com", + "avatar_url": "http://gitea.xbay.cc/avatars/91b54124de25997159e246521e39a411c269d223991e40f108233dd43810b64c", + "html_url": "http://gitea.xbay.cc/leefer", + "language": "", + "is_admin": false, + "last_login": "0001-01-01T00:00:00Z", + "created": "2026-07-21T22:34:43+08:00", + "restricted": false, + "active": false, + "prohibit_login": false, + "location": "", + "website": "", + "description": "", + "visibility": "public", + "followers_count": 0, + "following_count": 0, + "starred_repos_count": 1, + "username": "leefer" + }, + "name": "aigc-home", + "full_name": "leefer/aigc-home", + "description": "AIGC工作台", + "empty": false, + "private": false, + "fork": false, + "template": false, + "mirror": false, + "size": 40555, + "language": "", + "languages_url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/languages", + "html_url": "http://gitea.xbay.cc/leefer/aigc-home", + "url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home", + "link": "", + "ssh_url": "ssh://git@192.168.200.36:222/leefer/aigc-home.git", + "clone_url": "http://gitea.xbay.cc/leefer/aigc-home.git", + "original_url": "", + "website": "", + "stars_count": 0, + "forks_count": 0, + "watchers_count": 1, + "branch_count": 84, + "open_issues_count": 0, + "open_pr_counter": 11, + "release_counter": 0, + "default_branch": "main", + "archived": false, + "created_at": "2026-09-27T15:54:10+08:00", + "updated_at": "2026-10-30T21:59:59+08:00", + "archived_at": "1970-01-01T08:00:00+08:00", + "permissions": { + "admin": false, + "push": false, + "pull": true + }, + "has_code": true, + "has_issues": true, + "internal_tracker": { + "enable_time_tracker": true, + "allow_only_contributors_to_track_time": true, + "enable_issue_dependencies": true + }, + "has_wiki": true, + "has_pull_requests": true, + "has_projects": true, + "projects_mode": "all", + "has_releases": true, + "has_packages": true, + "has_actions": true, + "ignore_whitespace_conflicts": false, + "allow_merge_commits": true, + "allow_rebase": true, + "allow_rebase_explicit": true, + "allow_squash_merge": true, + "allow_fast_forward_only_merge": true, + "allow_merge_update": true, + "allow_rebase_update": true, + "allow_manual_merge": false, + "autodetect_manual_merge": false, + "default_delete_branch_after_merge": false, + "default_merge_style": "merge", + "default_update_style": "merge", + "default_allow_maintainer_edit": true, + "avatar_url": "", + "internal": false, + "mirror_interval": "", + "object_format_name": "sha1", + "mirror_updated": "0001-01-01T00:00:00Z", + "mirror_last_sync_at": "0001-01-01T00:00:00Z", + "topics": [], + "licenses": [ + "MIT" + ] + } + }, + "base": { + "label": "main", + "ref": "main", + "sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532", + "repo_id": 41, + "repo": { + "id": 41, + "owner": { + "id": 1, + "login": "leefer", + "login_name": "", + "source_id": 0, + "full_name": "白栖知", + "email": "2298888111@qq.com", + "avatar_url": "http://gitea.xbay.cc/avatars/91b54124de25997159e246521e39a411c269d223991e40f108233dd43810b64c", + "html_url": "http://gitea.xbay.cc/leefer", + "language": "", + "is_admin": false, + "last_login": "0001-01-01T00:00:00Z", + "created": "2026-07-21T22:34:43+08:00", + "restricted": false, + "active": false, + "prohibit_login": false, + "location": "", + "website": "", + "description": "", + "visibility": "public", + "followers_count": 0, + "following_count": 0, + "starred_repos_count": 1, + "username": "leefer" + }, + "name": "aigc-home", + "full_name": "leefer/aigc-home", + "description": "AIGC工作台", + "empty": false, + "private": false, + "fork": false, + "template": false, + "mirror": false, + "size": 40555, + "language": "", + "languages_url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/languages", + "html_url": "http://gitea.xbay.cc/leefer/aigc-home", + "url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home", + "link": "", + "ssh_url": "ssh://git@192.168.200.36:222/leefer/aigc-home.git", + "clone_url": "http://gitea.xbay.cc/leefer/aigc-home.git", + "original_url": "", + "website": "", + "stars_count": 0, + "forks_count": 0, + "watchers_count": 1, + "branch_count": 84, + "open_issues_count": 0, + "open_pr_counter": 11, + "release_counter": 0, + "default_branch": "main", + "archived": false, + "created_at": "2026-09-27T15:54:10+08:00", + "updated_at": "2026-10-30T21:59:59+08:00", + "archived_at": "1970-01-01T08:00:00+08:00", + "permissions": { + "admin": false, + "push": false, + "pull": true + }, + "has_code": true, + "has_issues": true, + "internal_tracker": { + "enable_time_tracker": true, + "allow_only_contributors_to_track_time": true, + "enable_issue_dependencies": true + }, + "has_wiki": true, + "has_pull_requests": true, + "has_projects": true, + "projects_mode": "all", + "has_releases": true, + "has_packages": true, + "has_actions": true, + "ignore_whitespace_conflicts": false, + "allow_merge_commits": true, + "allow_rebase": true, + "allow_rebase_explicit": true, + "allow_squash_merge": true, + "allow_fast_forward_only_merge": true, + "allow_merge_update": true, + "allow_rebase_update": true, + "allow_manual_merge": false, + "autodetect_manual_merge": false, + "default_delete_branch_after_merge": false, + "default_merge_style": "merge", + "default_update_style": "merge", + "default_allow_maintainer_edit": true, + "avatar_url": "", + "internal": false, + "mirror_interval": "", + "object_format_name": "sha1", + "mirror_updated": "0001-01-01T00:00:00Z", + "mirror_last_sync_at": "0001-01-01T00:00:00Z", + "topics": [], + "licenses": [ + "MIT" + ] + } + } +} diff --git a/docs/hel-892/storyboard-document-evidence/python-check-files.json b/docs/hel-892/storyboard-document-evidence/python-check-files.json new file mode 100644 index 00000000..fb3f645a --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/python-check-files.json @@ -0,0 +1,16 @@ +[ + "calliope-backend/src/calliope/comfyui/fixed_document.py", + "calliope-backend/tests/test_storyboard_fixed_document.py", + "e2e/run-storyboard-document.py", + "docs/hel-892/storyboard-document-evidence/build_definition.py", + "docs/hel-892/storyboard-document-evidence/check_code.py", + "docs/hel-892/storyboard-document-evidence/fetch_additional.py", + "docs/hel-892/storyboard-document-evidence/fetch_helpers.py", + "docs/hel-892/storyboard-document-evidence/fetch_sources.py", + "docs/hel-892/storyboard-document-evidence/rebuild.py", + "docs/hel-892/storyboard-document-evidence/recompute.py", + "docs/hel-892/storyboard-document-evidence/render_report.py", + "docs/hel-892/storyboard-document-evidence/repeat.py", + "docs/hel-892/storyboard-document-evidence/request_counts.py", + "docs/hel-892/storyboard-document-evidence/verify_sources.py" +] diff --git a/docs/hel-892/storyboard-document-evidence/rebuild-fifth.txt b/docs/hel-892/storyboard-document-evidence/rebuild-fifth.txt new file mode 100644 index 00000000..cd2b2cfa --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/rebuild-fifth.txt @@ -0,0 +1,12 @@ +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 64, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 28, in main + reviews, previous = build_all() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 19, in build_all + block = build(i) + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 53, in build + ref('core','comfy_extras/nodes_audio.py',603,628,'SaveAudio准确扩展注册') + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 20, in ref + assert 1<=first<=last<=len(data.decode().splitlines()) +AssertionError diff --git a/docs/hel-892/storyboard-document-evidence/rebuild-final.txt b/docs/hel-892/storyboard-document-evidence/rebuild-final.txt new file mode 100644 index 00000000..c814c48b --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/rebuild-final.txt @@ -0,0 +1 @@ +PASS one definition; other 155 reviews and old 27 blocks unchanged diff --git a/docs/hel-892/storyboard-document-evidence/rebuild-fourth.txt b/docs/hel-892/storyboard-document-evidence/rebuild-fourth.txt new file mode 100644 index 00000000..a6b1a3cb --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/rebuild-fourth.txt @@ -0,0 +1,12 @@ +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 64, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 28, in main + reviews, previous = build_all() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 19, in build_all + block = build(i) + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 53, in build + ref('core','comfy_extras/nodes_audio.py',603,630,'SaveAudio准确扩展注册') + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 20, in ref + assert 1<=first<=last<=len(data.decode().splitlines()) +AssertionError diff --git a/docs/hel-892/storyboard-document-evidence/rebuild-initial.txt b/docs/hel-892/storyboard-document-evidence/rebuild-initial.txt new file mode 100644 index 00000000..22b3ad82 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/rebuild-initial.txt @@ -0,0 +1,12 @@ +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 64, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 28, in main + reviews, previous = build_all() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 19, in build_all + block = build(i) + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 26, in build + image_schema=ref('vhs','videohelpersuite/load_images_nodes.py',165,211,'路径加载具名schema,cap/skip/nth') + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 20, in ref + assert 1<=first<=last<=len(data.decode().splitlines()) +AssertionError diff --git a/docs/hel-892/storyboard-document-evidence/rebuild-second.txt b/docs/hel-892/storyboard-document-evidence/rebuild-second.txt new file mode 100644 index 00000000..2887f977 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/rebuild-second.txt @@ -0,0 +1,12 @@ +Traceback (most recent call last): + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 64, in + main() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 28, in main + reviews, previous = build_all() + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/rebuild.py", line 19, in build_all + block = build(i) + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 40, in build + ref('layer','py/purge_vram.py',76,84,'PurgeVRAM准确注册') + File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fcd4d0ccc2ab/workdir/aigc-home/docs/hel-892/storyboard-document-evidence/build_definition.py", line 20, in ref + assert 1<=first<=last<=len(data.decode().splitlines()) +AssertionError diff --git a/docs/hel-892/storyboard-document-evidence/rebuild-third.txt b/docs/hel-892/storyboard-document-evidence/rebuild-third.txt new file mode 100644 index 00000000..c814c48b --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/rebuild-third.txt @@ -0,0 +1 @@ +PASS one definition; other 155 reviews and old 27 blocks unchanged diff --git a/docs/hel-892/storyboard-document-evidence/rebuild.py b/docs/hel-892/storyboard-document-evidence/rebuild.py new file mode 100644 index 00000000..9b4f0cef --- /dev/null +++ b/docs/hel-892/storyboard-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 = "2a82f1f4de16e6694ce800b0d51c98a47351bb24" +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 27 blocks unchanged")) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/recompute-final.txt b/docs/hel-892/storyboard-document-evidence/recompute-final.txt new file mode 100644 index 00000000..da3e3555 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/recompute-final.txt @@ -0,0 +1,2 @@ +PASS exact identities, bytes and lines {'git_texts': 17, 'package_texts': 23} +PASS actual 2a82f1f upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 28 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/storyboard-document-evidence/recompute-initial.txt b/docs/hel-892/storyboard-document-evidence/recompute-initial.txt new file mode 100644 index 00000000..a0ec03e0 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/recompute-initial.txt @@ -0,0 +1,2 @@ +PASS exact identities, bytes and lines {'git_texts': 17, 'package_texts': 27} +PASS actual 2a82f1f upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 28 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/storyboard-document-evidence/recompute.py b/docs/hel-892/storyboard-document-evidence/recompute.py new file mode 100644 index 00000000..ac9e8766 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/recompute.py @@ -0,0 +1,330 @@ +"Actual 2a82f1f 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) == 27 + 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()) == 838 + 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=27, + old_saved=838, + old_notes=19, + new_saved=50, + new_notes=2, + total_documents=28, + total_saved=888, + total_notes=21, + ), + ) + 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=50, + new_notes=2, + old_saved=838, + old_notes=19, + overviews=28, + 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_seven_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=28, + ) + ) + write("package-check.json", packages) + print( + "PASS actual 2a82f1f upgrade1/skip154, repe" + "at155, rollback1, edits1/29cols, fresh155," + " 1217/3660/294, 28 definitions, frozen bou" + "ndaries, wheel/sdist" + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/render_report.py b/docs/hel-892/storyboard-document-evidence/render_report.py new file mode 100644 index 00000000..a602b31f --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/render_report.py @@ -0,0 +1,114 @@ +"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 = [ + "# 手动分镜视频截取固定参考中文说明", + "", + "新增50非注释位置+2完整源注释;旧27图838位置+19注释逐对象不变。28图888+21仅参考展示。155完整定稿0/实跑0/新增转换0。", + "", + ( + "来源local_file以docs/hel-892/storyboard-document" + "-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。" + ), + "", + ] + index = [] + for i in range(1): + b = json.loads((OUT / f"definition-{i}.json").read_bytes()) + lines += [ + "## " + Path(b["source_path"]).stem, + "", + b["user_overview"], + "", + b["notice"], + "", + "源路径:`" + b["source_path"] + "`", + "", + "SHA1:" + b["source_sha1"], + "", + "原字节SHA256:" + b["source_sha256"], + "", + "规范全图SHA256:" + b["canonical_sha256"], + "", + *[v + "\n" for v in b["versions"]], + "### 具体连线与处理条件", + "", + *[v + "\n" for v in b["flow"]], + "### 使用与核对", + "", + *[v + "\n" for v in b["steps"]], + "### 逐保存位置说明", + "", + ] + for j, f in enumerate(b["fields"], 1): + lines += [ + f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})", + "", + f["effect"], + "", + "```json", + json.dumps(f["value"], ensure_ascii=False, indent=2), + "```", + "", + f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。", + "", + "源位置:`" + f["pointer"] + "`", + "", + "定义默认:" + f["schema_default"] + ";单位:" + f["unit"], + "", + "范围/条件:" + f["limits"], + "", + f["execution_note"], + "", + "依据:", + ] + for k in f["evidence"]: + e = b["sources"][k] + lines += [ + f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;" + f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}" + ] + lines += [""] + lines += ["### 零保存节点与源注释", ""] + for z in b["zero_saved_nodes"]: + lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""] + for n in b["comments"]: + lines += [ + "节点" + n["node_id"] + ",位置`" + n["pointer"] + "`", + "", + n["meaning"], + "", + "```text", + n["text"], + "```", + "", + ] + lines += ["### 固定原件索引", ""] + for k, e in enumerate(b["sources"]): + data = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(data).hexdigest() == e["sha256"] + lines += [ + f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;" + f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}", + "", + ] + index.append(dict(document=b["source_path"], **e)) + (OUT.parent / "手动分镜视频截取固定参考中文说明.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/storyboard-document-evidence/repeat-final.txt b/docs/hel-892/storyboard-document-evidence/repeat-final.txt new file mode 100644 index 00000000..df043325 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/repeat-final.txt @@ -0,0 +1 @@ +PASS deterministic definitions and rendered artifacts: zero difference diff --git a/docs/hel-892/storyboard-document-evidence/repeat.py b/docs/hel-892/storyboard-document-evidence/repeat.py new file mode 100644 index 00000000..f775e84f --- /dev/null +++ b/docs/hel-892/storyboard-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=28, + 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/storyboard-document-evidence/repeatability.json b/docs/hel-892/storyboard-document-evidence/repeatability.json new file mode 100644 index 00000000..cc65caa3 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/repeatability.json @@ -0,0 +1,10 @@ +{ + "definitions": 28, + "repeated_build_equal": true, + "repeated_render_equal": true, + "resource_sha256": "87c08f7a056743ac3fc62162d5bca9c4b99c8882f3aae903debc158a78005fee", + "artifacts": { + "fixed-source-index.json": "ccc192af85d76c8293c38081ea013a5ec1a7f3bad6381a3ed9bad3b92ad508c3", + "手动分镜视频截取固定参考中文说明.md": "381d30f2d20f76ac6956075a0c6a3a59d21e549338911ebf2b7628b11bbbaf3f" + } +} diff --git a/docs/hel-892/storyboard-document-evidence/request-counts.txt b/docs/hel-892/storyboard-document-evidence/request-counts.txt new file mode 100644 index 00000000..39cc7db0 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/request-counts.txt @@ -0,0 +1 @@ +{"total": 102, "fixed_count": 92, "polling_count": 10, "paths": {"/api/workflows": 3, "/api/workflows/17": 4, "/api/workflows/4": 4, "/api/workflows/15": 3, "/api/workflows/11": 3, "/api/workflows/3": 3, "/api/workflows/9": 3, "/api/workflows/16": 3, "/api/workflows/10": 3, "/api/workflows/23": 3, "/api/workflows/8": 3, "/api/workflows/22": 3, "/api/workflows/5": 3, "/api/workflows/6": 3, "/api/workflows/7": 3, "/api/workflows/19": 3, "/api/workflows/13": 3, "/api/workflows/12": 3, "/api/workflows/64": 3, "/api/workflows/62": 3, "/api/workflows/70": 3, "/api/workflows/1": 3, "/api/workflows/36": 3, "/api/workflows/35": 3, "/api/workflows/2": 3, "/api/workflows/25": 3, "/api/workflows/24": 3, "/api/workflows/21": 3, "/api/workflows/14": 3, "/api/jobs": 10, "/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/storyboard-document-evidence/request_counts.py b/docs/hel-892/storyboard-document-evidence/request_counts.py new file mode 100644 index 00000000..f471c9f8 --- /dev/null +++ b/docs/hel-892/storyboard-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/storyboard-document-evidence/review-delta.json b/docs/hel-892/storyboard-document-evidence/review-delta.json new file mode 100644 index 00000000..bcaf0bf7 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/review-delta.json @@ -0,0 +1,15 @@ +{ + "base": "2a82f1f4de16e6694ce800b0d51c98a47351bb24", + "changed_paths": [ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json" + ], + "other_reviews_unchanged": 155, + "old_blocks_unchanged": 27, + "old_saved": 838, + "old_notes": 19, + "new_saved": 50, + "new_notes": 2, + "total_documents": 28, + "total_saved": 888, + "total_notes": 21 +} diff --git a/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-10-frame_rate.png b/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-10-frame_rate.png new file mode 100644 index 00000000..f7afd26f Binary files /dev/null and b/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-10-frame_rate.png differ diff --git a/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-branch-flow.png b/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-branch-flow.png new file mode 100644 index 00000000..c255641f Binary files /dev/null and b/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-branch-flow.png differ diff --git a/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-default.png b/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-default.png new file mode 100644 index 00000000..4dff5bdb Binary files /dev/null and b/docs/hel-892/storyboard-document-evidence/screenshots/1440-17-default.png differ diff --git a/docs/hel-892/storyboard-document-evidence/screenshots/390-17-default.png b/docs/hel-892/storyboard-document-evidence/screenshots/390-17-default.png new file mode 100644 index 00000000..e22a9410 Binary files /dev/null and b/docs/hel-892/storyboard-document-evidence/screenshots/390-17-default.png differ diff --git a/docs/hel-892/storyboard-document-evidence/screenshots/390-17-note.png b/docs/hel-892/storyboard-document-evidence/screenshots/390-17-note.png new file mode 100644 index 00000000..22775eff Binary files /dev/null and b/docs/hel-892/storyboard-document-evidence/screenshots/390-17-note.png differ diff --git a/docs/hel-892/storyboard-document-evidence/server-request-accounting.json b/docs/hel-892/storyboard-document-evidence/server-request-accounting.json new file mode 100644 index 00000000..8b9f81f6 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/server-request-accounting.json @@ -0,0 +1,42 @@ +{ + "total": 102, + "fixed_count": 92, + "polling_count": 10, + "paths": { + "/api/workflows": 3, + "/api/workflows/17": 4, + "/api/workflows/4": 4, + "/api/workflows/15": 3, + "/api/workflows/11": 3, + "/api/workflows/3": 3, + "/api/workflows/9": 3, + "/api/workflows/16": 3, + "/api/workflows/10": 3, + "/api/workflows/23": 3, + "/api/workflows/8": 3, + "/api/workflows/22": 3, + "/api/workflows/5": 3, + "/api/workflows/6": 3, + "/api/workflows/7": 3, + "/api/workflows/19": 3, + "/api/workflows/13": 3, + "/api/workflows/12": 3, + "/api/workflows/64": 3, + "/api/workflows/62": 3, + "/api/workflows/70": 3, + "/api/workflows/1": 3, + "/api/workflows/36": 3, + "/api/workflows/35": 3, + "/api/workflows/2": 3, + "/api/workflows/25": 3, + "/api/workflows/24": 3, + "/api/workflows/21": 3, + "/api/workflows/14": 3, + "/api/jobs": 10, + "/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/storyboard-document-evidence/service-0.txt b/docs/hel-892/storyboard-document-evidence/service-0.txt new file mode 100644 index 00000000..a91d75a1 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/service-0.txt @@ -0,0 +1,111 @@ +INFO: Started server process [692997] +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:35390 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35404 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35392 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35422 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:35412 - "GET /api/settings HTTP/1.1" 200 OK +INFO: 127.0.0.1:35426 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:35430 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: 127.0.0.1:35446 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:44878 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44884 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44898 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44910 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:44920 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44930 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44934 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44944 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:44948 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44960 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44970 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44986 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:44996 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:45008 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:45024 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51330 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51332 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51344 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51352 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51366 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51380 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51384 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51386 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51396 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51412 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51428 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51436 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51442 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51452 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51462 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:51470 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: 127.0.0.1:51472 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:37942 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37954 - "GET /api/workflows/15 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37956 - "GET /api/workflows/11 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37970 - "GET /api/workflows/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37986 - "GET /api/workflows/9 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37998 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:38012 - "GET /api/workflows/16 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38020 - "GET /api/workflows/10 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38032 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:38038 - "GET /api/workflows/23 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38050 - "GET /api/workflows/8 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38054 - "GET /api/workflows/22 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38064 - "GET /api/workflows/5 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38072 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38074 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38084 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38096 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38100 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38108 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38110 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:38118 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56424 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56434 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56446 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56458 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56462 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56470 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56482 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56494 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56502 - "GET /api/workflows/156 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56518 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:56526 - "GET /api/workflows/157 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56540 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:56546 - "GET /api/workflows/4 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56562 - "GET /api/workflows/17 HTTP/1.1" 200 OK +INFO: Shutting down +INFO: Waiting for application shutdown. +INFO: Application shutdown complete. +INFO: Finished server process [692997] diff --git a/docs/hel-892/storyboard-document-evidence/service-1.txt b/docs/hel-892/storyboard-document-evidence/service-1.txt new file mode 100644 index 00000000..6c7c0cd1 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/service-1.txt @@ -0,0 +1,4 @@ + + VITE v6.4.3 ready in 274 ms + + ➜ Local: http://127.0.0.1:5173/ diff --git a/docs/hel-892/storyboard-document-evidence/service-stop.json b/docs/hel-892/storyboard-document-evidence/service-stop.json new file mode 100644 index 00000000..ddd36fda --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/service-stop.json @@ -0,0 +1 @@ +{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]} diff --git a/docs/hel-892/storyboard-document-evidence/source-check-final.txt b/docs/hel-892/storyboard-document-evidence/source-check-final.txt new file mode 100644 index 00000000..bd7aac33 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/source-check-final.txt @@ -0,0 +1 @@ +PASS exact identities, bytes and lines {'git_texts': 17, 'package_texts': 23} diff --git a/docs/hel-892/storyboard-document-evidence/source-check-initial.txt b/docs/hel-892/storyboard-document-evidence/source-check-initial.txt new file mode 100644 index 00000000..228c5d1c --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/source-check-initial.txt @@ -0,0 +1 @@ +PASS exact identities, bytes and lines {'git_texts': 17, 'package_texts': 27} diff --git a/docs/hel-892/storyboard-document-evidence/source-check.json b/docs/hel-892/storyboard-document-evidence/source-check.json new file mode 100644 index 00000000..064b052c --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/source-check.json @@ -0,0 +1,10 @@ +{ + "git_texts": 17, + "package_texts": 23, + "citations": 42, + "tag": "refs/tags/v0.6.0", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "package_git_binding": "unknown", + "all_pass": true, + "local_file_base": "docs/hel-892/storyboard-document-evidence" +} diff --git a/docs/hel-892/storyboard-document-evidence/staged-diff-check.txt b/docs/hel-892/storyboard-document-evidence/staged-diff-check.txt new file mode 100644 index 00000000..dd30abb8 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/staged-diff-check.txt @@ -0,0 +1,18 @@ +{ + "full_exit": 2, + "full_diagnostics_sha256": "6797c3eee6ff0deca3c42ee4c14ca27153ed7a8b0d7360e9a89cc1f424afc445", + "original_and_preserved_initial_log_issues": { + "docs/hel-892/storyboard-document-evidence/backend-initial.txt": 2, + "docs/hel-892/storyboard-reference/easy____init__.py": 1, + "docs/hel-892/storyboard-reference/easy__py__nodes__logic.py": 1, + "docs/hel-892/storyboard-reference/kj__nodes__image_nodes.py": 322, + "docs/hel-892/storyboard-reference/kj__nodes__nodes.py": 179, + "docs/hel-892/storyboard-reference/layer____init__.py": 48, + "docs/hel-892/storyboard-reference/layer__py__imagefunc.py": 2553, + "docs/hel-892/storyboard-reference/math__py__math_expression.py": 1, + "docs/hel-892/storyboard-reference/vhs__videohelpersuite__load_images_nodes.py": 5 + }, + "authored_scope_exit": 0, + "authored_scope_output": "", + "reason": "Exact upstream bytes and preserved initial failure output remain untouched; authored source and final outputs checked separately." +} diff --git a/docs/hel-892/storyboard-document-evidence/tested-files.json b/docs/hel-892/storyboard-document-evidence/tested-files.json new file mode 100644 index 00000000..17fdb93e --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/tested-files.json @@ -0,0 +1,269 @@ +{ + "scope": "Final verification inputs, authored code, exact upstream text and metadata identities; this is a byte manifest, not a claim that upstream code was executed.", + "files": [ + { + "path": "calliope-backend/src/calliope/comfyui/fixed_document.py", + "sha256": "05b717e5a181346bec26b4de00a54dcaeb63ef64ccc4463f55b4c09510f9e929" + }, + { + "path": "calliope-backend/src/calliope/comfyui/library.py", + "sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c" + }, + { + "path": "calliope-backend/src/calliope/comfyui/source_reviews.json", + "sha256": "39b11527c7af466c94b351c905d11f7ffb4aefddbf00d5fcf8e35d632c29adc4" + }, + { + "path": "calliope-backend/tests/test_storyboard_fixed_document.py", + "sha256": "a67d742ea705f470fd91aae864a3c31dc071512589fd44104fcd73afd6cae031" + }, + { + "path": "calliope-backend/tests/test_workflow_library.py", + "sha256": "e8dc9acd466cad8f057770962e7830cb2b56a4a6bc534bd581f1e19f514dc057" + }, + { + "path": "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte", + "sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/reverse-reference/vhs____init__.py", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__pyproject.toml", + "sha256": "10c69eeae93c21cdfc22cb63f39ba4ce83bcd459725fcf6beb0298276541a1c2" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__video_formats__h264-mp4.json", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__videohelpersuite__nodes.py", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__videohelpersuite__utils.py", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__web__js__VHS.core.js", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb" + }, + { + "path": "docs/hel-892/reverse-reference/vhs__web__js__videoinfo.js", + "sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/build_definition.py", + "sha256": "666c84e0664a77feac74a09aca1938f89021edcbe0eecebdaa373f3ed50cb4cc" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/check_code.py", + "sha256": "05ac741dbf38a962748462619fc7b121477ffff8ee841c36f285c8da7a8e1967" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch_additional.py", + "sha256": "8a574c335a878b067ceb0bba2b4eb1de41a021421ae1df31d925a057cca989ee" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch_helpers.py", + "sha256": "0fc39af917287f7b64317bdee02cec60a224507b15646ea62a80203db2c424a4" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/fetch_sources.py", + "sha256": "32cb42a208fc65568dba4d4877b21a1b3160ee6f6a2e8012e16a2f85ef95e386" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/rebuild.py", + "sha256": "59c7cf1496c04fd82491cc7fc2f45ef1191a2234b5b03d58ac5cd4edb92301dd" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/recompute.py", + "sha256": "cbdc2353a594ed75104309d930da178bb151eda8d9100123718a62c7e7e42d4b" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/render_report.py", + "sha256": "ef237655267d5c5db9501f7c5574d0465f3046ae46d274c3701da1f8727edb32" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/repeat.py", + "sha256": "292f7c76a7270abcd68b659e3c67290d04224d8baf564fc08ef4367562eecde3" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/request_counts.py", + "sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020" + }, + { + "path": "docs/hel-892/storyboard-document-evidence/verify_sources.py", + "sha256": "7fe93e321487c7add6ab5dfd7ee08b17782bf42cd44afaafb804e66995ae3927" + }, + { + "path": "docs/hel-892/storyboard-reference/core-tag.json", + "sha256": "d83b85e246899bbf32d3f37c18fa6578ad40e220e0eef12278c0ed1a34c67402" + }, + { + "path": "docs/hel-892/storyboard-reference/core-tree.json", + "sha256": "634fe5801ce8e37b9de348d92050d9f7c55a66979abd335b3bb36a5ca167ff37" + }, + { + "path": "docs/hel-892/storyboard-reference/core__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/storyboard-reference/core__comfy_api__latest___io.py", + "sha256": "9ae0d719957a3d31472d4c9de0ff9635db074e222903055bab880b26c295ed86" + }, + { + "path": "docs/hel-892/storyboard-reference/core__comfy_api__latest___ui.py", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f" + }, + { + "path": "docs/hel-892/storyboard-reference/core__comfy_extras__nodes_audio.py", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f" + }, + { + "path": "docs/hel-892/storyboard-reference/core__folder_paths.py", + "sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112" + }, + { + "path": "docs/hel-892/storyboard-reference/core__nodes.py", + "sha256": "1d8eb523db6753a01a9bdd8efface14a76ff91babb2be434a98ea2a1a757b894" + }, + { + "path": "docs/hel-892/storyboard-reference/easy__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/storyboard-reference/easy____init__.py", + "sha256": "d225b7157796aa5f015bb28bfa6cee8e3048fb810a45e988122ea3b365bdde22" + }, + { + "path": "docs/hel-892/storyboard-reference/easy__py__nodes__logic.py", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1" + }, + { + "path": "docs/hel-892/storyboard-reference/easy__pyproject.toml", + "sha256": "123745784e7e332be08f29a4fc90d96393af25262c3b4e8cfc806cfaa91799d8" + }, + { + "path": "docs/hel-892/storyboard-reference/kj-tree.json", + "sha256": "90afc84358d03d3917eb94b584b616f0a1fdc213e86f388aac6745e61f22db9a" + }, + { + "path": "docs/hel-892/storyboard-reference/kj__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "path": "docs/hel-892/storyboard-reference/kj____init__.py", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f" + }, + { + "path": "docs/hel-892/storyboard-reference/kj__nodes__image_nodes.py", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4" + }, + { + "path": "docs/hel-892/storyboard-reference/kj__nodes__nodes.py", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30" + }, + { + "path": "docs/hel-892/storyboard-reference/layer-tree.json", + "sha256": "9fda0de2cf4d0f310899bf097332cb3615c02ed32a8bb4bd19215b831b2ab230" + }, + { + "path": "docs/hel-892/storyboard-reference/layer__LICENSE", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0" + }, + { + "path": "docs/hel-892/storyboard-reference/layer____init__.py", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0" + }, + { + "path": "docs/hel-892/storyboard-reference/layer__py__imagefunc.py", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0" + }, + { + "path": "docs/hel-892/storyboard-reference/layer__py__purge_vram.py", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215" + }, + { + "path": "docs/hel-892/storyboard-reference/math-tree.json", + "sha256": "a20ac14784fbf05876201952fdbd99510a0000e4a7f0d90b42f9fbdd2eb95b43" + }, + { + "path": "docs/hel-892/storyboard-reference/math__LICENSE", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c" + }, + { + "path": "docs/hel-892/storyboard-reference/math____init__.py", + "sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684" + }, + { + "path": "docs/hel-892/storyboard-reference/math__py__math_expression.py", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__LICENSE", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb____init__.py", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__log.py", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__nodes__graph_utils.py", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__pyproject.toml", + "sha256": "d6f354766a928079ffb85d996b82bb3db517e2246e2216471aadf0a6d03f324d" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__web__comfy_shared.js", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__web__mtb_ui.js", + "sha256": "5d5c686d8c7646bccc8efa74ba6815d4f4a65b310cf0d3760399ec55e0fbdf67" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__web__mtb_widgets.js", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757" + }, + { + "path": "docs/hel-892/storyboard-reference/mtb__wiki__nodes__nodes-apply-text-template.md", + "sha256": "f2926be6da3ba5ff0ab992da0ff2baf1404904561ac65867ee50a72e8428f6e8" + }, + { + "path": "docs/hel-892/storyboard-reference/vhs__videohelpersuite__load_images_nodes.py", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4" + }, + { + "path": "e2e/run-storyboard-document.py", + "sha256": "ea3b1d35e662155d030900c2955fa828e8a0a25257ca11f6f12bea72171b3e96" + }, + { + "path": "e2e/storyboard-document.mjs", + "sha256": "27857e8ddab373551e6801943ebc342e28eedc80c3c979680718cf8a73cb5389" + }, + { + "path": "e2e/workflow-document-server.py", + "sha256": "539c54c1eafe6644cba117cf5550af918c97b48aef4b29d2c6378881204742e2" + }, + { + "path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json", + "sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132" + } + ] +} diff --git a/docs/hel-892/storyboard-document-evidence/validation-commands.txt b/docs/hel-892/storyboard-document-evidence/validation-commands.txt new file mode 100644 index 00000000..2b5171dd --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/validation-commands.txt @@ -0,0 +1,20 @@ +# 仓库根执行,锁定既有依赖;不执行上游/模型/媒体,不连接目标。 +# 所有Python命令使用PYTHONDONTWRITEBYTECODE=1,防止再次入库字节缓存。 +PYTHONDONTWRITEBYTECODE=1 uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline +npm ci --prefix calliope-web --ignore-scripts --offline +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/storyboard-document-evidence/verify_sources.py +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/storyboard-document-evidence/rebuild.py +PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_storyboard_fixed_document.py calliope-backend/tests/test_workflow_library.py -q +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/storyboard-document-evidence/check_code.py +PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline +PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/storyboard-document-evidence/recompute.py +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/storyboard-document-evidence/repeat.py +PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-storyboard-document.py +# runner同步结束并finally停两个服务;浏览产物在.local-evidence/storyboard-document/browser。 +# 将browser-results.json/service-stop.json复制本目录,将service-0.log复制为service-0.txt后核对请求计数: +PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/storyboard-document-evidence/request_counts.py +# 可选联网重取本图准确文本(只文本,tag与tree原件另附;不搜索历史或较新版本): +# 依次执行fetch_sources.py、fetch_additional.py、fetch_helpers.py可重取全部40文本。 +# 首步重建来源清单;其后两步补准确包成员/音频帮助链。只核包字节,不宣称Git绑定。 +# 示例报告:review-delta.json / import-protection.json / source-check.json / +# package-check.json / repeatability.json / browser-results.json diff --git a/docs/hel-892/storyboard-document-evidence/verify_sources.py b/docs/hel-892/storyboard-document-evidence/verify_sources.py new file mode 100644 index 00000000..b3e615f8 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/verify_sources.py @@ -0,0 +1,57 @@ +"Verify exact Git blobs, package-member hashes and editorial source lines offline." + +import hashlib +import json + +from build_definition import OUT, REF, build + + +def main(): + es = json.loads((REF / "sources.json").read_bytes())["sources"] + counts = {"git_texts": 0, "package_texts": 0} + for e in es: + raw = (REF / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + if e.get("git_commit_binding") == "unknown": + assert e["commit"].startswith("发布包SHA256:") and len(e["commit"].split(":")[1]) == 64 + counts["package_texts"] += 1 + else: + 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"]) + ) + counts["git_texts"] += 1 + tag = json.loads((REF / "core-tag.json").read_bytes()) + assert tag["object"]["type"] == "commit" and tag["object"]["sha"] == next( + e["commit"] for e in es if e["id"] == "core" + ) + b = build() + 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()) + (OUT / "source-check.json").write_text( + json.dumps( + dict( + **counts, + citations=len(b["sources"]), + tag=tag["ref"], + commit=tag["object"]["sha"], + package_git_binding="unknown", + all_pass=True, + local_file_base="docs/hel-892/storyboard-document-evidence", + ), + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + print("PASS exact identities, bytes and lines", counts) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/storyboard-document-evidence/visual-review.txt b/docs/hel-892/storyboard-document-evidence/visual-review.txt new file mode 100644 index 00000000..09ee1d65 --- /dev/null +++ b/docs/hel-892/storyboard-document-evidence/visual-review.txt @@ -0,0 +1 @@ +实际目验本轮5张截图:1440-17-default.png、390-17-default.png、1440-17-branch-flow.png、1440-17-10-frame_rate.png、390-17-note.png。默认用途中文、未定稿/未实跑与关闭状态可见;默认技术和源记录折叠;活动文件夹/旁路循环、10保存30及18外线16、历史与身份未知可读;两尺寸未见横向溢出。参数来源在滚动抽屉内展开,截图底部裁切是视口边界,脚本已核滚动区和完整内容;未修改Drawer或样式。 diff --git a/docs/hel-892/storyboard-reference/comfy-mtb-version.json b/docs/hel-892/storyboard-reference/comfy-mtb-version.json new file mode 100644 index 00000000..4d87e3e2 --- /dev/null +++ b/docs/hel-892/storyboard-reference/comfy-mtb-version.json @@ -0,0 +1 @@ +{"changelog":"","createdAt":"2025-05-22T23:35:20.117593Z","dependencies":["qrcode","cachetools","onnxruntime-gpu","requirements-parserx","rembg","imageio_ffmpeg","rich","rich_argparse","matplotlib","pillow"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip","id":"cee541d7-b679-4903-bd82-a15d3fc81d3d","node_id":"comfy-mtb","status":"NodeVersionStatusActive","supported_accelerators":null,"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":null,"tags":[],"version":"0.5.4"} diff --git a/docs/hel-892/storyboard-reference/comfyui-easy-use-version.json b/docs/hel-892/storyboard-reference/comfyui-easy-use-version.json new file mode 100644 index 00000000..752fe152 --- /dev/null +++ b/docs/hel-892/storyboard-reference/comfyui-easy-use-version.json @@ -0,0 +1 @@ +{"changelog":"","createdAt":"2025-10-15T13:34:43.350536Z","dependencies":["diffusers","accelerate","clip_interrogator\u003e=0.6.0","sentencepiece","lark","onnxruntime","spandrel","opencv-python-headless","matplotlib","peft"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip","id":"d6cbf9fb-bb40-4d51-9559-1bac0c6c965e","node_id":"comfyui-easy-use","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.3.4"} diff --git a/docs/hel-892/storyboard-reference/core-tag.json b/docs/hel-892/storyboard-reference/core-tag.json new file mode 100644 index 00000000..2d082a9d --- /dev/null +++ b/docs/hel-892/storyboard-reference/core-tag.json @@ -0,0 +1 @@ +{"ref":"refs/tags/v0.6.0","node_id":"REF_kwDOIygeJrByZWZzL3RhZ3MvdjAuNi4w","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.6.0","object":{"sha":"e4c61d75555036fa28b6bb34e5fd67b007c9f391","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/e4c61d75555036fa28b6bb34e5fd67b007c9f391"}} \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/core-tree.json b/docs/hel-892/storyboard-reference/core-tree.json new file mode 100644 index 00000000..e43499ac --- /dev/null +++ b/docs/hel-892/storyboard-reference/core-tree.json @@ -0,0 +1 @@ +{"sha":"e4c61d75555036fa28b6bb34e5fd67b007c9f391","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e4c61d75555036fa28b6bb34e5fd67b007c9f391","tree":[{"path":".ci","mode":"040000","type":"tree","sha":"d88048c87bc463e4dc5ace98959c15fddc934f65","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d88048c87bc463e4dc5ace98959c15fddc934f65"},{"path":".ci/update_windows","mode":"040000","type":"tree","sha":"34386e47f9582977ad5bdfb17af796f615fb1121","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/34386e47f9582977ad5bdfb17af796f615fb1121"},{"path":".ci/update_windows/update.py","mode":"100755","type":"blob","sha":"fe646a6ed424fd0868318f162335b3deb849cb44","size":5782,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fe646a6ed424fd0868318f162335b3deb849cb44"},{"path":".ci/update_windows/update_comfyui.bat","mode":"100755","type":"blob","sha":"bb08c0de0c7bfcf7cdecfda45edc72805bc3adea","size":276,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb08c0de0c7bfcf7cdecfda45edc72805bc3adea"},{"path":".ci/update_windows/update_comfyui_stable.bat","mode":"100755","type":"blob","sha":"e18010da39d37b063f44ec811340c43d4739e874","size":294,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e18010da39d37b063f44ec811340c43d4739e874"},{"path":".ci/windows_amd_base_files","mode":"040000","type":"tree","sha":"31bcea792ed9ca7eaaac41119c5dce6207fc086e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/31bcea792ed9ca7eaaac41119c5dce6207fc086e"},{"path":".ci/windows_amd_base_files/README_VERY_IMPORTANT.txt","mode":"100755","type":"blob","sha":"2cbb00d99195bcf87e80070674dadfbe5b76144a","size":958,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2cbb00d99195bcf87e80070674dadfbe5b76144a"},{"path":".ci/windows_amd_base_files/run_amd_gpu.bat","mode":"100755","type":"blob","sha":"274d7c9486e0ee182ef8fbe16d34ca95e05e90ec","size":82,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/274d7c9486e0ee182ef8fbe16d34ca95e05e90ec"},{"path":".ci/windows_amd_base_files/run_amd_gpu_disable_smart_memory.bat","mode":"100755","type":"blob","sha":"cece0aeb20b542e103b4b529944e676059d4c0ac","size":105,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cece0aeb20b542e103b4b529944e676059d4c0ac"},{"path":".ci/windows_nightly_base_files","mode":"040000","type":"tree","sha":"2e16c04c3a204c65c0e70e643a69d3223525ef52","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2e16c04c3a204c65c0e70e643a69d3223525ef52"},{"path":".ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat","mode":"100644","type":"blob","sha":"ca6d6868af4e19fb9ee764241030451d0d15f42d","size":89,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca6d6868af4e19fb9ee764241030451d0d15f42d"},{"path":".ci/windows_nvidia_base_files","mode":"040000","type":"tree","sha":"ba72501c4487ef901a68ad57146e5eca8a69a4d2","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ba72501c4487ef901a68ad57146e5eca8a69a4d2"},{"path":".ci/windows_nvidia_base_files/README_VERY_IMPORTANT.txt","mode":"100755","type":"blob","sha":"8ab70c8905b4a240d51b43c835747b5c0dcf9ef9","size":1030,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8ab70c8905b4a240d51b43c835747b5c0dcf9ef9"},{"path":".ci/windows_nvidia_base_files/advanced","mode":"040000","type":"tree","sha":"993db94ebff4ff68fbc3cdf795629d64bec4fbd5","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/993db94ebff4ff68fbc3cdf795629d64bec4fbd5"},{"path":".ci/windows_nvidia_base_files/advanced/run_nvidia_gpu_disable_api_nodes.bat","mode":"100644","type":"blob","sha":"ed00583b62f234c3db374a5d75e9a07214c9de01","size":202,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ed00583b62f234c3db374a5d75e9a07214c9de01"},{"path":".ci/windows_nvidia_base_files/run_cpu.bat","mode":"100755","type":"blob","sha":"c3ba4172161a996b0187dd981286c521bcc65846","size":88,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3ba4172161a996b0187dd981286c521bcc65846"},{"path":".ci/windows_nvidia_base_files/run_nvidia_gpu.bat","mode":"100755","type":"blob","sha":"4898a424f4fcc9324bdf6b55c1c2ebdf131ce845","size":178,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4898a424f4fcc9324bdf6b55c1c2ebdf131ce845"},{"path":".ci/windows_nvidia_base_files/run_nvidia_gpu_fast_fp16_accumulation.bat","mode":"100644","type":"blob","sha":"32611e4affd8520734d5f8891e77ce5ea4b35104","size":203,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32611e4affd8520734d5f8891e77ce5ea4b35104"},{"path":".gitattributes","mode":"100644","type":"blob","sha":"5b3c15bb47c2fec4ac06b90249da3993c192090e","size":112,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5b3c15bb47c2fec4ac06b90249da3993c192090e"},{"path":".github","mode":"040000","type":"tree","sha":"0d6ebdb07af3160155b628e20430705d2fc587eb","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0d6ebdb07af3160155b628e20430705d2fc587eb"},{"path":".github/ISSUE_TEMPLATE","mode":"040000","type":"tree","sha":"02c712b6269c033fa4ec2320b70f3bf4aab2ca58","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/02c712b6269c033fa4ec2320b70f3bf4aab2ca58"},{"path":".github/ISSUE_TEMPLATE/bug-report.yml","mode":"100644","type":"blob","sha":"6556677e0e6b24320275c4e09825dff39a118ab2","size":2801,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6556677e0e6b24320275c4e09825dff39a118ab2"},{"path":".github/ISSUE_TEMPLATE/config.yml","mode":"100644","type":"blob","sha":"09fea712edc0df7bada8c850abde6370cbf35719","size":689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/09fea712edc0df7bada8c850abde6370cbf35719"},{"path":".github/ISSUE_TEMPLATE/feature-request.yml","mode":"100644","type":"blob","sha":"419721b63b4c0df62989862ea12cf2274d5788d7","size":1584,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/419721b63b4c0df62989862ea12cf2274d5788d7"},{"path":".github/ISSUE_TEMPLATE/user-support.yml","mode":"100644","type":"blob","sha":"281661f92633fc5e5cc01eac4b3ac6dc2ce99677","size":1988,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/281661f92633fc5e5cc01eac4b3ac6dc2ce99677"},{"path":".github/PULL_REQUEST_TEMPLATE","mode":"040000","type":"tree","sha":"5464fcc7551c8e11fc51227c01f33749bc2d4e06","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5464fcc7551c8e11fc51227c01f33749bc2d4e06"},{"path":".github/PULL_REQUEST_TEMPLATE/api-node.md","mode":"100644","type":"blob","sha":"c1f1bafb158db27be00dadc06249f3f01bbb6b45","size":398,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1f1bafb158db27be00dadc06249f3f01bbb6b45"},{"path":".github/workflows","mode":"040000","type":"tree","sha":"cbbaba024bc3d31c4a0a651bf1253409ffc4d2a5","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cbbaba024bc3d31c4a0a651bf1253409ffc4d2a5"},{"path":".github/workflows/api-node-template.yml","mode":"100644","type":"blob","sha":"fdb81c0c568da9916397dde690bdbdf730b3cb06","size":2244,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fdb81c0c568da9916397dde690bdbdf730b3cb06"},{"path":".github/workflows/check-line-endings.yml","mode":"100644","type":"blob","sha":"eeb594d6cd39a60ca6f1808b7e2bb7af3056842c","size":1235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eeb594d6cd39a60ca6f1808b7e2bb7af3056842c"},{"path":".github/workflows/pullrequest-ci-run.yml","mode":"100644","type":"blob","sha":"a2a4b265c9847f7d46f7625f68f86abb5dbda304","size":1937,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2a4b265c9847f7d46f7625f68f86abb5dbda304"},{"path":".github/workflows/release-stable-all.yml","mode":"100644","type":"blob","sha":"d72ece2ce18c89a8205d19115d9e3c7549b238fa","size":1872,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d72ece2ce18c89a8205d19115d9e3c7549b238fa"},{"path":".github/workflows/release-webhook.yml","mode":"100644","type":"blob","sha":"6fceb7560ecf11120e91e966a8c1420a37ded379","size":5327,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6fceb7560ecf11120e91e966a8c1420a37ded379"},{"path":".github/workflows/ruff.yml","mode":"100644","type":"blob","sha":"b24d86a6ba55b1f7b90539d6267a72afa5a7b73c","size":973,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b24d86a6ba55b1f7b90539d6267a72afa5a7b73c"},{"path":".github/workflows/stable-release.yml","mode":"100644","type":"blob","sha":"28484a9d1e726727e63ef7744f1b410a4f06e77d","size":5360,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28484a9d1e726727e63ef7744f1b410a4f06e77d"},{"path":".github/workflows/stale-issues.yml","mode":"100644","type":"blob","sha":"0459960706dccca86452bc82804dc79b8bcadeda","size":691,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0459960706dccca86452bc82804dc79b8bcadeda"},{"path":".github/workflows/test-build.yml","mode":"100644","type":"blob","sha":"419873ad88ac8150ffddd4980cd701e672adc523","size":764,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/419873ad88ac8150ffddd4980cd701e672adc523"},{"path":".github/workflows/test-ci.yml","mode":"100644","type":"blob","sha":"adfc5dd32049700490c92aca144e80f0862e7d9a","size":3101,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/adfc5dd32049700490c92aca144e80f0862e7d9a"},{"path":".github/workflows/test-execution.yml","mode":"100644","type":"blob","sha":"9012633d864b300fc184d5616db14c2f6cc7ecd0","size":839,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9012633d864b300fc184d5616db14c2f6cc7ecd0"},{"path":".github/workflows/test-launch.yml","mode":"100644","type":"blob","sha":"fd70aff23c77c783b49a41155bce169e67bb5ba0","size":1340,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fd70aff23c77c783b49a41155bce169e67bb5ba0"},{"path":".github/workflows/test-unit.yml","mode":"100644","type":"blob","sha":"d05179cd3da602b32013f94bac299c46b184fc0c","size":798,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d05179cd3da602b32013f94bac299c46b184fc0c"},{"path":".github/workflows/update-api-stubs.yml","mode":"100644","type":"blob","sha":"c99ec9fc1acf5ec0c1e922050be4e7930e7d1615","size":1833,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c99ec9fc1acf5ec0c1e922050be4e7930e7d1615"},{"path":".github/workflows/update-version.yml","mode":"100644","type":"blob","sha":"c2343cc39a32aeade2dc597dd5f52bc1dce5b207","size":1859,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c2343cc39a32aeade2dc597dd5f52bc1dce5b207"},{"path":".github/workflows/windows_release_dependencies.yml","mode":"100644","type":"blob","sha":"f61ee21a230e67006987fba10a2caa69c939e768","size":2529,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f61ee21a230e67006987fba10a2caa69c939e768"},{"path":".github/workflows/windows_release_dependencies_manual.yml","mode":"100644","type":"blob","sha":"0799feef1ffca71c6f5d718c3f4833207d2c5047","size":2295,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0799feef1ffca71c6f5d718c3f4833207d2c5047"},{"path":".github/workflows/windows_release_nightly_pytorch.yml","mode":"100644","type":"blob","sha":"ca1ef71aee8fe01fe2c6ded5eb49a938bb34b551","size":3737,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca1ef71aee8fe01fe2c6ded5eb49a938bb34b551"},{"path":".github/workflows/windows_release_package.yml","mode":"100644","type":"blob","sha":"7955325fc8242c0a9c8efffdc6d3d70808eaeca0","size":3666,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7955325fc8242c0a9c8efffdc6d3d70808eaeca0"},{"path":".gitignore","mode":"100644","type":"blob","sha":"4e8cea71e55139979744378e9918065955bcd7ea","size":382,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e8cea71e55139979744378e9918065955bcd7ea"},{"path":"CODEOWNERS","mode":"100644","type":"blob","sha":"4d544863643bcce367d584744ef39b7b5d7ffc81","size":47,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d544863643bcce367d584744ef39b7b5d7ffc81"},{"path":"CONTRIBUTING.md","mode":"100644","type":"blob","sha":"048f127e72ddc351451a9612d4c715f603393a84","size":1882,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/048f127e72ddc351451a9612d4c715f603393a84"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"f288702d2fa16d3cdf0035b15a9fcbc552cd88e7","size":35149,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"},{"path":"QUANTIZATION.md","mode":"100644","type":"blob","sha":"1693e13f32e2c6eddb5e97c78d733a2447975ea9","size":7695,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1693e13f32e2c6eddb5e97c78d733a2447975ea9"},{"path":"README.md","mode":"100644","type":"blob","sha":"b0f62695b0536a8f183069033b2eaebb6798687c","size":28477,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b0f62695b0536a8f183069033b2eaebb6798687c"},{"path":"alembic.ini","mode":"100644","type":"blob","sha":"12f18712f4306f1b76e6b291956797b01469cd80","size":3230,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/12f18712f4306f1b76e6b291956797b01469cd80"},{"path":"alembic_db","mode":"040000","type":"tree","sha":"449a7b5bd85bf258fa2dba8cbfa95dfe1090a86d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/449a7b5bd85bf258fa2dba8cbfa95dfe1090a86d"},{"path":"alembic_db/README.md","mode":"100644","type":"blob","sha":"3b808c7cab30eaab91c9ff5c1b2d5cc960904e14","size":133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3b808c7cab30eaab91c9ff5c1b2d5cc960904e14"},{"path":"alembic_db/env.py","mode":"100644","type":"blob","sha":"4d7770679875e2fad065fba0c9222758a40d266b","size":1799,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d7770679875e2fad065fba0c9222758a40d266b"},{"path":"alembic_db/script.py.mako","mode":"100644","type":"blob","sha":"480b130d632ca677c11f23d9fe82cf4014d15e0c","size":689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/480b130d632ca677c11f23d9fe82cf4014d15e0c"},{"path":"api_server","mode":"040000","type":"tree","sha":"f3f781e359ed3fcb808e99cb1557e42520e9fc9b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f3f781e359ed3fcb808e99cb1557e42520e9fc9b"},{"path":"api_server/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes","mode":"040000","type":"tree","sha":"73877b77301f8e3b2e598c1c4ccead10dafb45a8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/73877b77301f8e3b2e598c1c4ccead10dafb45a8"},{"path":"api_server/routes/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes/internal","mode":"040000","type":"tree","sha":"960c49c403f15ecbfc3a5abd4031b6d8926aa2fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/960c49c403f15ecbfc3a5abd4031b6d8926aa2fc"},{"path":"api_server/routes/internal/README.md","mode":"100644","type":"blob","sha":"35330c36f83962385b4afe4653c5967f2bdb73c1","size":220,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35330c36f83962385b4afe4653c5967f2bdb73c1"},{"path":"api_server/routes/internal/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/routes/internal/internal_routes.py","mode":"100644","type":"blob","sha":"b224306da5e1ec7cd2579a5c3004ce0bc5b3ab45","size":3048,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b224306da5e1ec7cd2579a5c3004ce0bc5b3ab45"},{"path":"api_server/services","mode":"040000","type":"tree","sha":"fb303e6603032fb076c86938a5a149b9b447960e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fb303e6603032fb076c86938a5a149b9b447960e"},{"path":"api_server/services/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"api_server/services/terminal_service.py","mode":"100644","type":"blob","sha":"ab4371f4f855c6d347744f751fd1bc5cc0f5a173","size":1709,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab4371f4f855c6d347744f751fd1bc5cc0f5a173"},{"path":"api_server/utils","mode":"040000","type":"tree","sha":"196b7b6129fd35f559b1e1e17500e8b59631a0de","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/196b7b6129fd35f559b1e1e17500e8b59631a0de"},{"path":"api_server/utils/file_operations.py","mode":"100644","type":"blob","sha":"32d6e047a5da09d0f382bb3fa93ce8d52b699aa7","size":1367,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32d6e047a5da09d0f382bb3fa93ce8d52b699aa7"},{"path":"app","mode":"040000","type":"tree","sha":"06df7e443931bb4e0af89ee849c90d2a6ffcaf37","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/06df7e443931bb4e0af89ee849c90d2a6ffcaf37"},{"path":"app/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"app/app_settings.py","mode":"100644","type":"blob","sha":"c7ac73bf6a59d3e89647aed13b70ca9428e16f2a","size":2255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c7ac73bf6a59d3e89647aed13b70ca9428e16f2a"},{"path":"app/custom_node_manager.py","mode":"100644","type":"blob","sha":"281febca952363659eb3925280fab00f07c986d0","size":5330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/281febca952363659eb3925280fab00f07c986d0"},{"path":"app/database","mode":"040000","type":"tree","sha":"7ed323953fc1c65daa35b418d299f52edd3d860d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7ed323953fc1c65daa35b418d299f52edd3d860d"},{"path":"app/database/db.py","mode":"100644","type":"blob","sha":"1de8b80edd8a5761039c7314c6387d2184a15e14","size":3290,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1de8b80edd8a5761039c7314c6387d2184a15e14"},{"path":"app/database/models.py","mode":"100644","type":"blob","sha":"6facfb8f2b5e7382274021579a453ad3b7853bf7","size":315,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6facfb8f2b5e7382274021579a453ad3b7853bf7"},{"path":"app/frontend_management.py","mode":"100644","type":"blob","sha":"bdaa858121def2a113aaf4c90799b7365ca29743","size":15650,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bdaa858121def2a113aaf4c90799b7365ca29743"},{"path":"app/logger.py","mode":"100644","type":"blob","sha":"3d26d98fe28005a3ed8b6deb7da34823b98b5696","size":2849,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3d26d98fe28005a3ed8b6deb7da34823b98b5696"},{"path":"app/model_manager.py","mode":"100644","type":"blob","sha":"ab36bca7441468ef3683f39c16fc6cec85d9740a","size":7887,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ab36bca7441468ef3683f39c16fc6cec85d9740a"},{"path":"app/subgraph_manager.py","mode":"100644","type":"blob","sha":"dbe40454169e8f5081f446cf0997700e73790841","size":4316,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dbe40454169e8f5081f446cf0997700e73790841"},{"path":"app/user_manager.py","mode":"100644","type":"blob","sha":"e2c00dab2e45424b5ace1a9fcfce22772534a3d0","size":18705,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e2c00dab2e45424b5ace1a9fcfce22772534a3d0"},{"path":"comfy","mode":"040000","type":"tree","sha":"154851e910c86e8a927f7751ec8a1ded93161f50","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/154851e910c86e8a927f7751ec8a1ded93161f50"},{"path":"comfy/audio_encoders","mode":"040000","type":"tree","sha":"ef474f8a1e4996f842a8c45176281701015f0449","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ef474f8a1e4996f842a8c45176281701015f0449"},{"path":"comfy/audio_encoders/audio_encoders.py","mode":"100644","type":"blob","sha":"46ef21c95cf192e9cb1a4004567b132449f2db47","size":3387,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/46ef21c95cf192e9cb1a4004567b132449f2db47"},{"path":"comfy/audio_encoders/wav2vec2.py","mode":"100644","type":"blob","sha":"4e34a40a7f38b56a31a4512dea4c013a3b1c7843","size":10639,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4e34a40a7f38b56a31a4512dea4c013a3b1c7843"},{"path":"comfy/audio_encoders/whisper.py","mode":"100755","type":"blob","sha":"93d3782f14b5256d4d1bdfc443c12c4720a6b224","size":5953,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93d3782f14b5256d4d1bdfc443c12c4720a6b224"},{"path":"comfy/checkpoint_pickle.py","mode":"100644","type":"blob","sha":"206551d3c1cf0d654c907534629a800196ba138b","size":286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/206551d3c1cf0d654c907534629a800196ba138b"},{"path":"comfy/cldm","mode":"040000","type":"tree","sha":"e96c664886fe8e74a4e69af1b2b57221267c953c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e96c664886fe8e74a4e69af1b2b57221267c953c"},{"path":"comfy/cldm/cldm.py","mode":"100644","type":"blob","sha":"c93c2e909c2869bbb9120b739954045ee2997994","size":19828,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c93c2e909c2869bbb9120b739954045ee2997994"},{"path":"comfy/cldm/control_types.py","mode":"100644","type":"blob","sha":"4128631a305a13d65c3c37ced17179d23fbbdcff","size":207,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4128631a305a13d65c3c37ced17179d23fbbdcff"},{"path":"comfy/cldm/dit_embedder.py","mode":"100644","type":"blob","sha":"f9bf31012b1319e929cab381c9a3b32be62fc589","size":4204,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f9bf31012b1319e929cab381c9a3b32be62fc589"},{"path":"comfy/cldm/mmdit.py","mode":"100644","type":"blob","sha":"b7764085e9431259d43701654af897effe0799da","size":2555,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b7764085e9431259d43701654af897effe0799da"},{"path":"comfy/cli_args.py","mode":"100644","type":"blob","sha":"dae9a895de8a8449910133e481a657c0645479f1","size":16872,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dae9a895de8a8449910133e481a657c0645479f1"},{"path":"comfy/clip_config_bigg.json","mode":"100644","type":"blob","sha":"35261deef14a68fcc6c5b1fc32914b5c102781a9","size":524,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35261deef14a68fcc6c5b1fc32914b5c102781a9"},{"path":"comfy/clip_model.py","mode":"100644","type":"blob","sha":"7c0cadab5bc94cba0beef715b1465a0125eba465","size":12032,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7c0cadab5bc94cba0beef715b1465a0125eba465"},{"path":"comfy/clip_vision.py","mode":"100644","type":"blob","sha":"447b1ce4abef28579a56359b2d0d66ef9159acb6","size":7665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/447b1ce4abef28579a56359b2d0d66ef9159acb6"},{"path":"comfy/clip_vision_config_g.json","mode":"100644","type":"blob","sha":"708e7e21ac3513a719d6a49e88e756f5ef7e2c8d","size":419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/708e7e21ac3513a719d6a49e88e756f5ef7e2c8d"},{"path":"comfy/clip_vision_config_h.json","mode":"100644","type":"blob","sha":"bb71be419a4be0ad5c8c157850de032a65593cb9","size":419,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb71be419a4be0ad5c8c157850de032a65593cb9"},{"path":"comfy/clip_vision_config_vitl.json","mode":"100644","type":"blob","sha":"c59b8ed5a4c1f41fbcc9e6811d2c7dfe44273de7","size":424,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c59b8ed5a4c1f41fbcc9e6811d2c7dfe44273de7"},{"path":"comfy/clip_vision_config_vitl_336.json","mode":"100644","type":"blob","sha":"f26945273d99e88f207d64dcec78feee63b4b625","size":423,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f26945273d99e88f207d64dcec78feee63b4b625"},{"path":"comfy/clip_vision_config_vitl_336_llava.json","mode":"100644","type":"blob","sha":"f23a50d8b77fa29de2af621fb50c5825cf9b1a86","size":453,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f23a50d8b77fa29de2af621fb50c5825cf9b1a86"},{"path":"comfy/clip_vision_siglip_384.json","mode":"100644","type":"blob","sha":"532e03ac181d8849a7202445d42565f01441177b","size":314,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/532e03ac181d8849a7202445d42565f01441177b"},{"path":"comfy/clip_vision_siglip_512.json","mode":"100644","type":"blob","sha":"7fb93ce15e6da3ce7653a7a91ab278d707a096b4","size":314,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7fb93ce15e6da3ce7653a7a91ab278d707a096b4"},{"path":"comfy/comfy_types","mode":"040000","type":"tree","sha":"3dda958c109118e3e62f39857beb520d9cbbbfb4","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3dda958c109118e3e62f39857beb520d9cbbbfb4"},{"path":"comfy/comfy_types/README.md","mode":"100644","type":"blob","sha":"20a786a5eac805a0b3f41c4fa42be558819b89c8","size":1350,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/20a786a5eac805a0b3f41c4fa42be558819b89c8"},{"path":"comfy/comfy_types/__init__.py","mode":"100644","type":"blob","sha":"7640fbe3f827bdaac2384e0dcc96d243ec257f2f","size":1251,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7640fbe3f827bdaac2384e0dcc96d243ec257f2f"},{"path":"comfy/comfy_types/examples","mode":"040000","type":"tree","sha":"c26fa0b29368af8d530f7bc9dab14a7d71697044","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c26fa0b29368af8d530f7bc9dab14a7d71697044"},{"path":"comfy/comfy_types/examples/example_nodes.py","mode":"100644","type":"blob","sha":"6e19c545153db36b2c2e7481e5c8bc96ccbbe1f1","size":781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6e19c545153db36b2c2e7481e5c8bc96ccbbe1f1"},{"path":"comfy/comfy_types/examples/input_options.png","mode":"100644","type":"blob","sha":"ac859bbc0c15728e6f5464f9388f44d5e38dd650","size":19341,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac859bbc0c15728e6f5464f9388f44d5e38dd650"},{"path":"comfy/comfy_types/examples/input_types.png","mode":"100644","type":"blob","sha":"27e031ccf9c32958da0d41164b567e252c1b0c5c","size":16809,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/27e031ccf9c32958da0d41164b567e252c1b0c5c"},{"path":"comfy/comfy_types/examples/required_hint.png","mode":"100644","type":"blob","sha":"22c0182a0aed3245201f2ffac86a6d3ad5b7e2ea","size":19286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22c0182a0aed3245201f2ffac86a6d3ad5b7e2ea"},{"path":"comfy/comfy_types/node_typing.py","mode":"100644","type":"blob","sha":"071b98332ee2a588448fde472f9c0f104e72d13d","size":14985,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/071b98332ee2a588448fde472f9c0f104e72d13d"},{"path":"comfy/conds.py","mode":"100644","type":"blob","sha":"5af3e93eaeecdef08d9e07901b33a70bda60fb43","size":3874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5af3e93eaeecdef08d9e07901b33a70bda60fb43"},{"path":"comfy/context_windows.py","mode":"100644","type":"blob","sha":"1e0f86026344de86fb8c504a756411dcb9adc0d1","size":31221,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1e0f86026344de86fb8c504a756411dcb9adc0d1"},{"path":"comfy/controlnet.py","mode":"100644","type":"blob","sha":"0b5e30f52a62470b400f1e288c7ddd82d658a74b","size":41326,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0b5e30f52a62470b400f1e288c7ddd82d658a74b"},{"path":"comfy/diffusers_convert.py","mode":"100644","type":"blob","sha":"fb9495348704c4f58b537f524ff6194d572d9fad","size":6796,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fb9495348704c4f58b537f524ff6194d572d9fad"},{"path":"comfy/diffusers_load.py","mode":"100644","type":"blob","sha":"56e63a7565f083eb4e3bc484a3a9f90103306a2f","size":1437,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/56e63a7565f083eb4e3bc484a3a9f90103306a2f"},{"path":"comfy/extra_samplers","mode":"040000","type":"tree","sha":"27bd35de93053231f1fbae018fed273d9da52119","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/27bd35de93053231f1fbae018fed273d9da52119"},{"path":"comfy/extra_samplers/uni_pc.py","mode":"100644","type":"blob","sha":"c57e081e45cfaa694e3e78528798f62a4698c056","size":38202,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c57e081e45cfaa694e3e78528798f62a4698c056"},{"path":"comfy/float.py","mode":"100644","type":"blob","sha":"521316fd2facaab90583da8487029a365aefd9e7","size":2485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/521316fd2facaab90583da8487029a365aefd9e7"},{"path":"comfy/gligen.py","mode":"100644","type":"blob","sha":"1d7b6c2f4cd1009ac3c52bc5f68442a91b417048","size":10800,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1d7b6c2f4cd1009ac3c52bc5f68442a91b417048"},{"path":"comfy/hooks.py","mode":"100644","type":"blob","sha":"9d07310729020a033f705395433c318152432935","size":32728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d07310729020a033f705395433c318152432935"},{"path":"comfy/image_encoders","mode":"040000","type":"tree","sha":"1fce6f631e846b5db4f57c37b08676760f57ae91","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1fce6f631e846b5db4f57c37b08676760f57ae91"},{"path":"comfy/image_encoders/dino2.py","mode":"100644","type":"blob","sha":"9b6dace9dc992a4b3fb5c3557756312bb8282cdf","size":7120,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9b6dace9dc992a4b3fb5c3557756312bb8282cdf"},{"path":"comfy/image_encoders/dino2_giant.json","mode":"100644","type":"blob","sha":"f6076a4dc98dfee6c200294397bfdfe3d2c688e1","size":512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f6076a4dc98dfee6c200294397bfdfe3d2c688e1"},{"path":"comfy/image_encoders/dino2_large.json","mode":"100644","type":"blob","sha":"43fbb58ffb4f2120f5259b6bf12c9257a047d360","size":538,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/43fbb58ffb4f2120f5259b6bf12c9257a047d360"},{"path":"comfy/k_diffusion","mode":"040000","type":"tree","sha":"273de880a926053041f6eae8326696b3ddd4b2f4","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/273de880a926053041f6eae8326696b3ddd4b2f4"},{"path":"comfy/k_diffusion/deis.py","mode":"100644","type":"blob","sha":"a1167a4a36c42b22168ea8b3d80b1d83b2505db5","size":5799,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1167a4a36c42b22168ea8b3d80b1d83b2505db5"},{"path":"comfy/k_diffusion/sa_solver.py","mode":"100644","type":"blob","sha":"0c6821b605d4b44ac81414f2c635e28ce5d9feb5","size":5622,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c6821b605d4b44ac81414f2c635e28ce5d9feb5"},{"path":"comfy/k_diffusion/sampling.py","mode":"100644","type":"blob","sha":"1ba9edad73a19ce9409b30d8148dd8da7ede55c1","size":82461,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1ba9edad73a19ce9409b30d8148dd8da7ede55c1"},{"path":"comfy/k_diffusion/utils.py","mode":"100644","type":"blob","sha":"a644df2f3cf82b32ac6e9bf2cb7bfc70c95e05f9","size":12718,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a644df2f3cf82b32ac6e9bf2cb7bfc70c95e05f9"},{"path":"comfy/latent_formats.py","mode":"100644","type":"blob","sha":"f1ca0151e0b2e101378a41daf170f094f0381522","size":29835,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f1ca0151e0b2e101378a41daf170f094f0381522"},{"path":"comfy/ldm","mode":"040000","type":"tree","sha":"b81691af9d11d83b994404d1026df8bd4e994464","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b81691af9d11d83b994404d1026df8bd4e994464"},{"path":"comfy/ldm/ace","mode":"040000","type":"tree","sha":"22933ec576aa70826dcdf99265ac2b2444a61cf6","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/22933ec576aa70826dcdf99265ac2b2444a61cf6"},{"path":"comfy/ldm/ace/attention.py","mode":"100644","type":"blob","sha":"670eb9783385b818a5ea3e435df222a6767c8515","size":30473,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/670eb9783385b818a5ea3e435df222a6767c8515"},{"path":"comfy/ldm/ace/lyric_encoder.py","mode":"100644","type":"blob","sha":"ff4359b26e8d27591d6fa59d6d931ab13596efe1","size":43155,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ff4359b26e8d27591d6fa59d6d931ab13596efe1"},{"path":"comfy/ldm/ace/model.py","mode":"100644","type":"blob","sha":"3993298539becb28f980263b7dd9a57691dd65a0","size":17216,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3993298539becb28f980263b7dd9a57691dd65a0"},{"path":"comfy/ldm/ace/vae","mode":"040000","type":"tree","sha":"fcd3ac3b6a1b1aef2fcf0c53f87a9409a9e5b263","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fcd3ac3b6a1b1aef2fcf0c53f87a9409a9e5b263"},{"path":"comfy/ldm/ace/vae/autoencoder_dc.py","mode":"100644","type":"blob","sha":"e7b1d4801e7b3f47f29cb90f41adff4d415868cd","size":22909,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e7b1d4801e7b3f47f29cb90f41adff4d415868cd"},{"path":"comfy/ldm/ace/vae/music_dcae_pipeline.py","mode":"100644","type":"blob","sha":"3c8830c176f7543a661bb25913424ea2c8f52f74","size":3622,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3c8830c176f7543a661bb25913424ea2c8f52f74"},{"path":"comfy/ldm/ace/vae/music_log_mel.py","mode":"100755","type":"blob","sha":"9c584eb7fa75ffaab1c3a42184ea75171b2a1d8f","size":3090,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9c584eb7fa75ffaab1c3a42184ea75171b2a1d8f"},{"path":"comfy/ldm/ace/vae/music_vocoder.py","mode":"100755","type":"blob","sha":"2f989fa86e8c964994886c6a22ed53e742279ec4","size":18149,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2f989fa86e8c964994886c6a22ed53e742279ec4"},{"path":"comfy/ldm/audio","mode":"040000","type":"tree","sha":"5bc19dfa6f67f2d480477f6dd0631e689d1a8d25","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5bc19dfa6f67f2d480477f6dd0631e689d1a8d25"},{"path":"comfy/ldm/audio/autoencoder.py","mode":"100644","type":"blob","sha":"78ed6ffa63ab9fca66ba009709bb262a18830dcd","size":9969,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/78ed6ffa63ab9fca66ba009709bb262a18830dcd"},{"path":"comfy/ldm/audio/dit.py","mode":"100644","type":"blob","sha":"ca865189e351948e574877dcd9a94312ff7cb86a","size":31491,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca865189e351948e574877dcd9a94312ff7cb86a"},{"path":"comfy/ldm/audio/embedders.py","mode":"100644","type":"blob","sha":"20edb365aaafe7f344a2616a53470c837d0a8a6e","size":3406,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/20edb365aaafe7f344a2616a53470c837d0a8a6e"},{"path":"comfy/ldm/aura","mode":"040000","type":"tree","sha":"0d3b541fd0cf2642db1a59b5138619d51635f2b0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0d3b541fd0cf2642db1a59b5138619d51635f2b0"},{"path":"comfy/ldm/aura/mmdit.py","mode":"100644","type":"blob","sha":"66d9613b61de36e324a2a08b05b07f58c25e35ad","size":20461,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/66d9613b61de36e324a2a08b05b07f58c25e35ad"},{"path":"comfy/ldm/cascade","mode":"040000","type":"tree","sha":"a7295a59375497e82587079c43ec5bb8bdff865b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a7295a59375497e82587079c43ec5bb8bdff865b"},{"path":"comfy/ldm/cascade/common.py","mode":"100644","type":"blob","sha":"42ef98c7a78cb1b652433ae7c92b189353e2fad6","size":6786,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/42ef98c7a78cb1b652433ae7c92b189353e2fad6"},{"path":"comfy/ldm/cascade/controlnet.py","mode":"100644","type":"blob","sha":"90473481a078323be11e2c5530de378b1ac6425c","size":4304,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/90473481a078323be11e2c5530de378b1ac6425c"},{"path":"comfy/ldm/cascade/stage_a.py","mode":"100644","type":"blob","sha":"145e6e69a7c56c0b983cd79d43f1c6d7d26fd349","size":10032,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/145e6e69a7c56c0b983cd79d43f1c6d7d26fd349"},{"path":"comfy/ldm/cascade/stage_b.py","mode":"100644","type":"blob","sha":"428c67fdf621d0af3c1bc52769c915e2ff0129c3","size":14263,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/428c67fdf621d0af3c1bc52769c915e2ff0129c3"},{"path":"comfy/ldm/cascade/stage_c.py","mode":"100644","type":"blob","sha":"ebc4434e2bf1b5d7839f0003f5c6036429e7f9dd","size":15204,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ebc4434e2bf1b5d7839f0003f5c6036429e7f9dd"},{"path":"comfy/ldm/cascade/stage_c_coder.py","mode":"100644","type":"blob","sha":"b467a70a848edeef57d7911ac844868b251f8e45","size":3501,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b467a70a848edeef57d7911ac844868b251f8e45"},{"path":"comfy/ldm/chroma","mode":"040000","type":"tree","sha":"1198c1799f99a79ab245ff4506d6bc5471974163","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1198c1799f99a79ab245ff4506d6bc5471974163"},{"path":"comfy/ldm/chroma/layers.py","mode":"100644","type":"blob","sha":"2d568434871b6a92a93c0bec028b6d37d13e072a","size":2296,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d568434871b6a92a93c0bec028b6d37d13e072a"},{"path":"comfy/ldm/chroma/model.py","mode":"100644","type":"blob","sha":"2e8ef06874628bbf09473fbd2f8babc4d545ff87","size":13153,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2e8ef06874628bbf09473fbd2f8babc4d545ff87"},{"path":"comfy/ldm/chroma_radiance","mode":"040000","type":"tree","sha":"c833208da8d8aa48e56b5c2dab7321789481f795","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c833208da8d8aa48e56b5c2dab7321789481f795"},{"path":"comfy/ldm/chroma_radiance/layers.py","mode":"100644","type":"blob","sha":"3c7bc9b6b9850a47e86649396e29fef06a678ecb","size":8676,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3c7bc9b6b9850a47e86649396e29fef06a678ecb"},{"path":"comfy/ldm/chroma_radiance/model.py","mode":"100644","type":"blob","sha":"70d1738890cbfd49865decde9d776acc3453288d","size":12751,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/70d1738890cbfd49865decde9d776acc3453288d"},{"path":"comfy/ldm/common_dit.py","mode":"100644","type":"blob","sha":"f7f56b72ca6fcd3ba2831b8881a7124d84490bee","size":474,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7f56b72ca6fcd3ba2831b8881a7124d84490bee"},{"path":"comfy/ldm/cosmos","mode":"040000","type":"tree","sha":"160b5718780889123041b52d1fa477a0d3de715f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/160b5718780889123041b52d1fa477a0d3de715f"},{"path":"comfy/ldm/cosmos/blocks.py","mode":"100644","type":"blob","sha":"afb43d469daed3fcd224fca8f163fa830d9441d3","size":31086,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/afb43d469daed3fcd224fca8f163fa830d9441d3"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer","mode":"040000","type":"tree","sha":"9854c93a3374050452c33082b0a666697adcb303","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9854c93a3374050452c33082b0a666697adcb303"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/layers3d.py","mode":"100644","type":"blob","sha":"9a3ebed6aa5362c79aff91c088cce8ba7b6f3141","size":33866,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9a3ebed6aa5362c79aff91c088cce8ba7b6f3141"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/patching.py","mode":"100644","type":"blob","sha":"87a53a1d9f9ac4fa6bdbb1f8f682c298fdd4376c","size":13796,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/87a53a1d9f9ac4fa6bdbb1f8f682c298fdd4376c"},{"path":"comfy/ldm/cosmos/cosmos_tokenizer/utils.py","mode":"100644","type":"blob","sha":"ca993006fc800db4cd016fe43e67ae7473ab1634","size":3168,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca993006fc800db4cd016fe43e67ae7473ab1634"},{"path":"comfy/ldm/cosmos/model.py","mode":"100644","type":"blob","sha":"52ef7ef4340ad0e0b8f06477981f08331399fa96","size":24058,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/52ef7ef4340ad0e0b8f06477981f08331399fa96"},{"path":"comfy/ldm/cosmos/position_embedding.py","mode":"100644","type":"blob","sha":"c925811d4c2275699a030ef8bbcb299a65918754","size":8929,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c925811d4c2275699a030ef8bbcb299a65918754"},{"path":"comfy/ldm/cosmos/predict2.py","mode":"100644","type":"blob","sha":"07a4fc79ff964c44854d196a96aeea2ef3b3ad5b","size":38759,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/07a4fc79ff964c44854d196a96aeea2ef3b3ad5b"},{"path":"comfy/ldm/cosmos/vae.py","mode":"100644","type":"blob","sha":"d64f292de735258f43c07099bee03e3c871e9a26","size":4985,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d64f292de735258f43c07099bee03e3c871e9a26"},{"path":"comfy/ldm/flux","mode":"040000","type":"tree","sha":"db3569d2f0d7f4798cf64812a654eb51f6794cee","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/db3569d2f0d7f4798cf64812a654eb51f6794cee"},{"path":"comfy/ldm/flux/controlnet.py","mode":"100644","type":"blob","sha":"7dcf82bbf3e8e9a369dda0df39f37f0653514747","size":9227,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7dcf82bbf3e8e9a369dda0df39f37f0653514747"},{"path":"comfy/ldm/flux/layers.py","mode":"100644","type":"blob","sha":"60f2bdae249dd5abd990e5de2a7eebcf29a868ee","size":15631,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/60f2bdae249dd5abd990e5de2a7eebcf29a868ee"},{"path":"comfy/ldm/flux/math.py","mode":"100644","type":"blob","sha":"6a22df8bc37735bb7d4ec2f61edd0ff1afb8a6ab","size":1602,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6a22df8bc37735bb7d4ec2f61edd0ff1afb8a6ab"},{"path":"comfy/ldm/flux/model.py","mode":"100644","type":"blob","sha":"f40c2a7a94b70869d985e4d6d5640437aad53016","size":15650,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f40c2a7a94b70869d985e4d6d5640437aad53016"},{"path":"comfy/ldm/flux/redux.py","mode":"100644","type":"blob","sha":"527e83164ea2fd1bdf7431f3791ebede00895051","size":724,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/527e83164ea2fd1bdf7431f3791ebede00895051"},{"path":"comfy/ldm/genmo","mode":"040000","type":"tree","sha":"688b483a8559ee23fa97e3701f72db2d812e3b22","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/688b483a8559ee23fa97e3701f72db2d812e3b22"},{"path":"comfy/ldm/genmo/joint_model","mode":"040000","type":"tree","sha":"f2e03c74ebafdaa4d9b02cbd395417852d051f7c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f2e03c74ebafdaa4d9b02cbd395417852d051f7c"},{"path":"comfy/ldm/genmo/joint_model/asymm_models_joint.py","mode":"100644","type":"blob","sha":"5c1bb4d42330bdc76a6fc415f2283871fd4f730c","size":19553,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5c1bb4d42330bdc76a6fc415f2283871fd4f730c"},{"path":"comfy/ldm/genmo/joint_model/layers.py","mode":"100644","type":"blob","sha":"e310bd717833b29e3730894370a55cd49802de93","size":5053,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e310bd717833b29e3730894370a55cd49802de93"},{"path":"comfy/ldm/genmo/joint_model/rope_mixed.py","mode":"100644","type":"blob","sha":"dee3fa21f5318a610321fc9372553d618462f773","size":2649,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dee3fa21f5318a610321fc9372553d618462f773"},{"path":"comfy/ldm/genmo/joint_model/temporal_rope.py","mode":"100644","type":"blob","sha":"88f5d6d26151db0c8ad0a89fcf748c45d4b89bc0","size":1255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/88f5d6d26151db0c8ad0a89fcf748c45d4b89bc0"},{"path":"comfy/ldm/genmo/joint_model/utils.py","mode":"100644","type":"blob","sha":"1b399d5d2128b7f5c7be141c3d8e7047df93b273","size":3671,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1b399d5d2128b7f5c7be141c3d8e7047df93b273"},{"path":"comfy/ldm/genmo/vae","mode":"040000","type":"tree","sha":"3d9c703714421c77bd21d86c7426ab172e4217fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3d9c703714421c77bd21d86c7426ab172e4217fc"},{"path":"comfy/ldm/genmo/vae/model.py","mode":"100644","type":"blob","sha":"1bde0c1ed7372be184e634777b9e27b67692b1f4","size":22276,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bde0c1ed7372be184e634777b9e27b67692b1f4"},{"path":"comfy/ldm/hidream","mode":"040000","type":"tree","sha":"7c9d43e82f40eb1564765f0d013ab5d26e4ef589","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7c9d43e82f40eb1564765f0d013ab5d26e4ef589"},{"path":"comfy/ldm/hidream/model.py","mode":"100644","type":"blob","sha":"28d81c79e55b2a57d670633733654b64d5700c07","size":34966,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28d81c79e55b2a57d670633733654b64d5700c07"},{"path":"comfy/ldm/hunyuan3d","mode":"040000","type":"tree","sha":"476fafde1e44d8352d223be9160a8b5e3c69aa62","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/476fafde1e44d8352d223be9160a8b5e3c69aa62"},{"path":"comfy/ldm/hunyuan3d/model.py","mode":"100644","type":"blob","sha":"4991b164531e1b095f748f2aa5cdb06a59542fc2","size":6453,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4991b164531e1b095f748f2aa5cdb06a59542fc2"},{"path":"comfy/ldm/hunyuan3d/vae.py","mode":"100644","type":"blob","sha":"76094482700f8b2fbd8379323640b4ed7fe0a01a","size":36006,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/76094482700f8b2fbd8379323640b4ed7fe0a01a"},{"path":"comfy/ldm/hunyuan3dv2_1","mode":"040000","type":"tree","sha":"dfff27a7ba366dce4ebc5c72f532752e7f8b8c0c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/dfff27a7ba366dce4ebc5c72f532752e7f8b8c0c"},{"path":"comfy/ldm/hunyuan3dv2_1/hunyuandit.py","mode":"100644","type":"blob","sha":"d48d9d64209c0046aeb0e9ced28ae0fb96ecb857","size":23255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d48d9d64209c0046aeb0e9ced28ae0fb96ecb857"},{"path":"comfy/ldm/hunyuan_video","mode":"040000","type":"tree","sha":"0e719b665e18d5b60c219f14d7fa620d58e8368e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0e719b665e18d5b60c219f14d7fa620d58e8368e"},{"path":"comfy/ldm/hunyuan_video/model.py","mode":"100644","type":"blob","sha":"55ab550f879a268a5e1b94c3642948d61cfb4bee","size":22310,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/55ab550f879a268a5e1b94c3642948d61cfb4bee"},{"path":"comfy/ldm/hunyuan_video/upsampler.py","mode":"100644","type":"blob","sha":"85f515f67abc3a93093c35ea130379197d92be43","size":4168,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/85f515f67abc3a93093c35ea130379197d92be43"},{"path":"comfy/ldm/hunyuan_video/vae.py","mode":"100644","type":"blob","sha":"40c12b18334dcc003a59c882b63c7044fe5e679e","size":5728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/40c12b18334dcc003a59c882b63c7044fe5e679e"},{"path":"comfy/ldm/hunyuan_video/vae_refiner.py","mode":"100644","type":"blob","sha":"ddf77cd0e2b101ac05f88b242dc96d0a5b24fac7","size":11941,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ddf77cd0e2b101ac05f88b242dc96d0a5b24fac7"},{"path":"comfy/ldm/hydit","mode":"040000","type":"tree","sha":"1a218a5b420df99819992fe9fde464fb050cb4d9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1a218a5b420df99819992fe9fde464fb050cb4d9"},{"path":"comfy/ldm/hydit/attn_layers.py","mode":"100644","type":"blob","sha":"3ca25a5df175bcadd8e50ad34ee0bfcddcb37aa0","size":9869,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ca25a5df175bcadd8e50ad34ee0bfcddcb37aa0"},{"path":"comfy/ldm/hydit/controlnet.py","mode":"100644","type":"blob","sha":"31a6bff9409bb5264e552f91197915a136c3964d","size":10282,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31a6bff9409bb5264e552f91197915a136c3964d"},{"path":"comfy/ldm/hydit/models.py","mode":"100644","type":"blob","sha":"5ba2b76e0cad3c611fce1e74b024a66a2255b814","size":17193,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5ba2b76e0cad3c611fce1e74b024a66a2255b814"},{"path":"comfy/ldm/hydit/poolers.py","mode":"100644","type":"blob","sha":"c1b878ed6b0541116794635c5c1b53a7ca13af47","size":1919,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c1b878ed6b0541116794635c5c1b53a7ca13af47"},{"path":"comfy/ldm/hydit/posemb_layers.py","mode":"100644","type":"blob","sha":"dcb41a713cd94ea8472ff26e8865066887b1e486","size":8689,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dcb41a713cd94ea8472ff26e8865066887b1e486"},{"path":"comfy/ldm/kandinsky5","mode":"040000","type":"tree","sha":"4095f92c537b57c07c38041e38f8b4ce52ab8edd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/4095f92c537b57c07c38041e38f8b4ce52ab8edd"},{"path":"comfy/ldm/kandinsky5/model.py","mode":"100644","type":"blob","sha":"1509de2f83d7c672f32145faa6fb583cc0def989","size":21652,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1509de2f83d7c672f32145faa6fb583cc0def989"},{"path":"comfy/ldm/lightricks","mode":"040000","type":"tree","sha":"1357ba23466cf7d5dc5b5812c256cc86e0927701","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1357ba23466cf7d5dc5b5812c256cc86e0927701"},{"path":"comfy/ldm/lightricks/model.py","mode":"100644","type":"blob","sha":"593f7940f8cc7c0609ca6305cf00564c213115b3","size":20764,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/593f7940f8cc7c0609ca6305cf00564c213115b3"},{"path":"comfy/ldm/lightricks/symmetric_patchifier.py","mode":"100644","type":"blob","sha":"4b9972b9fb589bb5516c64dd557c0914dda45116","size":3950,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4b9972b9fb589bb5516c64dd557c0914dda45116"},{"path":"comfy/ldm/lightricks/vae","mode":"040000","type":"tree","sha":"55baa8a280eb205fce4f580b7d587e30e0334710","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/55baa8a280eb205fce4f580b7d587e30e0334710"},{"path":"comfy/ldm/lightricks/vae/causal_conv3d.py","mode":"100644","type":"blob","sha":"70d612e86376c86bd73a95df620a5434871ee2c7","size":1813,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/70d612e86376c86bd73a95df620a5434871ee2c7"},{"path":"comfy/ldm/lightricks/vae/causal_video_autoencoder.py","mode":"100644","type":"blob","sha":"75ed069ad45dc2f915f0c749f1afc3536d292e33","size":41448,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/75ed069ad45dc2f915f0c749f1afc3536d292e33"},{"path":"comfy/ldm/lightricks/vae/conv_nd_factory.py","mode":"100644","type":"blob","sha":"b4026b14fae386850459b18fb06e8b5d7f79ab94","size":2570,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b4026b14fae386850459b18fb06e8b5d7f79ab94"},{"path":"comfy/ldm/lightricks/vae/dual_conv3d.py","mode":"100644","type":"blob","sha":"dcf889296750d3d7e553af37ecf77d1b10245af3","size":6885,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dcf889296750d3d7e553af37ecf77d1b10245af3"},{"path":"comfy/ldm/lightricks/vae/pixel_norm.py","mode":"100644","type":"blob","sha":"9bc3ea60e8a6453e7e12a7fb5aca4de3958a2567","size":307,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9bc3ea60e8a6453e7e12a7fb5aca4de3958a2567"},{"path":"comfy/ldm/lumina","mode":"040000","type":"tree","sha":"25ed9ec5c1e9bdb6ae797ea685f954891933fb18","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/25ed9ec5c1e9bdb6ae797ea685f954891933fb18"},{"path":"comfy/ldm/lumina/controlnet.py","mode":"100644","type":"blob","sha":"8e2de7977536daf9779e27d6e019cdea40049e0c","size":6539,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8e2de7977536daf9779e27d6e019cdea40049e0c"},{"path":"comfy/ldm/lumina/model.py","mode":"100644","type":"blob","sha":"e80b1c1389f504be4ecc81f505b330d1473da8ae","size":25439,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e80b1c1389f504be4ecc81f505b330d1473da8ae"},{"path":"comfy/ldm/mmaudio","mode":"040000","type":"tree","sha":"138e8d4422948cec7ed2cb2ab37894398b9d9536","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/138e8d4422948cec7ed2cb2ab37894398b9d9536"},{"path":"comfy/ldm/mmaudio/vae","mode":"040000","type":"tree","sha":"b251266041a86b7e4e7815744acf6851d7a3bd9f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b251266041a86b7e4e7815744acf6851d7a3bd9f"},{"path":"comfy/ldm/mmaudio/vae/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/mmaudio/vae/activations.py","mode":"100644","type":"blob","sha":"db9192e3e4c4d2ca318178bb93a959beb9bbff42","size":4517,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/db9192e3e4c4d2ca318178bb93a959beb9bbff42"},{"path":"comfy/ldm/mmaudio/vae/alias_free_torch.py","mode":"100644","type":"blob","sha":"35c70b89712017a616add51fc22537093378657d","size":5719,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35c70b89712017a616add51fc22537093378657d"},{"path":"comfy/ldm/mmaudio/vae/autoencoder.py","mode":"100644","type":"blob","sha":"cbb9de302092957902e1b32fff3c687cc89d1058","size":4717,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cbb9de302092957902e1b32fff3c687cc89d1058"},{"path":"comfy/ldm/mmaudio/vae/bigvgan.py","mode":"100644","type":"blob","sha":"3a24337f62342220685662fa7bb3a9ffcc702ff1","size":8366,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3a24337f62342220685662fa7bb3a9ffcc702ff1"},{"path":"comfy/ldm/mmaudio/vae/distributions.py","mode":"100644","type":"blob","sha":"df987c5ec3faaba7da2b02029ad413134bfa08ad","size":2964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/df987c5ec3faaba7da2b02029ad413134bfa08ad"},{"path":"comfy/ldm/mmaudio/vae/vae.py","mode":"100644","type":"blob","sha":"62f24606c111e8fcd99b2adbf93761541c02e032","size":14532,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/62f24606c111e8fcd99b2adbf93761541c02e032"},{"path":"comfy/ldm/mmaudio/vae/vae_modules.py","mode":"100644","type":"blob","sha":"3ad05134bc44e05c54fd7acb8e2fa960d86bb1fb","size":3875,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ad05134bc44e05c54fd7acb8e2fa960d86bb1fb"},{"path":"comfy/ldm/models","mode":"040000","type":"tree","sha":"0a1e8c3252178ce34ec51270b1f7cbcec725ab5b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0a1e8c3252178ce34ec51270b1f7cbcec725ab5b"},{"path":"comfy/ldm/models/autoencoder.py","mode":"100644","type":"blob","sha":"4f50810dc7d6e004ea917e703c12cb49d23a11a3","size":9706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4f50810dc7d6e004ea917e703c12cb49d23a11a3"},{"path":"comfy/ldm/modules","mode":"040000","type":"tree","sha":"99408045b039bc49f256927bec37cf20e133d81e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/99408045b039bc49f256927bec37cf20e133d81e"},{"path":"comfy/ldm/modules/attention.py","mode":"100644","type":"blob","sha":"a8800ded0ca6920d23810a69c5b7904f4f74d876","size":40794,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a8800ded0ca6920d23810a69c5b7904f4f74d876"},{"path":"comfy/ldm/modules/diffusionmodules","mode":"040000","type":"tree","sha":"50cc22fc9995fb74d7391e1ed920c4af62da7033","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/50cc22fc9995fb74d7391e1ed920c4af62da7033"},{"path":"comfy/ldm/modules/diffusionmodules/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/diffusionmodules/mmdit.py","mode":"100644","type":"blob","sha":"0dc8fe78942439d814af2f215134f47d8dfcbd9c","size":37943,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0dc8fe78942439d814af2f215134f47d8dfcbd9c"},{"path":"comfy/ldm/modules/diffusionmodules/model.py","mode":"100644","type":"blob","sha":"681a55db5a1bf78d7f6f8eade5e5babfc6faddd5","size":31735,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/681a55db5a1bf78d7f6f8eade5e5babfc6faddd5"},{"path":"comfy/ldm/modules/diffusionmodules/openaimodel.py","mode":"100644","type":"blob","sha":"4c8d53cac9c2631f6985a3c670128bb4316b11ca","size":37382,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c8d53cac9c2631f6985a3c670128bb4316b11ca"},{"path":"comfy/ldm/modules/diffusionmodules/upscaling.py","mode":"100644","type":"blob","sha":"9dbf1fe7b93b0c7f1a9e8cbf8e89d0b33c282a08","size":3645,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9dbf1fe7b93b0c7f1a9e8cbf8e89d0b33c282a08"},{"path":"comfy/ldm/modules/diffusionmodules/util.py","mode":"100644","type":"blob","sha":"233011dc9524c3d5258c69c673385aaf45329c81","size":11889,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/233011dc9524c3d5258c69c673385aaf45329c81"},{"path":"comfy/ldm/modules/distributions","mode":"040000","type":"tree","sha":"af6f82c1b67fa9377a66b43ccad0df25b97f44a6","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/af6f82c1b67fa9377a66b43ccad0df25b97f44a6"},{"path":"comfy/ldm/modules/distributions/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/distributions/distributions.py","mode":"100644","type":"blob","sha":"df987c5ec3faaba7da2b02029ad413134bfa08ad","size":2964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/df987c5ec3faaba7da2b02029ad413134bfa08ad"},{"path":"comfy/ldm/modules/ema.py","mode":"100644","type":"blob","sha":"bded25019b9bcbcd0260f0b8185f8c7859ca58c4","size":3110,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bded25019b9bcbcd0260f0b8185f8c7859ca58c4"},{"path":"comfy/ldm/modules/encoders","mode":"040000","type":"tree","sha":"2528be94f31d1dc6160c572dbe8885538645e054","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2528be94f31d1dc6160c572dbe8885538645e054"},{"path":"comfy/ldm/modules/encoders/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy/ldm/modules/encoders/noise_aug_modules.py","mode":"100644","type":"blob","sha":"a5d8660301636fde75808cba50afa539cf1162e0","size":1548,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a5d8660301636fde75808cba50afa539cf1162e0"},{"path":"comfy/ldm/modules/sub_quadratic_attention.py","mode":"100644","type":"blob","sha":"fab145f1c208930f1d5bd385325e4e844b959aca","size":9560,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fab145f1c208930f1d5bd385325e4e844b959aca"},{"path":"comfy/ldm/modules/temporal_ae.py","mode":"100644","type":"blob","sha":"e0f78bf66b7b06b3f49f5add7a8a502384a9f445","size":7945,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e0f78bf66b7b06b3f49f5add7a8a502384a9f445"},{"path":"comfy/ldm/omnigen","mode":"040000","type":"tree","sha":"c2452b51afbd9b3fff2e944cae81108e4cf0277d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c2452b51afbd9b3fff2e944cae81108e4cf0277d"},{"path":"comfy/ldm/omnigen/omnigen2.py","mode":"100644","type":"blob","sha":"82edc92da71e66a6c4b3777d90c781060dd046e9","size":23255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/82edc92da71e66a6c4b3777d90c781060dd046e9"},{"path":"comfy/ldm/pixart","mode":"040000","type":"tree","sha":"2b12b1910a5d1d77d14ad31ddd97055b203f953d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2b12b1910a5d1d77d14ad31ddd97055b203f953d"},{"path":"comfy/ldm/pixart/blocks.py","mode":"100644","type":"blob","sha":"2225076e5754d08cd618014469c2464bad055334","size":16840,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2225076e5754d08cd618014469c2464bad055334"},{"path":"comfy/ldm/pixart/pixartms.py","mode":"100644","type":"blob","sha":"d1ac49d84c554f1531427dea251dd6d2ea3e0dc7","size":10402,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d1ac49d84c554f1531427dea251dd6d2ea3e0dc7"},{"path":"comfy/ldm/qwen_image","mode":"040000","type":"tree","sha":"b51bb584d1ad16aa7a7d1e6419319ddba3fa0229","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b51bb584d1ad16aa7a7d1e6419319ddba3fa0229"},{"path":"comfy/ldm/qwen_image/controlnet.py","mode":"100644","type":"blob","sha":"a6d408104a0055a4d1d7f69f2d729f98bcea64f7","size":2966,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a6d408104a0055a4d1d7f69f2d729f98bcea64f7"},{"path":"comfy/ldm/qwen_image/model.py","mode":"100644","type":"blob","sha":"00c5975357b4c74b0be4c484424bed2d97775275","size":24390,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00c5975357b4c74b0be4c484424bed2d97775275"},{"path":"comfy/ldm/util.py","mode":"100644","type":"blob","sha":"30b4b4721056216ee817e7d54d0bca9e09b79098","size":7232,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/30b4b4721056216ee817e7d54d0bca9e09b79098"},{"path":"comfy/ldm/wan","mode":"040000","type":"tree","sha":"9a90c2b231be551fafb89191caa8cd9816c7685b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9a90c2b231be551fafb89191caa8cd9816c7685b"},{"path":"comfy/ldm/wan/model.py","mode":"100644","type":"blob","sha":"4216ce83150d717664b42617bb5a0edb53daf50a","size":68153,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4216ce83150d717664b42617bb5a0edb53daf50a"},{"path":"comfy/ldm/wan/model_animate.py","mode":"100644","type":"blob","sha":"84d7adec46652e1134fc35ebb66e203fc952a1fd","size":23120,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/84d7adec46652e1134fc35ebb66e203fc952a1fd"},{"path":"comfy/ldm/wan/vae.py","mode":"100644","type":"blob","sha":"08315f1a8d3ef755d92681949b9add22eee5e0d8","size":18569,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/08315f1a8d3ef755d92681949b9add22eee5e0d8"},{"path":"comfy/ldm/wan/vae2_2.py","mode":"100644","type":"blob","sha":"8e1593a54c9464aa685f8cafc05e3e155d9f02d0","size":22621,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8e1593a54c9464aa685f8cafc05e3e155d9f02d0"},{"path":"comfy/lora.py","mode":"100644","type":"blob","sha":"2ed0acb9de20d84f935085f85364c03dbd328d01","size":20274,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2ed0acb9de20d84f935085f85364c03dbd328d01"},{"path":"comfy/lora_convert.py","mode":"100644","type":"blob","sha":"9d8d21efeab26718fdd7f7f14de82f60c4a4ebdc","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9d8d21efeab26718fdd7f7f14de82f60c4a4ebdc"},{"path":"comfy/model_base.py","mode":"100644","type":"blob","sha":"c4f3c0639bab85536c3bdabaf1e580fbcc2a54aa","size":77441,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c4f3c0639bab85536c3bdabaf1e580fbcc2a54aa"},{"path":"comfy/model_detection.py","mode":"100644","type":"blob","sha":"539e296ed21882cc31c37d608f8418d8678547e1","size":58040,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/539e296ed21882cc31c37d608f8418d8678547e1"},{"path":"comfy/model_management.py","mode":"100644","type":"blob","sha":"1889ab0acda7b27494fd259cd72bf2109f90daf1","size":49242,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1889ab0acda7b27494fd259cd72bf2109f90daf1"},{"path":"comfy/model_patcher.py","mode":"100644","type":"blob","sha":"93d26c6906651ab694d2164df5957655f8c667df","size":59315,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93d26c6906651ab694d2164df5957655f8c667df"},{"path":"comfy/model_sampling.py","mode":"100644","type":"blob","sha":"2a00ed8192f4243de12c44131e77e5b9849af038","size":13485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a00ed8192f4243de12c44131e77e5b9849af038"},{"path":"comfy/nested_tensor.py","mode":"100644","type":"blob","sha":"b700816fabcb0767502e02d4a5baf6bcdce31aa4","size":2443,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b700816fabcb0767502e02d4a5baf6bcdce31aa4"},{"path":"comfy/ops.py","mode":"100644","type":"blob","sha":"16889bb826857a4c822d86abf7bbd5937ebb8d10","size":28573,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/16889bb826857a4c822d86abf7bbd5937ebb8d10"},{"path":"comfy/options.py","mode":"100644","type":"blob","sha":"f7f8af41ebd8b9669ef0ef21827ea6195bcb4752","size":111,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f7f8af41ebd8b9669ef0ef21827ea6195bcb4752"},{"path":"comfy/patcher_extension.py","mode":"100644","type":"blob","sha":"5ee4d5ee5523d6d0eaa37d4f2a62726c1340ef4b","size":6811,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5ee4d5ee5523d6d0eaa37d4f2a62726c1340ef4b"},{"path":"comfy/pixel_space_convert.py","mode":"100644","type":"blob","sha":"049bbcfb42d273108c12cd7856ca46273ceca1cd","size":528,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/049bbcfb42d273108c12cd7856ca46273ceca1cd"},{"path":"comfy/quant_ops.py","mode":"100644","type":"blob","sha":"cd96541d78eb92f620c31313111cf3eec7081f31","size":21180,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd96541d78eb92f620c31313111cf3eec7081f31"},{"path":"comfy/rmsnorm.py","mode":"100644","type":"blob","sha":"555542a46b54b9821b394374147d7fc4f9bc74c1","size":1987,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/555542a46b54b9821b394374147d7fc4f9bc74c1"},{"path":"comfy/sample.py","mode":"100644","type":"blob","sha":"2f8f3a51c5fc30e804e643c75a1b267fb0a94697","size":3707,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2f8f3a51c5fc30e804e643c75a1b267fb0a94697"},{"path":"comfy/sampler_helpers.py","mode":"100644","type":"blob","sha":"9134e6d711352ffdde4494105bb4b080b6a28035","size":7797,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9134e6d711352ffdde4494105bb4b080b6a28035"},{"path":"comfy/samplers.py","mode":"100755","type":"blob","sha":"1989ef107adca2e5c560caa623ce746afe27d312","size":49683,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1989ef107adca2e5c560caa623ce746afe27d312"},{"path":"comfy/sd.py","mode":"100644","type":"blob","sha":"7de7dd9c65d5e842646586eb3973937afb0b05eb","size":86359,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7de7dd9c65d5e842646586eb3973937afb0b05eb"},{"path":"comfy/sd1_clip.py","mode":"100644","type":"blob","sha":"c512ca5d023b6dcd25d95b1bde207d136099e6eb","size":28188,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c512ca5d023b6dcd25d95b1bde207d136099e6eb"},{"path":"comfy/sd1_clip_config.json","mode":"100644","type":"blob","sha":"3ba8c6b5bc3d6389fb6c9e2c8231729ad9d663a4","size":616,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3ba8c6b5bc3d6389fb6c9e2c8231729ad9d663a4"},{"path":"comfy/sd1_tokenizer","mode":"040000","type":"tree","sha":"19aba8a796f3f91a6066a6535be7ae7309ef8280","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/19aba8a796f3f91a6066a6535be7ae7309ef8280"},{"path":"comfy/sd1_tokenizer/merges.txt","mode":"100644","type":"blob","sha":"76e821f1b6f0a9709293c3b6b51ed90980b3166b","size":524619,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/76e821f1b6f0a9709293c3b6b51ed90980b3166b"},{"path":"comfy/sd1_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"2c2130b544c0c5a72d5d00da071ba130a9800fb2","size":472,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2c2130b544c0c5a72d5d00da071ba130a9800fb2"},{"path":"comfy/sd1_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"8f7b3151d008bdee5739e317b887be0fc3b805c3","size":808,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8f7b3151d008bdee5739e317b887be0fc3b805c3"},{"path":"comfy/sd1_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"469be27c5c010538f845f518c4f5e8574c78f7c8","size":1059962,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/469be27c5c010538f845f518c4f5e8574c78f7c8"},{"path":"comfy/sdxl_clip.py","mode":"100644","type":"blob","sha":"c8cef14e4d6f81eb8ec8f4b8825c8afaa1d5caf3","size":5133,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c8cef14e4d6f81eb8ec8f4b8825c8afaa1d5caf3"},{"path":"comfy/supported_models.py","mode":"100644","type":"blob","sha":"1888f35baf31b3918e37a00233b03123daa9642c","size":51521,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1888f35baf31b3918e37a00233b03123daa9642c"},{"path":"comfy/supported_models_base.py","mode":"100644","type":"blob","sha":"0e7a829ba13b97e48e8d632438a5c4fff1e51edd","size":4566,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0e7a829ba13b97e48e8d632438a5c4fff1e51edd"},{"path":"comfy/t2i_adapter","mode":"040000","type":"tree","sha":"1db117fc44c0a5ea038917accdc639a51f82d446","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1db117fc44c0a5ea038917accdc639a51f82d446"},{"path":"comfy/t2i_adapter/adapter.py","mode":"100644","type":"blob","sha":"10ea18e326693f237b3b219970c86e3808f6d334","size":10054,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/10ea18e326693f237b3b219970c86e3808f6d334"},{"path":"comfy/taesd","mode":"040000","type":"tree","sha":"57225baf75533b68e105cb092d7c61f12a6c6169","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/57225baf75533b68e105cb092d7c61f12a6c6169"},{"path":"comfy/taesd/taehv.py","mode":"100644","type":"blob","sha":"3dfe1e4d482db0ce60921214a3097ce2976f331a","size":7937,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3dfe1e4d482db0ce60921214a3097ce2976f331a"},{"path":"comfy/taesd/taesd.py","mode":"100644","type":"blob","sha":"ce36f1a84dae599a35e84a8da3462408c0f0ccc6","size":3143,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce36f1a84dae599a35e84a8da3462408c0f0ccc6"},{"path":"comfy/text_encoders","mode":"040000","type":"tree","sha":"320819c086268190be25fa8cca69ac2fe8759ec8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/320819c086268190be25fa8cca69ac2fe8759ec8"},{"path":"comfy/text_encoders/ace.py","mode":"100644","type":"blob","sha":"d650bb10d5d5bfdd485f18095e4a99ed7b06b6b7","size":6323,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d650bb10d5d5bfdd485f18095e4a99ed7b06b6b7"},{"path":"comfy/text_encoders/ace_lyrics_tokenizer","mode":"040000","type":"tree","sha":"de2daa82e47187bae78324e154ee90c263896e3e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/de2daa82e47187bae78324e154ee90c263896e3e"},{"path":"comfy/text_encoders/ace_lyrics_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"519ed340c36e19dfe15ccffd7aa5a31a261d70a5","size":364005,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/519ed340c36e19dfe15ccffd7aa5a31a261d70a5"},{"path":"comfy/text_encoders/ace_text_cleaners.py","mode":"100644","type":"blob","sha":"cd31d8d8cdffcda51cc26405c3f6f2bcee410d48","size":13349,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd31d8d8cdffcda51cc26405c3f6f2bcee410d48"},{"path":"comfy/text_encoders/aura_t5.py","mode":"100644","type":"blob","sha":"cf4252eea3ad6ed02e0a8ee4c13385c78909cbd8","size":1694,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cf4252eea3ad6ed02e0a8ee4c13385c78909cbd8"},{"path":"comfy/text_encoders/bert.py","mode":"100644","type":"blob","sha":"ed4638a9ab4882ac9f72033e3a6f07537682d807","size":6821,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ed4638a9ab4882ac9f72033e3a6f07537682d807"},{"path":"comfy/text_encoders/byt5_config_small_glyph.json","mode":"100644","type":"blob","sha":"0239c7164ef3eaa72e0114e85c1f37847f3602ae","size":505,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0239c7164ef3eaa72e0114e85c1f37847f3602ae"},{"path":"comfy/text_encoders/byt5_tokenizer","mode":"040000","type":"tree","sha":"ca252907b1bae80675a3d06954e5b4a4b5a508e9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/ca252907b1bae80675a3d06954e5b4a4b5a508e9"},{"path":"comfy/text_encoders/byt5_tokenizer/added_tokens.json","mode":"100644","type":"blob","sha":"93c190b5690dd55aac16723222a9909e2be0faec","size":3018,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93c190b5690dd55aac16723222a9909e2be0faec"},{"path":"comfy/text_encoders/byt5_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"04fd58b5fbf6a36fda564a656b14c137ef045689","size":3090,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/04fd58b5fbf6a36fda564a656b14c137ef045689"},{"path":"comfy/text_encoders/byt5_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"5b1fe24c1b1962f69a7754a26e6770ae7bcb7764","size":25602,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5b1fe24c1b1962f69a7754a26e6770ae7bcb7764"},{"path":"comfy/text_encoders/cosmos.py","mode":"100644","type":"blob","sha":"448381fa9f9c50adc8d910a42434dbd07518a4ef","size":2544,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/448381fa9f9c50adc8d910a42434dbd07518a4ef"},{"path":"comfy/text_encoders/flux.py","mode":"100644","type":"blob","sha":"21d93d75760385ce865a60b1fdc86529688f2164","size":8312,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/21d93d75760385ce865a60b1fdc86529688f2164"},{"path":"comfy/text_encoders/genmo.py","mode":"100644","type":"blob","sha":"5daea81355c1ece6e1ebe03685fa674051f06213","size":1822,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5daea81355c1ece6e1ebe03685fa674051f06213"},{"path":"comfy/text_encoders/hidream.py","mode":"100644","type":"blob","sha":"600b344803dd356d7c84d650c3c564317e378faf","size":7067,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/600b344803dd356d7c84d650c3c564317e378faf"},{"path":"comfy/text_encoders/hunyuan_image.py","mode":"100644","type":"blob","sha":"cd198036c838279ed2449f82f934067a86be7ae4","size":5813,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd198036c838279ed2449f82f934067a86be7ae4"},{"path":"comfy/text_encoders/hunyuan_video.py","mode":"100644","type":"blob","sha":"a9a6c525e0115b1b69f4fc2984dc787c8190c901","size":9355,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a9a6c525e0115b1b69f4fc2984dc787c8190c901"},{"path":"comfy/text_encoders/hydit.py","mode":"100644","type":"blob","sha":"ac6994529acd8493e6ec65a975f8984fd06749e8","size":4696,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ac6994529acd8493e6ec65a975f8984fd06749e8"},{"path":"comfy/text_encoders/hydit_clip.json","mode":"100644","type":"blob","sha":"c41c7c1ff376407f42e3ff20ab26faaa98bb5e65","size":897,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c41c7c1ff376407f42e3ff20ab26faaa98bb5e65"},{"path":"comfy/text_encoders/hydit_clip_tokenizer","mode":"040000","type":"tree","sha":"5ac3bf99c88cf11e8dc3828c1dbdd20274d6fc75","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5ac3bf99c88cf11e8dc3828c1dbdd20274d6fc75"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"a8b3208c2884c4efb86e49300fdd3dc877220cdf","size":125,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a8b3208c2884c4efb86e49300fdd3dc877220cdf"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"a14356073e11a885074a7cdbddc749463cefd911","size":559,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a14356073e11a885074a7cdbddc749463cefd911"},{"path":"comfy/text_encoders/hydit_clip_tokenizer/vocab.txt","mode":"100644","type":"blob","sha":"6246906805d02aca01714c71e4c8d77b69a7a131","size":316627,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6246906805d02aca01714c71e4c8d77b69a7a131"},{"path":"comfy/text_encoders/jina_clip_2.py","mode":"100644","type":"blob","sha":"0cffb6d162bd0a2325039e6d1a258cb183506968","size":10826,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0cffb6d162bd0a2325039e6d1a258cb183506968"},{"path":"comfy/text_encoders/kandinsky5.py","mode":"100644","type":"blob","sha":"be086458cfce34c2fd027cabbd3257bbf2e4fd2c","size":4324,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be086458cfce34c2fd027cabbd3257bbf2e4fd2c"},{"path":"comfy/text_encoders/llama.py","mode":"100644","type":"blob","sha":"ed29e014d636ecb08dffa37151a29e9663444ff2","size":23928,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ed29e014d636ecb08dffa37151a29e9663444ff2"},{"path":"comfy/text_encoders/llama_tokenizer","mode":"040000","type":"tree","sha":"596b408d4b6bd3760a9e0435a821fdbbc967110a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/596b408d4b6bd3760a9e0435a821fdbbc967110a"},{"path":"comfy/text_encoders/llama_tokenizer/tokenizer.json","mode":"100644","type":"blob","sha":"99f23954b4bade407d4f3a18892f21f80b412d68","size":9085835,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/99f23954b4bade407d4f3a18892f21f80b412d68"},{"path":"comfy/text_encoders/llama_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"0b336f5a5199c43e7305481f4e9e26e292b2f0fc","size":51699,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0b336f5a5199c43e7305481f4e9e26e292b2f0fc"},{"path":"comfy/text_encoders/long_clipl.py","mode":"100644","type":"blob","sha":"8d4c7619d4b2007462cf14721bcdae093a5b4a7b","size":1085,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8d4c7619d4b2007462cf14721bcdae093a5b4a7b"},{"path":"comfy/text_encoders/lt.py","mode":"100644","type":"blob","sha":"48ea67e6782388637dbe55b3e6366cda051ec519","size":986,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/48ea67e6782388637dbe55b3e6366cda051ec519"},{"path":"comfy/text_encoders/lumina2.py","mode":"100644","type":"blob","sha":"b29a7cc873e0956aa4c55fe3c5ff692ec7e8b650","size":4089,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b29a7cc873e0956aa4c55fe3c5ff692ec7e8b650"},{"path":"comfy/text_encoders/mt5_config_xl.json","mode":"100644","type":"blob","sha":"092fefd6e32dac566e443fc03eae53f6a8b57400","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/092fefd6e32dac566e443fc03eae53f6a8b57400"},{"path":"comfy/text_encoders/newbie.py","mode":"100644","type":"blob","sha":"db2324576d6eef7feef8aa8f368a1df0e1d8a6fb","size":2911,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/db2324576d6eef7feef8aa8f368a1df0e1d8a6fb"},{"path":"comfy/text_encoders/omnigen2.py","mode":"100644","type":"blob","sha":"50aa4121fbfb198b1d95d55b8bf6f5d995f0ef3a","size":2732,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/50aa4121fbfb198b1d95d55b8bf6f5d995f0ef3a"},{"path":"comfy/text_encoders/ovis.py","mode":"100644","type":"blob","sha":"5754424d25b1e48abc001cf8b671189ee564a9d1","size":3607,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5754424d25b1e48abc001cf8b671189ee564a9d1"},{"path":"comfy/text_encoders/pixart_t5.py","mode":"100644","type":"blob","sha":"e5e5f18bed0c73029e5d40f6fb4b535a97d2ab7e","size":2139,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e5e5f18bed0c73029e5d40f6fb4b535a97d2ab7e"},{"path":"comfy/text_encoders/qwen25_tokenizer","mode":"040000","type":"tree","sha":"71cdea18d8b4ce3315a9c1789301ac98cb6f21f0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/71cdea18d8b4ce3315a9c1789301ac98cb6f21f0"},{"path":"comfy/text_encoders/qwen25_tokenizer/merges.txt","mode":"100644","type":"blob","sha":"31349551d90c7606f325fe0f11bbb8bd5fa0d7c7","size":1671853,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31349551d90c7606f325fe0f11bbb8bd5fa0d7c7"},{"path":"comfy/text_encoders/qwen25_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"df5b5d7fe9b19c0bdb6379b5b4a423366140d50a","size":8018,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/df5b5d7fe9b19c0bdb6379b5b4a423366140d50a"},{"path":"comfy/text_encoders/qwen25_tokenizer/vocab.json","mode":"100644","type":"blob","sha":"4783fe10ac3adce15ac8f358ef5462739852c569","size":2776833,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4783fe10ac3adce15ac8f358ef5462739852c569"},{"path":"comfy/text_encoders/qwen_image.py","mode":"100644","type":"blob","sha":"5c14dec23397e056dbd56180c7cb52a85f637ae2","size":5442,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5c14dec23397e056dbd56180c7cb52a85f637ae2"},{"path":"comfy/text_encoders/qwen_vl.py","mode":"100644","type":"blob","sha":"3b18ce730f62b7975da7b49b61533e4c2b8791c1","size":15942,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3b18ce730f62b7975da7b49b61533e4c2b8791c1"},{"path":"comfy/text_encoders/sa_t5.py","mode":"100644","type":"blob","sha":"2803926ac01867edc686c4ca6625a5c5aba32e0b","size":1625,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2803926ac01867edc686c4ca6625a5c5aba32e0b"},{"path":"comfy/text_encoders/sd2_clip.py","mode":"100644","type":"blob","sha":"700a23bf09f03f09290f677092bd25f29d6f065a","size":1521,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/700a23bf09f03f09290f677092bd25f29d6f065a"},{"path":"comfy/text_encoders/sd2_clip_config.json","mode":"100644","type":"blob","sha":"00893cfdc9b00f8eb7cf5aaa9c343e7fcd298d82","size":524,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/00893cfdc9b00f8eb7cf5aaa9c343e7fcd298d82"},{"path":"comfy/text_encoders/sd3_clip.py","mode":"100644","type":"blob","sha":"8b153c72b9dbd955af62b5b6f42ee37821ff0c0e","size":7876,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8b153c72b9dbd955af62b5b6f42ee37821ff0c0e"},{"path":"comfy/text_encoders/spiece_tokenizer.py","mode":"100644","type":"blob","sha":"caccb3ca283b3f129f942ebfc9e5c274a71d9f3d","size":1253,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/caccb3ca283b3f129f942ebfc9e5c274a71d9f3d"},{"path":"comfy/text_encoders/t5.py","mode":"100644","type":"blob","sha":"e8588992a4b54713de4018975b8d58170a4d0d7e","size":12665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e8588992a4b54713de4018975b8d58170a4d0d7e"},{"path":"comfy/text_encoders/t5_config_base.json","mode":"100644","type":"blob","sha":"71f68327c27280ce150d0c8e92fd61eca0b52a63","size":495,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/71f68327c27280ce150d0c8e92fd61eca0b52a63"},{"path":"comfy/text_encoders/t5_config_xxl.json","mode":"100644","type":"blob","sha":"28283b51a11bed6a874499f82d411c16cc646eb1","size":509,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/28283b51a11bed6a874499f82d411c16cc646eb1"},{"path":"comfy/text_encoders/t5_old_config_xxl.json","mode":"100644","type":"blob","sha":"c9fdd7782197ca0523ee82133e9b417fa947a5c5","size":499,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c9fdd7782197ca0523ee82133e9b417fa947a5c5"},{"path":"comfy/text_encoders/t5_pile_config_xl.json","mode":"100644","type":"blob","sha":"ee4e03f97a5b3a9927fc676816f210a364ee234b","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ee4e03f97a5b3a9927fc676816f210a364ee234b"},{"path":"comfy/text_encoders/t5_pile_tokenizer","mode":"040000","type":"tree","sha":"61d0722255e8ddcd4d58ab8c74d50a93e231d3fc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/61d0722255e8ddcd4d58ab8c74d50a93e231d3fc"},{"path":"comfy/text_encoders/t5_pile_tokenizer/tokenizer.model","mode":"100644","type":"blob","sha":"22bccbcb41ec929cf0c9dbe8f41036db82e5e773","size":499723,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22bccbcb41ec929cf0c9dbe8f41036db82e5e773"},{"path":"comfy/text_encoders/t5_tokenizer","mode":"040000","type":"tree","sha":"7c69c468f1168f85f33f22ae21f7bc6eb990eeae","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7c69c468f1168f85f33f22ae21f7bc6eb990eeae"},{"path":"comfy/text_encoders/t5_tokenizer/special_tokens_map.json","mode":"100644","type":"blob","sha":"17ade346a1042cbe0c1436f5bedcbd85c099d582","size":2543,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/17ade346a1042cbe0c1436f5bedcbd85c099d582"},{"path":"comfy/text_encoders/t5_tokenizer/tokenizer.json","mode":"100644","type":"blob","sha":"b11c92d7184d265f0dc857ec5d676aa81aa16262","size":2424256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b11c92d7184d265f0dc857ec5d676aa81aa16262"},{"path":"comfy/text_encoders/t5_tokenizer/tokenizer_config.json","mode":"100644","type":"blob","sha":"02020eb6d20746871e1ea93f14c4475cf9368f98","size":20790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/02020eb6d20746871e1ea93f14c4475cf9368f98"},{"path":"comfy/text_encoders/umt5_config_base.json","mode":"100644","type":"blob","sha":"6b3618f075eb4503d0666bd50f2259cc34b653c4","size":510,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6b3618f075eb4503d0666bd50f2259cc34b653c4"},{"path":"comfy/text_encoders/umt5_config_xxl.json","mode":"100644","type":"blob","sha":"dfcb4b54bc95469e7b519aed847bb1efb034bdc1","size":512,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dfcb4b54bc95469e7b519aed847bb1efb034bdc1"},{"path":"comfy/text_encoders/wan.py","mode":"100644","type":"blob","sha":"164a57edd7ac36f59d494bb2595afda1b1155877","size":2232,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/164a57edd7ac36f59d494bb2595afda1b1155877"},{"path":"comfy/text_encoders/z_image.py","mode":"100644","type":"blob","sha":"19adde0b76bc37a2e34765ccea15832fd83f2c0e","size":2608,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/19adde0b76bc37a2e34765ccea15832fd83f2c0e"},{"path":"comfy/utils.py","mode":"100644","type":"blob","sha":"8d4e2b445a39c50c2ae3a40f0d2793447ccd987d","size":54497,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8d4e2b445a39c50c2ae3a40f0d2793447ccd987d"},{"path":"comfy/weight_adapter","mode":"040000","type":"tree","sha":"9e568d542949b418a7ee387976aab8d8d311f0ab","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9e568d542949b418a7ee387976aab8d8d311f0ab"},{"path":"comfy/weight_adapter/__init__.py","mode":"100644","type":"blob","sha":"b40f920e400fc895443d4016076d1ded406ae258","size":786,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b40f920e400fc895443d4016076d1ded406ae258"},{"path":"comfy/weight_adapter/base.py","mode":"100644","type":"blob","sha":"43644b106b0f647b4534af45f0273c38c7ed319b","size":5727,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/43644b106b0f647b4534af45f0273c38c7ed319b"},{"path":"comfy/weight_adapter/boft.py","mode":"100644","type":"blob","sha":"b2a2f1bd46bed5b177f9c583e8d329dc167af1c3","size":3706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b2a2f1bd46bed5b177f9c583e8d329dc167af1c3"},{"path":"comfy/weight_adapter/glora.py","mode":"100644","type":"blob","sha":"939abbba584549b049da0073b4336efab05e1b65","size":3476,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/939abbba584549b049da0073b4336efab05e1b65"},{"path":"comfy/weight_adapter/loha.py","mode":"100644","type":"blob","sha":"0abb2d4033fddd58d57e4f8f8e8c63e5a751d507","size":8819,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0abb2d4033fddd58d57e4f8f8e8c63e5a751d507"},{"path":"comfy/weight_adapter/lokr.py","mode":"100644","type":"blob","sha":"9b2aff2d7f86ee6eecf54468180f13871bdd1d85","size":7670,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9b2aff2d7f86ee6eecf54468180f13871bdd1d85"},{"path":"comfy/weight_adapter/lora.py","mode":"100644","type":"blob","sha":"3cc60bb1b754615b05f48a814b09466b8b5babc6","size":7235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3cc60bb1b754615b05f48a814b09466b8b5babc6"},{"path":"comfy/weight_adapter/oft.py","mode":"100644","type":"blob","sha":"c0aab96353ca7e9b27eef690d320c2a0224b9d27","size":5431,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c0aab96353ca7e9b27eef690d320c2a0224b9d27"},{"path":"comfy_api","mode":"040000","type":"tree","sha":"b3a04d4606084a4fc205149699e096f2b5e8bfb9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b3a04d4606084a4fc205149699e096f2b5e8bfb9"},{"path":"comfy_api/feature_flags.py","mode":"100644","type":"blob","sha":"de167f03784909953b768a60ab1e45dd6e306874","size":1867,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/de167f03784909953b768a60ab1e45dd6e306874"},{"path":"comfy_api/generate_api_stubs.py","mode":"100644","type":"blob","sha":"604a7eced8a5a408e77c75a7889f9c25fe3771d4","size":2869,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/604a7eced8a5a408e77c75a7889f9c25fe3771d4"},{"path":"comfy_api/input","mode":"040000","type":"tree","sha":"2b458ee4c4d934681ccfe5a8b54749ab6d390e06","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2b458ee4c4d934681ccfe5a8b54749ab6d390e06"},{"path":"comfy_api/input/__init__.py","mode":"100644","type":"blob","sha":"68ff782706e8ab4f8d40917f8ff5b8aea54c7f51","size":278,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68ff782706e8ab4f8d40917f8ff5b8aea54c7f51"},{"path":"comfy_api/input/basic_types.py","mode":"100644","type":"blob","sha":"5eadce86ac4462c7fd825e1171afa6b315a6be38","size":256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5eadce86ac4462c7fd825e1171afa6b315a6be38"},{"path":"comfy_api/input/video_types.py","mode":"100644","type":"blob","sha":"9ace78cbc039eb0de063ea1ec080134a2b44cac6","size":145,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9ace78cbc039eb0de063ea1ec080134a2b44cac6"},{"path":"comfy_api/input_impl","mode":"040000","type":"tree","sha":"9afa512bfd92c7ea607c717106cd6af72967e30d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9afa512bfd92c7ea607c717106cd6af72967e30d"},{"path":"comfy_api/input_impl/__init__.py","mode":"100644","type":"blob","sha":"b78ff0c08fbe31f073a38c580f4648eebcc47db3","size":192,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b78ff0c08fbe31f073a38c580f4648eebcc47db3"},{"path":"comfy_api/input_impl/video_types.py","mode":"100644","type":"blob","sha":"bd2e56ad51a2fa2340e63409b9038de463af3b2d","size":122,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bd2e56ad51a2fa2340e63409b9038de463af3b2d"},{"path":"comfy_api/internal","mode":"040000","type":"tree","sha":"0389b99f6e50ef55566bb852529aa51fe2637ffb","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0389b99f6e50ef55566bb852529aa51fe2637ffb"},{"path":"comfy_api/internal/__init__.py","mode":"100644","type":"blob","sha":"4ca02e320bcb06ad7f6a8a7c8bd63f6efc18ea98","size":4913,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ca02e320bcb06ad7f6a8a7c8bd63f6efc18ea98"},{"path":"comfy_api/internal/api_registry.py","mode":"100644","type":"blob","sha":"2b1cb016ab781681c9581cdd207c8c68d03ed3a1","size":1061,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2b1cb016ab781681c9581cdd207c8c68d03ed3a1"},{"path":"comfy_api/internal/async_to_sync.py","mode":"100644","type":"blob","sha":"c9b0576e1ce232b3b8d422714203d8e706be642b","size":40498,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c9b0576e1ce232b3b8d422714203d8e706be642b"},{"path":"comfy_api/internal/singleton.py","mode":"100644","type":"blob","sha":"d89380262663d7892629ed19e95c396b8a2cd584","size":1116,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d89380262663d7892629ed19e95c396b8a2cd584"},{"path":"comfy_api/latest","mode":"040000","type":"tree","sha":"7e8240fdd22ee41da0883068b19a3d8ac12fd474","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7e8240fdd22ee41da0883068b19a3d8ac12fd474"},{"path":"comfy_api/latest/__init__.py","mode":"100644","type":"blob","sha":"fab63c7dfe3bdc5e3337684507764635667102b1","size":4598,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fab63c7dfe3bdc5e3337684507764635667102b1"},{"path":"comfy_api/latest/_input","mode":"040000","type":"tree","sha":"bf0cc81cd5d0ba8df18cc0dfa04fc5698b869084","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bf0cc81cd5d0ba8df18cc0dfa04fc5698b869084"},{"path":"comfy_api/latest/_input/__init__.py","mode":"100644","type":"blob","sha":"14f0e72f46bfb079e85a1c0e56993b5a99425ffe","size":213,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14f0e72f46bfb079e85a1c0e56993b5a99425ffe"},{"path":"comfy_api/latest/_input/basic_types.py","mode":"100644","type":"blob","sha":"d73deabd2e6c300112c487f89f30cf534a5a39b1","size":924,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d73deabd2e6c300112c487f89f30cf534a5a39b1"},{"path":"comfy_api/latest/_input/video_types.py","mode":"100644","type":"blob","sha":"e634a031104f3532735be6529b1e5eefc4c881e7","size":3547,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e634a031104f3532735be6529b1e5eefc4c881e7"},{"path":"comfy_api/latest/_input_impl","mode":"040000","type":"tree","sha":"6159e78a48128f5e5d1ae75d98ed24cc0a9014f0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6159e78a48128f5e5d1ae75d98ed24cc0a9014f0"},{"path":"comfy_api/latest/_input_impl/__init__.py","mode":"100644","type":"blob","sha":"02901b8b933caa569cd9dd45eb8e39e7c66e43a1","size":145,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/02901b8b933caa569cd9dd45eb8e39e7c66e43a1"},{"path":"comfy_api/latest/_input_impl/video_types.py","mode":"100644","type":"blob","sha":"ea35c60626cd7a2ee14f9c4722faed02f16ed5ea","size":16163,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ea35c60626cd7a2ee14f9c4722faed02f16ed5ea"},{"path":"comfy_api/latest/_io.py","mode":"100644","type":"blob","sha":"4b14e5ded38b1061acec725e019e6e14c977b538","size":70980,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4b14e5ded38b1061acec725e019e6e14c977b538"},{"path":"comfy_api/latest/_io_public.py","mode":"100644","type":"blob","sha":"43c7680f3283cec64bf89023ca7ec90314a3499d","size":33,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/43c7680f3283cec64bf89023ca7ec90314a3499d"},{"path":"comfy_api/latest/_resources.py","mode":"100644","type":"blob","sha":"a6bdda97204ef1079a679bc6fe5ed49f05b683f6","size":2385,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a6bdda97204ef1079a679bc6fe5ed49f05b683f6"},{"path":"comfy_api/latest/_ui.py","mode":"100644","type":"blob","sha":"e238cdf3ce3cd4475deda2f59bc43823558d14aa","size":17849,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e238cdf3ce3cd4475deda2f59bc43823558d14aa"},{"path":"comfy_api/latest/_ui_public.py","mode":"100644","type":"blob","sha":"85b11d78b61eb75fd71ccefea5caf9cb70239c58","size":33,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/85b11d78b61eb75fd71ccefea5caf9cb70239c58"},{"path":"comfy_api/latest/_util","mode":"040000","type":"tree","sha":"bb89df5232d26f7fd6f23543aa6ea4b091bff37f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bb89df5232d26f7fd6f23543aa6ea4b091bff37f"},{"path":"comfy_api/latest/_util/__init__.py","mode":"100644","type":"blob","sha":"fc5431dda5bfc4b421f4157e25abb0dd97f793e4","size":232,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fc5431dda5bfc4b421f4157e25abb0dd97f793e4"},{"path":"comfy_api/latest/_util/geometry_types.py","mode":"100644","type":"blob","sha":"3851227784003caf9a72e4a37e10daf47c6f25d8","size":240,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3851227784003caf9a72e4a37e10daf47c6f25d8"},{"path":"comfy_api/latest/_util/video_types.py","mode":"100644","type":"blob","sha":"fd3b5a510df4d1bd0b65141bd3d27953ec9cfc9a","size":1274,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fd3b5a510df4d1bd0b65141bd3d27953ec9cfc9a"},{"path":"comfy_api/latest/generated","mode":"040000","type":"tree","sha":"e0c3dd2e08fbe10ac79d5415676d6249f166dbc2","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e0c3dd2e08fbe10ac79d5415676d6249f166dbc2"},{"path":"comfy_api/latest/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"525c074dda49d12f5f9eca7bd3b82abe8799c862","size":867,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/525c074dda49d12f5f9eca7bd3b82abe8799c862"},{"path":"comfy_api/torch_helpers","mode":"040000","type":"tree","sha":"efdfdd85f3d561ddbdce9143e08e2b5385759933","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/efdfdd85f3d561ddbdce9143e08e2b5385759933"},{"path":"comfy_api/torch_helpers/__init__.py","mode":"100644","type":"blob","sha":"be7ae7a6165bdeed5013806a7adde1a02c0ac93f","size":101,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be7ae7a6165bdeed5013806a7adde1a02c0ac93f"},{"path":"comfy_api/torch_helpers/torch_compile.py","mode":"100644","type":"blob","sha":"9223f58db22415897cbf3d6239511d289f5e1091","size":2800,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9223f58db22415897cbf3d6239511d289f5e1091"},{"path":"comfy_api/util.py","mode":"100644","type":"blob","sha":"1aa9606d2e4691657ed3580fc7a1e4a55aaf886c","size":210,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1aa9606d2e4691657ed3580fc7a1e4a55aaf886c"},{"path":"comfy_api/util","mode":"040000","type":"tree","sha":"bc8f4068f0ee1b9d9ec7b697bb0df68a4d7986d7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bc8f4068f0ee1b9d9ec7b697bb0df68a4d7986d7"},{"path":"comfy_api/util/__init__.py","mode":"100644","type":"blob","sha":"4c8a89d1e077d0b331de5506ba69b50a99de2bd2","size":210,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4c8a89d1e077d0b331de5506ba69b50a99de2bd2"},{"path":"comfy_api/util/video_types.py","mode":"100644","type":"blob","sha":"68c780d64daffa6fb621821e111330cb388c07e0","size":239,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68c780d64daffa6fb621821e111330cb388c07e0"},{"path":"comfy_api/v0_0_1","mode":"040000","type":"tree","sha":"5670d4c785befc4c48ba8df9d40d6af25968e302","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5670d4c785befc4c48ba8df9d40d6af25968e302"},{"path":"comfy_api/v0_0_1/__init__.py","mode":"100644","type":"blob","sha":"93608771d156017233cadc5af3ba2d52c82f1529","size":977,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93608771d156017233cadc5af3ba2d52c82f1529"},{"path":"comfy_api/v0_0_1/generated","mode":"040000","type":"tree","sha":"74cc9e5b8d9a8e16cc13dddc2d0345a00eba49df","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/74cc9e5b8d9a8e16cc13dddc2d0345a00eba49df"},{"path":"comfy_api/v0_0_1/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"270030324cd155fdadc0f0d5009bca4be948fc0a","size":874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/270030324cd155fdadc0f0d5009bca4be948fc0a"},{"path":"comfy_api/v0_0_2","mode":"040000","type":"tree","sha":"6e3f577c44d84b85c2942deee69a5936d777f839","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6e3f577c44d84b85c2942deee69a5936d777f839"},{"path":"comfy_api/v0_0_2/__init__.py","mode":"100644","type":"blob","sha":"c4fa1d97116dd23985244856eabb6076c3a0689f","size":975,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c4fa1d97116dd23985244856eabb6076c3a0689f"},{"path":"comfy_api/v0_0_2/generated","mode":"040000","type":"tree","sha":"c646a6b91593cd4602baba9c77162d179e2445a9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c646a6b91593cd4602baba9c77162d179e2445a9"},{"path":"comfy_api/v0_0_2/generated/ComfyAPISyncStub.pyi","mode":"100644","type":"blob","sha":"7fcec685e880e68106a35f6fd8ebf84ea07769e3","size":874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7fcec685e880e68106a35f6fd8ebf84ea07769e3"},{"path":"comfy_api/version_list.py","mode":"100644","type":"blob","sha":"be6e1db663974fcf7fb0b4fd7299742e9d4ec724","size":323,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/be6e1db663974fcf7fb0b4fd7299742e9d4ec724"},{"path":"comfy_api_nodes","mode":"040000","type":"tree","sha":"4100dcffb04cf30959d016e91d186df0dd823657","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/4100dcffb04cf30959d016e91d186df0dd823657"},{"path":"comfy_api_nodes/README.md","mode":"100644","type":"blob","sha":"f56d6c8606346dc4d6c8d688cc8ca4f52cb5c9cd","size":2836,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f56d6c8606346dc4d6c8d688cc8ca4f52cb5c9cd"},{"path":"comfy_api_nodes/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"comfy_api_nodes/apis","mode":"040000","type":"tree","sha":"05b40dbde427a8fa8020ba33befe8b11362ceea0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/05b40dbde427a8fa8020ba33befe8b11362ceea0"},{"path":"comfy_api_nodes/apis/__init__.py","mode":"100644","type":"blob","sha":"ee2aa1ce643e3682ff935f11fba141eeae734a9a","size":214068,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ee2aa1ce643e3682ff935f11fba141eeae734a9a"},{"path":"comfy_api_nodes/apis/bfl_api.py","mode":"100644","type":"blob","sha":"d8d3557b3e327afce1a55fd513e813abf2f8e767","size":9831,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d8d3557b3e327afce1a55fd513e813abf2f8e767"},{"path":"comfy_api_nodes/apis/bytedance_api.py","mode":"100644","type":"blob","sha":"b8c2f618bc35cec0c1211d3682d2dff0fd2f817e","size":4255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b8c2f618bc35cec0c1211d3682d2dff0fd2f817e"},{"path":"comfy_api_nodes/apis/gemini_api.py","mode":"100644","type":"blob","sha":"d81337dae73d4eab61c907c2f87bcf7f6d4dc1d6","size":7561,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d81337dae73d4eab61c907c2f87bcf7f6d4dc1d6"},{"path":"comfy_api_nodes/apis/kling_api.py","mode":"100644","type":"blob","sha":"80a7584660d01ce8edd16c24bdcee84ec16c1684","size":3983,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/80a7584660d01ce8edd16c24bdcee84ec16c1684"},{"path":"comfy_api_nodes/apis/luma_api.py","mode":"100644","type":"blob","sha":"632c4ab9697a8ab2659dc0171890e739788b286d","size":8205,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/632c4ab9697a8ab2659dc0171890e739788b286d"},{"path":"comfy_api_nodes/apis/minimax_api.py","mode":"100644","type":"blob","sha":"d747e177a165f27cb61ec459c54d9db0f263beb0","size":4221,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d747e177a165f27cb61ec459c54d9db0f263beb0"},{"path":"comfy_api_nodes/apis/openai_api.py","mode":"100644","type":"blob","sha":"ae5bb26731cc5ccf4bbef6cb3bc91f7d464a8dc2","size":2112,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae5bb26731cc5ccf4bbef6cb3bc91f7d464a8dc2"},{"path":"comfy_api_nodes/apis/pixverse_api.py","mode":"100644","type":"blob","sha":"9bb29c3835104784087d99821c85f9ddf6ba218c","size":4206,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9bb29c3835104784087d99821c85f9ddf6ba218c"},{"path":"comfy_api_nodes/apis/recraft_api.py","mode":"100644","type":"blob","sha":"c36d95f24e6ab53f5790b0ac97f71a26087a410f","size":8805,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c36d95f24e6ab53f5790b0ac97f71a26087a410f"},{"path":"comfy_api_nodes/apis/rodin_api.py","mode":"100644","type":"blob","sha":"fc26a6e73a0f09ac9177942a52a0c0e6e69ab656","size":2080,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fc26a6e73a0f09ac9177942a52a0c0e6e69ab656"},{"path":"comfy_api_nodes/apis/stability_api.py","mode":"100644","type":"blob","sha":"7183601873b730b8e08e0ce0afefb93604656fb6","size":4394,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7183601873b730b8e08e0ce0afefb93604656fb6"},{"path":"comfy_api_nodes/apis/topaz_api.py","mode":"100644","type":"blob","sha":"4d9e62e72c0d162ded41678449ceee08290952de","size":5187,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d9e62e72c0d162ded41678449ceee08290952de"},{"path":"comfy_api_nodes/apis/tripo_api.py","mode":"100644","type":"blob","sha":"ffaaa7dc1914b299cf56dd2c43fa18b8f9c7fde0","size":15308,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ffaaa7dc1914b299cf56dd2c43fa18b8f9c7fde0"},{"path":"comfy_api_nodes/apis/veo_api.py","mode":"100644","type":"blob","sha":"23ca725b7064382f64b08e7480d4c7c67c5bfaa5","size":3253,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/23ca725b7064382f64b08e7480d4c7c67c5bfaa5"},{"path":"comfy_api_nodes/canary.py","mode":"100644","type":"blob","sha":"4df7590b64fea8f6f3f77fde912cb2f64fdad357","size":271,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4df7590b64fea8f6f3f77fde912cb2f64fdad357"},{"path":"comfy_api_nodes/mapper_utils.py","mode":"100644","type":"blob","sha":"6fab8f4bbc6ce4495ce41588f2fba8103abeffeb","size":3828,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6fab8f4bbc6ce4495ce41588f2fba8103abeffeb"},{"path":"comfy_api_nodes/nodes_bfl.py","mode":"100644","type":"blob","sha":"ce077d6b3c0427281dc13fd075d18fddc9daa698","size":22874,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ce077d6b3c0427281dc13fd075d18fddc9daa698"},{"path":"comfy_api_nodes/nodes_bytedance.py","mode":"100644","type":"blob","sha":"636cc126578092245b621543ac958cd00651804f","size":36077,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/636cc126578092245b621543ac958cd00651804f"},{"path":"comfy_api_nodes/nodes_gemini.py","mode":"100644","type":"blob","sha":"e8ed7e7972184dc2c3abdbaaa928b39a8238dde9","size":30253,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e8ed7e7972184dc2c3abdbaaa928b39a8238dde9"},{"path":"comfy_api_nodes/nodes_ideogram.py","mode":"100644","type":"blob","sha":"48f94e612b929374e487445124ceafef982f1bc0","size":26345,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/48f94e612b929374e487445124ceafef982f1bc0"},{"path":"comfy_api_nodes/nodes_kling.py","mode":"100644","type":"blob","sha":"5294b10d4d7e32eb513e13cb48208d4bd0200d97","size":86048,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5294b10d4d7e32eb513e13cb48208d4bd0200d97"},{"path":"comfy_api_nodes/nodes_ltxv.py","mode":"100644","type":"blob","sha":"7e61560dc71e0c5d256d0d58b8fc42ffab5ee8b7","size":6622,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e61560dc71e0c5d256d0d58b8fc42ffab5ee8b7"},{"path":"comfy_api_nodes/nodes_luma.py","mode":"100644","type":"blob","sha":"894f2b08c994bcbda260954e14481cc8ee639b20","size":21295,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/894f2b08c994bcbda260954e14481cc8ee639b20"},{"path":"comfy_api_nodes/nodes_minimax.py","mode":"100644","type":"blob","sha":"05cbb700f6e01295636e0b21f014b8d4e3238891","size":15228,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/05cbb700f6e01295636e0b21f014b8d4e3238891"},{"path":"comfy_api_nodes/nodes_moonvalley.py","mode":"100644","type":"blob","sha":"2771e47901f752ab9e7c3793f9cbdc9f4826345b","size":19683,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2771e47901f752ab9e7c3793f9cbdc9f4826345b"},{"path":"comfy_api_nodes/nodes_openai.py","mode":"100644","type":"blob","sha":"a6205a34ff80d0e25f8588d61d7bffc62d6ea2a9","size":29308,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a6205a34ff80d0e25f8588d61d7bffc62d6ea2a9"},{"path":"comfy_api_nodes/nodes_pixverse.py","mode":"100644","type":"blob","sha":"6e1686af0248c7c5bad98772a404dca9a2ae93d7","size":15513,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6e1686af0248c7c5bad98772a404dca9a2ae93d7"},{"path":"comfy_api_nodes/nodes_recraft.py","mode":"100644","type":"blob","sha":"e3440b94645e7ed9030e7f0c0c87ebb595060381","size":36090,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e3440b94645e7ed9030e7f0c0c87ebb595060381"},{"path":"comfy_api_nodes/nodes_rodin.py","mode":"100644","type":"blob","sha":"e60e7a6d67ed2564b67b6063483adffaa8f030e9","size":16471,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e60e7a6d67ed2564b67b6063483adffaa8f030e9"},{"path":"comfy_api_nodes/nodes_runway.py","mode":"100644","type":"blob","sha":"3c55039c99cec2942add4159faa3ed284d57951e","size":17904,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3c55039c99cec2942add4159faa3ed284d57951e"},{"path":"comfy_api_nodes/nodes_sora.py","mode":"100644","type":"blob","sha":"92b225d4043d5f737862fd0737a79d5495d36ba9","size":4876,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/92b225d4043d5f737862fd0737a79d5495d36ba9"},{"path":"comfy_api_nodes/nodes_stability.py","mode":"100644","type":"blob","sha":"bb7ceed7836ecbf1fff85efefadbed79bef716a9","size":31487,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bb7ceed7836ecbf1fff85efefadbed79bef716a9"},{"path":"comfy_api_nodes/nodes_topaz.py","mode":"100644","type":"blob","sha":"b04575ad8d3d1f51944083e15229499789a1865f","size":17821,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b04575ad8d3d1f51944083e15229499789a1865f"},{"path":"comfy_api_nodes/nodes_tripo.py","mode":"100644","type":"blob","sha":"bd3c24fb393d3134411eb02ef5f40524cc0742cc","size":28926,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bd3c24fb393d3134411eb02ef5f40524cc0742cc"},{"path":"comfy_api_nodes/nodes_veo2.py","mode":"100644","type":"blob","sha":"e165b8380f942e17908a6156ebaa69641898b27f","size":18721,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e165b8380f942e17908a6156ebaa69641898b27f"},{"path":"comfy_api_nodes/nodes_vidu.py","mode":"100644","type":"blob","sha":"7a679f0d90beac000ddc998fbd971b3dc45c4b4e","size":19278,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7a679f0d90beac000ddc998fbd971b3dc45c4b4e"},{"path":"comfy_api_nodes/nodes_wan.py","mode":"100644","type":"blob","sha":"1675fd863ad6135e4de6ae724f3b52e8e69c6025","size":27006,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1675fd863ad6135e4de6ae724f3b52e8e69c6025"},{"path":"comfy_api_nodes/redocly-dev.yaml","mode":"100644","type":"blob","sha":"d9e3cab70ff18a924faf3f793a71710846beeae5","size":330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d9e3cab70ff18a924faf3f793a71710846beeae5"},{"path":"comfy_api_nodes/redocly.yaml","mode":"100644","type":"blob","sha":"d102345b1ec932577e310f2e07c4e32017c189d5","size":255,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d102345b1ec932577e310f2e07c4e32017c189d5"},{"path":"comfy_api_nodes/util","mode":"040000","type":"tree","sha":"0cef94c8de58d48a5b5429420ac88e03ddcc40c9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0cef94c8de58d48a5b5429420ac88e03ddcc40c9"},{"path":"comfy_api_nodes/util/__init__.py","mode":"100644","type":"blob","sha":"4cc22abfb4b462a8b4c67263326e06c88e855536","size":2638,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4cc22abfb4b462a8b4c67263326e06c88e855536"},{"path":"comfy_api_nodes/util/_helpers.py","mode":"100644","type":"blob","sha":"491e6b6a8d8e60439f6f0a54cddfb0807ae54a9c","size":2256,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/491e6b6a8d8e60439f6f0a54cddfb0807ae54a9c"},{"path":"comfy_api_nodes/util/client.py","mode":"100644","type":"blob","sha":"bf37cba5ff987045d94dda7d31318d96ee4cb807","size":39546,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/bf37cba5ff987045d94dda7d31318d96ee4cb807"},{"path":"comfy_api_nodes/util/common_exceptions.py","mode":"100644","type":"blob","sha":"0606a440700752778b4e7663545a875e31c7125c","size":482,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0606a440700752778b4e7663545a875e31c7125c"},{"path":"comfy_api_nodes/util/conversions.py","mode":"100644","type":"blob","sha":"d64239c860523372072895193d1c4b962de3f905","size":16709,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d64239c860523372072895193d1c4b962de3f905"},{"path":"comfy_api_nodes/util/download_helpers.py","mode":"100644","type":"blob","sha":"3e0d0352da2bcbd8867ade95f04afaa97ce5d2e7","size":9991,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3e0d0352da2bcbd8867ade95f04afaa97ce5d2e7"},{"path":"comfy_api_nodes/util/request_logger.py","mode":"100644","type":"blob","sha":"e0cb4428df11898d2bd674edf5b32b386b39f86e","size":6408,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e0cb4428df11898d2bd674edf5b32b386b39f86e"},{"path":"comfy_api_nodes/util/upload_helpers.py","mode":"100644","type":"blob","sha":"b8d33f4d14385a93f241ecc6f5da5f8bda6c45e0","size":12734,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b8d33f4d14385a93f241ecc6f5da5f8bda6c45e0"},{"path":"comfy_api_nodes/util/validation_utils.py","mode":"100644","type":"blob","sha":"f01edea964a5bae8359fb9682e8642182bd9aec5","size":9083,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f01edea964a5bae8359fb9682e8642182bd9aec5"},{"path":"comfy_config","mode":"040000","type":"tree","sha":"0ef856f430484cfd2fb39a472d067426fc607341","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0ef856f430484cfd2fb39a472d067426fc607341"},{"path":"comfy_config/config_parser.py","mode":"100644","type":"blob","sha":"8da7bd901f421f3aaa5b620c9595313c30585ae1","size":5781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8da7bd901f421f3aaa5b620c9595313c30585ae1"},{"path":"comfy_config/types.py","mode":"100644","type":"blob","sha":"59448466b2cb6725c622fea1151f51e521d850fc","size":3016,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/59448466b2cb6725c622fea1151f51e521d850fc"},{"path":"comfy_execution","mode":"040000","type":"tree","sha":"2329d7adad765cdc111e2c257f6359da2fb24eb9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/2329d7adad765cdc111e2c257f6359da2fb24eb9"},{"path":"comfy_execution/caching.py","mode":"100644","type":"blob","sha":"326a279fc99771c65013fb4ba17cb5c8d096a58f","size":15331,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/326a279fc99771c65013fb4ba17cb5c8d096a58f"},{"path":"comfy_execution/graph.py","mode":"100644","type":"blob","sha":"0d811e3546efa3d89e52a3855e6f2e7a6af6e705","size":14073,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d811e3546efa3d89e52a3855e6f2e7a6af6e705"},{"path":"comfy_execution/graph_utils.py","mode":"100644","type":"blob","sha":"496d2c634982aa5afc8d58b9db758f97b3b5c2d8","size":5626,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/496d2c634982aa5afc8d58b9db758f97b3b5c2d8"},{"path":"comfy_execution/jobs.py","mode":"100644","type":"blob","sha":"59fb4935730a3d636c53c8af9f3ec1a6e6a68fe3","size":9648,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/59fb4935730a3d636c53c8af9f3ec1a6e6a68fe3"},{"path":"comfy_execution/progress.py","mode":"100644","type":"blob","sha":"f951a33507f5da68785b7317eb6cb6210102f0f5","size":11823,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f951a33507f5da68785b7317eb6cb6210102f0f5"},{"path":"comfy_execution/utils.py","mode":"100644","type":"blob","sha":"62d32f1013df633889b59d2207154d1cbbbfe347","size":1529,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/62d32f1013df633889b59d2207154d1cbbbfe347"},{"path":"comfy_execution/validation.py","mode":"100644","type":"blob","sha":"24c0b4ed76cd10bc140707d5944eb80db3e28fd0","size":1837,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/24c0b4ed76cd10bc140707d5944eb80db3e28fd0"},{"path":"comfy_extras","mode":"040000","type":"tree","sha":"c4481fecbffedf5666c828a413d3bc84a7d67afc","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c4481fecbffedf5666c828a413d3bc84a7d67afc"},{"path":"comfy_extras/chainner_models","mode":"040000","type":"tree","sha":"abf26dd920477463c2e68c7f63839151df973a7c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/abf26dd920477463c2e68c7f63839151df973a7c"},{"path":"comfy_extras/chainner_models/model_loading.py","mode":"100644","type":"blob","sha":"1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c","size":260,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1bec4476f6171e9f1b2a4a3b967fc63bbf9e9c3c"},{"path":"comfy_extras/nodes_ace.py","mode":"100644","type":"blob","sha":"1409233c924f6828c4d8467a57605318b810b5d0","size":2238,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1409233c924f6828c4d8467a57605318b810b5d0"},{"path":"comfy_extras/nodes_advanced_samplers.py","mode":"100644","type":"blob","sha":"5532ffe6a241344abd6d3c3b62cc0104c67316d3","size":4416,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5532ffe6a241344abd6d3c3b62cc0104c67316d3"},{"path":"comfy_extras/nodes_align_your_steps.py","mode":"100644","type":"blob","sha":"edd5dadd4e18068aa2e42c51a8cb941933c2924e","size":2640,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/edd5dadd4e18068aa2e42c51a8cb941933c2924e"},{"path":"comfy_extras/nodes_apg.py","mode":"100644","type":"blob","sha":"f27ae7da8ce795d1148e12e43016edaefabcb151","size":3542,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f27ae7da8ce795d1148e12e43016edaefabcb151"},{"path":"comfy_extras/nodes_attention_multiply.py","mode":"100644","type":"blob","sha":"c0e494c2ad191f63f6e3e9ccf58eced0a203aed5","size":6196,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c0e494c2ad191f63f6e3e9ccf58eced0a203aed5"},{"path":"comfy_extras/nodes_audio.py","mode":"100644","type":"blob","sha":"c7916443caedf88ec04b90695a19e29be2d9259d","size":21461,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c7916443caedf88ec04b90695a19e29be2d9259d"},{"path":"comfy_extras/nodes_audio_encoder.py","mode":"100644","type":"blob","sha":"13aacd41a47e75e07cff83c7b2ff87e2c7343b30","size":2050,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/13aacd41a47e75e07cff83c7b2ff87e2c7343b30"},{"path":"comfy_extras/nodes_camera_trajectory.py","mode":"100644","type":"blob","sha":"eb7ef363cb3e3e3c6d4dbf09176b6678215b2b44","size":9691,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eb7ef363cb3e3e3c6d4dbf09176b6678215b2b44"},{"path":"comfy_extras/nodes_canny.py","mode":"100644","type":"blob","sha":"576f3640ae9461007ba723580fcf2d8842b63a3f","size":1446,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/576f3640ae9461007ba723580fcf2d8842b63a3f"},{"path":"comfy_extras/nodes_cfg.py","mode":"100644","type":"blob","sha":"4ebb4b51eef108fc11d2050e3ee652f2591a45b3","size":2943,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ebb4b51eef108fc11d2050e3ee652f2591a45b3"},{"path":"comfy_extras/nodes_chroma_radiance.py","mode":"100644","type":"blob","sha":"381989818b53a3db5b3969a8a2c48975538d144c","size":4222,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/381989818b53a3db5b3969a8a2c48975538d144c"},{"path":"comfy_extras/nodes_clip_sdxl.py","mode":"100644","type":"blob","sha":"520ff0e3c22c2b7df6bb89751ee23c293ab2bd24","size":3109,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/520ff0e3c22c2b7df6bb89751ee23c293ab2bd24"},{"path":"comfy_extras/nodes_compositing.py","mode":"100644","type":"blob","sha":"e4e4e1cbc09e9777b45bdc39b0ba1ec2f9adf9ea","size":8841,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e4e4e1cbc09e9777b45bdc39b0ba1ec2f9adf9ea"},{"path":"comfy_extras/nodes_cond.py","mode":"100644","type":"blob","sha":"8b06e3de9fad7d1b17d152a191942fcaea59cae7","size":2280,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8b06e3de9fad7d1b17d152a191942fcaea59cae7"},{"path":"comfy_extras/nodes_context_windows.py","mode":"100644","type":"blob","sha":"3799a90049f21fff7467eb45a92de3f12a8573fd","size":7286,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3799a90049f21fff7467eb45a92de3f12a8573fd"},{"path":"comfy_extras/nodes_controlnet.py","mode":"100644","type":"blob","sha":"e835feed71fc3ca7e35e9a8daf153d279225c7c7","size":3218,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e835feed71fc3ca7e35e9a8daf153d279225c7c7"},{"path":"comfy_extras/nodes_cosmos.py","mode":"100644","type":"blob","sha":"7dd129d199d2ebdcbbf7a0034d9c1a0889f5f1e2","size":6591,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7dd129d199d2ebdcbbf7a0034d9c1a0889f5f1e2"},{"path":"comfy_extras/nodes_custom_sampler.py","mode":"100644","type":"blob","sha":"993889d9dad86e6eff75747e99038dec93d4d609","size":40541,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/993889d9dad86e6eff75747e99038dec93d4d609"},{"path":"comfy_extras/nodes_dataset.py","mode":"100644","type":"blob","sha":"513aecf3a9419eab66005c585206062bd2ad4433","size":52728,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/513aecf3a9419eab66005c585206062bd2ad4433"},{"path":"comfy_extras/nodes_differential_diffusion.py","mode":"100644","type":"blob","sha":"6dfdf466c3811052f5fee8f94eb299a9c965b3cd","size":2456,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6dfdf466c3811052f5fee8f94eb299a9c965b3cd"},{"path":"comfy_extras/nodes_easycache.py","mode":"100644","type":"blob","sha":"11b23ffdbd843cc869d30ab5bbe4f055540359d7","size":25427,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/11b23ffdbd843cc869d30ab5bbe4f055540359d7"},{"path":"comfy_extras/nodes_edit_model.py","mode":"100644","type":"blob","sha":"36da66f34e1d19e54ed2ffc8338a232bf8879945","size":1263,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/36da66f34e1d19e54ed2ffc8338a232bf8879945"},{"path":"comfy_extras/nodes_eps.py","mode":"100644","type":"blob","sha":"4d80617419cae20a6617b79e331ef4de0a2c584a","size":5791,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d80617419cae20a6617b79e331ef4de0a2c584a"},{"path":"comfy_extras/nodes_flux.py","mode":"100644","type":"blob","sha":"12c8ed3e6492162ade6c32822c6fde4e5fd69aea","size":7879,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/12c8ed3e6492162ade6c32822c6fde4e5fd69aea"},{"path":"comfy_extras/nodes_freelunch.py","mode":"100644","type":"blob","sha":"3429b731ea94c0fb7089cf140e4eb3e73447c367","size":5376,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3429b731ea94c0fb7089cf140e4eb3e73447c367"},{"path":"comfy_extras/nodes_fresca.py","mode":"100644","type":"blob","sha":"f308eb0c17601143600def666a03a52717df11b1","size":3880,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f308eb0c17601143600def666a03a52717df11b1"},{"path":"comfy_extras/nodes_gits.py","mode":"100644","type":"blob","sha":"25367560a605dc451ee1c819fcf03666f6dc26f9","size":46458,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/25367560a605dc451ee1c819fcf03666f6dc26f9"},{"path":"comfy_extras/nodes_hidream.py","mode":"100644","type":"blob","sha":"eee683ee148a75e7a9601a7fccb0054bd40e6341","size":2946,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eee683ee148a75e7a9601a7fccb0054bd40e6341"},{"path":"comfy_extras/nodes_hooks.py","mode":"100644","type":"blob","sha":"1edc06f3d7ae6b0682b03afe666ef936b16f2f28","size":28661,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1edc06f3d7ae6b0682b03afe666ef936b16f2f28"},{"path":"comfy_extras/nodes_hunyuan.py","mode":"100644","type":"blob","sha":"32be182f15752fc8619dd922ecb5c98254e94649","size":19070,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32be182f15752fc8619dd922ecb5c98254e94649"},{"path":"comfy_extras/nodes_hunyuan3d.py","mode":"100644","type":"blob","sha":"adca14f62501447324f7b77ed3a81a2056c99a6d","size":21588,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/adca14f62501447324f7b77ed3a81a2056c99a6d"},{"path":"comfy_extras/nodes_hypernetwork.py","mode":"100644","type":"blob","sha":"2a6a87a816fa0b04eeb89ac33af2e0d9614a14a3","size":5053,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a6a87a816fa0b04eeb89ac33af2e0d9614a14a3"},{"path":"comfy_extras/nodes_hypertile.py","mode":"100644","type":"blob","sha":"0ad5e677301b9762bf60158db6d07a2456302db6","size":3381,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0ad5e677301b9762bf60158db6d07a2456302db6"},{"path":"comfy_extras/nodes_images.py","mode":"100644","type":"blob","sha":"392aea32c268a4d1abb38b9b8825323467f1cb75","size":24428,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/392aea32c268a4d1abb38b9b8825323467f1cb75"},{"path":"comfy_extras/nodes_ip2p.py","mode":"100644","type":"blob","sha":"78f29915db2e5038da2f62fc82fc30a3e1a0800d","size":1964,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/78f29915db2e5038da2f62fc82fc30a3e1a0800d"},{"path":"comfy_extras/nodes_kandinsky5.py","mode":"100644","type":"blob","sha":"9cb234be11d08931df111056145534a72d88179b","size":6139,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9cb234be11d08931df111056145534a72d88179b"},{"path":"comfy_extras/nodes_latent.py","mode":"100644","type":"blob","sha":"2815c5ffc25843ccdc48d3ca1f2010ab24de2a3a","size":16553,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2815c5ffc25843ccdc48d3ca1f2010ab24de2a3a"},{"path":"comfy_extras/nodes_load_3d.py","mode":"100644","type":"blob","sha":"545588ef84942c11938d91f306636ef0bfd18c35","size":3761,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/545588ef84942c11938d91f306636ef0bfd18c35"},{"path":"comfy_extras/nodes_logic.py","mode":"100644","type":"blob","sha":"95a6ba788fafba373e1ecb61964c4db5de0c32ac","size":5610,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/95a6ba788fafba373e1ecb61964c4db5de0c32ac"},{"path":"comfy_extras/nodes_lora_extract.py","mode":"100644","type":"blob","sha":"a2375cba712baaf60ba2ff2a5a82f67f1d6c77c5","size":5118,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a2375cba712baaf60ba2ff2a5a82f67f1d6c77c5"},{"path":"comfy_extras/nodes_lotus.py","mode":"100644","type":"blob","sha":"9f62ba2bf3b54a1d42e693b0db4696640ec0d354","size":34027,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9f62ba2bf3b54a1d42e693b0db4696640ec0d354"},{"path":"comfy_extras/nodes_lt.py","mode":"100644","type":"blob","sha":"50da5f4eb60628518f81fc716cd592b6ee581100","size":20097,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/50da5f4eb60628518f81fc716cd592b6ee581100"},{"path":"comfy_extras/nodes_lumina2.py","mode":"100644","type":"blob","sha":"89ff2397accc5c391842d947cc94838f1344db8a","size":5459,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/89ff2397accc5c391842d947cc94838f1344db8a"},{"path":"comfy_extras/nodes_mahiro.py","mode":"100644","type":"blob","sha":"07b3353f42f9bd31cbf0acb8ba669619e9bc8e32","size":1899,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/07b3353f42f9bd31cbf0acb8ba669619e9bc8e32"},{"path":"comfy_extras/nodes_mask.py","mode":"100644","type":"blob","sha":"290e6f55ebf8689cf5aa217f8d14d593a944850a","size":15523,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/290e6f55ebf8689cf5aa217f8d14d593a944850a"},{"path":"comfy_extras/nodes_mochi.py","mode":"100644","type":"blob","sha":"d750194fcc1932384a2a9d636ee50369b79604cb","size":1367,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d750194fcc1932384a2a9d636ee50369b79604cb"},{"path":"comfy_extras/nodes_model_advanced.py","mode":"100644","type":"blob","sha":"ae5d2c563183262456fd6a9668445b6b798108ac","size":12235,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae5d2c563183262456fd6a9668445b6b798108ac"},{"path":"comfy_extras/nodes_model_downscale.py","mode":"100644","type":"blob","sha":"dec2ae841af56965969e5eae349da3906e7d2d80","size":2863,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dec2ae841af56965969e5eae349da3906e7d2d80"},{"path":"comfy_extras/nodes_model_merging.py","mode":"100644","type":"blob","sha":"f20beab7d480391cbd4deb2f855a43c18d19ae33","size":13768,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f20beab7d480391cbd4deb2f855a43c18d19ae33"},{"path":"comfy_extras/nodes_model_merging_model_specific.py","mode":"100644","type":"blob","sha":"55eb3ccfeadd4dd824932503ce244ecedc815f26","size":11580,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/55eb3ccfeadd4dd824932503ce244ecedc815f26"},{"path":"comfy_extras/nodes_model_patch.py","mode":"100644","type":"blob","sha":"1355b3c93a53a40785c18c77ac394b191e67c9eb","size":22760,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1355b3c93a53a40785c18c77ac394b191e67c9eb"},{"path":"comfy_extras/nodes_morphology.py","mode":"100644","type":"blob","sha":"67377e1bc94d0523f2aa3a95e83ff30124e23d22","size":3826,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/67377e1bc94d0523f2aa3a95e83ff30124e23d22"},{"path":"comfy_extras/nodes_nop.py","mode":"100644","type":"blob","sha":"953061bcb77e5224c13b4ef2dd0f8d8fd7224f7d","size":1331,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/953061bcb77e5224c13b4ef2dd0f8d8fd7224f7d"},{"path":"comfy_extras/nodes_optimalsteps.py","mode":"100644","type":"blob","sha":"73f0104d8bc5fcc503bde7c252fbd7d2c9b1263d","size":2485,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/73f0104d8bc5fcc503bde7c252fbd7d2c9b1263d"},{"path":"comfy_extras/nodes_pag.py","mode":"100644","type":"blob","sha":"79fea5f0cee47b953fc4b0026de58b9af6880c2e","size":2181,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/79fea5f0cee47b953fc4b0026de58b9af6880c2e"},{"path":"comfy_extras/nodes_perpneg.py","mode":"100644","type":"blob","sha":"cd068ce9c2c8e08e0ee3db745798f33336f2283c","size":6521,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd068ce9c2c8e08e0ee3db745798f33336f2283c"},{"path":"comfy_extras/nodes_photomaker.py","mode":"100644","type":"blob","sha":"228183c074e2f946b21a5975507b7b17ac6fd257","size":8099,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/228183c074e2f946b21a5975507b7b17ac6fd257"},{"path":"comfy_extras/nodes_pixart.py","mode":"100644","type":"blob","sha":"a23e87b1fd14ae630c6267f7d66360051e8e0563","size":1443,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a23e87b1fd14ae630c6267f7d66360051e8e0563"},{"path":"comfy_extras/nodes_post_processing.py","mode":"100644","type":"blob","sha":"ca2cdeb50546e3ed7cede539e48053f8e5d16854","size":10365,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ca2cdeb50546e3ed7cede539e48053f8e5d16854"},{"path":"comfy_extras/nodes_preview_any.py","mode":"100644","type":"blob","sha":"139b07c93e9ea79ec3ce6369baa7e160a07dc023","size":1186,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/139b07c93e9ea79ec3ce6369baa7e160a07dc023"},{"path":"comfy_extras/nodes_primitive.py","mode":"100644","type":"blob","sha":"5a1aeba800773fb64c58eab2a87c91f2e1d682a8","size":2824,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5a1aeba800773fb64c58eab2a87c91f2e1d682a8"},{"path":"comfy_extras/nodes_qwen.py","mode":"100644","type":"blob","sha":"fde8fac9a1ba0bb65f644b5e91bc3103b06c77ef","size":5998,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fde8fac9a1ba0bb65f644b5e91bc3103b06c77ef"},{"path":"comfy_extras/nodes_rebatch.py","mode":"100644","type":"blob","sha":"5f4e82aef2a06ad7c9a717f74d8d2880a85090be","size":5655,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5f4e82aef2a06ad7c9a717f74d8d2880a85090be"},{"path":"comfy_extras/nodes_rope.py","mode":"100644","type":"blob","sha":"d1feb031e1783d7f44ef35a65e1a70687dbf4b09","size":1563,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d1feb031e1783d7f44ef35a65e1a70687dbf4b09"},{"path":"comfy_extras/nodes_sag.py","mode":"100644","type":"blob","sha":"0f47db30b72af7916f012ee8a3d3415247ec4490","size":6582,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f47db30b72af7916f012ee8a3d3415247ec4490"},{"path":"comfy_extras/nodes_sd3.py","mode":"100644","type":"blob","sha":"14782cb2bb3e027230ac0480fa4dd0189494854f","size":7978,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/14782cb2bb3e027230ac0480fa4dd0189494854f"},{"path":"comfy_extras/nodes_sdupscale.py","mode":"100644","type":"blob","sha":"31b373370ac294e644fc64357d199adb5a3ac8fe","size":2144,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/31b373370ac294e644fc64357d199adb5a3ac8fe"},{"path":"comfy_extras/nodes_slg.py","mode":"100644","type":"blob","sha":"f462faa8f9b32360756fc739045982f611d4845b","size":7041,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f462faa8f9b32360756fc739045982f611d4845b"},{"path":"comfy_extras/nodes_stable3d.py","mode":"100644","type":"blob","sha":"c6d8a683d5f9cb3bdf0b5517763833375a8c950c","size":7625,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c6d8a683d5f9cb3bdf0b5517763833375a8c950c"},{"path":"comfy_extras/nodes_stable_cascade.py","mode":"100644","type":"blob","sha":"04c0b366a60f2c8f00acd6421d38d8b4787e9dde","size":5537,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/04c0b366a60f2c8f00acd6421d38d8b4787e9dde"},{"path":"comfy_extras/nodes_string.py","mode":"100644","type":"blob","sha":"571d89f6268f0850212208379808eb2b81fe3df6","size":12076,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/571d89f6268f0850212208379808eb2b81fe3df6"},{"path":"comfy_extras/nodes_tcfg.py","mode":"100644","type":"blob","sha":"1a6767770ee091c1a05eef0af9a8ca667b0c72dd","size":2695,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1a6767770ee091c1a05eef0af9a8ca667b0c72dd"},{"path":"comfy_extras/nodes_tomesd.py","mode":"100644","type":"blob","sha":"87bf29b8fa02be0583619375cb3b1ea97de05bfd","size":7063,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/87bf29b8fa02be0583619375cb3b1ea97de05bfd"},{"path":"comfy_extras/nodes_torch_compile.py","mode":"100644","type":"blob","sha":"c43e8ad63b30efa0452760c6605be5743da58f94","size":1297,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c43e8ad63b30efa0452760c6605be5743da58f94"},{"path":"comfy_extras/nodes_train.py","mode":"100644","type":"blob","sha":"364804205d785224c150a11a95c153114995c393","size":41738,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/364804205d785224c150a11a95c153114995c393"},{"path":"comfy_extras/nodes_upscale_model.py","mode":"100644","type":"blob","sha":"4d62b87be209abd00b5e8c1b85d31921e6502209","size":3816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4d62b87be209abd00b5e8c1b85d31921e6502209"},{"path":"comfy_extras/nodes_video.py","mode":"100644","type":"blob","sha":"c609e03da390cc4bcef72d70f2c66d2ade782949","size":8494,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c609e03da390cc4bcef72d70f2c66d2ade782949"},{"path":"comfy_extras/nodes_video_model.py","mode":"100644","type":"blob","sha":"0f760aa26627f7dcc9e0d4483e05dae1326a4c66","size":7497,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f760aa26627f7dcc9e0d4483e05dae1326a4c66"},{"path":"comfy_extras/nodes_wan.py","mode":"100644","type":"blob","sha":"b0bd471bfb424b736c20a8ac6a7ae9646a35a3ff","size":66169,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b0bd471bfb424b736c20a8ac6a7ae9646a35a3ff"},{"path":"comfy_extras/nodes_wanmove.py","mode":"100644","type":"blob","sha":"5f39afa46c4e371ddc1387f53a10774e63dad160","size":23859,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5f39afa46c4e371ddc1387f53a10774e63dad160"},{"path":"comfy_extras/nodes_webcam.py","mode":"100644","type":"blob","sha":"5bf80b4c6e055f70ed277ec0a9bbbeb180151a3d","size":987,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5bf80b4c6e055f70ed277ec0a9bbbeb180151a3d"},{"path":"comfyui_version.py","mode":"100644","type":"blob","sha":"1f28e24078f4b767701961f640fda6e407cd21b1","size":127,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/1f28e24078f4b767701961f640fda6e407cd21b1"},{"path":"cuda_malloc.py","mode":"100644","type":"blob","sha":"ee2bc4b69d8fcbf6652ece963fe640aae6d88304","size":3743,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ee2bc4b69d8fcbf6652ece963fe640aae6d88304"},{"path":"custom_nodes","mode":"040000","type":"tree","sha":"8851aba36b58d2d16f1772c2ee9a357fce4d438f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8851aba36b58d2d16f1772c2ee9a357fce4d438f"},{"path":"custom_nodes/example_node.py.example","mode":"100644","type":"blob","sha":"779c35787ea8a3f3e13f0383702106b85fe3f2f5","size":5151,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/779c35787ea8a3f3e13f0383702106b85fe3f2f5"},{"path":"custom_nodes/websocket_image_save.py","mode":"100644","type":"blob","sha":"15f87f9f56175f33df18c6142f9e13c4503b1186","size":1220,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/15f87f9f56175f33df18c6142f9e13c4503b1186"},{"path":"execution.py","mode":"100644","type":"blob","sha":"0c239efd7a2f2ba8adff7ffc3bef5a1446cd3bd3","size":52105,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c239efd7a2f2ba8adff7ffc3bef5a1446cd3bd3"},{"path":"extra_model_paths.yaml.example","mode":"100644","type":"blob","sha":"34df01681ab151f3e8ad0e7bb9c0b53c12bf6b42","size":1886,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/34df01681ab151f3e8ad0e7bb9c0b53c12bf6b42"},{"path":"folder_paths.py","mode":"100644","type":"blob","sha":"9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8","size":18573,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8"},{"path":"hook_breaker_ac10a0.py","mode":"100644","type":"blob","sha":"c3e1c063382760535cee82e8bfcbc85d17e2cce4","size":366,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3e1c063382760535cee82e8bfcbc85d17e2cce4"},{"path":"input","mode":"040000","type":"tree","sha":"c5e3994a5e5b4363b882b74594a36fade2ff2515","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/c5e3994a5e5b4363b882b74594a36fade2ff2515"},{"path":"input/example.png","mode":"100644","type":"blob","sha":"7b7f3c9cbbe6d8750c4a9eaf65d6ae4d2f108f79","size":8589,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7b7f3c9cbbe6d8750c4a9eaf65d6ae4d2f108f79"},{"path":"latent_preview.py","mode":"100644","type":"blob","sha":"d52e3f7a1fd03a343161ba4d62580a357b486ade","size":5752,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d52e3f7a1fd03a343161ba4d62580a357b486ade"},{"path":"main.py","mode":"100644","type":"blob","sha":"0e07a95daeba70aac08a44d3c523151b9f6298c0","size":16181,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0e07a95daeba70aac08a44d3c523151b9f6298c0"},{"path":"manager_requirements.txt","mode":"100644","type":"blob","sha":"2300f0c70083373a51aac6388fe0187fe29c38a3","size":25,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2300f0c70083373a51aac6388fe0187fe29c38a3"},{"path":"middleware","mode":"040000","type":"tree","sha":"11b38e5db6068c6aec6605709900f6cff4da4cec","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/11b38e5db6068c6aec6605709900f6cff4da4cec"},{"path":"middleware/__init__.py","mode":"100644","type":"blob","sha":"2d7c7c3a9024de7be424d51aa2b729fd5a715a86","size":32,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2d7c7c3a9024de7be424d51aa2b729fd5a715a86"},{"path":"middleware/cache_middleware.py","mode":"100644","type":"blob","sha":"f0213536918f3af1584641f968ea62c41d9700e2","size":1706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f0213536918f3af1584641f968ea62c41d9700e2"},{"path":"models","mode":"040000","type":"tree","sha":"4286e432d4a0670f5a18b45a0b4e4ce80eeb18c3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/4286e432d4a0670f5a18b45a0b4e4ce80eeb18c3"},{"path":"models/audio_encoders","mode":"040000","type":"tree","sha":"86843fa99e9989ccb1fdd818a5834abcd1a2599c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/86843fa99e9989ccb1fdd818a5834abcd1a2599c"},{"path":"models/audio_encoders/put_audio_encoder_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/checkpoints","mode":"040000","type":"tree","sha":"25672fbdfed73fb4f237f0b4eee275a20619514c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/25672fbdfed73fb4f237f0b4eee275a20619514c"},{"path":"models/checkpoints/put_checkpoints_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/clip","mode":"040000","type":"tree","sha":"0f737c81be44fdb71bf4dd79cd502df792ae8419","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0f737c81be44fdb71bf4dd79cd502df792ae8419"},{"path":"models/clip/put_clip_or_text_encoder_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/clip_vision","mode":"040000","type":"tree","sha":"7106e9d1171ada573be2f99c3072c03fa37b667f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7106e9d1171ada573be2f99c3072c03fa37b667f"},{"path":"models/clip_vision/put_clip_vision_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/configs","mode":"040000","type":"tree","sha":"7b584405486c2b92996c337e193ad334e47313db","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7b584405486c2b92996c337e193ad334e47313db"},{"path":"models/configs/anything_v3.yaml","mode":"100644","type":"blob","sha":"8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34"},{"path":"models/configs/v1-inference.yaml","mode":"100644","type":"blob","sha":"d4effe569e897369918625f9d8be5603a0e6a0d6","size":1873,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d4effe569e897369918625f9d8be5603a0e6a0d6"},{"path":"models/configs/v1-inference_clip_skip_2.yaml","mode":"100644","type":"blob","sha":"8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34","size":1933,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8bcfe584ae73d60e2c7a6f89b3f7befbd487ea34"},{"path":"models/configs/v1-inference_clip_skip_2_fp16.yaml","mode":"100644","type":"blob","sha":"7eca31c7b5e571c2b1348e94ed9d69978ebd2d52","size":1956,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7eca31c7b5e571c2b1348e94ed9d69978ebd2d52"},{"path":"models/configs/v1-inference_fp16.yaml","mode":"100644","type":"blob","sha":"147f42b17b835cc839338156f99e8f971df5c1aa","size":1896,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/147f42b17b835cc839338156f99e8f971df5c1aa"},{"path":"models/configs/v1-inpainting-inference.yaml","mode":"100644","type":"blob","sha":"45f3f82d461cd8c6109f26ec3b1da75366eda0b0","size":1992,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/45f3f82d461cd8c6109f26ec3b1da75366eda0b0"},{"path":"models/configs/v2-inference-v.yaml","mode":"100644","type":"blob","sha":"8ec8dfbfefe94ae8522c93017668fea78d580acf","size":1815,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/8ec8dfbfefe94ae8522c93017668fea78d580acf"},{"path":"models/configs/v2-inference-v_fp32.yaml","mode":"100644","type":"blob","sha":"d5c9b9cb29ca162ade44a7c922f59e75d7d57813","size":1816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d5c9b9cb29ca162ade44a7c922f59e75d7d57813"},{"path":"models/configs/v2-inference.yaml","mode":"100644","type":"blob","sha":"152c4f3c2b36c3b246a9cb10eb8166134b0d2e1c","size":1789,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/152c4f3c2b36c3b246a9cb10eb8166134b0d2e1c"},{"path":"models/configs/v2-inference_fp32.yaml","mode":"100644","type":"blob","sha":"0d03231f3f2c2e8ef8fbe0d781e5f3d65409ef3a","size":1790,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0d03231f3f2c2e8ef8fbe0d781e5f3d65409ef3a"},{"path":"models/configs/v2-inpainting-inference.yaml","mode":"100644","type":"blob","sha":"32a9471d71b828c51bcbbabfe34c5f6c8282c803","size":4450,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/32a9471d71b828c51bcbbabfe34c5f6c8282c803"},{"path":"models/controlnet","mode":"040000","type":"tree","sha":"5a83ae6a0b91bad7a32204467dd1377cdf1ee907","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5a83ae6a0b91bad7a32204467dd1377cdf1ee907"},{"path":"models/controlnet/put_controlnets_and_t2i_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/diffusers","mode":"040000","type":"tree","sha":"cf5cd1731ce17b8a27403bb7e976b9cf519aa360","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/cf5cd1731ce17b8a27403bb7e976b9cf519aa360"},{"path":"models/diffusers/put_diffusers_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/diffusion_models","mode":"040000","type":"tree","sha":"6dd7cfa71915656b72a58078ddb50dcfad2a3ce0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6dd7cfa71915656b72a58078ddb50dcfad2a3ce0"},{"path":"models/diffusion_models/put_diffusion_model_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/embeddings","mode":"040000","type":"tree","sha":"f39719329b51d40717bd0a49b6f4e7e49923ce73","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f39719329b51d40717bd0a49b6f4e7e49923ce73"},{"path":"models/embeddings/put_embeddings_or_textual_inversion_concepts_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/gligen","mode":"040000","type":"tree","sha":"40edb77ccd64ca93b7a8bc393e8f3c53d6e3889d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/40edb77ccd64ca93b7a8bc393e8f3c53d6e3889d"},{"path":"models/gligen/put_gligen_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/hypernetworks","mode":"040000","type":"tree","sha":"bb04dbc8c3d79c0f6fae8b895205c18a2a152e79","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/bb04dbc8c3d79c0f6fae8b895205c18a2a152e79"},{"path":"models/hypernetworks/put_hypernetworks_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/latent_upscale_models","mode":"040000","type":"tree","sha":"dceccbb668a1faada65bdc8492ae276f27988184","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/dceccbb668a1faada65bdc8492ae276f27988184"},{"path":"models/latent_upscale_models/put_latent_upscale_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/loras","mode":"040000","type":"tree","sha":"7e90310f36d25711264493c0045f41d94fe42f75","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7e90310f36d25711264493c0045f41d94fe42f75"},{"path":"models/loras/put_loras_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/model_patches","mode":"040000","type":"tree","sha":"347b67dcd2a84c335249d2182868c3d141575f03","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/347b67dcd2a84c335249d2182868c3d141575f03"},{"path":"models/model_patches/put_model_patches_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/photomaker","mode":"040000","type":"tree","sha":"3c52c379e6795a69967782659b8db4020a7dcd2f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/3c52c379e6795a69967782659b8db4020a7dcd2f"},{"path":"models/photomaker/put_photomaker_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/style_models","mode":"040000","type":"tree","sha":"8b8576516f89d3f0fc46c5d1bd28b68742858dc3","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8b8576516f89d3f0fc46c5d1bd28b68742858dc3"},{"path":"models/style_models/put_t2i_style_model_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/text_encoders","mode":"040000","type":"tree","sha":"a7f3fe38ed7a8008f8c0c6d4c5f783b350217e49","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a7f3fe38ed7a8008f8c0c6d4c5f783b350217e49"},{"path":"models/text_encoders/put_text_encoder_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/unet","mode":"040000","type":"tree","sha":"a4b35d7a454474d792eac42ca0acd1e3d8bd801e","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a4b35d7a454474d792eac42ca0acd1e3d8bd801e"},{"path":"models/unet/put_unet_files_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/upscale_models","mode":"040000","type":"tree","sha":"091689c25459ae81ee19e974eb53b30609e4ac4f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/091689c25459ae81ee19e974eb53b30609e4ac4f"},{"path":"models/upscale_models/put_esrgan_and_other_upscale_models_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/vae","mode":"040000","type":"tree","sha":"39bce83e44ba60a1700e60776d0b62b470cb15ca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/39bce83e44ba60a1700e60776d0b62b470cb15ca"},{"path":"models/vae/put_vae_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"models/vae_approx","mode":"040000","type":"tree","sha":"fecda1ff613fcbd1e84065941ebda49c81624044","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/fecda1ff613fcbd1e84065941ebda49c81624044"},{"path":"models/vae_approx/put_taesd_encoder_pth_and_taesd_decoder_pth_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"new_updater.py","mode":"100644","type":"blob","sha":"9a203acdd71f62b3b1122cb879c75344f5859c5d","size":1261,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9a203acdd71f62b3b1122cb879c75344f5859c5d"},{"path":"node_helpers.py","mode":"100644","type":"blob","sha":"4ff960ef8afeadd935b6e48a9a683b7ef6970b2f","size":1684,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4ff960ef8afeadd935b6e48a9a683b7ef6970b2f"},{"path":"nodes.py","mode":"100644","type":"blob","sha":"7d83ecb21db8d30bf71c24bd2fbd2c7adfdff7d6","size":100024,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7d83ecb21db8d30bf71c24bd2fbd2c7adfdff7d6"},{"path":"output","mode":"040000","type":"tree","sha":"a617907644c7aa5be7b2c911b7fe148196639772","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/a617907644c7aa5be7b2c911b7fe148196639772"},{"path":"output/_output_images_will_be_put_here","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"protocol.py","mode":"100644","type":"blob","sha":"038a0a840d4efba202b54eabeeacc01f0eba0ed3","size":129,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/038a0a840d4efba202b54eabeeacc01f0eba0ed3"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"35a268bd13dfe1fbe664cf18a3418edf25aba320","size":1943,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/35a268bd13dfe1fbe664cf18a3418edf25aba320"},{"path":"pytest.ini","mode":"100644","type":"blob","sha":"a224d8cbb5511cf6be0c0cf75ae92268339e11d6","size":227,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a224d8cbb5511cf6be0c0cf75ae92268339e11d6"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"59ac599c16df7d86b4c6b1645d029dd7d421f140","size":410,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/59ac599c16df7d86b4c6b1645d029dd7d421f140"},{"path":"script_examples","mode":"040000","type":"tree","sha":"5eea47f0106bfd865dcd5cf3f05ce5b31c0497de","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5eea47f0106bfd865dcd5cf3f05ce5b31c0497de"},{"path":"script_examples/basic_api_example.py","mode":"100644","type":"blob","sha":"7e20cc2c18795c79559c9d3f52355d4cad93c70e","size":2830,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e20cc2c18795c79559c9d3f52355d4cad93c70e"},{"path":"script_examples/websockets_api_example.py","mode":"100644","type":"blob","sha":"58f26cfb696c5012a36af56e91d339b480359bb5","size":4953,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/58f26cfb696c5012a36af56e91d339b480359bb5"},{"path":"script_examples/websockets_api_example_ws_images.py","mode":"100644","type":"blob","sha":"6508ecc99e732f75c2489e3cddb42229de2d356a","size":4475,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/6508ecc99e732f75c2489e3cddb42229de2d356a"},{"path":"server.py","mode":"100644","type":"blob","sha":"c27f8be7deda914307e25442f3a2c7e29acb0569","size":51507,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c27f8be7deda914307e25442f3a2c7e29acb0569"},{"path":"tests-unit","mode":"040000","type":"tree","sha":"d6b43fdbfe6e1b38a8deaf05d1c97b5d838e2f0c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/d6b43fdbfe6e1b38a8deaf05d1c97b5d838e2f0c"},{"path":"tests-unit/README.md","mode":"100644","type":"blob","sha":"81692b8f1de8c74fd058e627d10dbd0fc2821257","size":131,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/81692b8f1de8c74fd058e627d10dbd0fc2821257"},{"path":"tests-unit/app_test","mode":"040000","type":"tree","sha":"7bd90b49466ed0caa64ef098711f2b6f63972d79","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7bd90b49466ed0caa64ef098711f2b6f63972d79"},{"path":"tests-unit/app_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/app_test/custom_node_manager_test.py","mode":"100644","type":"blob","sha":"b61e25e54e657609b3970358d6ff3354ff8f5a8e","size":5141,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b61e25e54e657609b3970358d6ff3354ff8f5a8e"},{"path":"tests-unit/app_test/frontend_manager_test.py","mode":"100644","type":"blob","sha":"643f04e722098b6b7dee247544c82cef6447a198","size":7671,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/643f04e722098b6b7dee247544c82cef6447a198"},{"path":"tests-unit/app_test/model_manager_test.py","mode":"100644","type":"blob","sha":"ae59206f65639ca1749b1cf7b6903ebab18fb298","size":1851,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ae59206f65639ca1749b1cf7b6903ebab18fb298"},{"path":"tests-unit/app_test/user_manager_system_user_test.py","mode":"100644","type":"blob","sha":"63b1ac5e56d29447ceadc50f590fa140eee86fd5","size":7706,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/63b1ac5e56d29447ceadc50f590fa140eee86fd5"},{"path":"tests-unit/comfy_api_nodes_test","mode":"040000","type":"tree","sha":"944e86b7c09099f9ac8c9774d01d592ad3f1831b","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/944e86b7c09099f9ac8c9774d01d592ad3f1831b"},{"path":"tests-unit/comfy_api_nodes_test/mapper_utils_test.py","mode":"100644","type":"blob","sha":"69488f69125f91fe886343355116c4e2884e3ad8","size":7916,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/69488f69125f91fe886343355116c4e2884e3ad8"},{"path":"tests-unit/comfy_api_test","mode":"040000","type":"tree","sha":"90aca1b70ee11b924dd8ab4ec7db81cb36ed0033","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/90aca1b70ee11b924dd8ab4ec7db81cb36ed0033"},{"path":"tests-unit/comfy_api_test/input_impl_test.py","mode":"100644","type":"blob","sha":"5fc21a9a74382fef56cd826c65a31210d1313310","size":3566,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/5fc21a9a74382fef56cd826c65a31210d1313310"},{"path":"tests-unit/comfy_api_test/video_types_test.py","mode":"100644","type":"blob","sha":"b25fcb1ca866c053452d230d4b734fd5c29b7edd","size":7617,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b25fcb1ca866c053452d230d4b734fd5c29b7edd"},{"path":"tests-unit/comfy_extras_test","mode":"040000","type":"tree","sha":"8488073552f03801784f108098193202c100c615","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8488073552f03801784f108098193202c100c615"},{"path":"tests-unit/comfy_extras_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/comfy_extras_test/image_stitch_test.py","mode":"100644","type":"blob","sha":"b5a0f022cd0ca326fd03f30c5397c0db67547060","size":10241,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b5a0f022cd0ca326fd03f30c5397c0db67547060"},{"path":"tests-unit/comfy_quant","mode":"040000","type":"tree","sha":"760963169085b72152b0a6d7f3753bbb560737dd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/760963169085b72152b0a6d7f3753bbb560737dd"},{"path":"tests-unit/comfy_quant/test_mixed_precision.py","mode":"100644","type":"blob","sha":"3a54941e6bf3ad726fc7c4e1eb4817473057858c","size":9575,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3a54941e6bf3ad726fc7c4e1eb4817473057858c"},{"path":"tests-unit/comfy_quant/test_quant_registry.py","mode":"100644","type":"blob","sha":"9cb54ede80268773eb2d72594c2f2e7dee23822f","size":6956,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/9cb54ede80268773eb2d72594c2f2e7dee23822f"},{"path":"tests-unit/comfy_test","mode":"040000","type":"tree","sha":"072bfb3433f670e5e24744d5e8d481413462eadd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/072bfb3433f670e5e24744d5e8d481413462eadd"},{"path":"tests-unit/comfy_test/folder_path_test.py","mode":"100644","type":"blob","sha":"775e15c36ba8a74657161b59ec98ebc62db52512","size":6969,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/775e15c36ba8a74657161b59ec98ebc62db52512"},{"path":"tests-unit/execution_test","mode":"040000","type":"tree","sha":"51287b807621f305678885461edd6c6b8b34bd6f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/51287b807621f305678885461edd6c6b8b34bd6f"},{"path":"tests-unit/execution_test/preview_method_override_test.py","mode":"100644","type":"blob","sha":"79432d610d6fb6029b86ffa859d8805434efc8a5","size":13771,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/79432d610d6fb6029b86ffa859d8805434efc8a5"},{"path":"tests-unit/execution_test/validate_node_input_test.py","mode":"100644","type":"blob","sha":"85a0c9601fd859c9374bfc753bb3382194a709d3","size":4298,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/85a0c9601fd859c9374bfc753bb3382194a709d3"},{"path":"tests-unit/feature_flags_test.py","mode":"100644","type":"blob","sha":"f2702cfc84cdd427f82c3fe0a95148ee83c88f36","size":4000,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f2702cfc84cdd427f82c3fe0a95148ee83c88f36"},{"path":"tests-unit/folder_paths_test","mode":"040000","type":"tree","sha":"e55e753c45629fafc40b0d2d896a14fd477a14c9","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/e55e753c45629fafc40b0d2d896a14fd477a14c9"},{"path":"tests-unit/folder_paths_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/folder_paths_test/filter_by_content_types_test.py","mode":"100644","type":"blob","sha":"683f9fc113a842cc3d36ff955aeb61d2ad6ff60b","size":2613,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/683f9fc113a842cc3d36ff955aeb61d2ad6ff60b"},{"path":"tests-unit/folder_paths_test/misc_test.py","mode":"100644","type":"blob","sha":"fcf66745337a09d63e05ed8bbbf38aaccf5d4143","size":1677,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fcf66745337a09d63e05ed8bbbf38aaccf5d4143"},{"path":"tests-unit/folder_paths_test/system_user_test.py","mode":"100644","type":"blob","sha":"cd46459f16684b9af510ced93027a51b1825cca9","size":7852,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/cd46459f16684b9af510ced93027a51b1825cca9"},{"path":"tests-unit/prompt_server_test","mode":"040000","type":"tree","sha":"1a87e5382a6e91daee8b066c7fcb6b449425c4f2","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1a87e5382a6e91daee8b066c7fcb6b449425c4f2"},{"path":"tests-unit/prompt_server_test/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests-unit/prompt_server_test/system_user_endpoint_test.py","mode":"100644","type":"blob","sha":"22ac00af91979ae9a51ad352fbf680d632c77d19","size":13174,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/22ac00af91979ae9a51ad352fbf680d632c77d19"},{"path":"tests-unit/prompt_server_test/user_manager_test.py","mode":"100644","type":"blob","sha":"b939d8e68f821077ca2def1d630f5bd944db8293","size":10103,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b939d8e68f821077ca2def1d630f5bd944db8293"},{"path":"tests-unit/requirements.txt","mode":"100644","type":"blob","sha":"3a6790ee07cdcc37515b9afbd649da0c99d837ca","size":61,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3a6790ee07cdcc37515b9afbd649da0c99d837ca"},{"path":"tests-unit/server","mode":"040000","type":"tree","sha":"54f955116adc323bffd0b492a6616080358c82df","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/54f955116adc323bffd0b492a6616080358c82df"},{"path":"tests-unit/server/utils","mode":"040000","type":"tree","sha":"f2b503c8600691097b5c595847356f53e691d65d","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/f2b503c8600691097b5c595847356f53e691d65d"},{"path":"tests-unit/server/utils/file_operations_test.py","mode":"100644","type":"blob","sha":"2a45cc47a1447e6c2ace4f40e6543b2b7c5e4fcf","size":1502,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2a45cc47a1447e6c2ace4f40e6543b2b7c5e4fcf"},{"path":"tests-unit/server_test","mode":"040000","type":"tree","sha":"6b64758f832606930bc30820089f21bf0e12374c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/6b64758f832606930bc30820089f21bf0e12374c"},{"path":"tests-unit/server_test/test_cache_control.py","mode":"100644","type":"blob","sha":"fa68d940875681fb4b6066c40c33498b9560925a","size":9771,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/fa68d940875681fb4b6066c40c33498b9560925a"},{"path":"tests-unit/utils","mode":"040000","type":"tree","sha":"0dba0b8cf4d9f41c42d063794aaefea154a557ee","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/0dba0b8cf4d9f41c42d063794aaefea154a557ee"},{"path":"tests-unit/utils/extra_config_test.py","mode":"100644","type":"blob","sha":"eae1aa3d3ab8c57d668acf4971b4c886d7dd417f","size":10637,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/eae1aa3d3ab8c57d668acf4971b4c886d7dd417f"},{"path":"tests-unit/utils/json_util_test.py","mode":"100644","type":"blob","sha":"d3089d8d184533cf7510ed0db14cfaf0644c52cf","size":2040,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/d3089d8d184533cf7510ed0db14cfaf0644c52cf"},{"path":"tests-unit/websocket_feature_flags_test.py","mode":"100644","type":"blob","sha":"e93b2e1dde81d9664ed9505ee14aa2d7d994a95d","size":2834,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e93b2e1dde81d9664ed9505ee14aa2d7d994a95d"},{"path":"tests","mode":"040000","type":"tree","sha":"b720cb55706fef5a4217a283a959a746941eef1a","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b720cb55706fef5a4217a283a959a746941eef1a"},{"path":"tests/README.md","mode":"100644","type":"blob","sha":"2005fd45b2bbd249fb7f1dfff789b2ae236568ba","size":563,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/2005fd45b2bbd249fb7f1dfff789b2ae236568ba"},{"path":"tests/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests/compare","mode":"040000","type":"tree","sha":"5ebaecaab8fbfe1c9bd2c2d81c1aacc452ae375f","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/5ebaecaab8fbfe1c9bd2c2d81c1aacc452ae375f"},{"path":"tests/compare/conftest.py","mode":"100644","type":"blob","sha":"dd5078c9e6e432c7de2462c5641068bfa8e0aaee","size":1814,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/dd5078c9e6e432c7de2462c5641068bfa8e0aaee"},{"path":"tests/compare/test_quality.py","mode":"100644","type":"blob","sha":"01c19054956dde3b611dafe97ad244a3579e0e85","size":7912,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/01c19054956dde3b611dafe97ad244a3579e0e85"},{"path":"tests/conftest.py","mode":"100644","type":"blob","sha":"290e3a5c00e04bf44675c098544591a9a79d2e72","size":1816,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/290e3a5c00e04bf44675c098544591a9a79d2e72"},{"path":"tests/execution","mode":"040000","type":"tree","sha":"9d57b7283c0fc045efee77c5777aa35bd81ea060","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/9d57b7283c0fc045efee77c5777aa35bd81ea060"},{"path":"tests/execution/extra_model_paths.yaml","mode":"100644","type":"blob","sha":"68e056564d515893a6860010e6b8c554829f6186","size":69,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/68e056564d515893a6860010e6b8c554829f6186"},{"path":"tests/execution/test_async_nodes.py","mode":"100644","type":"blob","sha":"c771b4b36d9d678e25a58f061b35f86859f88faa","size":18330,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c771b4b36d9d678e25a58f061b35f86859f88faa"},{"path":"tests/execution/test_execution.py","mode":"100644","type":"blob","sha":"f73ca7e3cc27f0ab376df60a16184eea97d67004","size":47773,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/f73ca7e3cc27f0ab376df60a16184eea97d67004"},{"path":"tests/execution/test_jobs.py","mode":"100644","type":"blob","sha":"918c8080af606b1d5c59691e6e4266505c2d2ad6","size":14095,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/918c8080af606b1d5c59691e6e4266505c2d2ad6"},{"path":"tests/execution/test_preview_method.py","mode":"100644","type":"blob","sha":"c3037553b89f13d4cf40ff991f7c923ab66365a5","size":13118,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c3037553b89f13d4cf40ff991f7c923ab66365a5"},{"path":"tests/execution/test_progress_isolation.py","mode":"100644","type":"blob","sha":"93dc0d41bba228f0adf1fe23e611f6b49f6dcf2f","size":9432,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/93dc0d41bba228f0adf1fe23e611f6b49f6dcf2f"},{"path":"tests/execution/test_public_api.py","mode":"100644","type":"blob","sha":"52bc2fcd8d313aa9f38118e7a36303d74d5e2194","size":6035,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/52bc2fcd8d313aa9f38118e7a36303d74d5e2194"},{"path":"tests/execution/testing_nodes","mode":"040000","type":"tree","sha":"42fa0cface44c2906eefb81cac471f44ce8443d8","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/42fa0cface44c2906eefb81cac471f44ce8443d8"},{"path":"tests/execution/testing_nodes/testing-pack","mode":"040000","type":"tree","sha":"01bbd9ea04d388f51f942aafd7296025e6d310e7","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/01bbd9ea04d388f51f942aafd7296025e6d310e7"},{"path":"tests/execution/testing_nodes/testing-pack/__init__.py","mode":"100644","type":"blob","sha":"3d5ac8a94febb0481c1cf52b7cd89436f0c5c9ce","size":1804,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/3d5ac8a94febb0481c1cf52b7cd89436f0c5c9ce"},{"path":"tests/execution/testing_nodes/testing-pack/api_test_nodes.py","mode":"100644","type":"blob","sha":"b2eaae05ec985caeb313ce47f09ab2858782e043","size":2144,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/b2eaae05ec985caeb313ce47f09ab2858782e043"},{"path":"tests/execution/testing_nodes/testing-pack/async_test_nodes.py","mode":"100644","type":"blob","sha":"547eea6f4117bee47539eacbbda2a54593cee538","size":10703,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/547eea6f4117bee47539eacbbda2a54593cee538"},{"path":"tests/execution/testing_nodes/testing-pack/conditions.py","mode":"100644","type":"blob","sha":"0c200ee2892d4747d9ec6965b6d33f2223e3c08a","size":5353,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0c200ee2892d4747d9ec6965b6d33f2223e3c08a"},{"path":"tests/execution/testing_nodes/testing-pack/flow_control.py","mode":"100644","type":"blob","sha":"ba943be6072f2003ebe1e6aa996d2dd8370c8c09","size":5938,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/ba943be6072f2003ebe1e6aa996d2dd8370c8c09"},{"path":"tests/execution/testing_nodes/testing-pack/specific_tests.py","mode":"100644","type":"blob","sha":"4f8f01ae4a48bc46791f4c20851f12adbc0e8beb","size":16762,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/4f8f01ae4a48bc46791f4c20851f12adbc0e8beb"},{"path":"tests/execution/testing_nodes/testing-pack/stubs.py","mode":"100644","type":"blob","sha":"a1df87529c65ffa46db64cc197f54aef376ff8c0","size":3729,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a1df87529c65ffa46db64cc197f54aef376ff8c0"},{"path":"tests/execution/testing_nodes/testing-pack/tools.py","mode":"100644","type":"blob","sha":"34b28c0eb4892cdbc4e7575e651719f48ca917e9","size":2373,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/34b28c0eb4892cdbc4e7575e651719f48ca917e9"},{"path":"tests/execution/testing_nodes/testing-pack/util.py","mode":"100644","type":"blob","sha":"17741c5f1dff2eeff86fec5173e675bf9ac6cf3b","size":10109,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/17741c5f1dff2eeff86fec5173e675bf9ac6cf3b"},{"path":"tests/inference","mode":"040000","type":"tree","sha":"7bf5e7435fb0b273d9b5dccefe62961188c1acca","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7bf5e7435fb0b273d9b5dccefe62961188c1acca"},{"path":"tests/inference/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"tests/inference/graphs","mode":"040000","type":"tree","sha":"8c57dae7b7548ac5e30d4265f1424beae9363b5c","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/8c57dae7b7548ac5e30d4265f1424beae9363b5c"},{"path":"tests/inference/graphs/default_graph_sdxl1_0.json","mode":"100644","type":"blob","sha":"c06c6829c6253cc71982f3714620bd10dd41bd73","size":2665,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/c06c6829c6253cc71982f3714620bd10dd41bd73"},{"path":"tests/inference/test_inference.py","mode":"100644","type":"blob","sha":"7e4a206c41d95d5740c9c8b6e6c9071ad0ee86ce","size":8161,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/7e4a206c41d95d5740c9c8b6e6c9071ad0ee86ce"},{"path":"utils","mode":"040000","type":"tree","sha":"b9255671f816fe8bbcf4ed93ecea274e413bf369","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/b9255671f816fe8bbcf4ed93ecea274e413bf369"},{"path":"utils/__init__.py","mode":"100644","type":"blob","sha":"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391","size":0,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},{"path":"utils/extra_config.py","mode":"100644","type":"blob","sha":"a0fcda9e8900ee2c67d79a1e588ff973f9ea7ea6","size":1370,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/a0fcda9e8900ee2c67d79a1e588ff973f9ea7ea6"},{"path":"utils/install_util.py","mode":"100644","type":"blob","sha":"0f59bcf9193570a36641bd4e0c70c80d05be1a0f","size":572,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/0f59bcf9193570a36641bd4e0c70c80d05be1a0f"},{"path":"utils/json_util.py","mode":"100644","type":"blob","sha":"da45af4f74f386973d3f1968d88b083ca5906d81","size":781,"url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/blobs/da45af4f74f386973d3f1968d88b083ca5906d81"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/core__LICENSE b/docs/hel-892/storyboard-reference/core__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/storyboard-reference/core__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/storyboard-reference/core__comfy_api__latest___io.py b/docs/hel-892/storyboard-reference/core__comfy_api__latest___io.py new file mode 100644 index 00000000..4b14e5de --- /dev/null +++ b/docs/hel-892/storyboard-reference/core__comfy_api__latest___io.py @@ -0,0 +1,1920 @@ +from __future__ import annotations + +import copy +import inspect +from abc import ABC, abstractmethod +from collections import Counter +from collections.abc import Iterable +from dataclasses import asdict, dataclass, field +from enum import Enum +from typing import Any, Callable, Literal, TypedDict, TypeVar, TYPE_CHECKING +from typing_extensions import NotRequired, final + +# used for type hinting +import torch + +if TYPE_CHECKING: + from spandrel import ImageModelDescriptor + from comfy.clip_vision import ClipVisionModel + from comfy.clip_vision import Output as ClipVisionOutput_ + from comfy.controlnet import ControlNet + from comfy.hooks import HookGroup, HookKeyframeGroup + from comfy.model_patcher import ModelPatcher + from comfy.samplers import CFGGuider, Sampler + from comfy.sd import CLIP, VAE + from comfy.sd import StyleModel as StyleModel_ + from comfy_api.input import VideoInput +from comfy_api.internal import (_ComfyNodeInternal, _NodeOutputInternal, classproperty, copy_class, first_real_override, is_class, + prune_dict, shallow_clone_class) +from ._resources import Resources, ResourcesLocal +from comfy_execution.graph_utils import ExecutionBlocker +from ._util import MESH, VOXEL + +# from comfy_extras.nodes_images import SVG as SVG_ # NOTE: needs to be moved before can be imported due to circular reference + +class FolderType(str, Enum): + input = "input" + output = "output" + temp = "temp" + + +class UploadType(str, Enum): + image = "image_upload" + audio = "audio_upload" + video = "video_upload" + model = "file_upload" + + +class RemoteOptions: + def __init__(self, route: str, refresh_button: bool, control_after_refresh: Literal["first", "last"]="first", + timeout: int=None, max_retries: int=None, refresh: int=None): + self.route = route + """The route to the remote source.""" + self.refresh_button = refresh_button + """Specifies whether to show a refresh button in the UI below the widget.""" + self.control_after_refresh = control_after_refresh + """Specifies the control after the refresh button is clicked. If "first", the first item will be automatically selected, and so on.""" + self.timeout = timeout + """The maximum amount of time to wait for a response from the remote source in milliseconds.""" + self.max_retries = max_retries + """The maximum number of retries before aborting the request.""" + self.refresh = refresh + """The TTL of the remote input's value in milliseconds. Specifies the interval at which the remote input's value is refreshed.""" + + def as_dict(self): + return prune_dict({ + "route": self.route, + "refresh_button": self.refresh_button, + "control_after_refresh": self.control_after_refresh, + "timeout": self.timeout, + "max_retries": self.max_retries, + "refresh": self.refresh, + }) + + +class NumberDisplay(str, Enum): + number = "number" + slider = "slider" + + +class _StringIOType(str): + def __ne__(self, value: object) -> bool: + if self == "*" or value == "*": + return False + if not isinstance(value, str): + return True + a = frozenset(self.split(",")) + b = frozenset(value.split(",")) + return not (b.issubset(a) or a.issubset(b)) + +class _ComfyType(ABC): + Type = Any + io_type: str = None + +# NOTE: this is a workaround to make the decorator return the correct type +T = TypeVar("T", bound=type) +def comfytype(io_type: str, **kwargs): + ''' + Decorator to mark nested classes as ComfyType; io_type will be bound to the class. + + A ComfyType may have the following attributes: + - Type = + - class Input(Input): ... + - class Output(Output): ... + ''' + def decorator(cls: T) -> T: + if isinstance(cls, _ComfyType) or issubclass(cls, _ComfyType): + # clone Input and Output classes to avoid modifying the original class + new_cls = cls + if hasattr(new_cls, "Input"): + new_cls.Input = copy_class(new_cls.Input) + if hasattr(new_cls, "Output"): + new_cls.Output = copy_class(new_cls.Output) + else: + # copy class attributes except for special ones that shouldn't be in type() + cls_dict = { + k: v for k, v in cls.__dict__.items() + if k not in ('__dict__', '__weakref__', '__module__', '__doc__') + } + # new class + new_cls: ComfyTypeIO = type( + cls.__name__, + (cls, ComfyTypeIO), + cls_dict + ) + # metadata preservation + new_cls.__module__ = cls.__module__ + new_cls.__doc__ = cls.__doc__ + # assign ComfyType attributes, if needed + # NOTE: use __ne__ trick for io_type (see node_typing.IO.__ne__ for details) + new_cls.io_type = _StringIOType(io_type) + if hasattr(new_cls, "Input") and new_cls.Input is not None: + new_cls.Input.Parent = new_cls + if hasattr(new_cls, "Output") and new_cls.Output is not None: + new_cls.Output.Parent = new_cls + return new_cls + return decorator + +def Custom(io_type: str) -> type[ComfyTypeIO]: + '''Create a ComfyType for a custom io_type.''' + @comfytype(io_type=io_type) + class CustomComfyType(ComfyTypeIO): + ... + return CustomComfyType + +class _IO_V3: + ''' + Base class for V3 Inputs and Outputs. + ''' + Parent: _ComfyType = None + + def __init__(self): + pass + + def validate(self): + pass + + @property + def io_type(self): + return self.Parent.io_type + + @property + def Type(self): + return self.Parent.Type + +class Input(_IO_V3): + ''' + Base class for a V3 Input. + ''' + def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, extra_dict=None): + super().__init__() + self.id = id + self.display_name = display_name + self.optional = optional + self.tooltip = tooltip + self.lazy = lazy + self.extra_dict = extra_dict if extra_dict is not None else {} + + def as_dict(self): + return prune_dict({ + "display_name": self.display_name, + "optional": self.optional, + "tooltip": self.tooltip, + "lazy": self.lazy, + }) | prune_dict(self.extra_dict) + + def get_io_type(self): + return _StringIOType(self.io_type) + + def get_all(self) -> list[Input]: + return [self] + +class WidgetInput(Input): + ''' + Base class for a V3 Input with widget. + ''' + def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, + default: Any=None, + socketless: bool=None, widget_type: str=None, force_input: bool=None, extra_dict=None): + super().__init__(id, display_name, optional, tooltip, lazy, extra_dict) + self.default = default + self.socketless = socketless + self.widget_type = widget_type + self.force_input = force_input + + def as_dict(self): + return super().as_dict() | prune_dict({ + "default": self.default, + "socketless": self.socketless, + "widgetType": self.widget_type, + "forceInput": self.force_input, + }) + + def get_io_type(self): + return self.widget_type if self.widget_type is not None else super().get_io_type() + + +class Output(_IO_V3): + def __init__(self, id: str=None, display_name: str=None, tooltip: str=None, + is_output_list=False): + self.id = id + self.display_name = display_name + self.tooltip = tooltip + self.is_output_list = is_output_list + + def as_dict(self): + return prune_dict({ + "display_name": self.display_name, + "tooltip": self.tooltip, + "is_output_list": self.is_output_list, + }) + + def get_io_type(self): + return self.io_type + + +class ComfyTypeI(_ComfyType): + '''ComfyType subclass that only has a default Input class - intended for types that only have Inputs.''' + class Input(Input): + ... + +class ComfyTypeIO(ComfyTypeI): + '''ComfyType subclass that has default Input and Output classes; useful for types with both Inputs and Outputs.''' + class Output(Output): + ... + + +@comfytype(io_type="BOOLEAN") +class Boolean(ComfyTypeIO): + Type = bool + + class Input(WidgetInput): + '''Boolean input.''' + def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, + default: bool=None, label_on: str=None, label_off: str=None, + socketless: bool=None, force_input: bool=None): + super().__init__(id, display_name, optional, tooltip, lazy, default, socketless, None, force_input) + self.label_on = label_on + self.label_off = label_off + self.default: bool + + def as_dict(self): + return super().as_dict() | prune_dict({ + "label_on": self.label_on, + "label_off": self.label_off, + }) + +@comfytype(io_type="INT") +class Int(ComfyTypeIO): + Type = int + + class Input(WidgetInput): + '''Integer input.''' + def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, + default: int=None, min: int=None, max: int=None, step: int=None, control_after_generate: bool=None, + display_mode: NumberDisplay=None, socketless: bool=None, force_input: bool=None): + super().__init__(id, display_name, optional, tooltip, lazy, default, socketless, None, force_input) + self.min = min + self.max = max + self.step = step + self.control_after_generate = control_after_generate + self.display_mode = display_mode + self.default: int + + def as_dict(self): + return super().as_dict() | prune_dict({ + "min": self.min, + "max": self.max, + "step": self.step, + "control_after_generate": self.control_after_generate, + "display": self.display_mode.value if self.display_mode else None, + }) + +@comfytype(io_type="FLOAT") +class Float(ComfyTypeIO): + Type = float + + class Input(WidgetInput): + '''Float input.''' + def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, + default: float=None, min: float=None, max: float=None, step: float=None, round: float=None, + display_mode: NumberDisplay=None, socketless: bool=None, force_input: bool=None): + super().__init__(id, display_name, optional, tooltip, lazy, default, socketless, None, force_input) + self.min = min + self.max = max + self.step = step + self.round = round + self.display_mode = display_mode + self.default: float + + def as_dict(self): + return super().as_dict() | prune_dict({ + "min": self.min, + "max": self.max, + "step": self.step, + "round": self.round, + "display": self.display_mode, + }) + +@comfytype(io_type="STRING") +class String(ComfyTypeIO): + Type = str + + class Input(WidgetInput): + '''String input.''' + def __init__(self, id: str, display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, + multiline=False, placeholder: str=None, default: str=None, dynamic_prompts: bool=None, + socketless: bool=None, force_input: bool=None): + super().__init__(id, display_name, optional, tooltip, lazy, default, socketless, None, force_input) + self.multiline = multiline + self.placeholder = placeholder + self.dynamic_prompts = dynamic_prompts + self.default: str + + def as_dict(self): + return super().as_dict() | prune_dict({ + "multiline": self.multiline, + "placeholder": self.placeholder, + "dynamicPrompts": self.dynamic_prompts, + }) + +@comfytype(io_type="COMBO") +class Combo(ComfyTypeIO): + Type = str + class Input(WidgetInput): + """Combo input (dropdown).""" + Type = str + def __init__( + self, + id: str, + options: list[str] | list[int] | type[Enum] = None, + display_name: str=None, + optional=False, + tooltip: str=None, + lazy: bool=None, + default: str | int | Enum = None, + control_after_generate: bool=None, + upload: UploadType=None, + image_folder: FolderType=None, + remote: RemoteOptions=None, + socketless: bool=None, + ): + if isinstance(options, type) and issubclass(options, Enum): + options = [v.value for v in options] + if isinstance(default, Enum): + default = default.value + super().__init__(id, display_name, optional, tooltip, lazy, default, socketless) + self.multiselect = False + self.options = options + self.control_after_generate = control_after_generate + self.upload = upload + self.image_folder = image_folder + self.remote = remote + self.default: str + + def as_dict(self): + return super().as_dict() | prune_dict({ + "multiselect": self.multiselect, + "options": self.options, + "control_after_generate": self.control_after_generate, + **({self.upload.value: True} if self.upload is not None else {}), + "image_folder": self.image_folder.value if self.image_folder else None, + "remote": self.remote.as_dict() if self.remote else None, + }) + + class Output(Output): + def __init__(self, id: str=None, display_name: str=None, options: list[str]=None, tooltip: str=None, is_output_list=False): + super().__init__(id, display_name, tooltip, is_output_list) + self.options = options if options is not None else [] + + @property + def io_type(self): + return self.options + +@comfytype(io_type="COMBO") +class MultiCombo(ComfyTypeI): + '''Multiselect Combo input (dropdown for selecting potentially more than one value).''' + # TODO: something is wrong with the serialization, frontend does not recognize it as multiselect + Type = list[str] + class Input(Combo.Input): + def __init__(self, id: str, options: list[str], display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, + default: list[str]=None, placeholder: str=None, chip: bool=None, control_after_generate: bool=None, + socketless: bool=None): + super().__init__(id, options, display_name, optional, tooltip, lazy, default, control_after_generate, socketless=socketless) + self.multiselect = True + self.placeholder = placeholder + self.chip = chip + self.default: list[str] + + def as_dict(self): + to_return = super().as_dict() | prune_dict({ + "multi_select": self.multiselect, + "placeholder": self.placeholder, + "chip": self.chip, + }) + return to_return + +@comfytype(io_type="IMAGE") +class Image(ComfyTypeIO): + Type = torch.Tensor + + +@comfytype(io_type="WAN_CAMERA_EMBEDDING") +class WanCameraEmbedding(ComfyTypeIO): + Type = torch.Tensor + + +@comfytype(io_type="WEBCAM") +class Webcam(ComfyTypeIO): + Type = str + + class Input(WidgetInput): + """Webcam input.""" + Type = str + def __init__( + self, id: str, display_name: str=None, optional=False, + tooltip: str=None, lazy: bool=None, default: str=None, socketless: bool=None + ): + super().__init__(id, display_name, optional, tooltip, lazy, default, socketless) + + +@comfytype(io_type="MASK") +class Mask(ComfyTypeIO): + Type = torch.Tensor + +@comfytype(io_type="LATENT") +class Latent(ComfyTypeIO): + '''Latents are stored as a dictionary.''' + class LatentDict(TypedDict): + samples: torch.Tensor + '''Latent tensors.''' + noise_mask: NotRequired[torch.Tensor] + batch_index: NotRequired[list[int]] + type: NotRequired[str] + '''Only needed if dealing with these types: audio, hunyuan3dv2''' + Type = LatentDict + +@comfytype(io_type="CONDITIONING") +class Conditioning(ComfyTypeIO): + class PooledDict(TypedDict): + pooled_output: torch.Tensor + '''Pooled output from CLIP.''' + control: NotRequired[ControlNet] + '''ControlNet to apply to conditioning.''' + control_apply_to_uncond: NotRequired[bool] + '''Whether to apply ControlNet to matching negative conditioning at sample time, if applicable.''' + cross_attn_controlnet: NotRequired[torch.Tensor] + '''CrossAttn from CLIP to use for controlnet only.''' + pooled_output_controlnet: NotRequired[torch.Tensor] + '''Pooled output from CLIP to use for controlnet only.''' + gligen: NotRequired[tuple[str, Gligen, list[tuple[torch.Tensor, int, ...]]]] + '''GLIGEN to apply to conditioning.''' + area: NotRequired[tuple[int, ...] | tuple[str, float, ...]] + '''Set area of conditioning. First half of values apply to dimensions, the second half apply to coordinates. + By default, the dimensions are based on total pixel amount, but the first value can be set to "percentage" to use a percentage of the image size instead. + + (1024, 1024, 0, 0) would apply conditioning to the top-left 1024x1024 pixels. + + ("percentage", 0.5, 0.5, 0, 0) would apply conditioning to the top-left 50% of the image.''' # TODO: verify its actually top-left + strength: NotRequired[float] + '''Strength of conditioning. Default strength is 1.0.''' + mask: NotRequired[torch.Tensor] + '''Mask to apply conditioning to.''' + mask_strength: NotRequired[float] + '''Strength of conditioning mask. Default strength is 1.0.''' + set_area_to_bounds: NotRequired[bool] + '''Whether conditioning mask should determine bounds of area - if set to false, latents are sampled at full resolution and result is applied in mask.''' + concat_latent_image: NotRequired[torch.Tensor] + '''Used for inpainting and specific models.''' + concat_mask: NotRequired[torch.Tensor] + '''Used for inpainting and specific models.''' + concat_image: NotRequired[torch.Tensor] + '''Used by SD_4XUpscale_Conditioning.''' + noise_augmentation: NotRequired[float] + '''Used by SD_4XUpscale_Conditioning.''' + hooks: NotRequired[HookGroup] + '''Applies hooks to conditioning.''' + default: NotRequired[bool] + '''Whether to this conditioning is 'default'; default conditioning gets applied to any areas of the image that have no masks/areas applied, assuming at least one area/mask is present during sampling.''' + start_percent: NotRequired[float] + '''Determines relative step to begin applying conditioning, expressed as a float between 0.0 and 1.0.''' + end_percent: NotRequired[float] + '''Determines relative step to end applying conditioning, expressed as a float between 0.0 and 1.0.''' + clip_start_percent: NotRequired[float] + '''Internal variable for conditioning scheduling - start of application, expressed as a float between 0.0 and 1.0.''' + clip_end_percent: NotRequired[float] + '''Internal variable for conditioning scheduling - end of application, expressed as a float between 0.0 and 1.0.''' + attention_mask: NotRequired[torch.Tensor] + '''Masks text conditioning; used by StyleModel among others.''' + attention_mask_img_shape: NotRequired[tuple[int, ...]] + '''Masks text conditioning; used by StyleModel among others.''' + unclip_conditioning: NotRequired[list[dict]] + '''Used by unCLIP.''' + conditioning_lyrics: NotRequired[torch.Tensor] + '''Used by AceT5Model.''' + seconds_start: NotRequired[float] + '''Used by StableAudio.''' + seconds_total: NotRequired[float] + '''Used by StableAudio.''' + lyrics_strength: NotRequired[float] + '''Used by AceStepAudio.''' + width: NotRequired[int] + '''Used by certain models (e.g. CLIPTextEncodeSDXL/Refiner, PixArtAlpha).''' + height: NotRequired[int] + '''Used by certain models (e.g. CLIPTextEncodeSDXL/Refiner, PixArtAlpha).''' + aesthetic_score: NotRequired[float] + '''Used by CLIPTextEncodeSDXL/Refiner.''' + crop_w: NotRequired[int] + '''Used by CLIPTextEncodeSDXL.''' + crop_h: NotRequired[int] + '''Used by CLIPTextEncodeSDXL.''' + target_width: NotRequired[int] + '''Used by CLIPTextEncodeSDXL.''' + target_height: NotRequired[int] + '''Used by CLIPTextEncodeSDXL.''' + reference_latents: NotRequired[list[torch.Tensor]] + '''Used by ReferenceLatent.''' + guidance: NotRequired[float] + '''Used by Flux-like models with guidance embed.''' + guiding_frame_index: NotRequired[int] + '''Used by Hunyuan ImageToVideo.''' + ref_latent: NotRequired[torch.Tensor] + '''Used by Hunyuan ImageToVideo.''' + keyframe_idxs: NotRequired[list[int]] + '''Used by LTXV.''' + frame_rate: NotRequired[float] + '''Used by LTXV.''' + stable_cascade_prior: NotRequired[torch.Tensor] + '''Used by StableCascade.''' + elevation: NotRequired[list[float]] + '''Used by SV3D.''' + azimuth: NotRequired[list[float]] + '''Used by SV3D.''' + motion_bucket_id: NotRequired[int] + '''Used by SVD-like models.''' + fps: NotRequired[int] + '''Used by SVD-like models.''' + augmentation_level: NotRequired[float] + '''Used by SVD-like models.''' + clip_vision_output: NotRequired[ClipVisionOutput_] + '''Used by WAN-like models.''' + vace_frames: NotRequired[torch.Tensor] + '''Used by WAN VACE.''' + vace_mask: NotRequired[torch.Tensor] + '''Used by WAN VACE.''' + vace_strength: NotRequired[float] + '''Used by WAN VACE.''' + camera_conditions: NotRequired[Any] # TODO: assign proper type once defined + '''Used by WAN Camera.''' + time_dim_concat: NotRequired[torch.Tensor] + '''Used by WAN Phantom Subject.''' + time_dim_replace: NotRequired[torch.Tensor] + '''Used by Kandinsky5 I2V.''' + + CondList = list[tuple[torch.Tensor, PooledDict]] + Type = CondList + +@comfytype(io_type="SAMPLER") +class Sampler(ComfyTypeIO): + if TYPE_CHECKING: + Type = Sampler + +@comfytype(io_type="SIGMAS") +class Sigmas(ComfyTypeIO): + Type = torch.Tensor + +@comfytype(io_type="NOISE") +class Noise(ComfyTypeIO): + Type = torch.Tensor + +@comfytype(io_type="GUIDER") +class Guider(ComfyTypeIO): + if TYPE_CHECKING: + Type = CFGGuider + +@comfytype(io_type="CLIP") +class Clip(ComfyTypeIO): + if TYPE_CHECKING: + Type = CLIP + +@comfytype(io_type="CONTROL_NET") +class ControlNet(ComfyTypeIO): + if TYPE_CHECKING: + Type = ControlNet + +@comfytype(io_type="VAE") +class Vae(ComfyTypeIO): + if TYPE_CHECKING: + Type = VAE + +@comfytype(io_type="MODEL") +class Model(ComfyTypeIO): + if TYPE_CHECKING: + Type = ModelPatcher + +@comfytype(io_type="CLIP_VISION") +class ClipVision(ComfyTypeIO): + if TYPE_CHECKING: + Type = ClipVisionModel + +@comfytype(io_type="CLIP_VISION_OUTPUT") +class ClipVisionOutput(ComfyTypeIO): + if TYPE_CHECKING: + Type = ClipVisionOutput_ + +@comfytype(io_type="STYLE_MODEL") +class StyleModel(ComfyTypeIO): + if TYPE_CHECKING: + Type = StyleModel_ + +@comfytype(io_type="GLIGEN") +class Gligen(ComfyTypeIO): + '''ModelPatcher that wraps around a 'Gligen' model.''' + if TYPE_CHECKING: + Type = ModelPatcher + +@comfytype(io_type="UPSCALE_MODEL") +class UpscaleModel(ComfyTypeIO): + if TYPE_CHECKING: + Type = ImageModelDescriptor + +@comfytype(io_type="LATENT_UPSCALE_MODEL") +class LatentUpscaleModel(ComfyTypeIO): + Type = Any + +@comfytype(io_type="AUDIO") +class Audio(ComfyTypeIO): + class AudioDict(TypedDict): + waveform: torch.Tensor + sampler_rate: int + Type = AudioDict + +@comfytype(io_type="VIDEO") +class Video(ComfyTypeIO): + if TYPE_CHECKING: + Type = VideoInput + +@comfytype(io_type="SVG") +class SVG(ComfyTypeIO): + Type = Any # TODO: SVG class is defined in comfy_extras/nodes_images.py, causing circular reference; should be moved to somewhere else before referenced directly in v3 + +@comfytype(io_type="LORA_MODEL") +class LoraModel(ComfyTypeIO): + Type = dict[str, torch.Tensor] + +@comfytype(io_type="LOSS_MAP") +class LossMap(ComfyTypeIO): + class LossMapDict(TypedDict): + loss: list[torch.Tensor] + Type = LossMapDict + +@comfytype(io_type="VOXEL") +class Voxel(ComfyTypeIO): + Type = VOXEL + +@comfytype(io_type="MESH") +class Mesh(ComfyTypeIO): + Type = MESH + +@comfytype(io_type="HOOKS") +class Hooks(ComfyTypeIO): + if TYPE_CHECKING: + Type = HookGroup + +@comfytype(io_type="HOOK_KEYFRAMES") +class HookKeyframes(ComfyTypeIO): + if TYPE_CHECKING: + Type = HookKeyframeGroup + +@comfytype(io_type="TIMESTEPS_RANGE") +class TimestepsRange(ComfyTypeIO): + '''Range defined by start and endpoint, between 0.0 and 1.0.''' + Type = tuple[int, int] + +@comfytype(io_type="LATENT_OPERATION") +class LatentOperation(ComfyTypeIO): + Type = Callable[[torch.Tensor], torch.Tensor] + +@comfytype(io_type="FLOW_CONTROL") +class FlowControl(ComfyTypeIO): + # NOTE: only used in testing_nodes right now + Type = tuple[str, Any] + +@comfytype(io_type="ACCUMULATION") +class Accumulation(ComfyTypeIO): + # NOTE: only used in testing_nodes right now + class AccumulationDict(TypedDict): + accum: list[Any] + Type = AccumulationDict + + +@comfytype(io_type="LOAD3D_CAMERA") +class Load3DCamera(ComfyTypeIO): + class CameraInfo(TypedDict): + position: dict[str, float | int] + target: dict[str, float | int] + zoom: int + cameraType: str + + Type = CameraInfo + + +@comfytype(io_type="LOAD_3D") +class Load3D(ComfyTypeIO): + """3D models are stored as a dictionary.""" + class Model3DDict(TypedDict): + image: str + mask: str + normal: str + camera_info: Load3DCamera.CameraInfo + recording: NotRequired[str] + + Type = Model3DDict + + +@comfytype(io_type="LOAD_3D_ANIMATION") +class Load3DAnimation(Load3D): + ... + + +@comfytype(io_type="PHOTOMAKER") +class Photomaker(ComfyTypeIO): + Type = Any + + +@comfytype(io_type="POINT") +class Point(ComfyTypeIO): + Type = Any # NOTE: I couldn't find any references in core code to POINT io_type. Does this exist? + +@comfytype(io_type="FACE_ANALYSIS") +class FaceAnalysis(ComfyTypeIO): + Type = Any # NOTE: I couldn't find any references in core code to POINT io_type. Does this exist? + +@comfytype(io_type="BBOX") +class BBOX(ComfyTypeIO): + Type = Any # NOTE: I couldn't find any references in core code to POINT io_type. Does this exist? + +@comfytype(io_type="SEGS") +class SEGS(ComfyTypeIO): + Type = Any # NOTE: I couldn't find any references in core code to POINT io_type. Does this exist? + +@comfytype(io_type="*") +class AnyType(ComfyTypeIO): + Type = Any + +@comfytype(io_type="MODEL_PATCH") +class MODEL_PATCH(ComfyTypeIO): + Type = Any + +@comfytype(io_type="AUDIO_ENCODER") +class AudioEncoder(ComfyTypeIO): + Type = Any + +@comfytype(io_type="AUDIO_ENCODER_OUTPUT") +class AudioEncoderOutput(ComfyTypeIO): + Type = Any + +@comfytype(io_type="TRACKS") +class Tracks(ComfyTypeIO): + class TrackDict(TypedDict): + track_path: torch.Tensor + track_visibility: torch.Tensor + Type = TrackDict + +@comfytype(io_type="COMFY_MULTITYPED_V3") +class MultiType: + Type = Any + class Input(Input): + ''' + Input that permits more than one input type; if `id` is an instance of `ComfyType.Input`, then that input will be used to create a widget (if applicable) with overridden values. + ''' + def __init__(self, id: str | Input, types: list[type[_ComfyType] | _ComfyType], display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, extra_dict=None): + # if id is an Input, then use that Input with overridden values + self.input_override = None + if isinstance(id, Input): + self.input_override = copy.copy(id) + optional = id.optional if id.optional is True else optional + tooltip = id.tooltip if id.tooltip is not None else tooltip + display_name = id.display_name if id.display_name is not None else display_name + lazy = id.lazy if id.lazy is not None else lazy + id = id.id + # if is a widget input, make sure widget_type is set appropriately + if isinstance(self.input_override, WidgetInput): + self.input_override.widget_type = self.input_override.get_io_type() + super().__init__(id, display_name, optional, tooltip, lazy, extra_dict) + self._io_types = types + + @property + def io_types(self) -> list[type[Input]]: + ''' + Returns list of Input class types permitted. + ''' + io_types = [] + for x in self._io_types: + if not is_class(x): + io_types.append(type(x)) + else: + io_types.append(x) + return io_types + + def get_io_type(self): + # ensure types are unique and order is preserved + str_types = [x.io_type for x in self.io_types] + if self.input_override is not None: + str_types.insert(0, self.input_override.get_io_type()) + return ",".join(list(dict.fromkeys(str_types))) + + def as_dict(self): + if self.input_override is not None: + return self.input_override.as_dict() | super().as_dict() + else: + return super().as_dict() + +@comfytype(io_type="COMFY_MATCHTYPE_V3") +class MatchType(ComfyTypeIO): + class Template: + def __init__(self, template_id: str, allowed_types: _ComfyType | list[_ComfyType] = AnyType): + self.template_id = template_id + # account for syntactic sugar + if not isinstance(allowed_types, Iterable): + allowed_types = [allowed_types] + for t in allowed_types: + if not isinstance(t, type): + if not isinstance(t, _ComfyType): + raise ValueError(f"Allowed types must be a ComfyType or a list of ComfyTypes, got {t.__class__.__name__}") + else: + if not issubclass(t, _ComfyType): + raise ValueError(f"Allowed types must be a ComfyType or a list of ComfyTypes, got {t.__name__}") + self.allowed_types = allowed_types + + def as_dict(self): + return { + "template_id": self.template_id, + "allowed_types": ",".join([t.io_type for t in self.allowed_types]), + } + + class Input(Input): + def __init__(self, id: str, template: MatchType.Template, + display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, extra_dict=None): + super().__init__(id, display_name, optional, tooltip, lazy, extra_dict) + self.template = template + + def as_dict(self): + return super().as_dict() | prune_dict({ + "template": self.template.as_dict(), + }) + + class Output(Output): + def __init__(self, template: MatchType.Template, id: str=None, display_name: str=None, tooltip: str=None, + is_output_list=False): + super().__init__(id, display_name, tooltip, is_output_list) + self.template = template + + def as_dict(self): + return super().as_dict() | prune_dict({ + "template": self.template.as_dict(), + }) + +class DynamicInput(Input, ABC): + ''' + Abstract class for dynamic input registration. + ''' + def get_dynamic(self) -> list[Input]: + return [] + + def expand_schema_for_dynamic(self, d: dict[str, Any], live_inputs: dict[str, Any], curr_prefix=''): + pass + + +class DynamicOutput(Output, ABC): + ''' + Abstract class for dynamic output registration. + ''' + def __init__(self, id: str=None, display_name: str=None, tooltip: str=None, + is_output_list=False): + super().__init__(id, display_name, tooltip, is_output_list) + + def get_dynamic(self) -> list[Output]: + return [] + + +@comfytype(io_type="COMFY_AUTOGROW_V3") +class Autogrow(ComfyTypeI): + Type = dict[str, Any] + _MaxNames = 100 # NOTE: max 100 names for sanity + + class _AutogrowTemplate: + def __init__(self, input: Input): + # dynamic inputs are not allowed as the template input + assert(not isinstance(input, DynamicInput)) + self.input = copy.copy(input) + if isinstance(self.input, WidgetInput): + self.input.force_input = True + self.names: list[str] = [] + self.cached_inputs = {} + + def _create_input(self, input: Input, name: str): + new_input = copy.copy(self.input) + new_input.id = name + return new_input + + def _create_cached_inputs(self): + for name in self.names: + self.cached_inputs[name] = self._create_input(self.input, name) + + def get_all(self) -> list[Input]: + return list(self.cached_inputs.values()) + + def as_dict(self): + return prune_dict({ + "input": create_input_dict_v1([self.input]), + }) + + def validate(self): + self.input.validate() + + def expand_schema_for_dynamic(self, d: dict[str, Any], live_inputs: dict[str, Any], curr_prefix=''): + real_inputs = [] + for name, input in self.cached_inputs.items(): + if name in live_inputs: + real_inputs.append(input) + add_to_input_dict_v1(d, real_inputs, live_inputs, curr_prefix) + add_dynamic_id_mapping(d, real_inputs, curr_prefix) + + class TemplatePrefix(_AutogrowTemplate): + def __init__(self, input: Input, prefix: str, min: int=1, max: int=10): + super().__init__(input) + self.prefix = prefix + assert(min >= 0) + assert(max >= 1) + assert(max <= Autogrow._MaxNames) + self.min = min + self.max = max + self.names = [f"{self.prefix}{i}" for i in range(self.max)] + self._create_cached_inputs() + + def as_dict(self): + return super().as_dict() | prune_dict({ + "prefix": self.prefix, + "min": self.min, + "max": self.max, + }) + + class TemplateNames(_AutogrowTemplate): + def __init__(self, input: Input, names: list[str], min: int=1): + super().__init__(input) + self.names = names[:Autogrow._MaxNames] + assert(min >= 0) + self.min = min + self._create_cached_inputs() + + def as_dict(self): + return super().as_dict() | prune_dict({ + "names": self.names, + "min": self.min, + }) + + class Input(DynamicInput): + def __init__(self, id: str, template: Autogrow.TemplatePrefix | Autogrow.TemplateNames, + display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, extra_dict=None): + super().__init__(id, display_name, optional, tooltip, lazy, extra_dict) + self.template = template + + def as_dict(self): + return super().as_dict() | prune_dict({ + "template": self.template.as_dict(), + }) + + def get_dynamic(self) -> list[Input]: + return self.template.get_all() + + def get_all(self) -> list[Input]: + return [self] + self.template.get_all() + + def validate(self): + self.template.validate() + + def expand_schema_for_dynamic(self, d: dict[str, Any], live_inputs: dict[str, Any], curr_prefix=''): + curr_prefix = f"{curr_prefix}{self.id}." + # need to remove self from expected inputs dictionary; replaced by template inputs in frontend + for inner_dict in d.values(): + if self.id in inner_dict: + del inner_dict[self.id] + self.template.expand_schema_for_dynamic(d, live_inputs, curr_prefix) + +@comfytype(io_type="COMFY_DYNAMICCOMBO_V3") +class DynamicCombo(ComfyTypeI): + Type = dict[str, Any] + + class Option: + def __init__(self, key: str, inputs: list[Input]): + self.key = key + self.inputs = inputs + + def as_dict(self): + return { + "key": self.key, + "inputs": create_input_dict_v1(self.inputs), + } + + class Input(DynamicInput): + def __init__(self, id: str, options: list[DynamicCombo.Option], + display_name: str=None, optional=False, tooltip: str=None, lazy: bool=None, extra_dict=None): + super().__init__(id, display_name, optional, tooltip, lazy, extra_dict) + self.options = options + + def expand_schema_for_dynamic(self, d: dict[str, Any], live_inputs: dict[str, Any], curr_prefix=''): + # check if dynamic input's id is in live_inputs + if self.id in live_inputs: + curr_prefix = f"{curr_prefix}{self.id}." + key = live_inputs[self.id] + selected_option = None + for option in self.options: + if option.key == key: + selected_option = option + break + if selected_option is not None: + add_to_input_dict_v1(d, selected_option.inputs, live_inputs, curr_prefix) + add_dynamic_id_mapping(d, selected_option.inputs, curr_prefix, self) + + def get_dynamic(self) -> list[Input]: + return [input for option in self.options for input in option.inputs] + + def get_all(self) -> list[Input]: + return [self] + [input for option in self.options for input in option.inputs] + + def as_dict(self): + return super().as_dict() | prune_dict({ + "options": [o.as_dict() for o in self.options], + }) + + def validate(self): + # make sure all nested inputs are validated + for option in self.options: + for input in option.inputs: + input.validate() + +@comfytype(io_type="COMFY_DYNAMICSLOT_V3") +class DynamicSlot(ComfyTypeI): + Type = dict[str, Any] + + class Input(DynamicInput): + def __init__(self, slot: Input, inputs: list[Input], + display_name: str=None, tooltip: str=None, lazy: bool=None, extra_dict=None): + assert(not isinstance(slot, DynamicInput)) + self.slot = copy.copy(slot) + self.slot.display_name = slot.display_name if slot.display_name is not None else display_name + optional = True + self.slot.tooltip = slot.tooltip if slot.tooltip is not None else tooltip + self.slot.lazy = slot.lazy if slot.lazy is not None else lazy + self.slot.extra_dict = slot.extra_dict if slot.extra_dict is not None else extra_dict + super().__init__(slot.id, self.slot.display_name, optional, self.slot.tooltip, self.slot.lazy, self.slot.extra_dict) + self.inputs = inputs + self.force_input = None + # force widget inputs to have no widgets, otherwise this would be awkward + if isinstance(self.slot, WidgetInput): + self.force_input = True + self.slot.force_input = True + + def expand_schema_for_dynamic(self, d: dict[str, Any], live_inputs: dict[str, Any], curr_prefix=''): + if self.id in live_inputs: + curr_prefix = f"{curr_prefix}{self.id}." + add_to_input_dict_v1(d, self.inputs, live_inputs, curr_prefix) + add_dynamic_id_mapping(d, [self.slot] + self.inputs, curr_prefix) + + def get_dynamic(self) -> list[Input]: + return [self.slot] + self.inputs + + def get_all(self) -> list[Input]: + return [self] + [self.slot] + self.inputs + + def as_dict(self): + return super().as_dict() | prune_dict({ + "slotType": str(self.slot.get_io_type()), + "inputs": create_input_dict_v1(self.inputs), + "forceInput": self.force_input, + }) + + def validate(self): + self.slot.validate() + for input in self.inputs: + input.validate() + +def add_dynamic_id_mapping(d: dict[str, Any], inputs: list[Input], curr_prefix: str, self: DynamicInput=None): + dynamic = d.setdefault("dynamic_paths", {}) + if self is not None: + dynamic[self.id] = f"{curr_prefix}{self.id}" + for i in inputs: + if not isinstance(i, DynamicInput): + dynamic[f"{i.id}"] = f"{curr_prefix}{i.id}" + +class V3Data(TypedDict): + hidden_inputs: dict[str, Any] + dynamic_paths: dict[str, Any] + +class HiddenHolder: + def __init__(self, unique_id: str, prompt: Any, + extra_pnginfo: Any, dynprompt: Any, + auth_token_comfy_org: str, api_key_comfy_org: str, **kwargs): + self.unique_id = unique_id + """UNIQUE_ID is the unique identifier of the node, and matches the id property of the node on the client side. It is commonly used in client-server communications (see messages).""" + self.prompt = prompt + """PROMPT is the complete prompt sent by the client to the server. See the prompt object for a full description.""" + self.extra_pnginfo = extra_pnginfo + """EXTRA_PNGINFO is a dictionary that will be copied into the metadata of any .png files saved. Custom nodes can store additional information in this dictionary for saving (or as a way to communicate with a downstream node).""" + self.dynprompt = dynprompt + """DYNPROMPT is an instance of comfy_execution.graph.DynamicPrompt. It differs from PROMPT in that it may mutate during the course of execution in response to Node Expansion.""" + self.auth_token_comfy_org = auth_token_comfy_org + """AUTH_TOKEN_COMFY_ORG is a token acquired from signing into a ComfyOrg account on frontend.""" + self.api_key_comfy_org = api_key_comfy_org + """API_KEY_COMFY_ORG is an API Key generated by ComfyOrg that allows skipping signing into a ComfyOrg account on frontend.""" + + def __getattr__(self, key: str): + '''If hidden variable not found, return None.''' + return None + + @classmethod + def from_dict(cls, d: dict | None): + if d is None: + d = {} + return cls( + unique_id=d.get(Hidden.unique_id, None), + prompt=d.get(Hidden.prompt, None), + extra_pnginfo=d.get(Hidden.extra_pnginfo, None), + dynprompt=d.get(Hidden.dynprompt, None), + auth_token_comfy_org=d.get(Hidden.auth_token_comfy_org, None), + api_key_comfy_org=d.get(Hidden.api_key_comfy_org, None), + ) + +class Hidden(str, Enum): + ''' + Enumerator for requesting hidden variables in nodes. + ''' + unique_id = "UNIQUE_ID" + """UNIQUE_ID is the unique identifier of the node, and matches the id property of the node on the client side. It is commonly used in client-server communications (see messages).""" + prompt = "PROMPT" + """PROMPT is the complete prompt sent by the client to the server. See the prompt object for a full description.""" + extra_pnginfo = "EXTRA_PNGINFO" + """EXTRA_PNGINFO is a dictionary that will be copied into the metadata of any .png files saved. Custom nodes can store additional information in this dictionary for saving (or as a way to communicate with a downstream node).""" + dynprompt = "DYNPROMPT" + """DYNPROMPT is an instance of comfy_execution.graph.DynamicPrompt. It differs from PROMPT in that it may mutate during the course of execution in response to Node Expansion.""" + auth_token_comfy_org = "AUTH_TOKEN_COMFY_ORG" + """AUTH_TOKEN_COMFY_ORG is a token acquired from signing into a ComfyOrg account on frontend.""" + api_key_comfy_org = "API_KEY_COMFY_ORG" + """API_KEY_COMFY_ORG is an API Key generated by ComfyOrg that allows skipping signing into a ComfyOrg account on frontend.""" + + +@dataclass +class NodeInfoV1: + input: dict=None + input_order: dict[str, list[str]]=None + output: list[str]=None + output_is_list: list[bool]=None + output_name: list[str]=None + output_tooltips: list[str]=None + output_matchtypes: list[str]=None + name: str=None + display_name: str=None + description: str=None + python_module: Any=None + category: str=None + output_node: bool=None + deprecated: bool=None + experimental: bool=None + api_node: bool=None + +@dataclass +class NodeInfoV3: + input: dict=None + output: dict=None + hidden: list[str]=None + name: str=None + display_name: str=None + description: str=None + category: str=None + output_node: bool=None + deprecated: bool=None + experimental: bool=None + api_node: bool=None + + +@dataclass +class Schema: + """Definition of V3 node properties.""" + + node_id: str + """ID of node - should be globally unique. If this is a custom node, add a prefix or postfix to avoid name clashes.""" + display_name: str = None + """Display name of node.""" + category: str = "sd" + """The category of the node, as per the "Add Node" menu.""" + inputs: list[Input] = field(default_factory=list) + outputs: list[Output] = field(default_factory=list) + hidden: list[Hidden] = field(default_factory=list) + description: str="" + """Node description, shown as a tooltip when hovering over the node.""" + is_input_list: bool = False + """A flag indicating if this node implements the additional code necessary to deal with OUTPUT_IS_LIST nodes. + + All inputs of ``type`` will become ``list[type]``, regardless of how many items are passed in. This also affects ``check_lazy_status``. + + From the docs: + + A node can also override the default input behaviour and receive the whole list in a single call. This is done by setting a class attribute `INPUT_IS_LIST` to ``True``. + + Comfy Docs: https://docs.comfy.org/custom-nodes/backend/lists#list-processing + """ + is_output_node: bool=False + """Flags this node as an output node, causing any inputs it requires to be executed. + + If a node is not connected to any output nodes, that node will not be executed. Usage:: + + From the docs: + + By default, a node is not considered an output. Set ``OUTPUT_NODE = True`` to specify that it is. + + Comfy Docs: https://docs.comfy.org/custom-nodes/backend/server_overview#output-node + """ + is_deprecated: bool=False + """Flags a node as deprecated, indicating to users that they should find alternatives to this node.""" + is_experimental: bool=False + """Flags a node as experimental, informing users that it may change or not work as expected.""" + is_api_node: bool=False + """Flags a node as an API node. See: https://docs.comfy.org/tutorials/api-nodes/overview.""" + not_idempotent: bool=False + """Flags a node as not idempotent; when True, the node will run and not reuse the cached outputs when identical inputs are provided on a different node in the graph.""" + enable_expand: bool=False + """Flags a node as expandable, allowing NodeOutput to include 'expand' property.""" + + def validate(self): + '''Validate the schema: + - verify ids on inputs and outputs are unique - both internally and in relation to each other + ''' + nested_inputs: list[Input] = [] + if self.inputs is not None: + for input in self.inputs: + nested_inputs.extend(input.get_all()) + input_ids = [i.id for i in nested_inputs] if nested_inputs is not None else [] + output_ids = [o.id for o in self.outputs] if self.outputs is not None else [] + input_set = set(input_ids) + output_set = set(output_ids) + issues = [] + # verify ids are unique per list + if len(input_set) != len(input_ids): + issues.append(f"Input ids must be unique, but {[item for item, count in Counter(input_ids).items() if count > 1]} are not.") + if len(output_set) != len(output_ids): + issues.append(f"Output ids must be unique, but {[item for item, count in Counter(output_ids).items() if count > 1]} are not.") + # verify ids are unique between lists + intersection = input_set & output_set + if len(intersection) > 0: + issues.append(f"Ids must be unique between inputs and outputs, but {intersection} are not.") + if len(issues) > 0: + raise ValueError("\n".join(issues)) + # validate inputs and outputs + if self.inputs is not None: + for input in self.inputs: + input.validate() + if self.outputs is not None: + for output in self.outputs: + output.validate() + + def finalize(self): + """Add hidden based on selected schema options, and give outputs without ids default ids.""" + # if is an api_node, will need key-related hidden + if self.is_api_node: + if self.hidden is None: + self.hidden = [] + if Hidden.auth_token_comfy_org not in self.hidden: + self.hidden.append(Hidden.auth_token_comfy_org) + if Hidden.api_key_comfy_org not in self.hidden: + self.hidden.append(Hidden.api_key_comfy_org) + # if is an output_node, will need prompt and extra_pnginfo + if self.is_output_node: + if self.hidden is None: + self.hidden = [] + if Hidden.prompt not in self.hidden: + self.hidden.append(Hidden.prompt) + if Hidden.extra_pnginfo not in self.hidden: + self.hidden.append(Hidden.extra_pnginfo) + # give outputs without ids default ids + if self.outputs is not None: + for i, output in enumerate(self.outputs): + if output.id is None: + output.id = f"_{i}_{output.io_type}_" + + def get_v1_info(self, cls, live_inputs: dict[str, Any]=None) -> NodeInfoV1: + # NOTE: live_inputs will not be used anymore very soon and this will be done another way + # get V1 inputs + input = create_input_dict_v1(self.inputs, live_inputs) + if self.hidden: + for hidden in self.hidden: + input.setdefault("hidden", {})[hidden.name] = (hidden.value,) + # create separate lists from output fields + output = [] + output_is_list = [] + output_name = [] + output_tooltips = [] + output_matchtypes = [] + any_matchtypes = False + if self.outputs: + for o in self.outputs: + output.append(o.io_type) + output_is_list.append(o.is_output_list) + output_name.append(o.display_name if o.display_name else o.io_type) + output_tooltips.append(o.tooltip if o.tooltip else None) + # special handling for MatchType + if isinstance(o, MatchType.Output): + output_matchtypes.append(o.template.template_id) + any_matchtypes = True + else: + output_matchtypes.append(None) + + # clear out lists that are all None + if not any_matchtypes: + output_matchtypes = None + + info = NodeInfoV1( + input=input, + input_order={key: list(value.keys()) for (key, value) in input.items()}, + output=output, + output_is_list=output_is_list, + output_name=output_name, + output_tooltips=output_tooltips, + output_matchtypes=output_matchtypes, + name=self.node_id, + display_name=self.display_name, + category=self.category, + description=self.description, + output_node=self.is_output_node, + deprecated=self.is_deprecated, + experimental=self.is_experimental, + api_node=self.is_api_node, + python_module=getattr(cls, "RELATIVE_PYTHON_MODULE", "nodes") + ) + return info + + + def get_v3_info(self, cls) -> NodeInfoV3: + input_dict = {} + output_dict = {} + hidden_list = [] + # TODO: make sure dynamic types will be handled correctly + if self.inputs: + for input in self.inputs: + add_to_dict_v3(input, input_dict) + if self.outputs: + for output in self.outputs: + add_to_dict_v3(output, output_dict) + if self.hidden: + for hidden in self.hidden: + hidden_list.append(hidden.value) + + info = NodeInfoV3( + input=input_dict, + output=output_dict, + hidden=hidden_list, + name=self.node_id, + display_name=self.display_name, + description=self.description, + category=self.category, + output_node=self.is_output_node, + deprecated=self.is_deprecated, + experimental=self.is_experimental, + api_node=self.is_api_node, + python_module=getattr(cls, "RELATIVE_PYTHON_MODULE", "nodes") + ) + return info + + +def create_input_dict_v1(inputs: list[Input], live_inputs: dict[str, Any]=None) -> dict: + input = { + "required": {} + } + add_to_input_dict_v1(input, inputs, live_inputs) + return input + +def add_to_input_dict_v1(d: dict[str, Any], inputs: list[Input], live_inputs: dict[str, Any]=None, curr_prefix=''): + for i in inputs: + if isinstance(i, DynamicInput): + add_to_dict_v1(i, d) + if live_inputs is not None: + i.expand_schema_for_dynamic(d, live_inputs, curr_prefix) + else: + add_to_dict_v1(i, d) + +def add_to_dict_v1(i: Input, d: dict, dynamic_dict: dict=None): + key = "optional" if i.optional else "required" + as_dict = i.as_dict() + # for v1, we don't want to include the optional key + as_dict.pop("optional", None) + if dynamic_dict is None: + value = (i.get_io_type(), as_dict) + else: + value = (i.get_io_type(), as_dict, dynamic_dict) + d.setdefault(key, {})[i.id] = value + +def add_to_dict_v3(io: Input | Output, d: dict): + d[io.id] = (io.get_io_type(), io.as_dict()) + +def build_nested_inputs(values: dict[str, Any], v3_data: V3Data): + paths = v3_data.get("dynamic_paths", None) + if paths is None: + return values + values = values.copy() + result = {} + + for key, path in paths.items(): + parts = path.split(".") + current = result + + for i, p in enumerate(parts): + is_last = (i == len(parts) - 1) + + if is_last: + current[p] = values.pop(key, None) + else: + current = current.setdefault(p, {}) + + values.update(result) + return values + + +class _ComfyNodeBaseInternal(_ComfyNodeInternal): + """Common base class for storing internal methods and properties; DO NOT USE for defining nodes.""" + + RELATIVE_PYTHON_MODULE = None + SCHEMA = None + + # filled in during execution + resources: Resources = None + hidden: HiddenHolder = None + + @classmethod + @abstractmethod + def define_schema(cls) -> Schema: + """Override this function with one that returns a Schema instance.""" + raise NotImplementedError + + @classmethod + @abstractmethod + def execute(cls, **kwargs) -> NodeOutput: + """Override this function with one that performs node's actions.""" + raise NotImplementedError + + @classmethod + def validate_inputs(cls, **kwargs) -> bool | str: + """Optionally, define this function to validate inputs; equivalent to V1's VALIDATE_INPUTS. + + If the function returns a string, it will be used as the validation error message for the node. + """ + raise NotImplementedError + + @classmethod + def fingerprint_inputs(cls, **kwargs) -> Any: + """Optionally, define this function to fingerprint inputs; equivalent to V1's IS_CHANGED. + + If this function returns the same value as last run, the node will not be executed.""" + raise NotImplementedError + + @classmethod + def check_lazy_status(cls, **kwargs) -> list[str]: + """Optionally, define this function to return a list of input names that should be evaluated. + + This basic mixin impl. requires all inputs. + + :kwargs: All node inputs will be included here. If the input is ``None``, it should be assumed that it has not yet been evaluated. \ + When using ``INPUT_IS_LIST = True``, unevaluated will instead be ``(None,)``. + + Params should match the nodes execution ``FUNCTION`` (self, and all inputs by name). + Will be executed repeatedly until it returns an empty list, or all requested items were already evaluated (and sent as params). + + Comfy Docs: https://docs.comfy.org/custom-nodes/backend/lazy_evaluation#defining-check-lazy-status + """ + return [name for name in kwargs if kwargs[name] is None] + + def __init__(self): + self.local_resources: ResourcesLocal = None + self.__class__.VALIDATE_CLASS() + + @classmethod + def GET_BASE_CLASS(cls): + return _ComfyNodeBaseInternal + + @final + @classmethod + def VALIDATE_CLASS(cls): + if first_real_override(cls, "define_schema") is None: + raise Exception(f"No define_schema function was defined for node class {cls.__name__}.") + if first_real_override(cls, "execute") is None: + raise Exception(f"No execute function was defined for node class {cls.__name__}.") + + @classproperty + def FUNCTION(cls): # noqa + if inspect.iscoroutinefunction(cls.execute): + return "EXECUTE_NORMALIZED_ASYNC" + return "EXECUTE_NORMALIZED" + + @final + @classmethod + def EXECUTE_NORMALIZED(cls, *args, **kwargs) -> NodeOutput: + to_return = cls.execute(*args, **kwargs) + if to_return is None: + to_return = NodeOutput() + elif isinstance(to_return, NodeOutput): + pass + elif isinstance(to_return, tuple): + to_return = NodeOutput(*to_return) + elif isinstance(to_return, dict): + to_return = NodeOutput.from_dict(to_return) + elif isinstance(to_return, ExecutionBlocker): + to_return = NodeOutput(block_execution=to_return.message) + else: + raise Exception(f"Invalid return type from node: {type(to_return)}") + if to_return.expand is not None and not cls.SCHEMA.enable_expand: + raise Exception(f"Node {cls.__name__} is not expandable, but expand included in NodeOutput; developer should set enable_expand=True on node's Schema to allow this.") + return to_return + + @final + @classmethod + async def EXECUTE_NORMALIZED_ASYNC(cls, *args, **kwargs) -> NodeOutput: + to_return = await cls.execute(*args, **kwargs) + if to_return is None: + to_return = NodeOutput() + elif isinstance(to_return, NodeOutput): + pass + elif isinstance(to_return, tuple): + to_return = NodeOutput(*to_return) + elif isinstance(to_return, dict): + to_return = NodeOutput.from_dict(to_return) + elif isinstance(to_return, ExecutionBlocker): + to_return = NodeOutput(block_execution=to_return.message) + else: + raise Exception(f"Invalid return type from node: {type(to_return)}") + if to_return.expand is not None and not cls.SCHEMA.enable_expand: + raise Exception(f"Node {cls.__name__} is not expandable, but expand included in NodeOutput; developer should set enable_expand=True on node's Schema to allow this.") + return to_return + + @final + @classmethod + def PREPARE_CLASS_CLONE(cls, v3_data: V3Data | None) -> type[ComfyNode]: + """Creates clone of real node class to prevent monkey-patching.""" + c_type: type[ComfyNode] = cls if is_class(cls) else type(cls) + type_clone: type[ComfyNode] = shallow_clone_class(c_type) + # set hidden + type_clone.hidden = HiddenHolder.from_dict(v3_data["hidden_inputs"] if v3_data else None) + return type_clone + + @final + @classmethod + def GET_NODE_INFO_V3(cls) -> dict[str, Any]: + schema = cls.GET_SCHEMA() + info = schema.get_v3_info(cls) + return asdict(info) + ############################################# + # V1 Backwards Compatibility code + #-------------------------------------------- + @final + @classmethod + def GET_NODE_INFO_V1(cls) -> dict[str, Any]: + schema = cls.GET_SCHEMA() + info = schema.get_v1_info(cls) + return asdict(info) + + _DESCRIPTION = None + @final + @classproperty + def DESCRIPTION(cls): # noqa + if cls._DESCRIPTION is None: + cls.GET_SCHEMA() + return cls._DESCRIPTION + + _CATEGORY = None + @final + @classproperty + def CATEGORY(cls): # noqa + if cls._CATEGORY is None: + cls.GET_SCHEMA() + return cls._CATEGORY + + _EXPERIMENTAL = None + @final + @classproperty + def EXPERIMENTAL(cls): # noqa + if cls._EXPERIMENTAL is None: + cls.GET_SCHEMA() + return cls._EXPERIMENTAL + + _DEPRECATED = None + @final + @classproperty + def DEPRECATED(cls): # noqa + if cls._DEPRECATED is None: + cls.GET_SCHEMA() + return cls._DEPRECATED + + _API_NODE = None + @final + @classproperty + def API_NODE(cls): # noqa + if cls._API_NODE is None: + cls.GET_SCHEMA() + return cls._API_NODE + + _OUTPUT_NODE = None + @final + @classproperty + def OUTPUT_NODE(cls): # noqa + if cls._OUTPUT_NODE is None: + cls.GET_SCHEMA() + return cls._OUTPUT_NODE + + _INPUT_IS_LIST = None + @final + @classproperty + def INPUT_IS_LIST(cls): # noqa + if cls._INPUT_IS_LIST is None: + cls.GET_SCHEMA() + return cls._INPUT_IS_LIST + _OUTPUT_IS_LIST = None + + @final + @classproperty + def OUTPUT_IS_LIST(cls): # noqa + if cls._OUTPUT_IS_LIST is None: + cls.GET_SCHEMA() + return cls._OUTPUT_IS_LIST + + _RETURN_TYPES = None + @final + @classproperty + def RETURN_TYPES(cls): # noqa + if cls._RETURN_TYPES is None: + cls.GET_SCHEMA() + return cls._RETURN_TYPES + + _RETURN_NAMES = None + @final + @classproperty + def RETURN_NAMES(cls): # noqa + if cls._RETURN_NAMES is None: + cls.GET_SCHEMA() + return cls._RETURN_NAMES + + _OUTPUT_TOOLTIPS = None + @final + @classproperty + def OUTPUT_TOOLTIPS(cls): # noqa + if cls._OUTPUT_TOOLTIPS is None: + cls.GET_SCHEMA() + return cls._OUTPUT_TOOLTIPS + + _NOT_IDEMPOTENT = None + @final + @classproperty + def NOT_IDEMPOTENT(cls): # noqa + if cls._NOT_IDEMPOTENT is None: + cls.GET_SCHEMA() + return cls._NOT_IDEMPOTENT + + @final + @classmethod + def INPUT_TYPES(cls, include_hidden=True, return_schema=False, live_inputs=None) -> dict[str, dict] | tuple[dict[str, dict], Schema, V3Data]: + schema = cls.FINALIZE_SCHEMA() + info = schema.get_v1_info(cls, live_inputs) + input = info.input + if not include_hidden: + input.pop("hidden", None) + if return_schema: + v3_data: V3Data = {} + dynamic = input.pop("dynamic_paths", None) + if dynamic is not None: + v3_data["dynamic_paths"] = dynamic + return input, schema, v3_data + return input + + @final + @classmethod + def FINALIZE_SCHEMA(cls): + """Call define_schema and finalize it.""" + schema = cls.define_schema() + schema.finalize() + return schema + + @final + @classmethod + def GET_SCHEMA(cls) -> Schema: + """Validate node class, finalize schema, validate schema, and set expected class properties.""" + cls.VALIDATE_CLASS() + schema = cls.FINALIZE_SCHEMA() + schema.validate() + if cls._DESCRIPTION is None: + cls._DESCRIPTION = schema.description + if cls._CATEGORY is None: + cls._CATEGORY = schema.category + if cls._EXPERIMENTAL is None: + cls._EXPERIMENTAL = schema.is_experimental + if cls._DEPRECATED is None: + cls._DEPRECATED = schema.is_deprecated + if cls._API_NODE is None: + cls._API_NODE = schema.is_api_node + if cls._OUTPUT_NODE is None: + cls._OUTPUT_NODE = schema.is_output_node + if cls._INPUT_IS_LIST is None: + cls._INPUT_IS_LIST = schema.is_input_list + if cls._NOT_IDEMPOTENT is None: + cls._NOT_IDEMPOTENT = schema.not_idempotent + + if cls._RETURN_TYPES is None: + output = [] + output_name = [] + output_is_list = [] + output_tooltips = [] + if schema.outputs: + for o in schema.outputs: + output.append(o.io_type) + output_name.append(o.display_name if o.display_name else o.io_type) + output_is_list.append(o.is_output_list) + output_tooltips.append(o.tooltip if o.tooltip else None) + + cls._RETURN_TYPES = output + cls._RETURN_NAMES = output_name + cls._OUTPUT_IS_LIST = output_is_list + cls._OUTPUT_TOOLTIPS = output_tooltips + cls.SCHEMA = schema + return schema + #-------------------------------------------- + ############################################# + + +class ComfyNode(_ComfyNodeBaseInternal): + """Common base class for all V3 nodes.""" + + @classmethod + @abstractmethod + def define_schema(cls) -> Schema: + """Override this function with one that returns a Schema instance.""" + raise NotImplementedError + + @classmethod + @abstractmethod + def execute(cls, **kwargs) -> NodeOutput: + """Override this function with one that performs node's actions.""" + raise NotImplementedError + + @classmethod + def validate_inputs(cls, **kwargs) -> bool | str: + """Optionally, define this function to validate inputs; equivalent to V1's VALIDATE_INPUTS.""" + raise NotImplementedError + + @classmethod + def fingerprint_inputs(cls, **kwargs) -> Any: + """Optionally, define this function to fingerprint inputs; equivalent to V1's IS_CHANGED.""" + raise NotImplementedError + + @classmethod + def check_lazy_status(cls, **kwargs) -> list[str]: + """Optionally, define this function to return a list of input names that should be evaluated. + + This basic mixin impl. requires all inputs. + + :kwargs: All node inputs will be included here. If the input is ``None``, it should be assumed that it has not yet been evaluated. \ + When using ``INPUT_IS_LIST = True``, unevaluated will instead be ``(None,)``. + + Params should match the nodes execution ``FUNCTION`` (self, and all inputs by name). + Will be executed repeatedly until it returns an empty list, or all requested items were already evaluated (and sent as params). + + Comfy Docs: https://docs.comfy.org/custom-nodes/backend/lazy_evaluation#defining-check-lazy-status + """ + return [name for name in kwargs if kwargs[name] is None] + + @final + @classmethod + def GET_BASE_CLASS(cls): + """DO NOT override this class. Will break things in execution.py.""" + return ComfyNode + + +class NodeOutput(_NodeOutputInternal): + ''' + Standardized output of a node; can pass in any number of args and/or a UIOutput into 'ui' kwarg. + ''' + def __init__(self, *args: Any, ui: _UIOutput | dict=None, expand: dict=None, block_execution: str=None): + self.args = args + self.ui = ui + self.expand = expand + self.block_execution = block_execution + + @property + def result(self): + return self.args if len(self.args) > 0 else None + + @classmethod + def from_dict(cls, data: dict[str, Any]) -> "NodeOutput": + args = () + ui = None + expand = None + if "result" in data: + result = data["result"] + if isinstance(result, ExecutionBlocker): + return cls(block_execution=result.message) + args = result + if "ui" in data: + ui = data["ui"] + if "expand" in data: + expand = data["expand"] + return cls(*args, ui=ui, expand=expand) + + def __getitem__(self, index) -> Any: + return self.args[index] + +class _UIOutput(ABC): + def __init__(self): + pass + + @abstractmethod + def as_dict(self) -> dict: + ... + + +__all__ = [ + "FolderType", + "UploadType", + "RemoteOptions", + "NumberDisplay", + + "comfytype", + "Custom", + "Input", + "WidgetInput", + "Output", + "ComfyTypeI", + "ComfyTypeIO", + # Supported Types + "Boolean", + "Int", + "Float", + "String", + "Combo", + "MultiCombo", + "Image", + "WanCameraEmbedding", + "Webcam", + "Mask", + "Latent", + "Conditioning", + "Sampler", + "Sigmas", + "Noise", + "Guider", + "Clip", + "ControlNet", + "Vae", + "Model", + "ClipVision", + "ClipVisionOutput", + "AudioEncoder", + "AudioEncoderOutput", + "StyleModel", + "Gligen", + "UpscaleModel", + "LatentUpscaleModel", + "Audio", + "Video", + "SVG", + "LoraModel", + "LossMap", + "Voxel", + "Mesh", + "Hooks", + "HookKeyframes", + "TimestepsRange", + "LatentOperation", + "FlowControl", + "Accumulation", + "Load3DCamera", + "Load3D", + "Load3DAnimation", + "Photomaker", + "Point", + "FaceAnalysis", + "BBOX", + "SEGS", + "AnyType", + "MultiType", + "Tracks", + # Dynamic Types + "MatchType", + # "DynamicCombo", + # "Autogrow", + # Other classes + "HiddenHolder", + "Hidden", + "NodeInfoV1", + "NodeInfoV3", + "Schema", + "ComfyNode", + "NodeOutput", + "add_to_dict_v1", + "add_to_dict_v3", + "V3Data", +] diff --git a/docs/hel-892/storyboard-reference/core__comfy_api__latest___ui.py b/docs/hel-892/storyboard-reference/core__comfy_api__latest___ui.py new file mode 100644 index 00000000..e238cdf3 --- /dev/null +++ b/docs/hel-892/storyboard-reference/core__comfy_api__latest___ui.py @@ -0,0 +1,475 @@ +from __future__ import annotations + +import json +import os +import random +import uuid +from io import BytesIO + +import av +import numpy as np +import torch +try: + import torchaudio + TORCH_AUDIO_AVAILABLE = True +except: + TORCH_AUDIO_AVAILABLE = False +from PIL import Image as PILImage +from PIL.PngImagePlugin import PngInfo + +import folder_paths + +# used for image preview +from comfy.cli_args import args +from ._io import ComfyNode, FolderType, Image, _UIOutput + + +class SavedResult(dict): + def __init__(self, filename: str, subfolder: str, type: FolderType): + super().__init__(filename=filename, subfolder=subfolder,type=type.value) + + @property + def filename(self) -> str: + return self["filename"] + + @property + def subfolder(self) -> str: + return self["subfolder"] + + @property + def type(self) -> FolderType: + return FolderType(self["type"]) + + +class SavedImages(_UIOutput): + """A UI output class to represent one or more saved images, potentially animated.""" + def __init__(self, results: list[SavedResult], is_animated: bool = False): + super().__init__() + self.results = results + self.is_animated = is_animated + + def as_dict(self) -> dict: + data = {"images": self.results} + if self.is_animated: + data["animated"] = (True,) + return data + + +class SavedAudios(_UIOutput): + """UI wrapper around one or more audio files on disk (FLAC / MP3 / Opus).""" + def __init__(self, results: list[SavedResult]): + super().__init__() + self.results = results + + def as_dict(self) -> dict: + return {"audio": self.results} + + +def _get_directory_by_folder_type(folder_type: FolderType) -> str: + if folder_type == FolderType.input: + return folder_paths.get_input_directory() + if folder_type == FolderType.output: + return folder_paths.get_output_directory() + return folder_paths.get_temp_directory() + + +class ImageSaveHelper: + """A helper class with static methods to handle image saving and metadata.""" + + @staticmethod + def _convert_tensor_to_pil(image_tensor: torch.Tensor) -> PILImage.Image: + """Converts a single torch tensor to a PIL Image.""" + return PILImage.fromarray(np.clip(255.0 * image_tensor.cpu().numpy(), 0, 255).astype(np.uint8)) + + @staticmethod + def _create_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None: + """Creates a PngInfo object with prompt and extra_pnginfo.""" + if args.disable_metadata or cls is None or not cls.hidden: + return None + metadata = PngInfo() + if cls.hidden.prompt: + metadata.add_text("prompt", json.dumps(cls.hidden.prompt)) + if cls.hidden.extra_pnginfo: + for x in cls.hidden.extra_pnginfo: + metadata.add_text(x, json.dumps(cls.hidden.extra_pnginfo[x])) + return metadata + + @staticmethod + def _create_animated_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None: + """Creates a PngInfo object with prompt and extra_pnginfo for animated PNGs (APNG).""" + if args.disable_metadata or cls is None or not cls.hidden: + return None + metadata = PngInfo() + if cls.hidden.prompt: + metadata.add( + b"comf", + "prompt".encode("latin-1", "strict") + + b"\0" + + json.dumps(cls.hidden.prompt).encode("latin-1", "strict"), + after_idat=True, + ) + if cls.hidden.extra_pnginfo: + for x in cls.hidden.extra_pnginfo: + metadata.add( + b"comf", + x.encode("latin-1", "strict") + + b"\0" + + json.dumps(cls.hidden.extra_pnginfo[x]).encode("latin-1", "strict"), + after_idat=True, + ) + return metadata + + @staticmethod + def _create_webp_metadata(pil_image: PILImage.Image, cls: type[ComfyNode] | None) -> PILImage.Exif: + """Creates EXIF metadata bytes for WebP images.""" + exif_data = pil_image.getexif() + if args.disable_metadata or cls is None or cls.hidden is None: + return exif_data + if cls.hidden.prompt is not None: + exif_data[0x0110] = "prompt:{}".format(json.dumps(cls.hidden.prompt)) # EXIF 0x0110 = Model + if cls.hidden.extra_pnginfo is not None: + inital_exif_tag = 0x010F # EXIF 0x010f = Make + for key, value in cls.hidden.extra_pnginfo.items(): + exif_data[inital_exif_tag] = "{}:{}".format(key, json.dumps(value)) + inital_exif_tag -= 1 + return exif_data + + @staticmethod + def save_images( + images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, compress_level = 4, + ) -> list[SavedResult]: + """Saves a batch of images as individual PNG files.""" + full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path( + filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0] + ) + results = [] + metadata = ImageSaveHelper._create_png_metadata(cls) + for batch_number, image_tensor in enumerate(images): + img = ImageSaveHelper._convert_tensor_to_pil(image_tensor) + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + file = f"{filename_with_batch_num}_{counter:05}_.png" + img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level) + results.append(SavedResult(file, subfolder, folder_type)) + counter += 1 + return results + + @staticmethod + def get_save_images_ui(images, filename_prefix: str, cls: type[ComfyNode] | None, compress_level=4) -> SavedImages: + """Saves a batch of images and returns a UI object for the node output.""" + return SavedImages( + ImageSaveHelper.save_images( + images, + filename_prefix=filename_prefix, + folder_type=FolderType.output, + cls=cls, + compress_level=compress_level, + ) + ) + + @staticmethod + def save_animated_png( + images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, fps: float, compress_level: int + ) -> SavedResult: + """Saves a batch of images as a single animated PNG.""" + full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path( + filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0] + ) + pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images] + metadata = ImageSaveHelper._create_animated_png_metadata(cls) + file = f"{filename}_{counter:05}_.png" + save_path = os.path.join(full_output_folder, file) + pil_images[0].save( + save_path, + pnginfo=metadata, + compress_level=compress_level, + save_all=True, + duration=int(1000.0 / fps), + append_images=pil_images[1:], + ) + return SavedResult(file, subfolder, folder_type) + + @staticmethod + def get_save_animated_png_ui( + images, filename_prefix: str, cls: type[ComfyNode] | None, fps: float, compress_level: int + ) -> SavedImages: + """Saves an animated PNG and returns a UI object for the node output.""" + result = ImageSaveHelper.save_animated_png( + images, + filename_prefix=filename_prefix, + folder_type=FolderType.output, + cls=cls, + fps=fps, + compress_level=compress_level, + ) + return SavedImages([result], is_animated=len(images) > 1) + + @staticmethod + def save_animated_webp( + images, + filename_prefix: str, + folder_type: FolderType, + cls: type[ComfyNode] | None, + fps: float, + lossless: bool, + quality: int, + method: int, + ) -> SavedResult: + """Saves a batch of images as a single animated WebP.""" + full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path( + filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0] + ) + pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images] + pil_exif = ImageSaveHelper._create_webp_metadata(pil_images[0], cls) + file = f"{filename}_{counter:05}_.webp" + pil_images[0].save( + os.path.join(full_output_folder, file), + save_all=True, + duration=int(1000.0 / fps), + append_images=pil_images[1:], + exif=pil_exif, + lossless=lossless, + quality=quality, + method=method, + ) + return SavedResult(file, subfolder, folder_type) + + @staticmethod + def get_save_animated_webp_ui( + images, + filename_prefix: str, + cls: type[ComfyNode] | None, + fps: float, + lossless: bool, + quality: int, + method: int, + ) -> SavedImages: + """Saves an animated WebP and returns a UI object for the node output.""" + result = ImageSaveHelper.save_animated_webp( + images, + filename_prefix=filename_prefix, + folder_type=FolderType.output, + cls=cls, + fps=fps, + lossless=lossless, + quality=quality, + method=method, + ) + return SavedImages([result], is_animated=len(images) > 1) + + +class AudioSaveHelper: + """A helper class with static methods to handle audio saving and metadata.""" + _OPUS_RATES = [8000, 12000, 16000, 24000, 48000] + + @staticmethod + def save_audio( + audio: dict, + filename_prefix: str, + folder_type: FolderType, + cls: type[ComfyNode] | None, + format: str = "flac", + quality: str = "128k", + ) -> list[SavedResult]: + full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path( + filename_prefix, _get_directory_by_folder_type(folder_type) + ) + + metadata = {} + if not args.disable_metadata and cls is not None: + if cls.hidden.prompt is not None: + metadata["prompt"] = json.dumps(cls.hidden.prompt) + if cls.hidden.extra_pnginfo is not None: + for x in cls.hidden.extra_pnginfo: + metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x]) + + results = [] + for batch_number, waveform in enumerate(audio["waveform"].cpu()): + filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) + file = f"{filename_with_batch_num}_{counter:05}_.{format}" + output_path = os.path.join(full_output_folder, file) + + # Use original sample rate initially + sample_rate = audio["sample_rate"] + + # Handle Opus sample rate requirements + if format == "opus": + if sample_rate > 48000: + sample_rate = 48000 + elif sample_rate not in AudioSaveHelper._OPUS_RATES: + # Find the next highest supported rate + for rate in sorted(AudioSaveHelper._OPUS_RATES): + if rate > sample_rate: + sample_rate = rate + break + if sample_rate not in AudioSaveHelper._OPUS_RATES: # Fallback if still not supported + sample_rate = 48000 + + # Resample if necessary + if sample_rate != audio["sample_rate"]: + if not TORCH_AUDIO_AVAILABLE: + raise Exception("torchaudio is not available; cannot resample audio.") + waveform = torchaudio.functional.resample(waveform, audio["sample_rate"], sample_rate) + + # Create output with specified format + output_buffer = BytesIO() + output_container = av.open(output_buffer, mode="w", format=format) + + # Set metadata on the container + for key, value in metadata.items(): + output_container.metadata[key] = value + + layout = "mono" if waveform.shape[0] == 1 else "stereo" + # Set up the output stream with appropriate properties + if format == "opus": + out_stream = output_container.add_stream("libopus", rate=sample_rate, layout=layout) + if quality == "64k": + out_stream.bit_rate = 64000 + elif quality == "96k": + out_stream.bit_rate = 96000 + elif quality == "128k": + out_stream.bit_rate = 128000 + elif quality == "192k": + out_stream.bit_rate = 192000 + elif quality == "320k": + out_stream.bit_rate = 320000 + elif format == "mp3": + out_stream = output_container.add_stream("libmp3lame", rate=sample_rate, layout=layout) + if quality == "V0": + # TODO i would really love to support V3 and V5 but there doesn't seem to be a way to set the qscale level, the property below is a bool + out_stream.codec_context.qscale = 1 + elif quality == "128k": + out_stream.bit_rate = 128000 + elif quality == "320k": + out_stream.bit_rate = 320000 + else: # format == "flac": + out_stream = output_container.add_stream("flac", rate=sample_rate, layout=layout) + + frame = av.AudioFrame.from_ndarray( + waveform.movedim(0, 1).reshape(1, -1).float().numpy(), + format="flt", + layout=layout, + ) + frame.sample_rate = sample_rate + frame.pts = 0 + output_container.mux(out_stream.encode(frame)) + + # Flush encoder + output_container.mux(out_stream.encode(None)) + + # Close containers + output_container.close() + + # Write the output to file + output_buffer.seek(0) + with open(output_path, "wb") as f: + f.write(output_buffer.getbuffer()) + + results.append(SavedResult(file, subfolder, folder_type)) + counter += 1 + + return results + + @staticmethod + def get_save_audio_ui( + audio, filename_prefix: str, cls: type[ComfyNode] | None, format: str = "flac", quality: str = "128k", + ) -> SavedAudios: + """Save and instantly wrap for UI.""" + return SavedAudios( + AudioSaveHelper.save_audio( + audio, + filename_prefix=filename_prefix, + folder_type=FolderType.output, + cls=cls, + format=format, + quality=quality, + ) + ) + + +class PreviewImage(_UIOutput): + def __init__(self, image: Image.Type, animated: bool = False, cls: type[ComfyNode] = None, **kwargs): + self.values = ImageSaveHelper.save_images( + image, + filename_prefix="ComfyUI_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for _ in range(5)), + folder_type=FolderType.temp, + cls=cls, + compress_level=1, + ) + self.animated = animated + + def as_dict(self): + return { + "images": self.values, + "animated": (self.animated,) + } + + +class PreviewMask(PreviewImage): + def __init__(self, mask: PreviewMask.Type, animated: bool=False, cls: ComfyNode=None, **kwargs): + preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3) + super().__init__(preview, animated, cls, **kwargs) + + +class PreviewAudio(_UIOutput): + def __init__(self, audio: dict, cls: type[ComfyNode] = None, **kwargs): + self.values = AudioSaveHelper.save_audio( + audio, + filename_prefix="ComfyUI_temp_" + "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(5)), + folder_type=FolderType.temp, + cls=cls, + format="flac", + quality="128k", + ) + + def as_dict(self) -> dict: + return {"audio": self.values} + + +class PreviewVideo(_UIOutput): + def __init__(self, values: list[SavedResult | dict], **kwargs): + self.values = values + + def as_dict(self): + return {"images": self.values, "animated": (True,)} + + +class PreviewUI3D(_UIOutput): + def __init__(self, model_file, camera_info, **kwargs): + self.model_file = model_file + self.camera_info = camera_info + self.bg_image_path = None + bg_image = kwargs.get("bg_image", None) + if bg_image is not None: + img_array = (bg_image[0].cpu().numpy() * 255).astype(np.uint8) + img = PILImage.fromarray(img_array) + temp_dir = folder_paths.get_temp_directory() + filename = f"bg_{uuid.uuid4().hex}.png" + bg_image_path = os.path.join(temp_dir, filename) + img.save(bg_image_path, compress_level=1) + self.bg_image_path = f"temp/{filename}" + + def as_dict(self): + return {"result": [self.model_file, self.camera_info, self.bg_image_path]} + + +class PreviewText(_UIOutput): + def __init__(self, value: str, **kwargs): + self.value = value + + def as_dict(self): + return {"text": (self.value,)} + + +__all__ = [ + "SavedResult", + "SavedImages", + "SavedAudios", + "ImageSaveHelper", + "AudioSaveHelper", + "PreviewImage", + "PreviewMask", + "PreviewAudio", + "PreviewVideo", + "PreviewUI3D", + "PreviewText", +] diff --git a/docs/hel-892/storyboard-reference/core__comfy_extras__nodes_audio.py b/docs/hel-892/storyboard-reference/core__comfy_extras__nodes_audio.py new file mode 100644 index 00000000..c7916443 --- /dev/null +++ b/docs/hel-892/storyboard-reference/core__comfy_extras__nodes_audio.py @@ -0,0 +1,626 @@ +from __future__ import annotations + +import av +import torchaudio +import torch +import comfy.model_management +import folder_paths +import os +import hashlib +import node_helpers +import logging +from typing_extensions import override +from comfy_api.latest import ComfyExtension, IO, UI + +class EmptyLatentAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="EmptyLatentAudio", + display_name="Empty Latent Audio", + category="latent/audio", + inputs=[ + IO.Float.Input("seconds", default=47.6, min=1.0, max=1000.0, step=0.1), + IO.Int.Input( + "batch_size", default=1, min=1, max=4096, tooltip="The number of latent images in the batch." + ), + ], + outputs=[IO.Latent.Output()], + ) + + @classmethod + def execute(cls, seconds, batch_size) -> IO.NodeOutput: + length = round((seconds * 44100 / 2048) / 2) * 2 + latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device()) + return IO.NodeOutput({"samples":latent, "type": "audio"}) + + generate = execute # TODO: remove + + +class ConditioningStableAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="ConditioningStableAudio", + category="conditioning", + inputs=[ + IO.Conditioning.Input("positive"), + IO.Conditioning.Input("negative"), + IO.Float.Input("seconds_start", default=0.0, min=0.0, max=1000.0, step=0.1), + IO.Float.Input("seconds_total", default=47.0, min=0.0, max=1000.0, step=0.1), + ], + outputs=[ + IO.Conditioning.Output(display_name="positive"), + IO.Conditioning.Output(display_name="negative"), + ], + ) + + @classmethod + def execute(cls, positive, negative, seconds_start, seconds_total) -> IO.NodeOutput: + positive = node_helpers.conditioning_set_values(positive, {"seconds_start": seconds_start, "seconds_total": seconds_total}) + negative = node_helpers.conditioning_set_values(negative, {"seconds_start": seconds_start, "seconds_total": seconds_total}) + return IO.NodeOutput(positive, negative) + + append = execute # TODO: remove + + +class VAEEncodeAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="VAEEncodeAudio", + display_name="VAE Encode Audio", + category="latent/audio", + inputs=[ + IO.Audio.Input("audio"), + IO.Vae.Input("vae"), + ], + outputs=[IO.Latent.Output()], + ) + + @classmethod + def execute(cls, vae, audio) -> IO.NodeOutput: + sample_rate = audio["sample_rate"] + if 44100 != sample_rate: + waveform = torchaudio.functional.resample(audio["waveform"], sample_rate, 44100) + else: + waveform = audio["waveform"] + + t = vae.encode(waveform.movedim(1, -1)) + return IO.NodeOutput({"samples":t}) + + encode = execute # TODO: remove + + +class VAEDecodeAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="VAEDecodeAudio", + display_name="VAE Decode Audio", + category="latent/audio", + inputs=[ + IO.Latent.Input("samples"), + IO.Vae.Input("vae"), + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, vae, samples) -> IO.NodeOutput: + audio = vae.decode(samples["samples"]).movedim(-1, 1) + std = torch.std(audio, dim=[1,2], keepdim=True) * 5.0 + std[std < 1.0] = 1.0 + audio /= std + return IO.NodeOutput({"waveform": audio, "sample_rate": 44100}) + + decode = execute # TODO: remove + + +class SaveAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="SaveAudio", + display_name="Save Audio (FLAC)", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + IO.String.Input("filename_prefix", default="audio/ComfyUI"), + ], + hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo], + is_output_node=True, + ) + + @classmethod + def execute(cls, audio, filename_prefix="ComfyUI", format="flac") -> IO.NodeOutput: + return IO.NodeOutput( + ui=UI.AudioSaveHelper.get_save_audio_ui(audio, filename_prefix=filename_prefix, cls=cls, format=format) + ) + + save_flac = execute # TODO: remove + + +class SaveAudioMP3(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="SaveAudioMP3", + display_name="Save Audio (MP3)", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + IO.String.Input("filename_prefix", default="audio/ComfyUI"), + IO.Combo.Input("quality", options=["V0", "128k", "320k"], default="V0"), + ], + hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo], + is_output_node=True, + ) + + @classmethod + def execute(cls, audio, filename_prefix="ComfyUI", format="mp3", quality="128k") -> IO.NodeOutput: + return IO.NodeOutput( + ui=UI.AudioSaveHelper.get_save_audio_ui( + audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality + ) + ) + + save_mp3 = execute # TODO: remove + + +class SaveAudioOpus(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="SaveAudioOpus", + display_name="Save Audio (Opus)", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + IO.String.Input("filename_prefix", default="audio/ComfyUI"), + IO.Combo.Input("quality", options=["64k", "96k", "128k", "192k", "320k"], default="128k"), + ], + hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo], + is_output_node=True, + ) + + @classmethod + def execute(cls, audio, filename_prefix="ComfyUI", format="opus", quality="V3") -> IO.NodeOutput: + return IO.NodeOutput( + ui=UI.AudioSaveHelper.get_save_audio_ui( + audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality + ) + ) + + save_opus = execute # TODO: remove + + +class PreviewAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="PreviewAudio", + display_name="Preview Audio", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + ], + hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo], + is_output_node=True, + ) + + @classmethod + def execute(cls, audio) -> IO.NodeOutput: + return IO.NodeOutput(ui=UI.PreviewAudio(audio, cls=cls)) + + save_flac = execute # TODO: remove + + +def f32_pcm(wav: torch.Tensor) -> torch.Tensor: + """Convert audio to float 32 bits PCM format.""" + if wav.dtype.is_floating_point: + return wav + elif wav.dtype == torch.int16: + return wav.float() / (2 ** 15) + elif wav.dtype == torch.int32: + return wav.float() / (2 ** 31) + raise ValueError(f"Unsupported wav dtype: {wav.dtype}") + +def load(filepath: str) -> tuple[torch.Tensor, int]: + with av.open(filepath) as af: + if not af.streams.audio: + raise ValueError("No audio stream found in the file.") + + stream = af.streams.audio[0] + sr = stream.codec_context.sample_rate + n_channels = stream.channels + + frames = [] + length = 0 + for frame in af.decode(streams=stream.index): + buf = torch.from_numpy(frame.to_ndarray()) + if buf.shape[0] != n_channels: + buf = buf.view(-1, n_channels).t() + + frames.append(buf) + length += buf.shape[1] + + if not frames: + raise ValueError("No audio frames decoded.") + + wav = torch.cat(frames, dim=1) + wav = f32_pcm(wav) + return wav, sr + +class LoadAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + input_dir = folder_paths.get_input_directory() + files = folder_paths.filter_files_content_types(os.listdir(input_dir), ["audio", "video"]) + return IO.Schema( + node_id="LoadAudio", + display_name="Load Audio", + category="audio", + inputs=[ + IO.Combo.Input("audio", upload=IO.UploadType.audio, options=sorted(files)), + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, audio) -> IO.NodeOutput: + audio_path = folder_paths.get_annotated_filepath(audio) + waveform, sample_rate = load(audio_path) + audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate} + return IO.NodeOutput(audio) + + @classmethod + def fingerprint_inputs(cls, audio): + image_path = folder_paths.get_annotated_filepath(audio) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def validate_inputs(cls, audio): + if not folder_paths.exists_annotated_filepath(audio): + return "Invalid audio file: {}".format(audio) + return True + + load = execute # TODO: remove + + +class RecordAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="RecordAudio", + display_name="Record Audio", + category="audio", + inputs=[ + IO.Custom("AUDIO_RECORD").Input("audio"), + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, audio) -> IO.NodeOutput: + audio_path = folder_paths.get_annotated_filepath(audio) + + waveform, sample_rate = load(audio_path) + audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate} + return IO.NodeOutput(audio) + + load = execute # TODO: remove + + +class TrimAudioDuration(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="TrimAudioDuration", + display_name="Trim Audio Duration", + description="Trim audio tensor into chosen time range.", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + IO.Float.Input( + "start_index", + default=0.0, + min=-0xffffffffffffffff, + max=0xffffffffffffffff, + step=0.01, + tooltip="Start time in seconds, can be negative to count from the end (supports sub-seconds).", + ), + IO.Float.Input( + "duration", + default=60.0, + min=0.0, + step=0.01, + tooltip="Duration in seconds", + ), + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, audio, start_index, duration) -> IO.NodeOutput: + waveform = audio["waveform"] + sample_rate = audio["sample_rate"] + audio_length = waveform.shape[-1] + + if start_index < 0: + start_frame = audio_length + int(round(start_index * sample_rate)) + else: + start_frame = int(round(start_index * sample_rate)) + start_frame = max(0, min(start_frame, audio_length - 1)) + + end_frame = start_frame + int(round(duration * sample_rate)) + end_frame = max(0, min(end_frame, audio_length)) + + if start_frame >= end_frame: + raise ValueError("AudioTrim: Start time must be less than end time and be within the audio length.") + + return IO.NodeOutput({"waveform": waveform[..., start_frame:end_frame], "sample_rate": sample_rate}) + + trim = execute # TODO: remove + + +class SplitAudioChannels(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="SplitAudioChannels", + display_name="Split Audio Channels", + description="Separates the audio into left and right channels.", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + ], + outputs=[ + IO.Audio.Output(display_name="left"), + IO.Audio.Output(display_name="right"), + ], + ) + + @classmethod + def execute(cls, audio) -> IO.NodeOutput: + waveform = audio["waveform"] + sample_rate = audio["sample_rate"] + + if waveform.shape[1] != 2: + raise ValueError("AudioSplit: Input audio has only one channel.") + + left_channel = waveform[..., 0:1, :] + right_channel = waveform[..., 1:2, :] + + return IO.NodeOutput({"waveform": left_channel, "sample_rate": sample_rate}, {"waveform": right_channel, "sample_rate": sample_rate}) + + separate = execute # TODO: remove + + +def match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2): + if sample_rate_1 != sample_rate_2: + if sample_rate_1 > sample_rate_2: + waveform_2 = torchaudio.functional.resample(waveform_2, sample_rate_2, sample_rate_1) + output_sample_rate = sample_rate_1 + logging.info(f"Resampling audio2 from {sample_rate_2}Hz to {sample_rate_1}Hz for merging.") + else: + waveform_1 = torchaudio.functional.resample(waveform_1, sample_rate_1, sample_rate_2) + output_sample_rate = sample_rate_2 + logging.info(f"Resampling audio1 from {sample_rate_1}Hz to {sample_rate_2}Hz for merging.") + else: + output_sample_rate = sample_rate_1 + return waveform_1, waveform_2, output_sample_rate + + +class AudioConcat(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="AudioConcat", + display_name="Audio Concat", + description="Concatenates the audio1 to audio2 in the specified direction.", + category="audio", + inputs=[ + IO.Audio.Input("audio1"), + IO.Audio.Input("audio2"), + IO.Combo.Input( + "direction", + options=['after', 'before'], + default="after", + tooltip="Whether to append audio2 after or before audio1.", + ) + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, audio1, audio2, direction) -> IO.NodeOutput: + waveform_1 = audio1["waveform"] + waveform_2 = audio2["waveform"] + sample_rate_1 = audio1["sample_rate"] + sample_rate_2 = audio2["sample_rate"] + + if waveform_1.shape[1] == 1: + waveform_1 = waveform_1.repeat(1, 2, 1) + logging.info("AudioConcat: Converted mono audio1 to stereo by duplicating the channel.") + if waveform_2.shape[1] == 1: + waveform_2 = waveform_2.repeat(1, 2, 1) + logging.info("AudioConcat: Converted mono audio2 to stereo by duplicating the channel.") + + waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2) + + if direction == 'after': + concatenated_audio = torch.cat((waveform_1, waveform_2), dim=2) + elif direction == 'before': + concatenated_audio = torch.cat((waveform_2, waveform_1), dim=2) + + return IO.NodeOutput({"waveform": concatenated_audio, "sample_rate": output_sample_rate}) + + concat = execute # TODO: remove + + +class AudioMerge(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="AudioMerge", + display_name="Audio Merge", + description="Combine two audio tracks by overlaying their waveforms.", + category="audio", + inputs=[ + IO.Audio.Input("audio1"), + IO.Audio.Input("audio2"), + IO.Combo.Input( + "merge_method", + options=["add", "mean", "subtract", "multiply"], + tooltip="The method used to combine the audio waveforms.", + ) + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, audio1, audio2, merge_method) -> IO.NodeOutput: + waveform_1 = audio1["waveform"] + waveform_2 = audio2["waveform"] + sample_rate_1 = audio1["sample_rate"] + sample_rate_2 = audio2["sample_rate"] + + waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2) + + length_1 = waveform_1.shape[-1] + length_2 = waveform_2.shape[-1] + + if length_2 > length_1: + logging.info(f"AudioMerge: Trimming audio2 from {length_2} to {length_1} samples to match audio1 length.") + waveform_2 = waveform_2[..., :length_1] + elif length_2 < length_1: + logging.info(f"AudioMerge: Padding audio2 from {length_2} to {length_1} samples to match audio1 length.") + pad_shape = list(waveform_2.shape) + pad_shape[-1] = length_1 - length_2 + pad_tensor = torch.zeros(pad_shape, dtype=waveform_2.dtype, device=waveform_2.device) + waveform_2 = torch.cat((waveform_2, pad_tensor), dim=-1) + + if merge_method == "add": + waveform = waveform_1 + waveform_2 + elif merge_method == "subtract": + waveform = waveform_1 - waveform_2 + elif merge_method == "multiply": + waveform = waveform_1 * waveform_2 + elif merge_method == "mean": + waveform = (waveform_1 + waveform_2) / 2 + + max_val = waveform.abs().max() + if max_val > 1.0: + waveform = waveform / max_val + + return IO.NodeOutput({"waveform": waveform, "sample_rate": output_sample_rate}) + + merge = execute # TODO: remove + + +class AudioAdjustVolume(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="AudioAdjustVolume", + display_name="Audio Adjust Volume", + category="audio", + inputs=[ + IO.Audio.Input("audio"), + IO.Int.Input( + "volume", + default=1, + min=-100, + max=100, + tooltip="Volume adjustment in decibels (dB). 0 = no change, +6 = double, -6 = half, etc", + ) + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, audio, volume) -> IO.NodeOutput: + if volume == 0: + return IO.NodeOutput(audio) + waveform = audio["waveform"] + sample_rate = audio["sample_rate"] + + gain = 10 ** (volume / 20) + waveform = waveform * gain + + return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate}) + + adjust_volume = execute # TODO: remove + + +class EmptyAudio(IO.ComfyNode): + @classmethod + def define_schema(cls): + return IO.Schema( + node_id="EmptyAudio", + display_name="Empty Audio", + category="audio", + inputs=[ + IO.Float.Input( + "duration", + default=60.0, + min=0.0, + max=0xffffffffffffffff, + step=0.01, + tooltip="Duration of the empty audio clip in seconds", + ), + IO.Int.Input( + "sample_rate", + default=44100, + tooltip="Sample rate of the empty audio clip.", + min=1, + max=192000, + ), + IO.Int.Input( + "channels", + default=2, + min=1, + max=2, + tooltip="Number of audio channels (1 for mono, 2 for stereo).", + ), + ], + outputs=[IO.Audio.Output()], + ) + + @classmethod + def execute(cls, duration, sample_rate, channels) -> IO.NodeOutput: + num_samples = int(round(duration * sample_rate)) + waveform = torch.zeros((1, channels, num_samples), dtype=torch.float32) + return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate}) + + create_empty_audio = execute # TODO: remove + + +class AudioExtension(ComfyExtension): + @override + async def get_node_list(self) -> list[type[IO.ComfyNode]]: + return [ + EmptyLatentAudio, + VAEEncodeAudio, + VAEDecodeAudio, + SaveAudio, + SaveAudioMP3, + SaveAudioOpus, + LoadAudio, + PreviewAudio, + ConditioningStableAudio, + RecordAudio, + TrimAudioDuration, + SplitAudioChannels, + AudioConcat, + AudioMerge, + AudioAdjustVolume, + EmptyAudio, + ] + +async def comfy_entrypoint() -> AudioExtension: + return AudioExtension() diff --git a/docs/hel-892/storyboard-reference/core__folder_paths.py b/docs/hel-892/storyboard-reference/core__folder_paths.py new file mode 100644 index 00000000..9c96540e --- /dev/null +++ b/docs/hel-892/storyboard-reference/core__folder_paths.py @@ -0,0 +1,496 @@ +from __future__ import annotations + +import os +import time +import mimetypes +import logging +from typing import Literal, List +from collections.abc import Collection + +from comfy.cli_args import args + +supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'} + +folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {} + +# --base-directory - Resets all default paths configured in folder_paths with a new base path +if args.base_directory: + base_path = os.path.abspath(args.base_directory) +else: + base_path = os.path.dirname(os.path.realpath(__file__)) + +models_dir = os.path.join(base_path, "models") +folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions) +folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"]) + +folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions) +folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions) +folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions) +folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions) +folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions) +folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions) +folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions) +folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"]) +folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions) + +folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions) +folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions) + +folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions) + +folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions) + +folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set()) + +folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions) + +folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions) + +folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""}) + +folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions) + +folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions) + +output_directory = os.path.join(base_path, "output") +temp_directory = os.path.join(base_path, "temp") +input_directory = os.path.join(base_path, "input") +user_directory = os.path.join(base_path, "user") + +filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {} + +class CacheHelper: + """ + Helper class for managing file list cache data. + """ + def __init__(self): + self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {} + self.active = False + + def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]: + if not self.active: + return default + return self.cache.get(key, default) + + def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None: + if self.active: + self.cache[key] = value + + def clear(self): + self.cache.clear() + + def __enter__(self): + self.active = True + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.active = False + self.clear() + +cache_helper = CacheHelper() + +extension_mimetypes_cache = { + "webp" : "image", + "fbx" : "model", +} + +def map_legacy(folder_name: str) -> str: + legacy = {"unet": "diffusion_models", + "clip": "text_encoders"} + return legacy.get(folder_name, folder_name) + +if not os.path.exists(input_directory): + try: + os.makedirs(input_directory) + except: + logging.error("Failed to create input directory") + +def set_output_directory(output_dir: str) -> None: + global output_directory + output_directory = output_dir + +def set_temp_directory(temp_dir: str) -> None: + global temp_directory + temp_directory = temp_dir + +def set_input_directory(input_dir: str) -> None: + global input_directory + input_directory = input_dir + +def get_output_directory() -> str: + global output_directory + return output_directory + +def get_temp_directory() -> str: + global temp_directory + return temp_directory + +def get_input_directory() -> str: + global input_directory + return input_directory + +def get_user_directory() -> str: + return user_directory + +def set_user_directory(user_dir: str) -> None: + global user_directory + user_directory = user_dir + + +# System User Protection - Protects system directories from HTTP endpoint access +# System Users are internal-only users that cannot be accessed via HTTP endpoints. +# They use the '__' prefix convention (similar to Python's private member convention). +SYSTEM_USER_PREFIX = "__" + + +def get_system_user_directory(name: str = "system") -> str: + """ + Get the path to a System User directory. + + System User directories (prefixed with '__') are only accessible via internal API, + not through HTTP endpoints. Use this for storing system-internal data that + should not be exposed to users. + + Args: + name: System user name (e.g., "system", "cache"). Must be alphanumeric + with underscores allowed, but cannot start with underscore. + + Returns: + Absolute path to the system user directory. + + Raises: + ValueError: If name is empty, invalid, or starts with underscore. + + Example: + >>> get_system_user_directory("cache") + '/path/to/user/__cache' + """ + if not name or not isinstance(name, str): + raise ValueError("System user name cannot be empty") + if not name.replace("_", "").isalnum(): + raise ValueError(f"Invalid system user name: '{name}'") + if name.startswith("_"): + raise ValueError("System user name should not start with underscore") + return os.path.join(get_user_directory(), f"{SYSTEM_USER_PREFIX}{name}") + + +def get_public_user_directory(user_id: str) -> str | None: + """ + Get the path to a Public User directory for HTTP endpoint access. + + This function provides structural security by returning None for any + System User (prefixed with '__'). All HTTP endpoints should use this + function instead of directly constructing user paths. + + Args: + user_id: User identifier from HTTP request. + + Returns: + Absolute path to the user directory, or None if user_id is invalid + or refers to a System User. + + Example: + >>> get_public_user_directory("default") + '/path/to/user/default' + >>> get_public_user_directory("__system") + None + """ + if not user_id or not isinstance(user_id, str): + return None + if user_id.startswith(SYSTEM_USER_PREFIX): + return None + return os.path.join(get_user_directory(), user_id) + + +#NOTE: used in http server so don't put folders that should not be accessed remotely +def get_directory_by_type(type_name: str) -> str | None: + if type_name == "output": + return get_output_directory() + if type_name == "temp": + return get_temp_directory() + if type_name == "input": + return get_input_directory() + return None + +def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]: + """ + Example: + files = os.listdir(folder_paths.get_input_directory()) + videos = filter_files_content_types(files, ["video"]) + + Note: + - 'model' in MIME context refers to 3D models, not files containing trained weights and parameters + """ + global extension_mimetypes_cache + result = [] + for file in files: + extension = file.split('.')[-1] + if extension not in extension_mimetypes_cache: + mime_type, _ = mimetypes.guess_type(file, strict=False) + if not mime_type: + continue + content_type = mime_type.split('/')[0] + extension_mimetypes_cache[extension] = content_type + else: + content_type = extension_mimetypes_cache[extension] + + if content_type in content_types: + result.append(file) + return result + +# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format +# otherwise use default_path as base_dir +def annotated_filepath(name: str) -> tuple[str, str | None]: + if name.endswith("[output]"): + base_dir = get_output_directory() + name = name[:-9] + elif name.endswith("[input]"): + base_dir = get_input_directory() + name = name[:-8] + elif name.endswith("[temp]"): + base_dir = get_temp_directory() + name = name[:-7] + else: + return name, None + + return name, base_dir + + +def get_annotated_filepath(name: str, default_dir: str | None=None) -> str: + name, base_dir = annotated_filepath(name) + + if base_dir is None: + if default_dir is not None: + base_dir = default_dir + else: + base_dir = get_input_directory() # fallback path + + return os.path.join(base_dir, name) + + +def exists_annotated_filepath(name) -> bool: + name, base_dir = annotated_filepath(name) + + if base_dir is None: + base_dir = get_input_directory() # fallback path + + filepath = os.path.join(base_dir, name) + return os.path.exists(filepath) + + +def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None: + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name in folder_names_and_paths: + paths, _exts = folder_names_and_paths[folder_name] + if full_folder_path in paths: + if is_default and paths[0] != full_folder_path: + # If the path to the folder is not the first in the list, move it to the beginning. + paths.remove(full_folder_path) + paths.insert(0, full_folder_path) + else: + if is_default: + paths.insert(0, full_folder_path) + else: + paths.append(full_folder_path) + else: + folder_names_and_paths[folder_name] = ([full_folder_path], set()) + +def get_folder_paths(folder_name: str) -> list[str]: + folder_name = map_legacy(folder_name) + return folder_names_and_paths[folder_name][0][:] + +def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]: + if not os.path.isdir(directory): + return [], {} + + if excluded_dir_names is None: + excluded_dir_names = [] + + result = [] + dirs = {} + + # Attempt to add the initial directory to dirs with error handling + try: + dirs[directory] = os.path.getmtime(directory) + except FileNotFoundError: + logging.warning(f"Warning: Unable to access {directory}. Skipping this path.") + + logging.debug("recursive file list on directory {}".format(directory)) + dirpath: str + subdirs: list[str] + filenames: list[str] + + for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True): + subdirs[:] = [d for d in subdirs if d not in excluded_dir_names] + for file_name in filenames: + try: + relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory) + result.append(relative_path) + except: + logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.") + continue + + for d in subdirs: + path: str = os.path.join(dirpath, d) + try: + dirs[path] = os.path.getmtime(path) + except FileNotFoundError: + logging.warning(f"Warning: Unable to access {path}. Skipping this path.") + continue + logging.debug("found {} files".format(len(result))) + return result, dirs + +def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]: + return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files))) + + + +def get_full_path(folder_name: str, filename: str) -> str | None: + """ + Get the full path of a file in a folder, has to be a file + """ + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name not in folder_names_and_paths: + return None + folders = folder_names_and_paths[folder_name] + filename = os.path.relpath(os.path.join("/", filename), "/") + for x in folders[0]: + full_path = os.path.join(x, filename) + if os.path.isfile(full_path): + return full_path + elif os.path.islink(full_path): + logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path)) + + return None + + +def get_full_path_or_raise(folder_name: str, filename: str) -> str: + """ + Get the full path of a file in a folder, has to be a file + """ + full_path = get_full_path(folder_name, filename) + if full_path is None: + raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.") + return full_path + + +def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]: + folder_name = map_legacy(folder_name) + global folder_names_and_paths + output_list = set() + folders = folder_names_and_paths[folder_name] + output_folders = {} + for x in folders[0]: + files, folders_all = recursive_search(x, excluded_dir_names=[".git"]) + output_list.update(filter_files_extensions(files, folders[1])) + output_folders = {**output_folders, **folders_all} + + return sorted(list(output_list)), output_folders, time.perf_counter() + +def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None: + strong_cache = cache_helper.get(folder_name) + if strong_cache is not None: + return strong_cache + + global filename_list_cache + global folder_names_and_paths + folder_name = map_legacy(folder_name) + if folder_name not in filename_list_cache: + return None + out = filename_list_cache[folder_name] + + for x in out[1]: + time_modified = out[1][x] + folder = x + if os.path.getmtime(folder) != time_modified: + return None + + folders = folder_names_and_paths[folder_name] + for x in folders[0]: + if os.path.isdir(x): + if x not in out[1]: + return None + + return out + +def get_filename_list(folder_name: str) -> list[str]: + folder_name = map_legacy(folder_name) + out = cached_filename_list_(folder_name) + if out is None: + out = get_filename_list_(folder_name) + global filename_list_cache + filename_list_cache[folder_name] = out + cache_helper.set(folder_name, out) + return list(out[0]) + +def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]: + def map_filename(filename: str) -> tuple[int, str]: + prefix_len = len(os.path.basename(filename_prefix)) + prefix = filename[:prefix_len + 1] + try: + digits = int(filename[prefix_len + 1:].split('_')[0]) + except: + digits = 0 + return digits, prefix + + def compute_vars(input: str, image_width: int, image_height: int) -> str: + input = input.replace("%width%", str(image_width)) + input = input.replace("%height%", str(image_height)) + now = time.localtime() + input = input.replace("%year%", str(now.tm_year)) + input = input.replace("%month%", str(now.tm_mon).zfill(2)) + input = input.replace("%day%", str(now.tm_mday).zfill(2)) + input = input.replace("%hour%", str(now.tm_hour).zfill(2)) + input = input.replace("%minute%", str(now.tm_min).zfill(2)) + input = input.replace("%second%", str(now.tm_sec).zfill(2)) + return input + + if "%" in filename_prefix: + filename_prefix = compute_vars(filename_prefix, image_width, image_height) + + subfolder = os.path.dirname(os.path.normpath(filename_prefix)) + filename = os.path.basename(os.path.normpath(filename_prefix)) + + full_output_folder = os.path.join(output_dir, subfolder) + + if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir: + err = "**** ERROR: Saving image outside the output folder is not allowed." + \ + "\n full_output_folder: " + os.path.abspath(full_output_folder) + \ + "\n output_dir: " + output_dir + \ + "\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) + logging.error(err) + raise Exception(err) + + try: + counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1 + except ValueError: + counter = 1 + except FileNotFoundError: + os.makedirs(full_output_folder, exist_ok=True) + counter = 1 + return full_output_folder, filename, counter, subfolder, filename_prefix + +def get_input_subfolders() -> list[str]: + """Returns a list of all subfolder paths in the input directory, recursively. + + Returns: + List of folder paths relative to the input directory, excluding the root directory + """ + input_dir = get_input_directory() + folders = [] + + try: + if not os.path.exists(input_dir): + return [] + + for root, dirs, _ in os.walk(input_dir): + rel_path = os.path.relpath(root, input_dir) + if rel_path != ".": # Only include non-root directories + # Normalize path separators to forward slashes + folders.append(rel_path.replace(os.sep, '/')) + + return sorted(folders) + except FileNotFoundError: + return [] diff --git a/docs/hel-892/storyboard-reference/core__nodes.py b/docs/hel-892/storyboard-reference/core__nodes.py new file mode 100644 index 00000000..7d83ecb2 --- /dev/null +++ b/docs/hel-892/storyboard-reference/core__nodes.py @@ -0,0 +1,2452 @@ +from __future__ import annotations +import torch + + +import os +import sys +import json +import hashlib +import inspect +import traceback +import math +import time +import random +import logging + +from PIL import Image, ImageOps, ImageSequence +from PIL.PngImagePlugin import PngInfo + +import numpy as np +import safetensors.torch + +sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy")) + +import comfy.diffusers_load +import comfy.samplers +import comfy.sample +import comfy.sd +import comfy.utils +import comfy.controlnet +from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict, FileLocator +from comfy_api.internal import register_versions, ComfyAPIWithVersion +from comfy_api.version_list import supported_versions +from comfy_api.latest import io, ComfyExtension + +import comfy.clip_vision + +import comfy.model_management +from comfy.cli_args import args + +import importlib + +import folder_paths +import latent_preview +import node_helpers + +if args.enable_manager: + import comfyui_manager + +def before_node_execution(): + comfy.model_management.throw_exception_if_processing_interrupted() + +def interrupt_processing(value=True): + comfy.model_management.interrupt_current_processing(value) + +MAX_RESOLUTION=16384 + +class CLIPTextEncode(ComfyNodeABC): + @classmethod + def INPUT_TYPES(s) -> InputTypeDict: + return { + "required": { + "text": (IO.STRING, {"multiline": True, "dynamicPrompts": True, "tooltip": "The text to be encoded."}), + "clip": (IO.CLIP, {"tooltip": "The CLIP model used for encoding the text."}) + } + } + RETURN_TYPES = (IO.CONDITIONING,) + OUTPUT_TOOLTIPS = ("A conditioning containing the embedded text used to guide the diffusion model.",) + FUNCTION = "encode" + + CATEGORY = "conditioning" + DESCRIPTION = "Encodes a text prompt using a CLIP model into an embedding that can be used to guide the diffusion model towards generating specific images." + + def encode(self, clip, text): + if clip is None: + raise RuntimeError("ERROR: clip input is invalid: None\n\nIf the clip is from a checkpoint loader node your checkpoint does not contain a valid clip or text encoder model.") + tokens = clip.tokenize(text) + return (clip.encode_from_tokens_scheduled(tokens), ) + + +class ConditioningCombine: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_1": ("CONDITIONING", ), "conditioning_2": ("CONDITIONING", )}} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "combine" + + CATEGORY = "conditioning" + + def combine(self, conditioning_1, conditioning_2): + return (conditioning_1 + conditioning_2, ) + +class ConditioningAverage : + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_to": ("CONDITIONING", ), "conditioning_from": ("CONDITIONING", ), + "conditioning_to_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "addWeighted" + + CATEGORY = "conditioning" + + def addWeighted(self, conditioning_to, conditioning_from, conditioning_to_strength): + out = [] + + if len(conditioning_from) > 1: + logging.warning("Warning: ConditioningAverage conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.") + + cond_from = conditioning_from[0][0] + pooled_output_from = conditioning_from[0][1].get("pooled_output", None) + + for i in range(len(conditioning_to)): + t1 = conditioning_to[i][0] + pooled_output_to = conditioning_to[i][1].get("pooled_output", pooled_output_from) + t0 = cond_from[:,:t1.shape[1]] + if t0.shape[1] < t1.shape[1]: + t0 = torch.cat([t0] + [torch.zeros((1, (t1.shape[1] - t0.shape[1]), t1.shape[2]))], dim=1) + + tw = torch.mul(t1, conditioning_to_strength) + torch.mul(t0, (1.0 - conditioning_to_strength)) + t_to = conditioning_to[i][1].copy() + if pooled_output_from is not None and pooled_output_to is not None: + t_to["pooled_output"] = torch.mul(pooled_output_to, conditioning_to_strength) + torch.mul(pooled_output_from, (1.0 - conditioning_to_strength)) + elif pooled_output_from is not None: + t_to["pooled_output"] = pooled_output_from + + n = [tw, t_to] + out.append(n) + return (out, ) + +class ConditioningConcat: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "conditioning_to": ("CONDITIONING",), + "conditioning_from": ("CONDITIONING",), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "concat" + + CATEGORY = "conditioning" + + def concat(self, conditioning_to, conditioning_from): + out = [] + + if len(conditioning_from) > 1: + logging.warning("Warning: ConditioningConcat conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.") + + cond_from = conditioning_from[0][0] + + for i in range(len(conditioning_to)): + t1 = conditioning_to[i][0] + tw = torch.cat((t1, cond_from),1) + n = [tw, conditioning_to[i][1].copy()] + out.append(n) + + return (out, ) + +class ConditioningSetArea: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "width": ("INT", {"default": 64, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 64, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, width, height, x, y, strength): + c = node_helpers.conditioning_set_values(conditioning, {"area": (height // 8, width // 8, y // 8, x // 8), + "strength": strength, + "set_area_to_bounds": False}) + return (c, ) + +class ConditioningSetAreaPercentage: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "width": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}), + "height": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}), + "x": ("FLOAT", {"default": 0, "min": 0, "max": 1.0, "step": 0.01}), + "y": ("FLOAT", {"default": 0, "min": 0, "max": 1.0, "step": 0.01}), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, width, height, x, y, strength): + c = node_helpers.conditioning_set_values(conditioning, {"area": ("percentage", height, width, y, x), + "strength": strength, + "set_area_to_bounds": False}) + return (c, ) + +class ConditioningSetAreaStrength: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, strength): + c = node_helpers.conditioning_set_values(conditioning, {"strength": strength}) + return (c, ) + + +class ConditioningSetMask: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "mask": ("MASK", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning" + + def append(self, conditioning, mask, set_cond_area, strength): + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask.shape) < 3: + mask = mask.unsqueeze(0) + + c = node_helpers.conditioning_set_values(conditioning, {"mask": mask, + "set_area_to_bounds": set_area_to_bounds, + "mask_strength": strength}) + return (c, ) + +class ConditioningZeroOut: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", )}} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "zero_out" + + CATEGORY = "advanced/conditioning" + + def zero_out(self, conditioning): + c = [] + for t in conditioning: + d = t[1].copy() + pooled_output = d.get("pooled_output", None) + if pooled_output is not None: + d["pooled_output"] = torch.zeros_like(pooled_output) + conditioning_lyrics = d.get("conditioning_lyrics", None) + if conditioning_lyrics is not None: + d["conditioning_lyrics"] = torch.zeros_like(conditioning_lyrics) + n = [torch.zeros_like(t[0]), d] + c.append(n) + return (c, ) + +class ConditioningSetTimestepRange: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "start": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.001}), + "end": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "set_range" + + CATEGORY = "advanced/conditioning" + + def set_range(self, conditioning, start, end): + c = node_helpers.conditioning_set_values(conditioning, {"start_percent": start, + "end_percent": end}) + return (c, ) + +class VAEDecode: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "samples": ("LATENT", {"tooltip": "The latent to be decoded."}), + "vae": ("VAE", {"tooltip": "The VAE model used for decoding the latent."}) + } + } + RETURN_TYPES = ("IMAGE",) + OUTPUT_TOOLTIPS = ("The decoded image.",) + FUNCTION = "decode" + + CATEGORY = "latent" + DESCRIPTION = "Decodes latent images back into pixel space images." + + def decode(self, vae, samples): + images = vae.decode(samples["samples"]) + if len(images.shape) == 5: #Combine batches + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + +class VAEDecodeTiled: + @classmethod + def INPUT_TYPES(s): + return {"required": {"samples": ("LATENT", ), "vae": ("VAE", ), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 32}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to decode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "decode" + + CATEGORY = "_for_testing" + + def decode(self, vae, samples, tile_size, overlap=64, temporal_size=64, temporal_overlap=8): + if tile_size < overlap * 4: + overlap = tile_size // 4 + if temporal_size < temporal_overlap * 2: + temporal_overlap = temporal_overlap // 2 + temporal_compression = vae.temporal_compression_decode() + if temporal_compression is not None: + temporal_size = max(2, temporal_size // temporal_compression) + temporal_overlap = max(1, min(temporal_size // 2, temporal_overlap // temporal_compression)) + else: + temporal_size = None + temporal_overlap = None + + compression = vae.spacial_compression_decode() + images = vae.decode_tiled(samples["samples"], tile_x=tile_size // compression, tile_y=tile_size // compression, overlap=overlap // compression, tile_t=temporal_size, overlap_t=temporal_overlap) + if len(images.shape) == 5: #Combine batches + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + +class VAEEncode: + @classmethod + def INPUT_TYPES(s): + return {"required": { "pixels": ("IMAGE", ), "vae": ("VAE", )}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "latent" + + def encode(self, vae, pixels): + t = vae.encode(pixels) + return ({"samples":t}, ) + +class VAEEncodeTiled: + @classmethod + def INPUT_TYPES(s): + return {"required": {"pixels": ("IMAGE", ), "vae": ("VAE", ), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 64}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to encode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "_for_testing" + + def encode(self, vae, pixels, tile_size, overlap, temporal_size=64, temporal_overlap=8): + t = vae.encode_tiled(pixels, tile_x=tile_size, tile_y=tile_size, overlap=overlap, tile_t=temporal_size, overlap_t=temporal_overlap) + return ({"samples": t}, ) + +class VAEEncodeForInpaint: + @classmethod + def INPUT_TYPES(s): + return {"required": { "pixels": ("IMAGE", ), "vae": ("VAE", ), "mask": ("MASK", ), "grow_mask_by": ("INT", {"default": 6, "min": 0, "max": 64, "step": 1}),}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "encode" + + CATEGORY = "latent/inpaint" + + def encode(self, vae, pixels, mask, grow_mask_by=6): + x = (pixels.shape[1] // vae.downscale_ratio) * vae.downscale_ratio + y = (pixels.shape[2] // vae.downscale_ratio) * vae.downscale_ratio + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear") + + pixels = pixels.clone() + if pixels.shape[1] != x or pixels.shape[2] != y: + x_offset = (pixels.shape[1] % vae.downscale_ratio) // 2 + y_offset = (pixels.shape[2] % vae.downscale_ratio) // 2 + pixels = pixels[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + mask = mask[:,:,x_offset:x + x_offset, y_offset:y + y_offset] + + #grow mask by a few pixels to keep things seamless in latent space + if grow_mask_by == 0: + mask_erosion = mask + else: + kernel_tensor = torch.ones((1, 1, grow_mask_by, grow_mask_by)) + padding = math.ceil((grow_mask_by - 1) / 2) + + mask_erosion = torch.clamp(torch.nn.functional.conv2d(mask.round(), kernel_tensor, padding=padding), 0, 1) + + m = (1.0 - mask.round()).squeeze(1) + for i in range(3): + pixels[:,:,:,i] -= 0.5 + pixels[:,:,:,i] *= m + pixels[:,:,:,i] += 0.5 + t = vae.encode(pixels) + + return ({"samples":t, "noise_mask": (mask_erosion[:,:,:x,:y].round())}, ) + + +class InpaintModelConditioning: + @classmethod + def INPUT_TYPES(s): + return {"required": {"positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "vae": ("VAE", ), + "pixels": ("IMAGE", ), + "mask": ("MASK", ), + "noise_mask": ("BOOLEAN", {"default": True, "tooltip": "Add a noise mask to the latent so sampling will only happen within the mask. Might improve results or completely break things depending on the model."}), + }} + + RETURN_TYPES = ("CONDITIONING","CONDITIONING","LATENT") + RETURN_NAMES = ("positive", "negative", "latent") + FUNCTION = "encode" + + CATEGORY = "conditioning/inpaint" + + def encode(self, positive, negative, pixels, vae, mask, noise_mask=True): + x = (pixels.shape[1] // 8) * 8 + y = (pixels.shape[2] // 8) * 8 + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(pixels.shape[1], pixels.shape[2]), mode="bilinear") + + orig_pixels = pixels + pixels = orig_pixels.clone() + if pixels.shape[1] != x or pixels.shape[2] != y: + x_offset = (pixels.shape[1] % 8) // 2 + y_offset = (pixels.shape[2] % 8) // 2 + pixels = pixels[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + mask = mask[:,:,x_offset:x + x_offset, y_offset:y + y_offset] + + m = (1.0 - mask.round()).squeeze(1) + for i in range(3): + pixels[:,:,:,i] -= 0.5 + pixels[:,:,:,i] *= m + pixels[:,:,:,i] += 0.5 + concat_latent = vae.encode(pixels) + orig_latent = vae.encode(orig_pixels) + + out_latent = {} + + out_latent["samples"] = orig_latent + if noise_mask: + out_latent["noise_mask"] = mask + + out = [] + for conditioning in [positive, negative]: + c = node_helpers.conditioning_set_values(conditioning, {"concat_latent_image": concat_latent, + "concat_mask": mask}) + out.append(c) + return (out[0], out[1], out_latent) + + +class SaveLatent: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT", ), + "filename_prefix": ("STRING", {"default": "latents/ComfyUI"})}, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + RETURN_TYPES = () + FUNCTION = "save" + + OUTPUT_NODE = True + + CATEGORY = "_for_testing" + + def save(self, samples, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None): + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + + # support save metadata for latent sharing + prompt_info = "" + if prompt is not None: + prompt_info = json.dumps(prompt) + + metadata = None + if not args.disable_metadata: + metadata = {"prompt": prompt_info} + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata[x] = json.dumps(extra_pnginfo[x]) + + file = f"{filename}_{counter:05}_.latent" + + results: list[FileLocator] = [] + results.append({ + "filename": file, + "subfolder": subfolder, + "type": "output" + }) + + file = os.path.join(full_output_folder, file) + + output = {} + output["latent_tensor"] = samples["samples"].contiguous() + output["latent_format_version_0"] = torch.tensor([]) + + comfy.utils.save_torch_file(output, file, metadata=metadata) + return { "ui": { "latents": results } } + + +class LoadLatent: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f)) and f.endswith(".latent")] + return {"required": {"latent": [sorted(files), ]}, } + + CATEGORY = "_for_testing" + + RETURN_TYPES = ("LATENT", ) + FUNCTION = "load" + + def load(self, latent): + latent_path = folder_paths.get_annotated_filepath(latent) + latent = safetensors.torch.load_file(latent_path, device="cpu") + multiplier = 1.0 + if "latent_format_version_0" not in latent: + multiplier = 1.0 / 0.18215 + samples = {"samples": latent["latent_tensor"].float() * multiplier} + return (samples, ) + + @classmethod + def IS_CHANGED(s, latent): + image_path = folder_paths.get_annotated_filepath(latent) + m = hashlib.sha256() + with open(image_path, 'rb') as f: + m.update(f.read()) + return m.digest().hex() + + @classmethod + def VALIDATE_INPUTS(s, latent): + if not folder_paths.exists_annotated_filepath(latent): + return "Invalid latent file: {}".format(latent) + return True + + +class CheckpointLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "config_name": (folder_paths.get_filename_list("configs"), ), + "ckpt_name": (folder_paths.get_filename_list("checkpoints"), )}} + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + FUNCTION = "load_checkpoint" + + CATEGORY = "advanced/loaders" + DEPRECATED = True + + def load_checkpoint(self, config_name, ckpt_name): + config_path = folder_paths.get_full_path("configs", config_name) + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + return comfy.sd.load_checkpoint(config_path, ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + +class CheckpointLoaderSimple: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "ckpt_name": (folder_paths.get_filename_list("checkpoints"), {"tooltip": "The name of the checkpoint (model) to load."}), + } + } + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + OUTPUT_TOOLTIPS = ("The model used for denoising latents.", + "The CLIP model used for encoding text prompts.", + "The VAE model used for encoding and decoding images to and from latent space.") + FUNCTION = "load_checkpoint" + + CATEGORY = "loaders" + DESCRIPTION = "Loads a diffusion model checkpoint, diffusion models are used to denoise latents." + + def load_checkpoint(self, ckpt_name): + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + return out[:3] + +class DiffusersLoader: + @classmethod + def INPUT_TYPES(cls): + paths = [] + for search_path in folder_paths.get_folder_paths("diffusers"): + if os.path.exists(search_path): + for root, subdir, files in os.walk(search_path, followlinks=True): + if "model_index.json" in files: + paths.append(os.path.relpath(root, start=search_path)) + + return {"required": {"model_path": (paths,), }} + RETURN_TYPES = ("MODEL", "CLIP", "VAE") + FUNCTION = "load_checkpoint" + + CATEGORY = "advanced/loaders/deprecated" + + def load_checkpoint(self, model_path, output_vae=True, output_clip=True): + for search_path in folder_paths.get_folder_paths("diffusers"): + if os.path.exists(search_path): + path = os.path.join(search_path, model_path) + if os.path.exists(path): + model_path = path + break + + return comfy.diffusers_load.load_diffusers(model_path, output_vae=output_vae, output_clip=output_clip, embedding_directory=folder_paths.get_folder_paths("embeddings")) + + +class unCLIPCheckpointLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "ckpt_name": (folder_paths.get_filename_list("checkpoints"), ), + }} + RETURN_TYPES = ("MODEL", "CLIP", "VAE", "CLIP_VISION") + FUNCTION = "load_checkpoint" + + CATEGORY = "loaders" + + def load_checkpoint(self, ckpt_name, output_vae=True, output_clip=True): + ckpt_path = folder_paths.get_full_path_or_raise("checkpoints", ckpt_name) + out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, output_clipvision=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) + return out + +class CLIPSetLastLayer: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip": ("CLIP", ), + "stop_at_clip_layer": ("INT", {"default": -1, "min": -24, "max": -1, "step": 1}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "set_last_layer" + + CATEGORY = "conditioning" + + def set_last_layer(self, clip, stop_at_clip_layer): + clip = clip.clone() + clip.clip_layer(stop_at_clip_layer) + return (clip,) + +class LoraLoader: + def __init__(self): + self.loaded_lora = None + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL", {"tooltip": "The diffusion model the LoRA will be applied to."}), + "clip": ("CLIP", {"tooltip": "The CLIP model the LoRA will be applied to."}), + "lora_name": (folder_paths.get_filename_list("loras"), {"tooltip": "The name of the LoRA."}), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the diffusion model. This value can be negative."}), + "strength_clip": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the CLIP model. This value can be negative."}), + } + } + + RETURN_TYPES = ("MODEL", "CLIP") + OUTPUT_TOOLTIPS = ("The modified diffusion model.", "The modified CLIP model.") + FUNCTION = "load_lora" + + CATEGORY = "loaders" + DESCRIPTION = "LoRAs are used to modify diffusion and CLIP models, altering the way in which latents are denoised such as applying styles. Multiple LoRA nodes can be linked together." + + def load_lora(self, model, clip, lora_name, strength_model, strength_clip): + if strength_model == 0 and strength_clip == 0: + return (model, clip) + + lora_path = folder_paths.get_full_path_or_raise("loras", lora_name) + lora = None + if self.loaded_lora is not None: + if self.loaded_lora[0] == lora_path: + lora = self.loaded_lora[1] + else: + self.loaded_lora = None + + if lora is None: + lora = comfy.utils.load_torch_file(lora_path, safe_load=True) + self.loaded_lora = (lora_path, lora) + + model_lora, clip_lora = comfy.sd.load_lora_for_models(model, clip, lora, strength_model, strength_clip) + return (model_lora, clip_lora) + +class LoraLoaderModelOnly(LoraLoader): + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "lora_name": (folder_paths.get_filename_list("loras"), ), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01}), + }} + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_lora_model_only" + + def load_lora_model_only(self, model, lora_name, strength_model): + return (self.load_lora(model, None, lora_name, strength_model, 0)[0],) + +class VAELoader: + video_taes = ["taehv", "lighttaew2_2", "lighttaew2_1", "lighttaehy1_5"] + image_taes = ["taesd", "taesdxl", "taesd3", "taef1"] + @staticmethod + def vae_list(s): + vaes = folder_paths.get_filename_list("vae") + approx_vaes = folder_paths.get_filename_list("vae_approx") + sdxl_taesd_enc = False + sdxl_taesd_dec = False + sd1_taesd_enc = False + sd1_taesd_dec = False + sd3_taesd_enc = False + sd3_taesd_dec = False + f1_taesd_enc = False + f1_taesd_dec = False + + for v in approx_vaes: + if v.startswith("taesd_decoder."): + sd1_taesd_dec = True + elif v.startswith("taesd_encoder."): + sd1_taesd_enc = True + elif v.startswith("taesdxl_decoder."): + sdxl_taesd_dec = True + elif v.startswith("taesdxl_encoder."): + sdxl_taesd_enc = True + elif v.startswith("taesd3_decoder."): + sd3_taesd_dec = True + elif v.startswith("taesd3_encoder."): + sd3_taesd_enc = True + elif v.startswith("taef1_encoder."): + f1_taesd_dec = True + elif v.startswith("taef1_decoder."): + f1_taesd_enc = True + else: + for tae in s.video_taes: + if v.startswith(tae): + vaes.append(v) + + if sd1_taesd_dec and sd1_taesd_enc: + vaes.append("taesd") + if sdxl_taesd_dec and sdxl_taesd_enc: + vaes.append("taesdxl") + if sd3_taesd_dec and sd3_taesd_enc: + vaes.append("taesd3") + if f1_taesd_dec and f1_taesd_enc: + vaes.append("taef1") + vaes.append("pixel_space") + return vaes + + @staticmethod + def load_taesd(name): + sd = {} + approx_vaes = folder_paths.get_filename_list("vae_approx") + + encoder = next(filter(lambda a: a.startswith("{}_encoder.".format(name)), approx_vaes)) + decoder = next(filter(lambda a: a.startswith("{}_decoder.".format(name)), approx_vaes)) + + enc = comfy.utils.load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", encoder)) + for k in enc: + sd["taesd_encoder.{}".format(k)] = enc[k] + + dec = comfy.utils.load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", decoder)) + for k in dec: + sd["taesd_decoder.{}".format(k)] = dec[k] + + if name == "taesd": + sd["vae_scale"] = torch.tensor(0.18215) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesdxl": + sd["vae_scale"] = torch.tensor(0.13025) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesd3": + sd["vae_scale"] = torch.tensor(1.5305) + sd["vae_shift"] = torch.tensor(0.0609) + elif name == "taef1": + sd["vae_scale"] = torch.tensor(0.3611) + sd["vae_shift"] = torch.tensor(0.1159) + return sd + + @classmethod + def INPUT_TYPES(s): + return {"required": { "vae_name": (s.vae_list(s), )}} + RETURN_TYPES = ("VAE",) + FUNCTION = "load_vae" + + CATEGORY = "loaders" + + #TODO: scale factor? + def load_vae(self, vae_name): + if vae_name == "pixel_space": + sd = {} + sd["pixel_space_vae"] = torch.tensor(1.0) + elif vae_name in self.image_taes: + sd = self.load_taesd(vae_name) + else: + if os.path.splitext(vae_name)[0] in self.video_taes: + vae_path = folder_paths.get_full_path_or_raise("vae_approx", vae_name) + else: + vae_path = folder_paths.get_full_path_or_raise("vae", vae_name) + sd = comfy.utils.load_torch_file(vae_path) + vae = comfy.sd.VAE(sd=sd) + vae.throw_exception_if_invalid() + return (vae,) + +class ControlNetLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "control_net_name": (folder_paths.get_filename_list("controlnet"), )}} + + RETURN_TYPES = ("CONTROL_NET",) + FUNCTION = "load_controlnet" + + CATEGORY = "loaders" + + def load_controlnet(self, control_net_name): + controlnet_path = folder_paths.get_full_path_or_raise("controlnet", control_net_name) + controlnet = comfy.controlnet.load_controlnet(controlnet_path) + if controlnet is None: + raise RuntimeError("ERROR: controlnet file is invalid and does not contain a valid controlnet model.") + return (controlnet,) + +class DiffControlNetLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "control_net_name": (folder_paths.get_filename_list("controlnet"), )}} + + RETURN_TYPES = ("CONTROL_NET",) + FUNCTION = "load_controlnet" + + CATEGORY = "loaders" + + def load_controlnet(self, model, control_net_name): + controlnet_path = folder_paths.get_full_path_or_raise("controlnet", control_net_name) + controlnet = comfy.controlnet.load_controlnet(controlnet_path, model) + return (controlnet,) + + +class ControlNetApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "control_net": ("CONTROL_NET", ), + "image": ("IMAGE", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}) + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_controlnet" + + DEPRECATED = True + CATEGORY = "conditioning/controlnet" + + def apply_controlnet(self, conditioning, control_net, image, strength): + if strength == 0: + return (conditioning, ) + + c = [] + control_hint = image.movedim(-1,1) + for t in conditioning: + n = [t[0], t[1].copy()] + c_net = control_net.copy().set_cond_hint(control_hint, strength) + if 'control' in t[1]: + c_net.set_previous_controlnet(t[1]['control']) + n[1]['control'] = c_net + n[1]['control_apply_to_uncond'] = True + c.append(n) + return (c, ) + + +class ControlNetApplyAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": {"positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "control_net": ("CONTROL_NET", ), + "image": ("IMAGE", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "start_percent": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.001}), + "end_percent": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.001}) + }, + "optional": {"vae": ("VAE", ), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING") + RETURN_NAMES = ("positive", "negative") + FUNCTION = "apply_controlnet" + + CATEGORY = "conditioning/controlnet" + + def apply_controlnet(self, positive, negative, control_net, image, strength, start_percent, end_percent, vae=None, extra_concat=[]): + if strength == 0: + return (positive, negative) + + control_hint = image.movedim(-1,1) + cnets = {} + + out = [] + for conditioning in [positive, negative]: + c = [] + for t in conditioning: + d = t[1].copy() + + prev_cnet = d.get('control', None) + if prev_cnet in cnets: + c_net = cnets[prev_cnet] + else: + c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent), vae=vae, extra_concat=extra_concat) + c_net.set_previous_controlnet(prev_cnet) + cnets[prev_cnet] = c_net + + d['control'] = c_net + d['control_apply_to_uncond'] = False + n = [t[0], d] + c.append(n) + out.append(c) + return (out[0], out[1]) + + +class UNETLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "unet_name": (folder_paths.get_filename_list("diffusion_models"), ), + "weight_dtype": (["default", "fp8_e4m3fn", "fp8_e4m3fn_fast", "fp8_e5m2"],) + }} + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_unet" + + CATEGORY = "advanced/loaders" + + def load_unet(self, unet_name, weight_dtype): + model_options = {} + if weight_dtype == "fp8_e4m3fn": + model_options["dtype"] = torch.float8_e4m3fn + elif weight_dtype == "fp8_e4m3fn_fast": + model_options["dtype"] = torch.float8_e4m3fn + model_options["fp8_optimizations"] = True + elif weight_dtype == "fp8_e5m2": + model_options["dtype"] = torch.float8_e5m2 + + unet_path = folder_paths.get_full_path_or_raise("diffusion_models", unet_name) + model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options) + return (model,) + +class CLIPLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name": (folder_paths.get_filename_list("text_encoders"), ), + "type": (["stable_diffusion", "stable_cascade", "sd3", "stable_audio", "mochi", "ltxv", "pixart", "cosmos", "lumina2", "wan", "hidream", "chroma", "ace", "omnigen2", "qwen_image", "hunyuan_image", "flux2", "ovis"], ), + }, + "optional": { + "device": (["default", "cpu"], {"advanced": True}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "load_clip" + + CATEGORY = "advanced/loaders" + + DESCRIPTION = "[Recipes]\n\nstable_diffusion: clip-l\nstable_cascade: clip-g\nsd3: t5 xxl/ clip-g / clip-l\nstable_audio: t5 base\nmochi: t5 xxl\ncosmos: old t5 xxl\nlumina2: gemma 2 2B\nwan: umt5 xxl\n hidream: llama-3.1 (Recommend) or t5\nomnigen2: qwen vl 2.5 3B" + + def load_clip(self, clip_name, type="stable_diffusion", device="default"): + clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) + + model_options = {} + if device == "cpu": + model_options["load_device"] = model_options["offload_device"] = torch.device("cpu") + + clip_path = folder_paths.get_full_path_or_raise("text_encoders", clip_name) + clip = comfy.sd.load_clip(ckpt_paths=[clip_path], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options) + return (clip,) + +class DualCLIPLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name1": (folder_paths.get_filename_list("text_encoders"), ), + "clip_name2": (folder_paths.get_filename_list("text_encoders"), ), + "type": (["sdxl", "sd3", "flux", "hunyuan_video", "hidream", "hunyuan_image", "hunyuan_video_15", "kandinsky5", "kandinsky5_image", "newbie"], ), + }, + "optional": { + "device": (["default", "cpu"], {"advanced": True}), + }} + RETURN_TYPES = ("CLIP",) + FUNCTION = "load_clip" + + CATEGORY = "advanced/loaders" + + DESCRIPTION = "[Recipes]\n\nsdxl: clip-l, clip-g\nsd3: clip-l, clip-g / clip-l, t5 / clip-g, t5\nflux: clip-l, t5\nhidream: at least one of t5 or llama, recommended t5 and llama\nhunyuan_image: qwen2.5vl 7b and byt5 small\nnewbie: gemma-3-4b-it, jina clip v2" + + def load_clip(self, clip_name1, clip_name2, type, device="default"): + clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) + + clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1) + clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2) + + model_options = {} + if device == "cpu": + model_options["load_device"] = model_options["offload_device"] = torch.device("cpu") + + clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2], embedding_directory=folder_paths.get_folder_paths("embeddings"), clip_type=clip_type, model_options=model_options) + return (clip,) + +class CLIPVisionLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_name": (folder_paths.get_filename_list("clip_vision"), ), + }} + RETURN_TYPES = ("CLIP_VISION",) + FUNCTION = "load_clip" + + CATEGORY = "loaders" + + def load_clip(self, clip_name): + clip_path = folder_paths.get_full_path_or_raise("clip_vision", clip_name) + clip_vision = comfy.clip_vision.load(clip_path) + if clip_vision is None: + raise RuntimeError("ERROR: clip vision file is invalid and does not contain a valid vision model.") + return (clip_vision,) + +class CLIPVisionEncode: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_vision": ("CLIP_VISION",), + "image": ("IMAGE",), + "crop": (["center", "none"],) + }} + RETURN_TYPES = ("CLIP_VISION_OUTPUT",) + FUNCTION = "encode" + + CATEGORY = "conditioning" + + def encode(self, clip_vision, image, crop): + crop_image = True + if crop != "center": + crop_image = False + output = clip_vision.encode_image(image, crop=crop_image) + return (output,) + +class StyleModelLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "style_model_name": (folder_paths.get_filename_list("style_models"), )}} + + RETURN_TYPES = ("STYLE_MODEL",) + FUNCTION = "load_style_model" + + CATEGORY = "loaders" + + def load_style_model(self, style_model_name): + style_model_path = folder_paths.get_full_path_or_raise("style_models", style_model_name) + style_model = comfy.sd.load_style_model(style_model_path) + return (style_model,) + + +class StyleModelApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "style_model": ("STYLE_MODEL", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.001}), + "strength_type": (["multiply", "attn_bias"], ), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_stylemodel" + + CATEGORY = "conditioning/style_model" + + def apply_stylemodel(self, conditioning, style_model, clip_vision_output, strength, strength_type): + cond = style_model.get_cond(clip_vision_output).flatten(start_dim=0, end_dim=1).unsqueeze(dim=0) + if strength_type == "multiply": + cond *= strength + + n = cond.shape[1] + c_out = [] + for t in conditioning: + (txt, keys) = t + keys = keys.copy() + # even if the strength is 1.0 (i.e, no change), if there's already a mask, we have to add to it + if "attention_mask" in keys or (strength_type == "attn_bias" and strength != 1.0): + # math.log raises an error if the argument is zero + # torch.log returns -inf, which is what we want + attn_bias = torch.log(torch.Tensor([strength if strength_type == "attn_bias" else 1.0])) + # get the size of the mask image + mask_ref_size = keys.get("attention_mask_img_shape", (1, 1)) + n_ref = mask_ref_size[0] * mask_ref_size[1] + n_txt = txt.shape[1] + # grab the existing mask + mask = keys.get("attention_mask", None) + # create a default mask if it doesn't exist + if mask is None: + mask = torch.zeros((txt.shape[0], n_txt + n_ref, n_txt + n_ref), dtype=torch.float16) + # convert the mask dtype, because it might be boolean + # we want it to be interpreted as a bias + if mask.dtype == torch.bool: + # log(True) = log(1) = 0 + # log(False) = log(0) = -inf + mask = torch.log(mask.to(dtype=torch.float16)) + # now we make the mask bigger to add space for our new tokens + new_mask = torch.zeros((txt.shape[0], n_txt + n + n_ref, n_txt + n + n_ref), dtype=torch.float16) + # copy over the old mask, in quandrants + new_mask[:, :n_txt, :n_txt] = mask[:, :n_txt, :n_txt] + new_mask[:, :n_txt, n_txt+n:] = mask[:, :n_txt, n_txt:] + new_mask[:, n_txt+n:, :n_txt] = mask[:, n_txt:, :n_txt] + new_mask[:, n_txt+n:, n_txt+n:] = mask[:, n_txt:, n_txt:] + # now fill in the attention bias to our redux tokens + new_mask[:, :n_txt, n_txt:n_txt+n] = attn_bias + new_mask[:, n_txt+n:, n_txt:n_txt+n] = attn_bias + keys["attention_mask"] = new_mask.to(txt.device) + keys["attention_mask_img_shape"] = mask_ref_size + + c_out.append([torch.cat((txt, cond), dim=1), keys]) + + return (c_out,) + +class unCLIPConditioning: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.01}), + "noise_augmentation": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.01}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_adm" + + CATEGORY = "conditioning" + + def apply_adm(self, conditioning, clip_vision_output, strength, noise_augmentation): + if strength == 0: + return (conditioning, ) + + c = node_helpers.conditioning_set_values(conditioning, {"unclip_conditioning": [{"clip_vision_output": clip_vision_output, "strength": strength, "noise_augmentation": noise_augmentation}]}, append=True) + return (c, ) + +class GLIGENLoader: + @classmethod + def INPUT_TYPES(s): + return {"required": { "gligen_name": (folder_paths.get_filename_list("gligen"), )}} + + RETURN_TYPES = ("GLIGEN",) + FUNCTION = "load_gligen" + + CATEGORY = "loaders" + + def load_gligen(self, gligen_name): + gligen_path = folder_paths.get_full_path_or_raise("gligen", gligen_name) + gligen = comfy.sd.load_gligen(gligen_path) + return (gligen,) + +class GLIGENTextBoxApply: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning_to": ("CONDITIONING", ), + "clip": ("CLIP", ), + "gligen_textbox_model": ("GLIGEN", ), + "text": ("STRING", {"multiline": True, "dynamicPrompts": True}), + "width": ("INT", {"default": 64, "min": 8, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 64, "min": 8, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "append" + + CATEGORY = "conditioning/gligen" + + def append(self, conditioning_to, clip, gligen_textbox_model, text, width, height, x, y): + c = [] + cond, cond_pooled = clip.encode_from_tokens(clip.tokenize(text), return_pooled="unprojected") + for t in conditioning_to: + n = [t[0], t[1].copy()] + position_params = [(cond_pooled, height // 8, width // 8, y // 8, x // 8)] + prev = [] + if "gligen" in n[1]: + prev = n[1]['gligen'][2] + + n[1]['gligen'] = ("position", gligen_textbox_model, prev + position_params) + c.append(n) + return (c, ) + +class EmptyLatentImage: + def __init__(self): + self.device = comfy.model_management.intermediate_device() + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "width": ("INT", {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8, "tooltip": "The width of the latent images in pixels."}), + "height": ("INT", {"default": 512, "min": 16, "max": MAX_RESOLUTION, "step": 8, "tooltip": "The height of the latent images in pixels."}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096, "tooltip": "The number of latent images in the batch."}) + } + } + RETURN_TYPES = ("LATENT",) + OUTPUT_TOOLTIPS = ("The empty latent image batch.",) + FUNCTION = "generate" + + CATEGORY = "latent" + DESCRIPTION = "Create a new batch of empty latent images to be denoised via sampling." + + def generate(self, width, height, batch_size=1): + latent = torch.zeros([batch_size, 4, height // 8, width // 8], device=self.device) + return ({"samples":latent}, ) + + +class LatentFromBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "batch_index": ("INT", {"default": 0, "min": 0, "max": 63}), + "length": ("INT", {"default": 1, "min": 1, "max": 64}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "frombatch" + + CATEGORY = "latent/batch" + + def frombatch(self, samples, batch_index, length): + s = samples.copy() + s_in = samples["samples"] + batch_index = min(s_in.shape[0] - 1, batch_index) + length = min(s_in.shape[0] - batch_index, length) + s["samples"] = s_in[batch_index:batch_index + length].clone() + if "noise_mask" in samples: + masks = samples["noise_mask"] + if masks.shape[0] == 1: + s["noise_mask"] = masks.clone() + else: + if masks.shape[0] < s_in.shape[0]: + masks = masks.repeat(math.ceil(s_in.shape[0] / masks.shape[0]), 1, 1, 1)[:s_in.shape[0]] + s["noise_mask"] = masks[batch_index:batch_index + length].clone() + if "batch_index" not in s: + s["batch_index"] = [x for x in range(batch_index, batch_index+length)] + else: + s["batch_index"] = samples["batch_index"][batch_index:batch_index + length] + return (s,) + +class RepeatLatentBatch: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "amount": ("INT", {"default": 1, "min": 1, "max": 64}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "repeat" + + CATEGORY = "latent/batch" + + def repeat(self, samples, amount): + s = samples.copy() + s_in = samples["samples"] + + s["samples"] = s_in.repeat((amount,) + ((1,) * (s_in.ndim - 1))) + if "noise_mask" in samples and samples["noise_mask"].shape[0] > 1: + masks = samples["noise_mask"] + if masks.shape[0] < s_in.shape[0]: + masks = masks.repeat((math.ceil(s_in.shape[0] / masks.shape[0]),) + ((1,) * (masks.ndim - 1)))[:s_in.shape[0]] + s["noise_mask"] = samples["noise_mask"].repeat((amount,) + ((1,) * (samples["noise_mask"].ndim - 1))) + if "batch_index" in s: + offset = max(s["batch_index"]) - min(s["batch_index"]) + 1 + s["batch_index"] = s["batch_index"] + [x + (i * offset) for i in range(1, amount) for x in s["batch_index"]] + return (s,) + +class LatentUpscale: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "bislerp"] + crop_methods = ["disabled", "center"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "crop": (s.crop_methods,)}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "upscale" + + CATEGORY = "latent" + + def upscale(self, samples, upscale_method, width, height, crop): + if width == 0 and height == 0: + s = samples + else: + s = samples.copy() + + if width == 0: + height = max(64, height) + width = max(64, round(samples["samples"].shape[-1] * height / samples["samples"].shape[-2])) + elif height == 0: + width = max(64, width) + height = max(64, round(samples["samples"].shape[-2] * width / samples["samples"].shape[-1])) + else: + width = max(64, width) + height = max(64, height) + + s["samples"] = comfy.utils.common_upscale(samples["samples"], width // 8, height // 8, upscale_method, crop) + return (s,) + +class LatentUpscaleBy: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "bislerp"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), "upscale_method": (s.upscale_methods,), + "scale_by": ("FLOAT", {"default": 1.5, "min": 0.01, "max": 8.0, "step": 0.01}),}} + RETURN_TYPES = ("LATENT",) + FUNCTION = "upscale" + + CATEGORY = "latent" + + def upscale(self, samples, upscale_method, scale_by): + s = samples.copy() + width = round(samples["samples"].shape[-1] * scale_by) + height = round(samples["samples"].shape[-2] * scale_by) + s["samples"] = comfy.utils.common_upscale(samples["samples"], width, height, upscale_method, "disabled") + return (s,) + +class LatentRotate: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "rotation": (["none", "90 degrees", "180 degrees", "270 degrees"],), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "rotate" + + CATEGORY = "latent/transform" + + def rotate(self, samples, rotation): + s = samples.copy() + rotate_by = 0 + if rotation.startswith("90"): + rotate_by = 1 + elif rotation.startswith("180"): + rotate_by = 2 + elif rotation.startswith("270"): + rotate_by = 3 + + s["samples"] = torch.rot90(samples["samples"], k=rotate_by, dims=[3, 2]) + return (s,) + +class LatentFlip: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "flip_method": (["x-axis: vertically", "y-axis: horizontally"],), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "flip" + + CATEGORY = "latent/transform" + + def flip(self, samples, flip_method): + s = samples.copy() + if flip_method.startswith("x"): + s["samples"] = torch.flip(samples["samples"], dims=[2]) + elif flip_method.startswith("y"): + s["samples"] = torch.flip(samples["samples"], dims=[3]) + + return (s,) + +class LatentComposite: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples_to": ("LATENT",), + "samples_from": ("LATENT",), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "feather": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "composite" + + CATEGORY = "latent" + + def composite(self, samples_to, samples_from, x, y, composite_method="normal", feather=0): + x = x // 8 + y = y // 8 + feather = feather // 8 + samples_out = samples_to.copy() + s = samples_to["samples"].clone() + samples_to = samples_to["samples"] + samples_from = samples_from["samples"] + if feather == 0: + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] + else: + samples_from = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] + mask = torch.ones_like(samples_from) + for t in range(feather): + if y != 0: + mask[:,:,t:1+t,:] *= ((1.0/feather) * (t + 1)) + + if y + samples_from.shape[2] < samples_to.shape[2]: + mask[:,:,mask.shape[2] -1 -t: mask.shape[2]-t,:] *= ((1.0/feather) * (t + 1)) + if x != 0: + mask[:,:,:,t:1+t] *= ((1.0/feather) * (t + 1)) + if x + samples_from.shape[3] < samples_to.shape[3]: + mask[:,:,:,mask.shape[3]- 1 - t: mask.shape[3]- t] *= ((1.0/feather) * (t + 1)) + rev_mask = torch.ones_like(mask) - mask + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] = samples_from[:,:,:samples_to.shape[2] - y, :samples_to.shape[3] - x] * mask + s[:,:,y:y+samples_from.shape[2],x:x+samples_from.shape[3]] * rev_mask + samples_out["samples"] = s + return (samples_out,) + +class LatentBlend: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "samples1": ("LATENT",), + "samples2": ("LATENT",), + "blend_factor": ("FLOAT", { + "default": 0.5, + "min": 0, + "max": 1, + "step": 0.01 + }), + }} + + RETURN_TYPES = ("LATENT",) + FUNCTION = "blend" + + CATEGORY = "_for_testing" + + def blend(self, samples1, samples2, blend_factor:float, blend_mode: str="normal"): + + samples_out = samples1.copy() + samples1 = samples1["samples"] + samples2 = samples2["samples"] + + if samples1.shape != samples2.shape: + samples2.permute(0, 3, 1, 2) + samples2 = comfy.utils.common_upscale(samples2, samples1.shape[3], samples1.shape[2], 'bicubic', crop='center') + samples2.permute(0, 2, 3, 1) + + samples_blended = self.blend_mode(samples1, samples2, blend_mode) + samples_blended = samples1 * blend_factor + samples_blended * (1 - blend_factor) + samples_out["samples"] = samples_blended + return (samples_out,) + + def blend_mode(self, img1, img2, mode): + if mode == "normal": + return img2 + else: + raise ValueError(f"Unsupported blend mode: {mode}") + +class LatentCrop: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "width": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + "y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 8}), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "crop" + + CATEGORY = "latent/transform" + + def crop(self, samples, width, height, x, y): + s = samples.copy() + samples = samples['samples'] + x = x // 8 + y = y // 8 + + #enfonce minimum size of 64 + if x > (samples.shape[3] - 8): + x = samples.shape[3] - 8 + if y > (samples.shape[2] - 8): + y = samples.shape[2] - 8 + + new_height = height // 8 + new_width = width // 8 + to_x = new_width + x + to_y = new_height + y + s['samples'] = samples[:,:,y:to_y, x:to_x] + return (s,) + +class SetLatentNoiseMask: + @classmethod + def INPUT_TYPES(s): + return {"required": { "samples": ("LATENT",), + "mask": ("MASK",), + }} + RETURN_TYPES = ("LATENT",) + FUNCTION = "set_mask" + + CATEGORY = "latent/inpaint" + + def set_mask(self, samples, mask): + s = samples.copy() + s["noise_mask"] = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])) + return (s,) + +def common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False): + latent_image = latent["samples"] + latent_image = comfy.sample.fix_empty_latent_channels(model, latent_image) + + if disable_noise: + noise = torch.zeros(latent_image.size(), dtype=latent_image.dtype, layout=latent_image.layout, device="cpu") + else: + batch_inds = latent["batch_index"] if "batch_index" in latent else None + noise = comfy.sample.prepare_noise(latent_image, seed, batch_inds) + + noise_mask = None + if "noise_mask" in latent: + noise_mask = latent["noise_mask"] + + callback = latent_preview.prepare_callback(model, steps) + disable_pbar = not comfy.utils.PROGRESS_BAR_ENABLED + samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, + denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step, + force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) + out = latent.copy() + out["samples"] = samples + return (out, ) + +class KSampler: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL", {"tooltip": "The model used for denoising the input latent."}), + "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True, "tooltip": "The random seed used for creating the noise."}), + "steps": ("INT", {"default": 20, "min": 1, "max": 10000, "tooltip": "The number of steps used in the denoising process."}), + "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01, "tooltip": "The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality."}), + "sampler_name": (comfy.samplers.KSampler.SAMPLERS, {"tooltip": "The algorithm used when sampling, this can affect the quality, speed, and style of the generated output."}), + "scheduler": (comfy.samplers.KSampler.SCHEDULERS, {"tooltip": "The scheduler controls how noise is gradually removed to form the image."}), + "positive": ("CONDITIONING", {"tooltip": "The conditioning describing the attributes you want to include in the image."}), + "negative": ("CONDITIONING", {"tooltip": "The conditioning describing the attributes you want to exclude from the image."}), + "latent_image": ("LATENT", {"tooltip": "The latent image to denoise."}), + "denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01, "tooltip": "The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling."}), + } + } + + RETURN_TYPES = ("LATENT",) + OUTPUT_TOOLTIPS = ("The denoised latent.",) + FUNCTION = "sample" + + CATEGORY = "sampling" + DESCRIPTION = "Uses the provided model, positive and negative conditioning to denoise the latent image." + + def sample(self, model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0): + return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) + +class KSamplerAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": + {"model": ("MODEL",), + "add_noise": (["enable", "disable"], ), + "noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True}), + "steps": ("INT", {"default": 20, "min": 1, "max": 10000}), + "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}), + "sampler_name": (comfy.samplers.KSampler.SAMPLERS, ), + "scheduler": (comfy.samplers.KSampler.SCHEDULERS, ), + "positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "latent_image": ("LATENT", ), + "start_at_step": ("INT", {"default": 0, "min": 0, "max": 10000}), + "end_at_step": ("INT", {"default": 10000, "min": 0, "max": 10000}), + "return_with_leftover_noise": (["disable", "enable"], ), + } + } + + RETURN_TYPES = ("LATENT",) + FUNCTION = "sample" + + CATEGORY = "sampling" + + def sample(self, model, add_noise, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, start_at_step, end_at_step, return_with_leftover_noise, denoise=1.0): + force_full_denoise = True + if return_with_leftover_noise == "enable": + force_full_denoise = False + disable_noise = False + if add_noise == "disable": + disable_noise = True + return common_ksampler(model, noise_seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise, disable_noise=disable_noise, start_step=start_at_step, last_step=end_at_step, force_full_denoise=force_full_denoise) + +class SaveImage: + 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": { + "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."}) + }, + "hidden": { + "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO" + }, + } + + RETURN_TYPES = () + FUNCTION = "save_images" + + OUTPUT_NODE = True + + CATEGORY = "image" + DESCRIPTION = "Saves the input images to your ComfyUI output directory." + + def save_images(self, images, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None): + 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() + 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)) + file = f"{filename_with_batch_num}_{counter:05}_.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 + }) + counter += 1 + + return { "ui": { "images": results } } + +class PreviewImage(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 = 1 + + @classmethod + def INPUT_TYPES(s): + return {"required": + {"images": ("IMAGE", ), }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}, + } + +class LoadImage: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + files = folder_paths.filter_files_content_types(files, ["image"]) + return {"required": + {"image": (sorted(files), {"image_upload": True})}, + } + + CATEGORY = "image" + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "load_image" + def load_image(self, image): + image_path = folder_paths.get_annotated_filepath(image) + + img = node_helpers.pillow(Image.open, image_path) + + output_images = [] + output_masks = [] + w, h = None, None + + excluded_formats = ['MPO'] + + for i in ImageSequence.Iterator(img): + i = node_helpers.pillow(ImageOps.exif_transpose, i) + + if i.mode == 'I': + i = i.point(lambda i: i * (1 / 255)) + image = i.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 + + 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) + elif i.mode == 'P' and 'transparency' in i.info: + mask = np.array(i.convert('RGBA').getchannel('A')).astype(np.float32) / 255.0 + mask = 1. - torch.from_numpy(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] + + return (output_image, output_mask) + + @classmethod + def IS_CHANGED(s, image): + 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 + +class LoadImageMask: + _color_channels = ["alpha", "red", "green", "blue"] + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + return {"required": + {"image": (sorted(files), {"image_upload": True}), + "channel": (s._color_channels, ), } + } + + CATEGORY = "mask" + + RETURN_TYPES = ("MASK",) + FUNCTION = "load_image" + def load_image(self, image, channel): + image_path = folder_paths.get_annotated_filepath(image) + i = node_helpers.pillow(Image.open, image_path) + i = node_helpers.pillow(ImageOps.exif_transpose, i) + if i.getbands() != ("R", "G", "B", "A"): + if i.mode == 'I': + i = i.point(lambda i: i * (1 / 255)) + i = i.convert("RGBA") + mask = None + c = channel[0].upper() + if c in i.getbands(): + mask = np.array(i.getchannel(c)).astype(np.float32) / 255.0 + mask = torch.from_numpy(mask) + if c == 'A': + mask = 1. - mask + else: + mask = torch.zeros((64,64), dtype=torch.float32, device="cpu") + return (mask.unsqueeze(0),) + + @classmethod + def IS_CHANGED(s, image, channel): + 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 + + +class LoadImageOutput(LoadImage): + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("COMBO", { + "image_upload": True, + "image_folder": "output", + "remote": { + "route": "/internal/files/output", + "refresh_button": True, + "control_after_refresh": "first", + }, + }), + } + } + + DESCRIPTION = "Load an image from the output folder. When the refresh button is clicked, the node will update the image list and automatically select the first image, allowing for easy iteration." + EXPERIMENTAL = True + FUNCTION = "load_image" + + +class ImageScale: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + crop_methods = ["disabled", "center"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,), + "width": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "height": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + "crop": (s.crop_methods,)}} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + + CATEGORY = "image/upscaling" + + def upscale(self, image, upscale_method, width, height, crop): + if width == 0 and height == 0: + s = image + else: + samples = image.movedim(-1,1) + + if width == 0: + width = max(1, round(samples.shape[3] * height / samples.shape[2])) + elif height == 0: + height = max(1, round(samples.shape[2] * width / samples.shape[3])) + + s = comfy.utils.common_upscale(samples, width, height, upscale_method, crop) + s = s.movedim(1,-1) + return (s,) + +class ImageScaleBy: + upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"] + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",), "upscale_method": (s.upscale_methods,), + "scale_by": ("FLOAT", {"default": 1.0, "min": 0.01, "max": 8.0, "step": 0.01}),}} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "upscale" + + CATEGORY = "image/upscaling" + + def upscale(self, image, upscale_method, scale_by): + samples = image.movedim(-1,1) + width = round(samples.shape[3] * scale_by) + height = round(samples.shape[2] * scale_by) + s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled") + s = s.movedim(1,-1) + return (s,) + +class ImageInvert: + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image": ("IMAGE",)}} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "invert" + + CATEGORY = "image" + + def invert(self, image): + s = 1.0 - image + return (s,) + +class ImageBatch: + + @classmethod + def INPUT_TYPES(s): + return {"required": { "image1": ("IMAGE",), "image2": ("IMAGE",)}} + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "batch" + + CATEGORY = "image" + + def batch(self, image1, image2): + if image1.shape[-1] != image2.shape[-1]: + if image1.shape[-1] > image2.shape[-1]: + image2 = torch.nn.functional.pad(image2, (0,1), mode='constant', value=1.0) + else: + image1 = torch.nn.functional.pad(image1, (0,1), mode='constant', value=1.0) + if image1.shape[1:] != image2.shape[1:]: + image2 = comfy.utils.common_upscale(image2.movedim(-1,1), image1.shape[2], image1.shape[1], "bilinear", "center").movedim(1,-1) + s = torch.cat((image1, image2), dim=0) + return (s,) + +class EmptyImage: + def __init__(self, device="cpu"): + self.device = device + + @classmethod + def INPUT_TYPES(s): + return {"required": { "width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}), + "height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096}), + "color": ("INT", {"default": 0, "min": 0, "max": 0xFFFFFF, "step": 1, "display": "color"}), + }} + RETURN_TYPES = ("IMAGE",) + FUNCTION = "generate" + + CATEGORY = "image" + + def generate(self, width, height, batch_size=1, color=0): + r = torch.full([batch_size, height, width, 1], ((color >> 16) & 0xFF) / 0xFF) + g = torch.full([batch_size, height, width, 1], ((color >> 8) & 0xFF) / 0xFF) + b = torch.full([batch_size, height, width, 1], ((color) & 0xFF) / 0xFF) + return (torch.cat((r, g, b), dim=-1), ) + +class ImagePadForOutpaint: + + @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": 40, "min": 0, "max": MAX_RESOLUTION, "step": 1}), + } + } + + RETURN_TYPES = ("IMAGE", "MASK") + FUNCTION = "expand_image" + + CATEGORY = "image" + + def expand_image(self, image, left, top, right, bottom, feathering): + d1, d2, d3, d4 = image.size() + + new_image = torch.ones( + (d1, d2 + top + bottom, d3 + left + right, d4), + dtype=torch.float32, + ) * 0.5 + + new_image[:, top:top + d2, left:left + d3, :] = image + + mask = torch.ones( + (d2 + top + bottom, d3 + left + right), + dtype=torch.float32, + ) + + t = torch.zeros( + (d2, d3), + dtype=torch.float32 + ) + + if feathering > 0 and feathering * 2 < d2 and feathering * 2 < d3: + + for i in range(d2): + for j in range(d3): + dt = i if top != 0 else d2 + db = d2 - i if bottom != 0 else d2 + + dl = j if left != 0 else d3 + dr = d3 - j if right != 0 else d3 + + d = min(dt, db, dl, dr) + + if d >= feathering: + continue + + v = (feathering - d) / feathering + + t[i, j] = v * v + + mask[top:top + d2, left:left + d3] = t + + return (new_image, mask.unsqueeze(0)) + + +NODE_CLASS_MAPPINGS = { + "KSampler": KSampler, + "CheckpointLoaderSimple": CheckpointLoaderSimple, + "CLIPTextEncode": CLIPTextEncode, + "CLIPSetLastLayer": CLIPSetLastLayer, + "VAEDecode": VAEDecode, + "VAEEncode": VAEEncode, + "VAEEncodeForInpaint": VAEEncodeForInpaint, + "VAELoader": VAELoader, + "EmptyLatentImage": EmptyLatentImage, + "LatentUpscale": LatentUpscale, + "LatentUpscaleBy": LatentUpscaleBy, + "LatentFromBatch": LatentFromBatch, + "RepeatLatentBatch": RepeatLatentBatch, + "SaveImage": SaveImage, + "PreviewImage": PreviewImage, + "LoadImage": LoadImage, + "LoadImageMask": LoadImageMask, + "LoadImageOutput": LoadImageOutput, + "ImageScale": ImageScale, + "ImageScaleBy": ImageScaleBy, + "ImageInvert": ImageInvert, + "ImageBatch": ImageBatch, + "ImagePadForOutpaint": ImagePadForOutpaint, + "EmptyImage": EmptyImage, + "ConditioningAverage": ConditioningAverage , + "ConditioningCombine": ConditioningCombine, + "ConditioningConcat": ConditioningConcat, + "ConditioningSetArea": ConditioningSetArea, + "ConditioningSetAreaPercentage": ConditioningSetAreaPercentage, + "ConditioningSetAreaStrength": ConditioningSetAreaStrength, + "ConditioningSetMask": ConditioningSetMask, + "KSamplerAdvanced": KSamplerAdvanced, + "SetLatentNoiseMask": SetLatentNoiseMask, + "LatentComposite": LatentComposite, + "LatentBlend": LatentBlend, + "LatentRotate": LatentRotate, + "LatentFlip": LatentFlip, + "LatentCrop": LatentCrop, + "LoraLoader": LoraLoader, + "CLIPLoader": CLIPLoader, + "UNETLoader": UNETLoader, + "DualCLIPLoader": DualCLIPLoader, + "CLIPVisionEncode": CLIPVisionEncode, + "StyleModelApply": StyleModelApply, + "unCLIPConditioning": unCLIPConditioning, + "ControlNetApply": ControlNetApply, + "ControlNetApplyAdvanced": ControlNetApplyAdvanced, + "ControlNetLoader": ControlNetLoader, + "DiffControlNetLoader": DiffControlNetLoader, + "StyleModelLoader": StyleModelLoader, + "CLIPVisionLoader": CLIPVisionLoader, + "VAEDecodeTiled": VAEDecodeTiled, + "VAEEncodeTiled": VAEEncodeTiled, + "unCLIPCheckpointLoader": unCLIPCheckpointLoader, + "GLIGENLoader": GLIGENLoader, + "GLIGENTextBoxApply": GLIGENTextBoxApply, + "InpaintModelConditioning": InpaintModelConditioning, + + "CheckpointLoader": CheckpointLoader, + "DiffusersLoader": DiffusersLoader, + + "LoadLatent": LoadLatent, + "SaveLatent": SaveLatent, + + "ConditioningZeroOut": ConditioningZeroOut, + "ConditioningSetTimestepRange": ConditioningSetTimestepRange, + "LoraLoaderModelOnly": LoraLoaderModelOnly, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + # Sampling + "KSampler": "KSampler", + "KSamplerAdvanced": "KSampler (Advanced)", + # Loaders + "CheckpointLoader": "Load Checkpoint With Config (DEPRECATED)", + "CheckpointLoaderSimple": "Load Checkpoint", + "VAELoader": "Load VAE", + "LoraLoader": "Load LoRA", + "CLIPLoader": "Load CLIP", + "ControlNetLoader": "Load ControlNet Model", + "DiffControlNetLoader": "Load ControlNet Model (diff)", + "StyleModelLoader": "Load Style Model", + "CLIPVisionLoader": "Load CLIP Vision", + "UNETLoader": "Load Diffusion Model", + # Conditioning + "CLIPVisionEncode": "CLIP Vision Encode", + "StyleModelApply": "Apply Style Model", + "CLIPTextEncode": "CLIP Text Encode (Prompt)", + "CLIPSetLastLayer": "CLIP Set Last Layer", + "ConditioningCombine": "Conditioning (Combine)", + "ConditioningAverage ": "Conditioning (Average)", + "ConditioningConcat": "Conditioning (Concat)", + "ConditioningSetArea": "Conditioning (Set Area)", + "ConditioningSetAreaPercentage": "Conditioning (Set Area with Percentage)", + "ConditioningSetMask": "Conditioning (Set Mask)", + "ControlNetApply": "Apply ControlNet (OLD)", + "ControlNetApplyAdvanced": "Apply ControlNet", + # Latent + "VAEEncodeForInpaint": "VAE Encode (for Inpainting)", + "SetLatentNoiseMask": "Set Latent Noise Mask", + "VAEDecode": "VAE Decode", + "VAEEncode": "VAE Encode", + "LatentRotate": "Rotate Latent", + "LatentFlip": "Flip Latent", + "LatentCrop": "Crop Latent", + "EmptyLatentImage": "Empty Latent Image", + "LatentUpscale": "Upscale Latent", + "LatentUpscaleBy": "Upscale Latent By", + "LatentComposite": "Latent Composite", + "LatentBlend": "Latent Blend", + "LatentFromBatch" : "Latent From Batch", + "RepeatLatentBatch": "Repeat Latent Batch", + # Image + "SaveImage": "Save Image", + "PreviewImage": "Preview Image", + "LoadImage": "Load Image", + "LoadImageMask": "Load Image (as Mask)", + "LoadImageOutput": "Load Image (from Outputs)", + "ImageScale": "Upscale Image", + "ImageScaleBy": "Upscale Image By", + "ImageInvert": "Invert Image", + "ImagePadForOutpaint": "Pad Image for Outpainting", + "ImageBatch": "Batch Images", + "ImageCrop": "Image Crop", + "ImageStitch": "Image Stitch", + "ImageBlend": "Image Blend", + "ImageBlur": "Image Blur", + "ImageQuantize": "Image Quantize", + "ImageSharpen": "Image Sharpen", + "ImageScaleToTotalPixels": "Scale Image to Total Pixels", + "GetImageSize": "Get Image Size", + # _for_testing + "VAEDecodeTiled": "VAE Decode (Tiled)", + "VAEEncodeTiled": "VAE Encode (Tiled)", +} + +EXTENSION_WEB_DIRS = {} + +# Dictionary of successfully loaded module names and associated directories. +LOADED_MODULE_DIRS = {} + + +def get_module_name(module_path: str) -> str: + """ + Returns the module name based on the given module path. + Examples: + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node.py") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__.py") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node/__init__/") -> "my_custom_node" + get_module_name("C:/Users/username/ComfyUI/custom_nodes/my_custom_node.disabled") -> "custom_nodes + Args: + module_path (str): The path of the module. + Returns: + str: The module name. + """ + base_path = os.path.basename(module_path) + if os.path.isfile(module_path): + base_path = os.path.splitext(base_path)[0] + return base_path + + +async def load_custom_node(module_path: str, ignore=set(), module_parent="custom_nodes") -> bool: + module_name = get_module_name(module_path) + if os.path.isfile(module_path): + sp = os.path.splitext(module_path) + module_name = sp[0] + sys_module_name = module_name + elif os.path.isdir(module_path): + sys_module_name = module_path.replace(".", "_x_") + + try: + logging.debug("Trying to load custom node {}".format(module_path)) + if os.path.isfile(module_path): + module_spec = importlib.util.spec_from_file_location(sys_module_name, module_path) + module_dir = os.path.split(module_path)[0] + else: + module_spec = importlib.util.spec_from_file_location(sys_module_name, os.path.join(module_path, "__init__.py")) + module_dir = module_path + + module = importlib.util.module_from_spec(module_spec) + sys.modules[sys_module_name] = module + module_spec.loader.exec_module(module) + + LOADED_MODULE_DIRS[module_name] = os.path.abspath(module_dir) + + try: + from comfy_config import config_parser + + project_config = config_parser.extract_node_configuration(module_path) + + web_dir_name = project_config.tool_comfy.web + + if web_dir_name: + web_dir_path = os.path.join(module_path, web_dir_name) + + if os.path.isdir(web_dir_path): + project_name = project_config.project.name + + EXTENSION_WEB_DIRS[project_name] = web_dir_path + + logging.info("Automatically register web folder {} for {}".format(web_dir_name, project_name)) + except Exception as e: + logging.warning(f"Unable to parse pyproject.toml due to lack dependency pydantic-settings, please run 'pip install -r requirements.txt': {e}") + + if hasattr(module, "WEB_DIRECTORY") and getattr(module, "WEB_DIRECTORY") is not None: + web_dir = os.path.abspath(os.path.join(module_dir, getattr(module, "WEB_DIRECTORY"))) + if os.path.isdir(web_dir): + EXTENSION_WEB_DIRS[module_name] = web_dir + + # V1 node definition + if hasattr(module, "NODE_CLASS_MAPPINGS") and getattr(module, "NODE_CLASS_MAPPINGS") is not None: + for name, node_cls in module.NODE_CLASS_MAPPINGS.items(): + if name not in ignore: + NODE_CLASS_MAPPINGS[name] = node_cls + node_cls.RELATIVE_PYTHON_MODULE = "{}.{}".format(module_parent, get_module_name(module_path)) + if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS") and getattr(module, "NODE_DISPLAY_NAME_MAPPINGS") is not None: + NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS) + return True + # V3 Extension Definition + elif hasattr(module, "comfy_entrypoint"): + entrypoint = getattr(module, "comfy_entrypoint") + if not callable(entrypoint): + logging.warning(f"comfy_entrypoint in {module_path} is not callable, skipping.") + return False + try: + if inspect.iscoroutinefunction(entrypoint): + extension = await entrypoint() + else: + extension = entrypoint() + if not isinstance(extension, ComfyExtension): + logging.warning(f"comfy_entrypoint in {module_path} did not return a ComfyExtension, skipping.") + return False + node_list = await extension.get_node_list() + if not isinstance(node_list, list): + logging.warning(f"comfy_entrypoint in {module_path} did not return a list of nodes, skipping.") + return False + for node_cls in node_list: + node_cls: io.ComfyNode + schema = node_cls.GET_SCHEMA() + if schema.node_id not in ignore: + NODE_CLASS_MAPPINGS[schema.node_id] = node_cls + node_cls.RELATIVE_PYTHON_MODULE = "{}.{}".format(module_parent, get_module_name(module_path)) + if schema.display_name is not None: + NODE_DISPLAY_NAME_MAPPINGS[schema.node_id] = schema.display_name + return True + except Exception as e: + logging.warning(f"Error while calling comfy_entrypoint in {module_path}: {e}") + return False + else: + logging.warning(f"Skip {module_path} module for custom nodes due to the lack of NODE_CLASS_MAPPINGS or NODES_LIST (need one).") + return False + except Exception as e: + logging.warning(traceback.format_exc()) + logging.warning(f"Cannot import {module_path} module for custom nodes: {e}") + return False + +async def init_external_custom_nodes(): + """ + Initializes the external custom nodes. + + This function loads custom nodes from the specified folder paths and imports them into the application. + It measures the import times for each custom node and logs the results. + + Returns: + None + """ + base_node_names = set(NODE_CLASS_MAPPINGS.keys()) + node_paths = folder_paths.get_folder_paths("custom_nodes") + node_import_times = [] + for custom_node_path in node_paths: + possible_modules = os.listdir(os.path.realpath(custom_node_path)) + if "__pycache__" in possible_modules: + possible_modules.remove("__pycache__") + + for possible_module in possible_modules: + module_path = os.path.join(custom_node_path, possible_module) + if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue + if module_path.endswith(".disabled"): continue + if args.disable_all_custom_nodes and possible_module not in args.whitelist_custom_nodes: + logging.info(f"Skipping {possible_module} due to disable_all_custom_nodes and whitelist_custom_nodes") + continue + + if args.enable_manager: + if comfyui_manager.should_be_disabled(module_path): + logging.info(f"Blocked by policy: {module_path}") + continue + + time_before = time.perf_counter() + success = await load_custom_node(module_path, base_node_names, module_parent="custom_nodes") + node_import_times.append((time.perf_counter() - time_before, module_path, success)) + + if len(node_import_times) > 0: + logging.info("\nImport times for custom nodes:") + for n in sorted(node_import_times): + if n[2]: + import_message = "" + else: + import_message = " (IMPORT FAILED)" + logging.info("{:6.1f} seconds{}: {}".format(n[0], import_message, n[1])) + logging.info("") + +async def init_builtin_extra_nodes(): + """ + Initializes the built-in extra nodes in ComfyUI. + + This function loads the extra node files located in the "comfy_extras" directory and imports them into ComfyUI. + If any of the extra node files fail to import, a warning message is logged. + + Returns: + None + """ + extras_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_extras") + extras_files = [ + "nodes_latent.py", + "nodes_hypernetwork.py", + "nodes_upscale_model.py", + "nodes_post_processing.py", + "nodes_mask.py", + "nodes_compositing.py", + "nodes_rebatch.py", + "nodes_model_merging.py", + "nodes_tomesd.py", + "nodes_clip_sdxl.py", + "nodes_canny.py", + "nodes_freelunch.py", + "nodes_custom_sampler.py", + "nodes_hypertile.py", + "nodes_model_advanced.py", + "nodes_model_downscale.py", + "nodes_images.py", + "nodes_video_model.py", + "nodes_train.py", + "nodes_dataset.py", + "nodes_sag.py", + "nodes_perpneg.py", + "nodes_stable3d.py", + "nodes_sdupscale.py", + "nodes_photomaker.py", + "nodes_pixart.py", + "nodes_cond.py", + "nodes_morphology.py", + "nodes_stable_cascade.py", + "nodes_differential_diffusion.py", + "nodes_ip2p.py", + "nodes_model_merging_model_specific.py", + "nodes_pag.py", + "nodes_align_your_steps.py", + "nodes_attention_multiply.py", + "nodes_advanced_samplers.py", + "nodes_webcam.py", + "nodes_audio.py", + "nodes_sd3.py", + "nodes_gits.py", + "nodes_controlnet.py", + "nodes_hunyuan.py", + "nodes_eps.py", + "nodes_flux.py", + "nodes_lora_extract.py", + "nodes_torch_compile.py", + "nodes_mochi.py", + "nodes_slg.py", + "nodes_mahiro.py", + "nodes_lt.py", + "nodes_hooks.py", + "nodes_load_3d.py", + "nodes_cosmos.py", + "nodes_video.py", + "nodes_lumina2.py", + "nodes_wan.py", + "nodes_lotus.py", + "nodes_hunyuan3d.py", + "nodes_primitive.py", + "nodes_cfg.py", + "nodes_optimalsteps.py", + "nodes_hidream.py", + "nodes_fresca.py", + "nodes_apg.py", + "nodes_preview_any.py", + "nodes_ace.py", + "nodes_string.py", + "nodes_camera_trajectory.py", + "nodes_edit_model.py", + "nodes_tcfg.py", + "nodes_context_windows.py", + "nodes_qwen.py", + "nodes_chroma_radiance.py", + "nodes_model_patch.py", + "nodes_easycache.py", + "nodes_audio_encoder.py", + "nodes_rope.py", + "nodes_logic.py", + "nodes_nop.py", + "nodes_kandinsky5.py", + "nodes_wanmove.py", + ] + + import_failed = [] + for node_file in extras_files: + if not await load_custom_node(os.path.join(extras_dir, node_file), module_parent="comfy_extras"): + import_failed.append(node_file) + + return import_failed + + +async def init_builtin_api_nodes(): + api_nodes_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "comfy_api_nodes") + api_nodes_files = [ + "nodes_ideogram.py", + "nodes_openai.py", + "nodes_minimax.py", + "nodes_veo2.py", + "nodes_kling.py", + "nodes_bfl.py", + "nodes_bytedance.py", + "nodes_ltxv.py", + "nodes_luma.py", + "nodes_recraft.py", + "nodes_pixverse.py", + "nodes_stability.py", + "nodes_runway.py", + "nodes_sora.py", + "nodes_topaz.py", + "nodes_tripo.py", + "nodes_moonvalley.py", + "nodes_rodin.py", + "nodes_gemini.py", + "nodes_vidu.py", + "nodes_wan.py", + ] + + if not await load_custom_node(os.path.join(api_nodes_dir, "canary.py"), module_parent="comfy_api_nodes"): + return api_nodes_files + + import_failed = [] + for node_file in api_nodes_files: + if not await load_custom_node(os.path.join(api_nodes_dir, node_file), module_parent="comfy_api_nodes"): + import_failed.append(node_file) + + return import_failed + +async def init_public_apis(): + register_versions([ + ComfyAPIWithVersion( + version=getattr(v, "VERSION"), + api_class=v + ) for v in supported_versions + ]) + +async def init_extra_nodes(init_custom_nodes=True, init_api_nodes=True): + await init_public_apis() + + import_failed = await init_builtin_extra_nodes() + + import_failed_api = [] + if init_api_nodes: + import_failed_api = await init_builtin_api_nodes() + + if init_custom_nodes: + await init_external_custom_nodes() + else: + logging.info("Skipping loading of custom nodes") + + if len(import_failed_api) > 0: + logging.warning("WARNING: some comfy_api_nodes/ nodes did not import correctly. This may be because they are missing some dependencies.\n") + for node in import_failed_api: + logging.warning("IMPORT FAILED: {}".format(node)) + logging.warning("\nThis issue might be caused by new missing dependencies added the last time you updated ComfyUI.") + if args.windows_standalone_build: + logging.warning("Please run the update script: update/update_comfyui.bat") + else: + logging.warning("Please do a: pip install -r requirements.txt") + logging.warning("") + + if len(import_failed) > 0: + logging.warning("WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.\n") + for node in import_failed: + logging.warning("IMPORT FAILED: {}".format(node)) + logging.warning("\nThis issue might be caused by new missing dependencies added the last time you updated ComfyUI.") + if args.windows_standalone_build: + logging.warning("Please run the update script: update/update_comfyui.bat") + else: + logging.warning("Please do a: pip install -r requirements.txt") + logging.warning("") + + return import_failed diff --git a/docs/hel-892/storyboard-reference/easy-package-index.json b/docs/hel-892/storyboard-reference/easy-package-index.json new file mode 100644 index 00000000..6720bff7 --- /dev/null +++ b/docs/hel-892/storyboard-reference/easy-package-index.json @@ -0,0 +1,205 @@ +{ + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "sha256": "75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "members": [ + ".github/FUNDING.yml", + ".github/workflows/publish.yml", + ".gitignore", + ".gitmodules", + "ComfyUI-Easy-Use-Frontend/", + "LICENSE", + "README.ZH_CN.md", + "README.md", + "__init__.py", + "install.bat", + "install.sh", + "locales/en/main.json", + "locales/en/nodeDefs.json", + "locales/en/settings.json", + "locales/fr/main.json", + "locales/fr/settings.json", + "locales/ja/main.json", + "locales/ja/settings.json", + "locales/ko/main.json", + "locales/ko/settings.json", + "locales/ru/main.json", + "locales/ru/settings.json", + "locales/zh/main.json", + "locales/zh/nodeDefs.json", + "locales/zh/settings.json", + "prestartup_script.py", + "py/__init__.py", + "py/config.py", + "py/libs/add_resources.py", + "py/libs/adv_encode.py", + "py/libs/api/bizyair.py", + "py/libs/api/fluxai.py", + "py/libs/api/stability.py", + "py/libs/cache.py", + "py/libs/chooser.py", + "py/libs/colorfix.py", + "py/libs/conditioning.py", + "py/libs/controlnet.py", + "py/libs/dynthres_core.py", + "py/libs/easing.py", + "py/libs/gradual_latent_hires_fix.py", + "py/libs/image.py", + "py/libs/lllite.py", + "py/libs/loader.py", + "py/libs/log.py", + "py/libs/messages.py", + "py/libs/model.py", + "py/libs/sampler.py", + "py/libs/styleAlign.py", + "py/libs/translate.py", + "py/libs/utils.py", + "py/libs/wildcards.py", + "py/libs/xyplot.py", + "py/modules/ben/model.py", + "py/modules/bitsandbytes_NF4/__init__.py", + "py/modules/briaai/__init__.py", + "py/modules/briaai/rembg.py", + "py/modules/brushnet/__init__.py", + "py/modules/brushnet/config/brushnet.json", + "py/modules/brushnet/config/brushnet_xl.json", + "py/modules/brushnet/config/powerpaint.json", + "py/modules/brushnet/model.py", + "py/modules/brushnet/model_patch.py", + "py/modules/brushnet/powerpaint_utils.py", + "py/modules/brushnet/unet_2d_blocks.py", + "py/modules/brushnet/unet_2d_condition.py", + "py/modules/dit/__init__.py", + "py/modules/dit/config.py", + "py/modules/dit/pixArt/LICENSE-Pixart", + "py/modules/dit/pixArt/__init__.py", + "py/modules/dit/pixArt/config.py", + "py/modules/dit/pixArt/diffusers_convert.py", + "py/modules/dit/pixArt/loader.py", + "py/modules/dit/pixArt/models/PixArt.py", + "py/modules/dit/pixArt/models/PixArtMS.py", + "py/modules/dit/pixArt/models/PixArt_blocks.py", + "py/modules/dit/pixArt/models/__init__.py", + "py/modules/dit/pixArt/models/pixart_controlnet.py", + "py/modules/dit/pixArt/models/utils.py", + "py/modules/dit/utils.py", + "py/modules/fooocus/__init__.py", + "py/modules/human_parsing/__init__.py", + "py/modules/human_parsing/parsing_api.py", + "py/modules/human_parsing/run_parsing.py", + "py/modules/human_parsing/simple_extractor_dataset.py", + "py/modules/human_parsing/transforms.py", + "py/modules/ic_light/__init__.py", + "py/modules/ipadapter/__init__.py", + "py/modules/ipadapter/attention_processor.py", + "py/modules/ipadapter/flux/__init__.py", + "py/modules/ipadapter/flux/layers.py", + "py/modules/ipadapter/flux/math.py", + "py/modules/ipadapter/sd3/__init__.py", + "py/modules/ipadapter/sd3/joinblock.py", + "py/modules/ipadapter/sd3/resampler.py", + "py/modules/ipadapter/utils.py", + "py/modules/kolors/__init__.py", + "py/modules/kolors/chatglm/__init__.py", + "py/modules/kolors/chatglm/config_chatglm.json", + "py/modules/kolors/chatglm/configuration_chatglm.py", + "py/modules/kolors/chatglm/modeling_chatglm.py", + "py/modules/kolors/chatglm/quantization.py", + "py/modules/kolors/chatglm/tokenization_chatglm.py", + "py/modules/kolors/chatglm/tokenizer/tokenizer.model", + "py/modules/kolors/chatglm/tokenizer/tokenizer_config.json", + "py/modules/kolors/chatglm/tokenizer/vocab.txt", + "py/modules/kolors/clip_vision_config_vitl_336.json", + "py/modules/kolors/loader.py", + "py/modules/kolors/model_patch.py", + "py/modules/kolors/text_encode.py", + "py/modules/layer_diffuse/__init__.py", + "py/modules/layer_diffuse/attension_sharing.py", + "py/modules/layer_diffuse/model.py", + "py/nodes/adapter.py", + "py/nodes/api.py", + "py/nodes/deprecated.py", + "py/nodes/fix.py", + "py/nodes/image.py", + "py/nodes/inpaint.py", + "py/nodes/loaders.py", + "py/nodes/logic.py", + "py/nodes/pipe.py", + "py/nodes/preSampling.py", + "py/nodes/prompt.py", + "py/nodes/samplers.py", + "py/nodes/seed.py", + "py/nodes/util.py", + "py/nodes/xyplot.py", + "py/routes.py", + "py/server.py", + "pyproject.toml", + "repair_dependency_list.txt", + "requirements.txt", + "resources/OpenSans-Medium.ttf", + "resources/fooocus_styles.json", + "resources/mmb-preset.custom.txt.example", + "resources/mmb-preset.txt", + "resources/portrait_prompt.json", + "tools/combine_autocomplete.py", + "tools/convert_locale_format.py", + "web_version/v1/css/account.css", + "web_version/v1/css/chooser.css", + "web_version/v1/css/contextmenu.css", + "web_version/v1/css/dropdown.css", + "web_version/v1/css/easy.css", + "web_version/v1/css/groupmap.css", + "web_version/v1/css/index.css", + "web_version/v1/css/modelinfo.css", + "web_version/v1/css/selector.css", + "web_version/v1/css/sliderControl.css", + "web_version/v1/css/theme.css", + "web_version/v1/css/toast.css", + "web_version/v1/css/toolbar.css", + "web_version/v1/js/bookmark.js", + "web_version/v1/js/common/dropdown.js", + "web_version/v1/js/common/i18n.js", + "web_version/v1/js/common/icon.js", + "web_version/v1/js/common/model.js", + "web_version/v1/js/common/toast.js", + "web_version/v1/js/common/utils.js", + "web_version/v1/js/easy/easy.js", + "web_version/v1/js/easy/easyAccount.js", + "web_version/v1/js/easy/easyContextMenu.js", + "web_version/v1/js/easy/easyDynamicWidgets.js", + "web_version/v1/js/easy/easyExtraMenu.js", + "web_version/v1/js/easy/easyInterface.js", + "web_version/v1/js/easy/easyQuick.js", + "web_version/v1/js/easy/easySaveImage.js", + "web_version/v1/js/easy/easySeg.js", + "web_version/v1/js/easy/easySelector.js", + "web_version/v1/js/easy/easySliderControl.js", + "web_version/v1/js/easy/easySuggestion.js", + "web_version/v1/js/easy/easyWidgets.js", + "web_version/v1/js/easy/easyXYPlot.js", + "web_version/v1/js/getset.js", + "web_version/v1/js/image.js", + "web_version/v1/js/image_chooser/chooser.js", + "web_version/v1/js/image_chooser/messaging.js", + "web_version/v1/js/image_chooser/preview.js", + "web_version/v1/js/image_chooser/prompt.js", + "web_version/v1/js/image_chooser/state.js", + "web_version/v1/js/poseEditor.js", + "web_version/v1/js/seed.js", + "web_version/v1/lib/fabric.js", + "web_version/v2/assets/extensions-D7E6yQLT.js", + "web_version/v2/assets/lodash-CZi7izHi.js", + "web_version/v2/assets/primeuix-DTi4O4TO.js", + "web_version/v2/assets/primevue-CkFdRR_N.js", + "web_version/v2/assets/vendor-BWlTOcRr.js", + "web_version/v2/assets/vue-DAoaJb2i.js", + "web_version/v2/assets/vueuse-CqzKat4r.js", + "web_version/v2/easyuse.js" + ], + "selected": [ + "LICENSE", + "__init__.py", + "py/__init__.py", + "py/nodes/logic.py", + "pyproject.toml" + ] +} diff --git a/docs/hel-892/storyboard-reference/easy__LICENSE b/docs/hel-892/storyboard-reference/easy__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/storyboard-reference/easy__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/storyboard-reference/easy____init__.py b/docs/hel-892/storyboard-reference/easy____init__.py new file mode 100644 index 00000000..cf50941c --- /dev/null +++ b/docs/hel-892/storyboard-reference/easy____init__.py @@ -0,0 +1,95 @@ +__version__ = "1.3.4" + +import yaml +import json +import os +import folder_paths +import importlib + +cwd_path = os.path.dirname(os.path.realpath(__file__)) +comfy_path = folder_paths.base_path + +NODE_CLASS_MAPPINGS = {} +NODE_DISPLAY_NAME_MAPPINGS = {} + +importlib.import_module('.py.routes', __name__) +importlib.import_module('.py.server', __name__) +nodes_list = ["util", "seed", "prompt", "loaders", "adapter", "inpaint", "preSampling", "samplers", "fix", "pipe", "xyplot", "image", "logic", "api", "deprecated"] +for module_name in nodes_list: + imported_module = importlib.import_module(".py.nodes.{}".format(module_name), __name__) + NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS} + NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS} + +#Wildcards +from .py.libs.wildcards import read_wildcard_dict +wildcards_path = os.path.join(os.path.dirname(__file__), "wildcards") +if not os.path.exists(wildcards_path): + os.mkdir(wildcards_path) + +# Add custom wildcards example +example_path = os.path.join(wildcards_path, "example.txt") +if not os.path.exists(example_path): + with open(example_path, 'w') as f: + text = "blue\nred\nyellow\ngreen\nbrown\npink\npurple\norange\nblack\nwhite" + f.write(text) +read_wildcard_dict(wildcards_path) + +#Styles +styles_path = os.path.join(os.path.dirname(__file__), "styles") +samples_path = os.path.join(os.path.dirname(__file__), "styles", "samples") +if os.path.exists(styles_path): + if not os.path.exists(samples_path): + os.mkdir(samples_path) +else: + os.mkdir(styles_path) + os.mkdir(samples_path) + +# Add custom styles example +example_path = os.path.join(styles_path, "your_styles.json.example") +if not os.path.exists(example_path): + import json + data = [ + { + "name": "Example Style", + "name_cn": "示例样式", + "prompt": "(masterpiece), (best quality), (ultra-detailed), {prompt} ", + "negative_prompt": "text, watermark, logo" + }, + ] + # Write to file + with open(example_path, 'w', encoding='utf-8') as f: + json.dump(data, f, indent=4, ensure_ascii=False) + + +web_default_version = 'v2' +# web directory +config_path = os.path.join(cwd_path, "config.yaml") +if os.path.isfile(config_path): + with open(config_path, 'r') as f: + data = yaml.load(f, Loader=yaml.FullLoader) + if data and "WEB_VERSION" in data: + directory = f"web_version/{data['WEB_VERSION']}" + with open(config_path, 'w') as f: + yaml.dump(data, f) + elif web_default_version != 'v1': + if not data: + data = {'WEB_VERSION': web_default_version} + elif 'WEB_VERSION' not in data: + data = {**data, 'WEB_VERSION': web_default_version} + with open(config_path, 'w') as f: + yaml.dump(data, f) + directory = f"web_version/{web_default_version}" + else: + directory = f"web_version/v1" + if not os.path.exists(os.path.join(cwd_path, directory)): + print(f"web root {data['WEB_VERSION']} not found, using default") + directory = f"web_version/{web_default_version}" + WEB_DIRECTORY = directory +else: + directory = f"web_version/{web_default_version}" + WEB_DIRECTORY = directory + +__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', "WEB_DIRECTORY"] + +print(f'\033[34m[ComfyUI-Easy-Use] server: \033[0mv{__version__} \033[92mLoaded\033[0m') +print(f'\033[34m[ComfyUI-Easy-Use] web root: \033[0m{os.path.join(cwd_path, directory)} \033[92mLoaded\033[0m') diff --git a/docs/hel-892/storyboard-reference/easy__py__nodes__logic.py b/docs/hel-892/storyboard-reference/easy__py__nodes__logic.py new file mode 100644 index 00000000..8da6e2c3 --- /dev/null +++ b/docs/hel-892/storyboard-reference/easy__py__nodes__logic.py @@ -0,0 +1,1809 @@ +from typing import Iterator, List, Tuple, Dict, Any, Union, Optional +from _decimal import Context, getcontext +from decimal import Decimal +from nodes import PreviewImage, SaveImage, NODE_CLASS_MAPPINGS as ALL_NODE_CLASS_MAPPINGS +from PIL import Image, ImageDraw, ImageFilter, ImageOps +from PIL.PngImagePlugin import PngInfo +from ..libs.utils import AlwaysEqualProxy, ByPassTypeTuple, cleanGPUUsedForce, compare_revision +from ..libs.cache import cache, update_cache, remove_cache +from ..libs.log import log_node_info, log_node_warn +import numpy as np +import time +import os +import re +import csv +import json +import torch +import comfy.utils +import folder_paths + +DEFAULT_FLOW_NUM = 2 +MAX_FLOW_NUM = 20 +lazy_options = {"lazy": True} if compare_revision(2543) else {} + +any_type = AlwaysEqualProxy("*") + +def validate_list_args(args: Dict[str, List[Any]]) -> Tuple[bool, Optional[str], Optional[str]]: + """ + Checks that if there are multiple arguments, they are all the same length or 1 + :param args: + :return: Tuple (Status, mismatched_key_1, mismatched_key_2) + """ + # Only have 1 arg + if len(args) == 1: + return True, None, None + + len_to_match = None + matched_arg_name = None + for arg_name, arg in args.items(): + if arg_name == 'self': + # self is in locals() + continue + + if len(arg) != 1: + if len_to_match is None: + len_to_match = len(arg) + matched_arg_name = arg_name + elif len(arg) != len_to_match: + return False, arg_name, matched_arg_name + + return True, None, None + + +def error_if_mismatched_list_args(args: Dict[str, List[Any]]) -> None: + is_valid, failed_key1, failed_key2 = validate_list_args(args) + if not is_valid: + assert failed_key1 is not None + assert failed_key2 is not None + raise ValueError( + f"Mismatched list inputs received. {failed_key1}({len(args[failed_key1])}) !== {failed_key2}({len(args[failed_key2])})" + ) + + +def zip_with_fill(*lists: Union[List[Any], None]) -> Iterator[Tuple[Any, ...]]: + """ + Zips lists together, but if a list has 1 element, it will be repeated for each element in the other lists. + If a list is None, None will be used for that element. + (Not intended for use with lists of different lengths) + :param lists: + :return: Iterator of tuples of length len(lists) + """ + max_len = max(len(lst) if lst is not None else 0 for lst in lists) + for i in range(max_len): + yield tuple(None if lst is None else (lst[0] if len(lst) == 1 else lst[i]) for lst in lists) + + +# ---------------------------------------------------------------类型 开始----------------------------------------------------------------------# + +# 字符串 +class String: + @classmethod + def INPUT_TYPES(s): + return { + "required": {"value": ("STRING", {"default": ""})}, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("string",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic/Type" + + def execute(self, value): + return (value,) + + +# 整数 +class Int: + @classmethod + def INPUT_TYPES(s): + return { + "required": {"value": ("INT", {"default": 0, "min": -999999, "max": 999999, })}, + } + + RETURN_TYPES = ("INT",) + RETURN_NAMES = ("int",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic/Type" + + def execute(self, value): + return (value,) + + +# 整数范围 +class RangeInt: + def __init__(self) -> None: + pass + + @classmethod + def INPUT_TYPES(s) -> Dict[str, Dict[str, Any]]: + return { + "required": { + "range_mode": (["step", "num_steps"], {"default": "step"}), + "start": ("INT", {"default": 0, "min": -4096, "max": 4096, "step": 1}), + "stop": ("INT", {"default": 0, "min": -4096, "max": 4096, "step": 1}), + "step": ("INT", {"default": 0, "min": -4096, "max": 4096, "step": 1}), + "num_steps": ("INT", {"default": 0, "min": -4096, "max": 4096, "step": 1}), + "end_mode": (["Inclusive", "Exclusive"], {"default": "Inclusive"}), + }, + } + + RETURN_TYPES = ("INT", "INT") + RETURN_NAMES = ("range", "range_sizes") + INPUT_IS_LIST = True + OUTPUT_IS_LIST = (True, True) + FUNCTION = "build_range" + + CATEGORY = "EasyUse/Logic/Type" + + def build_range( + self, range_mode, start, stop, step, num_steps, end_mode + ) -> Tuple[List[int], List[int]]: + error_if_mismatched_list_args(locals()) + + ranges = [] + range_sizes = [] + for range_mode, e_start, e_stop, e_num_steps, e_step, e_end_mode in zip_with_fill( + range_mode, start, stop, num_steps, step, end_mode + ): + if range_mode == 'step': + if e_end_mode == "Inclusive": + e_stop += 1 + vals = list(range(e_start, e_stop, e_step)) + ranges.extend(vals) + range_sizes.append(len(vals)) + elif range_mode == 'num_steps': + direction = 1 if e_stop > e_start else -1 + if e_end_mode == "Exclusive": + e_stop -= direction + vals = (np.rint(np.linspace(e_start, e_stop, e_num_steps)).astype(int).tolist()) + ranges.extend(vals) + range_sizes.append(len(vals)) + return ranges, range_sizes + + +# 浮点数 +class Float: + @classmethod + def INPUT_TYPES(s): + return { + "required": {"value": ("FLOAT", {"default": 0, "step": 0.01, "min":-0xffffffffffffffff, "max": 0xffffffffffffffff, })}, + } + + RETURN_TYPES = ("FLOAT",) + RETURN_NAMES = ("float",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic/Type" + + def execute(self, value): + return (round(value, 3),) + + +# 浮点数范围 +class RangeFloat: + def __init__(self) -> None: + pass + + @classmethod + def INPUT_TYPES(s) -> Dict[str, Dict[str, Any]]: + return { + "required": { + "range_mode": (["step", "num_steps"], {"default": "step"}), + "start": ("FLOAT", {"default": 0, "min": -4096, "max": 4096, "step": 0.1}), + "stop": ("FLOAT", {"default": 0, "min": -4096, "max": 4096, "step": 0.1}), + "step": ("FLOAT", {"default": 0, "min": -4096, "max": 4096, "step": 0.1}), + "num_steps": ("INT", {"default": 0, "min": -4096, "max": 4096, "step": 1}), + "end_mode": (["Inclusive", "Exclusive"], {"default": "Inclusive"}), + }, + } + + RETURN_TYPES = ("FLOAT", "INT") + RETURN_NAMES = ("range", "range_sizes") + INPUT_IS_LIST = True + OUTPUT_IS_LIST = (True, True) + FUNCTION = "build_range" + + CATEGORY = "EasyUse/Logic/Type" + + @staticmethod + def _decimal_range( + range_mode: String, start: Decimal, stop: Decimal, step: Decimal, num_steps: Int, inclusive: bool + ) -> Iterator[float]: + if range_mode == 'step': + ret_val = start + if inclusive: + stop = stop + step + direction = 1 if step > 0 else -1 + while (ret_val - stop) * direction < 0: + yield float(ret_val) + ret_val += step + elif range_mode == 'num_steps': + step = (stop - start) / (num_steps - 1) + direction = 1 if step > 0 else -1 + + ret_val = start + for _ in range(num_steps): + if (ret_val - stop) * direction > 0: # Ensure we don't exceed the 'stop' value + break + yield float(ret_val) + ret_val += step + + def build_range( + self, + range_mode, + start, + stop, + step, + num_steps, + end_mode, + ) -> Tuple[List[float], List[int]]: + error_if_mismatched_list_args(locals()) + getcontext().prec = 12 + + start = [round(Decimal(s),2) for s in start] + stop = [round(Decimal(s),2) for s in stop] + step = [round(Decimal(s),2) for s in step] + + ranges = [] + range_sizes = [] + for range_mode, e_start, e_stop, e_step, e_num_steps, e_end_mode in zip_with_fill( + range_mode, start, stop, step, num_steps, end_mode + ): + vals = list( + self._decimal_range(range_mode, e_start, e_stop, e_step, e_num_steps, e_end_mode == 'Inclusive') + ) + ranges.extend(vals) + range_sizes.append(len(vals)) + + return ranges, range_sizes + + +# 布尔 +class Boolean: + @classmethod + def INPUT_TYPES(s): + return { + "required": {"value": ("BOOLEAN", {"default": False})}, + } + + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("boolean",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic/Type" + + def execute(self, value): + return (value,) + + +# ---------------------------------------------------------------开关 开始----------------------------------------------------------------------# +class imageSwitch: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image_a": ("IMAGE",), + "image_b": ("IMAGE",), + "boolean": ("BOOLEAN", {"default": False}), + } + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "image_switch" + + CATEGORY = "EasyUse/Logic/Switch" + + def image_switch(self, image_a, image_b, boolean): + + if boolean: + return (image_a,) + else: + return (image_b,) + + +class textSwitch: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "input": ("INT", {"default": 1, "min": 1, "max": 2}), + }, + "optional": { + "text1": ("STRING", {"forceInput": True}), + "text2": ("STRING", {"forceInput": True}), + } + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("STRING",) + CATEGORY = "EasyUse/Logic/Switch" + FUNCTION = "switch" + + def switch(self, input, text1=None, text2=None, ): + if input == 1: + return (text1,) + else: + return (text2,) + + +# ---------------------------------------------------------------Index Switch----------------------------------------------------------------------# + +class ab: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "A or B": ("BOOLEAN", {"default": True, "label_on": "A", "label_off": "B"}), + "in": (any_type,), + }, + "hidden": {"unique_id": "UNIQUE_ID"}, + } + + RETURN_TYPES = (any_type, any_type,) + RETURN_NAMES = ("A", "B",) + FUNCTION = "switch" + + CATEGORY = "EasyUse/Logic" + + def blocker(self, value, block=False): + from comfy_execution.graph import ExecutionBlocker + return ExecutionBlocker(None) if block else value + + def switch(self, unique_id, **kwargs): + is_a = kwargs['A or B'] + a = self.blocker(kwargs['in'], not is_a) + b = self.blocker(kwargs['in'], is_a) + return (a, b) + + +class anythingInversedSwitch: + + @classmethod + def INPUT_TYPES(s): + return {"required": { + "index": ("INT", {"default": 0, "min": 0, "max": 9, "step": 1}), + "in": (any_type,), + }, + "hidden": {"unique_id": "UNIQUE_ID"}, + } + + RETURN_TYPES = ByPassTypeTuple(tuple([any_type])) + RETURN_NAMES = ByPassTypeTuple(tuple(["out0"])) + FUNCTION = "switch" + + CATEGORY = "EasyUse/Logic" + + def switch(self, index, unique_id, **kwargs): + from comfy_execution.graph import ExecutionBlocker + res = [] + + for i in range(0, MAX_FLOW_NUM): + if index == i: + res.append(kwargs['in']) + else: + res.append(ExecutionBlocker(None)) + return res + + +class anythingIndexSwitch: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + inputs = { + "required": { + "index": ("INT", {"default": 0, "min": 0, "max": 9, "step": 1}), + }, + "optional": { + } + } + for i in range(MAX_FLOW_NUM): + inputs["optional"]["value%d" % i] = (any_type, lazy_options) + return inputs + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("value",) + FUNCTION = "index_switch" + + CATEGORY = "EasyUse/Logic/Index Switch" + + def check_lazy_status(self, index, **kwargs): + key = "value%d" % index + if kwargs.get(key, None) is None: + return [key] + + def index_switch(self, index, **kwargs): + key = "value%d" % index + return (kwargs[key],) + + +class imageIndexSwitch: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + inputs = { + "required": { + "index": ("INT", {"default": 0, "min": 0, "max": 9, "step": 1}), + }, + "optional": { + } + } + for i in range(MAX_FLOW_NUM): + inputs["optional"]["image%d" % i] = ("IMAGE", lazy_options) + return inputs + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + FUNCTION = "index_switch" + + CATEGORY = "EasyUse/Logic/Index Switch" + + def check_lazy_status(self, index, **kwargs): + key = "image%d" % index + if kwargs.get(key, None) is None: + return [key] + + def index_switch(self, index, **kwargs): + key = "image%d" % index + return (kwargs[key],) + + +class textIndexSwitch: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + inputs = { + "required": { + "index": ("INT", {"default": 0, "min": 0, "max": 9, "step": 1}), + }, + "optional": { + } + } + for i in range(MAX_FLOW_NUM): + inputs["optional"]["text%d" % i] = ("STRING", {**lazy_options, "forceInput": True}) + return inputs + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("text",) + FUNCTION = "index_switch" + + CATEGORY = "EasyUse/Logic/Index Switch" + + def check_lazy_status(self, index, **kwargs): + key = "text%d" % index + if kwargs.get(key, None) is None: + return [key] + + def index_switch(self, index, **kwargs): + key = "text%d" % index + return (kwargs[key],) + + +class conditioningIndexSwitch: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + inputs = { + "required": { + "index": ("INT", {"default": 0, "min": 0, "max": 9, "step": 1}), + }, + "optional": { + } + } + for i in range(MAX_FLOW_NUM): + inputs["optional"]["cond%d" % i] = ("CONDITIONING", lazy_options) + return inputs + + RETURN_TYPES = ("CONDITIONING",) + RETURN_NAMES = ("conditioning",) + FUNCTION = "index_switch" + + CATEGORY = "EasyUse/Logic/Index Switch" + + def check_lazy_status(self, index, **kwargs): + key = "cond%d" % index + if kwargs.get(key, None) is None: + return [key] + + def index_switch(self, index, **kwargs): + key = "cond%d" % index + return (kwargs[key],) + + +# ---------------------------------------------------------------Math----------------------------------------------------------------------# +class mathIntOperation: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "a": ("INT", {"default": 0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff, "step": 1}), + "b": ("INT", {"default": 0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff, "step": 1}), + "operation": (["add", "subtract", "multiply", "divide", "modulo", "power"],), + }, + } + + RETURN_TYPES = ("INT",) + FUNCTION = "int_math_operation" + + CATEGORY = "EasyUse/Logic/Math" + + def int_math_operation(self, a, b, operation): + if operation == "add": + return (a + b,) + elif operation == "subtract": + return (a - b,) + elif operation == "multiply": + return (a * b,) + elif operation == "divide": + return (a // b,) + elif operation == "modulo": + return (a % b,) + elif operation == "power": + return (a ** b,) + + +class mathFloatOperation: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "a": ("FLOAT", {"default": 0, "min": -999999999999.0, "max": 999999999999.0, "step": 0.01}), + "b": ("FLOAT", {"default": 0, "min": -999999999999.0, "max": 999999999999.0, "step": 0.01}), + "operation": (["add", "subtract", "multiply", "divide", "modulo", "power"],), + }, + } + + RETURN_TYPES = ("FLOAT",) + FUNCTION = "float_math_operation" + + CATEGORY = "EasyUse/Logic/Math" + + def float_math_operation(self, a, b, operation): + if operation == "add": + return (round(a + b,3),) + elif operation == "subtract": + return (round(a - b,3),) + elif operation == "multiply": + return (round(a * b,3),) + elif operation == "divide": + return (round(a / b,3),) + elif operation == "modulo": + return (round(a % b,3),) + elif operation == "power": + return (round(a ** b,3),) + + +class mathStringOperation: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "a": ("STRING", {"multiline": False}), + "b": ("STRING", {"multiline": False}), + "operation": (["a == b", "a != b", "a IN b", "a MATCH REGEX(b)", "a BEGINSWITH b", "a ENDSWITH b"],), + "case_sensitive": ("BOOLEAN", {"default": True}), + }, + } + + RETURN_TYPES = ("BOOLEAN",) + FUNCTION = "string_math_operation" + + CATEGORY = "EasyUse/Logic/Math" + + def string_math_operation(self, a, b, operation, case_sensitive): + if not case_sensitive: + a = a.lower() + b = b.lower() + + if operation == "a == b": + return (a == b,) + elif operation == "a != b": + return (a != b,) + elif operation == "a IN b": + return (a in b,) + elif operation == "a MATCH REGEX(b)": + try: + return (re.match(b, a) is not None,) + except: + return (False,) + elif operation == "a BEGINSWITH b": + return (a.startswith(b),) + elif operation == "a ENDSWITH b": + return (a.endswith(b),) + + +# ---------------------------------------------------------------Flow----------------------------------------------------------------------# +try: + from comfy_execution.graph_utils import GraphBuilder, is_link +except: + GraphBuilder = None + + +class whileLoopStart: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + inputs = { + "required": { + "condition": ("BOOLEAN", {"default": True}), + }, + "optional": { + }, + } + for i in range(MAX_FLOW_NUM): + inputs["optional"]["initial_value%d" % i] = (any_type,) + return inputs + + RETURN_TYPES = ByPassTypeTuple(tuple(["FLOW_CONTROL"] + [any_type] * MAX_FLOW_NUM)) + RETURN_NAMES = ByPassTypeTuple(tuple(["flow"] + ["value%d" % i for i in range(MAX_FLOW_NUM)])) + FUNCTION = "while_loop_open" + + CATEGORY = "EasyUse/Logic/While Loop" + + def while_loop_open(self, condition, **kwargs): + values = [] + for i in range(MAX_FLOW_NUM): + values.append(kwargs.get("initial_value%d" % i, None)) + return tuple(["stub"] + values) + + +class whileLoopEnd: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + inputs = { + "required": { + "flow": ("FLOW_CONTROL", {"rawLink": True}), + "condition": ("BOOLEAN", {}), + }, + "optional": { + }, + "hidden": { + "dynprompt": "DYNPROMPT", + "unique_id": "UNIQUE_ID", + "extra_pnginfo": "EXTRA_PNGINFO", + } + } + for i in range(MAX_FLOW_NUM): + inputs["optional"]["initial_value%d" % i] = (any_type,) + return inputs + + RETURN_TYPES = ByPassTypeTuple(tuple([any_type] * MAX_FLOW_NUM)) + RETURN_NAMES = ByPassTypeTuple(tuple(["value%d" % i for i in range(MAX_FLOW_NUM)])) + FUNCTION = "while_loop_close" + + CATEGORY = "EasyUse/Logic/While Loop" + + def explore_dependencies(self, node_id, dynprompt, upstream, parent_ids): + node_info = dynprompt.get_node(node_id) + if "inputs" not in node_info: + return + + for k, v in node_info["inputs"].items(): + if is_link(v): + parent_id = v[0] + display_id = dynprompt.get_display_node_id(parent_id) + display_node = dynprompt.get_node(display_id) + class_type = display_node["class_type"] + if class_type not in ['easy forLoopEnd', 'easy whileLoopEnd']: + parent_ids.append(display_id) + if parent_id not in upstream: + upstream[parent_id] = [] + self.explore_dependencies(parent_id, dynprompt, upstream, parent_ids) + + upstream[parent_id].append(node_id) + + def explore_output_nodes(self, dynprompt, upstream, output_nodes, parent_ids): + for parent_id in upstream: + display_id = dynprompt.get_display_node_id(parent_id) + for output_id in output_nodes: + id = output_nodes[output_id][0] + if id in parent_ids and display_id == id and output_id not in upstream[parent_id]: + if '.' in parent_id: + arr = parent_id.split('.') + arr[len(arr)-1] = output_id + upstream[parent_id].append('.'.join(arr)) + else: + upstream[parent_id].append(output_id) + + def collect_contained(self, node_id, upstream, contained): + if node_id not in upstream: + return + for child_id in upstream[node_id]: + if child_id not in contained: + contained[child_id] = True + self.collect_contained(child_id, upstream, contained) + + def while_loop_close(self, flow, condition, dynprompt=None, unique_id=None,**kwargs): + if not condition: + # We're done with the loop + values = [] + for i in range(MAX_FLOW_NUM): + values.append(kwargs.get("initial_value%d" % i, None)) + return tuple(values) + + # We want to loop + this_node = dynprompt.get_node(unique_id) + upstream = {} + # Get the list of all nodes between the open and close nodes + parent_ids = [] + self.explore_dependencies(unique_id, dynprompt, upstream, parent_ids) + parent_ids = list(set(parent_ids)) + # Get the list of all output nodes between the open and close nodes + prompts = dynprompt.get_original_prompt() + output_nodes = {} + for id in prompts: + node = prompts[id] + if "inputs" not in node: + continue + class_type = node["class_type"] + class_def = ALL_NODE_CLASS_MAPPINGS[class_type] + if hasattr(class_def, 'OUTPUT_NODE') and class_def.OUTPUT_NODE == True: + for k, v in node['inputs'].items(): + if is_link(v): + output_nodes[id] = v + + graph = GraphBuilder() + self.explore_output_nodes(dynprompt, upstream, output_nodes, parent_ids) + contained = {} + open_node = flow[0] + self.collect_contained(open_node, upstream, contained) + contained[unique_id] = True + contained[open_node] = True + + for node_id in contained: + original_node = dynprompt.get_node(node_id) + node = graph.node(original_node["class_type"], "Recurse" if node_id == unique_id else node_id) + node.set_override_display_id(node_id) + for node_id in contained: + original_node = dynprompt.get_node(node_id) + node = graph.lookup_node("Recurse" if node_id == unique_id else node_id) + for k, v in original_node["inputs"].items(): + if is_link(v) and v[0] in contained: + parent = graph.lookup_node(v[0]) + node.set_input(k, parent.out(v[1])) + else: + node.set_input(k, v) + + new_open = graph.lookup_node(open_node) + for i in range(MAX_FLOW_NUM): + key = "initial_value%d" % i + new_open.set_input(key, kwargs.get(key, None)) + my_clone = graph.lookup_node("Recurse") + result = map(lambda x: my_clone.out(x), range(MAX_FLOW_NUM)) + return { + "result": tuple(result), + "expand": graph.finalize(), + } + + +class forLoopStart: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "total": ("INT", {"default": 1, "min": 1, "max": 100000, "step": 1}), + }, + "optional": { + "initial_value%d" % i: (any_type,) for i in range(1, MAX_FLOW_NUM) + }, + "hidden": { + "initial_value0": (any_type,), + "prompt": "PROMPT", + "extra_pnginfo": "EXTRA_PNGINFO", + "unique_id": "UNIQUE_ID" + } + } + + RETURN_TYPES = ByPassTypeTuple(tuple(["FLOW_CONTROL", "INT"] + [any_type] * (MAX_FLOW_NUM - 1))) + RETURN_NAMES = ByPassTypeTuple(tuple(["flow", "index"] + ["value%d" % i for i in range(1, MAX_FLOW_NUM)])) + FUNCTION = "for_loop_start" + + CATEGORY = "EasyUse/Logic/For Loop" + + def for_loop_start(self, total, prompt=None, extra_pnginfo=None, unique_id=None, **kwargs): + graph = GraphBuilder() + i = 0 + if "initial_value0" in kwargs: + i = kwargs["initial_value0"] + + initial_values = {("initial_value%d" % num): kwargs.get("initial_value%d" % num, None) for num in + range(1, MAX_FLOW_NUM)} + while_open = graph.node("easy whileLoopStart", condition=total, initial_value0=i, **initial_values) + outputs = [kwargs.get("initial_value%d" % num, None) for num in range(1, MAX_FLOW_NUM)] + return { + "result": tuple(["stub", i] + outputs), + "expand": graph.finalize(), + } + + +class forLoopEnd: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "flow": ("FLOW_CONTROL", {"rawLink": True}), + }, + "optional": { + "initial_value%d" % i: (any_type, {"rawLink": True}) for i in range(1, MAX_FLOW_NUM) + }, + "hidden": { + "dynprompt": "DYNPROMPT", + "extra_pnginfo": "EXTRA_PNGINFO", + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ByPassTypeTuple(tuple([any_type] * (MAX_FLOW_NUM - 1))) + RETURN_NAMES = ByPassTypeTuple(tuple(["value%d" % i for i in range(1, MAX_FLOW_NUM)])) + FUNCTION = "for_loop_end" + + CATEGORY = "EasyUse/Logic/For Loop" + + + + def for_loop_end(self, flow, dynprompt=None, extra_pnginfo=None, unique_id=None, **kwargs): + graph = GraphBuilder() + while_open = flow[0] + total = None + + # Using dynprompt to get the original node + forstart_node = dynprompt.get_node(while_open) + if forstart_node['class_type'] == 'easy forLoopStart': + inputs = forstart_node['inputs'] + total = inputs['total'] + elif forstart_node['class_type'] == 'easy loadImagesForLoop': + inputs = forstart_node['inputs'] + limit = inputs['limit'] + start_index = inputs['start_index'] + # Filter files by extension + directory = inputs['directory'] + total = graph.node('easy imagesCountInDirectory', directory=directory, limit=limit, start_index=start_index, extension='*').out(0) + + sub = graph.node("easy mathInt", operation="add", a=[while_open, 1], b=1) + cond = graph.node("easy compare", a=sub.out(0), b=total, comparison='a < b') + input_values = {("initial_value%d" % i): kwargs.get("initial_value%d" % i, None) for i in + range(1, MAX_FLOW_NUM)} + while_close = graph.node("easy whileLoopEnd", + flow=flow, + condition=cond.out(0), + initial_value0=sub.out(0), + **input_values) + return { + "result": tuple([while_close.out(i) for i in range(1, MAX_FLOW_NUM)]), + "expand": graph.finalize(), + } + + +COMPARE_FUNCTIONS = { + "a == b": lambda a, b: a == b, + "a != b": lambda a, b: a != b, + "a < b": lambda a, b: a < b, + "a > b": lambda a, b: a > b, + "a <= b": lambda a, b: a <= b, + "a >= b": lambda a, b: a >= b, + "a > 0": lambda a, b: a > 0, + "a <= 0": lambda a, b: a <= 0, + "b > 0": lambda a, b: b > 0, + "b <= 0": lambda a, b: b <= 0, +} + + +# 比较 +class Compare: + @classmethod + def INPUT_TYPES(s): + compare_functions = list(COMPARE_FUNCTIONS.keys()) + return { + "optional": { + "a": (any_type, {"default": 0}), + "b": (any_type, {"default": 0}), + "comparison": (compare_functions, {"default": "a == b"}), + }, + } + + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("boolean",) + FUNCTION = "compare" + CATEGORY = "EasyUse/Logic/Math" + + def compare(self, a=0, b=0, comparison="a == b"): + return (COMPARE_FUNCTIONS[comparison](a, b),) + + +# 判断 +class IfElse: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "boolean": ("BOOLEAN",), + "on_true": (any_type, lazy_options), + "on_false": (any_type, lazy_options), + }, + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("*",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic" + + def check_lazy_status(self, boolean, on_true=None, on_false=None): + if boolean and on_true is None: + return ["on_true"] + if not boolean and on_false is None: + return ["on_false"] + + def execute(self, *args, **kwargs): + return (kwargs['on_true'] if kwargs['boolean'] else kwargs['on_false'],) + + +class Blocker: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "continue": ("BOOLEAN", {"default": False}), + "in": (any_type, {"default": None}), + }, + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("out",) + CATEGORY = "EasyUse/Logic" + FUNCTION = "execute" + + def execute(self, **kwargs): + from comfy_execution.graph import ExecutionBlocker + return (kwargs['in'] if kwargs['continue'] else ExecutionBlocker(None),) + + +# 是否为SDXL +from comfy.sdxl_clip import SDXLClipModel, SDXLRefinerClipModel, SDXLClipG + +class isMaskEmpty: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "mask": ("MASK",), + }, + "optional": { + } + } + + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("boolean",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic" + + def execute(self, mask): + if mask is None: + return (True,) + if torch.all(mask == 0): + return (True,) + return (False,) + + +class isNone: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "any": (any_type,) + }, + "optional": { + } + } + + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("boolean",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic" + + def execute(self, any): + return (True if any is None else False,) + + +class isSDXL: + @classmethod + def INPUT_TYPES(s): + return { + "required": {}, + "optional": { + "optional_pipe": ("PIPE_LINE",), + "optional_clip": ("CLIP",), + } + } + + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("boolean",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic" + + def execute(self, optional_pipe=None, optional_clip=None): + if optional_pipe is None and optional_clip is None: + raise Exception(f"[ERROR] optional_pipe or optional_clip is missing") + clip = optional_clip if optional_clip is not None else optional_pipe['clip'] + if isinstance(clip.cond_stage_model, (SDXLClipModel, SDXLRefinerClipModel, SDXLClipG)): + return (True,) + else: + return (False,) + + +class isFileExist: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "file_path": ("STRING", {"default": ""}), + "file_name": ("STRING", {"default": ""}), + "file_extension": ("STRING", {"default": ""}), + }, + "optional": { + } + } + + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("boolean",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic" + + def execute(self, file_path, file_name, file_extension): + if not file_path: + raise Exception("file_path is missing") + + if file_name: + file_path = os.path.join(file_path, file_name) + if file_extension: + file_path = file_path + "." + file_extension + + if os.path.exists(file_path) and os.path.isfile(file_path): + return (True,) + else: + return (False,) + + +from nodes import MAX_RESOLUTION +from ..config import BASE_RESOLUTIONS + + +class pixels: + + @classmethod + def INPUT_TYPES(s): + resolution_strings = [ + f"{width} x {height} (custom)" if width == 'width' and height == 'height' else f"{width} x {height}" for + width, height in BASE_RESOLUTIONS] + return { + "required": { + "resolution": (resolution_strings,), + "width": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 512, "min": 64, "max": MAX_RESOLUTION, "step": 8}), + "scale": ("FLOAT", {"default": 2.000, "min": 0.001, "max": 10, "step": 0.001}), + "flip_w/h": ("BOOLEAN", {"default": False}), + } + } + + RETURN_TYPES = ("INT", "INT", any_type, any_type, any_type) + RETURN_NAMES = ("width_norm", "height_norm", "width", "height", "scale_factor") + CATEGORY = "EasyUse/Logic" + FUNCTION = "create" + + def create(self, resolution, width, height, scale, **kwargs): + if resolution not in ["自定义 x 自定义", 'width x height (custom)']: + try: + _width, _height = map(int, resolution.split(' x ')) + width = _width + height = _height + except ValueError: + raise ValueError("Invalid base_resolution format.") + + width = width * scale + height = height * scale + width_norm = int(width - width % 8) + height_norm = int(height - height % 8) + flip_wh = kwargs['flip_w/h'] + if flip_wh: + width, height = height, width + width_norm, height_norm = height_norm, width_norm + + return (width_norm, height_norm, width, height, scale) + + +# xy矩阵 +class xyAny: + + @classmethod + def INPUT_TYPES(s): + + return { + "required": { + "X": (any_type, {}), + "Y": (any_type, {}), + "direction": (["horizontal", "vertical"], {"default": "horizontal"}) + } + } + + RETURN_TYPES = (any_type, any_type) + RETURN_NAMES = ("X", "Y") + INPUT_IS_LIST = True + OUTPUT_IS_LIST = (True, True) + CATEGORY = "EasyUse/Logic" + FUNCTION = "to_xy" + + def to_xy(self, X, Y, direction): + new_x = list() + new_y = list() + if direction[0] == "horizontal": + for y in Y: + for x in X: + new_x.append(x) + new_y.append(y) + else: + for x in X: + for y in Y: + new_x.append(x) + new_y.append(y) + + return (new_x, new_y) + + +class lengthAnything: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "any": (any_type, {}), + }, + "hidden":{ + "prompt": "PROMPT", + "my_unique_id": "UNIQUE_ID" + } + } + + RETURN_TYPES = ("INT",) + RETURN_NAMES = ("length",) + + INPUT_IS_LIST = True + + FUNCTION = "getLength" + CATEGORY = "EasyUse/Logic" + + def getLength(self, any, prompt=None, my_unique_id=None): + prompt = prompt[0] + my_unique_id = my_unique_id[0] + my_unique_id = my_unique_id.split('.')[len(my_unique_id.split('.')) - 1] if "." in my_unique_id else my_unique_id + id, slot = prompt[my_unique_id]['inputs']['any'] + class_type = prompt[id]['class_type'] + node_class = ALL_NODE_CLASS_MAPPINGS[class_type] + output_is_list = node_class.OUTPUT_IS_LIST[slot] if hasattr(node_class, 'OUTPUT_IS_LIST') else False + + return (len(any) if output_is_list or len(any) > 1 else len(any[0]),) + +class indexAnything: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "any": (any_type, {}), + "index": ("INT", {"default": 0, "min": -1000000, "max": 1000000, "step": 1}), + }, + "hidden":{ + "prompt": "PROMPT", + "my_unique_id": "UNIQUE_ID" + } + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("out",) + + INPUT_IS_LIST = True + + FUNCTION = "getIndex" + CATEGORY = "EasyUse/Logic" + + def getIndex(self, any, index, prompt=None, my_unique_id=None): + index = index[0] + prompt = prompt[0] + my_unique_id = my_unique_id[0] + my_unique_id = my_unique_id.split('.')[len(my_unique_id.split('.')) - 1] if "." in my_unique_id else my_unique_id + id, slot = prompt[my_unique_id]['inputs']['any'] + class_type = prompt[id]['class_type'] + node_class = ALL_NODE_CLASS_MAPPINGS[class_type] + output_is_list = node_class.OUTPUT_IS_LIST[slot] if hasattr(node_class, 'OUTPUT_IS_LIST') else False + + def normalize_index(index, length): + """标准化索引,处理负索引并确保在有效范围内""" + if index < 0: + index = length + index + if index < 0: + index = 0 + return min(max(0, index), length - 1) + + if output_is_list or len(any) > 1: + index = normalize_index(index, len(any)) + return (any[index],) + elif isinstance(any[0], torch.Tensor): + index = normalize_index(index, any[0].shape[0]) + s = any[0][index:index + 1].clone() + return (s,) + else: + if hasattr(any[0], '__len__') and len(any[0]) > 0: + index = normalize_index(index, len(any[0])) + return (any[0][index],) + return (any[0],) + + +class batchAnything: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "any_1": (any_type, {}), + "any_2": (any_type, {}) + } + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("batch",) + + FUNCTION = "batch" + CATEGORY = "EasyUse/Logic" + + def latentBatch(self, any_1, any_2): + samples_out = any_1.copy() + s1 = any_1["samples"] + s2 = any_2["samples"] + + if s1.shape[1:] != s2.shape[1:]: + s2 = comfy.utils.common_upscale(s2, s1.shape[3], s1.shape[2], "bilinear", "center") + s = torch.cat((s1, s2), dim=0) + samples_out["samples"] = s + samples_out["batch_index"] = any_1.get("batch_index", + [x for x in range(0, s1.shape[0])]) + any_2.get( + "batch_index", [x for x in range(0, s2.shape[0])]) + + return samples_out + + def batch(self, any_1, any_2): + if isinstance(any_1, torch.Tensor) or isinstance(any_2, torch.Tensor): + if any_1 is None: + return (any_2,) + elif any_2 is None: + return (any_1,) + if any_1.shape[1:] != any_2.shape[1:]: + any_2 = comfy.utils.common_upscale(any_2.movedim(-1, 1), any_1.shape[2], any_1.shape[1], "bilinear", + "center").movedim(1, -1) + return (torch.cat((any_1, any_2), 0),) + elif isinstance(any_1, (str, float, int)): + if any_2 is None: + return (any_1,) + elif isinstance(any_2, tuple): + return (any_2 + (any_1,),) + elif isinstance(any_2, list): + return (any_2 + [any_1],) + return ([any_1, any_2],) + elif isinstance(any_2, (str, float, int)): + if any_1 is None: + return (any_2,) + elif isinstance(any_1, tuple): + return (any_1 + (any_2,),) + elif isinstance(any_1, list): + return (any_1 + [any_2],) + return ([any_2, any_1],) + elif isinstance(any_1, dict) and 'samples' in any_1: + if any_2 is None: + return (any_1,) + elif isinstance(any_2, dict) and 'samples' in any_2: + return (self.latentBatch(any_1, any_2),) + elif isinstance(any_2, dict) and 'samples' in any_2: + if any_1 is None: + return (any_2,) + elif isinstance(any_1, dict) and 'samples' in any_1: + return (self.latentBatch(any_2, any_1),) + else: + if any_1 is None: + return (any_2,) + elif any_2 is None: + return (any_1,) + return (any_1 + any_2,) + + +# 转换所有类型 +class convertAnything: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "*": (any_type,), + "output_type": (["string", "int", "float", "boolean"], {"default": "string"}), + }} + + RETURN_TYPES = ByPassTypeTuple((any_type,)) + OUTPUT_NODE = True + FUNCTION = "convert" + CATEGORY = "EasyUse/Logic" + + def convert(self, *args, **kwargs): + anything = kwargs['*'] + output_type = kwargs['output_type'] + params = None + if output_type == 'string': + params = str(anything) + elif output_type == 'int': + params = int(anything) + elif output_type == 'float': + params = float(anything) + elif output_type == 'boolean': + params = bool(anything) + return (params,) + +# 将所有类型的内容都转成字符串输出 +class showAnything: + @classmethod + def INPUT_TYPES(s): + return {"required": {}, "optional": {"anything": (any_type, {}), }, + "hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO", + }} + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ('output',) + INPUT_IS_LIST = True + OUTPUT_NODE = True + FUNCTION = "log_input" + CATEGORY = "EasyUse/Logic" + + def log_input(self, unique_id=None, extra_pnginfo=None, **kwargs): + + values = [] + if "anything" in kwargs: + for val in kwargs['anything']: + try: + if isinstance(val, str): + values.append(val) + elif isinstance(val, list): + values = val + elif isinstance(val, (int, float, bool)): + values.append(str(val)) + else: + val = json.dumps(val) + values.append(str(val)) + except Exception: + values.append(str(val)) + pass + + if not extra_pnginfo: + pass + elif (not isinstance(extra_pnginfo[0], dict) or "workflow" not in extra_pnginfo[0]): + pass + else: + workflow = extra_pnginfo[0]["workflow"] + node = next((x for x in workflow["nodes"] if str(x["id"]) == unique_id[0]), None) + if node: + node["widgets_values"] = [values] + if isinstance(values, list) and len(values) == 1: + return {"ui": {"text": values}, "result": (values[0],), } + else: + return {"ui": {"text": values}, "result": (values,), } + +class showTensorShape: + @classmethod + def INPUT_TYPES(s): + return {"required": {"tensor": (any_type,)}, "optional": {}, + "hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO" + }} + + RETURN_TYPES = () + RETURN_NAMES = () + OUTPUT_NODE = True + FUNCTION = "log_input" + CATEGORY = "EasyUse/Logic" + + def log_input(self, tensor, unique_id=None, extra_pnginfo=None): + shapes = [] + + def tensorShape(tensor): + if isinstance(tensor, dict): + for k in tensor: + tensorShape(tensor[k]) + elif isinstance(tensor, list): + for i in range(len(tensor)): + tensorShape(tensor[i]) + elif hasattr(tensor, 'shape'): + shapes.append(list(tensor.shape)) + + tensorShape(tensor) + + return {"ui": {"text": shapes}} + + +class outputToList: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "tuple": (any_type, {}), + }, "optional": {}, + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("list",) + OUTPUT_IS_LIST = (True,) + FUNCTION = "output_to_List" + CATEGORY = "EasyUse/Logic" + + def output_to_List(self, tuple): + return (tuple,) + + +# cleanGpuUsed +class cleanGPUUsed: + @classmethod + def INPUT_TYPES(s): + return {"required": {"anything": (any_type, {})}, "optional": {}, + "hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO", + }} + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("output",) + OUTPUT_NODE = True + FUNCTION = "empty_cache" + CATEGORY = "EasyUse/Logic" + + def empty_cache(self, anything, unique_id=None, extra_pnginfo=None): + cleanGPUUsedForce() + remove_cache('*') + return (anything,) + + +class clearCacheKey: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "anything": (any_type, {}), + "cache_key": ("STRING", {"default": "*"}), + }, "optional": {}, + "hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO", } + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ('output',) + OUTPUT_NODE = True + FUNCTION = "empty_cache" + CATEGORY = "EasyUse/Logic" + + def empty_cache(self, anything, cache_name, unique_id=None, extra_pnginfo=None): + remove_cache(cache_name) + return (anything,) + + +class clearCacheAll: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "anything": (any_type, {}), + }, "optional": {}, + "hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO", } + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("output",) + OUTPUT_NODE = True + FUNCTION = "empty_cache" + CATEGORY = "EasyUse/Logic" + + def empty_cache(self, anything, unique_id=None, extra_pnginfo=None): + remove_cache('*') + return (anything,) + + +class saveText: + + def __init__(self): + self.output_dir = folder_paths.output_directory + self.type = 'output' + + @classmethod + def INPUT_TYPES(s): + input_types = {} + input_types['required'] = { + "text": ("STRING", {"default": "", "forceInput": True}), + "output_file_path": ("STRING", {"multiline": False, "default": ""}), + "file_name": ("STRING", {"multiline": False, "default": ""}), + "file_extension": (["txt", "csv"],), + "overwrite": ("BOOLEAN", {"default": True}), + } + input_types['optional'] = { + "image": ("IMAGE",), + } + return input_types + + RETURN_TYPES = ("STRING", "IMAGE") + RETURN_NAMES = ("text", 'image',) + + FUNCTION = "save_text" + OUTPUT_NODE = True + CATEGORY = "EasyUse/Logic" + + def save_image(self, images, filename_prefix='', extension='png',quality=100, prompt=None, + extra_pnginfo=None, delimiter='_', filename_number_start='true', number_padding=4, + overwrite_mode='prefix_as_filename', output_path='', show_history='true', show_previews='true', + embed_workflow='true', lossless_webp=False, ): + results = list() + for image in images: + i = 255. * image.cpu().numpy() + img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8)) + + # Delegate metadata/pnginfo + if extension == 'webp': + img_exif = img.getexif() + workflow_metadata = '' + prompt_str = '' + if prompt is not None: + prompt_str = json.dumps(prompt) + img_exif[0x010f] = "Prompt:" + prompt_str + if extra_pnginfo is not None: + for x in extra_pnginfo: + workflow_metadata += json.dumps(extra_pnginfo[x]) + img_exif[0x010e] = "Workflow:" + workflow_metadata + exif_data = img_exif.tobytes() + else: + metadata = PngInfo() + if embed_workflow == 'true': + 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])) + exif_data = metadata + + file = f"{filename_prefix}.{extension}" + + # Save the images + try: + output_file = os.path.abspath(os.path.join(output_path, file)) + if extension in ["jpg", "jpeg"]: + img.save(output_file, + quality=quality, optimize=True) + elif extension == 'webp': + img.save(output_file, + quality=quality, lossless=lossless_webp, exif=exif_data) + elif extension == 'png': + img.save(output_file, + pnginfo=exif_data, optimize=True) + elif extension == 'bmp': + img.save(output_file) + elif extension == 'tiff': + img.save(output_file, + quality=quality, optimize=True) + else: + img.save(output_file, + pnginfo=exif_data, optimize=True) + + except OSError as e: + print(e) + except Exception as e: + print(e) + + def save_text(self, text, output_file_path, file_name, file_extension, overwrite, filename_number_start='true', image=None, prompt=None, + extra_pnginfo=None): + if isinstance(file_name, list): + file_name = file_name[0] + filepath = str(os.path.join(output_file_path, file_name)) + "." + file_extension + index = 1 + + if (output_file_path == "" or file_name == ""): + log_node_warn("Save Text", "No file details found. No file output.") + return () + + if not os.path.exists(output_file_path): + os.makedirs(output_file_path) + + if overwrite: + file_mode = "w" + else: + file_mode = "a" + + log_node_info("Save Text", f"Saving to {filepath}") + + if file_extension == "csv": + text_list = [] + for i in text.split("\n"): + text_list.append(i.strip()) + + with open(filepath, file_mode, newline="", encoding='utf-8') as csv_file: + csv_writer = csv.writer(csv_file) + # Write each line as a separate row in the CSV file + for line in text_list: + csv_writer.writerow([line]) + else: + with open(filepath, file_mode, newline="", encoding='utf-8') as text_file: + for line in text: + text_file.write(line) + + result = {"result": (text, None)} + + if image is not None: + imagepath = os.path.join(output_file_path, file_name) + image_index = 1 + if not overwrite: + while os.path.exists(filepath): + if os.path.exists(filepath): + imagepath = str(os.path.join(output_file_path, file_name)) + "_" + str(index) + index = index + 1 + else: + break + # result = self.save_images(image, imagepath, prompt, extra_pnginfo) + + delimiter = '_' + number_padding = 4 + lossless_webp = (False,) + + original_output = self.output_dir + + # Setup output path + if output_file_path in [None, '', "none", "."]: + output_path = self.output_dir + else: + output_path = '' + if not os.path.isabs(output_file_path): + output_path = os.path.join(self.output_dir, output_path) + base_output = os.path.basename(output_path) + if output_path.endswith("ComfyUI/output") or output_path.endswith(r"ComfyUI\output"): + base_output = "" + + # Check output destination + if output_path.strip() != '': + if not os.path.isabs(output_path): + output_path = os.path.join(folder_paths.output_directory, output_path) + if not os.path.exists(output_path.strip()): + print( + f'The path `{output_path.strip()}` specified doesn\'t exist! Creating directory.') + os.makedirs(output_path, exist_ok=True) + + images = [] + images.append(image) + images = torch.cat(images, dim=0) + self.save_image(images, imagepath, 'png', 100, prompt, extra_pnginfo, filename_number_start=filename_number_start, output_path=output_path, delimiter=delimiter, + number_padding=number_padding, lossless_webp=lossless_webp) + + log_node_info("Save Text", f"Saving Image to {imagepath}") + result['result'] = (text, image) + + return result + + +class sleep: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "any": (any_type, {}), + "delay": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1000000, "step": 0.1}), + }, + } + + RETURN_TYPES = (any_type,) + RETURN_NAMES = ("out",) + FUNCTION = "execute" + CATEGORY = "EasyUse/Logic" + + def execute(self, any, delay): + time.sleep(delay) + return (any,) + +NODE_CLASS_MAPPINGS = { + "easy string": String, + "easy int": Int, + "easy rangeInt": RangeInt, + "easy float": Float, + "easy rangeFloat": RangeFloat, + "easy boolean": Boolean, + "easy mathString": mathStringOperation, + "easy mathInt": mathIntOperation, + "easy mathFloat": mathFloatOperation, + "easy compare": Compare, + "easy imageSwitch": imageSwitch, + "easy textSwitch": textSwitch, + "easy imageIndexSwitch": imageIndexSwitch, + "easy textIndexSwitch": textIndexSwitch, + "easy conditioningIndexSwitch": conditioningIndexSwitch, + "easy anythingIndexSwitch": anythingIndexSwitch, + "easy ab": ab, + "easy anythingInversedSwitch": anythingInversedSwitch, + "easy whileLoopStart": whileLoopStart, + "easy whileLoopEnd": whileLoopEnd, + "easy forLoopStart": forLoopStart, + "easy forLoopEnd": forLoopEnd, + "easy blocker": Blocker, + "easy ifElse": IfElse, + "easy isMaskEmpty": isMaskEmpty, + "easy isNone": isNone, + "easy isSDXL": isSDXL, + "easy isFileExist": isFileExist, + "easy outputToList": outputToList, + "easy pixels": pixels, + "easy xyAny": xyAny, + "easy lengthAnything": lengthAnything, + "easy indexAnything": indexAnything, + "easy batchAnything": batchAnything, + "easy convertAnything": convertAnything, + "easy showAnything": showAnything, + "easy showTensorShape": showTensorShape, + "easy clearCacheKey": clearCacheKey, + "easy clearCacheAll": clearCacheAll, + "easy cleanGpuUsed": cleanGPUUsed, + "easy saveText": saveText, + "easy sleep": sleep +} +NODE_DISPLAY_NAME_MAPPINGS = { + "easy string": "String", + "easy int": "Int", + "easy rangeInt": "Range(Int)", + "easy float": "Float", + "easy rangeFloat": "Range(Float)", + "easy boolean": "Boolean", + "easy compare": "Compare", + "easy mathString": "Math String", + "easy mathInt": "Math Int", + "easy mathFloat": "Math Float", + "easy imageSwitch": "Image Switch", + "easy textSwitch": "Text Switch", + "easy imageIndexSwitch": "Image Index Switch", + "easy textIndexSwitch": "Text Index Switch", + "easy conditioningIndexSwitch": "Conditioning Index Switch", + "easy anythingIndexSwitch": "Any Index Switch", + "easy ab": "A or B", + "easy anythingInversedSwitch": "Any Inversed Switch", + "easy whileLoopStart": "While Loop Start", + "easy whileLoopEnd": "While Loop End", + "easy forLoopStart": "For Loop Start", + "easy forLoopEnd": "For Loop End", + "easy ifElse": "If else", + "easy blocker": "Blocker", + "easy isMaskEmpty": "Is Mask Empty", + "easy isNone": "Is None", + "easy isSDXL": "Is SDXL", + "easy isFileExist": "Is File Exist", + "easy outputToList": "Output to List", + "easy pixels": "Pixels W/H Norm", + "easy xyAny": "XY Any", + "easy lengthAnything": "Length Any", + "easy indexAnything": "Index Any", + "easy batchAnything": "Batch Any", + "easy convertAnything": "Convert Any", + "easy showAnything": "Show Any", + "easy showTensorShape": "Show Tensor Shape", + "easy clearCacheKey": "Clear Cache Key", + "easy clearCacheAll": "Clear Cache All", + "easy cleanGpuUsed": "Clean VRAM Used", + "easy saveText": "Save Text", + "easy sleep": "Sleep", +} + diff --git a/docs/hel-892/storyboard-reference/easy__pyproject.toml b/docs/hel-892/storyboard-reference/easy__pyproject.toml new file mode 100644 index 00000000..b1528363 --- /dev/null +++ b/docs/hel-892/storyboard-reference/easy__pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "comfyui-easy-use" +description = "To enhance the usability of ComfyUI, optimizations and integrations have been implemented for several commonly used nodes." +version = "1.3.4" +license = { file = "LICENSE" } +dependencies = ["diffusers", "accelerate", "clip_interrogator>=0.6.0", "sentencepiece", "lark", "onnxruntime", "spandrel", "opencv-python-headless", "matplotlib", "peft"] + +[project.urls] +Repository = "https://github.com/yolain/ComfyUI-Easy-Use" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "yolain" +DisplayName = "ComfyUI-Easy-Use" +Icon = "" diff --git a/docs/hel-892/storyboard-reference/kj-tree.json b/docs/hel-892/storyboard-reference/kj-tree.json new file mode 100644 index 00000000..2a6a7d18 --- /dev/null +++ b/docs/hel-892/storyboard-reference/kj-tree.json @@ -0,0 +1 @@ +{"sha":"79f529a84a8c20fe5dcdfa984c6be7a94102c014","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/79f529a84a8c20fe5dcdfa984c6be7a94102c014","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":"2a7f73e2e801713b9d2782031cb2040dba02b819","size":19912,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/2a7f73e2e801713b9d2782031cb2040dba02b819"},{"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":"0df75f706419c7b16829123fe3ef3b9a1599f503","url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/trees/0df75f706419c7b16829123fe3ef3b9a1599f503"},{"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":"ed9fef3669d1597baa0f929f8253fa3147d38027","size":69930,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/ed9fef3669d1597baa0f929f8253fa3147d38027"},{"path":"nodes/image_nodes.py","mode":"100644","type":"blob","sha":"aac70d4770f5428a7e3f6bd9a10d50a821987199","size":165815,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/aac70d4770f5428a7e3f6bd9a10d50a821987199"},{"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":"dc40c3332eb0fe5740b645873db431408c38420f","size":101809,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/dc40c3332eb0fe5740b645873db431408c38420f"},{"path":"nodes/nodes.py","mode":"100644","type":"blob","sha":"372c8518a77b20fa808de3b70736ceb8dde0092e","size":117163,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/372c8518a77b20fa808de3b70736ceb8dde0092e"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"b4f671463e36365e5c2ca4c5621efdb24134ef28","size":552,"url":"https://api.github.com/repos/kijai/ComfyUI-KJNodes/git/blobs/b4f671463e36365e5c2ca4c5621efdb24134ef28"},{"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} \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/kj__LICENSE b/docs/hel-892/storyboard-reference/kj__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/storyboard-reference/kj__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/storyboard-reference/kj____init__.py b/docs/hel-892/storyboard-reference/kj____init__.py new file mode 100644 index 00000000..2a7f73e2 --- /dev/null +++ b/docs/hel-892/storyboard-reference/kj____init__.py @@ -0,0 +1,262 @@ +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"}, + "SimpleCalculatorKJ": {"class": SimpleCalculatorKJ, "name": "Simple Calculator KJ"}, + "SomethingToString": {"class": SomethingToString, "name": "Something To String"}, + "Sleep": {"class": Sleep, "name": "Sleep"}, + "VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"}, + "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"}, + "VAEDecodeLoopKJ": {"class": VAEDecodeLoopKJ, "name": "VAE Decode Loop 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"}, + + #tracks + "GetTrackRange": {"class": GetTrackRange, "name": "Get Track Range"}, + "AddNoiseToTrackPath": {"class": AddNoiseToTrackPath, "name": "Add Noise To Track"}, +} + +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/storyboard-reference/kj__nodes__image_nodes.py b/docs/hel-892/storyboard-reference/kj__nodes__image_nodes.py new file mode 100644 index 00000000..aac70d47 --- /dev/null +++ b/docs/hel-892/storyboard-reference/kj__nodes__image_nodes.py @@ -0,0 +1,4061 @@ +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 +from io import BytesIO + +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 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/storyboard-reference/kj__nodes__nodes.py b/docs/hel-892/storyboard-reference/kj__nodes__nodes.py new file mode 100644 index 00000000..372c8518 --- /dev/null +++ b/docs/hel-892/storyboard-reference/kj__nodes__nodes.py @@ -0,0 +1,2916 @@ +import torch +import torch.nn as nn +import numpy as np +from PIL import Image +import json, re, os, io, time +import importlib + +from comfy import model_management +import folder_paths +from nodes import MAX_RESOLUTION +from comfy.utils import common_upscale, ProgressBar, load_torch_file +from comfy.comfy_types.node_typing import IO +from comfy_api.latest import io +from io import BytesIO + +script_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +folder_paths.add_model_folder_path("kjnodes_fonts", os.path.join(script_directory, "fonts")) + +class BOOLConstant: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "value": ("BOOLEAN", {"default": True}), + }, + } + RETURN_TYPES = ("BOOLEAN",) + RETURN_NAMES = ("value",) + FUNCTION = "get_value" + CATEGORY = "KJNodes/constants" + + def get_value(self, value): + return (value,) + +class INTConstant: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "value": ("INT", {"default": 0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff}), + }, + } + RETURN_TYPES = ("INT",) + RETURN_NAMES = ("value",) + FUNCTION = "get_value" + CATEGORY = "KJNodes/constants" + + def get_value(self, value): + return (value,) + +class FloatConstant: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "value": ("FLOAT", {"default": 0.0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff, "step": 0.00001}), + }, + } + + RETURN_TYPES = ("FLOAT",) + RETURN_NAMES = ("value",) + FUNCTION = "get_value" + CATEGORY = "KJNodes/constants" + + def get_value(self, value): + return (round(value, 6),) + +class StringConstant: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "string": ("STRING", {"default": '', "multiline": False}), + } + } + RETURN_TYPES = ("STRING",) + FUNCTION = "passtring" + CATEGORY = "KJNodes/constants" + + def passtring(self, string): + return (string, ) + +class StringConstantMultiline: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "string": ("STRING", {"default": "", "multiline": True}), + "strip_newlines": ("BOOLEAN", {"default": True}), + } + } + RETURN_TYPES = ("STRING",) + FUNCTION = "stringify" + CATEGORY = "KJNodes/constants" + + def stringify(self, string, strip_newlines): + new_string = string + if strip_newlines: + new_string = new_string.replace('\n', '').strip() + return (new_string,) + + + +class ScaleBatchPromptSchedule: + + RETURN_TYPES = ("STRING",) + FUNCTION = "scaleschedule" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ +Scales a batch schedule from Fizz' nodes BatchPromptSchedule +to a different frame count. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "input_str": ("STRING", {"forceInput": True,"default": "0:(0.0),\n7:(1.0),\n15:(0.0)\n"}), + "old_frame_count": ("INT", {"forceInput": True,"default": 1,"min": 1, "max": 4096, "step": 1}), + "new_frame_count": ("INT", {"forceInput": True,"default": 1,"min": 1, "max": 4096, "step": 1}), + + }, + } + + def scaleschedule(self, old_frame_count, input_str, new_frame_count): + pattern = r'"(\d+)"\s*:\s*"(.*?)"(?:,|\Z)' + frame_strings = dict(re.findall(pattern, input_str)) + + # Calculate the scaling factor + scaling_factor = (new_frame_count - 1) / (old_frame_count - 1) + + # Initialize a dictionary to store the new frame numbers and strings + new_frame_strings = {} + + # Iterate over the frame numbers and strings + for old_frame, string in frame_strings.items(): + # Calculate the new frame number + new_frame = int(round(int(old_frame) * scaling_factor)) + + # Store the new frame number and corresponding string + new_frame_strings[new_frame] = string + + # Format the output string + output_str = ', '.join([f'"{k}":"{v}"' for k, v in sorted(new_frame_strings.items())]) + return (output_str,) + + +class GetLatentsFromBatchIndexed: + + RETURN_TYPES = ("LATENT",) + FUNCTION = "indexedlatentsfrombatch" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Selects and returns the latents at the specified indices as an latent batch. +""" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "latents": ("LATENT",), + "indexes": ("STRING", {"default": "0, 1, 2", "multiline": True}), + "latent_format": (["BCHW", "BTCHW", "BCTHW"], {"default": "BCHW"}), + }, + } + + def indexedlatentsfrombatch(self, latents, indexes, latent_format): + + samples = latents.copy() + latent_samples = samples["samples"] + + # 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 latents at the specified indices + if latent_format == "BCHW": + chosen_latents = latent_samples[indices_tensor] + elif latent_format == "BTCHW": + chosen_latents = latent_samples[:, indices_tensor] + elif latent_format == "BCTHW": + chosen_latents = latent_samples[:, :, indices_tensor] + + samples["samples"] = chosen_latents + return (samples,) + + +class ConditioningMultiCombine: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 20, "step": 1}), + "operation": (["combine", "concat"], {"default": "combine"}), + "conditioning_1": ("CONDITIONING", ), + "conditioning_2": ("CONDITIONING", ), + }, + } + + RETURN_TYPES = ("CONDITIONING", "INT") + RETURN_NAMES = ("combined", "inputcount") + FUNCTION = "combine" + CATEGORY = "KJNodes/masking/conditioning" + DESCRIPTION = """ +Combines multiple conditioning nodes into one +""" + + def combine(self, inputcount, operation, **kwargs): + from nodes import ConditioningCombine + from nodes import ConditioningConcat + cond_combine_node = ConditioningCombine() + cond_concat_node = ConditioningConcat() + cond = kwargs["conditioning_1"] + for c in range(1, inputcount): + new_cond = kwargs[f"conditioning_{c + 1}"] + if operation == "combine": + cond = cond_combine_node.combine(cond, new_cond)[0] + elif operation == "concat": + cond = cond_concat_node.concat(cond, new_cond)[0] + return (cond, inputcount,) + +class AppendStringsToList: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "string1": ("STRING", {"default": '', "forceInput": True}), + "string2": ("STRING", {"default": '', "forceInput": True}), + } + } + RETURN_TYPES = ("STRING",) + FUNCTION = "joinstring" + CATEGORY = "KJNodes/text" + + def joinstring(self, string1, string2): + if not isinstance(string1, list): + string1 = [string1] + if not isinstance(string2, list): + string2 = [string2] + + joined_string = string1 + string2 + return (joined_string, ) + +class JoinStrings: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "delimiter": ("STRING", {"default": ' ', "multiline": False}), + }, + "optional": { + "string1": ("STRING", {"default": '', "forceInput": True}), + "string2": ("STRING", {"default": '', "forceInput": True}), + } + } + RETURN_TYPES = ("STRING",) + FUNCTION = "joinstring" + CATEGORY = "KJNodes/text" + + def joinstring(self, delimiter, string1="", string2=""): + joined_string = string1 + delimiter + string2 + return (joined_string, ) + +class JoinStringMulti: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "inputcount": ("INT", {"default": 2, "min": 2, "max": 1000, "step": 1}), + "string_1": ("STRING", {"default": '', "forceInput": True}), + "delimiter": ("STRING", {"default": ' ', "multiline": False}), + "return_list": ("BOOLEAN", {"default": False}), + }, + "optional": { + "string_2": ("STRING", {"default": '', "forceInput": True}), + } + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("string",) + FUNCTION = "combine" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +Creates single string, or a list of strings, from +multiple input strings. +You can set how many inputs the node has, +with the **inputcount** and clicking update. +""" + + def combine(self, inputcount, delimiter, **kwargs): + string = kwargs["string_1"] + return_list = kwargs["return_list"] + strings = [string] # Initialize a list with the first string + for c in range(1, inputcount): + new_string = kwargs.get(f"string_{c + 1}", "") + if not new_string: + continue + if return_list: + strings.append(new_string) # Add new string to the list + else: + string = string + delimiter + new_string + if return_list: + return (strings,) # Return the list of strings + else: + return (string,) # Return the combined string + +class CondPassThrough: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + }, + "optional": { + "positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + }, + } + + RETURN_TYPES = ("CONDITIONING", "CONDITIONING",) + RETURN_NAMES = ("positive", "negative") + FUNCTION = "passthrough" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ + Simply passes through the positive and negative conditioning, + workaround for Set node not allowing bypassed inputs. +""" + + def passthrough(self, positive=None, negative=None): + return (positive, negative,) + +class ModelPassThrough: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + }, + "optional": { + "model": ("MODEL", ), + }, + } + + RETURN_TYPES = ("MODEL", ) + RETURN_NAMES = ("model",) + FUNCTION = "passthrough" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ + Simply passes through the model, + workaround for Set node not allowing bypassed inputs. +""" + + def passthrough(self, model=None): + return (model,) + +def append_helper(t, mask, c, set_area_to_bounds, strength): + n = [t[0], t[1].copy()] + _, h, w = mask.shape + n[1]['mask'] = mask + n[1]['set_area_to_bounds'] = set_area_to_bounds + n[1]['mask_strength'] = strength + c.append(n) + +class ConditioningSetMaskAndCombine: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "positive_1": ("CONDITIONING", ), + "negative_1": ("CONDITIONING", ), + "positive_2": ("CONDITIONING", ), + "negative_2": ("CONDITIONING", ), + "mask_1": ("MASK", ), + "mask_2": ("MASK", ), + "mask_1_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_2_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING",) + RETURN_NAMES = ("combined_positive", "combined_negative",) + FUNCTION = "append" + CATEGORY = "KJNodes/masking/conditioning" + DESCRIPTION = """ +Bundles multiple conditioning mask and combine nodes into one,functionality is identical to ComfyUI native nodes +""" + + def append(self, positive_1, negative_1, positive_2, negative_2, mask_1, mask_2, set_cond_area, mask_1_strength, mask_2_strength): + c = [] + c2 = [] + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask_1.shape) < 3: + mask_1 = mask_1.unsqueeze(0) + if len(mask_2.shape) < 3: + mask_2 = mask_2.unsqueeze(0) + for t in positive_1: + append_helper(t, mask_1, c, set_area_to_bounds, mask_1_strength) + for t in positive_2: + append_helper(t, mask_2, c, set_area_to_bounds, mask_2_strength) + for t in negative_1: + append_helper(t, mask_1, c2, set_area_to_bounds, mask_1_strength) + for t in negative_2: + append_helper(t, mask_2, c2, set_area_to_bounds, mask_2_strength) + return (c, c2) + +class ConditioningSetMaskAndCombine3: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "positive_1": ("CONDITIONING", ), + "negative_1": ("CONDITIONING", ), + "positive_2": ("CONDITIONING", ), + "negative_2": ("CONDITIONING", ), + "positive_3": ("CONDITIONING", ), + "negative_3": ("CONDITIONING", ), + "mask_1": ("MASK", ), + "mask_2": ("MASK", ), + "mask_3": ("MASK", ), + "mask_1_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_2_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_3_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING",) + RETURN_NAMES = ("combined_positive", "combined_negative",) + FUNCTION = "append" + CATEGORY = "KJNodes/masking/conditioning" + DESCRIPTION = """ +Bundles multiple conditioning mask and combine nodes into one,functionality is identical to ComfyUI native nodes +""" + + def append(self, positive_1, negative_1, positive_2, positive_3, negative_2, negative_3, mask_1, mask_2, mask_3, set_cond_area, mask_1_strength, mask_2_strength, mask_3_strength): + c = [] + c2 = [] + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask_1.shape) < 3: + mask_1 = mask_1.unsqueeze(0) + if len(mask_2.shape) < 3: + mask_2 = mask_2.unsqueeze(0) + if len(mask_3.shape) < 3: + mask_3 = mask_3.unsqueeze(0) + for t in positive_1: + append_helper(t, mask_1, c, set_area_to_bounds, mask_1_strength) + for t in positive_2: + append_helper(t, mask_2, c, set_area_to_bounds, mask_2_strength) + for t in positive_3: + append_helper(t, mask_3, c, set_area_to_bounds, mask_3_strength) + for t in negative_1: + append_helper(t, mask_1, c2, set_area_to_bounds, mask_1_strength) + for t in negative_2: + append_helper(t, mask_2, c2, set_area_to_bounds, mask_2_strength) + for t in negative_3: + append_helper(t, mask_3, c2, set_area_to_bounds, mask_3_strength) + return (c, c2) + +class ConditioningSetMaskAndCombine4: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "positive_1": ("CONDITIONING", ), + "negative_1": ("CONDITIONING", ), + "positive_2": ("CONDITIONING", ), + "negative_2": ("CONDITIONING", ), + "positive_3": ("CONDITIONING", ), + "negative_3": ("CONDITIONING", ), + "positive_4": ("CONDITIONING", ), + "negative_4": ("CONDITIONING", ), + "mask_1": ("MASK", ), + "mask_2": ("MASK", ), + "mask_3": ("MASK", ), + "mask_4": ("MASK", ), + "mask_1_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_2_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_3_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_4_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING",) + RETURN_NAMES = ("combined_positive", "combined_negative",) + FUNCTION = "append" + CATEGORY = "KJNodes/masking/conditioning" + DESCRIPTION = """ +Bundles multiple conditioning mask and combine nodes into one,functionality is identical to ComfyUI native nodes +""" + + def append(self, positive_1, negative_1, positive_2, positive_3, positive_4, negative_2, negative_3, negative_4, mask_1, mask_2, mask_3, mask_4, set_cond_area, mask_1_strength, mask_2_strength, mask_3_strength, mask_4_strength): + c = [] + c2 = [] + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask_1.shape) < 3: + mask_1 = mask_1.unsqueeze(0) + if len(mask_2.shape) < 3: + mask_2 = mask_2.unsqueeze(0) + if len(mask_3.shape) < 3: + mask_3 = mask_3.unsqueeze(0) + if len(mask_4.shape) < 3: + mask_4 = mask_4.unsqueeze(0) + for t in positive_1: + append_helper(t, mask_1, c, set_area_to_bounds, mask_1_strength) + for t in positive_2: + append_helper(t, mask_2, c, set_area_to_bounds, mask_2_strength) + for t in positive_3: + append_helper(t, mask_3, c, set_area_to_bounds, mask_3_strength) + for t in positive_4: + append_helper(t, mask_4, c, set_area_to_bounds, mask_4_strength) + for t in negative_1: + append_helper(t, mask_1, c2, set_area_to_bounds, mask_1_strength) + for t in negative_2: + append_helper(t, mask_2, c2, set_area_to_bounds, mask_2_strength) + for t in negative_3: + append_helper(t, mask_3, c2, set_area_to_bounds, mask_3_strength) + for t in negative_4: + append_helper(t, mask_4, c2, set_area_to_bounds, mask_4_strength) + return (c, c2) + +class ConditioningSetMaskAndCombine5: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "positive_1": ("CONDITIONING", ), + "negative_1": ("CONDITIONING", ), + "positive_2": ("CONDITIONING", ), + "negative_2": ("CONDITIONING", ), + "positive_3": ("CONDITIONING", ), + "negative_3": ("CONDITIONING", ), + "positive_4": ("CONDITIONING", ), + "negative_4": ("CONDITIONING", ), + "positive_5": ("CONDITIONING", ), + "negative_5": ("CONDITIONING", ), + "mask_1": ("MASK", ), + "mask_2": ("MASK", ), + "mask_3": ("MASK", ), + "mask_4": ("MASK", ), + "mask_5": ("MASK", ), + "mask_1_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_2_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_3_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_4_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "mask_5_strength": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}), + "set_cond_area": (["default", "mask bounds"],), + } + } + + RETURN_TYPES = ("CONDITIONING","CONDITIONING",) + RETURN_NAMES = ("combined_positive", "combined_negative",) + FUNCTION = "append" + CATEGORY = "KJNodes/masking/conditioning" + DESCRIPTION = """ +Bundles multiple conditioning mask and combine nodes into one,functionality is identical to ComfyUI native nodes +""" + + def append(self, positive_1, negative_1, positive_2, positive_3, positive_4, positive_5, negative_2, negative_3, negative_4, negative_5, mask_1, mask_2, mask_3, mask_4, mask_5, set_cond_area, mask_1_strength, mask_2_strength, mask_3_strength, mask_4_strength, mask_5_strength): + c = [] + c2 = [] + set_area_to_bounds = False + if set_cond_area != "default": + set_area_to_bounds = True + if len(mask_1.shape) < 3: + mask_1 = mask_1.unsqueeze(0) + if len(mask_2.shape) < 3: + mask_2 = mask_2.unsqueeze(0) + if len(mask_3.shape) < 3: + mask_3 = mask_3.unsqueeze(0) + if len(mask_4.shape) < 3: + mask_4 = mask_4.unsqueeze(0) + if len(mask_5.shape) < 3: + mask_5 = mask_5.unsqueeze(0) + for t in positive_1: + append_helper(t, mask_1, c, set_area_to_bounds, mask_1_strength) + for t in positive_2: + append_helper(t, mask_2, c, set_area_to_bounds, mask_2_strength) + for t in positive_3: + append_helper(t, mask_3, c, set_area_to_bounds, mask_3_strength) + for t in positive_4: + append_helper(t, mask_4, c, set_area_to_bounds, mask_4_strength) + for t in positive_5: + append_helper(t, mask_5, c, set_area_to_bounds, mask_5_strength) + for t in negative_1: + append_helper(t, mask_1, c2, set_area_to_bounds, mask_1_strength) + for t in negative_2: + append_helper(t, mask_2, c2, set_area_to_bounds, mask_2_strength) + for t in negative_3: + append_helper(t, mask_3, c2, set_area_to_bounds, mask_3_strength) + for t in negative_4: + append_helper(t, mask_4, c2, set_area_to_bounds, mask_4_strength) + for t in negative_5: + append_helper(t, mask_5, c2, set_area_to_bounds, mask_5_strength) + return (c, c2) + +class VRAM_Debug: + + @classmethod + + def INPUT_TYPES(s): + return { + "required": { + + "empty_cache": ("BOOLEAN", {"default": True}), + "gc_collect": ("BOOLEAN", {"default": True}), + "unload_all_models": ("BOOLEAN", {"default": False}), + }, + "optional": { + "any_input": (IO.ANY,), + "image_pass": ("IMAGE",), + "model_pass": ("MODEL",), + } + } + + RETURN_TYPES = (IO.ANY, "IMAGE","MODEL","INT", "INT",) + RETURN_NAMES = ("any_output", "image_pass", "model_pass", "freemem_before", "freemem_after") + FUNCTION = "VRAMdebug" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ +Returns the inputs unchanged, they are only used as triggers, +and performs comfy model management functions and garbage collection, +reports free VRAM before and after the operations. +""" + + def VRAMdebug(self, gc_collect, empty_cache, unload_all_models, image_pass=None, model_pass=None, any_input=None): + freemem_before = model_management.get_free_memory() + print("VRAMdebug: free memory before: ", f"{freemem_before:,.0f}") + if empty_cache: + model_management.soft_empty_cache() + if unload_all_models: + model_management.unload_all_models() + if gc_collect: + import gc + gc.collect() + freemem_after = model_management.get_free_memory() + print("VRAMdebug: free memory after: ", f"{freemem_after:,.0f}") + print("VRAMdebug: freed memory: ", f"{freemem_after - freemem_before:,.0f}") + return {"ui": { + "text": [f"{freemem_before:,.0f}x{freemem_after:,.0f}"]}, + "result": (any_input, image_pass, model_pass, freemem_before, freemem_after) + } + +class SomethingToString: + @classmethod + + def INPUT_TYPES(s): + return { + "required": { + "input": (IO.ANY, ), + }, + "optional": { + "prefix": ("STRING", {"default": ""}), + "suffix": ("STRING", {"default": ""}), + } + } + RETURN_TYPES = ("STRING",) + FUNCTION = "stringify" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +Converts any type to a string. +""" + + def stringify(self, input, prefix="", suffix=""): + if isinstance(input, (int, float, bool, str)): + stringified = str(input) + elif isinstance(input, list): + stringified = ', '.join(str(item) for item in input) + else: + return input, + if prefix: # Check if prefix is not empty + stringified = prefix + stringified # Add the prefix + if suffix: # Check if suffix is not empty + stringified = stringified + suffix # Add the suffix + + return (stringified,) + +class Sleep: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "input": (IO.ANY, ), + "minutes": ("INT", {"default": 0, "min": 0, "max": 1439}), + "seconds": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 59.99, "step": 0.01}), + }, + } + RETURN_TYPES = (IO.ANY,) + FUNCTION = "sleepdelay" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ +Delays the execution for the input amount of time. +""" + + def sleepdelay(self, input, minutes, seconds): + total_seconds = minutes * 60 + seconds + time.sleep(total_seconds) + return input, + +class EmptyLatentImagePresets: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "dimensions": ( + [ + '512 x 512 (1:1)', + '768 x 512 (1.5:1)', + '960 x 512 (1.875:1)', + '1024 x 512 (2:1)', + '1024 x 576 (1.778:1)', + '1536 x 640 (2.4:1)', + '1344 x 768 (1.75:1)', + '1216 x 832 (1.46:1)', + '1152 x 896 (1.286:1)', + '1024 x 1024 (1:1)', + ], + { + "default": '512 x 512 (1:1)' + }), + + "invert": ("BOOLEAN", {"default": False}), + "batch_size": ("INT", { + "default": 1, + "min": 1, + "max": 4096 + }), + }, + } + + RETURN_TYPES = ("LATENT", "INT", "INT") + RETURN_NAMES = ("Latent", "Width", "Height") + FUNCTION = "generate" + CATEGORY = "KJNodes/latents" + + def generate(self, dimensions, invert, batch_size): + from nodes import EmptyLatentImage + result = [x.strip() for x in dimensions.split('x')] + + # Remove the aspect ratio part + result[0] = result[0].split('(')[0].strip() + result[1] = result[1].split('(')[0].strip() + + if invert: + width = int(result[1].split(' ')[0]) + height = int(result[0]) + else: + width = int(result[0]) + height = int(result[1].split(' ')[0]) + latent = EmptyLatentImage().generate(width, height, batch_size)[0] + + return (latent, int(width), int(height),) + +class EmptyLatentImageCustomPresets: + @classmethod + def INPUT_TYPES(cls): + try: + with open(os.path.join(script_directory, 'custom_dimensions.json')) as f: + dimensions_dict = json.load(f) + except FileNotFoundError: + dimensions_dict = [] + return { + "required": { + "dimensions": ( + [f"{d['label']} - {d['value']}" for d in dimensions_dict], + ), + + "invert": ("BOOLEAN", {"default": False}), + "batch_size": ("INT", { + "default": 1, + "min": 1, + "max": 4096 + }), + }, + } + + RETURN_TYPES = ("LATENT", "INT", "INT") + RETURN_NAMES = ("Latent", "Width", "Height") + FUNCTION = "generate" + CATEGORY = "KJNodes/latents" + DESCRIPTION = """ +Generates an empty latent image with the specified dimensions. +The choices are loaded from 'custom_dimensions.json' in the nodes folder. +""" + + def generate(self, dimensions, invert, batch_size): + from nodes import EmptyLatentImage + # Split the string into label and value + label, value = dimensions.split(' - ') + # Split the value into width and height + width, height = [x.strip() for x in value.split('x')] + + if invert: + width, height = height, width + + latent = EmptyLatentImage().generate(int(width), int(height), batch_size)[0] + + return (latent, int(width), int(height),) + +class WidgetToString: + @classmethod + def IS_CHANGED(cls,*,id,node_title,any_input,**kwargs): + if any_input is not None and (id != 0 or node_title != ""): + return float("NaN") + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "id": ("INT", {"default": 0, "min": 0, "max": 100000, "step": 1}), + "widget_name": ("STRING", {"multiline": False}), + "return_all": ("BOOLEAN", {"default": False}), + }, + "optional": { + "any_input": (IO.ANY, ), + "node_title": ("STRING", {"multiline": False}), + "allowed_float_decimals": ("INT", {"default": 2, "min": 0, "max": 10, "tooltip": "Number of decimal places to display for float values"}), + + }, + "hidden": {"extra_pnginfo": "EXTRA_PNGINFO", + "prompt": "PROMPT", + "unique_id": "UNIQUE_ID",}, + } + + RETURN_TYPES = ("STRING", ) + FUNCTION = "get_widget_value" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +Selects a node and it's specified widget and outputs the value as a string. +If no node id or title is provided it will use the 'any_input' link and use that node. +To see node id's, enable node id display from Manager badge menu. +Alternatively you can search with the node title. Node titles ONLY exist if they +are manually edited! +The 'any_input' is required for making sure the node you want the value from exists in the workflow. +""" + + def get_widget_value(self, id, widget_name, extra_pnginfo, prompt, unique_id, return_all=False, any_input=None, node_title="", allowed_float_decimals=2): + workflow = extra_pnginfo["workflow"] + #print(json.dumps(workflow, indent=4)) + results = [] + node_id = None # Initialize node_id to handle cases where no match is found + link_id = None + link_to_node_map = {} + + for node in workflow["nodes"]: + if node_title: + if "title" in node: + if node["title"] == node_title: + node_id = node["id"] + break + else: + print("Node title not found.") + elif id != 0: + if node["id"] == id: + node_id = id + break + elif any_input is not None: + if node["type"] == "WidgetToString" and node["id"] == int(unique_id) and not link_id: + for node_input in node["inputs"]: + if node_input["name"] == "any_input": + link_id = node_input["link"] + + # Construct a map of links to node IDs for future reference + node_outputs = node.get("outputs", None) + if not node_outputs: + continue + for output in node_outputs: + node_links = output.get("links", None) + if not node_links: + continue + for link in node_links: + link_to_node_map[link] = node["id"] + if link_id and link == link_id: + break + + if link_id: + node_id = link_to_node_map.get(link_id, None) + + if node_id is None: + raise ValueError("No matching node found for the given title or id") + + values = prompt[str(node_id)] + if "inputs" in values: + if return_all: + # Format items based on type + formatted_items = [] + for k, v in values["inputs"].items(): + if isinstance(v, float): + item = f"{k}: {v:.{allowed_float_decimals}f}" + else: + item = f"{k}: {str(v)}" + formatted_items.append(item) + results.append(', '.join(formatted_items)) + elif widget_name in values["inputs"]: + v = values["inputs"][widget_name] + if isinstance(v, float): + v = f"{v:.{allowed_float_decimals}f}" + else: + v = str(v) + return (v, ) + else: + raise NameError(f"Widget not found: {node_id}.{widget_name}") + return (', '.join(results).strip(', '), ) + +class DummyOut: + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "any_input": (IO.ANY, ), + } + } + + RETURN_TYPES = (IO.ANY,) + FUNCTION = "dummy" + CATEGORY = "KJNodes/misc" + OUTPUT_NODE = True + DESCRIPTION = """ +Does nothing, used to trigger generic workflow output. +A way to get previews in the UI without saving anything to disk. +""" + + def dummy(self, any_input): + return (any_input,) + +class FlipSigmasAdjusted: + @classmethod + def INPUT_TYPES(s): + return {"required": + {"sigmas": ("SIGMAS", ), + "divide_by_last_sigma": ("BOOLEAN", {"default": False}), + "divide_by": ("FLOAT", {"default": 1,"min": 1, "max": 255, "step": 0.01}), + "offset_by": ("INT", {"default": 1,"min": -100, "max": 100, "step": 1}), + } + } + RETURN_TYPES = ("SIGMAS", "STRING",) + RETURN_NAMES = ("SIGMAS", "sigmas_string",) + CATEGORY = "KJNodes/noise" + FUNCTION = "get_sigmas_adjusted" + + def get_sigmas_adjusted(self, sigmas, divide_by_last_sigma, divide_by, offset_by): + + sigmas = sigmas.flip(0) + if sigmas[0] == 0: + sigmas[0] = 0.0001 + adjusted_sigmas = sigmas.clone() + #offset sigma + for i in range(1, len(sigmas)): + offset_index = i - offset_by + if 0 <= offset_index < len(sigmas): + adjusted_sigmas[i] = sigmas[offset_index] + else: + adjusted_sigmas[i] = 0.0001 + if adjusted_sigmas[0] == 0: + adjusted_sigmas[0] = 0.0001 + if divide_by_last_sigma: + adjusted_sigmas = adjusted_sigmas / adjusted_sigmas[-1] + + sigma_np_array = adjusted_sigmas.numpy() + array_string = np.array2string(sigma_np_array, precision=2, separator=', ', threshold=np.inf) + adjusted_sigmas = adjusted_sigmas / divide_by + return (adjusted_sigmas, array_string,) + +class CustomSigmas: + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "sigmas_string" :("STRING", {"default": "14.615, 6.475, 3.861, 2.697, 1.886, 1.396, 0.963, 0.652, 0.399, 0.152, 0.029","multiline": True}), + "interpolate_to_steps": ("INT", {"default": 10,"min": 0, "max": 255, "step": 1}), + } + } + RETURN_TYPES = ("SIGMAS",) + RETURN_NAMES = ("SIGMAS",) + CATEGORY = "KJNodes/noise" + FUNCTION = "customsigmas" + DESCRIPTION = """ +Creates a sigmas tensor from a string of comma separated values. +Examples: + +Nvidia's optimized AYS 10 step schedule for SD 1.5: +14.615, 6.475, 3.861, 2.697, 1.886, 1.396, 0.963, 0.652, 0.399, 0.152, 0.029 +SDXL: +14.615, 6.315, 3.771, 2.181, 1.342, 0.862, 0.555, 0.380, 0.234, 0.113, 0.029 +SVD: +700.00, 54.5, 15.886, 7.977, 4.248, 1.789, 0.981, 0.403, 0.173, 0.034, 0.002 +""" + def customsigmas(self, sigmas_string, interpolate_to_steps): + sigmas_list = sigmas_string.split(', ') + sigmas_float_list = [float(sigma) for sigma in sigmas_list] + sigmas_tensor = torch.FloatTensor(sigmas_float_list) + if len(sigmas_tensor) != interpolate_to_steps + 1: + sigmas_tensor = self.loglinear_interp(sigmas_tensor, interpolate_to_steps + 1) + sigmas_tensor[-1] = 0 + return (sigmas_tensor.float(),) + + def loglinear_interp(self, t_steps, num_steps): + """ + Performs log-linear interpolation of a given array of decreasing numbers. + """ + t_steps_np = t_steps.numpy() + + xs = np.linspace(0, 1, len(t_steps_np)) + ys = np.log(t_steps_np[::-1]) + + new_xs = np.linspace(0, 1, num_steps) + new_ys = np.interp(new_xs, xs, ys) + + interped_ys = np.exp(new_ys)[::-1].copy() + interped_ys_tensor = torch.tensor(interped_ys) + return interped_ys_tensor + +class StringToFloatList: + @classmethod + def INPUT_TYPES(s): + return {"required": + { + "string" :("STRING", {"default": "1, 2, 3", "multiline": True}), + } + } + RETURN_TYPES = ("FLOAT",) + RETURN_NAMES = ("FLOAT",) + CATEGORY = "KJNodes/misc" + FUNCTION = "createlist" + + def createlist(self, string): + float_list = [float(x.strip()) for x in string.split(',')] + return (float_list,) + + +class InjectNoiseToLatent: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "latents":("LATENT",), + "strength": ("FLOAT", {"default": 0.1, "min": 0.0, "max": 200.0, "step": 0.0001}), + "noise": ("LATENT",), + "normalize": ("BOOLEAN", {"default": False}), + "average": ("BOOLEAN", {"default": False}), + }, + "optional":{ + "mask": ("MASK", ), + "mix_randn_amount": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1000.0, "step": 0.001}), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + } + } + + RETURN_TYPES = ("LATENT",) + FUNCTION = "injectnoise" + CATEGORY = "KJNodes/noise" + + def injectnoise(self, latents, strength, noise, normalize, average, mix_randn_amount=0, seed=None, mask=None): + samples = latents["samples"].clone().cpu() + noise = noise["samples"].clone().cpu() + if samples.shape != samples.shape: + raise ValueError("InjectNoiseToLatent: Latent and noise must have the same shape") + if average: + noised = (samples + noise) / 2 + else: + noised = samples + noise * strength + if normalize: + noised = noised / noised.std() + if mask is not None: + mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(noised.shape[2], noised.shape[3]), mode="bilinear") + mask = mask.expand((-1,noised.shape[1],-1,-1)) + if mask.shape[0] < noised.shape[0]: + mask = mask.repeat((noised.shape[0] -1) // mask.shape[0] + 1, 1, 1, 1)[:noised.shape[0]] + noised = mask * noised + (1-mask) * samples + if mix_randn_amount > 0: + if seed is not None: + generator = torch.manual_seed(seed) + rand_noise = torch.randn(noised.size(), dtype=noised.dtype, layout=noised.layout, generator=generator, device="cpu") + noised = noised + (mix_randn_amount * rand_noise) + + return ({"samples":noised},) + +class SoundReactive: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "sound_level": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 99999, "step": 0.01}), + "start_range_hz": ("INT", {"default": 150, "min": 0, "max": 9999, "step": 1}), + "end_range_hz": ("INT", {"default": 2000, "min": 0, "max": 9999, "step": 1}), + "multiplier": ("FLOAT", {"default": 1.0, "min": 0.01, "max": 99999, "step": 0.01}), + "smoothing_factor": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}), + "normalize": ("BOOLEAN", {"default": False}), + }, + } + + RETURN_TYPES = ("FLOAT","INT",) + RETURN_NAMES =("sound_level", "sound_level_int",) + FUNCTION = "react" + CATEGORY = "KJNodes/audio" + DESCRIPTION = """ +Reacts to the sound level of the input. +Uses your browsers sound input options and requires. +Meant to be used with realtime diffusion with autoqueue. +""" + + def react(self, sound_level, start_range_hz, end_range_hz, smoothing_factor, multiplier, normalize): + + sound_level *= multiplier + + if normalize: + sound_level /= 255 + + sound_level_int = int(sound_level) + return (sound_level, sound_level_int, ) + +class GenerateNoise: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "width": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "height": ("INT", {"default": 512,"min": 16, "max": 4096, "step": 1}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096}), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + "multiplier": ("FLOAT", {"default": 1.0,"min": 0.0, "max": 4096, "step": 0.01}), + "constant_batch_noise": ("BOOLEAN", {"default": False}), + "normalize": ("BOOLEAN", {"default": False}), + }, + "optional": { + "model": ("MODEL", ), + "sigmas": ("SIGMAS", ), + "latent_channels": (['4', '16', ],), + "shape": (["BCHW", "BCTHW","BTCHW",],), + } + } + + RETURN_TYPES = ("LATENT",) + FUNCTION = "generatenoise" + CATEGORY = "KJNodes/noise" + DESCRIPTION = """ +Generates noise for injection or to be used as empty latents on samplers with add_noise off. +""" + + def generatenoise(self, batch_size, width, height, seed, multiplier, constant_batch_noise, normalize, sigmas=None, model=None, latent_channels=4, shape="BCHW"): + + generator = torch.manual_seed(seed) + if shape == "BCHW": + noise = torch.randn([batch_size, int(latent_channels), height // 8, width // 8], dtype=torch.float32, layout=torch.strided, generator=generator, device="cpu") + elif shape == "BCTHW": + noise = torch.randn([1, int(latent_channels), batch_size,height // 8, width // 8], dtype=torch.float32, layout=torch.strided, generator=generator, device="cpu") + elif shape == "BTCHW": + noise = torch.randn([1, batch_size, int(latent_channels), height // 8, width // 8], dtype=torch.float32, layout=torch.strided, generator=generator, device="cpu") + if sigmas is not None: + sigma = sigmas[0] - sigmas[-1] + sigma /= model.model.latent_format.scale_factor + noise *= sigma + + noise *=multiplier + + if normalize: + noise = noise / noise.std() + if constant_batch_noise: + noise = noise[0].repeat(batch_size, 1, 1, 1) + + + return ({"samples":noise}, ) + +def camera_embeddings(elevation, azimuth): + elevation = torch.as_tensor([elevation]) + azimuth = torch.as_tensor([azimuth]) + embeddings = torch.stack( + [ + torch.deg2rad( + (90 - elevation) - (90) + ), # Zero123 polar is 90-elevation + torch.sin(torch.deg2rad(azimuth)), + torch.cos(torch.deg2rad(azimuth)), + torch.deg2rad( + 90 - torch.full_like(elevation, 0) + ), + ], dim=-1).unsqueeze(1) + + return embeddings + +def interpolate_angle(start, end, fraction): + # Calculate the difference in angles and adjust for wraparound if necessary + diff = (end - start + 540) % 360 - 180 + # Apply fraction to the difference + interpolated = start + fraction * diff + # Normalize the result to be within the range of -180 to 180 + return (interpolated + 180) % 360 - 180 + + +class StableZero123_BatchSchedule: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_vision": ("CLIP_VISION",), + "init_image": ("IMAGE",), + "vae": ("VAE",), + "width": ("INT", {"default": 256, "min": 16, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 256, "min": 16, "max": MAX_RESOLUTION, "step": 8}), + "batch_size": ("INT", {"default": 1, "min": 1, "max": 4096}), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out"],), + "azimuth_points_string": ("STRING", {"default": "0:(0.0),\n7:(1.0),\n15:(0.0)\n", "multiline": True}), + "elevation_points_string": ("STRING", {"default": "0:(0.0),\n7:(0.0),\n15:(0.0)\n", "multiline": True}), + }} + + RETURN_TYPES = ("CONDITIONING", "CONDITIONING", "LATENT") + RETURN_NAMES = ("positive", "negative", "latent") + FUNCTION = "encode" + CATEGORY = "KJNodes/experimental" + + def encode(self, clip_vision, init_image, vae, width, height, batch_size, azimuth_points_string, elevation_points_string, interpolation): + output = clip_vision.encode_image(init_image) + pooled = output.image_embeds.unsqueeze(0) + pixels = common_upscale(init_image.movedim(-1,1), width, height, "bilinear", "center").movedim(1,-1) + encode_pixels = pixels[:,:,:,:3] + t = vae.encode(encode_pixels) + + 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 + + # Parse the azimuth input string into a list of tuples + azimuth_points = [] + azimuth_points_string = azimuth_points_string.rstrip(',\n') + for point_str in azimuth_points_string.split(','): + frame_str, azimuth_str = point_str.split(':') + frame = int(frame_str.strip()) + azimuth = float(azimuth_str.strip()[1:-1]) + azimuth_points.append((frame, azimuth)) + # Sort the points by frame number + azimuth_points.sort(key=lambda x: x[0]) + + # Parse the elevation input string into a list of tuples + elevation_points = [] + elevation_points_string = elevation_points_string.rstrip(',\n') + for point_str in elevation_points_string.split(','): + frame_str, elevation_str = point_str.split(':') + frame = int(frame_str.strip()) + elevation_val = float(elevation_str.strip()[1:-1]) + elevation_points.append((frame, elevation_val)) + # Sort the points by frame number + elevation_points.sort(key=lambda x: x[0]) + + # Index of the next point to interpolate towards + next_point = 1 + next_elevation_point = 1 + + positive_cond_out = [] + positive_pooled_out = [] + negative_cond_out = [] + negative_pooled_out = [] + + #azimuth interpolation + for i in range(batch_size): + # Find the interpolated azimuth for the current frame + while next_point < len(azimuth_points) and i >= azimuth_points[next_point][0]: + next_point += 1 + # If next_point is equal to the length of points, we've gone past the last point + if next_point == len(azimuth_points): + next_point -= 1 # Set next_point to the last index of points + prev_point = max(next_point - 1, 0) # Ensure prev_point is not less than 0 + + # Calculate fraction + if azimuth_points[next_point][0] != azimuth_points[prev_point][0]: # Prevent division by zero + fraction = (i - azimuth_points[prev_point][0]) / (azimuth_points[next_point][0] - azimuth_points[prev_point][0]) + if interpolation == "ease_in": + fraction = ease_in(fraction) + elif interpolation == "ease_out": + fraction = ease_out(fraction) + elif interpolation == "ease_in_out": + fraction = ease_in_out(fraction) + + # Use the new interpolate_angle function + interpolated_azimuth = interpolate_angle(azimuth_points[prev_point][1], azimuth_points[next_point][1], fraction) + else: + interpolated_azimuth = azimuth_points[prev_point][1] + # Interpolate the elevation + next_elevation_point = 1 + while next_elevation_point < len(elevation_points) and i >= elevation_points[next_elevation_point][0]: + next_elevation_point += 1 + if next_elevation_point == len(elevation_points): + next_elevation_point -= 1 + prev_elevation_point = max(next_elevation_point - 1, 0) + + if elevation_points[next_elevation_point][0] != elevation_points[prev_elevation_point][0]: + fraction = (i - elevation_points[prev_elevation_point][0]) / (elevation_points[next_elevation_point][0] - elevation_points[prev_elevation_point][0]) + if interpolation == "ease_in": + fraction = ease_in(fraction) + elif interpolation == "ease_out": + fraction = ease_out(fraction) + elif interpolation == "ease_in_out": + fraction = ease_in_out(fraction) + + interpolated_elevation = interpolate_angle(elevation_points[prev_elevation_point][1], elevation_points[next_elevation_point][1], fraction) + else: + interpolated_elevation = elevation_points[prev_elevation_point][1] + + cam_embeds = camera_embeddings(interpolated_elevation, interpolated_azimuth) + cond = torch.cat([pooled, cam_embeds.repeat((pooled.shape[0], 1, 1))], dim=-1) + + positive_pooled_out.append(t) + positive_cond_out.append(cond) + negative_pooled_out.append(torch.zeros_like(t)) + negative_cond_out.append(torch.zeros_like(pooled)) + + # Concatenate the conditions and pooled outputs + final_positive_cond = torch.cat(positive_cond_out, dim=0) + final_positive_pooled = torch.cat(positive_pooled_out, dim=0) + final_negative_cond = torch.cat(negative_cond_out, dim=0) + final_negative_pooled = torch.cat(negative_pooled_out, dim=0) + + # Structure the final output + final_positive = [[final_positive_cond, {"concat_latent_image": final_positive_pooled}]] + final_negative = [[final_negative_cond, {"concat_latent_image": final_negative_pooled}]] + + latent = torch.zeros([batch_size, 4, height // 8, width // 8]) + return (final_positive, final_negative, {"samples": latent}) + +def linear_interpolate(start, end, fraction): + return start + (end - start) * fraction + +class SV3D_BatchSchedule: + @classmethod + def INPUT_TYPES(s): + return {"required": { "clip_vision": ("CLIP_VISION",), + "init_image": ("IMAGE",), + "vae": ("VAE",), + "width": ("INT", {"default": 576, "min": 16, "max": MAX_RESOLUTION, "step": 8}), + "height": ("INT", {"default": 576, "min": 16, "max": MAX_RESOLUTION, "step": 8}), + "batch_size": ("INT", {"default": 21, "min": 1, "max": 4096}), + "interpolation": (["linear", "ease_in", "ease_out", "ease_in_out"],), + "azimuth_points_string": ("STRING", {"default": "0:(0.0),\n9:(180.0),\n20:(360.0)\n", "multiline": True}), + "elevation_points_string": ("STRING", {"default": "0:(0.0),\n9:(0.0),\n20:(0.0)\n", "multiline": True}), + }} + + RETURN_TYPES = ("CONDITIONING", "CONDITIONING", "LATENT") + RETURN_NAMES = ("positive", "negative", "latent") + FUNCTION = "encode" + CATEGORY = "KJNodes/experimental" + DESCRIPTION = """ +Allow scheduling of the azimuth and elevation conditions for SV3D. +Note that SV3D is still a video model and the schedule needs to always go forward +https://huggingface.co/stabilityai/sv3d +""" + + def encode(self, clip_vision, init_image, vae, width, height, batch_size, azimuth_points_string, elevation_points_string, interpolation): + output = clip_vision.encode_image(init_image) + pooled = output.image_embeds.unsqueeze(0) + pixels = common_upscale(init_image.movedim(-1,1), width, height, "bilinear", "center").movedim(1,-1) + encode_pixels = pixels[:,:,:,:3] + t = vae.encode(encode_pixels) + + 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 + + # Parse the azimuth input string into a list of tuples + azimuth_points = [] + azimuth_points_string = azimuth_points_string.rstrip(',\n') + for point_str in azimuth_points_string.split(','): + frame_str, azimuth_str = point_str.split(':') + frame = int(frame_str.strip()) + azimuth = float(azimuth_str.strip()[1:-1]) + azimuth_points.append((frame, azimuth)) + # Sort the points by frame number + azimuth_points.sort(key=lambda x: x[0]) + + # Parse the elevation input string into a list of tuples + elevation_points = [] + elevation_points_string = elevation_points_string.rstrip(',\n') + for point_str in elevation_points_string.split(','): + frame_str, elevation_str = point_str.split(':') + frame = int(frame_str.strip()) + elevation_val = float(elevation_str.strip()[1:-1]) + elevation_points.append((frame, elevation_val)) + # Sort the points by frame number + elevation_points.sort(key=lambda x: x[0]) + + # Index of the next point to interpolate towards + next_point = 1 + next_elevation_point = 1 + elevations = [] + azimuths = [] + # For azimuth interpolation + for i in range(batch_size): + # Find the interpolated azimuth for the current frame + while next_point < len(azimuth_points) and i >= azimuth_points[next_point][0]: + next_point += 1 + if next_point == len(azimuth_points): + next_point -= 1 + prev_point = max(next_point - 1, 0) + + if azimuth_points[next_point][0] != azimuth_points[prev_point][0]: + fraction = (i - azimuth_points[prev_point][0]) / (azimuth_points[next_point][0] - azimuth_points[prev_point][0]) + # Apply the ease function to the fraction + if interpolation == "ease_in": + fraction = ease_in(fraction) + elif interpolation == "ease_out": + fraction = ease_out(fraction) + elif interpolation == "ease_in_out": + fraction = ease_in_out(fraction) + + interpolated_azimuth = linear_interpolate(azimuth_points[prev_point][1], azimuth_points[next_point][1], fraction) + else: + interpolated_azimuth = azimuth_points[prev_point][1] + + # Interpolate the elevation + next_elevation_point = 1 + while next_elevation_point < len(elevation_points) and i >= elevation_points[next_elevation_point][0]: + next_elevation_point += 1 + if next_elevation_point == len(elevation_points): + next_elevation_point -= 1 + prev_elevation_point = max(next_elevation_point - 1, 0) + + if elevation_points[next_elevation_point][0] != elevation_points[prev_elevation_point][0]: + fraction = (i - elevation_points[prev_elevation_point][0]) / (elevation_points[next_elevation_point][0] - elevation_points[prev_elevation_point][0]) + # Apply the ease function to the fraction + if interpolation == "ease_in": + fraction = ease_in(fraction) + elif interpolation == "ease_out": + fraction = ease_out(fraction) + elif interpolation == "ease_in_out": + fraction = ease_in_out(fraction) + + interpolated_elevation = linear_interpolate(elevation_points[prev_elevation_point][1], elevation_points[next_elevation_point][1], fraction) + else: + interpolated_elevation = elevation_points[prev_elevation_point][1] + + azimuths.append(interpolated_azimuth) + elevations.append(interpolated_elevation) + + #print("azimuths", azimuths) + #print("elevations", elevations) + + # Structure the final output + final_positive = [[pooled, {"concat_latent_image": t, "elevation": elevations, "azimuth": azimuths}]] + final_negative = [[torch.zeros_like(pooled), {"concat_latent_image": torch.zeros_like(t),"elevation": elevations, "azimuth": azimuths}]] + + latent = torch.zeros([batch_size, 4, height // 8, width // 8]) + return (final_positive, final_negative, {"samples": latent}) + +class LoadResAdapterNormalization: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL",), + "resadapter_path": (folder_paths.get_filename_list("checkpoints"), ) + } + } + + RETURN_TYPES = ("MODEL",) + FUNCTION = "load_res_adapter" + CATEGORY = "KJNodes/experimental" + + def load_res_adapter(self, model, resadapter_path): + print("ResAdapter: Checking ResAdapter path") + resadapter_full_path = folder_paths.get_full_path("checkpoints", resadapter_path) + if not os.path.exists(resadapter_full_path): + raise Exception("Invalid model path") + else: + print("ResAdapter: Loading ResAdapter normalization weights") + from comfy.utils import load_torch_file + prefix_to_remove = 'diffusion_model.' + model_clone = model.clone() + norm_state_dict = load_torch_file(resadapter_full_path) + new_values = {key[len(prefix_to_remove):]: value for key, value in norm_state_dict.items() if key.startswith(prefix_to_remove)} + print("ResAdapter: Attempting to add patches with ResAdapter weights") + try: + for key in model.model.diffusion_model.state_dict().keys(): + if key in new_values: + original_tensor = model.model.diffusion_model.state_dict()[key] + new_tensor = new_values[key].to(model.model.diffusion_model.dtype) + if original_tensor.shape == new_tensor.shape: + model_clone.add_object_patch(f"diffusion_model.{key}.data", new_tensor) + else: + print("ResAdapter: No match for key: ",key) + except: + raise Exception("Could not patch model, this way of patching was added to ComfyUI on March 3rd 2024, is your ComfyUI up to date?") + print("ResAdapter: Added resnet normalization patches") + return (model_clone, ) + +class Superprompt: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "instruction_prompt": ("STRING", {"default": 'Expand the following prompt to add more detail', "multiline": True}), + "prompt": ("STRING", {"default": '', "multiline": True, "forceInput": True}), + "max_new_tokens": ("INT", {"default": 128, "min": 1, "max": 4096, "step": 1}), + } + } + + RETURN_TYPES = ("STRING",) + FUNCTION = "process" + CATEGORY = "KJNodes/text" + DESCRIPTION = """ +# SuperPrompt +A T5 model fine-tuned on the SuperPrompt dataset for +upsampling text prompts to more detailed descriptions. +Meant to be used as a pre-generation step for text-to-image +models that benefit from more detailed prompts. +https://huggingface.co/roborovski/superprompt-v1 +""" + + def process(self, instruction_prompt, prompt, max_new_tokens): + device = model_management.get_torch_device() + from transformers import T5Tokenizer, T5ForConditionalGeneration + + checkpoint_path = os.path.join(script_directory, "models","superprompt-v1") + if not os.path.exists(checkpoint_path): + print(f"Downloading model to: {checkpoint_path}") + from huggingface_hub import snapshot_download + snapshot_download(repo_id="roborovski/superprompt-v1", + local_dir=checkpoint_path, + local_dir_use_symlinks=False) + tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-small", legacy=False) + + model = T5ForConditionalGeneration.from_pretrained(checkpoint_path, device_map=device) + model.to(device) + input_text = instruction_prompt + ": " + prompt + + input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to(device) + outputs = model.generate(input_ids, max_new_tokens=max_new_tokens) + out = (tokenizer.decode(outputs[0])) + out = out.replace('', '') + out = out.replace('', '') + + return (out, ) + + +class CameraPoseVisualizer: + + @classmethod + def INPUT_TYPES(s): + return {"required": { + "pose_file_path": ("STRING", {"default": '', "multiline": False}), + "base_xval": ("FLOAT", {"default": 0.2,"min": 0, "max": 100, "step": 0.01}), + "zval": ("FLOAT", {"default": 0.3,"min": 0, "max": 100, "step": 0.01}), + "scale": ("FLOAT", {"default": 1.0,"min": 0.01, "max": 10.0, "step": 0.01}), + "use_exact_fx": ("BOOLEAN", {"default": False}), + "relative_c2w": ("BOOLEAN", {"default": True}), + "use_viewer": ("BOOLEAN", {"default": False}), + }, + "optional": { + "cameractrl_poses": ("CAMERACTRL_POSES", {"default": None}), + } + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "plot" + CATEGORY = "KJNodes/misc" + DESCRIPTION = """ +Visualizes the camera poses, from Animatediff-Evolved CameraCtrl Pose +or a .txt file with RealEstate camera intrinsics and coordinates, in a 3D plot. +""" + + def plot(self, pose_file_path, scale, base_xval, zval, use_exact_fx, relative_c2w, use_viewer, cameractrl_poses=None): + import matplotlib as mpl + import matplotlib.pyplot as plt + from torchvision.transforms import ToTensor + + x_min = -2.0 * scale + x_max = 2.0 * scale + y_min = -2.0 * scale + y_max = 2.0 * scale + z_min = -2.0 * scale + z_max = 2.0 * scale + plt.rcParams['text.color'] = '#999999' + self.fig = plt.figure(figsize=(18, 7)) + self.fig.patch.set_facecolor('#353535') + self.ax = self.fig.add_subplot(projection='3d') + self.ax.set_facecolor('#353535') # Set the background color here + self.ax.grid(color='#999999', linestyle='-', linewidth=0.5) + self.plotly_data = None # plotly data traces + self.ax.set_aspect("auto") + self.ax.set_xlim(x_min, x_max) + self.ax.set_ylim(y_min, y_max) + self.ax.set_zlim(z_min, z_max) + self.ax.set_xlabel('x', color='#999999') + self.ax.set_ylabel('y', color='#999999') + self.ax.set_zlabel('z', color='#999999') + for text in self.ax.get_xticklabels() + self.ax.get_yticklabels() + self.ax.get_zticklabels(): + text.set_color('#999999') + print('initialize camera pose visualizer') + + if pose_file_path != "": + with open(pose_file_path, 'r') as f: + poses = f.readlines() + w2cs = [np.asarray([float(p) for p in pose.strip().split(' ')[7:]]).reshape(3, 4) for pose in poses[1:]] + fxs = [float(pose.strip().split(' ')[1]) for pose in poses[1:]] + #print(poses) + elif cameractrl_poses is not None: + poses = cameractrl_poses + w2cs = [np.array(pose[7:]).reshape(3, 4) for pose in cameractrl_poses] + fxs = [pose[1] for pose in cameractrl_poses] + else: + raise ValueError("Please provide either pose_file_path or cameractrl_poses") + + total_frames = len(w2cs) + transform_matrix = np.asarray([[1, 0, 0, 0], [0, 0, 1, 0], [0, -1, 0, 0], [0, 0, 0, 1]]).reshape(4, 4) + last_row = np.zeros((1, 4)) + last_row[0, -1] = 1.0 + + w2cs = [np.concatenate((w2c, last_row), axis=0) for w2c in w2cs] + c2ws = self.get_c2w(w2cs, transform_matrix, relative_c2w) + + for frame_idx, c2w in enumerate(c2ws): + self.extrinsic2pyramid(c2w, frame_idx / total_frames, hw_ratio=1/1, base_xval=base_xval, + zval=(fxs[frame_idx] if use_exact_fx else zval)) + + # Create the colorbar + cmap = mpl.cm.rainbow + norm = mpl.colors.Normalize(vmin=0, vmax=total_frames) + colorbar = self.fig.colorbar(mpl.cm.ScalarMappable(norm=norm, cmap=cmap), ax=self.ax, orientation='vertical') + + # Change the colorbar label + colorbar.set_label('Frame', color='#999999') # Change the label and its color + + # Change the tick colors + colorbar.ax.yaxis.set_tick_params(colors='#999999') # Change the tick color + + # Change the tick frequency + # Assuming you want to set the ticks at every 10th frame + ticks = np.arange(0, total_frames, 10) + colorbar.ax.yaxis.set_ticks(ticks) + + plt.title('') + plt.draw() + buf = BytesIO() + plt.savefig(buf, format='png', bbox_inches='tight', pad_inches=0) + buf.seek(0) + img = Image.open(buf) + tensor_img = ToTensor()(img) + buf.close() + tensor_img = tensor_img.permute(1, 2, 0).unsqueeze(0) + if use_viewer: + time.sleep(1) + plt.show() + return (tensor_img,) + + def extrinsic2pyramid(self, extrinsic, color_map='red', hw_ratio=1/1, base_xval=1, zval=3): + import matplotlib.pyplot as plt + from mpl_toolkits.mplot3d.art3d import Poly3DCollection + vertex_std = np.array([[0, 0, 0, 1], + [base_xval, -base_xval * hw_ratio, zval, 1], + [base_xval, base_xval * hw_ratio, zval, 1], + [-base_xval, base_xval * hw_ratio, zval, 1], + [-base_xval, -base_xval * hw_ratio, zval, 1]]) + vertex_transformed = vertex_std @ extrinsic.T + meshes = [[vertex_transformed[0, :-1], vertex_transformed[1][:-1], vertex_transformed[2, :-1]], + [vertex_transformed[0, :-1], vertex_transformed[2, :-1], vertex_transformed[3, :-1]], + [vertex_transformed[0, :-1], vertex_transformed[3, :-1], vertex_transformed[4, :-1]], + [vertex_transformed[0, :-1], vertex_transformed[4, :-1], vertex_transformed[1, :-1]], + [vertex_transformed[1, :-1], vertex_transformed[2, :-1], vertex_transformed[3, :-1], vertex_transformed[4, :-1]]] + + color = color_map if isinstance(color_map, str) else plt.cm.rainbow(color_map) + + self.ax.add_collection3d( + Poly3DCollection(meshes, facecolors=color, linewidths=0.3, edgecolors=color, alpha=0.25)) + + def customize_legend(self, list_label): + from matplotlib.patches import Patch + import matplotlib.pyplot as plt + list_handle = [] + for idx, label in enumerate(list_label): + color = plt.cm.rainbow(idx / len(list_label)) + patch = Patch(color=color, label=label) + list_handle.append(patch) + plt.legend(loc='right', bbox_to_anchor=(1.8, 0.5), handles=list_handle) + + def get_c2w(self, w2cs, transform_matrix, relative_c2w): + if relative_c2w: + target_cam_c2w = np.array([ + [1, 0, 0, 0], + [0, 1, 0, 0], + [0, 0, 1, 0], + [0, 0, 0, 1] + ]) + abs2rel = target_cam_c2w @ w2cs[0] + ret_poses = [target_cam_c2w, ] + [abs2rel @ np.linalg.inv(w2c) for w2c in w2cs[1:]] + else: + ret_poses = [np.linalg.inv(w2c) for w2c in w2cs] + ret_poses = [transform_matrix @ x for x in ret_poses] + return np.array(ret_poses, dtype=np.float32) + + + +class CheckpointPerturbWeights: + + @classmethod + def INPUT_TYPES(s): + return {"required": { + "model": ("MODEL",), + "joint_blocks": ("FLOAT", {"default": 0.02, "min": 0.001, "max": 10.0, "step": 0.001}), + "final_layer": ("FLOAT", {"default": 0.02, "min": 0.001, "max": 10.0, "step": 0.001}), + "rest_of_the_blocks": ("FLOAT", {"default": 0.02, "min": 0.001, "max": 10.0, "step": 0.001}), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + } + } + RETURN_TYPES = ("MODEL",) + FUNCTION = "mod" + OUTPUT_NODE = True + + CATEGORY = "KJNodes/experimental" + + def mod(self, seed, model, joint_blocks, final_layer, rest_of_the_blocks): + import copy + torch.manual_seed(seed) + torch.cuda.manual_seed_all(seed) + device = model_management.get_torch_device() + model_copy = copy.deepcopy(model) + model_copy.model.to(device) + keys = model_copy.model.diffusion_model.state_dict().keys() + + dict = {} + for key in keys: + dict[key] = model_copy.model.diffusion_model.state_dict()[key] + + pbar = ProgressBar(len(keys)) + for k in keys: + v = dict[k] + print(f'{k}: {v.std()}') + if k.startswith('joint_blocks'): + multiplier = joint_blocks + elif k.startswith('final_layer'): + multiplier = final_layer + else: + multiplier = rest_of_the_blocks + dict[k] += torch.normal(torch.zeros_like(v) * v.mean(), torch.ones_like(v) * v.std() * multiplier).to(device) + pbar.update(1) + model_copy.model.diffusion_model.load_state_dict(dict) + return model_copy, + +class DifferentialDiffusionAdvanced(): + @classmethod + def INPUT_TYPES(s): + return {"required": { + "model": ("MODEL", ), + "samples": ("LATENT",), + "mask": ("MASK",), + "multiplier": ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.001}), + }} + RETURN_TYPES = ("MODEL", "LATENT") + FUNCTION = "apply" + CATEGORY = "_for_testing" + INIT = False + + def apply(self, model, samples, mask, multiplier): + self.multiplier = multiplier + model = model.clone() + model.set_model_denoise_mask_function(self.forward) + s = samples.copy() + s["noise_mask"] = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])) + return (model, s) + + def forward(self, sigma: torch.Tensor, denoise_mask: torch.Tensor, extra_options: dict): + model = extra_options["model"] + step_sigmas = extra_options["sigmas"] + sigma_to = model.inner_model.model_sampling.sigma_min + if step_sigmas[-1] > sigma_to: + sigma_to = step_sigmas[-1] + sigma_from = step_sigmas[0] + + ts_from = model.inner_model.model_sampling.timestep(sigma_from) + ts_to = model.inner_model.model_sampling.timestep(sigma_to) + current_ts = model.inner_model.model_sampling.timestep(sigma[0]) + + threshold = (current_ts - ts_to) / (ts_from - ts_to) / self.multiplier + + return (denoise_mask >= threshold).to(denoise_mask.dtype) + +class FluxBlockLoraSelect: + def __init__(self): + self.loaded_lora = None + + @classmethod + def INPUT_TYPES(s): + arg_dict = {} + argument = ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1000.0, "step": 0.01}) + + for i in range(19): + arg_dict["double_blocks.{}.".format(i)] = argument + + for i in range(38): + arg_dict["single_blocks.{}.".format(i)] = argument + + return {"required": arg_dict} + + RETURN_TYPES = ("SELECTEDDITBLOCKS", ) + RETURN_NAMES = ("blocks", ) + OUTPUT_TOOLTIPS = ("The modified diffusion model.",) + FUNCTION = "load_lora" + + CATEGORY = "KJNodes/experimental" + DESCRIPTION = "Select individual block alpha values, value of 0 removes the block altogether" + + def load_lora(self, **kwargs): + return (kwargs,) + +class HunyuanVideoBlockLoraSelect: + @classmethod + def INPUT_TYPES(s): + arg_dict = {} + argument = ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1000.0, "step": 0.01}) + + for i in range(20): + arg_dict["double_blocks.{}.".format(i)] = argument + + for i in range(40): + arg_dict["single_blocks.{}.".format(i)] = argument + + return {"required": arg_dict} + + RETURN_TYPES = ("SELECTEDDITBLOCKS", ) + RETURN_NAMES = ("blocks", ) + OUTPUT_TOOLTIPS = ("The modified diffusion model.",) + FUNCTION = "load_lora" + + CATEGORY = "KJNodes/experimental" + DESCRIPTION = "Select individual block alpha values, value of 0 removes the block altogether" + + def load_lora(self, **kwargs): + return (kwargs,) + +class Wan21BlockLoraSelect: + @classmethod + def INPUT_TYPES(s): + arg_dict = {} + argument = ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1000.0, "step": 0.01}) + + for i in range(40): + arg_dict["blocks.{}.".format(i)] = argument + + return {"required": arg_dict} + + RETURN_TYPES = ("SELECTEDDITBLOCKS", ) + RETURN_NAMES = ("blocks", ) + OUTPUT_TOOLTIPS = ("The modified diffusion model.",) + FUNCTION = "load_lora" + + CATEGORY = "KJNodes/experimental" + DESCRIPTION = "Select individual block alpha values, value of 0 removes the block altogether" + + def load_lora(self, **kwargs): + return (kwargs,) + +class DiTBlockLoraLoader: + def __init__(self): + self.loaded_lora = None + + @classmethod + def INPUT_TYPES(s): + return {"required": { + "model": ("MODEL", {"tooltip": "The diffusion model the LoRA will be applied to."}), + "strength_model": ("FLOAT", {"default": 1.0, "min": -100.0, "max": 100.0, "step": 0.01, "tooltip": "How strongly to modify the diffusion model. This value can be negative."}), + + }, + "optional": { + "lora_name": (folder_paths.get_filename_list("loras"), {"tooltip": "The name of the LoRA."}), + "opt_lora_path": ("STRING", {"forceInput": True, "tooltip": "Absolute path of the LoRA."}), + "blocks": ("SELECTEDDITBLOCKS",), + } + } + + RETURN_TYPES = ("MODEL", "STRING", ) + RETURN_NAMES = ("model", "rank", ) + OUTPUT_TOOLTIPS = ("The modified diffusion model.", "possible rank of the LoRA.") + FUNCTION = "load_lora" + CATEGORY = "KJNodes/experimental" + + def load_lora(self, model, strength_model, lora_name=None, opt_lora_path=None, blocks=None): + + import comfy.lora + + if opt_lora_path: + lora_path = opt_lora_path + else: + lora_path = folder_paths.get_full_path("loras", lora_name) + + lora = None + if self.loaded_lora is not None: + if self.loaded_lora[0] == lora_path: + lora = self.loaded_lora[1] + else: + self.loaded_lora = None + + if lora is None: + lora = load_torch_file(lora_path, safe_load=True) + self.loaded_lora = (lora_path, lora) + + # Find the first key that ends with "weight" + rank = "unknown" + weight_key = next((key for key in lora.keys() if key.endswith('weight')), None) + # Print the shape of the value corresponding to the key + if weight_key: + print(f"Shape of the first 'weight' key ({weight_key}): {lora[weight_key].shape}") + rank = str(lora[weight_key].shape[0]) + else: + print("No key ending with 'weight' found.") + rank = "Couldn't find rank" + self.loaded_lora = (lora_path, lora) + + key_map = {} + if model is not None: + key_map = comfy.lora.model_lora_keys_unet(model.model, key_map) + + loaded = comfy.lora.load_lora(lora, key_map) + + if blocks is not None: + keys_to_delete = [] + + for block in blocks: + for key in list(loaded.keys()): + match = False + if isinstance(key, str) and block in key: + match = True + elif isinstance(key, tuple): + for k in key: + if block in k: + match = True + break + + if match: + ratio = blocks[block] + if ratio == 0: + keys_to_delete.append(key) + else: + # Only modify LoRA adapters, skip diff tuples + value = loaded[key] + if hasattr(value, 'weights'): + print(f"Modifying LoRA adapter for key: {key}") + weights_list = list(value.weights) + weights_list[2] = ratio + loaded[key].weights = tuple(weights_list) + else: + print(f"Skipping non-LoRA entry for key: {key}") + + for key in keys_to_delete: + del loaded[key] + + print("loading lora keys:") + for key, value in loaded.items(): + if hasattr(value, 'weights'): + print(f"Key: {key}, Alpha: {value.weights[2]}") + else: + print(f"Key: {key}, Type: {type(value)}") + + if model is not None: + new_modelpatcher = model.clone() + k = new_modelpatcher.add_patches(loaded, strength_model) + + k = set(k) + for x in loaded: + if (x not in k): + print("NOT LOADED {}".format(x)) + + return (new_modelpatcher, rank) + +class CustomControlNetWeightsFluxFromList: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "list_of_floats": ("FLOAT", {"forceInput": True}, ), + }, + "optional": { + "uncond_multiplier": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}, ), + "cn_extras": ("CN_WEIGHTS_EXTRAS",), + "autosize": ("ACNAUTOSIZE", {"padding": 0}), + } + } + + RETURN_TYPES = ("CONTROL_NET_WEIGHTS", "TIMESTEP_KEYFRAME",) + RETURN_NAMES = ("CN_WEIGHTS", "TK_SHORTCUT") + FUNCTION = "load_weights" + DESCRIPTION = "Creates controlnet weights from a list of floats for Advanced-ControlNet" + + CATEGORY = "KJNodes/controlnet" + + def load_weights(self, list_of_floats: list[float], + uncond_multiplier: float=1.0, cn_extras: dict[str]={}): + + adv_control = importlib.import_module("ComfyUI-Advanced-ControlNet.adv_control") + ControlWeights = adv_control.utils.ControlWeights + TimestepKeyframeGroup = adv_control.utils.TimestepKeyframeGroup + TimestepKeyframe = adv_control.utils.TimestepKeyframe + + weights = ControlWeights.controlnet(weights_input=list_of_floats, uncond_multiplier=uncond_multiplier, extras=cn_extras) + print(weights.weights_input) + return (weights, TimestepKeyframeGroup.default(TimestepKeyframe(control_weights=weights))) + +SHAKKERLABS_UNION_CONTROLNET_TYPES = { + "canny": 0, + "tile": 1, + "depth": 2, + "blur": 3, + "pose": 4, + "gray": 5, + "low quality": 6, +} + +class SetShakkerLabsUnionControlNetType: + @classmethod + def INPUT_TYPES(s): + return {"required": {"control_net": ("CONTROL_NET", ), + "type": (["auto"] + list(SHAKKERLABS_UNION_CONTROLNET_TYPES.keys()),) + }} + + CATEGORY = "conditioning/controlnet" + RETURN_TYPES = ("CONTROL_NET",) + + FUNCTION = "set_controlnet_type" + + def set_controlnet_type(self, control_net, type): + control_net = control_net.copy() + type_number = SHAKKERLABS_UNION_CONTROLNET_TYPES.get(type, -1) + if type_number >= 0: + control_net.set_extra_arg("control_type", [type_number]) + else: + control_net.set_extra_arg("control_type", []) + + return (control_net,) + +class ModelSaveKJ: + def __init__(self): + self.output_dir = folder_paths.get_output_directory() + + @classmethod + def INPUT_TYPES(s): + return {"required": { "model": ("MODEL",), + "filename_prefix": ("STRING", {"default": "diffusion_models/ComfyUI"}), + "model_key_prefix": ("STRING", {"default": "model.diffusion_model."}), + }, + "hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},} + RETURN_TYPES = () + FUNCTION = "save" + OUTPUT_NODE = True + + CATEGORY = "advanced/model_merging" + + def save(self, model, filename_prefix, model_key_prefix, prompt=None, extra_pnginfo=None): + from comfy.utils import save_torch_file + full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir) + + output_checkpoint = f"{filename}_{counter:05}_.safetensors" + output_checkpoint = os.path.join(full_output_folder, output_checkpoint) + + load_models = [model] + + model_management.load_models_gpu(load_models, force_patch_weights=True) + default_prefix = "model.diffusion_model." + + sd = model.model.state_dict_for_saving(None, None, None) + + new_sd = {} + for k in sd: + if k.startswith(default_prefix): + new_key = model_key_prefix + k[len(default_prefix):] + else: + new_key = k # In case the key doesn't start with the default prefix, keep it unchanged + t = sd[k] + if not t.is_contiguous(): + t = t.contiguous() + new_sd[new_key] = t + print(full_output_folder) + if not os.path.exists(full_output_folder): + os.makedirs(full_output_folder) + save_torch_file(new_sd, os.path.join(full_output_folder, output_checkpoint)) + return {} + +class StyleModelApplyAdvanced: + @classmethod + def INPUT_TYPES(s): + return {"required": {"conditioning": ("CONDITIONING", ), + "style_model": ("STYLE_MODEL", ), + "clip_vision_output": ("CLIP_VISION_OUTPUT", ), + "strength": ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.001}), + }} + RETURN_TYPES = ("CONDITIONING",) + FUNCTION = "apply_stylemodel" + CATEGORY = "KJNodes/experimental" + DESCRIPTION = "StyleModelApply but with strength parameter" + + def apply_stylemodel(self, clip_vision_output, style_model, conditioning, strength=1.0): + cond = style_model.get_cond(clip_vision_output).flatten(start_dim=0, end_dim=1).unsqueeze(dim=0) + cond = strength * cond + c = [] + for t in conditioning: + n = [torch.cat((t[0], cond), dim=1), t[1].copy()] + c.append(n) + return (c, ) + +class AudioConcatenate: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "audio1": ("AUDIO",), + "audio2": ("AUDIO",), + "direction": ( + [ 'right', + 'left', + ], + { + "default": 'right' + }), + }} + + RETURN_TYPES = ("AUDIO",) + FUNCTION = "concanate" + CATEGORY = "KJNodes/audio" + DESCRIPTION = """ +Concatenates the audio1 to audio2 in the specified direction. +""" + + def concanate(self, audio1, audio2, direction): + sample_rate_1 = audio1["sample_rate"] + sample_rate_2 = audio2["sample_rate"] + if sample_rate_1 != sample_rate_2: + raise Exception("Sample rates of the two audios do not match") + + waveform_1 = audio1["waveform"] + print(waveform_1.shape) + waveform_2 = audio2["waveform"] + + # Concatenate based on the specified direction + if direction == 'right': + concatenated_audio = torch.cat((waveform_1, waveform_2), dim=2) # Concatenate along width + elif direction == 'left': + concatenated_audio= torch.cat((waveform_2, waveform_1), dim=2) # Concatenate along width + return ({"waveform": concatenated_audio, "sample_rate": sample_rate_1},) + +class LeapfusionHunyuanI2V: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL",), + "latent": ("LATENT",), + "index": ("INT", {"default": 0, "min": -1, "max": 1000, "step": 1,"tooltip": "The index of the latent to be replaced. 0 for first frame and -1 for last"}), + "start_percent": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.01, "tooltip": "The start percentage of steps to apply"}), + "end_percent": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01, "tooltip": "The end percentage of steps to apply"}), + "strength": ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.001}), + } + } + + RETURN_TYPES = ("MODEL",) + FUNCTION = "patch" + + CATEGORY = "KJNodes/experimental" + + def patch(self, model, latent, index, strength, start_percent, end_percent): + + def outer_wrapper(samples, index, start_percent, end_percent): + def unet_wrapper(apply_model, args): + steps = args["c"]["transformer_options"]["sample_sigmas"] + inp, timestep, c = args["input"], args["timestep"], args["c"] + matched_step_index = (steps == timestep).nonzero() + if len(matched_step_index) > 0: + current_step_index = matched_step_index.item() + else: + for i in range(len(steps) - 1): + # walk from beginning of steps until crossing the timestep + if (steps[i] - timestep[0]) * (steps[i + 1] - timestep[0]) <= 0: + current_step_index = i + break + else: + current_step_index = 0 + current_percent = current_step_index / (len(steps) - 1) + if samples is not None: + if start_percent <= current_percent <= end_percent: + inp[:, :, [index], :, :] = samples[:, :, [0], :, :].to(inp) + else: + inp[:, :, [index], :, :] = torch.zeros(1) + return apply_model(inp, timestep, **c) + return unet_wrapper + + samples = latent["samples"] * 0.476986 * strength + m = model.clone() + m.set_model_unet_function_wrapper(outer_wrapper(samples, index, start_percent, end_percent)) + + return (m,) + +class ImageNoiseAugmentation: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("IMAGE",), + "noise_aug_strength": ("FLOAT", {"default": None, "min": 0.0, "max": 100.0, "step": 0.001}), + "seed": ("INT", {"default": 123,"min": 0, "max": 0xffffffffffffffff, "step": 1}), + } + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "add_noise" + CATEGORY = "KJNodes/image" + DESCRIPTION = """ + Add noise to an image. + """ + + def add_noise(self, image, noise_aug_strength, seed): + torch.manual_seed(seed) + sigma = torch.ones((image.shape[0],)).to(image.device, image.dtype) * noise_aug_strength + image_noise = torch.randn_like(image) * sigma[:, None, None, None] + image_noise = torch.where(image==-1, torch.zeros_like(image), image_noise) + image_out = image + image_noise + return image_out, + +class VAELoaderKJ: + @staticmethod + def vae_list(): + vaes = folder_paths.get_filename_list("vae") + approx_vaes = folder_paths.get_filename_list("vae_approx") + sdxl_taesd_enc = False + sdxl_taesd_dec = False + sd1_taesd_enc = False + sd1_taesd_dec = False + sd3_taesd_enc = False + sd3_taesd_dec = False + f1_taesd_enc = False + f1_taesd_dec = False + + for v in approx_vaes: + if v.startswith("taesd_decoder."): + sd1_taesd_dec = True + elif v.startswith("taesd_encoder."): + sd1_taesd_enc = True + elif v.startswith("taesdxl_decoder."): + sdxl_taesd_dec = True + elif v.startswith("taesdxl_encoder."): + sdxl_taesd_enc = True + elif v.startswith("taesd3_decoder."): + sd3_taesd_dec = True + elif v.startswith("taesd3_encoder."): + sd3_taesd_enc = True + elif v.startswith("taef1_encoder."): + f1_taesd_dec = True + elif v.startswith("taef1_decoder."): + f1_taesd_enc = True + if sd1_taesd_dec and sd1_taesd_enc: + vaes.append("taesd") + if sdxl_taesd_dec and sdxl_taesd_enc: + vaes.append("taesdxl") + if sd3_taesd_dec and sd3_taesd_enc: + vaes.append("taesd3") + if f1_taesd_dec and f1_taesd_enc: + vaes.append("taef1") + return vaes + + @staticmethod + def load_taesd(name): + sd = {} + approx_vaes = folder_paths.get_filename_list("vae_approx") + + encoder = next(filter(lambda a: a.startswith("{}_encoder.".format(name)), approx_vaes)) + decoder = next(filter(lambda a: a.startswith("{}_decoder.".format(name)), approx_vaes)) + + enc = load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", encoder)) + for k in enc: + sd["taesd_encoder.{}".format(k)] = enc[k] + + dec = load_torch_file(folder_paths.get_full_path_or_raise("vae_approx", decoder)) + for k in dec: + sd["taesd_decoder.{}".format(k)] = dec[k] + + if name == "taesd": + sd["vae_scale"] = torch.tensor(0.18215) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesdxl": + sd["vae_scale"] = torch.tensor(0.13025) + sd["vae_shift"] = torch.tensor(0.0) + elif name == "taesd3": + sd["vae_scale"] = torch.tensor(1.5305) + sd["vae_shift"] = torch.tensor(0.0609) + elif name == "taef1": + sd["vae_scale"] = torch.tensor(0.3611) + sd["vae_shift"] = torch.tensor(0.1159) + return sd + + @classmethod + def INPUT_TYPES(s): + return { + "required": { "vae_name": (s.vae_list(), ), + "device": (["main_device", "cpu"],), + "weight_dtype": (["bf16", "fp16", "fp32" ],), + } + } + + RETURN_TYPES = ("VAE",) + FUNCTION = "load_vae" + CATEGORY = "KJNodes/vae" + + def load_vae(self, vae_name, device, weight_dtype): + from comfy.sd import VAE + dtype = {"bf16": torch.bfloat16, "fp16": torch.float16, "fp32": torch.float32}[weight_dtype] + if device == "main_device": + device = model_management.get_torch_device() + elif device == "cpu": + device = torch.device("cpu") + if vae_name in ["taesd", "taesdxl", "taesd3", "taef1"]: + sd = self.load_taesd(vae_name) + else: + vae_path = folder_paths.get_full_path_or_raise("vae", vae_name) + sd = load_torch_file(vae_path) + vae = VAE(sd=sd, device=device, dtype=dtype) + return (vae,) + +from comfy.samplers import sampling_function, CFGGuider +class Guider_ScheduledCFG(CFGGuider): + + def set_cfg(self, cfg, start_percent, end_percent): + self.cfg = cfg + self.start_percent = start_percent + self.end_percent = end_percent + + def predict_noise(self, x, timestep, model_options={}, seed=None): + steps = model_options["transformer_options"]["sample_sigmas"] + if isinstance(timestep, torch.Tensor): + timestep_value = timestep.reshape(-1)[0].to(steps) + else: + timestep_value = torch.tensor(timestep, device=steps.device, dtype=steps.dtype) + matched_step_index = torch.isclose(steps, timestep_value).nonzero() + assert not (isinstance(self.cfg, list) and len(self.cfg) != (len(steps) - 1)), "cfg list length must match step count" + if len(matched_step_index) > 0: + current_step_index = matched_step_index.item() + else: + for i in range(len(steps) - 1): + # walk from beginning of steps until crossing the timestep + if (steps[i] - timestep_value) * (steps[i + 1] - timestep_value) <= 0: + current_step_index = i + break + else: + current_step_index = 0 + current_percent = current_step_index / (len(steps) - 1) + + if self.start_percent <= current_percent <= self.end_percent: + if isinstance(self.cfg, list): + cfg = self.cfg[current_step_index] + else: + cfg = self.cfg + uncond = self.conds.get("negative", None) + else: + uncond = None + cfg = 1.0 + + return sampling_function(self.inner_model, x, timestep, uncond, self.conds.get("positive", None), cfg, model_options=model_options, seed=seed) + +class ScheduledCFGGuidance: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "model": ("MODEL",), + "positive": ("CONDITIONING", ), + "negative": ("CONDITIONING", ), + "cfg": ("FLOAT", {"default": 6.0, "min": 0.0, "max": 100.0, "step": 0.01}), + "start_percent": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 1.0, "step":0.01}), + "end_percent": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step":0.01}), + }, + } + RETURN_TYPES = ("GUIDER",) + FUNCTION = "get_guider" + CATEGORY = "KJNodes/experimental" + DESCRiPTION = """ +CFG Guider that allows for scheduled CFG changes over steps, the steps outside the range will use CFG 1.0 thus being processed faster. +cfg input can be a list of floats matching step count, or a single float for all steps. +""" + + def get_guider(self, model, cfg, positive, negative, start_percent, end_percent): + guider = Guider_ScheduledCFG(model) + guider.set_conds(positive, negative) + guider.set_cfg(cfg, start_percent, end_percent) + return (guider, ) + + +class ApplyRifleXRoPE_WanVideo: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL",), + "latent": ("LATENT", {"tooltip": "Only used to get the latent count"}), + "k": ("INT", {"default": 6, "min": 1, "max": 100, "step": 1, "tooltip": "Index of intrinsic frequency"}), + } + } + + RETURN_TYPES = ("MODEL",) + FUNCTION = "patch" + CATEGORY = "KJNodes/experimental" + EXPERIMENTAL = True + DESCRIPTION = "Extends the potential frame count of HunyuanVideo using this method: https://github.com/thu-ml/RIFLEx" + + def patch(self, model, latent, k): + model_class = model.model.diffusion_model + + model_clone = model.clone() + num_frames = latent["samples"].shape[2] + d = model_class.dim // model_class.num_heads + + rope_embedder = EmbedND_RifleX( + d, + 10000.0, + [d - 4 * (d // 6), 2 * (d // 6), 2 * (d // 6)], + num_frames, + k + ) + + model_clone.add_object_patch(f"diffusion_model.rope_embedder", rope_embedder) + + return (model_clone, ) + +class ApplyRifleXRoPE_HunuyanVideo: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "model": ("MODEL",), + "latent": ("LATENT", {"tooltip": "Only used to get the latent count"}), + "k": ("INT", {"default": 4, "min": 1, "max": 100, "step": 1, "tooltip": "Index of intrinsic frequency"}), + } + } + + RETURN_TYPES = ("MODEL",) + FUNCTION = "patch" + CATEGORY = "KJNodes/experimental" + EXPERIMENTAL = True + DESCRIPTION = "Extends the potential frame count of HunyuanVideo using this method: https://github.com/thu-ml/RIFLEx" + + def patch(self, model, latent, k): + model_class = model.model.diffusion_model + + model_clone = model.clone() + num_frames = latent["samples"].shape[2] + + pe_embedder = EmbedND_RifleX( + model_class.params.hidden_size // model_class.params.num_heads, + model_class.params.theta, + model_class.params.axes_dim, + num_frames, + k + ) + + model_clone.add_object_patch(f"diffusion_model.pe_embedder", pe_embedder) + + return (model_clone, ) + +def rope_riflex(pos, dim, theta, L_test, k): + from einops import rearrange + assert dim % 2 == 0 + if model_management.is_device_mps(pos.device) or model_management.is_intel_xpu() or model_management.is_directml_enabled(): + device = torch.device("cpu") + else: + device = pos.device + + scale = torch.linspace(0, (dim - 2) / dim, steps=dim//2, dtype=torch.float64, device=device) + omega = 1.0 / (theta**scale) + + # RIFLEX modification - adjust last frequency component if L_test and k are provided + if k and L_test: + omega[k-1] = 0.9 * 2 * torch.pi / L_test + + out = torch.einsum("...n,d->...nd", pos.to(dtype=torch.float32, device=device), omega) + out = torch.stack([torch.cos(out), -torch.sin(out), torch.sin(out), torch.cos(out)], dim=-1) + out = rearrange(out, "b n d (i j) -> b n d i j", i=2, j=2) + return out.to(dtype=torch.float32, device=pos.device) + +class EmbedND_RifleX(nn.Module): + def __init__(self, dim, theta, axes_dim, num_frames, k): + super().__init__() + self.dim = dim + self.theta = theta + self.axes_dim = axes_dim + self.num_frames = num_frames + self.k = k + + def forward(self, ids): + n_axes = ids.shape[-1] + emb = torch.cat( + [rope_riflex(ids[..., i], self.axes_dim[i], self.theta, self.num_frames, self.k if i == 0 else 0) for i in range(n_axes)], + dim=-3, + ) + return emb.unsqueeze(1) + + +class Timer: + def __init__(self, name): + self.name = name + self.start_time = None + self.elapsed = 0 + +class TimerNodeKJ: + @classmethod + + def INPUT_TYPES(s): + return { + "required": { + "any_input": (IO.ANY, ), + "mode": (["start", "stop"],), + "name": ("STRING", {"default": "Timer"}), + }, + "optional": { + "timer": ("TIMER",), + }, + } + + RETURN_TYPES = (IO.ANY, "TIMER", "INT", ) + RETURN_NAMES = ("any_output", "timer", "time") + FUNCTION = "timer" + CATEGORY = "KJNodes/misc" + + def timer(self, mode, name, any_input=None, timer=None): + if timer is None: + if mode == "start": + timer = Timer(name=name) + timer.start_time = time.time() + return {"ui": { + "text": [f"{timer.start_time}"]}, + "result": (any_input, timer, 0) + } + elif mode == "stop" and timer is not None: + end_time = time.time() + timer.elapsed = int((end_time - timer.start_time) * 1000) + timer.start_time = None + return (any_input, timer, timer.elapsed) + +class HunyuanVideoEncodeKeyframesToCond: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "model": ("MODEL",), + "positive": ("CONDITIONING", ), + "vae": ("VAE", ), + "start_frame": ("IMAGE", ), + "end_frame": ("IMAGE", ), + "num_frames": ("INT", {"default": 33, "min": 2, "max": 4096, "step": 1}), + "tile_size": ("INT", {"default": 512, "min": 64, "max": 4096, "step": 64}), + "overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32}), + "temporal_size": ("INT", {"default": 64, "min": 8, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to encode at a time."}), + "temporal_overlap": ("INT", {"default": 8, "min": 4, "max": 4096, "step": 4, "tooltip": "Only used for video VAEs: Amount of frames to overlap."}), + }, + "optional": { + "negative": ("CONDITIONING", ), + } + } + + RETURN_TYPES = ("MODEL", "CONDITIONING","CONDITIONING","LATENT") + RETURN_NAMES = ("model", "positive", "negative", "latent") + FUNCTION = "encode" + + CATEGORY = "KJNodes/videomodels" + + def encode(self, model, positive, start_frame, end_frame, num_frames, vae, tile_size, overlap, temporal_size, temporal_overlap, negative=None): + + model_clone = model.clone() + + model_clone.add_object_patch("concat_keys", ("concat_image",)) + + + x = (start_frame.shape[1] // 8) * 8 + y = (start_frame.shape[2] // 8) * 8 + + if start_frame.shape[1] != x or start_frame.shape[2] != y: + x_offset = (start_frame.shape[1] % 8) // 2 + y_offset = (start_frame.shape[2] % 8) // 2 + start_frame = start_frame[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + if end_frame.shape[1] != x or end_frame.shape[2] != y: + x_offset = (start_frame.shape[1] % 8) // 2 + y_offset = (start_frame.shape[2] % 8) // 2 + end_frame = end_frame[:,x_offset:x + x_offset, y_offset:y + y_offset,:] + + video_frames = torch.zeros(num_frames-2, start_frame.shape[1], start_frame.shape[2], start_frame.shape[3], device=start_frame.device, dtype=start_frame.dtype) + video_frames = torch.cat([start_frame, video_frames, end_frame], dim=0) + + concat_latent = vae.encode_tiled(video_frames[:,:,:,:3], tile_x=tile_size, tile_y=tile_size, overlap=overlap, tile_t=temporal_size, overlap_t=temporal_overlap) + + out_latent = {} + out_latent["samples"] = torch.zeros_like(concat_latent) + + out = [] + for conditioning in [positive, negative if negative is not None else []]: + c = [] + for t in conditioning: + d = t[1].copy() + d["concat_latent_image"] = concat_latent + n = [t[0], d] + c.append(n) + out.append(c) + if len(out) == 1: + out.append(out[0]) + return (model_clone, out[0], out[1], out_latent) + + +class LazySwitchKJ: + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "switch": ("BOOLEAN",), + "on_false": (IO.ANY, {"lazy": True}), + "on_true": (IO.ANY, {"lazy": True}), + }, + } + + RETURN_TYPES = (IO.ANY,) + FUNCTION = "switch" + CATEGORY = "KJNodes/misc" + DESCRIPTION = "Controls flow of execution based on a boolean switch." + + def check_lazy_status(self, switch, on_false=None, on_true=None): + if switch and on_true is None: + return ["on_true"] + if not switch and on_false is None: + return ["on_false"] + + def switch(self, switch, on_false = None, on_true=None): + value = on_true if switch else on_false + return (value,) + + +from comfy.patcher_extension import WrappersMP +from comfy.sampler_helpers import prepare_mask +class TTM_SampleWrapper: + def __init__(self, mask, steps): + self.mask = mask + self.steps = steps + + def __call__(self, sampler, guider, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar): + model_options = extra_args["model_options"] + wrappers = model_options["transformer_options"]["wrappers"] + w = wrappers.setdefault(WrappersMP.APPLY_MODEL, {}) + + if self.mask is not None: + motion_mask = self.mask.reshape((-1, 1, self.mask.shape[-2], self.mask.shape[-1])) + motion_mask = prepare_mask(motion_mask, noise.shape, noise.device) + + scale_latent_inpaint = guider.model_patcher.model.scale_latent_inpaint + w["TTM_ApplyModel_Wrapper"] = [TTM_ApplyModel_Wrapper(latent_image, noise, motion_mask, self.steps, scale_latent_inpaint)] + + out = sampler(guider, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar) + + return out + + +class TTM_ApplyModel_Wrapper: + def __init__(self, reference_samples, noise, motion_mask, steps, scale_latent_inpaint): + self.reference_samples = reference_samples + self.noise = noise + self.motion_mask = motion_mask + self.steps = steps + self.scale_latent_inpaint = scale_latent_inpaint + + def __call__(self, executor, x, t, c_concat, c_crossattn, control, transformer_options, **kwargs): + sigmas = transformer_options["sample_sigmas"] + + matched = (sigmas == t).nonzero(as_tuple=True)[0] + if matched.numel() > 0: + current_step_index = matched.item() + else: + crossing = ((sigmas[:-1] - t) * (sigmas[1:] - t) <= 0).nonzero(as_tuple=True)[0] + current_step_index = crossing.item() if crossing.numel() > 0 else 0 + + next_sigma = sigmas[current_step_index + 1] if current_step_index < len(sigmas) - 1 else sigmas[current_step_index] + + if current_step_index != 0 and current_step_index < self.steps: + noisy_latent = self.scale_latent_inpaint(x=x, sigma=torch.tensor([next_sigma]), noise=self.noise.to(x), latent_image=self.reference_samples.to(x)) + if self.motion_mask is not None: + x = x * (1-self.motion_mask).to(x) + noisy_latent * self.motion_mask.to(x) + else: + x = noisy_latent + + return executor(x, t, c_concat, c_crossattn, control, transformer_options, **kwargs) + + +class LatentInpaintTTM: + @classmethod + def INPUT_TYPES(s): + return {"required": { + "model": ("MODEL", ), + "steps": ("INT", {"default": 7, "min": 0, "max": 888, "step": 1, "tooltip": "Number of steps to apply TTM inpainting for."}), + }, + "optional": { + "mask": ("MASK", {"tooltip": "Latent mask where white (1.0) is the area to inpaint and black (0.0) is the area to keep unchanged."}), + } + } + RETURN_TYPES = ("MODEL",) + FUNCTION = "patch" + EXPERIMENTAL = True + DESCRIPTION = "https://github.com/time-to-move/TTM" + CATEGORY = "KJNodes/experimental" + + def patch(self, model, steps, mask=None): + m = model.clone() + m.add_wrapper_with_key(WrappersMP.SAMPLER_SAMPLE, "TTM_SampleWrapper", TTM_SampleWrapper(mask, steps)) + return (m, ) + + +class SimpleCalculatorKJ: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "expression": ("STRING", {"default": "a + b", "multiline": True}), + }, + "optional": { + "a": (IO.ANY, {"default": 0.0, "min": -1e10, "max": 1e10, "step": 0.01, "forceInput": True}), + "b": (IO.ANY, {"default": 0.0, "min": -1e10, "max": 1e10, "step": 0.01, "forceInput": True}), + } + } + + RETURN_TYPES = ("FLOAT", "INT",) + FUNCTION = "calculate" + CATEGORY = "KJNodes/misc" + DESCRIPTION = "Calculator node that evaluates a mathematical expression using inputs a and b." + + def calculate(self, expression, a=None, b=None): + + import ast + import operator + import math + + # Allowed operations + allowed_operators = {ast.Add: operator.add, ast.Sub: operator.sub, ast.Mult: operator.mul, ast.Div: operator.truediv, + ast.Pow: operator.pow, ast.USub: operator.neg, ast.UAdd: operator.pos, ast.LShift: operator.lshift, ast.RShift: operator.rshift, + } + + # Allowed functions + allowed_functions = { + 'abs': abs, 'round': round, 'min': min, 'max': max, + 'pow': pow, 'sqrt': math.sqrt, 'sin': math.sin, + 'cos': math.cos, 'tan': math.tan, 'log': math.log, + 'log10': math.log10, 'exp': math.exp, 'floor': math.floor, + 'ceil': math.ceil + } + + # Allowed constants + allowed_names = {'a': a, 'b': b, 'pi': math.pi, 'e': math.e} + + def eval_node(node): + if isinstance(node, ast.Constant): # Numbers + return node.value + elif isinstance(node, ast.Name): # Variables + if node.id in allowed_names: + return allowed_names[node.id] + raise ValueError(f"Name '{node.id}' is not allowed") + elif isinstance(node, ast.BinOp): # Binary operations + if type(node.op) not in allowed_operators: + raise ValueError(f"Operator {type(node.op).__name__} is not allowed") + left = eval_node(node.left) + right = eval_node(node.right) + return allowed_operators[type(node.op)](left, right) + elif isinstance(node, ast.UnaryOp): # Unary operations + if type(node.op) not in allowed_operators: + raise ValueError(f"Operator {type(node.op).__name__} is not allowed") + operand = eval_node(node.operand) + return allowed_operators[type(node.op)](operand) + elif isinstance(node, ast.Call): # Function calls + if not isinstance(node.func, ast.Name): + raise ValueError("Only simple function calls are allowed") + if node.func.id not in allowed_functions: + raise ValueError(f"Function '{node.func.id}' is not allowed") + args = [eval_node(arg) for arg in node.args] + return allowed_functions[node.func.id](*args) + else: + raise ValueError(f"Node type {type(node).__name__} is not allowed") + + try: + tree = ast.parse(expression, mode='eval') + result = eval_node(tree.body) + return (float(result), int(result)) + except Exception as e: + print(f"CalculatorKJ Error: {str(e)}") + return (0.0, 0) + + +class GetTrackRange(io.ComfyNode): + @classmethod + def define_schema(cls): + return io.Schema( + node_id="GetTrackRange", + category="conditioning/video_models", + inputs=[ + io.Tracks.Input("tracks"), + io.Int.Input("start_index", default=24, min=-10000, max=10000, step=1), + io.Int.Input("num_frames", default=10, min=1, max=10000, step=1), + ], + outputs=[ + io.Tracks.Output(), + ], + ) + + @classmethod + def execute(cls, tracks, start_index, num_frames) -> io.NodeOutput: + track_path = tracks["track_path"] + mask = tracks["track_visibility"] + total_frames = track_path.shape[0] + + if start_index < 0: + start_index = total_frames + start_index + start_index = max(0, min(start_index, total_frames)) + + # Clamp end_index + end_index = max(0, min(start_index + num_frames, total_frames)) + + tracks_out = track_path[start_index:end_index, ...] + mask_out = mask[start_index:end_index, ...] + + out_track = { + "track_path": tracks_out, + "track_visibility": mask_out, + } + return io.NodeOutput(out_track) + +class AddNoiseToTrackPath(io.ComfyNode): + @classmethod + def define_schema(cls): + return io.Schema( + node_id="AddNoiseToTrackPath", + category="conditioning/video_models", + inputs=[ + io.Tracks.Input("tracks"), + io.Float.Input("strength", default=1.0, min=0.0, max=100.0, step=0.01), + io.Int.Input("seed", default=0, min=0, max=0xffffffffffffffff, step=1), + io.Float.Input("noise_x_ratio", default=1.0, min=0.0, max=100.0, step=0.01, + tooltip="Multiplier for horizontal noise component"), + io.Float.Input("noise_y_ratio", default=1.0, min=0.0, max=100.0, step=0.01, + tooltip="Multiplier for vertical noise component"), + io.Float.Input("noise_temporal_ratio", default=1.0, min=0.0, max=100.0, step=0.01, + tooltip="Multiplier for temporal (frame-to-frame) noise"), + ], + outputs=[ + io.Tracks.Output(), + ], + ) + + @classmethod + def execute(cls, tracks, strength, seed, noise_x_ratio, noise_y_ratio, noise_temporal_ratio) -> io.NodeOutput: + track_path = tracks["track_path"].clone() + mask = tracks["track_visibility"] + + torch.manual_seed(seed) + noise = torch.randn_like(track_path) * strength + + # Apply directional scaling to noise + noise[..., 0] *= noise_x_ratio # X coordinate noise + noise[..., 1] *= noise_y_ratio # Y coordinate noise + + # Apply temporal smoothing if temporal ratio is less than 1 + if noise_temporal_ratio < 1.0: + num_frames = track_path.shape[0] + smoothed_noise = noise.clone() + kernel_size = max(1, int((1.0 - noise_temporal_ratio) * 10)) + + for i in range(num_frames): + start_idx = max(0, i - kernel_size // 2) + end_idx = min(num_frames, i + kernel_size // 2 + 1) + smoothed_noise[i] = noise[start_idx:end_idx].mean(dim=0) + + noise = smoothed_noise * noise_temporal_ratio + noise * (1 - noise_temporal_ratio) + + track_path = track_path + noise + + out_track = { + "track_path": track_path, + "track_visibility": mask, + } + return io.NodeOutput(out_track) + + +class VAEDecodeLoopKJ: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "samples": ("LATENT", {"tooltip": "The latent to be decoded."}), + "vae": ("VAE", {"tooltip": "The VAE model used for decoding the latent."}), + "overlap_latent_frames": ("INT", {"default": 2, "min": 2, "max": 8, "step": 1, "tooltip": "Number of frames to blend for seamless loop, for Wan 2 works and HunyuanVideo 1.5 should use 4"}), + } + } + RETURN_TYPES = ("IMAGE",) + OUTPUT_TOOLTIPS = ("The decoded images.",) + FUNCTION = "decode" + CATEGORY = "KJNodes/vae" + DESCRIPTION = "Video latent VAE decoding to fix artifacts on loop seams." + + def decode(self, vae, samples, overlap_latent_frames): + latents = samples["samples"] + + images = vae.decode(latents) + if overlap_latent_frames <= 0: + if len(images.shape) == 5: + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + return (images, ) + + end_frames = overlap_latent_frames + 1 + start_frames = overlap_latent_frames + + temp_images = vae.decode(torch.cat([latents[:, :, -end_frames:]] + [latents[:, :, :start_frames]], dim=2)).cpu().float() + + total_concat = end_frames + start_frames + temp_start = total_concat * 2 - 1 + main_start = total_concat + (overlap_latent_frames if overlap_latent_frames > 2 else 0) + + images = torch.cat([temp_images[:, temp_start:].to(images), images[:, main_start:]], dim=1) + if len(images.shape) == 5: + images = images.reshape(-1, images.shape[-3], images.shape[-2], images.shape[-1]) + + return (images, ) diff --git a/docs/hel-892/storyboard-reference/layer-tree.json b/docs/hel-892/storyboard-reference/layer-tree.json new file mode 100644 index 00000000..6f900698 --- /dev/null +++ b/docs/hel-892/storyboard-reference/layer-tree.json @@ -0,0 +1 @@ +{"sha":"3b17c7f488006c872f4cb3d6b37029a9464f1d7b","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/3b17c7f488006c872f4cb3d6b37029a9464f1d7b","tree":[{"path":".github","mode":"040000","type":"tree","sha":"110449013c31b45b9bdecb6c8f560891a39eaaae","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/110449013c31b45b9bdecb6c8f560891a39eaaae"},{"path":".github/workflows","mode":"040000","type":"tree","sha":"e906feca0884edee9ecf51b0558b8632bbbc0ebe","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/e906feca0884edee9ecf51b0558b8632bbbc0ebe"},{"path":".github/workflows/publish_action.yml","mode":"100644","type":"blob","sha":"122a1aeb5c04122e7f252c6d18bac91bfaf86fb5","size":555,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/122a1aeb5c04122e7f252c6d18bac91bfaf86fb5"},{"path":".gitignore","mode":"100644","type":"blob","sha":"868a782e6ab6b8f889a936ee11843a011641377d","size":46,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/868a782e6ab6b8f889a936ee11843a011641377d"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"e2568121d079845a006a2935286b89d1721e9559","size":1067,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e2568121d079845a006a2935286b89d1721e9559"},{"path":"README.MD","mode":"100644","type":"blob","sha":"b679c6c8c000c990c8a6d73c6b3606ec34beddb8","size":154130,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b679c6c8c000c990c8a6d73c6b3606ec34beddb8"},{"path":"README_CN.MD","mode":"100644","type":"blob","sha":"583d280b72a29bae1c4f40faaeb278715fd0f881","size":136890,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/583d280b72a29bae1c4f40faaeb278715fd0f881"},{"path":"__init__.py","mode":"100644","type":"blob","sha":"fd50801f4dfafb2049c6755b14d5474f19cefa7a","size":1572,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fd50801f4dfafb2049c6755b14d5474f19cefa7a"},{"path":"custom_size.ini.example","mode":"100644","type":"blob","sha":"fc8de0cabc541f55e914228bf8c91c52df9c0e49","size":123,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fc8de0cabc541f55e914228bf8c91c52df9c0e49"},{"path":"font","mode":"040000","type":"tree","sha":"16c301154c20a2f246324587251f5994fef19ed2","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/16c301154c20a2f246324587251f5994fef19ed2"},{"path":"font/Alibaba-PuHuiTi-Heavy.ttf","mode":"100644","type":"blob","sha":"7eb047f4fa407b63012947b3651e5cb0f3394c75","size":2167400,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7eb047f4fa407b63012947b3651e5cb0f3394c75"},{"path":"image","mode":"040000","type":"tree","sha":"3a5c7690bc80e35dfd0a504559aa6c1c571d6f09","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/3a5c7690bc80e35dfd0a504559aa6c1c571d6f09"},{"path":"image/HSV_node.jpg","mode":"100644","type":"blob","sha":"17e151399dfaab44a193ccc3bde55417cc345222","size":80138,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/17e151399dfaab44a193ccc3bde55417cc345222"},{"path":"image/LAB_node.jpg","mode":"100644","type":"blob","sha":"9ca4ceea42ee6947488d79f82091f5cb507e709f","size":78829,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9ca4ceea42ee6947488d79f82091f5cb507e709f"},{"path":"image/RGB_node.jpg","mode":"100644","type":"blob","sha":"7c4ec5abbf90d9079c2aed2cd21139f01cdc94fe","size":53451,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7c4ec5abbf90d9079c2aed2cd21139f01cdc94fe"},{"path":"image/RGB_value_example.jpg","mode":"100644","type":"blob","sha":"c6e15951542264b565b9a9caacee8403900552ae","size":81237,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c6e15951542264b565b9a9caacee8403900552ae"},{"path":"image/YUV_node.jpg","mode":"100644","type":"blob","sha":"112979872d2592be447fb677d23a952422420f4b","size":56478,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/112979872d2592be447fb677d23a952422420f4b"},{"path":"image/add_grain_example.jpg","mode":"100644","type":"blob","sha":"cfd54ae298332cc46ccc12a7b7f9a394aa9972a8","size":141123,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cfd54ae298332cc46ccc12a7b7f9a394aa9972a8"},{"path":"image/add_grain_node.jpg","mode":"100644","type":"blob","sha":"bd73a6dc69863c33f8d62c838aa1158af7fe167e","size":40515,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bd73a6dc69863c33f8d62c838aa1158af7fe167e"},{"path":"image/any_rerouter_node.jpg","mode":"100644","type":"blob","sha":"6e9020d438d7f9153e8166139eb5b21db753f210","size":44415,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6e9020d438d7f9153e8166139eb5b21db753f210"},{"path":"image/auto_adjust_example.jpg","mode":"100644","type":"blob","sha":"ccec70e355aa85e23d4ad92f49e5671144579383","size":115842,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ccec70e355aa85e23d4ad92f49e5671144579383"},{"path":"image/auto_adjust_node.jpg","mode":"100644","type":"blob","sha":"3ac9828238738586e01539acf7cd02ae7bc39ff6","size":59389,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3ac9828238738586e01539acf7cd02ae7bc39ff6"},{"path":"image/auto_adjust_v2_example.jpg","mode":"100644","type":"blob","sha":"9bf2e899cad201d9301dc48f7353a45d48abfb71","size":142588,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9bf2e899cad201d9301dc48f7353a45d48abfb71"},{"path":"image/auto_adjust_v2_node.jpg","mode":"100644","type":"blob","sha":"909ac779fa993fbecec3b0cf18f5e10aaa904f26","size":56167,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/909ac779fa993fbecec3b0cf18f5e10aaa904f26"},{"path":"image/auto_brightness_example.jpg","mode":"100644","type":"blob","sha":"368ca93164eeea9f2a77a081c04d8d49b603cdf8","size":169827,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/368ca93164eeea9f2a77a081c04d8d49b603cdf8"},{"path":"image/auto_brightness_node.jpg","mode":"100644","type":"blob","sha":"0d108b3a50f734e383deb2b619cdc5e0a180159b","size":62531,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0d108b3a50f734e383deb2b619cdc5e0a180159b"},{"path":"image/batch_selector_example.jpg","mode":"100644","type":"blob","sha":"04f07867f0c003508c503e441de228f6725c6b8e","size":95731,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04f07867f0c003508c503e441de228f6725c6b8e"},{"path":"image/batch_selector_node.jpg","mode":"100644","type":"blob","sha":"66c007e9ded6cd1bac1f8f35167858febc538dd2","size":41824,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/66c007e9ded6cd1bac1f8f35167858febc538dd2"},{"path":"image/ben_ultra_example.jpg","mode":"100644","type":"blob","sha":"b7901c6af19e9461b74acd401aa968779fb1b24f","size":342254,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7901c6af19e9461b74acd401aa968779fb1b24f"},{"path":"image/ben_ultra_node.jpg","mode":"100644","type":"blob","sha":"80a94c23230a8fbeb6c8559447356220437c4a59","size":107033,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80a94c23230a8fbeb6c8559447356220437c4a59"},{"path":"image/blend_mode_result.jpg","mode":"100644","type":"blob","sha":"732d7b8f7fbe50301ea0da97a46c2cceef8ce096","size":460297,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/732d7b8f7fbe50301ea0da97a46c2cceef8ce096"},{"path":"image/blend_mode_v2_example.jpg","mode":"100644","type":"blob","sha":"b2fbaadfa1d9ae0b15538648cf5211eff96f214b","size":862386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b2fbaadfa1d9ae0b15538648cf5211eff96f214b"},{"path":"image/blendif_mask_example.jpg","mode":"100644","type":"blob","sha":"fc712398e7d21fc9486a5c0ae2d103311b824e48","size":190602,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fc712398e7d21fc9486a5c0ae2d103311b824e48"},{"path":"image/blendif_mask_node.jpg","mode":"100644","type":"blob","sha":"2e6b974ed92722d558eb1753b4c4943e9dee49f4","size":45491,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2e6b974ed92722d558eb1753b4c4943e9dee49f4"},{"path":"image/boolean_node.jpg","mode":"100644","type":"blob","sha":"8acd4b9a064dc2e5c693138e744b3aa2688968b0","size":33514,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8acd4b9a064dc2e5c693138e744b3aa2688968b0"},{"path":"image/boolean_operator_node.jpg","mode":"100644","type":"blob","sha":"3b734d5d4bd1bf69543aabeb0212ff84d69c2ee5","size":36364,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3b734d5d4bd1bf69543aabeb0212ff84d69c2ee5"},{"path":"image/boolean_operator_v2_node.jpg","mode":"100644","type":"blob","sha":"5ecca287620565006582f776e97923c1f09805fa","size":36228,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5ecca287620565006582f776e97923c1f09805fa"},{"path":"image/boolean_oprator_v2_node.jpg","mode":"100644","type":"blob","sha":"5e539b6084c1a7aac28eea09573d3916e68b521c","size":43322,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5e539b6084c1a7aac28eea09573d3916e68b521c"},{"path":"image/brightness_&_contrast_node.jpg","mode":"100644","type":"blob","sha":"f32c9d8c72a1e79df1343a46d04da7e5364c4364","size":96254,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f32c9d8c72a1e79df1343a46d04da7e5364c4364"},{"path":"image/channel_shake_example.jpg","mode":"100644","type":"blob","sha":"f76f904ca5aa50908b398d93f38ce773e24c5310","size":173676,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f76f904ca5aa50908b398d93f38ce773e24c5310"},{"path":"image/channel_shake_node.jpg","mode":"100644","type":"blob","sha":"2879dea91e0edb076fac580ef04ee83262675c26","size":87458,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2879dea91e0edb076fac580ef04ee83262675c26"},{"path":"image/check_mask_node.jpg","mode":"100644","type":"blob","sha":"368a6c0934761692a7c7851c71d4c1993c7ca767","size":34796,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/368a6c0934761692a7c7851c71d4c1993c7ca767"},{"path":"image/check_mask_v2_node.jpg","mode":"100644","type":"blob","sha":"be3a0911d8b85a204758ad90f40d5c5bb3c8bd67","size":36550,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/be3a0911d8b85a204758ad90f40d5c5bb3c8bd67"},{"path":"image/chioce_text_preset_node.jpg","mode":"100644","type":"blob","sha":"3cd675afbfbf854c18b56234c688778c9ca64643","size":117818,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3cd675afbfbf854c18b56234c688778c9ca64643"},{"path":"image/choice_text_preset_example.jpg","mode":"100644","type":"blob","sha":"b69730a6841ecea8d3a543b4464ba6fc3fbcc74a","size":343516,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b69730a6841ecea8d3a543b4464ba6fc3fbcc74a"},{"path":"image/color_adapter_example.jpg","mode":"100644","type":"blob","sha":"08a17e35086f3bd1d9b2fe673f0755729c157763","size":251383,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/08a17e35086f3bd1d9b2fe673f0755729c157763"},{"path":"image/color_adapter_node.jpg","mode":"100644","type":"blob","sha":"3c41662e7001edc5044a4359c97a1782a0c75fca","size":71876,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3c41662e7001edc5044a4359c97a1782a0c75fca"},{"path":"image/color_balance_example.jpg","mode":"100644","type":"blob","sha":"e019e68bc921d0bc660da929cc08e7af74de2e91","size":179559,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e019e68bc921d0bc660da929cc08e7af74de2e91"},{"path":"image/color_balance_node.jpg","mode":"100644","type":"blob","sha":"aeaa81e58724d3c1079e54c37b4d29aeb9f0ad36","size":69029,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/aeaa81e58724d3c1079e54c37b4d29aeb9f0ad36"},{"path":"image/color_image_example.jpg","mode":"100644","type":"blob","sha":"fe6567a32b3c297f1af07b7b8893f2d67ba1a7cf","size":110027,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fe6567a32b3c297f1af07b7b8893f2d67ba1a7cf"},{"path":"image/color_image_node.jpg","mode":"100644","type":"blob","sha":"38b44779c3aad2521a95569af4a660f8e37c7e4d","size":98559,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/38b44779c3aad2521a95569af4a660f8e37c7e4d"},{"path":"image/color_image_v2_node.jpg","mode":"100644","type":"blob","sha":"c343475097a3103db5297d63c770af5821a44d06","size":53412,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c343475097a3103db5297d63c770af5821a44d06"},{"path":"image/color_map_node.jpg","mode":"100644","type":"blob","sha":"99fd5f9a268d347c9521be8c3afd4bd1c4c0fd8a","size":91518,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/99fd5f9a268d347c9521be8c3afd4bd1c4c0fd8a"},{"path":"image/color_name_example.jpg","mode":"100644","type":"blob","sha":"c5c672190504e68599d66a5ca26d999d2dd16039","size":92839,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c5c672190504e68599d66a5ca26d999d2dd16039"},{"path":"image/color_name_node.jpg","mode":"100644","type":"blob","sha":"cce4e76a523b8c07b9ee6c9b8f95ffbb2c1840d1","size":75857,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cce4e76a523b8c07b9ee6c9b8f95ffbb2c1840d1"},{"path":"image/color_negative_example.jpg","mode":"100644","type":"blob","sha":"c6c8a8a6fef053c73af3e513229e5a0735df561f","size":525053,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c6c8a8a6fef053c73af3e513229e5a0735df561f"},{"path":"image/color_negative_node.jpg","mode":"100644","type":"blob","sha":"dae46332d238de5a36125b3c2a6a138add9b26ba","size":91433,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dae46332d238de5a36125b3c2a6a138add9b26ba"},{"path":"image/color_of_shadow_and_highlight_example.jpg","mode":"100644","type":"blob","sha":"49973b9b1b8642ce55ab2898e3bce5a7ee5d35aa","size":244182,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/49973b9b1b8642ce55ab2898e3bce5a7ee5d35aa"},{"path":"image/color_of_shadow_and_highlight_node.jpg","mode":"100644","type":"blob","sha":"b7e695a4f95d86e8e110b694bccf2dd69799d4a9","size":115832,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7e695a4f95d86e8e110b694bccf2dd69799d4a9"},{"path":"image/color_overlay_example.jpg","mode":"100644","type":"blob","sha":"99c2ef1723d72fef1842f95df4343fef3746f9ce","size":122452,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/99c2ef1723d72fef1842f95df4343fef3746f9ce"},{"path":"image/color_overlay_node.jpg","mode":"100644","type":"blob","sha":"2a9b38a29ec2edc1d5845b9f7cbdad7c765086fa","size":65828,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2a9b38a29ec2edc1d5845b9f7cbdad7c765086fa"},{"path":"image/color_picker.jpg","mode":"100644","type":"blob","sha":"7323337f14fb88e97b91e1b54f14333dfbcf534e","size":63421,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7323337f14fb88e97b91e1b54f14333dfbcf534e"},{"path":"image/color_temperature_example.jpg","mode":"100644","type":"blob","sha":"3e93e0e99f034b66fa8e9209ec12483ae9042583","size":193365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e93e0e99f034b66fa8e9209ec12483ae9042583"},{"path":"image/color_temperature_node.jpg","mode":"100644","type":"blob","sha":"faa7f7843230f22cb8906e6f7f8f02090e953e18","size":54916,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/faa7f7843230f22cb8906e6f7f8f02090e953e18"},{"path":"image/colormap_result.jpg","mode":"100644","type":"blob","sha":"2a7ea280982136f83976c8aeebe41dbbe187d354","size":531623,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2a7ea280982136f83976c8aeebe41dbbe187d354"},{"path":"image/corp_box_resolve_node.jpg","mode":"100644","type":"blob","sha":"66fe0d35d59cdb43b416d94adaf6e3f6c30def08","size":48400,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/66fe0d35d59cdb43b416d94adaf6e3f6c30def08"},{"path":"image/corp_by_mask_example.jpg","mode":"100644","type":"blob","sha":"43e1efba93aec0b4a4bea503d8dbb2c255c25b8e","size":355941,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/43e1efba93aec0b4a4bea503d8dbb2c255c25b8e"},{"path":"image/corp_by_mask_node.jpg","mode":"100644","type":"blob","sha":"a02cefeb6ca4de31d6179af3d1a6fa637fa418a8","size":113028,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a02cefeb6ca4de31d6179af3d1a6fa637fa418a8"},{"path":"image/corp_by_mask_v2_node.jpg","mode":"100644","type":"blob","sha":"e68209f2a4d965908d8baed7f20746ca5929a1fd","size":81957,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e68209f2a4d965908d8baed7f20746ca5929a1fd"},{"path":"image/create_gradient_mask_example.jpg","mode":"100644","type":"blob","sha":"df04384258c44c01ba9e4ad4ace222e9558d8e92","size":297079,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/df04384258c44c01ba9e4ad4ace222e9558d8e92"},{"path":"image/create_gradient_mask_example2.jpg","mode":"100644","type":"blob","sha":"d3a7876324d5eb49511bcd5ac44dc7021396c171","size":215489,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d3a7876324d5eb49511bcd5ac44dc7021396c171"},{"path":"image/create_gradient_mask_node.jpg","mode":"100644","type":"blob","sha":"16e01dbbc414fe1d6609cc1ca96c32b9f4206651","size":89451,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/16e01dbbc414fe1d6609cc1ca96c32b9f4206651"},{"path":"image/data_nodes_example.jpg","mode":"100644","type":"blob","sha":"6995c0905e23ce2c596a970e2a193b3bbb0a7b65","size":164108,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6995c0905e23ce2c596a970e2a193b3bbb0a7b65"},{"path":"image/draw_rounded_rectangle_node.jpg","mode":"100644","type":"blob","sha":"cf78e545de466eec6bdeeae8c3c28333743c0630","size":156551,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cf78e545de466eec6bdeeae8c3c28333743c0630"},{"path":"image/drop_shadow_example.jpg","mode":"100644","type":"blob","sha":"f21fe1838c84590109a1bac231d79896826442c6","size":148107,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f21fe1838c84590109a1bac231d79896826442c6"},{"path":"image/drop_shadow_node.jpg","mode":"100644","type":"blob","sha":"04c85893f8d732a373a1303f9508e73e1f290b67","size":84208,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04c85893f8d732a373a1303f9508e73e1f290b67"},{"path":"image/exposure_example.jpg","mode":"100644","type":"blob","sha":"79f6bc2c2d7ab420e04f32b69f43e3e32fa44dca","size":227556,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/79f6bc2c2d7ab420e04f32b69f43e3e32fa44dca"},{"path":"image/extend_canvas_example.jpg","mode":"100644","type":"blob","sha":"7e15756f6c3014e9c0d5f6602849b17935c158c3","size":220537,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7e15756f6c3014e9c0d5f6602849b17935c158c3"},{"path":"image/extend_canvas_node.jpg","mode":"100644","type":"blob","sha":"743b68d3a3b379b2417e0d540e5867fa746db8c8","size":110845,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/743b68d3a3b379b2417e0d540e5867fa746db8c8"},{"path":"image/extend_canvas_v2_node.jpg","mode":"100644","type":"blob","sha":"99873a70839d2af048da71b3745ee3e7b22fdd5c","size":94489,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/99873a70839d2af048da71b3745ee3e7b22fdd5c"},{"path":"image/film_example.jpg","mode":"100644","type":"blob","sha":"1e59ce7fab8de325546cac4a3fa44189c8536c9a","size":494998,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1e59ce7fab8de325546cac4a3fa44189c8536c9a"},{"path":"image/film_node.jpg","mode":"100644","type":"blob","sha":"19e8312636ec208452035c7c26ff1538d40704e7","size":121613,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19e8312636ec208452035c7c26ff1538d40704e7"},{"path":"image/film_v2_node.jpg","mode":"100644","type":"blob","sha":"35a22224a043c82f03091f6d3d4ec13ad91ea3db","size":85623,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/35a22224a043c82f03091f6d3d4ec13ad91ea3db"},{"path":"image/float_node.jpg","mode":"100644","type":"blob","sha":"17106da8703bd7024ca1a8fe6ea8ad915fb7c720","size":36567,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/17106da8703bd7024ca1a8fe6ea8ad915fb7c720"},{"path":"image/flux_kontext_image_scale_node.jpg","mode":"100644","type":"blob","sha":"d9b5c98771c635403fdb3cc976d835bde5185815","size":55682,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d9b5c98771c635403fdb3cc976d835bde5185815"},{"path":"image/flux_kontext_image_scale_node_example.jpg","mode":"100644","type":"blob","sha":"d623c63404a68ce43c0aa18ea35b88bfb0080f6d","size":829717,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d623c63404a68ce43c0aa18ea35b88bfb0080f6d"},{"path":"image/gamma_node.jpg","mode":"100644","type":"blob","sha":"9c34762bcaec56a3d1c102494800277a519a3f2a","size":68141,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9c34762bcaec56a3d1c102494800277a519a3f2a"},{"path":"image/gaussian_blur_example.jpg","mode":"100644","type":"blob","sha":"1fc3533de9982f27fcd5437afeda543aaebb1a4c","size":125072,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1fc3533de9982f27fcd5437afeda543aaebb1a4c"},{"path":"image/gaussian_blur_v2_node.jpg","mode":"100644","type":"blob","sha":"29c12e86a861d67b92f2e944c5b64cbf7080043c","size":70890,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/29c12e86a861d67b92f2e944c5b64cbf7080043c"},{"path":"image/get_image_size_node.jpg","mode":"100644","type":"blob","sha":"419e0bf90f77384b7c36537cf6f69eda8f57f62f","size":50114,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/419e0bf90f77384b7c36537cf6f69eda8f57f62f"},{"path":"image/get_main_color_and_color_name_example.jpg","mode":"100644","type":"blob","sha":"96c80196218fa21c056cb365ddeeaa0ea1c3ff02","size":441626,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/96c80196218fa21c056cb365ddeeaa0ea1c3ff02"},{"path":"image/get_main_color_node.jpg","mode":"100644","type":"blob","sha":"485ad3efbdbbccbf24a539a965fcc720afdf2eb5","size":98875,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/485ad3efbdbbccbf24a539a965fcc720afdf2eb5"},{"path":"image/get_main_color_v2_example.jpg","mode":"100644","type":"blob","sha":"6a9d73a629f467950fa46e828d67d45944f3564f","size":210798,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6a9d73a629f467950fa46e828d67d45944f3564f"},{"path":"image/get_main_colors_example.jpg","mode":"100644","type":"blob","sha":"3379e75c26b0d4c26ca20ac4bb38ad140f3acbfc","size":478389,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3379e75c26b0d4c26ca20ac4bb38ad140f3acbfc"},{"path":"image/gradient_image_example.jpg","mode":"100644","type":"blob","sha":"c8ced063a0a85e1e4b347d5e4a3f2254f2c2d6bb","size":136260,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c8ced063a0a85e1e4b347d5e4a3f2254f2c2d6bb"},{"path":"image/gradient_image_node.jpg","mode":"100644","type":"blob","sha":"e86c33259ea00ff6b7571e380cf3b50d04e08c2b","size":92762,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e86c33259ea00ff6b7571e380cf3b50d04e08c2b"},{"path":"image/gradient_image_node_v2.jpg","mode":"100644","type":"blob","sha":"ba2a31383d6c03b7e958343a36713476fa5f2d28","size":66171,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ba2a31383d6c03b7e958343a36713476fa5f2d28"},{"path":"image/gradient_overlay_example.jpg","mode":"100644","type":"blob","sha":"7bcb141f032fc9e893c654b65091b71f7b19aa01","size":131113,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7bcb141f032fc9e893c654b65091b71f7b19aa01"},{"path":"image/gradient_overlay_node.jpg","mode":"100644","type":"blob","sha":"59d4d6392e293e51aa05aa5fc5a43f2bed330da0","size":88365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/59d4d6392e293e51aa05aa5fc5a43f2bed330da0"},{"path":"image/gray_value_node.jpg","mode":"100644","type":"blob","sha":"244dc18cb83d0f132aaa839cb2fb97fff393028a","size":34411,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/244dc18cb83d0f132aaa839cb2fb97fff393028a"},{"path":"image/halftone_example.jpg","mode":"100644","type":"blob","sha":"9ca20e1e012b4a22515bcee4c669b0a54daa89bc","size":617473,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9ca20e1e012b4a22515bcee4c669b0a54daa89bc"},{"path":"image/halftone_node.jpg","mode":"100644","type":"blob","sha":"1dc0ebe42f1bd7865f141f5e236b946422b233b8","size":132065,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1dc0ebe42f1bd7865f141f5e236b946422b233b8"},{"path":"image/hdr_effects_example.jpg","mode":"100644","type":"blob","sha":"bc0961110b7f555a63d7e71f1693456756105a51","size":261380,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bc0961110b7f555a63d7e71f1693456756105a51"},{"path":"image/hdr_effects_node.jpg","mode":"100644","type":"blob","sha":"7460d41cd7e755ed698b65502ca842715caf852e","size":84344,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7460d41cd7e755ed698b65502ca842715caf852e"},{"path":"image/hl_frequency_detail_restore_example.jpg","mode":"100644","type":"blob","sha":"a8c635dedc9191b21e9d7401e5df09783b5b6e02","size":140184,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a8c635dedc9191b21e9d7401e5df09783b5b6e02"},{"path":"image/hl_frequency_detail_restore_node.jpg","mode":"100644","type":"blob","sha":"0d80665b05db155aa90a74fa1885a17944dd6492","size":43524,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0d80665b05db155aa90a74fa1885a17944dd6492"},{"path":"image/hsv_value_node.jpg","mode":"100644","type":"blob","sha":"c28baf9c83ced105f48e8a9c76a97518beb981c6","size":27047,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c28baf9c83ced105f48e8a9c76a97518beb981c6"},{"path":"image/icmask_crop_back_node.jpg","mode":"100644","type":"blob","sha":"af43cbfa3a994537dbe6f258fe7c3036112843fd","size":48582,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af43cbfa3a994537dbe6f258fe7c3036112843fd"},{"path":"image/icmask_example.jpg","mode":"100644","type":"blob","sha":"19b7f4c195cbfd203efe4a4b3750dcb5dec08365","size":1014401,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19b7f4c195cbfd203efe4a4b3750dcb5dec08365"},{"path":"image/icmask_node.jpg","mode":"100644","type":"blob","sha":"3a15f27565e695922603915e8fef32fbfd959f4c","size":83801,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3a15f27565e695922603915e8fef32fbfd959f4c"},{"path":"image/if_example.jpg","mode":"100644","type":"blob","sha":"2573daf794f12235e1a3343285a599c0fc1d1944","size":175656,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2573daf794f12235e1a3343285a599c0fc1d1944"},{"path":"image/if_node.jpg","mode":"100644","type":"blob","sha":"2632acc486134ef98fa75ce153ce57e3df7b9e3f","size":33843,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2632acc486134ef98fa75ce153ce57e3df7b9e3f"},{"path":"image/image_auto_crop_example.jpg","mode":"100644","type":"blob","sha":"59377b905af335a1d7394759c57c67f20f522ad6","size":270386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/59377b905af335a1d7394759c57c67f20f522ad6"},{"path":"image/image_auto_crop_node.jpg","mode":"100644","type":"blob","sha":"d3d2f831e132c3afb5120cdd63fbc6813eaf13e9","size":166305,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d3d2f831e132c3afb5120cdd63fbc6813eaf13e9"},{"path":"image/image_auto_crop_v2_node.jpg","mode":"100644","type":"blob","sha":"8420c78b95b3823db2cd32991d4c70e5026542ea","size":155630,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8420c78b95b3823db2cd32991d4c70e5026542ea"},{"path":"image/image_auto_crop_v3_node.jpg","mode":"100644","type":"blob","sha":"4bd168315502fba6ccc3c61ac67df37d580e2e1c","size":105364,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4bd168315502fba6ccc3c61ac67df37d580e2e1c"},{"path":"image/image_blend_advance_example.jpg","mode":"100644","type":"blob","sha":"a28a6aba3ab2640ac5f6ff34e1b3469e5f7b966b","size":289180,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a28a6aba3ab2640ac5f6ff34e1b3469e5f7b966b"},{"path":"image/image_blend_advance_node.jpg","mode":"100644","type":"blob","sha":"88c33e65fb2a9b615f5825e3afa328bafdff22b2","size":167996,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/88c33e65fb2a9b615f5825e3afa328bafdff22b2"},{"path":"image/image_blend_example.jpg","mode":"100644","type":"blob","sha":"ee8751dca573f5568a9c4fff96e746c15d1a3808","size":244283,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ee8751dca573f5568a9c4fff96e746c15d1a3808"},{"path":"image/image_blend_node.jpg","mode":"100644","type":"blob","sha":"e6a32feaea79adf8cff0114030ec4af018e1e0a0","size":58657,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e6a32feaea79adf8cff0114030ec4af018e1e0a0"},{"path":"image/image_channel_merge_example.jpg","mode":"100644","type":"blob","sha":"f7ba6767565e1d31e12802fe38577cf3aa6d2f2d","size":227492,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f7ba6767565e1d31e12802fe38577cf3aa6d2f2d"},{"path":"image/image_channel_merge_node.jpg","mode":"100644","type":"blob","sha":"7607ae741ac3cd31f8829f391ac4b0d2cd0d6fb2","size":75788,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7607ae741ac3cd31f8829f391ac4b0d2cd0d6fb2"},{"path":"image/image_channel_split_example.jpg","mode":"100644","type":"blob","sha":"9410d4cf0670734872f759346b1ae01c05329361","size":138349,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9410d4cf0670734872f759346b1ae01c05329361"},{"path":"image/image_channel_split_node.jpg","mode":"100644","type":"blob","sha":"e2e694f1d37cf7b17b376ce90c2426c50ee689d3","size":92365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e2e694f1d37cf7b17b376ce90c2426c50ee689d3"},{"path":"image/image_combine_alpha_node.jpg","mode":"100644","type":"blob","sha":"95445534514b651cb6c222a4caeabca68bd7b24a","size":44476,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/95445534514b651cb6c222a4caeabca68bd7b24a"},{"path":"image/image_composite_handle_mask_example.jpg","mode":"100644","type":"blob","sha":"cc5bc2173ecbdf0d93b603548d2f9f43a9858c82","size":820856,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cc5bc2173ecbdf0d93b603548d2f9f43a9858c82"},{"path":"image/image_composite_handle_mask_node.jpg","mode":"100644","type":"blob","sha":"e67a56de89f1369635f73c4945b3175e681afff5","size":204377,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e67a56de89f1369635f73c4945b3175e681afff5"},{"path":"image/image_hub_example.jpg","mode":"100644","type":"blob","sha":"f3506b0d9cd2eb7d742b7cf60caa46d876edd157","size":291955,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f3506b0d9cd2eb7d742b7cf60caa46d876edd157"},{"path":"image/image_hub_node.jpg","mode":"100644","type":"blob","sha":"f3156184837e2c6d73607880ca83249028c9dc15","size":107412,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f3156184837e2c6d73607880ca83249028c9dc15"},{"path":"image/image_mask_scale_as_example.jpg","mode":"100644","type":"blob","sha":"43710e011b2da458d013a19e69c3a2a34205adbc","size":237180,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/43710e011b2da458d013a19e69c3a2a34205adbc"},{"path":"image/image_mask_scale_as_node.jpg","mode":"100644","type":"blob","sha":"d008110d6e3961b4858dee43eac79335215c5b6f","size":42988,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d008110d6e3961b4858dee43eac79335215c5b6f"},{"path":"image/image_mask_scale_as_v2_example.jpg","mode":"100644","type":"blob","sha":"fb4635a8a1065874ad07dfd8c51ad70aa861afef","size":268182,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fb4635a8a1065874ad07dfd8c51ad70aa861afef"},{"path":"image/image_mask_scale_as_v2_node.jpg","mode":"100644","type":"blob","sha":"ec3c4279609d9c705b325bca09f82c72c03c5163","size":104215,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ec3c4279609d9c705b325bca09f82c72c03c5163"},{"path":"image/image_opacity_example.jpg","mode":"100644","type":"blob","sha":"a0212ea91cc7b26f72ce55680330643798b9bae5","size":87838,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a0212ea91cc7b26f72ce55680330643798b9bae5"},{"path":"image/image_reel_composit_node.jpg","mode":"100644","type":"blob","sha":"78f37ee7b33cb6ff887e6e59f8c115d72805c32e","size":118640,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/78f37ee7b33cb6ff887e6e59f8c115d72805c32e"},{"path":"image/image_reel_example.jpg","mode":"100644","type":"blob","sha":"a27162febf01a63672bb27b5e704b9ff03ee56ed","size":334910,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a27162febf01a63672bb27b5e704b9ff03ee56ed"},{"path":"image/image_reel_node.jpg","mode":"100644","type":"blob","sha":"c96c12d4ffd912ada5282e1c60729dc794909524","size":67714,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c96c12d4ffd912ada5282e1c60729dc794909524"},{"path":"image/image_remove_alpha_example.jpg","mode":"100644","type":"blob","sha":"7d25b4910b76885d255ff086fcc0f06cf125e475","size":293085,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7d25b4910b76885d255ff086fcc0f06cf125e475"},{"path":"image/image_remove_alpha_node.jpg","mode":"100644","type":"blob","sha":"95b6c256fa2dc62834265c05f9e4d84bd281827c","size":38440,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/95b6c256fa2dc62834265c05f9e4d84bd281827c"},{"path":"image/image_scale_by_aspect_ratio_example.jpg","mode":"100644","type":"blob","sha":"fefc5bb79b3dae6935f40a28f72d529a03ae8361","size":180781,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fefc5bb79b3dae6935f40a28f72d529a03ae8361"},{"path":"image/image_scale_by_aspect_ratio_node.jpg","mode":"100644","type":"blob","sha":"5101253d0548494ca43e288d8509c85265e82669","size":68082,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5101253d0548494ca43e288d8509c85265e82669"},{"path":"image/image_scale_by_aspect_ratio_v2_node.jpg","mode":"100644","type":"blob","sha":"ff990f725596497662dfe8c145cf2999a4bc297c","size":77275,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ff990f725596497662dfe8c145cf2999a4bc297c"},{"path":"image/image_scale_restore_example.jpg","mode":"100644","type":"blob","sha":"f9f49929d992f2f319104ef545592ef5868b8579","size":292384,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f9f49929d992f2f319104ef545592ef5868b8579"},{"path":"image/image_scale_restore_node.jpg","mode":"100644","type":"blob","sha":"76ee428a606fd31253ad2f0afa9a23c5a0e11105","size":51037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/76ee428a606fd31253ad2f0afa9a23c5a0e11105"},{"path":"image/image_scale_restore_v2_node.jpg","mode":"100644","type":"blob","sha":"af76907ff1fceb665c26cb0c0c836e68c3c0671d","size":51412,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af76907ff1fceb665c26cb0c0c836e68c3c0671d"},{"path":"image/image_shift_example.jpg","mode":"100644","type":"blob","sha":"3f2c04ea7669f3d5411e8cdc2b79f5a49c313767","size":143592,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3f2c04ea7669f3d5411e8cdc2b79f5a49c313767"},{"path":"image/image_shift_node.jpg","mode":"100644","type":"blob","sha":"3213b05bcc20f7630b71c894786ba5aa32419b86","size":112821,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3213b05bcc20f7630b71c894786ba5aa32419b86"},{"path":"image/image_tagger_save_example.jpg","mode":"100644","type":"blob","sha":"79e6bd3ffdd45493e9056d8ec54832c0e055afaf","size":300867,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/79e6bd3ffdd45493e9056d8ec54832c0e055afaf"},{"path":"image/image_tagger_save_node.jpg","mode":"100644","type":"blob","sha":"04ddb17c8e02be229ae506a14ac30955d392e154","size":95050,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04ddb17c8e02be229ae506a14ac30955d392e154"},{"path":"image/image_tagger_save_v2_node.jpg","mode":"100644","type":"blob","sha":"84aef56681832c891f19ead204973804ec0bfbbf","size":172439,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/84aef56681832c891f19ead204973804ec0bfbbf"},{"path":"image/image_to_mask_example.jpg","mode":"100644","type":"blob","sha":"0772242c9f7a21ddbe3ec79d21c4c3f2825cb28f","size":105436,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0772242c9f7a21ddbe3ec79d21c4c3f2825cb28f"},{"path":"image/image_to_mask_node.jpg","mode":"100644","type":"blob","sha":"fd70f9d246c349037d3c9a76944e68da0571123d","size":52874,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fd70f9d246c349037d3c9a76944e68da0571123d"},{"path":"image/inner_glow_example.jpg","mode":"100644","type":"blob","sha":"97f24f766460c354b70a4d97e619e21553005092","size":144004,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/97f24f766460c354b70a4d97e619e21553005092"},{"path":"image/inner_glow_node.jpg","mode":"100644","type":"blob","sha":"edbe125afcbd86af0c47742d194c82be97baae9b","size":88043,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/edbe125afcbd86af0c47742d194c82be97baae9b"},{"path":"image/inner_shadow_example.jpg","mode":"100644","type":"blob","sha":"a56312b2f1a8af8e2b22ddb17d9f0b3dd992d1b5","size":145357,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a56312b2f1a8af8e2b22ddb17d9f0b3dd992d1b5"},{"path":"image/inner_shadow_node.jpg","mode":"100644","type":"blob","sha":"7650221a548c4372b10473d8b172b7b630670a58","size":76697,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7650221a548c4372b10473d8b172b7b630670a58"},{"path":"image/integer_node.jpg","mode":"100644","type":"blob","sha":"4b1f37ea7fc0d846fd87f28575b71634379c6b06","size":35101,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4b1f37ea7fc0d846fd87f28575b71634379c6b06"},{"path":"image/layer_image_transform_example.jpg","mode":"100644","type":"blob","sha":"6252b6c20bb9385a223e2df109084119bf951be8","size":278572,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6252b6c20bb9385a223e2df109084119bf951be8"},{"path":"image/layer_image_transform_node.jpg","mode":"100644","type":"blob","sha":"f1d9c611c20d39bdcce60491d41408b22c5ab6b3","size":113630,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f1d9c611c20d39bdcce60491d41408b22c5ab6b3"},{"path":"image/layer_mask_transform_node.jpg","mode":"100644","type":"blob","sha":"5cb73177c725df6b85256139a1a1b08603c47f2c","size":114113,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5cb73177c725df6b85256139a1a1b08603c47f2c"},{"path":"image/layercolor_nodes.jpg","mode":"100644","type":"blob","sha":"1ada38433645156660d73a2c9c50fd4d20b75e08","size":175500,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ada38433645156660d73a2c9c50fd4d20b75e08"},{"path":"image/layercolor_title.jpg","mode":"100644","type":"blob","sha":"96b0ac0d06745dbd7d92eb7b904d69f8621f0590","size":299618,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/96b0ac0d06745dbd7d92eb7b904d69f8621f0590"},{"path":"image/layerfilter_nodes.jpg","mode":"100644","type":"blob","sha":"4c281f62a348989c0ade060b3ba6474ac0ab26ec","size":132248,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4c281f62a348989c0ade060b3ba6474ac0ab26ec"},{"path":"image/layermask_nodes.jpg","mode":"100644","type":"blob","sha":"89743ee21ceb4f0a59538c344c631bb5b821fe92","size":270257,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/89743ee21ceb4f0a59538c344c631bb5b821fe92"},{"path":"image/layerstyle_nodes.jpg","mode":"100644","type":"blob","sha":"01ee85e9fcadf3b7682b800a1d9297b33387ad53","size":149709,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/01ee85e9fcadf3b7682b800a1d9297b33387ad53"},{"path":"image/layerstyle_title.jpg","mode":"100644","type":"blob","sha":"d034b76922ac1bfd8f364c727f66d7f23de83205","size":300036,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d034b76922ac1bfd8f364c727f66d7f23de83205"},{"path":"image/layerutility_nodes.jpg","mode":"100644","type":"blob","sha":"2cf27537c78b7796bfd1cea0db8fe3216ba90ecb","size":495450,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2cf27537c78b7796bfd1cea0db8fe3216ba90ecb"},{"path":"image/levels_example.jpg","mode":"100644","type":"blob","sha":"0c292ad84b640d6b347275a38ca7c52b1d18c986","size":115797,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0c292ad84b640d6b347275a38ca7c52b1d18c986"},{"path":"image/levels_node.jpg","mode":"100644","type":"blob","sha":"d222c28a34d4649355a1fed32055387d4b062b1e","size":53236,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d222c28a34d4649355a1fed32055387d4b062b1e"},{"path":"image/light_leak_example.jpg","mode":"100644","type":"blob","sha":"bff5535cf51949ef5f7cf9edd5c1f32c4320673c","size":172469,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bff5535cf51949ef5f7cf9edd5c1f32c4320673c"},{"path":"image/light_leak_node.jpg","mode":"100644","type":"blob","sha":"597e1dd3ba05eafb107a4fddaf28fa5f94dedb02","size":95881,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/597e1dd3ba05eafb107a4fddaf28fa5f94dedb02"},{"path":"image/load_ben_model_node.jpg","mode":"100644","type":"blob","sha":"95d0dc79ee62e1ab6f05e2d57fae99a586c52f69","size":72100,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/95d0dc79ee62e1ab6f05e2d57fae99a586c52f69"},{"path":"image/load_images_from_path_node.jpg","mode":"100644","type":"blob","sha":"ba35004afc4c65ecb70cfc383862e43b8a6f155d","size":97080,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ba35004afc4c65ecb70cfc383862e43b8a6f155d"},{"path":"image/load_segfromer_model_node.jpg","mode":"100644","type":"blob","sha":"2484eb518c6f6ee808574bc31104c108fcd0072d","size":70049,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2484eb518c6f6ee808574bc31104c108fcd0072d"},{"path":"image/load_vqa_model_node.jpg","mode":"100644","type":"blob","sha":"b28fe27ff3cf76097a14cd8092c488928a3531b2","size":89372,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b28fe27ff3cf76097a14cd8092c488928a3531b2"},{"path":"image/lut_apply_example.jpg","mode":"100644","type":"blob","sha":"5c61f39d75eeee0e6915001656df554275ecb334","size":127316,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5c61f39d75eeee0e6915001656df554275ecb334"},{"path":"image/lut_apply_node.jpg","mode":"100644","type":"blob","sha":"7f2747dbb109c48ca91c1b206f7ce9b785f2102c","size":41290,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7f2747dbb109c48ca91c1b206f7ce9b785f2102c"},{"path":"image/mask_box_detect_example.jpg","mode":"100644","type":"blob","sha":"8d5c4c9d97d633d87f88bd8f42afa88964fd4717","size":277984,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8d5c4c9d97d633d87f88bd8f42afa88964fd4717"},{"path":"image/mask_box_detect_node.jpg","mode":"100644","type":"blob","sha":"46c586fa453018dfc187f6895210a3900d52298d","size":99142,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/46c586fa453018dfc187f6895210a3900d52298d"},{"path":"image/mask_box_extend_example.jpg","mode":"100644","type":"blob","sha":"8147a93508d2b53b737e73053b786524706fcc6a","size":444112,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8147a93508d2b53b737e73053b786524706fcc6a"},{"path":"image/mask_box_extend_node.jpg","mode":"100644","type":"blob","sha":"45fc4a24616596b0b218833c1d5f09f7d36164d5","size":146879,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/45fc4a24616596b0b218833c1d5f09f7d36164d5"},{"path":"image/mask_by_color_example.jpg","mode":"100644","type":"blob","sha":"a7688dbd16c22cd5e338f1ddecda0f670dc380dc","size":105262,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a7688dbd16c22cd5e338f1ddecda0f670dc380dc"},{"path":"image/mask_by_color_node.jpg","mode":"100644","type":"blob","sha":"fc6561a90f381fa8034bcfb07084d2513f2bbeee","size":64046,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fc6561a90f381fa8034bcfb07084d2513f2bbeee"},{"path":"image/mask_edge_compare.jpg","mode":"100644","type":"blob","sha":"fb52eb1ab5cdcbe387811e878a3a769c9a7f75dd","size":219591,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fb52eb1ab5cdcbe387811e878a3a769c9a7f75dd"},{"path":"image/mask_edge_shrink_example.jpg","mode":"100644","type":"blob","sha":"e74bc831186edf8a2a5dcfbc4d9da9a986826049","size":140488,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e74bc831186edf8a2a5dcfbc4d9da9a986826049"},{"path":"image/mask_edge_shrink_node.jpg","mode":"100644","type":"blob","sha":"e10296b6cc1d7ad234e5b4e1c2c6769f4ee8c36a","size":101524,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e10296b6cc1d7ad234e5b4e1c2c6769f4ee8c36a"},{"path":"image/mask_edge_ultra_detail_example.jpg","mode":"100644","type":"blob","sha":"16332d43a0cb019640aa0c4759e71c4a02f4f1c8","size":253635,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/16332d43a0cb019640aa0c4759e71c4a02f4f1c8"},{"path":"image/mask_edge_ultra_detail_node.jpg","mode":"100644","type":"blob","sha":"7361f345b45d9a0471fc4969556dcb7eac1e5f06","size":105896,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7361f345b45d9a0471fc4969556dcb7eac1e5f06"},{"path":"image/mask_edge_ultra_detail_v2_example.jpg","mode":"100644","type":"blob","sha":"a888b6bc9d447cb017bb58c137c9421c5bf1fa3c","size":355382,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a888b6bc9d447cb017bb58c137c9421c5bf1fa3c"},{"path":"image/mask_edge_ultra_detail_v2_node.jpg","mode":"100644","type":"blob","sha":"3d06041afc85ae5cb10ca569eb5e6977b3918589","size":61626,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d06041afc85ae5cb10ca569eb5e6977b3918589"},{"path":"image/mask_gradient_example.jpg","mode":"100644","type":"blob","sha":"078a15656dca84954bb94099b1367e741d05f5fc","size":318668,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/078a15656dca84954bb94099b1367e741d05f5fc"},{"path":"image/mask_gradient_node.jpg","mode":"100644","type":"blob","sha":"3d01978069fe1894268e49170cde014a929498b4","size":94669,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d01978069fe1894268e49170cde014a929498b4"},{"path":"image/mask_grain_example.jpg","mode":"100644","type":"blob","sha":"7472bf719080a160b793c67472bcde65a5263060","size":72218,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7472bf719080a160b793c67472bcde65a5263060"},{"path":"image/mask_grain_node.jpg","mode":"100644","type":"blob","sha":"2bd5b75779a8e16e377d63a0b7d4febf8af72d33","size":35256,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2bd5b75779a8e16e377d63a0b7d4febf8af72d33"},{"path":"image/mask_grow_example.jpg","mode":"100644","type":"blob","sha":"be89c6d04487ba7cba5e1ed7f83af60c96c173c9","size":125273,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/be89c6d04487ba7cba5e1ed7f83af60c96c173c9"},{"path":"image/mask_grow_node.jpg","mode":"100644","type":"blob","sha":"35b83f8f51e11f2645d8fd0a04d3b7b5a3311d30","size":99806,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/35b83f8f51e11f2645d8fd0a04d3b7b5a3311d30"},{"path":"image/mask_invert.jpg","mode":"100644","type":"blob","sha":"98f8a542c95bc3da976965c37633a36dc45def45","size":118640,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/98f8a542c95bc3da976965c37633a36dc45def45"},{"path":"image/mask_invert_node.jpg","mode":"100644","type":"blob","sha":"b340f8c1094aa58dd84b8ded81016bbfd9bb8df3","size":34590,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b340f8c1094aa58dd84b8ded81016bbfd9bb8df3"},{"path":"image/mask_motion_blur_example.jpg","mode":"100644","type":"blob","sha":"2e5dabe98dd7449b306cc67434077315b6716e43","size":150480,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2e5dabe98dd7449b306cc67434077315b6716e43"},{"path":"image/mask_motion_blur_node.jpg","mode":"100644","type":"blob","sha":"a7ef18ca1b32d1a95c85137dfe203be4e2d6c715","size":79980,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a7ef18ca1b32d1a95c85137dfe203be4e2d6c715"},{"path":"image/mask_preview_example.jpg","mode":"100644","type":"blob","sha":"653b056513b124d445179c7c315dfaccad1b9720","size":83535,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/653b056513b124d445179c7c315dfaccad1b9720"},{"path":"image/mask_stroke_example.jpg","mode":"100644","type":"blob","sha":"cb998e2c5eb8d8fdfb3dec4648ca05b7c95215b4","size":138265,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cb998e2c5eb8d8fdfb3dec4648ca05b7c95215b4"},{"path":"image/mask_stroke_node.jpg","mode":"100644","type":"blob","sha":"923a2c97ea4740d514d0404e87f04957585571a9","size":94318,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/923a2c97ea4740d514d0404e87f04957585571a9"},{"path":"image/menu_layer_color.jpg","mode":"100644","type":"blob","sha":"b5b74e6e568d4d4a3cd26ee5dd5d0cebb5ce1f0c","size":75224,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b5b74e6e568d4d4a3cd26ee5dd5d0cebb5ce1f0c"},{"path":"image/menu_layer_filter.jpg","mode":"100644","type":"blob","sha":"40278c88acf591e9decf8521f6dca75e967d63be","size":74662,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/40278c88acf591e9decf8521f6dca75e967d63be"},{"path":"image/menu_layer_mask.jpg","mode":"100644","type":"blob","sha":"e75329c1843a5dc47eb7e700800059a3d665e3bb","size":87215,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e75329c1843a5dc47eb7e700800059a3d665e3bb"},{"path":"image/menu_layer_style.jpg","mode":"100644","type":"blob","sha":"82c804073fc168f01db8c73078aeab37595e5751","size":68277,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/82c804073fc168f01db8c73078aeab37595e5751"},{"path":"image/menu_layer_utility.jpg","mode":"100644","type":"blob","sha":"7b69ece9949421f59697b3798f7cf6036bdf9fa2","size":140079,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7b69ece9949421f59697b3798f7cf6036bdf9fa2"},{"path":"image/motion_blur_example.jpg","mode":"100644","type":"blob","sha":"8f29ed815a32e9a3c107770ad17423cf7c34075b","size":94053,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8f29ed815a32e9a3c107770ad17423cf7c34075b"},{"path":"image/name_to_color_example.jpg","mode":"100644","type":"blob","sha":"f0e17b7e042f12162a8a8e572d549868a0613f81","size":109324,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f0e17b7e042f12162a8a8e572d549868a0613f81"},{"path":"image/name_to_color_node.jpg","mode":"100644","type":"blob","sha":"ab80bae0fab66715b575d42f982c4b53209fa213","size":145074,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ab80bae0fab66715b575d42f982c4b53209fa213"},{"path":"image/node-menu.jpg","mode":"100644","type":"blob","sha":"8edcf7f9cbe24a36565205e46d12a398ef0fc61b","size":70767,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8edcf7f9cbe24a36565205e46d12a398ef0fc61b"},{"path":"image/node-search.jpg","mode":"100644","type":"blob","sha":"47ac2173cc21008e2077bd0bd90c6fd3b6be79f9","size":98091,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/47ac2173cc21008e2077bd0bd90c6fd3b6be79f9"},{"path":"image/number_calculator_node.jpg","mode":"100644","type":"blob","sha":"80c424ef93274c6ad5acaba715b27108507f7491","size":40476,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80c424ef93274c6ad5acaba715b27108507f7491"},{"path":"image/number_calculator_v2_node.jpg","mode":"100644","type":"blob","sha":"d13a018ccc3714a6ef47bdc9ff3036d62e3180b5","size":50037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d13a018ccc3714a6ef47bdc9ff3036d62e3180b5"},{"path":"image/outer_glow_example.jpg","mode":"100644","type":"blob","sha":"29555876d98b4e11d8fbae3ffe4ed50e2b4e0c41","size":149618,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/29555876d98b4e11d8fbae3ffe4ed50e2b4e0c41"},{"path":"image/outer_glow_node.jpg","mode":"100644","type":"blob","sha":"196af9e3f3c0d498764749340bac9c8a16328277","size":92824,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/196af9e3f3c0d498764749340bac9c8a16328277"},{"path":"image/pixel_spread_example.jpg","mode":"100644","type":"blob","sha":"753ef9fa726ff832bad498fa755d2063e6380351","size":229790,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/753ef9fa726ff832bad498fa755d2063e6380351"},{"path":"image/pixel_spread_node.jpg","mode":"100644","type":"blob","sha":"6367910f1186578c3bb26686a36983c87498548a","size":66488,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6367910f1186578c3bb26686a36983c87498548a"},{"path":"image/print_info_node.jpg","mode":"100644","type":"blob","sha":"31fcf7af1ab7933383620b6825ea58dbc558f5b8","size":33148,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/31fcf7af1ab7933383620b6825ea58dbc558f5b8"},{"path":"image/purge_vram_example.jpg","mode":"100644","type":"blob","sha":"981dfff26833ea31d761fc6dc98c6339cfde0478","size":122548,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/981dfff26833ea31d761fc6dc98c6339cfde0478"},{"path":"image/purge_vram_v2_example.jpg","mode":"100644","type":"blob","sha":"ad6d44b8ff3cb953ba2284d575828d8ae91d6f9c","size":68807,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ad6d44b8ff3cb953ba2284d575828d8ae91d6f9c"},{"path":"image/queue_stop_example.jpg","mode":"100644","type":"blob","sha":"131522d2282889fe5d433ec0a37f586ff455056c","size":102397,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/131522d2282889fe5d433ec0a37f586ff455056c"},{"path":"image/queue_stop_node.jpg","mode":"100644","type":"blob","sha":"0d3a7781d2aeb0198bd17b78072087e05a32b36f","size":41132,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0d3a7781d2aeb0198bd17b78072087e05a32b36f"},{"path":"image/random_generator_example.jpg","mode":"100644","type":"blob","sha":"0ee8f643e789af19253f2c115422b09a94137eff","size":370992,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0ee8f643e789af19253f2c115422b09a94137eff"},{"path":"image/random_generator_node.jpg","mode":"100644","type":"blob","sha":"205f8a199fb7c015e23712f5c412b184490cac64","size":130888,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/205f8a199fb7c015e23712f5c412b184490cac64"},{"path":"image/random_generator_v2_node.jpg","mode":"100644","type":"blob","sha":"dcb80cd975109b45bc1bfa410609a93f77579434","size":105368,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dcb80cd975109b45bc1bfa410609a93f77579434"},{"path":"image/rembg_ultra_example.jpg","mode":"100644","type":"blob","sha":"dae672c04b11f5a2e2b1b67df3229effcf125767","size":444259,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dae672c04b11f5a2e2b1b67df3229effcf125767"},{"path":"image/rembg_ultra_node.jpg","mode":"100644","type":"blob","sha":"1ae3d784b48718096f19ec6c73dff6c7cfbd9452","size":94085,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ae3d784b48718096f19ec6c73dff6c7cfbd9452"},{"path":"image/restore_crop_box_node.jpg","mode":"100644","type":"blob","sha":"80861423fd2a12e66b6b76cbfac697c6ecc02dce","size":89709,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80861423fd2a12e66b6b76cbfac697c6ecc02dce"},{"path":"image/rmbg_ultra_v2_node.jpg","mode":"100644","type":"blob","sha":"98c55c77a9f674127f6de1d7cb5efc4cbee0c494","size":55133,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/98c55c77a9f674127f6de1d7cb5efc4cbee0c494"},{"path":"image/rounded_rectangle_example.jpg","mode":"100644","type":"blob","sha":"65f78cfde9e79ec72fb414578ee5f73c97b1c5a0","size":559367,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/65f78cfde9e79ec72fb414578ee5f73c97b1c5a0"},{"path":"image/rounded_rectangle_node.jpg","mode":"100644","type":"blob","sha":"eae315a679bc572ed7249c9abaa8228cfa2eb241","size":118558,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/eae315a679bc572ed7249c9abaa8228cfa2eb241"},{"path":"image/segformer_clothes_example.jpg","mode":"100644","type":"blob","sha":"6a34981479858c3caef3d3fb56de985786609c7e","size":188037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6a34981479858c3caef3d3fb56de985786609c7e"},{"path":"image/segformer_clothes_pipeline_node.jpg","mode":"100644","type":"blob","sha":"1b3febd61a0f11941d1353f878c78d3d4f66823d","size":102560,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1b3febd61a0f11941d1353f878c78d3d4f66823d"},{"path":"image/segformer_clothes_setting_node.jpg","mode":"100644","type":"blob","sha":"f4d82cffdb57fc51cb10f9054be9a788086d95a6","size":161356,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f4d82cffdb57fc51cb10f9054be9a788086d95a6"},{"path":"image/segformer_fashion_example.jpg","mode":"100644","type":"blob","sha":"28028fef3c166fc4693676c399c1fe27e5182d29","size":216951,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/28028fef3c166fc4693676c399c1fe27e5182d29"},{"path":"image/segformer_fashion_pipeline_node.jpg","mode":"100644","type":"blob","sha":"b0a8309dee1dd26815cab20444e5c4315eed6999","size":182387,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b0a8309dee1dd26815cab20444e5c4315eed6999"},{"path":"image/segformer_fashion_setting_node.jpg","mode":"100644","type":"blob","sha":"cc26a04794c0e2b0ceb9698263c5745591c7b76a","size":290052,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cc26a04794c0e2b0ceb9698263c5745591c7b76a"},{"path":"image/segformer_ultra_example.jpg","mode":"100644","type":"blob","sha":"8d31cd1aecf7954edffa5d4f8f0359b425ff92df","size":175909,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8d31cd1aecf7954edffa5d4f8f0359b425ff92df"},{"path":"image/segformer_ultra_node.jpg","mode":"100644","type":"blob","sha":"1232a9274ea74df885ce1e8d9e2b7333aa67f3d2","size":102140,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1232a9274ea74df885ce1e8d9e2b7333aa67f3d2"},{"path":"image/segformer_ultra_v2_node.jpg","mode":"100644","type":"blob","sha":"526c0018aba68e471344a69265f9f7045dff3c8f","size":66481,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/526c0018aba68e471344a69265f9f7045dff3c8f"},{"path":"image/segfromer_ultra_v3_node.jpg","mode":"100644","type":"blob","sha":"b7c323f1c60cdbeadeee167e04867e80afea116d","size":116196,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7c323f1c60cdbeadeee167e04867e80afea116d"},{"path":"image/segment_anything_ultra_compare.jpg","mode":"100644","type":"blob","sha":"550df2cc66edcc866d6d892ac623bdaf6263273a","size":264019,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/550df2cc66edcc866d6d892ac623bdaf6263273a"},{"path":"image/segment_anything_ultra_example.jpg","mode":"100644","type":"blob","sha":"e816dc2c6cd0ba11c40a5f4cba9229bbf060ab25","size":262563,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e816dc2c6cd0ba11c40a5f4cba9229bbf060ab25"},{"path":"image/segment_anything_ultra_node.jpg","mode":"100644","type":"blob","sha":"9a9e7fce23bfe887a5b59a52fd66c2487f161c87","size":126428,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9a9e7fce23bfe887a5b59a52fd66c2487f161c87"},{"path":"image/segment_anything_ultra_v2_node.jpg","mode":"100644","type":"blob","sha":"ea31e86fa11ceaec839000dde32b45c7df8f6c19","size":166556,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ea31e86fa11ceaec839000dde32b45c7df8f6c19"},{"path":"image/shadow_and_highlight_mask_example.jpg","mode":"100644","type":"blob","sha":"6f275d0f98d8f8f99607bfb7165ef9a3f8047ad4","size":251532,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6f275d0f98d8f8f99607bfb7165ef9a3f8047ad4"},{"path":"image/shadow_and_highlight_mask_node.jpg","mode":"100644","type":"blob","sha":"b2eb6bfc259adc338eb801a0325c211d57cd5550","size":75219,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b2eb6bfc259adc338eb801a0325c211d57cd5550"},{"path":"image/sharp_and_soft_example.jpg","mode":"100644","type":"blob","sha":"6aff6a9d7eb7f4b7bc2d282ea24def19d7362b42","size":293791,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6aff6a9d7eb7f4b7bc2d282ea24def19d7362b42"},{"path":"image/sharp_and_soft_node.jpg","mode":"100644","type":"blob","sha":"7e2b0929dc604463ec8228971b543b2a0048cef1","size":77351,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7e2b0929dc604463ec8228971b543b2a0048cef1"},{"path":"image/show_blind_watermark_node.jpg","mode":"100644","type":"blob","sha":"166ffa528e3aa6593f4b466a9b4a003dfbac6798","size":32269,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/166ffa528e3aa6593f4b466a9b4a003dfbac6798"},{"path":"image/simple_text_image_example.jpg","mode":"100644","type":"blob","sha":"882313f32a1ff4db3a8e680d3b9cd0430dc7f882","size":362969,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/882313f32a1ff4db3a8e680d3b9cd0430dc7f882"},{"path":"image/simple_text_image_node.jpg","mode":"100644","type":"blob","sha":"e402cb67620891e2cec7c81fc8f597097cbb11cd","size":136323,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e402cb67620891e2cec7c81fc8f597097cbb11cd"},{"path":"image/skin_beauty_example.jpg","mode":"100644","type":"blob","sha":"96ee143269b98b09f0635fc385447e0568948557","size":181458,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/96ee143269b98b09f0635fc385447e0568948557"},{"path":"image/skin_beauty_node.jpg","mode":"100644","type":"blob","sha":"f81788d453bfe25a798eb3914e9e59b2cc2b0f69","size":73324,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f81788d453bfe25a798eb3914e9e59b2cc2b0f69"},{"path":"image/soft_light_example.jpg","mode":"100644","type":"blob","sha":"bd8558561c17649e8083efd4ccc9fe6774de0a9d","size":158617,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bd8558561c17649e8083efd4ccc9fe6774de0a9d"},{"path":"image/soft_light_node.jpg","mode":"100644","type":"blob","sha":"af736dd7d1ded943a8b2c54842ee1f1bd8e20ee0","size":55976,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af736dd7d1ded943a8b2c54842ee1f1bd8e20ee0"},{"path":"image/string_condition_example.jpg","mode":"100644","type":"blob","sha":"7ce4b44835658245938eff8432084f4564ac741e","size":123855,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7ce4b44835658245938eff8432084f4564ac741e"},{"path":"image/string_condition_node.jpg","mode":"100644","type":"blob","sha":"8754725efc822ec422b032fc09b60d9a43c5b24e","size":34197,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8754725efc822ec422b032fc09b60d9a43c5b24e"},{"path":"image/string_node.jpg","mode":"100644","type":"blob","sha":"59dee0c06565d389deec37a9647a534b451df2d6","size":39212,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/59dee0c06565d389deec37a9647a534b451df2d6"},{"path":"image/stroke_example.jpg","mode":"100644","type":"blob","sha":"ac382b3c040c267c90405a2f437c20d66074b499","size":138205,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ac382b3c040c267c90405a2f437c20d66074b499"},{"path":"image/stroke_node.jpg","mode":"100644","type":"blob","sha":"8e485bf5d67e60a53a6a0c333086ac8960bff2ac","size":92201,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8e485bf5d67e60a53a6a0c333086ac8960bff2ac"},{"path":"image/switch_case_example.jpg","mode":"100644","type":"blob","sha":"250b651b292a263e8d0ab015a2671ddc161234be","size":185706,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/250b651b292a263e8d0ab015a2671ddc161234be"},{"path":"image/switch_case_node.jpg","mode":"100644","type":"blob","sha":"3a58ca713df6a689410f8898ee9db83ac773eec4","size":46657,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3a58ca713df6a689410f8898ee9db83ac773eec4"},{"path":"image/text_box_node.jpg","mode":"100644","type":"blob","sha":"62e107c43405ba2336f231f1c9a85cbfb09dce17","size":47699,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62e107c43405ba2336f231f1c9a85cbfb09dce17"},{"path":"image/text_image_example.jpg","mode":"100644","type":"blob","sha":"35f62c3c4db1dc04f05501ea6dfbecd724c23a02","size":277353,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/35f62c3c4db1dc04f05501ea6dfbecd724c23a02"},{"path":"image/text_image_node.jpg","mode":"100644","type":"blob","sha":"3b17fdde4d9c02ae0984d5bbdd520044c7363823","size":230645,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3b17fdde4d9c02ae0984d5bbdd520044c7363823"},{"path":"image/text_image_v2_node.jpg","mode":"100644","type":"blob","sha":"8c8619516c82177fd2515a37ff4e54e8b21140f2","size":131487,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8c8619516c82177fd2515a37ff4e54e8b21140f2"},{"path":"image/text_join_example.jpg","mode":"100644","type":"blob","sha":"0c97dd6858293d9d447de852b5e8eb2203433de2","size":106731,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0c97dd6858293d9d447de852b5e8eb2203433de2"},{"path":"image/text_join_v2_node.jpg","mode":"100644","type":"blob","sha":"bcb2a241613f45d256fd6b58541271f2460a33f7","size":47383,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bcb2a241613f45d256fd6b58541271f2460a33f7"},{"path":"image/text_preseter_node.jpg","mode":"100644","type":"blob","sha":"19126e84dd04f7a626da35292b7e8b443b39b912","size":105252,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19126e84dd04f7a626da35292b7e8b443b39b912"},{"path":"image/title.jpg","mode":"100644","type":"blob","sha":"854647ec8ed7b707225930713768a07fc0d74244","size":392262,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/854647ec8ed7b707225930713768a07fc0d74244"},{"path":"image/ultra_nodes.jpg","mode":"100644","type":"blob","sha":"4c5e16ea7cd2fd34ca0ba0be5c69ef308fb21f47","size":194763,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4c5e16ea7cd2fd34ca0ba0be5c69ef308fb21f47"},{"path":"image/ultra_v2_nodes_example.jpg","mode":"100644","type":"blob","sha":"d9b06c4a4298d063d062093a829e17bdb5bce679","size":330442,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d9b06c4a4298d063d062093a829e17bdb5bce679"},{"path":"image/vqa_prompt_example.jpg","mode":"100644","type":"blob","sha":"0a1b7ffda47c478096cb0ece506c15ee22e949cc","size":232045,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0a1b7ffda47c478096cb0ece506c15ee22e949cc"},{"path":"image/vqa_prompt_node.jpg","mode":"100644","type":"blob","sha":"1ba0223d5a67517cee99e5c1c2191a991e53c6ff","size":116402,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ba0223d5a67517cee99e5c1c2191a991e53c6ff"},{"path":"image/water_color_example.jpg","mode":"100644","type":"blob","sha":"36429724d5a01a4bdb51e8fe585421989ee0ddd3","size":149740,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/36429724d5a01a4bdb51e8fe585421989ee0ddd3"},{"path":"image/water_color_node.jpg","mode":"100644","type":"blob","sha":"8a66baa9f859b24e03008aa1a2f578e697b64a97","size":77141,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8a66baa9f859b24e03008aa1a2f578e697b64a97"},{"path":"image/xy2percent_example.jpg","mode":"100644","type":"blob","sha":"ec377513f1e442ae0b222be12d152c5227e480e3","size":288864,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ec377513f1e442ae0b222be12d152c5227e480e3"},{"path":"image/xy2percent_node.jpg","mode":"100644","type":"blob","sha":"20a1f4adcd6c25ad4e67faacf55d1c9ae94dcba9","size":66026,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/20a1f4adcd6c25ad4e67faacf55d1c9ae94dcba9"},{"path":"install_requirements.bat","mode":"100644","type":"blob","sha":"0b219eb5545bfb3bcb62e5e5be75c65470c4f278","size":657,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0b219eb5545bfb3bcb62e5e5be75c65470c4f278"},{"path":"install_requirements_aki.bat","mode":"100644","type":"blob","sha":"77773d2a1ae39208dc0bb68a5830369d07555129","size":645,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/77773d2a1ae39208dc0bb68a5830369d07555129"},{"path":"js","mode":"040000","type":"tree","sha":"5d03581ac149a724bbfa96b815c992fefe97784d","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/5d03581ac149a724bbfa96b815c992fefe97784d"},{"path":"js/dz_comfy_shared.js","mode":"100644","type":"blob","sha":"381b462111576487d7abca9e2a82d1d68084691c","size":9649,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/381b462111576487d7abca9e2a82d1d68084691c"},{"path":"js/dz_mtb_widgets.js","mode":"100644","type":"blob","sha":"a32f50691a97d72dd256b59f0210aca62fe9d5f2","size":31288,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a32f50691a97d72dd256b59f0210aca62fe9d5f2"},{"path":"js/dz_node_palette.js","mode":"100644","type":"blob","sha":"6356500554fc8521ebab833fa5c3cd4bfdd09c3d","size":1178,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6356500554fc8521ebab833fa5c3cd4bfdd09c3d"},{"path":"js/dz_parse-css.js","mode":"100644","type":"blob","sha":"1ae53b044a046d1dc4e151a7b95bca52ce3f730b","size":10252,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ae53b044a046d1dc4e151a7b95bca52ce3f730b"},{"path":"locales","mode":"040000","type":"tree","sha":"7c7b124b1df5a9ca896449bc89fe5f3ba900d4fb","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/7c7b124b1df5a9ca896449bc89fe5f3ba900d4fb"},{"path":"locales/fr","mode":"040000","type":"tree","sha":"a3fa1b3cc44c7c2585c356d9a16ccdd8ab45a1a2","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/a3fa1b3cc44c7c2585c356d9a16ccdd8ab45a1a2"},{"path":"locales/fr/nodeDefs.json","mode":"100644","type":"blob","sha":"4da7545a5cb2aa6461c91d98ce2b4170cf67eecf","size":92999,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4da7545a5cb2aa6461c91d98ce2b4170cf67eecf"},{"path":"locales/ja","mode":"040000","type":"tree","sha":"80d40f9b6cc4a8dc3d316344be96fc6740758633","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/80d40f9b6cc4a8dc3d316344be96fc6740758633"},{"path":"locales/ja/nodeDefs.json","mode":"100644","type":"blob","sha":"a2b990e90d0d4f91c23ade68e552292946912664","size":92386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a2b990e90d0d4f91c23ade68e552292946912664"},{"path":"locales/ko","mode":"040000","type":"tree","sha":"2e9b9f31a57d0a7d9c7da1738ea0ee9b7f0261fb","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/2e9b9f31a57d0a7d9c7da1738ea0ee9b7f0261fb"},{"path":"locales/ko/nodeDefs.json","mode":"100644","type":"blob","sha":"cb961f1f61492beb824c22ca6369ee6e9931af00","size":93642,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cb961f1f61492beb824c22ca6369ee6e9931af00"},{"path":"locales/ru","mode":"040000","type":"tree","sha":"179735a7a80bd11464ec555f83bc63d33dca18c4","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/179735a7a80bd11464ec555f83bc63d33dca18c4"},{"path":"locales/ru/nodeDefs.json","mode":"100644","type":"blob","sha":"98389ccaf03cba2a2460055304220737a8560820","size":101659,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/98389ccaf03cba2a2460055304220737a8560820"},{"path":"locales/zh","mode":"040000","type":"tree","sha":"6909082d81fe4dfda3453807c5d2cfd34ae6055f","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/6909082d81fe4dfda3453807c5d2cfd34ae6055f"},{"path":"locales/zh/nodeDefs.json","mode":"100644","type":"blob","sha":"fef37287a721b448795c315e3c912427312e4a92","size":91201,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fef37287a721b448795c315e3c912427312e4a92"},{"path":"lut","mode":"040000","type":"tree","sha":"6dc2b99f89d542a3c043fb20791c7bfe3fe78a92","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/6dc2b99f89d542a3c043fb20791c7bfe3fe78a92"},{"path":"lut/BlueArchitecture.cube","mode":"100644","type":"blob","sha":"858e350fa7f9a17f4d417e2c205af958fe8d34fd","size":970410,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/858e350fa7f9a17f4d417e2c205af958fe8d34fd"},{"path":"py","mode":"040000","type":"tree","sha":"eef26a8abfb6cdd0a99b47c81e61f9e662ff7fb4","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/eef26a8abfb6cdd0a99b47c81e61f9e662ff7fb4"},{"path":"py/add_grain.py","mode":"100644","type":"blob","sha":"b7d4c10334061d508c05aaf0a104e03d1e6e3c61","size":1449,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b7d4c10334061d508c05aaf0a104e03d1e6e3c61"},{"path":"py/any_rerouter.py","mode":"100644","type":"blob","sha":"1e80079a91aa6f650e479b4e07c84c6d69b046fe","size":704,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1e80079a91aa6f650e479b4e07c84c6d69b046fe"},{"path":"py/batch_selector.py","mode":"100644","type":"blob","sha":"3d9ed66b114f4dc556ed205626c3c34807b56349","size":1929,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d9ed66b114f4dc556ed205626c3c34807b56349"},{"path":"py/blend_if_mask.py","mode":"100644","type":"blob","sha":"c5eca0b0bb546a9897d2afd8ba4c3f66ef0352a3","size":3477,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c5eca0b0bb546a9897d2afd8ba4c3f66ef0352a3"},{"path":"py/blendmodes.py","mode":"100644","type":"blob","sha":"fac31af2b8e6a907d0d819456b7987bade44b1b4","size":12590,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fac31af2b8e6a907d0d819456b7987bade44b1b4"},{"path":"py/briarmbg.py","mode":"100644","type":"blob","sha":"647bdc0c81b5326554f722e04a6c7f396274ea85","size":12912,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/647bdc0c81b5326554f722e04a6c7f396274ea85"},{"path":"py/channel_shake.py","mode":"100644","type":"blob","sha":"6f57f152de08b3b294a0d576f4da98772d516e63","size":2322,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6f57f152de08b3b294a0d576f4da98772d516e63"},{"path":"py/check_mask.py","mode":"100644","type":"blob","sha":"bfefaa6605010d9db687a5c3cc995e125047f17d","size":1669,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bfefaa6605010d9db687a5c3cc995e125047f17d"},{"path":"py/check_mask_v2.py","mode":"100644","type":"blob","sha":"e9984ddffe4945a7b467dccb3c87f753e38e96a7","size":2034,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e9984ddffe4945a7b467dccb3c87f753e38e96a7"},{"path":"py/color_adapter.py","mode":"100644","type":"blob","sha":"e54301fb963a35acb69aae6bcb71e008b36dccd2","size":1935,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e54301fb963a35acb69aae6bcb71e008b36dccd2"},{"path":"py/color_correct_HSV.py","mode":"100644","type":"blob","sha":"abcf9083dc922e33304ad5e83238b133491b84eb","size":1827,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/abcf9083dc922e33304ad5e83238b133491b84eb"},{"path":"py/color_correct_LAB.py","mode":"100644","type":"blob","sha":"62495d2b3245f4593b81050704e5046e8f165f74","size":1811,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62495d2b3245f4593b81050704e5046e8f165f74"},{"path":"py/color_correct_LUTapply.py","mode":"100644","type":"blob","sha":"5294c2ed70bb0f8a5fe00a5a4baa68aec2aa1ebf","size":1792,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5294c2ed70bb0f8a5fe00a5a4baa68aec2aa1ebf"},{"path":"py/color_correct_RGB.py","mode":"100644","type":"blob","sha":"6cd6710e8a1dd77e9e777e713617c941e9545caa","size":1810,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6cd6710e8a1dd77e9e777e713617c941e9545caa"},{"path":"py/color_correct_YUV.py","mode":"100644","type":"blob","sha":"824c2ede0fa7b37362d6bedc70a7ac47f9dd4141","size":1815,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/824c2ede0fa7b37362d6bedc70a7ac47f9dd4141"},{"path":"py/color_correct_auto_adjust.py","mode":"100644","type":"blob","sha":"9a0de9cf43dd24d9a0ab0464d6d7e2dfc98df152","size":4195,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9a0de9cf43dd24d9a0ab0464d6d7e2dfc98df152"},{"path":"py/color_correct_auto_adjust_v2.py","mode":"100644","type":"blob","sha":"796f4377ed07a94a6acf47c8d7f926bbf816b391","size":6122,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/796f4377ed07a94a6acf47c8d7f926bbf816b391"},{"path":"py/color_correct_auto_brightness.py","mode":"100644","type":"blob","sha":"4580338703c8bb2bfa651ba30216f468088892e0","size":2727,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4580338703c8bb2bfa651ba30216f468088892e0"},{"path":"py/color_correct_brightness_and_contrast.py","mode":"100644","type":"blob","sha":"1a48e10ca275e55db896b5c3b45649482299663d","size":4086,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1a48e10ca275e55db896b5c3b45649482299663d"},{"path":"py/color_correct_color_balance.py","mode":"100644","type":"blob","sha":"8ae2971f31236c1434cb7176bc90af4779c12c4a","size":2385,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8ae2971f31236c1434cb7176bc90af4779c12c4a"},{"path":"py/color_correct_color_temperature.py","mode":"100644","type":"blob","sha":"62b6e70b9431a09410f84ffc0c1fa5c409f2bd6d","size":2011,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62b6e70b9431a09410f84ffc0c1fa5c409f2bd6d"},{"path":"py/color_correct_exposure.py","mode":"100644","type":"blob","sha":"b51a5f8b045f3ed50bd7381304fba9152a32b174","size":1707,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b51a5f8b045f3ed50bd7381304fba9152a32b174"},{"path":"py/color_correct_gamma.py","mode":"100644","type":"blob","sha":"346898540a8091f68c7307127c39829c8a4e2052","size":1350,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/346898540a8091f68c7307127c39829c8a4e2052"},{"path":"py/color_correct_levels.py","mode":"100644","type":"blob","sha":"ff91776fede6a0c2ff5336ad570d901e940f8166","size":3500,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ff91776fede6a0c2ff5336ad570d901e940f8166"},{"path":"py/color_correct_shadow_and_highlight.py","mode":"100644","type":"blob","sha":"0eff8e7dd3c8eeaac1645f26a7458040874a029a","size":12920,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0eff8e7dd3c8eeaac1645f26a7458040874a029a"},{"path":"py/color_image.py","mode":"100644","type":"blob","sha":"0aedd74bfbf5c5f30ad8639bed6b681485acef19","size":1005,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0aedd74bfbf5c5f30ad8639bed6b681485acef19"},{"path":"py/color_image_v2.py","mode":"100644","type":"blob","sha":"6d214531830e69adaa6d0850d7d996e4b53aa596","size":2036,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6d214531830e69adaa6d0850d7d996e4b53aa596"},{"path":"py/color_map.py","mode":"100644","type":"blob","sha":"fa674006d946c901416afd5f0b449ee15f120cf0","size":1649,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fa674006d946c901416afd5f0b449ee15f120cf0"},{"path":"py/color_name.py","mode":"100644","type":"blob","sha":"c3440d931c124f1af536cf06458a4344ea6f5c55","size":73580,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c3440d931c124f1af536cf06458a4344ea6f5c55"},{"path":"py/color_negative.py","mode":"100644","type":"blob","sha":"51e704a7685c52b03d5dd144d8d973a4df8d9498","size":2852,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/51e704a7685c52b03d5dd144d8d973a4df8d9498"},{"path":"py/color_overlay _v2.py","mode":"100644","type":"blob","sha":"6710dcd764272f0d6bf1b982028727645c466bbb","size":3315,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6710dcd764272f0d6bf1b982028727645c466bbb"},{"path":"py/color_overlay.py","mode":"100644","type":"blob","sha":"2a896c123ad6206cc35a53a8249377d42113afca","size":3371,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2a896c123ad6206cc35a53a8249377d42113afca"},{"path":"py/color_picker.py","mode":"100644","type":"blob","sha":"4d19dfa079f7f0bc1bc2ded1ad828487dd1aae0d","size":869,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4d19dfa079f7f0bc1bc2ded1ad828487dd1aae0d"},{"path":"py/color_to_HSVvalue.py","mode":"100644","type":"blob","sha":"207f99e6087b50ce303c9c15b151633482531764","size":1137,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/207f99e6087b50ce303c9c15b151633482531764"},{"path":"py/color_to_RGBvalue.py","mode":"100644","type":"blob","sha":"7694ecfa7eb210703d1184be770e8e50822c1391","size":1171,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7694ecfa7eb210703d1184be770e8e50822c1391"},{"path":"py/color_to_gray_value.py","mode":"100644","type":"blob","sha":"19e0c36feb1c0ed4bf622b583d8fa19c262ff913","size":841,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19e0c36feb1c0ed4bf622b583d8fa19c262ff913"},{"path":"py/create_gradient_mask.py","mode":"100644","type":"blob","sha":"03e5441efe04d7b0bb61b4d86203906974e2fe28","size":6037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/03e5441efe04d7b0bb61b4d86203906974e2fe28"},{"path":"py/crop_box_resolve.py","mode":"100644","type":"blob","sha":"bca827e4bb4740b3f5fbf0e8f6365d643e2ec1b5","size":864,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bca827e4bb4740b3f5fbf0e8f6365d643e2ec1b5"},{"path":"py/crop_by_mask.py","mode":"100644","type":"blob","sha":"d2f38ac20c6eb1d95b1daf89c645486f9b69e45c","size":4363,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d2f38ac20c6eb1d95b1daf89c645486f9b69e45c"},{"path":"py/crop_by_mask_v2.py","mode":"100644","type":"blob","sha":"9f994a206341a0544bb57e10d87cf52ab8c02483","size":4968,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9f994a206341a0544bb57e10d87cf52ab8c02483"},{"path":"py/crop_by_mask_v3.py","mode":"100644","type":"blob","sha":"f4056151fbef89c84fb35ec62a637eec5755a53a","size":4971,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f4056151fbef89c84fb35ec62a637eec5755a53a"},{"path":"py/data_nodes.py","mode":"100644","type":"blob","sha":"e0f510646442eaa2ee2b51c2c5803b92363fd852","size":15133,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e0f510646442eaa2ee2b51c2c5803b92363fd852"},{"path":"py/draw_mask.py","mode":"100644","type":"blob","sha":"f9b977a19b93db96911c4962eea2119ef3a6d7c8","size":1931,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f9b977a19b93db96911c4962eea2119ef3a6d7c8"},{"path":"py/drop_shadow.py","mode":"100644","type":"blob","sha":"4d346b9ec3082640c24ed63f765c4262c45b0de5","size":4312,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4d346b9ec3082640c24ed63f765c4262c45b0de5"},{"path":"py/drop_shadow_v2.py","mode":"100644","type":"blob","sha":"e67ec8c71949eb8131f00dfec9ac77a5efe87c99","size":4252,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e67ec8c71949eb8131f00dfec9ac77a5efe87c99"},{"path":"py/drop_shadow_v3.py","mode":"100644","type":"blob","sha":"53cd7385e339ee5565ff068ccc050a14e81624c7","size":4586,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/53cd7385e339ee5565ff068ccc050a14e81624c7"},{"path":"py/extend_canvas.py","mode":"100644","type":"blob","sha":"c64c4c6e5a7a7c9533be540e4d2edb5093e13ff1","size":2997,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c64c4c6e5a7a7c9533be540e4d2edb5093e13ff1"},{"path":"py/extend_canvas_v2.py","mode":"100644","type":"blob","sha":"09759ef3160846eb32f3f579aed4b3f31bdb501f","size":3145,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/09759ef3160846eb32f3f579aed4b3f31bdb501f"},{"path":"py/film_post.py","mode":"100644","type":"blob","sha":"2fdca4abc9888ab12044c57c93b1623243c90f95","size":3892,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2fdca4abc9888ab12044c57c93b1623243c90f95"},{"path":"py/film_post_v2.py","mode":"100644","type":"blob","sha":"de1e0ef243712645345d6e90ed09e6be9301bdbf","size":4289,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/de1e0ef243712645345d6e90ed09e6be9301bdbf"},{"path":"py/filmgrainer","mode":"040000","type":"tree","sha":"8a6349a0866d2222284e0fdcf1bfe78877a8e615","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/8a6349a0866d2222284e0fdcf1bfe78877a8e615"},{"path":"py/filmgrainer/__init__.py","mode":"100644","type":"blob","sha":"bb35ee1578af7e0a2aed9b5768b6d64dcf40a707","size":21,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bb35ee1578af7e0a2aed9b5768b6d64dcf40a707"},{"path":"py/filmgrainer/filmgrainer.py","mode":"100644","type":"blob","sha":"67092128f6104a8f5c3593a760b9d21287c17571","size":4388,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/67092128f6104a8f5c3593a760b9d21287c17571"},{"path":"py/filmgrainer/graingamma.py","mode":"100644","type":"blob","sha":"0f3cc6e4e2439093426685b50bbe1df82a7eac3e","size":3486,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0f3cc6e4e2439093426685b50bbe1df82a7eac3e"},{"path":"py/filmgrainer/graingen.py","mode":"100644","type":"blob","sha":"c3ea62ea4aa204722d6bcfaba5ac0af24045d826","size":2309,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c3ea62ea4aa204722d6bcfaba5ac0af24045d826"},{"path":"py/filmgrainer/processing.py","mode":"100644","type":"blob","sha":"4c48e8e58509895fe0f18561df4264516122217a","size":1419,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4c48e8e58509895fe0f18561df4264516122217a"},{"path":"py/flux_kontext_image_scale.py","mode":"100644","type":"blob","sha":"d5c3c462fd36e251940ee63f6f44277e00d4882a","size":2413,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d5c3c462fd36e251940ee63f6f44277e00d4882a"},{"path":"py/gaussian_blur.py","mode":"100644","type":"blob","sha":"f1d6fb26a17704d83efe24f86a6f7c41317640d9","size":2318,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f1d6fb26a17704d83efe24f86a6f7c41317640d9"},{"path":"py/get_image_size.py","mode":"100644","type":"blob","sha":"c43a1eded68689a261497002b42757d4caffb96f","size":939,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c43a1eded68689a261497002b42757d4caffb96f"},{"path":"py/get_main_colors.py","mode":"100644","type":"blob","sha":"783a2569fca0a5131ce7b025d5fadacd411c8b3a","size":9083,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/783a2569fca0a5131ce7b025d5fadacd411c8b3a"},{"path":"py/gradient_image.py","mode":"100644","type":"blob","sha":"da6070c66720681ccf3f8033c78d966ac1b0fc53","size":1242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/da6070c66720681ccf3f8033c78d966ac1b0fc53"},{"path":"py/gradient_image_v2.py","mode":"100644","type":"blob","sha":"9db41549a78638f98b1781c0f09debe3eaac1c83","size":2254,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9db41549a78638f98b1781c0f09debe3eaac1c83"},{"path":"py/gradient_map.py","mode":"100644","type":"blob","sha":"a8e07a1fa31aa780349a3d4bd6991368bf3ae724","size":3458,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a8e07a1fa31aa780349a3d4bd6991368bf3ae724"},{"path":"py/gradient_overlay.py","mode":"100644","type":"blob","sha":"a2120420b451944a5cf4f4f2096ddb5f8d9036ad","size":4310,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a2120420b451944a5cf4f4f2096ddb5f8d9036ad"},{"path":"py/gradient_overlay_v2.py","mode":"100644","type":"blob","sha":"90c3883359b2df150544bf276ef1b3cf25e19170","size":4242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/90c3883359b2df150544bf276ef1b3cf25e19170"},{"path":"py/halftone.py","mode":"100644","type":"blob","sha":"fa1f3d089b752d8353313604f764d9aa95229b35","size":6931,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fa1f3d089b752d8353313604f764d9aa95229b35"},{"path":"py/hdr_effects.py","mode":"100644","type":"blob","sha":"650e528d651a04abe21c5ba1722e26fb8543dab7","size":7385,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/650e528d651a04abe21c5ba1722e26fb8543dab7"},{"path":"py/hl_frequency_detail_restore.py","mode":"100644","type":"blob","sha":"03750089c506e160a20aa86a11712f1f62729bbd","size":3330,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/03750089c506e160a20aa86a11712f1f62729bbd"},{"path":"py/ic_mask.py","mode":"100644","type":"blob","sha":"b8976413e73e9177ef4fa5024338c3af656e7536","size":8565,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b8976413e73e9177ef4fa5024338c3af656e7536"},{"path":"py/image_blend.py","mode":"100644","type":"blob","sha":"d6ba755c26e477319c8b98054a0a96a57447891a","size":3067,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d6ba755c26e477319c8b98054a0a96a57447891a"},{"path":"py/image_blend_advance.py","mode":"100644","type":"blob","sha":"109b38f38752940ee7058d049c86eba4bab51064","size":5775,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/109b38f38752940ee7058d049c86eba4bab51064"},{"path":"py/image_blend_advance_v2.py","mode":"100644","type":"blob","sha":"b291d96d6edf730755238b1b4a14fa17a30d7c75","size":5674,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b291d96d6edf730755238b1b4a14fa17a30d7c75"},{"path":"py/image_blend_advance_v3.py","mode":"100644","type":"blob","sha":"1a92de3b6c20c68549abf5ba8c6777bf36be9a5d","size":5943,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1a92de3b6c20c68549abf5ba8c6777bf36be9a5d"},{"path":"py/image_blend_v2.py","mode":"100644","type":"blob","sha":"8e94d63b9ee05c6a39fdd0abfd9cec9ea807af8e","size":3038,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8e94d63b9ee05c6a39fdd0abfd9cec9ea807af8e"},{"path":"py/image_channel_merge.py","mode":"100644","type":"blob","sha":"62abd7f762eddd5e7d8e29826ce2d4bc6c872bf2","size":2529,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62abd7f762eddd5e7d8e29826ce2d4bc6c872bf2"},{"path":"py/image_channel_split.py","mode":"100644","type":"blob","sha":"7ff629c9e530b8e36b62b0a05977222a7ef287ed","size":1715,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7ff629c9e530b8e36b62b0a05977222a7ef287ed"},{"path":"py/image_combine_alpha.py","mode":"100644","type":"blob","sha":"0de6f6d17aa2e0f9d3396480aac8a8e1a7dd8e1a","size":1831,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0de6f6d17aa2e0f9d3396480aac8a8e1a7dd8e1a"},{"path":"py/image_composit_handle_mask.py","mode":"100644","type":"blob","sha":"6fd266e1197f2d383176bce221706ed18e8dbd1c","size":14276,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6fd266e1197f2d383176bce221706ed18e8dbd1c"},{"path":"py/image_hub.py","mode":"100644","type":"blob","sha":"327004118c1340c228735c61302cf122fead9094","size":5690,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/327004118c1340c228735c61302cf122fead9094"},{"path":"py/image_mask_scale_as.py","mode":"100644","type":"blob","sha":"1170884de14913006f3d1a9bf48fe56839ea8ca7","size":8108,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1170884de14913006f3d1a9bf48fe56839ea8ca7"},{"path":"py/image_opacity.py","mode":"100644","type":"blob","sha":"b215d848a72bd5f2d4ebe45688298e00e9dd11c5","size":2881,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b215d848a72bd5f2d4ebe45688298e00e9dd11c5"},{"path":"py/image_reel.py","mode":"100644","type":"blob","sha":"936b46df7c1f8ee69bc34b654142b4ef9de3be6a","size":9118,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/936b46df7c1f8ee69bc34b654142b4ef9de3be6a"},{"path":"py/image_remove_alpha.py","mode":"100644","type":"blob","sha":"d85b6f1971a567a2c288f4cdd04c2bc8c7da28cf","size":2069,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d85b6f1971a567a2c288f4cdd04c2bc8c7da28cf"},{"path":"py/image_scale_by_aspect_ratio.py","mode":"100644","type":"blob","sha":"bbb83e60afce99f476f966a9dbf96ba84275ecec","size":6897,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/bbb83e60afce99f476f966a9dbf96ba84275ecec"},{"path":"py/image_scale_by_aspect_ratio_v2.py","mode":"100644","type":"blob","sha":"c6e573c19cfa5a1e862cff779cace72bf298a3d5","size":8734,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c6e573c19cfa5a1e862cff779cace72bf298a3d5"},{"path":"py/image_scale_restore.py","mode":"100644","type":"blob","sha":"cde16ecd6bf51011c25e5714931e04d80140ff0c","size":4242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cde16ecd6bf51011c25e5714931e04d80140ff0c"},{"path":"py/image_scale_restore_v2.py","mode":"100644","type":"blob","sha":"3007676cbee5c8d3db21b5000ce05588aadd5f13","size":5247,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3007676cbee5c8d3db21b5000ce05588aadd5f13"},{"path":"py/image_shift.py","mode":"100644","type":"blob","sha":"f91d56f074d353ba4f82242b8893fd028ad738b2","size":3363,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f91d56f074d353ba4f82242b8893fd028ad738b2"},{"path":"py/image_tagger_save.py","mode":"100644","type":"blob","sha":"1d8864764566cba6a85db48a00a98435b2ec2861","size":12165,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1d8864764566cba6a85db48a00a98435b2ec2861"},{"path":"py/image_to_mask.py","mode":"100644","type":"blob","sha":"5264b0d83dfca7dc6ae3534f5adcf3a3b823a2c5","size":4371,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5264b0d83dfca7dc6ae3534f5adcf3a3b823a2c5"},{"path":"py/imagefunc.py","mode":"100644","type":"blob","sha":"f9ec0adfb653837a96802584b5ef36dfce4034ce","size":107560,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f9ec0adfb653837a96802584b5ef36dfce4034ce"},{"path":"py/inner_glow.py","mode":"100644","type":"blob","sha":"992c0f350e1ce8cb962d6bcdfe6ca1dfc19f44eb","size":4793,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/992c0f350e1ce8cb962d6bcdfe6ca1dfc19f44eb"},{"path":"py/inner_glow_v2.py","mode":"100644","type":"blob","sha":"9916bb49b019fb537ee78b49897c81578271c7f1","size":4719,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9916bb49b019fb537ee78b49897c81578271c7f1"},{"path":"py/inner_shadow.py","mode":"100644","type":"blob","sha":"34580da36085a19c987458316d5eb15bf35d6c93","size":4317,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/34580da36085a19c987458316d5eb15bf35d6c93"},{"path":"py/inner_shadow_v2.py","mode":"100644","type":"blob","sha":"2e0108b01334bc7b7a565350188c93f9e8abadbe","size":4250,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2e0108b01334bc7b7a565350188c93f9e8abadbe"},{"path":"py/layer_image_transform.py","mode":"100644","type":"blob","sha":"e8ecb255e29bb3933b97ec54c6be11fe5a43e392","size":3976,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e8ecb255e29bb3933b97ec54c6be11fe5a43e392"},{"path":"py/layer_mask_transform.py","mode":"100644","type":"blob","sha":"6b3ce60e5ae2042b2071279de3b947d6d3a7b98b","size":3229,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6b3ce60e5ae2042b2071279de3b947d6d3a7b98b"},{"path":"py/light_leak.py","mode":"100644","type":"blob","sha":"806f4993206f744b8e9ab2c9cf4a2d4ef7090005","size":3272,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/806f4993206f744b8e9ab2c9cf4a2d4ef7090005"},{"path":"py/load_images_from_path.py","mode":"100644","type":"blob","sha":"4a7bf500cfe26f1c9e5d1cec752322988dab3d56","size":4036,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4a7bf500cfe26f1c9e5d1cec752322988dab3d56"},{"path":"py/mask_box_detect.py","mode":"100644","type":"blob","sha":"ba189e8404f88038b81afd03381b457be1f5079d","size":5893,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ba189e8404f88038b81afd03381b457be1f5079d"},{"path":"py/mask_by_color.py","mode":"100644","type":"blob","sha":"af7ea5c525436207065ecd8ee4322903061acf75","size":2758,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/af7ea5c525436207065ecd8ee4322903061acf75"},{"path":"py/mask_edge_shrink.py","mode":"100644","type":"blob","sha":"833f513a03b9fa0d7c158d54da7ec0a8419493f0","size":3059,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/833f513a03b9fa0d7c158d54da7ec0a8419493f0"},{"path":"py/mask_edge_ultra_detail.py","mode":"100644","type":"blob","sha":"244df20bfe41afd3454a1e8cf1b993a9df850921","size":3365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/244df20bfe41afd3454a1e8cf1b993a9df850921"},{"path":"py/mask_edge_ultra_detail_v2.py","mode":"100644","type":"blob","sha":"f289d6d9486ed488b02257e94e3c495be36d74c1","size":4386,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f289d6d9486ed488b02257e94e3c495be36d74c1"},{"path":"py/mask_gradient.py","mode":"100644","type":"blob","sha":"62de2af00607f496269ea2945b2ebb86e8ce442f","size":7572,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62de2af00607f496269ea2945b2ebb86e8ce442f"},{"path":"py/mask_grain.py","mode":"100644","type":"blob","sha":"887aac70521161990e71e9eccb7c7ac3899a392e","size":2001,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/887aac70521161990e71e9eccb7c7ac3899a392e"},{"path":"py/mask_grow.py","mode":"100644","type":"blob","sha":"723c80f7503fc3163acbce9c8e722a7a5b613e3c","size":1558,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/723c80f7503fc3163acbce9c8e722a7a5b613e3c"},{"path":"py/mask_invert.py","mode":"100644","type":"blob","sha":"fae815e70d1007c5ae31ee46b4fe13d2fd5043c3","size":1130,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fae815e70d1007c5ae31ee46b4fe13d2fd5043c3"},{"path":"py/mask_motion_blur.py","mode":"100644","type":"blob","sha":"6ecf51dacac9e947ea15850b3e14c03aa138a363","size":1645,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6ecf51dacac9e947ea15850b3e14c03aa138a363"},{"path":"py/mask_preview.py","mode":"100644","type":"blob","sha":"04a0d5335dc72069ed364e1dac20fe6bdaf2370e","size":1047,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/04a0d5335dc72069ed364e1dac20fe6bdaf2370e"},{"path":"py/mask_stroke.py","mode":"100644","type":"blob","sha":"4471b35aaac68346af2535657700857c379a913b","size":2087,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4471b35aaac68346af2535657700857c379a913b"},{"path":"py/motion_blur.py","mode":"100644","type":"blob","sha":"a9d2cade86f489ff1b2f45c4a0f61a17b19b75ae","size":1293,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/a9d2cade86f489ff1b2f45c4a0f61a17b19b75ae"},{"path":"py/nano_banana_image_scale.py","mode":"100644","type":"blob","sha":"f0e55ac363965b178a40c44e23b97b729954a943","size":2117,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f0e55ac363965b178a40c44e23b97b729954a943"},{"path":"py/outer_glow.py","mode":"100644","type":"blob","sha":"72dbcc0cb589fc8d593775b13c6bffe7c1f1bf66","size":4713,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/72dbcc0cb589fc8d593775b13c6bffe7c1f1bf66"},{"path":"py/outer_glow_v2.py","mode":"100644","type":"blob","sha":"470b1060c917835afef7ac6f67b128a5ba4ead45","size":4637,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/470b1060c917835afef7ac6f67b128a5ba4ead45"},{"path":"py/pixel_spread.py","mode":"100644","type":"blob","sha":"3760fb5dc5e1a554218fb8d0a393947ff07b0953","size":2479,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3760fb5dc5e1a554218fb8d0a393947ff07b0953"},{"path":"py/print_info.py","mode":"100644","type":"blob","sha":"13060da15843eb5dc5ac17cf232d600a6d04451d","size":1665,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/13060da15843eb5dc5ac17cf232d600a6d04451d"},{"path":"py/purge_vram.py","mode":"100644","type":"blob","sha":"2777233ea435d3d32da7db12eda83700cae71365","size":2039,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2777233ea435d3d32da7db12eda83700cae71365"},{"path":"py/random_generator.py","mode":"100644","type":"blob","sha":"2dded714f7c6a6fea100b5b06140bed212e9abdd","size":5087,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2dded714f7c6a6fea100b5b06140bed212e9abdd"},{"path":"py/restore_crop_box.py","mode":"100644","type":"blob","sha":"40cc07e77110bc6285de160f7b5e1ff1f25a38d5","size":2835,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/40cc07e77110bc6285de160f7b5e1ff1f25a38d5"},{"path":"py/rmbg_ultra.py","mode":"100644","type":"blob","sha":"dc45ac7b7c287c5543af33428c4e8bde1c6e5f62","size":1911,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dc45ac7b7c287c5543af33428c4e8bde1c6e5f62"},{"path":"py/rmbg_ultra_v2.py","mode":"100644","type":"blob","sha":"794831cc346e4d6063ee9435449da71208d04709","size":3479,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/794831cc346e4d6063ee9435449da71208d04709"},{"path":"py/rounded_rectangle.py","mode":"100644","type":"blob","sha":"8ac7243f928ce988a0f5e9995c0672e27b3b1479","size":4570,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8ac7243f928ce988a0f5e9995c0672e27b3b1479"},{"path":"py/segformer_ultra.py","mode":"100644","type":"blob","sha":"62f7d5dbc986697f27b1cb2e8b2e9acf5f414fb3","size":46748,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/62f7d5dbc986697f27b1cb2e8b2e9acf5f414fb3"},{"path":"py/shadow_highlight_mask.py","mode":"100644","type":"blob","sha":"e20f46c7da413e566ebc71a075e6e79e18ca97df","size":8178,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e20f46c7da413e566ebc71a075e6e79e18ca97df"},{"path":"py/sharp_soft.py","mode":"100644","type":"blob","sha":"ca63e15d4aa944275c6c0826aafdc58847400932","size":2052,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ca63e15d4aa944275c6c0826aafdc58847400932"},{"path":"py/simple_text_image.py","mode":"100644","type":"blob","sha":"1d9b6ccee565a127bffdf9cdd6af8fbaae99dc27","size":4973,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1d9b6ccee565a127bffdf9cdd6af8fbaae99dc27"},{"path":"py/skin_beauty.py","mode":"100644","type":"blob","sha":"406dd561c40a66f82082f55a45d9baa0cb27c5ad","size":2365,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/406dd561c40a66f82082f55a45d9baa0cb27c5ad"},{"path":"py/soft_light.py","mode":"100644","type":"blob","sha":"23b75e43c10bdd8a27b912f0c66c6022ab73e7a7","size":2467,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/23b75e43c10bdd8a27b912f0c66c6022ab73e7a7"},{"path":"py/stroke.py","mode":"100644","type":"blob","sha":"c5254e45cb291e0a0fa9de946951f0c7d4df5b8c","size":4133,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c5254e45cb291e0a0fa9de946951f0c7d4df5b8c"},{"path":"py/stroke_v2.py","mode":"100644","type":"blob","sha":"e452ac81f8db747ebab9de39fa97a98ff4c4a112","size":4064,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e452ac81f8db747ebab9de39fa97a98ff4c4a112"},{"path":"py/text_image.py","mode":"100644","type":"blob","sha":"79ea8b8566bd62fc187f2659149489ba7e119bc7","size":6455,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/79ea8b8566bd62fc187f2659149489ba7e119bc7"},{"path":"py/text_image_v2.py","mode":"100644","type":"blob","sha":"3e81bd2c216d23b6c6befb99fff73793b6be4a0d","size":6825,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e81bd2c216d23b6c6befb99fff73793b6be4a0d"},{"path":"py/text_join.py","mode":"100644","type":"blob","sha":"5b50235e1e87af838c2cb58e561d8f3680a87ff7","size":2852,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5b50235e1e87af838c2cb58e561d8f3680a87ff7"},{"path":"py/text_node.py","mode":"100644","type":"blob","sha":"6bf0f48d40485b8122b78a126c40dbdc2d957f94","size":2957,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6bf0f48d40485b8122b78a126c40dbdc2d957f94"},{"path":"py/vqa_prompt.py","mode":"100644","type":"blob","sha":"6d8cce1114f9d98596d4393145d19aafc412be05","size":4545,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6d8cce1114f9d98596d4393145d19aafc412be05"},{"path":"py/water_color.py","mode":"100644","type":"blob","sha":"697a99b7f380ee7ef5274ecfbcd7d73f0c725e0a","size":1440,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/697a99b7f380ee7ef5274ecfbcd7d73f0c725e0a"},{"path":"py/xy2percent.py","mode":"100644","type":"blob","sha":"81eab6e260b25b6dee102a2b333a3b977d2339c4","size":1259,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/81eab6e260b25b6dee102a2b333a3b977d2339c4"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"8714c39099aeb8beb731bdb9da28fe2f13be7de0","size":756,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8714c39099aeb8beb731bdb9da28fe2f13be7de0"},{"path":"repair_dependency.bat","mode":"100644","type":"blob","sha":"b57581ff481360c0a1ec419f56de8dacc8835a01","size":519,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b57581ff481360c0a1ec419f56de8dacc8835a01"},{"path":"repair_dependency_aki.bat","mode":"100644","type":"blob","sha":"3e6b3528a8cfe1bb38e8a71824ff996682decbf1","size":508,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e6b3528a8cfe1bb38e8a71824ff996682decbf1"},{"path":"repair_dependency_list.txt","mode":"100644","type":"blob","sha":"55da1bf2045aa5e05e1729872ff0f27d5e2269c5","size":31,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/55da1bf2045aa5e05e1729872ff0f27d5e2269c5"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"3950f3ba0a97f8981b40af48f7ccff330d03ed35","size":178,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3950f3ba0a97f8981b40af48f7ccff330d03ed35"},{"path":"resource_dir.ini.example","mode":"100644","type":"blob","sha":"ca39fad6ae273c48268eb2d53eb9a98642dfc0cc","size":58,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ca39fad6ae273c48268eb2d53eb9a98642dfc0cc"},{"path":"workflow","mode":"040000","type":"tree","sha":"36fce7c12eba9ba021d522b2939b7870abab8238","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/36fce7c12eba9ba021d522b2939b7870abab8238"},{"path":"workflow/1280x720_seven_person.jpg","mode":"100644","type":"blob","sha":"29ac5f6ed364c516fba80001439ba6cdb81a18bc","size":253009,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/29ac5f6ed364c516fba80001439ba6cdb81a18bc"},{"path":"workflow/1280x720car.jpg","mode":"100644","type":"blob","sha":"7b6f14042eefa66a042c0de9a8a133c7fe400893","size":391161,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7b6f14042eefa66a042c0de9a8a133c7fe400893"},{"path":"workflow/1280x768_city.png","mode":"100644","type":"blob","sha":"0dd87fedfb83ddf2b5c43299f215e2796d4196ab","size":1608184,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0dd87fedfb83ddf2b5c43299f215e2796d4196ab"},{"path":"workflow/1344x768_beach.png","mode":"100644","type":"blob","sha":"cdc1b6969c882c699c367ab439fae84a4429d1a5","size":1155964,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/cdc1b6969c882c699c367ab439fae84a4429d1a5"},{"path":"workflow/1344x768_girl2.png","mode":"100644","type":"blob","sha":"c9f70cfcdfb58a7c28b60df23ce0e7c692330184","size":911172,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c9f70cfcdfb58a7c28b60df23ce0e7c692330184"},{"path":"workflow/1344x768_hair.png","mode":"100644","type":"blob","sha":"48a9d93d2e39d2edc2e54901ae0dd9c169b2ead1","size":1109656,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/48a9d93d2e39d2edc2e54901ae0dd9c169b2ead1"},{"path":"workflow/1344x768_redcar.png","mode":"100644","type":"blob","sha":"8352809a5899520a9006708c909234ac9d5a6bf7","size":975009,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8352809a5899520a9006708c909234ac9d5a6bf7"},{"path":"workflow/1920x1080table.png","mode":"100644","type":"blob","sha":"3d69c1b90721ee1926b37881ffd5d3d411c2bf17","size":624815,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3d69c1b90721ee1926b37881ffd5d3d411c2bf17"},{"path":"workflow/3840x2160car.jpg","mode":"100644","type":"blob","sha":"1680966841968aa37ca33bad660907c25ad289b9","size":396098,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1680966841968aa37ca33bad660907c25ad289b9"},{"path":"workflow/512x512.png","mode":"100644","type":"blob","sha":"334b79bf3a97164d776660c40bb76507e85f7527","size":129720,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/334b79bf3a97164d776660c40bb76507e85f7527"},{"path":"workflow/512x512bkgd.jpg","mode":"100644","type":"blob","sha":"3003d5b5e04d07a97520edd890b49d0b63772e3c","size":58684,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3003d5b5e04d07a97520edd890b49d0b63772e3c"},{"path":"workflow/768x1344_beach.png","mode":"100644","type":"blob","sha":"1a7449aff325fb4b4cac5f0edd69b5394d7680bd","size":1120132,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1a7449aff325fb4b4cac5f0edd69b5394d7680bd"},{"path":"workflow/768x1344_dress.png","mode":"100644","type":"blob","sha":"2714ce4526d96ae2249ecbb115ac23c624e812ec","size":1129534,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2714ce4526d96ae2249ecbb115ac23c624e812ec"},{"path":"workflow/auto_adjust_v2_example.json","mode":"100644","type":"blob","sha":"ca0ca1cadb2039fbb2412b2f1d1ba620528c9b94","size":4037,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ca0ca1cadb2039fbb2412b2f1d1ba620528c9b94"},{"path":"workflow/auto_brightness_example.json","mode":"100644","type":"blob","sha":"51dd40c9bcd634d8e2313de6d8876c84600294e6","size":3371,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/51dd40c9bcd634d8e2313de6d8876c84600294e6"},{"path":"workflow/blend_mode_v2_example.json","mode":"100644","type":"blob","sha":"2bc2639380b991b0a189cb0f171b0bb63f3285e5","size":53715,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2bc2639380b991b0a189cb0f171b0bb63f3285e5"},{"path":"workflow/blendif_mask_example.json","mode":"100644","type":"blob","sha":"f807c50424feb80045a5d101fab00c871da15f89","size":4148,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/f807c50424feb80045a5d101fab00c871da15f89"},{"path":"workflow/choice_text_preset_example.json","mode":"100644","type":"blob","sha":"dd49a94e6597f48da6aa859aae9b4597a146292b","size":6010,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/dd49a94e6597f48da6aa859aae9b4597a146292b"},{"path":"workflow/color_of_shadow_and_highlight_example.json","mode":"100644","type":"blob","sha":"b087eedd984b52ca4fad0cde09e8ed71b37ce98a","size":2402,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b087eedd984b52ca4fad0cde09e8ed71b37ce98a"},{"path":"workflow/color_overlay_example.json","mode":"100644","type":"blob","sha":"4232f8257fac4b00f6770e30e36d6f23dcd925da","size":3290,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4232f8257fac4b00f6770e30e36d6f23dcd925da"},{"path":"workflow/create_gradient_mask_example.json","mode":"100644","type":"blob","sha":"6a9c48b7fe5d613caf078e091d9623f1e904753e","size":4577,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6a9c48b7fe5d613caf078e091d9623f1e904753e"},{"path":"workflow/crop_by_mask_&_restore_crop_box_example.json","mode":"100644","type":"blob","sha":"2d81ffe70b4a467db59e9dad18cbed76dc3f0104","size":10000,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2d81ffe70b4a467db59e9dad18cbed76dc3f0104"},{"path":"workflow/data_nodes_example.json","mode":"100644","type":"blob","sha":"3978381ff8acf231d84217ef72ed132d64a5e5e1","size":5725,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3978381ff8acf231d84217ef72ed132d64a5e5e1"},{"path":"workflow/drop_shadow_example.json","mode":"100644","type":"blob","sha":"ed143ca39b5b08c95b0781abe391f6b17c710163","size":3332,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/ed143ca39b5b08c95b0781abe391f6b17c710163"},{"path":"workflow/extend_canvas_example.json","mode":"100644","type":"blob","sha":"8de1f2ff409384d1713f91afc62560544b11fbc3","size":3118,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/8de1f2ff409384d1713f91afc62560544b11fbc3"},{"path":"workflow/flux_kontext_image_scale_example.json","mode":"100644","type":"blob","sha":"53aac612351e1d04b0f5f6d0ae7b334b936fc2a8","size":19336,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/53aac612351e1d04b0f5f6d0ae7b334b936fc2a8"},{"path":"workflow/fox_512x512.png","mode":"100644","type":"blob","sha":"d907bf7d1fdbfe3ba6088ba78896638c72d1c5e4","size":362483,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d907bf7d1fdbfe3ba6088ba78896638c72d1c5e4"},{"path":"workflow/get_main_color_and_color_name_example.json","mode":"100644","type":"blob","sha":"90f46b19340de385dfcc9c343807cc5c81d1c07e","size":8318,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/90f46b19340de385dfcc9c343807cc5c81d1c07e"},{"path":"workflow/get_main_color_example.json","mode":"100644","type":"blob","sha":"87b800487c5482464ff37423576485e819198311","size":7925,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/87b800487c5482464ff37423576485e819198311"},{"path":"workflow/girl_dino_1024.png","mode":"100644","type":"blob","sha":"d41ef001a4e5178706b5a1fc5e16771f3ee9080b","size":1036673,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d41ef001a4e5178706b5a1fc5e16771f3ee9080b"},{"path":"workflow/gradident_overlay_example.json","mode":"100644","type":"blob","sha":"22e3d9fe2c498a1418baccc66e337c68e057c441","size":3351,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/22e3d9fe2c498a1418baccc66e337c68e057c441"},{"path":"workflow/hl_frequency_detail_restore_example.json","mode":"100644","type":"blob","sha":"4ed8770283e03d39bae120944d792fa80d19ca2a","size":5742,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/4ed8770283e03d39bae120944d792fa80d19ca2a"},{"path":"workflow/icmask_example.json","mode":"100644","type":"blob","sha":"37d9df58cb474bc60acb6f3efd212489fd72d102","size":24315,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/37d9df58cb474bc60acb6f3efd212489fd72d102"},{"path":"workflow/if_example.json","mode":"100644","type":"blob","sha":"c551d426d37b0273501a5c60c76bb9347fa410aa","size":6281,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/c551d426d37b0273501a5c60c76bb9347fa410aa"},{"path":"workflow/image_blend_advance_example.json","mode":"100644","type":"blob","sha":"3ff2a5b542a40145260a917b00af064e01e363f0","size":4124,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3ff2a5b542a40145260a917b00af064e01e363f0"},{"path":"workflow/image_blend_example.json","mode":"100644","type":"blob","sha":"34f1873ab2e42cfd41863cee54eb7e7f9687d5fb","size":6661,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/34f1873ab2e42cfd41863cee54eb7e7f9687d5fb"},{"path":"workflow/image_composite_handle_mask_example.json","mode":"100644","type":"blob","sha":"42b21199e8472e671bddc05d2149222f85c2c15d","size":11160,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/42b21199e8472e671bddc05d2149222f85c2c15d"},{"path":"workflow/image_hub_example.json","mode":"100644","type":"blob","sha":"08f75891639061ac65672c118c9ddffdc7c35ba6","size":6496,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/08f75891639061ac65672c118c9ddffdc7c35ba6"},{"path":"workflow/image_mask_scale_as_example.json","mode":"100644","type":"blob","sha":"eddb054f0036b9cd9e69b2fa863d09a027513858","size":5028,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/eddb054f0036b9cd9e69b2fa863d09a027513858"},{"path":"workflow/image_reel_example.json","mode":"100644","type":"blob","sha":"e8dcb6222117f6518197501d66af7c1208db3c4f","size":7884,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/e8dcb6222117f6518197501d66af7c1208db3c4f"},{"path":"workflow/image_remove_alpha & image_combine_alpha_example.json","mode":"100644","type":"blob","sha":"d9516e5ca0433d4e9622b9f4ec7e542ebbba265f","size":5812,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d9516e5ca0433d4e9622b9f4ec7e542ebbba265f"},{"path":"workflow/image_scale_restore_example.json","mode":"100644","type":"blob","sha":"b522752e6dfa387ab441f9cdb4c0ccd9875f45cf","size":7242,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b522752e6dfa387ab441f9cdb4c0ccd9875f45cf"},{"path":"workflow/image_tagger_save_example.json","mode":"100644","type":"blob","sha":"6aaf2c6297addfca107ee29cabc12503bacf5a72","size":9326,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6aaf2c6297addfca107ee29cabc12503bacf5a72"},{"path":"workflow/image_to_mask_example.json","mode":"100644","type":"blob","sha":"9d890e1daad2645074aa9252a328f1f9306979ef","size":3487,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9d890e1daad2645074aa9252a328f1f9306979ef"},{"path":"workflow/inner_glow_example.json","mode":"100644","type":"blob","sha":"3331eb940ba8ee3873cb1c507b8c53e133d7af7e","size":3304,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3331eb940ba8ee3873cb1c507b8c53e133d7af7e"},{"path":"workflow/inner_shadow_example.json","mode":"100644","type":"blob","sha":"0e8ac9f4a766fa0082556a1bf6e3e16b2daa4d2b","size":3298,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0e8ac9f4a766fa0082556a1bf6e3e16b2daa4d2b"},{"path":"workflow/layer_color_title.json","mode":"100644","type":"blob","sha":"977aaea5b9c11eacf468d6537b8761e43a6ca8fd","size":14207,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/977aaea5b9c11eacf468d6537b8761e43a6ca8fd"},{"path":"workflow/layer_image_transform_example.json","mode":"100644","type":"blob","sha":"6ad0e1650fd50e4c9e814bb2222953462679f59a","size":7145,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6ad0e1650fd50e4c9e814bb2222953462679f59a"},{"path":"workflow/layerstyle_all_nodes.json","mode":"100644","type":"blob","sha":"7ce4264a34e003f61bc2941466c8ef0576c8d1af","size":90562,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/7ce4264a34e003f61bc2941466c8ef0576c8d1af"},{"path":"workflow/mask_box_detect_example.json","mode":"100644","type":"blob","sha":"1ffba5f9f7b0df662a021519b3cfc3e5606a06d7","size":6705,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/1ffba5f9f7b0df662a021519b3cfc3e5606a06d7"},{"path":"workflow/mask_by_color_example.json","mode":"100644","type":"blob","sha":"fccc72c82d949b8dcf01cf36261e839e815e7f4f","size":3526,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/fccc72c82d949b8dcf01cf36261e839e815e7f4f"},{"path":"workflow/mask_edge_ultra_detail_example.json","mode":"100644","type":"blob","sha":"70879d9a7ff918699c0ffeda963fbfb5e7ae62fc","size":4276,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/70879d9a7ff918699c0ffeda963fbfb5e7ae62fc"},{"path":"workflow/mask_edge_ultra_detail_v2_example.json","mode":"100644","type":"blob","sha":"6d34acbf9c8957a0602db5572bb30b6bc91205f0","size":9515,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/6d34acbf9c8957a0602db5572bb30b6bc91205f0"},{"path":"workflow/mask_gradient_example.json","mode":"100644","type":"blob","sha":"5e3d2ee9032e912cec85f8b6a8020db21258afcd","size":7086,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5e3d2ee9032e912cec85f8b6a8020db21258afcd"},{"path":"workflow/outer_glow_example.json","mode":"100644","type":"blob","sha":"2828cac794a9a79c9270aa9c93a2aeaae69a1488","size":3338,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2828cac794a9a79c9270aa9c93a2aeaae69a1488"},{"path":"workflow/pixel_spread_example.json","mode":"100644","type":"blob","sha":"19ccb1deb0a86e9b79fd9332da3c084f196c7f43","size":3763,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/19ccb1deb0a86e9b79fd9332da3c084f196c7f43"},{"path":"workflow/queue_stop_example.json","mode":"100644","type":"blob","sha":"350652716e5e4eae114c8969552461724f3c7788","size":5560,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/350652716e5e4eae114c8969552461724f3c7788"},{"path":"workflow/rembg_ultra_example.json","mode":"100644","type":"blob","sha":"0a251f062a175e6386a8503ce893be1549c8e866","size":11287,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0a251f062a175e6386a8503ce893be1549c8e866"},{"path":"workflow/rounded_rectangle_example.json","mode":"100644","type":"blob","sha":"d64c8fcd1815f7810be94569fc37ff79c4151be7","size":9842,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/d64c8fcd1815f7810be94569fc37ff79c4151be7"},{"path":"workflow/segformet_clothes_example.json","mode":"100644","type":"blob","sha":"70fe34654518c6a0c41b96e996c494b688f6b40b","size":4201,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/70fe34654518c6a0c41b96e996c494b688f6b40b"},{"path":"workflow/segformet_fashion_example.json","mode":"100644","type":"blob","sha":"b228863b58c35d3dc9751fe71ba7df03eecab924","size":4634,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b228863b58c35d3dc9751fe71ba7df03eecab924"},{"path":"workflow/simple_text_example.json","mode":"100644","type":"blob","sha":"b662baae45b1ebecf30c54d7d8e8486efdc3706e","size":6015,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/b662baae45b1ebecf30c54d7d8e8486efdc3706e"},{"path":"workflow/stroke_example.json","mode":"100644","type":"blob","sha":"2c3af9ec6806bf7132e74b71ee35c5859c76b6de","size":3276,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2c3af9ec6806bf7132e74b71ee35c5859c76b6de"},{"path":"workflow/switch_case_example.json","mode":"100644","type":"blob","sha":"2c236b35cd0f348511a3e8df222bde6a218bc864","size":4893,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/2c236b35cd0f348511a3e8df222bde6a218bc864"},{"path":"workflow/text_image_example.json","mode":"100644","type":"blob","sha":"0771d254e99a1f02c804b251ed838f3190694de9","size":3689,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/0771d254e99a1f02c804b251ed838f3190694de9"},{"path":"workflow/title_example_workflow.json","mode":"100644","type":"blob","sha":"80dd23a33cc45286e1e054edf87a05a66c9cd033","size":15620,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/80dd23a33cc45286e1e054edf87a05a66c9cd033"},{"path":"workflow/ultra_v2_nodes_example.json","mode":"100644","type":"blob","sha":"9b2c06fc47c4c3988a9830fed15664b18134d58b","size":7687,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/9b2c06fc47c4c3988a9830fed15664b18134d58b"},{"path":"workflow/vqa_example.json","mode":"100644","type":"blob","sha":"5bd5155fbfaac812c6e0beb0901d5850b5966669","size":3749,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/5bd5155fbfaac812c6e0beb0901d5850b5966669"},{"path":"workflow/xy2percent_example.json","mode":"100644","type":"blob","sha":"3e08328e72c3284f44d265b7315b7dd9d4ceec8b","size":6148,"url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/blobs/3e08328e72c3284f44d265b7315b7dd9d4ceec8b"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/layer__LICENSE b/docs/hel-892/storyboard-reference/layer__LICENSE new file mode 100644 index 00000000..e2568121 --- /dev/null +++ b/docs/hel-892/storyboard-reference/layer__LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 chflame163 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/hel-892/storyboard-reference/layer____init__.py b/docs/hel-892/storyboard-reference/layer____init__.py new file mode 100644 index 00000000..fd50801f --- /dev/null +++ b/docs/hel-892/storyboard-reference/layer____init__.py @@ -0,0 +1,48 @@ +import importlib.util +import os +import sys +import json + +NODE_CLASS_MAPPINGS = {} +NODE_DISPLAY_NAME_MAPPINGS = {} + +python = sys.executable + +def get_ext_dir(subpath=None, mkdir=False): + dir = os.path.dirname(__file__) + if subpath is not None: + dir = os.path.join(dir, subpath) + + dir = os.path.abspath(dir) + + if mkdir and not os.path.exists(dir): + os.makedirs(dir) + return dir + +def serialize(obj): + if isinstance(obj, (str, int, float, bool, list, dict, type(None))): + return obj + return str(obj) # 转为字符串 + + +py = get_ext_dir("py") +files = os.listdir(py) +all_nodes = {} +for file in files: + if not file.endswith(".py"): + continue + name = os.path.splitext(file)[0] + imported_module = importlib.import_module(".py.{}".format(name), __name__) + try: + NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS} + NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS} + serialized_CLASS_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_CLASS_MAPPINGS.items()} + serialized_DISPLAY_NAME_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_DISPLAY_NAME_MAPPINGS.items()} + all_nodes[file]={"NODE_CLASS_MAPPINGS": serialized_CLASS_MAPPINGS, "NODE_DISPLAY_NAME_MAPPINGS": serialized_DISPLAY_NAME_MAPPINGS} + except: + pass + + +WEB_DIRECTORY = "./js" + +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] diff --git a/docs/hel-892/storyboard-reference/layer__py__imagefunc.py b/docs/hel-892/storyboard-reference/layer__py__imagefunc.py new file mode 100644 index 00000000..f9ec0adf --- /dev/null +++ b/docs/hel-892/storyboard-reference/layer__py__imagefunc.py @@ -0,0 +1,2553 @@ +"""Image process functions for ComfyUI nodes +by chflame https://github.com/chflame163 + +@author: chflame +@title: LayerStyle +@nickname: LayerStyle +@description: A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality. +""" + +import os +import sys +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +import pickle +import copy +import re +import json +import math +import glob +import numpy as np +import torch +import scipy.ndimage +import cv2 +import random +import time +from pathlib import Path +from tqdm import tqdm +from functools import lru_cache +from typing import Union, List +from PIL import Image, ImageFilter, ImageChops, ImageDraw, ImageOps, ImageEnhance, ImageFont +from skimage import img_as_float, img_as_ubyte +import torchvision.transforms.functional as TF +import torch.nn.functional as F +from transformers import AutoModel, AutoProcessor, StoppingCriteria, StoppingCriteriaList, AutoModelForCausalLM, AutoTokenizer +from colorsys import rgb_to_hsv +import folder_paths +import comfy.model_management +from .blendmodes import * + +def log(message:str, message_type:str='info'): + name = 'LayerStyle' + + if message_type == 'error': + message = '\033[1;41m' + message + '\033[m' + elif message_type == 'warning': + message = '\033[1;31m' + message + '\033[m' + elif message_type == 'finish': + message = '\033[1;32m' + message + '\033[m' + else: + message = '\033[1;33m' + message + '\033[m' + print(f"# 😺dzNodes: {name} -> {message}") + +try: + from cv2.ximgproc import guidedFilter +except ImportError as e: + # print(e) + log(f"Cannot import name 'guidedFilter' from 'cv2.ximgproc'" + f"\nA few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'." + f"\nFor detail refer to \033[4mhttps://github.com/chflame163/ComfyUI_LayerStyle/issues/5\033[0m") + + + +'''warpper''' + +# create a wrapper function that can apply a function to multiple images in a batch while passing all other arguments to the function +def apply_to_batch(func): + def wrapper(self, image, *args, **kwargs): + images = [] + for img in image: + images.append(func(self, img, *args, **kwargs)) + batch_tensor = torch.cat(images, dim=0) + return (batch_tensor,) + return wrapper + + +'''pickle''' + + +def read_image(filename:str) -> Image: + return Image.open(filename) + +def pickle_to_file(obj:object, file_path:str): + with open(file_path, 'wb') as f: + pickle.dump(obj, f) + +def load_pickle(file_name:str) -> object: + with open(file_name, 'rb') as f: + obj = pickle.load(f) + return obj + +def load_light_leak_images() -> list: + file = os.path.join(folder_paths.models_dir, "layerstyle", "light_leak.pkl") + return load_pickle(file) + +def check_and_download_model(model_path, repo_id): + model_path = os.path.join(folder_paths.models_dir, model_path) + + if not os.path.exists(model_path): + print(f"Downloading {repo_id} model...") + from huggingface_hub import snapshot_download + snapshot_download(repo_id=repo_id, local_dir=model_path, ignore_patterns=["*.md", "*.txt", "onnx", ".git"]) + return model_path + +'''Converter''' + +def cv22ski(cv2_image:np.ndarray) -> np.array: + return img_as_float(cv2_image) + +def ski2cv2(ski:np.array) -> np.ndarray: + return img_as_ubyte(ski) + +def cv22pil(cv2_img:np.ndarray) -> Image: + cv2_img = cv2.cvtColor(cv2_img, cv2.COLOR_BGR2RGB) + return Image.fromarray(cv2_img) + +def pil2cv2(pil_img:Image) -> np.array: + np_img_array = np.asarray(pil_img) + return cv2.cvtColor(np_img_array, cv2.COLOR_RGB2BGR) + +def pil2tensor(image:Image) -> torch.Tensor: + return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0) + +def np2pil(np_image:np.ndarray) -> Image: + return Image.fromarray(np_image) + +def pil2np(pil_image:Image) -> np.array: + return np.ndarray(pil_image) + +def np2tensor(img_np: Union[np.ndarray, List[np.ndarray]]) -> torch.Tensor: + if isinstance(img_np, list): + return torch.cat([np2tensor(img) for img in img_np], dim=0) + return torch.from_numpy(img_np.astype(np.float32) / 255.0).unsqueeze(0) + +def tensor2np(tensor: torch.Tensor) -> List[np.ndarray]: + if len(tensor.shape) == 3: # Single image + return np.clip(255.0 * tensor.cpu().numpy(), 0, 255).astype(np.uint8) + else: # Batch of images + return [np.clip(255.0 * t.cpu().numpy(), 0, 255).astype(np.uint8) for t in tensor] + +def tensor2pil(t_image: torch.Tensor) -> Image: + return Image.fromarray(np.clip(255.0 * t_image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8)) + +def tensor2cv2(image:torch.Tensor) -> np.array: + if image.dim() == 4: + image = image.squeeze() + npimage = image.numpy() + cv2image = np.uint8(npimage * 255 / npimage.max()) + return cv2.cvtColor(cv2image, cv2.COLOR_RGB2BGR) + +def image2mask(image:Image) -> torch.Tensor: + if image.mode == 'L': + return torch.tensor([pil2tensor(image)[0, :, :].tolist()]) + else: + image = image.convert('RGB').split()[0] + return torch.tensor([pil2tensor(image)[0, :, :].tolist()]) + +def mask2image(mask:torch.Tensor) -> Image: + masks = tensor2np(mask) + for m in masks: + _mask = Image.fromarray(m).convert("L") + _image = Image.new("RGBA", _mask.size, color='white') + _image = Image.composite( + _image, Image.new("RGBA", _mask.size, color='black'), _mask) + return _image + +'''Image Functions''' + +# 颜色加深 +def blend_color_burn(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = 1 - (1 - img_2) / (img_1 + 0.001) + mask_1 = img < 0 + mask_2 = img > 1 + img = img * (1 - mask_1) + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +# 颜色减淡 +def blend_color_dodge(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_2 / (1.0 - img_1 + 0.001) + mask_2 = img > 1 + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +# 线性加深 +def blend_linear_burn(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 + img_2 - 1 + mask_1 = img < 0 + img = img * (1 - mask_1) + return cv22pil(ski2cv2(img)) + +# 线性减淡 +def blend_linear_dodge(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 + img_2 + mask_2 = img > 1 + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +# 变亮 +def blend_lighten(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 - img_2 + mask = img > 0 + img = img_1 * mask + img_2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 变暗 +def blend_dark(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 - img_2 + mask = img < 0 + img = img_1 * mask + img_2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 滤色 +def blend_screen(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = 1 - (1 - img_1) * (1 - img_2) + return cv22pil(ski2cv2(img)) + +# 叠加 +def blend_overlay(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_2 < 0.5 + img = 2 * img_1 * img_2 * mask + (1 - mask) * (1 - 2 * (1 - img_1) * (1 - img_2)) + return cv22pil(ski2cv2(img)) + +# 柔光 +def blend_soft_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_1 < 0.5 + T1 = (2 * img_1 - 1) * (img_2 - img_2 * img_2) + img_2 + T2 = (2 * img_1 - 1) * (np.sqrt(img_2) - img_2) + img_2 + img = T1 * mask + T2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 强光 +def blend_hard_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_1 < 0.5 + T1 = 2 * img_1 * img_2 + T2 = 1 - 2 * (1 - img_1) * (1 - img_2) + img = T1 * mask + T2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 亮光 +def blend_vivid_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask = img_1 < 0.5 + T1 = 1 - (1 - img_2) / (2 * img_1 + 0.001) + T2 = img_2 / (2 * (1 - img_1) + 0.001) + mask_1 = T1 < 0 + mask_2 = T2 > 1 + T1 = T1 * (1 - mask_1) + T2 = T2 * (1 - mask_2) + mask_2 + img = T1 * mask + T2 * (1 - mask) + return cv22pil(ski2cv2(img)) + +# 点光 +def blend_pin_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + mask_1 = img_2 < (img_1 * 2 - 1) + mask_2 = img_2 > 2 * img_1 + T1 = 2 * img_1 - 1 + T2 = img_2 + T3 = 2 * img_1 + img = T1 * mask_1 + T2 * (1 - mask_1) * (1 - mask_2) + T3 * mask_2 + return cv22pil(ski2cv2(img)) + +# 线性光 +def blend_linear_light(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_2 + img_1 * 2 - 1 + mask_1 = img < 0 + mask_2 = img > 1 + img = img * (1 - mask_1) + img = img * (1 - mask_2) + mask_2 + return cv22pil(ski2cv2(img)) + +def blend_hard_mix(background_image:Image, layer_image:Image) -> Image: + img_1 = cv22ski(pil2cv2(background_image)) + img_2 = cv22ski(pil2cv2(layer_image)) + img = img_1 + img_2 + mask = img_1 + img_2 > 1 + img = img * (1 - mask) + mask + img = img * mask + return cv22pil(ski2cv2(img)) + +def shift_image(image:Image, distance_x:int, distance_y:int, background_color:str='#000000', cyclic:bool=False) -> Image: + width = image.width + height = image.height + ret_image = Image.new('RGB', size=(width, height), color=background_color) + for x in range(width): + for y in range(height): + if cyclic: + orig_x = x + distance_x + if orig_x > width-1 or orig_x < 0: + orig_x = abs(orig_x % width) + orig_y = y + distance_y + if orig_y > height-1 or orig_y < 0: + orig_y = abs(orig_y % height) + + pixel = image.getpixel((orig_x, orig_y)) + ret_image.putpixel((x, y), pixel) + else: + if x > -distance_x and y > -distance_y: # 防止回转 + if x + distance_x < width and y + distance_y < height: # 防止越界 + pixel = image.getpixel((x + distance_x, y + distance_y)) + ret_image.putpixel((x, y), pixel) + return ret_image + +def chop_image(background_image:Image, layer_image:Image, blend_mode:str, opacity:int) -> Image: + ret_image = background_image + if blend_mode == 'normal': + ret_image = copy.deepcopy(layer_image) + if blend_mode == 'multply': + ret_image = ImageChops.multiply(background_image,layer_image) + if blend_mode == 'screen': + ret_image = ImageChops.screen(background_image, layer_image) + if blend_mode == 'add': + ret_image = ImageChops.add(background_image, layer_image, 1, 0) + if blend_mode == 'subtract': + ret_image = ImageChops.subtract(background_image, layer_image, 1, 0) + if blend_mode == 'difference': + ret_image = ImageChops.difference(background_image, layer_image) + if blend_mode == 'darker': + ret_image = ImageChops.darker(background_image, layer_image) + if blend_mode == 'lighter': + ret_image = ImageChops.lighter(background_image, layer_image) + if blend_mode == 'color_burn': + ret_image = blend_color_burn(background_image, layer_image) + if blend_mode == 'color_dodge': + ret_image = blend_color_dodge(background_image, layer_image) + if blend_mode == 'linear_burn': + ret_image = blend_linear_burn(background_image, layer_image) + if blend_mode == 'linear_dodge': + ret_image = blend_linear_dodge(background_image, layer_image) + if blend_mode == 'overlay': + ret_image = blend_overlay(background_image, layer_image) + if blend_mode == 'soft_light': + ret_image = blend_soft_light(background_image, layer_image) + if blend_mode == 'hard_light': + ret_image = blend_hard_light(background_image, layer_image) + if blend_mode == 'vivid_light': + ret_image = blend_vivid_light(background_image, layer_image) + if blend_mode == 'pin_light': + ret_image = blend_pin_light(background_image, layer_image) + if blend_mode == 'linear_light': + ret_image = blend_linear_light(background_image, layer_image) + if blend_mode == 'hard_mix': + ret_image = blend_hard_mix(background_image, layer_image) + # opacity + if opacity == 0: + ret_image = background_image + elif opacity < 100: + alpha = 1.0 - float(opacity) / 100 + ret_image = Image.blend(ret_image, background_image, alpha) + return ret_image + +def chop_image_v2(background_image:Image, layer_image:Image, blend_mode:str, opacity:int) -> Image: + + backdrop_prepped = np.asarray(background_image.convert('RGBA'), dtype=float) + source_prepped = np.asarray(layer_image.convert('RGBA'), dtype=float) + blended_np = BLEND_MODES[blend_mode](backdrop_prepped, source_prepped, opacity / 100) + + return Image.fromarray(np.uint8(blended_np)).convert('RGB') + +def remove_background(image:Image, mask:Image, color:str) -> Image: + width = image.width + height = image.height + ret_image = Image.new('RGB', size=(width, height), color=color) + ret_image.paste(image, mask=mask) + return ret_image + +def sharpen(image:Image) -> Image: + img = pil2cv2(image) + Laplace_kernel = np.array([[-1, -1, -1], + [-1, 9, -1], + [-1, -1, -1]], dtype=np.float32) + ret_image = cv2.filter2D(img, -1, Laplace_kernel) + return cv22pil(ret_image) + +def gaussian_blur(image:Image, radius:int) -> Image: + # image = image.convert("RGBA") + ret_image = image.filter(ImageFilter.GaussianBlur(radius=radius)) + return ret_image + +def motion_blur(image:Image, angle:int, blur:int) -> Image: + angle += 45 + blur *= 5 + image = np.array(pil2cv2(image)) + M = cv2.getRotationMatrix2D((blur / 2, blur / 2), angle, 1) + motion_blur_kernel = np.diag(np.ones(blur)) + motion_blur_kernel = cv2.warpAffine(motion_blur_kernel, M, (blur, blur)) + motion_blur_kernel = motion_blur_kernel / blur + blurred = cv2.filter2D(image, -1, motion_blur_kernel) + # convert to uint8 + cv2.normalize(blurred, blurred, 0, 255, cv2.NORM_MINMAX) + blurred = np.array(blurred, dtype=np.uint8) + ret_image = cv22pil(blurred) + return ret_image + +def __apply_vignette(image, vignette): + # If image needs to be normalized (0-1 range) + needs_normalization = image.max() > 1 + if needs_normalization: + image = image.astype(np.float32) / 255 + final_image = np.clip(image * vignette[..., np.newaxis], 0, 1) + if needs_normalization: + final_image = (final_image * 255).astype(np.uint8) + return final_image +def vignette_image(image:Image, intensity: float, center_x: float, center_y: float) -> Image: + image = pil2tensor(image) + _, height, width, _ = image.shape + # Generate the vignette for each image in the batch + # Create linear space but centered around the provided center point ratios + x = np.linspace(-1, 1, width) + y = np.linspace(-1, 1, height) + X, Y = np.meshgrid(x - (2 * center_x - 1), y - (2 * center_y - 1)) + # Calculate distances to the furthest corner + distances_to_corners = [ + np.sqrt((0 - center_x) ** 2 + (0 - center_y) ** 2), + np.sqrt((1 - center_x) ** 2 + (0 - center_y) ** 2), + np.sqrt((0 - center_x) ** 2 + (1 - center_y) ** 2), + np.sqrt((1 - center_x) ** 2 + (1 - center_y) ** 2) + ] + max_distance_to_corner = np.max(distances_to_corners) + radius = np.sqrt(X ** 2 + Y ** 2) + radius = radius / (max_distance_to_corner * np.sqrt(2)) # Normalize radius + opacity = np.clip(intensity, 0, 1) + vignette = 1 - radius * opacity + tensor_image = image.numpy() + # Apply vignette + vignette_image = __apply_vignette(tensor_image, vignette) + return tensor2pil(torch.from_numpy(vignette_image).unsqueeze(0)) + +def RGB2YCbCr(t): + YCbCr = t.detach().clone() + YCbCr[:,:,:,0] = 0.2123 * t[:,:,:,0] + 0.7152 * t[:,:,:,1] + 0.0722 * t[:,:,:,2] + YCbCr[:,:,:,1] = 0 - 0.1146 * t[:,:,:,0] - 0.3854 * t[:,:,:,1] + 0.5 * t[:,:,:,2] + YCbCr[:,:,:,2] = 0.5 * t[:,:,:,0] - 0.4542 * t[:,:,:,1] - 0.0458 * t[:,:,:,2] + return YCbCr + +def YCbCr2RGB(t): + RGB = t.detach().clone() + RGB[:,:,:,0] = t[:,:,:,0] + 1.5748 * t[:,:,:,2] + RGB[:,:,:,1] = t[:,:,:,0] - 0.1873 * t[:,:,:,1] - 0.4681 * t[:,:,:,2] + RGB[:,:,:,2] = t[:,:,:,0] + 1.8556 * t[:,:,:,1] + return RGB + +# gaussian blur a tensor image batch in format [B x H x W x C] on H/W (spatial, per-image, per-channel) +def cv_blur_tensor(images, dx, dy): + if min(dx, dy) > 100: + np_img = torch.nn.functional.interpolate(images.detach().clone().movedim(-1,1), scale_factor=0.1, mode='bilinear').movedim(1,-1).cpu().numpy() + for index, image in enumerate(np_img): + np_img[index] = cv2.GaussianBlur(image, (dx // 20 * 2 + 1, dy // 20 * 2 + 1), 0) + return torch.nn.functional.interpolate(torch.from_numpy(np_img).movedim(-1,1), size=(images.shape[1], images.shape[2]), mode='bilinear').movedim(1,-1) + else: + np_img = images.detach().clone().cpu().numpy() + for index, image in enumerate(np_img): + np_img[index] = cv2.GaussianBlur(image, (dx, dy), 0) + return torch.from_numpy(np_img) + +def image_add_grain(image:Image, scale:float=0.5, strength:float=0.5, saturation:float=0.7, toe:float=0.0, seed:int=0) -> Image: + + image = pil2tensor(image.convert("RGB")) + t = image.detach().clone() + torch.manual_seed(seed) + grain = torch.rand(t.shape[0], int(t.shape[1] // scale), int(t.shape[2] // scale), 3) + + YCbCr = RGB2YCbCr(grain) + YCbCr[:, :, :, 0] = cv_blur_tensor(YCbCr[:, :, :, 0], 3, 3) + YCbCr[:, :, :, 1] = cv_blur_tensor(YCbCr[:, :, :, 1], 15, 15) + YCbCr[:, :, :, 2] = cv_blur_tensor(YCbCr[:, :, :, 2], 11, 11) + + grain = (YCbCr2RGB(YCbCr) - 0.5) * strength + grain[:, :, :, 0] *= 2 + grain[:, :, :, 2] *= 3 + grain += 1 + grain = grain * saturation + grain[:, :, :, 1].unsqueeze(3).repeat(1, 1, 1, 3) * (1 - saturation) + + grain = torch.nn.functional.interpolate(grain.movedim(-1, 1), size=(t.shape[1], t.shape[2]), + mode='bilinear').movedim(1, -1) + t[:, :, :, :3] = torch.clip((1 - (1 - t[:, :, :, :3]) * grain) * (1 - toe) + toe, 0, 1) + return tensor2pil(t) + +def filmgrain_image(image:Image, scale:float, grain_power:float, + shadows:float, highs:float, grain_sat:float, + sharpen:int=1, grain_type:int=4, src_gamma:float=1.0, + gray_scale:bool=False, seed:int=0) -> Image: + # image = pil2tensor(image) + # grain_type, 1=fine, 2=fine simple, 3=coarse, 4=coarser + grain_type_index = 3 + + # Apply grain + from .filmgrainer import filmgrainer as fg + grain_image = fg.process(image, scale=scale, src_gamma=src_gamma, grain_power=grain_power, + shadows=shadows, highs=highs, grain_type=grain_type_index, + grain_sat=grain_sat, gray_scale=gray_scale, sharpen=sharpen, seed=seed) + return tensor2pil(torch.from_numpy(grain_image).unsqueeze(0)) + +def __apply_radialblur(image, blur_strength, radial_mask, focus_spread, steps): + from .filmgrainer import processing as processing_utils + needs_normalization = image.max() > 1 + if needs_normalization: + image = image.astype(np.float32) / 255 + blurred_images = processing_utils.generate_blurred_images(image, blur_strength, steps, focus_spread) + final_image = processing_utils.apply_blurred_images(image, blurred_images, radial_mask) + if needs_normalization: + final_image = np.clip(final_image * 255, 0, 255).astype(np.uint8) + return final_image + +def radialblur_image(image:Image, blur_strength:float, center_x:float, center_y:float, focus_spread:float, steps:int=5) -> Image: + width, height = image.size + image = pil2tensor(image) + if image.dim() == 4: + image = image[0] + + # _, height, width, = image.shape + # Generate the vignette for each image in the batch + c_x, c_y = int(width * center_x), int(height * center_y) + # Calculate distances to all corners from the center + distances_to_corners = [ + np.sqrt((c_x - 0)**2 + (c_y - 0)**2), + np.sqrt((c_x - width)**2 + (c_y - 0)**2), + np.sqrt((c_x - 0)**2 + (c_y - height)**2), + np.sqrt((c_x - width)**2 + (c_y - height)**2) + ] + max_distance_to_corner = max(distances_to_corners) + # Create and adjust radial mask + X, Y = np.meshgrid(np.arange(width) - c_x, np.arange(height) - c_y) + radial_mask = np.sqrt(X**2 + Y**2) / max_distance_to_corner + tensor_image = image.numpy() + # Apply blur + blur_image = __apply_radialblur(tensor_image, blur_strength, radial_mask, focus_spread, steps) + return tensor2pil(torch.from_numpy(blur_image).unsqueeze(0)) + +def __apply_depthblur(image, depth_map, blur_strength, focal_depth, focus_spread, steps): + from .filmgrainer import processing as processing_utils + # Normalize the input image if needed + needs_normalization = image.max() > 1 + if needs_normalization: + image = image.astype(np.float32) / 255 + # Normalize the depth map if needed + depth_map = depth_map.astype(np.float32) / 255 if depth_map.max() > 1 else depth_map + # Resize depth map to match the image dimensions + depth_map_resized = cv2.resize(depth_map, (image.shape[1], image.shape[0]), interpolation=cv2.INTER_LINEAR) + if len(depth_map_resized.shape) > 2: + depth_map_resized = cv2.cvtColor(depth_map_resized, cv2.COLOR_BGR2GRAY) + # Adjust the depth map based on the focal plane + depth_mask = np.abs(depth_map_resized - focal_depth) + depth_mask = np.clip(depth_mask / np.max(depth_mask), 0, 1) + # Generate blurred versions of the image + blurred_images = processing_utils.generate_blurred_images(image, blur_strength, steps, focus_spread) + # Use the adjusted depth map as a mask for applying blurred images + final_image = processing_utils.apply_blurred_images(image, blurred_images, depth_mask) + # Convert back to original range if the image was normalized + if needs_normalization: + final_image = np.clip(final_image * 255, 0, 255).astype(np.uint8) + return final_image + +def depthblur_image(image:Image, depth_map:Image, blur_strength:float, focal_depth:float, focus_spread:float, steps:int=5) -> Image: + width, height = image.size + image = pil2tensor(image) + depth_map = pil2tensor(depth_map) + if image.dim() == 4: + image = image[0] + if depth_map.dim() == 4: + depth_map = depth_map[0] + tensor_image = image.numpy() + tensor_image_depth = depth_map.numpy() + # Apply blur + blur_image = __apply_depthblur(tensor_image, tensor_image_depth, blur_strength, focal_depth, focus_spread, steps) + return tensor2pil(torch.from_numpy(blur_image).unsqueeze(0)) + +def fit_resize_image(image:Image, target_width:int, target_height:int, fit:str, resize_sampler:str, background_color:str = '#000000') -> Image: + image = image.convert('RGB') + orig_width, orig_height = image.size + if image is not None: + if fit == 'letterbox': + if orig_width / orig_height > target_width / target_height: # 更宽,上下留黑 + fit_width = target_width + fit_height = int(target_width / orig_width * orig_height) + else: # 更瘦,左右留黑 + fit_height = target_height + fit_width = int(target_height / orig_height * orig_width) + fit_image = image.resize((fit_width, fit_height), resize_sampler) + ret_image = Image.new('RGB', size=(target_width, target_height), color=background_color) + ret_image.paste(fit_image, box=((target_width - fit_width)//2, (target_height - fit_height)//2)) + elif fit == 'crop': + if orig_width / orig_height > target_width / target_height: # 更宽,裁左右 + fit_width = int(orig_height * target_width / target_height) + fit_image = image.crop( + ((orig_width - fit_width)//2, 0, (orig_width - fit_width)//2 + fit_width, orig_height)) + else: # 更瘦,裁上下 + fit_height = int(orig_width * target_height / target_width) + fit_image = image.crop( + (0, (orig_height-fit_height)//2, orig_width, (orig_height-fit_height)//2 + fit_height)) + ret_image = fit_image.resize((target_width, target_height), resize_sampler) + else: + ret_image = image.resize((target_width, target_height), resize_sampler) + return ret_image + +def __rotate_expand(image:Image, angle:float, SSAA:int=0, method:str="lanczos") -> Image: + images = pil2tensor(image) + expand = "true" + height, width = images[0, :, :, 0].shape + + def rotate_tensor(tensor): + resize_sampler = Image.LANCZOS + rotate_sampler = Image.BICUBIC + if method == "bicubic": + resize_sampler = Image.BICUBIC + rotate_sampler = Image.BICUBIC + elif method == "hamming": + resize_sampler = Image.HAMMING + rotate_sampler = Image.BILINEAR + elif method == "bilinear": + resize_sampler = Image.BILINEAR + rotate_sampler = Image.BILINEAR + elif method == "box": + resize_sampler = Image.BOX + rotate_sampler = Image.NEAREST + elif method == "nearest": + resize_sampler = Image.NEAREST + rotate_sampler = Image.NEAREST + img = tensor2pil(tensor) + if SSAA > 1: + img_us_scaled = img.resize((width * SSAA, height * SSAA), resize_sampler) + img_rotated = img_us_scaled.rotate(angle, rotate_sampler, expand == "true", fillcolor=(0, 0, 0, 0)) + img_down_scaled = img_rotated.resize((img_rotated.width // SSAA, img_rotated.height // SSAA), resize_sampler) + result = pil2tensor(img_down_scaled) + else: + img_rotated = img.rotate(angle, rotate_sampler, expand == "true", fillcolor=(0, 0, 0, 0)) + result = pil2tensor(img_rotated) + return result + + if angle == 0.0 or angle == 360.0: + return tensor2pil(images) + else: + rotated_tensor = torch.stack([rotate_tensor(images[i]) for i in range(len(images))]) + return tensor2pil(rotated_tensor).convert('RGB') + +def image_rotate_extend_with_alpha(image:Image, angle:float, alpha:Image=None, method:str="lanczos", SSAA:int=0) -> tuple: + _image = __rotate_expand(image.convert('RGB'), angle, SSAA, method) + if angle is not None: + _alpha = __rotate_expand(alpha.convert('RGB'), angle, SSAA, method) + ret_image = RGB2RGBA(_image, _alpha) + else: + ret_image = _image + return (_image, _alpha.convert('L'), ret_image) + +def create_box_gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, scale:int=50) -> Image: + # scale is percent of border to center for the rectangle + if scale > 100: + scale = 100 + elif scale < 1: + scale = 1 + start_color = Hex_to_RGB(start_color_inhex) + end_color = Hex_to_RGB(end_color_inhex) + ret_image = Image.new("RGB", (width, height), start_color) + draw = ImageDraw.Draw(ret_image) + step = int(min(width, height) * scale / 100 / 2) + if step > 0: + for i in range(step): + R = int(start_color[0] * (step - i) / step + end_color[0] * i / step) + G = int(start_color[1] * (step - i) / step + end_color[1] * i / step) + B = int(start_color[2] * (step - i) / step + end_color[2] * i / step) + color = (R, G, B) + draw.rectangle((i, i, width - i, height - i), fill=color) + draw.rectangle((step, step, width - step, height - step), fill=end_color) + return ret_image + +def create_gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, direction:str='bottom') -> Image: + # direction = one of top, bottom, left, right + start_color = Hex_to_RGB(start_color_inhex) + end_color = Hex_to_RGB(end_color_inhex) + ret_image = Image.new("RGB", (width, height), start_color) + draw = ImageDraw.Draw(ret_image) + if direction == 'bottom': + for i in range(height): + R = int(start_color[0] * (height - i) / height + end_color[0] * i / height) + G = int(start_color[1] * (height - i) / height + end_color[1] * i / height) + B = int(start_color[2] * (height - i) / height + end_color[2] * i / height) + color = (R, G, B) + draw.line((0, i, width, i), fill=color) + elif direction == 'top': + for i in range(height): + R = int(end_color[0] * (height - i) / height + start_color[0] * i / height) + G = int(end_color[1] * (height - i) / height + start_color[1] * i / height) + B = int(end_color[2] * (height - i) / height + start_color[2] * i / height) + color = (R, G, B) + draw.line((0, i, width, i), fill=color) + elif direction == 'right': + for i in range(width): + R = int(start_color[0] * (width - i) / width + end_color[0] * i / width) + G = int(start_color[1] * (width - i) / width + end_color[1] * i / width) + B = int(start_color[2] * (width - i) / width + end_color[2] * i / width) + color = (R, G, B) + draw.line((i, 0, i, height), fill=color) + elif direction == 'left': + for i in range(width): + R = int(end_color[0] * (width - i) / width + start_color[0] * i / width) + G = int(end_color[1] * (width - i) / width + start_color[1] * i / width) + B = int(end_color[2] * (width - i) / width + start_color[2] * i / width) + color = (R, G, B) + draw.line((i, 0, i, height), fill=color) + else: + log(f'A argument error of imagefunc.create_gradient(), ' + f'"direction=" must one of "top, bottom, left, right".', + message_type='error') + + return ret_image + +def gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, angle:float, ) -> Image: + radius = int((width + height) / 4) + g = create_gradient(start_color_inhex, end_color_inhex, radius, radius) + _canvas = Image.new('RGB', size=(radius, radius*3), color=start_color_inhex) + top = Image.new('RGB', size=(radius, radius), color=start_color_inhex) + bottom = Image.new('RGB', size=(radius, radius),color=end_color_inhex) + _canvas.paste(top, box=(0, 0, radius, radius)) + _canvas.paste(g, box=(0, radius, radius, radius * 2)) + _canvas.paste(bottom,box=(0, radius * 2, radius, radius * 3)) + _canvas = _canvas.resize((radius * 3, radius * 3)) + _canvas = __rotate_expand(_canvas,angle) + center = int(_canvas.width / 2) + _x = int(width / 3) + _y = int(height / 3) + ret_image = _canvas.crop((center - _x, center - _y, center + _x, center + _y)) + ret_image = ret_image.resize((width, height)) + return ret_image + +def draw_rounded_rectangle(image:Image, radius:int, bboxes:list, scale_factor:int=2, color:str="white") -> Image: + """ + 绘制圆角矩形图像。 + image:输入图片 + radius: 半径,100为纯椭圆 + bboxes: (x1,y1,x2,y2)列表 + scale_factor: 放大倍数 + :return: 绘制好的pillow图像 + """ + if scale_factor < 1 : scale_factor = 1 + + img = image.resize((image.width * scale_factor, image.height * scale_factor), Image.LANCZOS) + draw = ImageDraw.Draw(img) + + for (x1, y1, x2, y2) in bboxes: + r = radius * min(x2-x1, y2-y1) * 0.005 + x1, y1, x2, y2 = x1 * scale_factor, y1 * scale_factor, x2 * scale_factor, y2 * scale_factor + # 计算圆角矩形的四个角的圆弧 + draw.rounded_rectangle([x1, y1, x2, y2], radius=r * scale_factor, fill=color) + + img = img.filter(ImageFilter.SMOOTH_MORE) + img = img.resize((image.width, image.height), Image.LANCZOS) + + return img + +def draw_rect(image:Image, x:int, y:int, width:int, height:int, line_color:str, line_width:int, + box_color:str=None) -> Image: + draw = ImageDraw.Draw(image) + draw.rectangle((x, y, x + width, y + height), fill=box_color, outline=line_color, width=line_width, ) + return image + +def draw_border(image:Image, border_width:int, color:str='#FFFFFF') -> Image: + return ImageOps.expand(image, border=border_width, fill=color) + +# 对灰度图像进行直方图均衡化 +def normalize_gray(image:Image) -> Image: + if image.mode != 'L': + image = image.convert('L') + img = np.asarray(image) + balanced_img = img.copy() + hist, bins = np.histogram(img.reshape(-1), 256, (0, 256)) + bmin = np.min(np.where(hist > (hist.sum() * 0.0005))) + bmax = np.max(np.where(hist > (hist.sum() * 0.0005))) + balanced_img = np.clip(img, bmin, bmax) + balanced_img = ((balanced_img - bmin) / (bmax - bmin) * 255) + return Image.fromarray(balanced_img).convert('L') + +def remap_pixel(pixel:int, min_brightness:int, max_brightness:int) -> int: + return int((pixel - min_brightness) / (max_brightness - min_brightness) * 255) +def histogram_range(image:Image, black_point:int, black_range:int, white_point:int, white_range:int) -> Image: + + if image.mode != 'L': + image = image.convert('L') + + if black_point == 255: + black_point = 254 + if white_point == 0: + white_point = 1 + if black_point + black_range > 255: + black_range = 255 - black_point + if white_range > white_point: + white_range = white_point + + white_image = Image.new("L", size=image.size, color="white") + black_image = Image.new("L", size=image.size, color="black") + + if black_point == white_point: + return white_image + + + # draw white part + white_part = black_image + if white_point < 255 or white_range > 0: + for y in (range(image.height)): + for x in range(image.width): + pixel = image.getpixel((x, y)) + if pixel > white_point: # put white + white_part.putpixel((x, y), 255) + elif pixel > white_point - white_range: + pixel = remap_pixel(pixel, white_point - white_range, white_point) + white_part.putpixel((x, y), pixel) + white_part = ImageChops.invert(white_part) + + + # draw black part + black_part = black_image + if black_point > 0 or black_range > 0: + for y in (range(image.height)): + for x in range(image.width): + pixel = image.getpixel((x, y)) + if pixel < black_point: # put black + black_part.putpixel((x, y), 255) + elif pixel < black_point + black_range: + pixel = remap_pixel(pixel, black_point, black_point + black_range) + black_part.putpixel((x, y), 255 - pixel) + black_part = ImageChops.invert(black_part) + + ret_image = chop_image_v2(white_part, black_part, blend_mode='darken', opacity=100) + + return ret_image + +def histogram_equalization(image:Image, mask:Image=None, gamma_strength=0.5) -> Image: + + if image.mode != 'L': + image = image.convert('L') + + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + else: + mask = Image.new('L', size=image.size, color = 'white') + + # calculate Min/Max brightness pixel + min_brightness = 255 + max_brightness = 0 + average_brightness = 0 + total_pixel = 0 + for y in range(image.height): + for x in range(image.width): + if mask.getpixel((x, y)) == 0: + continue + else: + pixel = image.getpixel((x, y)) + if pixel < min_brightness: + min_brightness = pixel + if pixel > max_brightness: + max_brightness = pixel + average_brightness += pixel + total_pixel += 1 + if total_pixel == 0: + log(f"histogram_equalization: mask is not available, return orinianl image.") + return image + average_brightness = int(average_brightness / total_pixel) + + for y in range(image.height): + for x in range(image.width): + pixel = image.getpixel((x, y)) + image.putpixel((x, y), remap_pixel(pixel, min_brightness, max_brightness)) + + image = gamma_trans(image, (average_brightness - 127) / 127 * gamma_strength * 0.66 + 1) + + return image.convert('L') + +def adjust_levels(image:Image, input_black:int=0, input_white:int=255, midtones:float=1.0, + output_black:int=0, output_white:int=255) -> Image: + + if input_black == input_white or output_black == output_white: + return Image.new('RGB', size=image.size, color='gray') + + img = pil2cv2(image).astype(np.float64) + + if input_black > input_white: + input_black, input_white = input_white, input_black + if output_black > output_white: + output_black, output_white = output_white, output_black + + + # input_levels remap + if input_black > 0 or input_white < 255: + img = 255 * ((img - input_black) / (input_white - input_black)) + img[img < 0] = 0 + img[img > 255] = 255 + + # # mid_tone + if midtones != 1.0: + img = 255 * np.power(img / 255, 1.0 / midtones) + + img[img < 0] = 0 + img[img > 255] = 255 + + # output_levels remap + if output_black > 0 or output_white < 255: + img = (img / 255) * (output_white - output_black) + output_black + img[img < 0] = 0 + img[img > 255] = 255 + + img = img.astype(np.uint8) + return cv22pil(img) + +def get_image_color_tone(image:Image, mask:Image=None) -> str: + image = image.convert('RGB') + max_score = 0.0001 + dominant_color = (255, 255, 255) + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + canvas = Image.new('RGB', size=image.size, color='black') + canvas.paste(image, mask=mask) + image = canvas + + all_colors = image.getcolors(image.width * image.height) + for count, (r, g, b) in all_colors: + if mask is not None: + if r + g + b < 2: # 忽略黑色 + continue + saturation = rgb_to_hsv(r / 255.0, g / 255.0, b / 255.0)[1] + y = min(abs(r * 2104 + g * 4130 + b * 802 + 4096 + 131072) >> 13,235) + y = (y - 16.0) / (235 - 16) + score = (saturation+0.1)*count + if score > max_score: + max_score = score + dominant_color = (r, g, b) + ret_color = RGB_to_Hex(dominant_color) + return ret_color + +def get_image_color_average(image:Image, mask:Image=None) -> str: + image = image.convert('RGB') + width, height = image.size + total_red = 0 + total_green = 0 + total_blue = 0 + total_pixel =0 + for y in range(height): + for x in range(width): + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + if mask.getpixel((x, y)) <= 127: + continue + rgb = image.getpixel((x, y)) + total_red += rgb[0] + total_green += rgb[1] + total_blue += rgb[2] + total_pixel += 1 + + average_red = total_red // total_pixel + average_green = total_green // total_pixel + average_blue = total_blue // total_pixel + color = (average_red, average_green, average_blue) + ret_color = RGB_to_Hex(color) + return ret_color + +def get_gray_average(image:Image, mask:Image=None) -> int: + # image.mode = 'HSV', mask.mode = 'L' + image = image.convert('HSV') + + if mask is not None: + if mask.mode != 'L': + mask = mask.convert('L') + else: + mask = Image.new('L', size=image.size, color='white') + _, _, _v = image.convert('HSV').split() + _v = np.array(_v) + average_gray = _v[np.array(mask) > 16].mean() + # width, height = image.size + # total_gray = 0 + # valid_pixels = 0 + # for y in range(height): + # for x in range(width): + # if mask is not None: + # if mask.getpixel((x, y)) > 16: #mask亮度低于16的忽略不计 + # gray = _v.getpixel((x, y)) + # total_gray += gray + # valid_pixels += 1 + # else: + # gray = _v.getpixel((x, y)) + # total_gray += gray + # valid_pixels += 1 + # average_gray = total_gray // valid_pixels + return average_gray + +def calculate_shadow_highlight_level(gray:int) -> float: + range = 255 + shadow_exponent = 3 + highlight_exponent = 2 + shadow_ratio = gray ** shadow_exponent / range ** shadow_exponent + highlight_ratio = gray ** highlight_exponent / range ** highlight_exponent + shadow_level = shadow_ratio * 100 + (1 - shadow_ratio) * 32 + highlight_level = highlight_ratio * 100 + (1 - highlight_ratio) * 32 + return shadow_level, highlight_level + +def luminance_keyer(image:Image, low:float=0, high:float=1, gamma:float=1) -> Image: + image = pil2tensor(image) + t = image[:, :, :, :3].detach().clone() + alpha = 0.2126 * t[:, :, :, 0] + 0.7152 * t[:, :, :, 1] + 0.0722 * t[:, :, :, 2] + if low == high: + alpha = (alpha > high).to(t.dtype) + else: + alpha = (alpha - low) / (high - low) + if gamma != 1.0: + alpha = torch.pow(alpha, 1 / gamma) + alpha = torch.clamp(alpha, min=0, max=1).unsqueeze(3).repeat(1, 1, 1, 3) + return tensor2pil(alpha).convert('L') + +def get_image_bright_average(image:Image) -> int: + image = image.convert('L') + width, height = image.size + total_bright = 0 + pixels = 0 + for y in range(height): + for x in range(width): + b = image.getpixel((x, y)) + if b > 1: # 排除死黑 + pixels += 1 + total_bright += b + return int(total_bright / pixels) + +def image_channel_split(image:Image, mode = 'RGBA') -> tuple: + _image = image.convert('RGBA') + channel1 = Image.new('L', size=_image.size, color='black') + channel2 = Image.new('L', size=_image.size, color='black') + channel3 = Image.new('L', size=_image.size, color='black') + channel4 = Image.new('L', size=_image.size, color='black') + if mode == 'RGBA': + channel1, channel2, channel3, channel4 = _image.split() + if mode == 'RGB': + channel1, channel2, channel3 = _image.convert('RGB').split() + if mode == 'YCbCr': + channel1, channel2, channel3 = _image.convert('YCbCr').split() + if mode == 'LAB': + channel1, channel2, channel3 = _image.convert('LAB').split() + if mode == 'HSV': + channel1, channel2, channel3 = _image.convert('HSV').split() + return channel1, channel2, channel3, channel4 + +def image_channel_merge(channels:tuple, mode = 'RGB' ) -> Image: + channel1 = channels[0].convert('L') + channel2 = channels[1].convert('L') + channel3 = channels[2].convert('L') + channel4 = Image.new('L', size=channel1.size, color='white') + if mode == 'RGBA': + if len(channels) > 3: + channel4 = channels[3].convert('L') + ret_image = Image.merge('RGBA',[channel1, channel2, channel3, channel4]) + elif mode == 'RGB': + ret_image = Image.merge('RGB', [channel1, channel2, channel3]) + elif mode == 'YCbCr': + ret_image = Image.merge('YCbCr', [channel1, channel2, channel3]).convert('RGB') + elif mode == 'LAB': + ret_image = Image.merge('LAB', [channel1, channel2, channel3]).convert('RGB') + elif mode == 'HSV': + ret_image = Image.merge('HSV', [channel1, channel2, channel3]).convert('RGB') + return ret_image + +def image_gray_offset(image:Image, offset:int) -> Image: + image = image.convert('L') + image_array = np.array(image, dtype=np.int16) + image_array = np.clip(image_array + offset, 0, 255).astype(np.uint8) + ret_image = Image.fromarray(image_array, mode='L') + return ret_image + +def image_gray_ratio(image:Image, ratio:float) -> Image: + image = image.convert('L') + image_array = np.array(image, dtype=np.float32) + image_array = np.clip(image_array * ratio, 0, 255).astype(np.uint8) + ret_image = Image.fromarray(image_array, mode='L') + return ret_image + +def image_hue_offset(image:Image, offset:int) -> Image: + image = image.convert('L') + image_array = np.array(image, dtype=np.int16) + image_array = (image_array + offset) % 256 + image_array = image_array.astype(np.uint8) + ret_image = Image.fromarray(image_array, mode='L') + + return ret_image + +def gamma_trans(image:Image, gamma:float) -> Image: + cv2_image = pil2cv2(image) + gamma_table = [np.power(x/255.0,gamma)*255.0 for x in range(256)] + gamma_table = np.round(np.array(gamma_table)).astype(np.uint8) + _corrected = cv2.LUT(cv2_image,gamma_table) + return cv22pil(_corrected) + + +def read_LUT_IridasCube_encode_utf8(path: str): + from colour.utilities import as_float_array, as_int_scalar + from colour.io.luts.lut import LUT3x1D, LUT3D + title = re.sub("_|-|\\.", " ", os.path.splitext(os.path.basename(path))[0]) + domain_min, domain_max = np.array([0, 0, 0]), np.array([1, 1, 1]) + dimensions: int = 3 + size: int = 2 + data = [] + comments = [] + + with open(path, encoding='utf-8') as cube_file: + lines = cube_file.readlines() + for line in lines: + + line = line.strip() # noqa: PLW2901 + + if len(line) == 0: + continue + + if line.startswith("#"): + comments.append(line[1:].strip()) + continue + + tokens = line.split() + if tokens[0] == "TITLE": + title = " ".join(tokens[1:])[1:-1] + elif tokens[0] == "DOMAIN_MIN": + domain_min = as_float_array(tokens[1:]) + elif tokens[0] == "DOMAIN_MAX": + domain_max = as_float_array(tokens[1:]) + elif tokens[0] == "LUT_1D_SIZE": + dimensions = 2 + size = as_int_scalar(tokens[1]) + elif tokens[0] == "LUT_3D_SIZE": + dimensions = 3 + size = as_int_scalar(tokens[1]) + else: + data.append(tokens) + + table = as_float_array(data) + + LUT: LUT3x1D | LUT3D + if dimensions == 2: + LUT = LUT3x1D( + table, + title, + np.vstack([domain_min, domain_max]), + comments=comments, + ) + elif dimensions == 3: + # The lines of table data shall be in ascending index order, + # with the first component index (Red) changing most rapidly, + # and the last component index (Blue) changing least rapidly. + table = table.reshape([size, size, size, 3], order="F") + + LUT = LUT3D( + table, + title, + np.vstack([domain_min, domain_max]), + comments=comments, + ) + + return LUT + + +def apply_lut(image:Image, lut_file:str, colorspace:str, strength:int, clip_values:bool=True) -> Image: + """ + Apply a LUT to an image. + :param image: Image to apply the LUT to. + :param lut_file: LUT file to apply. + :param colorspace: Colorspace to convert the image to before applying the LUT. + :param clip_values: Clip the values of the LUT to the domain of the LUT. + :param strength: Strength of the LUT. + :return: Image with the LUT applied. + """ + log_colorspace = False + if colorspace == "log": + log_colorspace = True + + # from colour.io.luts.iridas_cube import read_LUT_IridasCube + + lut = read_LUT_IridasCube_encode_utf8(lut_file) + lut.name = lut_file + + if clip_values: + if lut.domain[0].max() == lut.domain[0].min() and lut.domain[1].max() == lut.domain[1].min(): + lut.table = np.clip(lut.table, lut.domain[0, 0], lut.domain[1, 0]) + else: + if len(lut.table.shape) == 2: # 3x1D + for dim in range(3): + lut.table[:, dim] = np.clip(lut.table[:, dim], lut.domain[0, dim], lut.domain[1, dim]) + else: # 3D + for dim in range(3): + lut.table[:, :, :, dim] = np.clip(lut.table[:, :, :, dim], lut.domain[0, dim], lut.domain[1, dim]) + + img = pil2tensor(image) + lut_img = img.numpy().copy() + is_non_default_domain = not np.array_equal(lut.domain, np.array([[0., 0., 0.], [1., 1., 1.]])) + dom_scale = None + if is_non_default_domain: + dom_scale = lut.domain[1] - lut.domain[0] + lut_img = lut_img * dom_scale + lut.domain[0] + if log_colorspace: + lut_img = lut_img ** (1/2.2) + lut_img = lut.apply(lut_img) + if log_colorspace: + lut_img = lut_img ** (2.2) + if is_non_default_domain: + lut_img = (lut_img - lut.domain[0]) / dom_scale + lut_img = torch.from_numpy(lut_img) + if strength < 100: + strength /= 100 + lut_img = strength * lut_img + (1 - strength) * img + + return tensor2pil(lut_img) + +def color_adapter(image:Image, ref_image:Image) -> Image: + image = pil2cv2(image) + ref_image = pil2cv2(ref_image) + image = cv2.cvtColor(image, cv2.COLOR_BGR2LAB) + image_mean, image_std = calculate_mean_std(image) + ref_image = cv2.cvtColor(ref_image, cv2.COLOR_BGR2LAB) + ref_image_mean, ref_image_std = calculate_mean_std(ref_image) + _image = ((image - image_mean) * (ref_image_std / image_std)) + ref_image_mean + np.putmask(_image, _image > 255, values=255) + np.putmask(_image, _image < 0, values=0) + ret_image = cv2.cvtColor(cv2.convertScaleAbs(_image), cv2.COLOR_LAB2BGR) + return cv22pil(ret_image) + +def calculate_mean_std(image:Image): + mean, std = cv2.meanStdDev(image) + mean = np.hstack(np.around(mean, decimals=2)) + std = np.hstack(np.around(std, decimals=2)) + return mean, std + +def image_watercolor(image:Image, level:int=50) -> Image: + img = pil2cv2(image) + img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) + factor = (level / 128.0) ** 2 + sigmaS= int((image.width + image.height) / 5.0 * factor) + 1 + sigmaR = sigmaS / 32.0 * factor + 0.002 + img_color = cv2.stylization(img, sigma_s=sigmaS, sigma_r=sigmaR) + ret_image = cv2.cvtColor(img_color, cv2.COLOR_BGR2RGB) + return cv22pil(ret_image) + + +def image_beauty(image:Image, level:int=50) -> Image: + img = pil2cv2(image) + img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) + factor = (level / 50.0)**2 + d = int((image.width + image.height) / 256 * factor) + sigmaColor = max(1, float((image.width + image.height) / 256 * factor)) + sigmaSpace = max(1, float((image.width + image.height) / 160 * factor)) + img_bit = cv2.bilateralFilter(src=img, d=d, sigmaColor=sigmaColor, sigmaSpace=sigmaSpace) + ret_image = cv2.cvtColor(img_bit, cv2.COLOR_BGR2RGB) + return cv22pil(ret_image) + + +def pixel_spread(image:Image, mask:Image) -> Image: + from pymatting import estimate_foreground_ml + i1 = pil2tensor(image) + if mask.mode != 'RGB': + mask = mask.convert('RGB') + i_dup = copy.deepcopy(i1.cpu().numpy().astype(np.float64)) + a_dup = copy.deepcopy(pil2tensor(mask).cpu().numpy().astype(np.float64)) + fg = copy.deepcopy(i1.cpu().numpy().astype(np.float64)) + + for index, img in enumerate(i_dup): + alpha = a_dup[index][:, :, 0] + fg[index], _ = estimate_foreground_ml(img, np.array(alpha), return_background=True) + + return tensor2pil(torch.from_numpy(fg.astype(np.float32))) + + +def watermark_image_size(image:Image) -> int: + size = int(math.sqrt(image.width * image.height * 0.015625) * 0.9) + return size + +def add_invisibal_watermark(image:Image, watermark_image:Image) -> Image: + """ + Adds an invisible watermark to an image. + """ + orig_image_mode = image.mode + temp_dir = os.path.join(folder_paths.get_temp_directory(), generate_random_name('_watermark_', '_temp', 16)) + if os.path.isdir(temp_dir): + shutil.rmtree(temp_dir) + image_dir = os.path.join(temp_dir, 'image') + wm_dir = os.path.join(temp_dir, 'wm') + result_dir = os.path.join(temp_dir, 'result') + + try: + os.makedirs(image_dir) + os.makedirs(wm_dir) + os.makedirs(result_dir) + except Exception as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary folder.", message_type='error') + return (image,) + + image_file_name = os.path.join(generate_random_name('watermark_orig_', '_temp', 16) + '.png') + wm_file_name = os.path.join(generate_random_name('watermark_image_', '_temp', 16) + '.png') + output_file_name = os.path.join(generate_random_name('watermark_output_', '_temp', 16) + '.png') + + try: + if image.mode != "RGB": + image = image.convert("RGB") + image.save(os.path.join(image_dir, image_file_name)) + watermark_image.save(os.path.join(wm_dir, wm_file_name)) + except IOError as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary file.", message_type='error') + return (image,) + + from blind_watermark import WaterMark + bwm1 = WaterMark(password_img=1, password_wm=1) + bwm1.read_img(os.path.join(image_dir, image_file_name)) + bwm1.read_wm(os.path.join(wm_dir, wm_file_name)) + output_image = os.path.join(result_dir, output_file_name) + bwm1.embed(output_image, compression_ratio=100) + + return Image.open(output_image).convert(orig_image_mode) + +def decode_watermark(image:Image, watermark_image_size:int=94) -> Image: + temp_dir = os.path.join(folder_paths.get_temp_directory(), generate_random_name('_watermark_', '_temp', 16)) + if os.path.isdir(temp_dir): + shutil.rmtree(temp_dir) + image_dir = os.path.join(temp_dir, 'decode_image') + result_dir = os.path.join(temp_dir, 'decode_result') + + try: + os.makedirs(image_dir) + os.makedirs(result_dir) + except Exception as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary folder.", message_type='error') + return (image,) + + image_file_name = os.path.join(generate_random_name('watermark_decode_', '_temp', 16) + '.png') + output_file_name = os.path.join(generate_random_name('watermark_decode_output_', '_temp', 16) + '.png') + + try: + image.save(os.path.join(image_dir, image_file_name)) + except IOError as e: + # print(e) + log(f"Error: {NODE_NAME} skipped, because unable to create temporary file.", message_type='error') + return (image,) + + from blind_watermark import WaterMark + bwm1 = WaterMark(password_img=1, password_wm=1) + decode_image = os.path.join(image_dir, image_file_name) + output_image = os.path.join(result_dir, output_file_name) + + try: + bwm1.extract(filename=decode_image, wm_shape=(watermark_image_size, watermark_image_size), + out_wm_name=os.path.join(output_image),) + ret_image = Image.open(output_image) + except Exception as e: + log(f"blind watermark extract fail, {e}") + ret_image = Image.new("RGB", (64, 64), color="black") + ret_image = normalize_gray(ret_image) + return ret_image + +# def generate_text_image(text:str, font_path:str, font_size:int, text_color:str="#FFFFFF", +# vertical:bool=True, stroke_width:int=1, stroke_color:str="#000000", +# spacing:int=0, leading:int=0) -> tuple: +# +# lines = text.split("\n") +# if vertical: +# layout = "vertical" +# else: +# layout = "horizontal" +# char_coordinates = [] +# if layout == "vertical": +# x = 0 +# y = 0 +# for i in range(len(lines)): +# line = lines[i] +# for char in line: +# char_coordinates.append((x, y)) +# y += font_size + spacing +# x += font_size + leading +# y = 0 +# else: +# x = 0 +# y = 0 +# for line in lines: +# for char in line: +# char_coordinates.append((x, y)) +# x += font_size + spacing +# y += font_size + leading +# x = 0 +# if layout == "vertical": +# width = (len(lines) * (font_size + spacing)) - spacing +# height = ((len(max(lines, key=len)) + 1) * (font_size + spacing)) + spacing +# else: +# width = (len(max(lines, key=len)) * (font_size + spacing)) - spacing +# height = ((len(lines) - 1) * (font_size + spacing)) + font_size +# +# image = Image.new('RGBA', size=(width, height), color=stroke_color) +# draw = ImageDraw.Draw(image) +# font = ImageFont.truetype(font_path, font_size) +# index = 0 +# for i, line in enumerate(lines): +# for j, char in enumerate(line): +# x, y = char_coordinates[index] +# if stroke_width > 0: +# draw.text((x - stroke_width, y), char, font=font, fill=stroke_color) +# draw.text((x + stroke_width, y), char, font=font, fill=stroke_color) +# draw.text((x, y - stroke_width), char, font=font, fill=stroke_color) +# draw.text((x, y + stroke_width), char, font=font, fill=stroke_color) +# draw.text((x, y), char, font=font, fill=text_color) +# index += 1 +# return (image.convert('RGB'), image.split()[3]) + +def generate_text_image(width:int, height:int, text:str, font_file:str, text_scale:float=1, font_color:str="#FFFFFF",) -> Image: + image = Image.new("RGBA", (width, height), (0, 0, 0, 0)) + draw = ImageDraw.Draw(image) + font_size = int(width / len(text) * text_scale) + font = ImageFont.truetype(font_file, font_size) + bbox = draw.textbbox((0, 0), text, font=font) + text_width, text_height = bbox[2] - bbox[0], bbox[3] - bbox[1] + x = int((width - text_width) / 2) + y = int((height - text_height) / 2) - int(font_size / 2) + draw.text((x, y), text, font=font, fill=font_color) + return image + +'''Mask Functions''' + +def create_mask_from_color_cv2(image:Image, color:str, tolerance:int=0) -> Image: + (r, g, b) = Hex_to_RGB(color) + target_color = (b, g, r) + tolerance = 127 + int(tolerance * 1.28) + # tolerance = 255 - tolerance + # 将RGB颜色转换为HSV颜色空间 + image = pil2cv2(image) + hsv_image = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) + + # 定义目标颜色的HSV范围 + lower_color = np.array([max(target_color[0] - tolerance, 0), max(target_color[1] - tolerance, 0), max(target_color[2] - tolerance, 0)]) + upper_color = np.array([min(target_color[0] + tolerance, 255), min(target_color[1] + tolerance, 255), min(target_color[2] + tolerance, 255)]) + + # 创建掩码 + mask = cv2.inRange(hsv_image, lower_color, upper_color) + + return cv22pil(mask).convert("L") + +def create_mask_from_color_tensor(image:Image, color:str, tolerance:int=0) -> Image: + threshold = int(tolerance * 1.28) + (red, green, blue) = Hex_to_RGB(color) + image = pil2tensor(image).squeeze() + temp = (torch.clamp(image, 0, 1.0) * 255.0).round().to(torch.int) + color_value = torch.tensor([red, green, blue]) + lower_bound = (color_value - threshold).clamp(min=0) + upper_bound = (color_value + threshold).clamp(max=255) + lower_bound = lower_bound.view(1, 1, 1, 3) + upper_bound = upper_bound.view(1, 1, 1, 3) + mask = (temp >= lower_bound) & (temp <= upper_bound) + mask = mask.all(dim=-1) + mask = mask.float() + return tensor2pil(mask).convert("L") + +@lru_cache(maxsize=1, typed=False) +def load_RMBG_model(): + from .briarmbg import BriaRMBG + current_directory = os.path.dirname(os.path.abspath(__file__)) + device = "cuda" if torch.cuda.is_available() else "cpu" + net = BriaRMBG() + model_path = "" + try: + model_path = os.path.join(os.path.normpath(folder_paths.folder_names_and_paths['rmbg'][0][0]), "model.pth") + except: + pass + if not os.path.exists(model_path): + model_path = os.path.join(folder_paths.models_dir, "rmbg", "RMBG-1.4", "model.pth") + if not os.path.exists(model_path): + model_path = os.path.join(os.path.dirname(current_directory), "RMBG-1.4", "model.pth") + net.load_state_dict(torch.load(model_path, map_location=device, weights_only=True)) + net.to(device) + net.eval() + return net + + +def RMBG(image:Image) -> Image: + rmbgmodel = load_RMBG_model() + w, h = image.size + im_np = np.array(image.resize((1024, 1024), Image.BILINEAR)) + im_tensor = torch.tensor(im_np, dtype=torch.float32).permute(2, 0, 1) + im_tensor = torch.divide(torch.unsqueeze(im_tensor, 0), 255.0) + im_tensor = TF.normalize(im_tensor, [0.5, 0.5, 0.5], [1.0, 1.0, 1.0]) + if torch.cuda.is_available(): + im_tensor = im_tensor.cuda() + result = rmbgmodel(im_tensor) + result = torch.squeeze(F.interpolate(result[0][0], size=(h, w), mode='bilinear'), 0) + ma = torch.max(result) + mi = torch.min(result) + result = (result - mi) / (ma - mi) + im_array = (result * 255).cpu().data.numpy().astype(np.uint8) + _mask = torch.from_numpy(np.squeeze(im_array).astype(np.float32)) + return tensor2pil(_mask) + +def guided_filter_alpha(image:torch.Tensor, mask:torch.Tensor, filter_radius:int) -> torch.Tensor: + sigma = 0.15 + d = filter_radius + 1 + mask = pil2tensor(tensor2pil(mask).convert('RGB')) + if not bool(d % 2): + d += 1 + s = sigma / 10 + i_dup = copy.deepcopy(image.cpu().numpy()) + a_dup = copy.deepcopy(mask.cpu().numpy()) + for index, image in enumerate(i_dup): + alpha_work = a_dup[index] + i_dup[index] = guidedFilter(image, alpha_work, d, s) + return torch.from_numpy(i_dup) + +#pymatting edge detail +def mask_edge_detail(image:torch.Tensor, mask:torch.Tensor, detail_range:int=8, black_point:float=0.01, white_point:float=0.99) -> torch.Tensor: + from pymatting import fix_trimap, estimate_alpha_cf + d = detail_range * 5 + 1 + mask = pil2tensor(tensor2pil(mask).convert('RGB')) + if not bool(d % 2): + d += 1 + i_dup = copy.deepcopy(image.cpu().numpy().astype(np.float64)) + a_dup = copy.deepcopy(mask.cpu().numpy().astype(np.float64)) + for index, img in enumerate(i_dup): + trimap = a_dup[index][:, :, 0] # convert to single channel + if detail_range > 0: + trimap = cv2.GaussianBlur(trimap, (d, d), 0) + trimap = fix_trimap(trimap, black_point, white_point) + alpha = estimate_alpha_cf(img, trimap, laplacian_kwargs={"epsilon": 1e-6}, + cg_kwargs={"maxiter": 500}) + a_dup[index] = np.stack([alpha, alpha, alpha], axis=-1) # convert back to rgb + return torch.from_numpy(a_dup.astype(np.float32)) + +class VITMatteModel: + def __init__(self,model,processor): + self.model = model + self.processor = processor + +def load_VITMatte_model(model_name:str, local_files_only:bool=False) -> object: + model_name = "vitmatte" + model_repo = "hustvl/vitmatte-small-composition-1k" + model_path = check_and_download_model(model_name, model_repo) + from transformers import VitMatteImageProcessor, VitMatteForImageMatting + model = VitMatteForImageMatting.from_pretrained(model_path, local_files_only=local_files_only) + processor = VitMatteImageProcessor.from_pretrained(model_path, local_files_only=local_files_only) + vitmatte = VITMatteModel(model, processor) + return vitmatte + +def generate_VITMatte(image:Image, trimap:Image, local_files_only:bool=False, device:str="cpu", max_megapixels:float=2.0) -> Image: + if image.mode != 'RGB': + image = image.convert('RGB') + if trimap.mode != 'L': + trimap = trimap.convert('L') + max_megapixels *= 1048576 + width, height = image.size + ratio = width / height + target_width = math.sqrt(ratio * max_megapixels) + target_height = target_width / ratio + target_width = int(target_width) + target_height = int(target_height) + if width * height > max_megapixels: + image = image.resize((target_width, target_height), Image.BILINEAR) + trimap = trimap.resize((target_width, target_height), Image.BILINEAR) + # log(f"vitmatte image size {width}x{height} too large, resize to {target_width}x{target_height} for processing.") + model_name = "hustvl/vitmatte-small-composition-1k" + if device=="cpu": + device = torch.device('cpu') + else: + if torch.cuda.is_available(): + device = torch.device('cuda') + else: + log("vitmatte device is set to cuda, but not available, using cpu instead.") + device = torch.device('cpu') + vit_matte_model = load_VITMatte_model(model_name=model_name, local_files_only=local_files_only) + vit_matte_model.model.to(device) + # log(f"vitmatte processing, image size = {image.width}x{image.height}, device = {device}.") + inputs = vit_matte_model.processor(images=image, trimaps=trimap, return_tensors="pt") + with torch.no_grad(): + inputs = {k: v.to(device) for k, v in inputs.items()} + predictions = vit_matte_model.model(**inputs).alphas + if torch.cuda.is_available(): + torch.cuda.empty_cache() + torch.cuda.ipc_collect() + mask = tensor2pil(predictions).convert('L') + mask = mask.crop( + (0, 0, image.width, image.height)) # remove padding that the prediction appends (works in 32px tiles) + if width * height > max_megapixels: + mask = mask.resize((width, height), Image.BILINEAR) + return mask + +def generate_VITMatte_trimap(mask:torch.Tensor, erode_kernel_size:int, dilate_kernel_size:int) -> Image: + def g_trimap(mask, erode_kernel_size=10, dilate_kernel_size=10): + erode_kernel = np.ones((erode_kernel_size, erode_kernel_size), np.uint8) + dilate_kernel = np.ones((dilate_kernel_size, dilate_kernel_size), np.uint8) + eroded = cv2.erode(mask, erode_kernel, iterations=5) + dilated = cv2.dilate(mask, dilate_kernel, iterations=5) + trimap = np.zeros_like(mask) + trimap[dilated == 255] = 128 + trimap[eroded == 255] = 255 + return trimap + + mask = mask.squeeze(0).cpu().detach().numpy().astype(np.uint8) * 255 + trimap = g_trimap(mask, erode_kernel_size, dilate_kernel_size).astype(np.float32) + trimap[trimap == 128] = 0.5 + trimap[trimap == 255] = 1 + trimap = torch.from_numpy(trimap).unsqueeze(0) + + return tensor2pil(trimap).convert('L') + + +def get_a_person_mask_generator_model_path() -> str: + model_folder_name = 'mediapipe' + model_name = 'selfie_multiclass_256x256.tflite' + + model_file_path = "" + try: + model_file_path = os.path.join(os.path.normpath(folder_paths.folder_names_and_paths[model_folder_name][0][0]), model_name) + except: + pass + if not os.path.exists(model_file_path): + model_file_path = os.path.join(folder_paths.models_dir, model_folder_name, model_name) + + if not os.path.exists(model_file_path): + import wget + model_url = f'https://storage.googleapis.com/mediapipe-models/image_segmenter/selfie_multiclass_256x256/float32/latest/{model_name}' + log(f"Downloading '{model_name}' model") + os.makedirs(os.path.dirname(model_file_path), exist_ok=True) + wget.download(model_url, model_file_path) + return model_file_path + +def mask_fix(images:torch.Tensor, radius:int, fill_holes:int, white_threshold:float, extra_clip:float) -> torch.Tensor: + d = radius * 2 + 1 + i_dup = copy.deepcopy(images.cpu().numpy()) + for index, image in enumerate(i_dup): + cleaned = cv2.bilateralFilter(image, 9, 0.05, 8) + alpha = np.clip((image - white_threshold) / (1 - white_threshold), 0, 1) + rgb = image * alpha + alpha = cv2.GaussianBlur(alpha, (d, d), 0) * 0.99 + np.average(alpha) * 0.01 + rgb = cv2.GaussianBlur(rgb, (d, d), 0) * 0.99 + np.average(rgb) * 0.01 + rgb = rgb / np.clip(alpha, 0.00001, 1) + rgb = rgb * extra_clip + cleaned = np.clip(cleaned / rgb, 0, 1) + if fill_holes > 0: + fD = fill_holes * 2 + 1 + gamma = cleaned * cleaned + kD = np.ones((fD, fD), np.uint8) + kE = np.ones((fD + 2, fD + 2), np.uint8) + gamma = cv2.dilate(gamma, kD, iterations=1) + gamma = cv2.erode(gamma, kE, iterations=1) + gamma = cv2.GaussianBlur(gamma, (fD, fD), 0) + cleaned = np.maximum(cleaned, gamma) + i_dup[index] = cleaned + return torch.from_numpy(i_dup) + +def histogram_remap(image:torch.Tensor, blackpoint:float, whitepoint:float) -> torch.Tensor: + bp = min(blackpoint, whitepoint - 0.001) + scale = 1 / (whitepoint - bp) + i_dup = copy.deepcopy(image.cpu().numpy()) + i_dup = np.clip((i_dup - bp) * scale, 0.0, 1.0) + return torch.from_numpy(i_dup) + +def expand_mask(mask:torch.Tensor, grow:int, blur:int) -> torch.Tensor: + # grow + c = 0 + kernel = np.array([[c, 1, c], + [1, 1, 1], + [c, 1, c]]) + growmask = mask.reshape((-1, mask.shape[-2], mask.shape[-1])) + out = [] + for m in growmask: + output = m.numpy() + for _ in range(abs(grow)): + if grow < 0: + output = scipy.ndimage.grey_erosion(output, footprint=kernel) + else: + output = scipy.ndimage.grey_dilation(output, footprint=kernel) + output = torch.from_numpy(output) + out.append(output) + # blur + for idx, tensor in enumerate(out): + pil_image = tensor2pil(tensor.cpu().detach()) + pil_image = pil_image.filter(ImageFilter.GaussianBlur(blur)) + out[idx] = pil2tensor(pil_image) + ret_mask = torch.cat(out, dim=0) + return ret_mask + +def mask_invert(mask:torch.Tensor) -> torch.Tensor: + return 1 - mask + +def subtract_mask(masks_a:torch.Tensor, masks_b:torch.Tensor) -> torch.Tensor: + return torch.clamp(masks_a - masks_b, 0, 255) + +def add_mask(masks_a:torch.Tensor, masks_b:torch.Tensor) -> torch.Tensor: + mask = chop_image(tensor2pil(masks_a), tensor2pil(masks_b), blend_mode='add', opacity=100) + return image2mask(mask) + +def RGB2RGBA(image:Image, mask:Image) -> Image: + (R, G, B) = image.convert('RGB').split() + return Image.merge('RGBA', (R, G, B, mask.convert('L'))) + +def mask_area(image:Image) -> tuple: + cv2_image = pil2cv2(image.convert('RGBA')) + gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY) + _, thresh = cv2.threshold(gray, 127, 255, 0) + locs = np.where(thresh == 255) + try: + x1 = np.min(locs[1]) + x2 = np.max(locs[1]) + y1 = np.min(locs[0]) + y2 = np.max(locs[0]) + except ValueError: + x1, y1, x2, y2 = -1, -1, 0, 0 + x1, y1, x2, y2 = min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2) + return (x1, y1, x2 - x1, y2 - y1) + +def min_bounding_rect(image:Image) -> tuple: + cv2_image = pil2cv2(image) + gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY) + ret, thresh = cv2.threshold(gray, 127, 255, 0) + contours, _ = cv2.findContours(thresh, 1, 2) + x, y, width, height = 0, 0, 0, 0 + area = 0 + for contour in contours: + _x, _y, _w, _h = cv2.boundingRect(contour) + _area = _w * _h + if _area > area: + area = _area + x, y, width, height = _x, _y, _w, _h + return (x, y, width, height) + +def max_inscribed_rect(image:Image) -> tuple: + img = pil2cv2(image) + img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) + ret, img_bin = cv2.threshold(img_gray, 127, 255, cv2.THRESH_BINARY) + contours, _ = cv2.findContours(img_bin, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE) + contour = contours[0].reshape(len(contours[0]), 2) + rect = [] + for i in range(len(contour)): + x1, y1 = contour[i] + for j in range(len(contour)): + x2, y2 = contour[j] + area = abs(y2 - y1) * abs(x2 - x1) + rect.append(((x1, y1), (x2, y2), area)) + all_rect = sorted(rect, key=lambda x: x[2], reverse=True) + if all_rect: + best_rect_found = False + index_rect = 0 + nb_rect = len(all_rect) + while not best_rect_found and index_rect < nb_rect: + rect = all_rect[index_rect] + (x1, y1) = rect[0] + (x2, y2) = rect[1] + valid_rect = True + x = min(x1, x2) + while x < max(x1, x2) + 1 and valid_rect: + if any(img[y1, x]) == 0 or any(img[y2, x]) == 0: + valid_rect = False + x += 1 + y = min(y1, y2) + while y < max(y1, y2) + 1 and valid_rect: + if any(img[y, x1]) == 0 or any(img[y, x2]) == 0: + valid_rect = False + y += 1 + if valid_rect: + best_rect_found = True + index_rect += 1 + #较小的数值排前面 + x1, y1, x2, y2 = min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2) + return (x1, y1, x2 - x1, y2 - y1) + +def gray_threshold(image:Image, thresh:int=127, otsu:bool=False) -> Image: + cv2_image = pil2cv2(image) + gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY) + if otsu: + _, thresh = cv2.threshold(gray,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU) + else: + _, thresh = cv2.threshold(gray, thresh, 255, cv2.THRESH_TOZERO) + return cv22pil(thresh).convert('L') + +def image_to_colormap(image:Image, index:int) -> Image: + return cv22pil(cv2.applyColorMap(pil2cv2(image), index)) + +# 检查mask有效区域面积比例 +def mask_white_area(mask:Image, white_point:int) -> float: + if mask.mode != 'L': + mask.convert('L') + white_pixels = 0 + for y in range(mask.height): + for x in range(mask.width): + mask.getpixel((x, y)) > 16 + if mask.getpixel((x, y)) > white_point: + white_pixels += 1 + return white_pixels / (mask.width * mask.height) + +'''Color Functions''' + +def color_balance(image:Image, shadows:list, midtones:list, highlights:list, + shadow_center:float=0.15, midtone_center:float=0.5, highlight_center:float=0.8, + shadow_max:float=0.1, midtone_max:float=0.3, highlight_max:float=0.2, + preserve_luminosity:bool=False) -> Image: + + img = pil2tensor(image) + # Create a copy of the img tensor + img_copy = img.clone() + + # Calculate the original luminance if preserve_luminosity is True + if preserve_luminosity: + original_luminance = 0.2126 * img_copy[..., 0] + 0.7152 * img_copy[..., 1] + 0.0722 * img_copy[..., 2] + + # Define the adjustment curves + def adjust(x, center, value, max_adjustment): + # Scale the adjustment value + value = value * max_adjustment + + # Define control points + points = torch.tensor([[0, 0], [center, center + value], [1, 1]]) + + # Create cubic spline + from scipy.interpolate import CubicSpline + cs = CubicSpline(points[:, 0], points[:, 1]) + + # Apply the cubic spline to the color channel + return torch.clamp(torch.from_numpy(cs(x)), 0, 1) + + # Apply the adjustments to each color channel + # shadows, midtones, highlights are lists of length 3 (for R, G, B channels) with values between -1 and 1 + for i, (s, m, h) in enumerate(zip(shadows, midtones, highlights)): + img_copy[..., i] = adjust(img_copy[..., i], shadow_center, s, shadow_max) + img_copy[..., i] = adjust(img_copy[..., i], midtone_center, m, midtone_max) + img_copy[..., i] = adjust(img_copy[..., i], highlight_center, h, highlight_max) + + # If preserve_luminosity is True, adjust the RGB values to match the original luminance + if preserve_luminosity: + current_luminance = 0.2126 * img_copy[..., 0] + 0.7152 * img_copy[..., 1] + 0.0722 * img_copy[..., 2] + img_copy *= (original_luminance / current_luminance).unsqueeze(-1) + + return tensor2pil(img_copy) + +def RGB_to_Hex(RGB:tuple) -> str: + color = '#' + for i in RGB: + num = int(i) + color += str(hex(num))[-2:].replace('x', '0').upper() + return color + +def Hex_to_RGB(inhex:str) -> tuple: + if not inhex.startswith('#'): + raise ValueError(f'Invalid Hex Code in {inhex}') + else: + if len(inhex) == 4: + inhex = "#" + "".join([char * 2 for char in inhex[1:]]) + rval = inhex[1:3] + gval = inhex[3:5] + bval = inhex[5:] + rgb = (int(rval, 16), int(gval, 16), int(bval, 16)) + return tuple(rgb) + +def RGB_to_HSV(RGB:tuple) -> list: + HSV = rgb_to_hsv(RGB[0] / 255.0, RGB[1] / 255.0, RGB[2] / 255.0) + return [int(x * 360) for x in HSV] + +def Hex_to_HSV_255level(inhex:str) -> list: + if not inhex.startswith('#'): + raise ValueError(f'Invalid Hex Code in {inhex}') + else: + if len(inhex) == 4: + inhex = "#" + "".join([char * 2 for char in inhex[1:]]) + rval = inhex[1:3] + gval = inhex[3:5] + bval = inhex[5:] + RGB = (int(rval, 16), int(gval, 16), int(bval, 16)) + HSV = rgb_to_hsv(RGB[0] / 255.0, RGB[1] / 255.0, RGB[2] / 255.0) + return [int(x * 255) for x in HSV] + +def HSV_255level_to_Hex(HSV: list) -> str: + if len(HSV) != 3 or any((not isinstance(v, int) or v < 0 or v > 255) for v in HSV): + raise ValueError('Invalid HSV values, each value should be an integer between 0 and 255') + + H, S, V = HSV + RGB = tuple(int(x * 255) for x in hsv_to_rgb(H / 255.0, S / 255.0, V / 255.0)) + + # Convert RGB values to hexadecimal format + hex_r = format(RGB[0], '02x') + hex_g = format(RGB[1], '02x') + hex_b = format(RGB[2], '02x') + + return '#' + hex_r + hex_g + hex_b + +# 返回补色色值 +def complementary_color(color: str) -> str: + color = Hex_to_RGB(color) + return RGB_to_Hex((255 - color[0], 255 - color[1], 255 - color[2])) + +# 返回颜色对应灰度值 +def rgb2gray(color:str)->int: + (r, g, b) = Hex_to_RGB(color) + return int((r * 299 + g * 587 + b * 114) / 1000) + +'''Value Functions''' +def is_valid_mask(tensor:torch.Tensor) -> bool: + return not bool(torch.all(tensor == 0).item()) + +def step_value(start_value, end_value, total_step, step) -> float: # 按当前步数在总步数中的位置返回比例值 + factor = step / total_step + return (end_value - start_value) * factor + start_value + +def step_color(start_color_inhex:str, end_color_inhex:str, total_step:int, step:int) -> str: # 按当前步数在总步数中的位置返回比例颜色 + start_color = tuple(Hex_to_RGB(start_color_inhex)) + end_color = tuple(Hex_to_RGB(end_color_inhex)) + start_R, start_G, start_B = start_color[0], start_color[1], start_color[2] + end_R, end_G, end_B = end_color[0], end_color[1], end_color[2] + ret_color = (int(step_value(start_R, end_R, total_step, step)), + int(step_value(start_G, end_G, total_step, step)), + int(step_value(start_B, end_B, total_step, step)), + ) + return RGB_to_Hex(ret_color) + +def has_letters(string:str) -> bool: + pattern = r'[a-zA-Z]' + match = re.search(pattern, string) + if match: + return True + else: + return False + + +def replace_case(old:str, new:str, text:str) -> str: + index = text.lower().find(old.lower()) + if index == -1: + return text + return replace_case(old, new, text[:index] + new + text[index + len(old):]) + +def random_numbers(total:int, random_range:int, seed:int=0, sum_of_numbers:int=0) -> list: + random.seed(seed) + numbers = [random.randint(-random_range//2, random_range//2) for _ in range(total - 1)] + avg = sum(numbers) // total + ret_list = [] + for i in numbers: + ret_list.append(i - avg) + ret_list.append((sum_of_numbers - sum(ret_list)) // 2) + return ret_list + +# 四舍五入取整数倍 +def num_round_to_multiple(number:int, multiple:int) -> int: + remainder = number % multiple + if remainder == 0 : + return number + else: + factor = int(number / multiple) + if number - factor * multiple > multiple / 2: + factor += 1 + return factor * multiple + +# 向上取整数倍 +def num_round_up_to_multiple(number: int, multiple: int) -> int: + remainder = number % multiple + if remainder == 0: + return number + else: + factor = (number + multiple - 1) // multiple # 向上取整的计算方式 + return factor * multiple + +def calculate_side_by_ratio(orig_width:int, orig_height:int, ratio:float, longest_side:int=0) -> int: + + if orig_width > orig_height: + if longest_side: + target_width = longest_side + else: + target_width = orig_width + target_height = int(target_width / ratio) + else: + if longest_side: + target_height = longest_side + else: + target_height = orig_height + target_width = int(target_height * ratio) + + if ratio < 1: + if longest_side: + _r = longest_side / target_height + target_height = longest_side + else: + _r = orig_height / target_height + target_height = orig_height + target_width = int(target_width * _r) + + return target_width, target_height + +def generate_random_name(prefix:str, suffix:str, length:int) -> str: + name = ''.join(random.choice("abcdefghijklmnopqrstupvxyz1234567890") for x in range(length)) + return prefix + name + suffix + +def check_image_file(file_name:str, interval:int) -> object: + while True: + if os.path.isfile(file_name): + try: + image = Image.open(file_name) + ret_image = copy.deepcopy(image) + image.close() + return ret_image + except Exception as e: + log(e) + return None + break + time.sleep(interval / 1000) + +# 判断字符串是否包含中文 +def is_contain_chinese(check_str:str) -> bool: + for ch in check_str: + if u'\u4e00' <= ch <= u'\u9fff': + return True + return False + +# 生成随机颜色 +def generate_random_color(): + """ + Generate a random color in hexadecimal format. + """ + # random.seed(int(time.time())) + return "#{:06x}".format(random.randint(0x101010, 0xFFFFFF)) + +# 提取字符串中的int数为列表 +def extract_numbers(string): + return [int(s) for s in re.findall(r'\d+', string)] + +# 提取字符串中的数值, 返回为列表 +def extract_all_numbers_from_str(string, checkint:bool=False): + # 定义浮点数的正则表达式模式 + number_pattern = r'[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?' + # 使用re.findall找到所有匹配的字符串 + matches = re.findall(number_pattern, string) + # 转换为浮点数 + numbers = [float(match) for match in matches] + number_list = [] + # 如果需要检查是否为整数,则将浮点数转换为整数 + if checkint: + for num in numbers: + int_num = int(num) + if math.isclose(num, int_num, rel_tol=1e-19): + number_list.append(int_num) + else: + number_list.append(num) + else: + number_list = numbers + + return number_list + + + +# 提取字符串中用"," ";" " "分开的字符串, 返回为列表 +def extract_substr_from_str(string) -> list: + return re.split(r'[,\s;,;]+', string) + +# lcs匹配算法,计算最长公共子序列 (LCS):子字符串顺序:以相同顺序出现,权重更高。额外字符惩罚:多余字符会降低相似度。 +def lcs_with_order(s1, s2): + """Calculate the length of the longest common subsequence (LCS) with the same order.""" + m, n = len(s1), len(s2) + dp = [[0] * (n + 1) for _ in range(m + 1)] + + for i in range(1, m + 1): + for j in range(1, n + 1): + if s1[i - 1] == s2[j - 1]: + dp[i][j] = dp[i - 1][j - 1] + 1 + else: + dp[i][j] = max(dp[i - 1][j], dp[i][j - 1]) + + return dp[m][n] + +# 使用正则表达式将字符串拆分为单词(token),对比的同时忽略大小写和非字母数字字符。 +def tokenize_string(s): + """Tokenize a string by splitting on non-alphanumeric characters and normalizing case.""" + return re.findall(r'\b\w+\b', s.lower()) + +# 在列表中找到字符串的最佳匹配 +def find_best_match_by_similarity(target, candidates): + """ + Find the best matching string based on substring order, extra character penalties, and tokenization. + + Parameters: + target (str): The target string. + candidates (list of str): List of candidate strings. + + Returns: + str: The best matching string. + """ + target_tokens = tokenize_string(target) + best_match = None + highest_score = float('-inf') + + for candidate in candidates: + candidate_tokens = tokenize_string(candidate) + + # Calculate LCS on tokens + target_str = ''.join(target_tokens) + candidate_str = ''.join(candidate_tokens) + lcs = lcs_with_order(target_str, candidate_str) + + # Calculate similarity score + match_ratio = lcs / len(target_str) # Ratio of matched characters + extra_char_penalty = len(candidate_str) - lcs # Penalty for extra characters + unmatched_tokens_penalty = len(set(candidate_tokens) - set(target_tokens)) # Penalty for unmatched tokens + score = match_ratio - 0.1 * extra_char_penalty - 0.2 * unmatched_tokens_penalty # Weighted score + + if score > highest_score: + highest_score = score + best_match = candidate + + return best_match + + +def clear_memory(): + import gc + # Cleanup + gc.collect() + if torch.cuda.is_available(): + torch.cuda.empty_cache() + torch.cuda.ipc_collect() + +def tensor_info(tensor:object) -> str: + value = '' + if isinstance(tensor, torch.Tensor): + value += f"\n Input dim = {tensor.dim()}, shape[0] = {tensor.shape[0]} \n" + for i in range(tensor.shape[0]): + t = tensor[i] + image = tensor2pil(t) + value += f'\n index {i}: Image.size = {image.size}, Image.mode = {image.mode}, dim = {t.dim()}, ' + for j in range(t.dim()): + value += f'shape[{j}] = {t.shape[j]}, ' + else: + value = f"tensor_info: Not tensor, type is {type(tensor)}" + return value + +# 去除空行 +def remove_empty_lines(text): + lines = text.split('\n') + non_empty_lines = [line for line in lines if line.strip() != ''] + return '\n'.join(non_empty_lines) + +# 去除重复的句子 +def remove_duplicate_string(text:str) -> str: + sentences = re.split(r'(?<=[:;,.!?])\s+', text) + unique_sentences = [] + seen = set() + for sentence in sentences: + if sentence not in seen: + seen.add(sentence) + unique_sentences.append(sentence) + return ' '.join(unique_sentences) + +files_for_uform_gen2_qwen = Path(os.path.join(folder_paths.models_dir, "LLavacheckpoints", "files_for_uform_gen2_qwen")) +class StopOnTokens(StoppingCriteria): + def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool: + stop_ids = [151645] # Define stop tokens as per your model's specifics + for stop_id in stop_ids: + if input_ids[0][-1] == stop_id: + return True + return False + +class UformGen2QwenChat: + + def __init__(self): + from huggingface_hub import snapshot_download + # self.model_path = snapshot_download("unum-cloud/uform-gen2-qwen-500m", + # local_dir=files_for_uform_gen2_qwen, + # force_download=False, # Set to True if you always want to download, regardless of local copy + # local_files_only=False, # Set to False to allow downloading if not available locally + # local_dir_use_symlinks="auto") # or set to True/False based on your symlink preference + self.model_path = files_for_uform_gen2_qwen + self.device = "cuda" if torch.cuda.is_available() else "cpu" + self.model = AutoModel.from_pretrained(self.model_path, trust_remote_code=True).to(self.device) + self.processor = AutoProcessor.from_pretrained(self.model_path, trust_remote_code=True) + + def chat_response(self, message, history, image_path): + stop = StopOnTokens() + messages = [{"role": "system", "content": "You are a helpful Assistant."}] + + for user_msg, assistant_msg in history: + messages.append({"role": "user", "content": user_msg}) + messages.append({"role": "assistant", "content": assistant_msg}) + + if len(messages) == 1: + message = f" {message}" + + messages.append({"role": "user", "content": message}) + + model_inputs = self.processor.tokenizer.apply_chat_template( + messages, + add_generation_prompt=True, + return_tensors="pt" + ) + + image = Image.open(image_path) # Load image using PIL + image_tensor = ( + self.processor.feature_extractor(image) + .unsqueeze(0) + ) + + attention_mask = torch.ones( + 1, model_inputs.shape[1] + self.processor.num_image_latents - 1 + ) + + model_inputs = { + "input_ids": model_inputs, + "images": image_tensor, + "attention_mask": attention_mask + } + + model_inputs = {k: v.to(self.device) for k, v in model_inputs.items()} + + with torch.inference_mode(): + output = self.model.generate( + **model_inputs, + max_new_tokens=512, + do_sample=True, + temperature=0.3, + repetition_penalty=1.2, + stopping_criteria=StoppingCriteriaList([stop]) + ) + + response_text = self.processor.tokenizer.decode(output[0], skip_special_tokens=True) + response_text = remove_duplicate_string(response_text) + return response_text + +'''CLASS''' + +class AnyType(str): + """A special class that is always equal in not equal comparisons. Credit to pythongosssss""" + def __eq__(self, __value: object) -> bool: + return True + def __ne__(self, __value: object) -> bool: + return False + + + +'''Load File''' + +def download_hg_model(model_id:str,exDir:str='') -> str: + # 下载本地 + model_checkpoint = os.path.join(folder_paths.models_dir, exDir, os.path.basename(model_id)) + if not os.path.exists(model_checkpoint): + from huggingface_hub import snapshot_download + snapshot_download(repo_id=model_id, local_dir=model_checkpoint, local_dir_use_symlinks=False) + return model_checkpoint + + +def get_files(model_path: str, file_ext_list:list) -> dict: + file_list = [] + for ext in file_ext_list: + file_list.extend(glob.glob(os.path.join(model_path, '*' + ext))) + files_dict = {} + for i in range(len(file_list)): + _, filename = os.path.split(file_list[i]) + files_dict[filename] = file_list[i] + return files_dict + +# def load_inference_prompt() -> str: +# inference_prompt_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), "resource", +# "inference.prompt") +# ret_value = '' +# try: +# with open(inference_prompt_file, 'r') as f: +# ret_value = f.readlines() +# except Exception as e: +# log(f'Warning: {inference_prompt_file} ' + repr(e) + f", check it to be correct. ", message_type='warning') +# return ''.join(ret_value) + +def load_custom_size() -> list: + custom_size_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), "custom_size.ini") + ret_value = ['1024 x 1024', + '768 x 512', + '512 x 768', + '1280 x 720', + '720 x 1280', + '1344 x 768', + '768 x 1344', + '1536 x 640', + '640 x 1536' + ] + try: + with open(custom_size_file, 'r') as f: + ini = f.readlines() + for line in ini: + if not line.startswith(f'#'): + ret_value.append(line.strip()) + except Exception as e: + pass + # log(f'Warning: {custom_size_file} not found' + f", use default size. ") + return ret_value + +def get_api_key(api_name:str) -> str: + api_key_ini_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), "api_key.ini") + ret_value = '' + try: + with open(api_key_ini_file, 'r') as f: + ini = f.readlines() + for line in ini: + if line.startswith(f'{api_name}='): + ret_value = line[line.find('=') + 1:].rstrip().lstrip() + break + except Exception as e: + log(f'Warning: {api_key_ini_file} ' + repr(e) + f", check it to be correct. ", message_type='warning') + remove_char = ['"', "'", '“', '”', '‘', '’'] + for i in remove_char: + if i in ret_value: + ret_value = ret_value.replace(i, '') + if len(ret_value) < 4: + log(f'Warning: Invalid API-key, Check the key in {api_key_ini_file}.', message_type='warning') + return ret_value + +# 判断文件名后缀是否包括在列表中(忽略大小写) +def file_is_extension(filename:str, ext_list:tuple) -> bool: + # 获取文件的真实后缀(包括点) + true_ext = os.path.splitext(filename)[1] + if true_ext.lower() in ext_list: + return True + return False + +# 遍历目录下包括子目录指定后缀文件,返回字典 +def collect_files(root_dir:str, suffixes:tuple, default_dir:str=""): + result = {} + for dirpath, _, filenames in os.walk(root_dir): + for file in filenames: + if file_is_extension(file, suffixes): + # 获取文件的完整路径作为 value + full_path = os.path.join(dirpath, file) + # 如果是default_dir 则去掉路径,使用文件名作为 key + if dirpath == default_dir: + relative_path = os.path.relpath(full_path, root_dir) + result.update({relative_path: full_path}) + else: + result.update({full_path: full_path}) + return result + + +def get_resource_dir() -> list: + default_lut_dir = [] + default_lut_dir.append(os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), 'lut')) + default_font_dir = [] + default_font_dir.append(os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), 'font')) + resource_dir_ini_file = os.path.join(os.path.dirname(os.path.dirname(os.path.normpath(__file__))), + "resource_dir.ini") + try: + with open(resource_dir_ini_file, 'r') as f: + ini = f.readlines() + for line in ini: + if line.startswith('LUT_dir='): + _ldir = line[line.find('=') + 1:].rstrip().lstrip() + for dir in extract_substr_from_str(_ldir) : + if os.path.exists(dir): + default_lut_dir.append(dir) + elif line.startswith('FONT_dir='): + _fdir = line[line.find('=') + 1:].rstrip().lstrip() + for dir in extract_substr_from_str(_fdir): + if os.path.exists(dir): + default_font_dir.append(dir) + except Exception as e: + pass + # log(f'Warning: {resource_dir_ini_file} not found' + f", default directory to be used. ") + + + LUT_DICT = {} + for dir in default_lut_dir: + LUT_DICT.update(collect_files(root_dir=dir, suffixes= ('.cube'), default_dir=default_lut_dir[0] )) # 后缀要小写 + LUT_LIST = list(LUT_DICT.keys()) + + FONT_DICT = {} + for dir in default_font_dir: + FONT_DICT.update(collect_files(root_dir=dir, suffixes=('.ttf', '.otf'), default_dir=default_font_dir[0])) # 后缀要小写 + FONT_LIST = list(FONT_DICT.keys()) + + return (LUT_DICT, FONT_DICT) + +# 规范bbox,保证x1 < x2, y1 < y2, 并返回int +def standardize_bbox(bboxes:list) -> list: + ret_bboxes = [] + for bbox in bboxes: + x1 = int(min(bbox[0], bbox[2])) + y1 = int(min(bbox[1], bbox[3])) + x2 = int(max(bbox[0], bbox[2])) + y2 = int(max(bbox[1], bbox[3])) + ret_bboxes.append([x1, y1, x2, y2]) + return ret_bboxes + +def draw_bounding_boxes(image: Image, bboxes: list, color: str = "#FF0000", line_width: int = 5) -> Image: + """ + Draw bounding boxes on the image using the coordinates provided in the bboxes dictionary. + """ + + (_, FONT_DICT) = get_resource_dir() + + font_size = 25 + font = ImageFont.truetype(list(FONT_DICT.items())[0][1], font_size) + + if len(bboxes) > 0: + draw = ImageDraw.Draw(image) + width, height = image.size + if line_width < 0: # auto line width + line_width = (image.width + image.height) // 1000 + + for index, box in enumerate(bboxes): + random_color = generate_random_color() + if color != "random": + random_color = color + xmin = min(box[0], box[2]) + xmax = max(box[0], box[2]) + ymin = min(box[1], box[3]) + ymax = max(box[1], box[3]) + draw.rectangle([xmin, ymin, xmax, ymax], outline=random_color, width=line_width) + draw.text((xmin, ymin - font_size*1.2), str(index), font=font, fill=random_color) + + return image + +def draw_bbox(image: Image, bbox: tuple, color: str = "#FF0000", line_width: int = 5, title: str = "", font_size: int = 10) -> Image: + """ + Draw bounding boxes on the image using the coordinates provided in the bboxes dictionary. + """ + + (_, FONT_DICT) = get_resource_dir() + + font = ImageFont.truetype(list(FONT_DICT.items())[0][1], font_size) + + draw = ImageDraw.Draw(image) + width, height = image.size + if line_width < 0: # auto line width + line_width = (image.width + image.height) // 1000 + + random_color = generate_random_color() + if color != "random": + random_color = color + xmin = min(bbox[0], bbox[2]) + xmax = max(bbox[0], bbox[2]) + ymin = min(bbox[1], bbox[3]) + ymax = max(bbox[1], bbox[3]) + draw.rectangle([xmin, ymin, xmax, ymax], outline=random_color, width=line_width) + if title != "": + draw.text((xmin, ymin - font_size*1.2), title, font=font, fill=random_color) + + return image + + + +'''Constant''' + +chop_mode = [ + 'normal', + 'multply', + 'screen', + 'add', + 'subtract', + 'difference', + 'darker', + 'lighter', + 'color_burn', + 'color_dodge', + 'linear_burn', + 'linear_dodge', + 'overlay', + 'soft_light', + 'hard_light', + 'vivid_light', + 'pin_light', + 'linear_light', + 'hard_mix' + ] + +# Blend Mode from Virtuoso Pack https://github.com/chrisfreilich/virtuoso-nodes +chop_mode_v2 = list(BLEND_MODES.keys()) + +gemini_generate_config = { + "temperature": 0, + "top_p": 1, + "top_k": 1, + "max_output_tokens": 400 +} + +gemini_safety_settings = [ + { + "category": "HARM_CATEGORY_HARASSMENT", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_HATE_SPEECH", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "threshold": "BLOCK_NONE" + }, + { + "category": "HARM_CATEGORY_DANGEROUS_CONTENT", + "threshold": "BLOCK_NONE" + } +] + +minicpm_llama3_v25_prompts = """ + # MISSION + You are an imagine generator for a slide deck tool. You will be given the text or description of a slide and you'll generate a few image descriptions that will be fed to an AI image generator. It will need to have a particular format (seen below). You will also be given some examples below. Think metaphorically and symbolically. + + # FORMAT + The format should follow this general pattern: + +
, , , , , + + It's not strictly required, as you'll see below, you can pick and choose various aspects, but this is the general order of operations + + # EXAMPLES + + a Shakespeare stage play, yellow mist, atmospheric, set design by Michel Crête, Aerial acrobatics design by André Simard, hyperrealistic, 4K, Octane render, unreal engine + + The Moon Knight dissolving into swirling sand, volumetric dust, cinematic lighting, close up portrait + + ethereal Bohemian Waxwing bird, Bombycilla garrulus :: intricate details, ornate, detailed illustration, octane render :: Johanna Rupprecht style, William Morris style :: trending on artstation + + steampunk cat, octane render, hyper realistic + + Hyper detailed movie still that fuses the iconic tea party scene from Alice in Wonderland showing the hatter and an adult alice. a wooden table is filled with teacups and cannabis plants. The scene is surrounded by flying weed. Some playcards flying around in the air. Captured with a Hasselblad medium format camera + + venice in a carnival picture 3, in the style of fantastical compositions, colorful, eye-catching compositions, symmetrical arrangements, navy and aquamarine, distinctive noses, gothic references, spiral group –style expressive + + Beautiful and terrifying Egyptian mummy, flirting and vamping with the viewer, rotting and decaying climbing out of a sarcophagus lunging at the viewer, symmetrical full body Portrait photo, elegant, highly detailed, soft ambient lighting, rule of thirds, professional photo HD Photography, film, sony, portray, kodak Polaroid 3200dpi scan medium format film Portra 800, vibrantly colored portrait photo by Joel – Peter Witkin + Diane Arbus + Rhiannon + Mike Tang, fashion shoot + + A grandmotherly Fate sits on a cozy cosmic throne knitting with mirrored threads of time, the solar system spins like clockwork behind her as she knits the futures of people together like an endless collage of destiny, maximilism, cinematic quality, sharp – focus, intricate details + + A cloud with several airplanes flying around on top, in the style of detailed fantasy art, nightcore, quiet moments captured in paint, radiant clusters, i cant believe how beautiful this is, detailed character design, dark cyan and light crimson + + An incredibly detailed close up macro beauty photo of an Asian model, hands holding a bouquet of pink roses, surrounded by scary crows from hell. Shot on a Hasselblad medium format camera with a 100mm lens. Unmistakable to a photograph. Cinematic lighting. Photographed by Tim Walker, trending on 500px + + Game-Art | An island with different geographical properties and multiple small cities floating in space ::10 Island | Floating island in space – waterfalls over the edge of the island falling into space – island fragments floating around the edge of the island, Mountain Ranges – Deserts – Snowy Landscapes – Small Villages – one larger city ::8 Environment | Galaxy – in deep space – other universes can be seen in the distance ::2 Style | Unreal Engine 5 – 8K UHD – Highly Detailed – Game-Art + + a warrior sitting on a giant creature and riding it in the water, with wings spread wide in the water, camera positioned just above the water to capture this beautiful scene, surface showing intricate details of the creature’s scales, fins, and wings, majesty, Hero rides on the creature in the water, digitally enhanced, enhanced graphics, straight, sharp focus, bright lighting, closeup, cinematic, Bronze, Azure, blue, ultra highly detailed, 18k, sharp focus, bright photo with rich colors, full coverage of a scene, straight view shot + + A real photographic landscape painting with incomparable reality,Super wide,Ominous sky,Sailing boat,Wooden boat,Lotus,Huge waves,Starry night,Harry potter,Volumetric lighting,Clearing,Realistic,James gurney,artstation + + Tiger monster with monstera plant over him, back alley in Bangkok, art by Otomo Katsuhiro crossover Yayoi Kusama and Hayao Miyazaki + + An elderly Italian woman with wrinkles, sitting in a local cafe filled with plants and wood decorations, looking out the window, wearing a white top with light purple linen blazer, natural afternoon light shining through the window + + # OUTPUT + Your output should just be an plain list of descriptions. No numbers, no extraneous labels, no hyphens. + Create only one prompt. + """ diff --git a/docs/hel-892/storyboard-reference/layer__py__purge_vram.py b/docs/hel-892/storyboard-reference/layer__py__purge_vram.py new file mode 100644 index 00000000..2777233e --- /dev/null +++ b/docs/hel-892/storyboard-reference/layer__py__purge_vram.py @@ -0,0 +1,80 @@ +import torch.cuda +import gc +import comfy.model_management +from .imagefunc import AnyType, clear_memory + +any = AnyType("*") + +class PurgeVRAM: + + def __init__(self): + pass + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "anything": (any, {}), + "purge_cache": ("BOOLEAN", {"default": True}), + "purge_models": ("BOOLEAN", {"default": True}), + }, + "optional": { + } + } + + RETURN_TYPES = () + FUNCTION = "purge_vram" + CATEGORY = '😺dzNodes/LayerUtility/SystemIO' + OUTPUT_NODE = True + + def purge_vram(self, anything, purge_cache, purge_models): + import torch.cuda + import gc + import comfy.model_management + clear_memory() + if purge_models: + comfy.model_management.unload_all_models() + comfy.model_management.soft_empty_cache() + return (None,) + +class PurgeVRAM_V2: + + def __init__(self): + self.NODE_NAME = 'PurgeVRAM V2' + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "anything": (any, {}), + "purge_cache": ("BOOLEAN", {"default": True}), + "purge_models": ("BOOLEAN", {"default": True}), + }, + "optional": { + } + } + + + RETURN_TYPES = (any,) + RETURN_NAMES = ("any",) + FUNCTION = "purge_vram_v2" + CATEGORY = '😺dzNodes/LayerUtility/SystemIO' + OUTPUT_NODE = True + + def purge_vram_v2(self, anything, purge_cache, purge_models): + clear_memory() + if purge_models: + comfy.model_management.unload_all_models() + comfy.model_management.soft_empty_cache() + return (anything,) + + +NODE_CLASS_MAPPINGS = { + "LayerUtility: PurgeVRAM": PurgeVRAM, + "LayerUtility: PurgeVRAM V2": PurgeVRAM_V2, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "LayerUtility: PurgeVRAM": "LayerUtility: Purge VRAM", + "LayerUtility: PurgeVRAM V2": "LayerUtility: Purge VRAM V2", +} \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/math-tree.json b/docs/hel-892/storyboard-reference/math-tree.json new file mode 100644 index 00000000..f62bdafc --- /dev/null +++ b/docs/hel-892/storyboard-reference/math-tree.json @@ -0,0 +1 @@ +{"sha":"f2838ed5e59de4d73cde5c98354b87a8d3200190","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/f2838ed5e59de4d73cde5c98354b87a8d3200190","tree":[{"path":".github","mode":"040000","type":"tree","sha":"9b24cd90f48ff54004182ea509cf9eb0acc270b4","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/9b24cd90f48ff54004182ea509cf9eb0acc270b4"},{"path":".github/workflows","mode":"040000","type":"tree","sha":"a479d409c576ef9a903b83fee1af40aa51a5e826","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/a479d409c576ef9a903b83fee1af40aa51a5e826"},{"path":".github/workflows/publish.yml","mode":"100644","type":"blob","sha":"c9c70bf7f47b9e294ac2436b8fe2a2b8878bc106","size":652,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/c9c70bf7f47b9e294ac2436b8fe2a2b8878bc106"},{"path":".gitignore","mode":"100644","type":"blob","sha":"8d303a4effdf5bf2a332042b2cb31a77589ab333","size":115,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/8d303a4effdf5bf2a332042b2cb31a77589ab333"},{"path":"LICENSE","mode":"100644","type":"blob","sha":"acf31806a2507192169eca2137ea9ceb7685f51c","size":1069,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/acf31806a2507192169eca2137ea9ceb7685f51c"},{"path":"README.md","mode":"100644","type":"blob","sha":"690bfe1c46018bdd63385abf77a58d226388623f","size":10422,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/690bfe1c46018bdd63385abf77a58d226388623f"},{"path":"__init__.py","mode":"100644","type":"blob","sha":"ae43dd2090ce782074bf72f2b7f49ad28dff1a5c","size":1004,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/ae43dd2090ce782074bf72f2b7f49ad28dff1a5c"},{"path":"py","mode":"040000","type":"tree","sha":"9a89997c5372df05fdb3a082eac02b4d6d5486bc","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/9a89997c5372df05fdb3a082eac02b4d6d5486bc"},{"path":"py/autocomplete.py","mode":"100644","type":"blob","sha":"8ac6a0524823d13849b6cbe02efedc7bffea8f38","size":881,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/8ac6a0524823d13849b6cbe02efedc7bffea8f38"},{"path":"py/better_combos.py","mode":"100644","type":"blob","sha":"d31043b0afdb8943409f3d97adbdde2db9dc38ee","size":5204,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/d31043b0afdb8943409f3d97adbdde2db9dc38ee"},{"path":"py/constrain_image.py","mode":"100644","type":"blob","sha":"1c768893c5ed5c1cb1247bca77414dc8762d3fde","size":2888,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/1c768893c5ed5c1cb1247bca77414dc8762d3fde"},{"path":"py/constrain_image_for_video.py","mode":"100644","type":"blob","sha":"91c0c502b8d8f6202d96a26b045e393b4552fc8e","size":3025,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/91c0c502b8d8f6202d96a26b045e393b4552fc8e"},{"path":"py/math_expression.py","mode":"100644","type":"blob","sha":"4a41655b6876a077338040b0099c4d4e8c9dbcd2","size":8623,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/4a41655b6876a077338040b0099c4d4e8c9dbcd2"},{"path":"py/model_info.py","mode":"100644","type":"blob","sha":"b360bafb35fdfc25dd94902076fab6baa39ee23c","size":3450,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/b360bafb35fdfc25dd94902076fab6baa39ee23c"},{"path":"py/play_sound.py","mode":"100644","type":"blob","sha":"65f599d2680553a20031d81d1fdf161d73edefef","size":1006,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/65f599d2680553a20031d81d1fdf161d73edefef"},{"path":"py/repeater.py","mode":"100644","type":"blob","sha":"1d83c67e2132b9db708ef087ad788d22c58c80c2","size":1335,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/1d83c67e2132b9db708ef087ad788d22c58c80c2"},{"path":"py/reroute_primitive.py","mode":"100644","type":"blob","sha":"c22a7d1ef00eddfbde6185e702b6c3462521ccda","size":1265,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/c22a7d1ef00eddfbde6185e702b6c3462521ccda"},{"path":"py/show_text.py","mode":"100644","type":"blob","sha":"5a013a5bc7a82e29f38f35ff85dab827ba42a254","size":1453,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/5a013a5bc7a82e29f38f35ff85dab827ba42a254"},{"path":"py/string_function.py","mode":"100644","type":"blob","sha":"f502ba31f52720f019c9f1d155d17a9cb9e335f9","size":1599,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/f502ba31f52720f019c9f1d155d17a9cb9e335f9"},{"path":"py/system_notification.py","mode":"100644","type":"blob","sha":"d5a52c14773ff86bbb3b29c6405a05238d8b46eb","size":1011,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/d5a52c14773ff86bbb3b29c6405a05238d8b46eb"},{"path":"py/text_files.py","mode":"100644","type":"blob","sha":"42de6d71a375b7e5169f868f789c254b4f6c2cd9","size":6349,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/42de6d71a375b7e5169f868f789c254b4f6c2cd9"},{"path":"py/workflows.py","mode":"100644","type":"blob","sha":"233e8c84ce490a1fd2a51e603b9836d869dc0262","size":2163,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/233e8c84ce490a1fd2a51e603b9836d869dc0262"},{"path":"pyproject.toml","mode":"100644","type":"blob","sha":"b34f8cfc4a4af33575586c2c11313bdd34d1dfee","size":358,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/b34f8cfc4a4af33575586c2c11313bdd34d1dfee"},{"path":"pysssss.default.json","mode":"100644","type":"blob","sha":"6ca06420135d024f925a0d70d5dd0328c69b271e","size":48,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/6ca06420135d024f925a0d70d5dd0328c69b271e"},{"path":"pysssss.example.json","mode":"100644","type":"blob","sha":"251e3c720067fc06b4458db51cb8c12182c05dee","size":107,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/251e3c720067fc06b4458db51cb8c12182c05dee"},{"path":"pysssss.py","mode":"100644","type":"blob","sha":"b1024f5a220779239bdadc56aaf7b9431cfa77cc","size":8398,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/b1024f5a220779239bdadc56aaf7b9431cfa77cc"},{"path":"user","mode":"040000","type":"tree","sha":"1aeb42fdc07e19043ee702ed700abdd42f70a0d5","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/1aeb42fdc07e19043ee702ed700abdd42f70a0d5"},{"path":"user/text_file_dirs.json","mode":"100644","type":"blob","sha":"15adc2255e0109be7b860d591f54187520c673aa","size":90,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/15adc2255e0109be7b860d591f54187520c673aa"},{"path":"web","mode":"040000","type":"tree","sha":"a6bdea2814c6cd06a7c9bbe06e0747c194588757","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/a6bdea2814c6cd06a7c9bbe06e0747c194588757"},{"path":"web/js","mode":"040000","type":"tree","sha":"6c9b0eb58dcc5775e49c8a3d347b8c9d90a2b614","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/6c9b0eb58dcc5775e49c8a3d347b8c9d90a2b614"},{"path":"web/js/assets","mode":"040000","type":"tree","sha":"4e5705451499bdfe6ab1c4d4d1689dda11ab2398","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/4e5705451499bdfe6ab1c4d4d1689dda11ab2398"},{"path":"web/js/assets/canvas2svg.js","mode":"100644","type":"blob","sha":"03dc3923759ccbe8cf70eaab387b792cc0ba32ca","size":44131,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/03dc3923759ccbe8cf70eaab387b792cc0ba32ca"},{"path":"web/js/assets/favicon-active.ico","mode":"100644","type":"blob","sha":"64045ab56e87879adb039b1fdb0bbbe0462143e7","size":1025,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/64045ab56e87879adb039b1fdb0bbbe0462143e7"},{"path":"web/js/assets/favicon.ico","mode":"100644","type":"blob","sha":"08df2481551bb6903735fa69d658b5abfb0a5ae1","size":1006,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/08df2481551bb6903735fa69d658b5abfb0a5ae1"},{"path":"web/js/assets/no-image.png","mode":"100644","type":"blob","sha":"d0b58b2c9d3ad82a2a949933648f8691ff36ba84","size":2705,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/d0b58b2c9d3ad82a2a949933648f8691ff36ba84"},{"path":"web/js/assets/notify.mp3","mode":"100644","type":"blob","sha":"5e3fdabbb12142dfa75702a0b0e0ca5e5425a7dd","size":74396,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/5e3fdabbb12142dfa75702a0b0e0ca5e5425a7dd"},{"path":"web/js/autocompleter.js","mode":"100644","type":"blob","sha":"d0fb2ecae710d291d0d42845a6e0395f61c74e4d","size":15618,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/d0fb2ecae710d291d0d42845a6e0395f61c74e4d"},{"path":"web/js/betterCombos.js","mode":"100644","type":"blob","sha":"cbf0a0740471035dc1d1d4f14101c4888dd91c2a","size":16115,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/cbf0a0740471035dc1d1d4f14101c4888dd91c2a"},{"path":"web/js/common","mode":"040000","type":"tree","sha":"4c6853e87dd1e95758f3dbe60945c9fa8f442983","url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/trees/4c6853e87dd1e95758f3dbe60945c9fa8f442983"},{"path":"web/js/common/autocomplete.css","mode":"100644","type":"blob","sha":"1f371d6203a94202c48c851a3321c7e423de477b","size":1200,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/1f371d6203a94202c48c851a3321c7e423de477b"},{"path":"web/js/common/autocomplete.js","mode":"100644","type":"blob","sha":"ac5fb1d006bad80c67870655ccfc82a120ddc4a7","size":21064,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/ac5fb1d006bad80c67870655ccfc82a120ddc4a7"},{"path":"web/js/common/binding.js","mode":"100644","type":"blob","sha":"7533e7e5e93beee798123a8ed84d36a50d2a4702","size":5722,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/7533e7e5e93beee798123a8ed84d36a50d2a4702"},{"path":"web/js/common/lightbox.css","mode":"100644","type":"blob","sha":"c4307fd0a201f6ae396e0cb9e2b5e00dba8fc285","size":1748,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/c4307fd0a201f6ae396e0cb9e2b5e00dba8fc285"},{"path":"web/js/common/lightbox.js","mode":"100644","type":"blob","sha":"5c9079067f6fd26ab8e392e55add76d52a885858","size":3310,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/5c9079067f6fd26ab8e392e55add76d52a885858"},{"path":"web/js/common/modelInfoDialog.css","mode":"100644","type":"blob","sha":"a5b9f627fc348ca17db78e5b28bc43a86e46560a","size":2015,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/a5b9f627fc348ca17db78e5b28bc43a86e46560a"},{"path":"web/js/common/modelInfoDialog.js","mode":"100644","type":"blob","sha":"032767da17bfc12f60ac8c6f926d8366a3b436e6","size":8849,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/032767da17bfc12f60ac8c6f926d8366a3b436e6"},{"path":"web/js/common/spinner.css","mode":"100644","type":"blob","sha":"cfb7a0d961de791e721f5351476a0d014285736e","size":690,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/cfb7a0d961de791e721f5351476a0d014285736e"},{"path":"web/js/common/spinner.js","mode":"100644","type":"blob","sha":"407599017aab85cddf6edab18afe91c3013c3cf0","size":290,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/407599017aab85cddf6edab18afe91c3013c3cf0"},{"path":"web/js/common/utils.js","mode":"100644","type":"blob","sha":"cd7539d449a2ac85672fb36da4be725f352b86f8","size":649,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/cd7539d449a2ac85672fb36da4be725f352b86f8"},{"path":"web/js/contextMenuHook.js","mode":"100644","type":"blob","sha":"0fd35b41a4a4f6b7110c417d76235e07b22e7ce4","size":2596,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/0fd35b41a4a4f6b7110c417d76235e07b22e7ce4"},{"path":"web/js/customColors.js","mode":"100644","type":"blob","sha":"2b0fefca7aa86b48d4e81126a6549e4b5fe16505","size":2929,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/2b0fefca7aa86b48d4e81126a6549e4b5fe16505"},{"path":"web/js/faviconStatus.js","mode":"100644","type":"blob","sha":"3dcd196bcbc83082144faef0d247ef5eac3d668c","size":1559,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/3dcd196bcbc83082144faef0d247ef5eac3d668c"},{"path":"web/js/graphArrange.js","mode":"100644","type":"blob","sha":"8f25e241a2b91a01ca95a376385bdbe572994752","size":2890,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/8f25e241a2b91a01ca95a376385bdbe572994752"},{"path":"web/js/imageFeed.js","mode":"100644","type":"blob","sha":"4afdc066b023a43dccaf91884c8910b1fc470961","size":16534,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/4afdc066b023a43dccaf91884c8910b1fc470961"},{"path":"web/js/kSamplerAdvDenoise.js","mode":"100644","type":"blob","sha":"7b92d4f1d6596a6d9679d3ef4c7dffe9ea297327","size":1500,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/7b92d4f1d6596a6d9679d3ef4c7dffe9ea297327"},{"path":"web/js/linkRenderMode.js","mode":"100644","type":"blob","sha":"010de6ee1085e3fbb4e5b3d3a381e38e261b53c7","size":1364,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/010de6ee1085e3fbb4e5b3d3a381e38e261b53c7"},{"path":"web/js/mathExpression.js","mode":"100644","type":"blob","sha":"d0dde50ec2fa00a556b56baa17ec2be340035ef3","size":1320,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/d0dde50ec2fa00a556b56baa17ec2be340035ef3"},{"path":"web/js/middleClickAddDefaultNode.js","mode":"100644","type":"blob","sha":"43f944f2835f56357b7701c2ef987261ceff9a8b","size":1192,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/43f944f2835f56357b7701c2ef987261ceff9a8b"},{"path":"web/js/modelInfo.js","mode":"100644","type":"blob","sha":"b5db20a113fdb8f75b820306985fbf743e5f6bcc","size":10149,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/b5db20a113fdb8f75b820306985fbf743e5f6bcc"},{"path":"web/js/nodeFinder.js","mode":"100644","type":"blob","sha":"d3727724b4ad09454aa77736115d81d6426be9ef","size":2059,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/d3727724b4ad09454aa77736115d81d6426be9ef"},{"path":"web/js/playSound.js","mode":"100644","type":"blob","sha":"de71058989079786807ad4b66ca6853c4b0b0ac7","size":959,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/de71058989079786807ad4b66ca6853c4b0b0ac7"},{"path":"web/js/presetText.js","mode":"100644","type":"blob","sha":"472f11bef9caa382703f6144c32d48c647b2443d","size":7597,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/472f11bef9caa382703f6144c32d48c647b2443d"},{"path":"web/js/quickNodes.js","mode":"100644","type":"blob","sha":"a52581b32ed9cc6af01f016774518d17693b2132","size":5773,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/a52581b32ed9cc6af01f016774518d17693b2132"},{"path":"web/js/repeater.js","mode":"100644","type":"blob","sha":"23432c4d4fa89f899312a7fa4bd83a04c635a6b5","size":3431,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/23432c4d4fa89f899312a7fa4bd83a04c635a6b5"},{"path":"web/js/reroutePrimitive.js","mode":"100644","type":"blob","sha":"7b934d717073b3b4dc210a48356580c615802375","size":10576,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/7b934d717073b3b4dc210a48356580c615802375"},{"path":"web/js/showImageOnMenu.js","mode":"100644","type":"blob","sha":"4fed9de92e333270f1c2066e7667e34fd40e539b","size":1870,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/4fed9de92e333270f1c2066e7667e34fd40e539b"},{"path":"web/js/showText.js","mode":"100644","type":"blob","sha":"464fd404632397e26c2af1d2297970da6c726920","size":2555,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/464fd404632397e26c2af1d2297970da6c726920"},{"path":"web/js/snapToGrid.js","mode":"100644","type":"blob","sha":"07d5aa8c7bec97e2e14a8470fc8df2e82c14c39d","size":2139,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/07d5aa8c7bec97e2e14a8470fc8df2e82c14c39d"},{"path":"web/js/snapToGridGuide.js","mode":"100644","type":"blob","sha":"54a8a0c70b2705620be0c63c2cecdb3ea032420f","size":4873,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/54a8a0c70b2705620be0c63c2cecdb3ea032420f"},{"path":"web/js/stringFunction.js","mode":"100644","type":"blob","sha":"cc150dff04a2e94b9bc768f6331964c13a96ddbe","size":965,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/cc150dff04a2e94b9bc768f6331964c13a96ddbe"},{"path":"web/js/swapResolution.js","mode":"100644","type":"blob","sha":"40f6dcc851780077c79e7e142fd0f97104e85a09","size":872,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/40f6dcc851780077c79e7e142fd0f97104e85a09"},{"path":"web/js/systemNotification.js","mode":"100644","type":"blob","sha":"803b8c90629f6722efd090e0bf5839e395c4402b","size":1479,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/803b8c90629f6722efd090e0bf5839e395c4402b"},{"path":"web/js/useNumberInputPrompt.js","mode":"100644","type":"blob","sha":"a92aa51095bc474b3cf80697aa238ad8814b4c3d","size":922,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/a92aa51095bc474b3cf80697aa238ad8814b4c3d"},{"path":"web/js/widgetDefaults.js","mode":"100644","type":"blob","sha":"859749d16fda455bcdfb4a6fba89a7340c839183","size":7308,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/859749d16fda455bcdfb4a6fba89a7340c839183"},{"path":"web/js/workflowImage.js","mode":"100644","type":"blob","sha":"37c3ad06c6272c1a8b1cab264515285412cec0d2","size":16605,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/37c3ad06c6272c1a8b1cab264515285412cec0d2"},{"path":"web/js/workflows.js","mode":"100644","type":"blob","sha":"0225260ae7cc6b420c272ab3f54e389910a93815","size":8881,"url":"https://api.github.com/repos/pythongosssss/ComfyUI-Custom-Scripts/git/blobs/0225260ae7cc6b420c272ab3f54e389910a93815"}],"truncated":false} \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/math__LICENSE b/docs/hel-892/storyboard-reference/math__LICENSE new file mode 100644 index 00000000..acf31806 --- /dev/null +++ b/docs/hel-892/storyboard-reference/math__LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 pythongosssss + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/docs/hel-892/storyboard-reference/math____init__.py b/docs/hel-892/storyboard-reference/math____init__.py new file mode 100644 index 00000000..ae43dd20 --- /dev/null +++ b/docs/hel-892/storyboard-reference/math____init__.py @@ -0,0 +1,25 @@ +import importlib.util +import glob +import os +import sys +from .pysssss import init, get_ext_dir + +NODE_CLASS_MAPPINGS = {} +NODE_DISPLAY_NAME_MAPPINGS = {} + +if init(): + py = get_ext_dir("py") + files = glob.glob(os.path.join(py, "*.py"), recursive=False) + for file in files: + name = os.path.splitext(file)[0] + spec = importlib.util.spec_from_file_location(name, file) + module = importlib.util.module_from_spec(spec) + sys.modules[name] = module + spec.loader.exec_module(module) + if hasattr(module, "NODE_CLASS_MAPPINGS") and getattr(module, "NODE_CLASS_MAPPINGS") is not None: + NODE_CLASS_MAPPINGS.update(module.NODE_CLASS_MAPPINGS) + if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS") and getattr(module, "NODE_DISPLAY_NAME_MAPPINGS") is not None: + NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS) + +WEB_DIRECTORY = "./web" +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] diff --git a/docs/hel-892/storyboard-reference/math__py__math_expression.py b/docs/hel-892/storyboard-reference/math__py__math_expression.py new file mode 100644 index 00000000..4a41655b --- /dev/null +++ b/docs/hel-892/storyboard-reference/math__py__math_expression.py @@ -0,0 +1,252 @@ +import ast +import math +import random +import operator as op + +# Hack: string type that is always equal in not equal comparisons +class AnyType(str): + def __ne__(self, __value: object) -> bool: + return False + + +# Our any instance wants to be a wildcard string +any = AnyType("*") + +operators = { + ast.Add: op.add, + ast.Sub: op.sub, + ast.Mult: op.mul, + ast.Div: op.truediv, + ast.FloorDiv: op.floordiv, + ast.Pow: op.pow, + ast.BitXor: op.xor, + ast.USub: op.neg, + ast.Mod: op.mod, + ast.BitAnd: op.and_, + ast.BitOr: op.or_, + ast.Invert: op.invert, + ast.And: lambda a, b: 1 if a and b else 0, + ast.Or: lambda a, b: 1 if a or b else 0, + ast.Not: lambda a: 0 if a else 1, + ast.RShift: op.rshift, + ast.LShift: op.lshift +} + +# TODO: restructure args to provide more info, generate hint based on args to save duplication +functions = { + "round": { + "args": (1, 2), + "call": lambda a, b = None: round(a, b), + "hint": "number, dp? = 0" + }, + "ceil": { + "args": (1, 1), + "call": lambda a: math.ceil(a), + "hint": "number" + }, + "floor": { + "args": (1, 1), + "call": lambda a: math.floor(a), + "hint": "number" + }, + "min": { + "args": (2, None), + "call": lambda *args: min(*args), + "hint": "...numbers" + }, + "max": { + "args": (2, None), + "call": lambda *args: max(*args), + "hint": "...numbers" + }, + "randomint": { + "args": (2, 2), + "call": lambda a, b: random.randint(a, b), + "hint": "min, max" + }, + "randomchoice": { + "args": (2, None), + "call": lambda *args: random.choice(args), + "hint": "...numbers" + }, + "sqrt": { + "args": (1, 1), + "call": lambda a: math.sqrt(a), + "hint": "number" + }, + "int": { + "args": (1, 1), + "call": lambda a = None: int(a), + "hint": "number" + }, + "iif": { + "args": (3, 3), + "call": lambda a, b, c = None: b if a else c, + "hint": "value, truepart, falsepart" + }, +} + +autocompleteWords = list({ + "text": x, + "value": f"{x}()", + "showValue": False, + "hint": f"{functions[x]['hint']}", + "caretOffset": -1 +} for x in functions.keys()) + + +class MathExpression: + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "expression": ("STRING", {"multiline": True, "dynamicPrompts": False, "pysssss.autocomplete": { + "words": autocompleteWords, + "separator": "" + }}), + }, + "optional": { + "a": (any, ), + "b": (any,), + "c": (any, ), + }, + "hidden": {"extra_pnginfo": "EXTRA_PNGINFO", + "prompt": "PROMPT"}, + } + + RETURN_TYPES = ("INT", "FLOAT", ) + FUNCTION = "evaluate" + CATEGORY = "utils" + OUTPUT_NODE = True + + @classmethod + def IS_CHANGED(s, expression, **kwargs): + if "random" in expression: + return float("nan") + return expression + + def get_widget_value(self, extra_pnginfo, prompt, node_name, widget_name): + workflow = extra_pnginfo["workflow"] if "workflow" in extra_pnginfo else { "nodes": [] } + node_id = None + for node in workflow["nodes"]: + name = node["type"] + if "properties" in node: + if "Node name for S&R" in node["properties"]: + name = node["properties"]["Node name for S&R"] + if name == node_name: + node_id = node["id"] + break + if "title" in node: + name = node["title"] + if name == node_name: + node_id = node["id"] + break + if node_id is not None: + values = prompt[str(node_id)] + if "inputs" in values: + if widget_name in values["inputs"]: + value = values["inputs"][widget_name] + if isinstance(value, list): + raise ValueError("Converted widgets are not supported via named reference, use the inputs instead.") + return value + raise NameError(f"Widget not found: {node_name}.{widget_name}") + raise NameError(f"Node not found: {node_name}.{widget_name}") + + def get_size(self, target, property): + if isinstance(target, dict) and "samples" in target: + # Latent + if property == "width": + return target["samples"].shape[3] * 8 + return target["samples"].shape[2] * 8 + else: + # Image + if property == "width": + return target.shape[2] + return target.shape[1] + + def evaluate(self, expression, prompt, extra_pnginfo={}, a=None, b=None, c=None): + expression = expression.replace('\n', ' ').replace('\r', '') + node = ast.parse(expression, mode='eval').body + + lookup = {"a": a, "b": b, "c": c} + + def eval_op(node, l, r): + l = eval_expr(l) + r = eval_expr(r) + l = l if isinstance(l, int) else float(l) + r = r if isinstance(r, int) else float(r) + return operators[type(node.op)](l, r) + + def eval_expr(node): + if isinstance(node, ast.Constant) or isinstance(node, ast.Num): + return node.n + elif isinstance(node, ast.BinOp): + return eval_op(node, node.left, node.right) + elif isinstance(node, ast.BoolOp): + return eval_op(node, node.values[0], node.values[1]) + elif isinstance(node, ast.UnaryOp): + return operators[type(node.op)](eval_expr(node.operand)) + elif isinstance(node, ast.Attribute): + if node.value.id in lookup: + if node.attr == "width" or node.attr == "height": + return self.get_size(lookup[node.value.id], node.attr) + + return self.get_widget_value(extra_pnginfo, prompt, node.value.id, node.attr) + elif isinstance(node, ast.Name): + if node.id in lookup: + val = lookup[node.id] + if isinstance(val, (int, float, complex)): + return val + else: + raise TypeError( + f"Compex types (LATENT/IMAGE) need to reference their width/height, e.g. {node.id}.width") + raise NameError(f"Name not found: {node.id}") + elif isinstance(node, ast.Call): + if node.func.id in functions: + fn = functions[node.func.id] + l = len(node.args) + if l < fn["args"][0] or (fn["args"][1] is not None and l > fn["args"][1]): + if fn["args"][1] is None: + toErr = " or more" + else: + toErr = f" to {fn['args'][1]}" + raise SyntaxError( + f"Invalid function call: {node.func.id} requires {fn['args'][0]}{toErr} arguments") + args = [] + for arg in node.args: + args.append(eval_expr(arg)) + return fn["call"](*args) + raise NameError(f"Invalid function call: {node.func.id}") + elif isinstance(node, ast.Compare): + l = eval_expr(node.left) + r = eval_expr(node.comparators[0]) + if isinstance(node.ops[0], ast.Eq): + return 1 if l == r else 0 + if isinstance(node.ops[0], ast.NotEq): + return 1 if l != r else 0 + if isinstance(node.ops[0], ast.Gt): + return 1 if l > r else 0 + if isinstance(node.ops[0], ast.GtE): + return 1 if l >= r else 0 + if isinstance(node.ops[0], ast.Lt): + return 1 if l < r else 0 + if isinstance(node.ops[0], ast.LtE): + return 1 if l <= r else 0 + raise NotImplementedError( + "Operator " + node.ops[0].__class__.__name__ + " not supported.") + else: + raise TypeError(node) + + r = eval_expr(node) + return {"ui": {"value": [r]}, "result": (int(r), float(r),)} + + +NODE_CLASS_MAPPINGS = { + "MathExpression|pysssss": MathExpression, +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "MathExpression|pysssss": "Math Expression 🐍", +} + diff --git a/docs/hel-892/storyboard-reference/mtb-package-index.json b/docs/hel-892/storyboard-reference/mtb-package-index.json new file mode 100644 index 00000000..b00d1d2c --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb-package-index.json @@ -0,0 +1,370 @@ +{ + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "sha256": "f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "members": [ + "CHANGELOG.md", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "INSTALL.md", + "LICENSE", + "README.md", + "__init__.py", + "biome.json", + "cliff.toml", + "data/font.ttf", + "endpoint.py", + "env.nu", + "errors.py", + "examples/01-faceswap.json", + "examples/02-film_interpolation.json", + "examples/03-animation_builder-condition-lerp.json", + "examples/04-animation_builder-deforum.json", + "examples/05-seamless_texture.json", + "examples/06-seamless_equilateral.json", + "examples/08-note-plus.json", + "examples/README.md", + "extern/GFPGAN/CODE_OF_CONDUCT.md", + "extern/GFPGAN/Comparisons.md", + "extern/GFPGAN/FAQ.md", + "extern/GFPGAN/LICENSE", + "extern/GFPGAN/MANIFEST.in", + "extern/GFPGAN/PaperModel.md", + "extern/GFPGAN/README.md", + "extern/GFPGAN/README_CN.md", + "extern/GFPGAN/VERSION", + "extern/GFPGAN/assets/gfpgan_logo.png", + "extern/GFPGAN/cog.yaml", + "extern/GFPGAN/cog_predict.py", + "extern/GFPGAN/gfpgan/__init__.py", + "extern/GFPGAN/gfpgan/archs/__init__.py", + "extern/GFPGAN/gfpgan/archs/arcface_arch.py", + "extern/GFPGAN/gfpgan/archs/gfpgan_bilinear_arch.py", + "extern/GFPGAN/gfpgan/archs/gfpganv1_arch.py", + "extern/GFPGAN/gfpgan/archs/gfpganv1_clean_arch.py", + "extern/GFPGAN/gfpgan/archs/restoreformer_arch.py", + "extern/GFPGAN/gfpgan/archs/stylegan2_bilinear_arch.py", + "extern/GFPGAN/gfpgan/archs/stylegan2_clean_arch.py", + "extern/GFPGAN/gfpgan/data/__init__.py", + "extern/GFPGAN/gfpgan/data/ffhq_degradation_dataset.py", + "extern/GFPGAN/gfpgan/models/__init__.py", + "extern/GFPGAN/gfpgan/models/gfpgan_model.py", + "extern/GFPGAN/gfpgan/train.py", + "extern/GFPGAN/gfpgan/utils.py", + "extern/GFPGAN/gfpgan/weights/README.md", + "extern/GFPGAN/inference_gfpgan.py", + "extern/GFPGAN/options/train_gfpgan_v1.yml", + "extern/GFPGAN/options/train_gfpgan_v1_simple.yml", + "extern/GFPGAN/requirements.txt", + "extern/GFPGAN/scripts/convert_gfpganv_to_clean.py", + "extern/GFPGAN/scripts/parse_landmark.py", + "extern/GFPGAN/setup.cfg", + "extern/GFPGAN/setup.py", + "extern/frame_interpolation/CONTRIBUTING.md", + "extern/frame_interpolation/LICENSE", + "extern/frame_interpolation/README.md", + "extern/frame_interpolation/WINDOWS_INSTALLATION.md", + "extern/frame_interpolation/cog.yaml", + "extern/frame_interpolation/datasets/create_middlebury_tfrecord.py", + "extern/frame_interpolation/datasets/create_ucf101_tfrecord.py", + "extern/frame_interpolation/datasets/create_vimeo90K_tfrecord.py", + "extern/frame_interpolation/datasets/create_xiph_tfrecord.py", + "extern/frame_interpolation/datasets/util.py", + "extern/frame_interpolation/eval/config/middlebury.gin", + "extern/frame_interpolation/eval/config/ucf101.gin", + "extern/frame_interpolation/eval/config/vimeo_90K.gin", + "extern/frame_interpolation/eval/config/xiph_2K.gin", + "extern/frame_interpolation/eval/config/xiph_4K.gin", + "extern/frame_interpolation/eval/eval_cli.py", + "extern/frame_interpolation/eval/interpolator.py", + "extern/frame_interpolation/eval/interpolator_cli.py", + "extern/frame_interpolation/eval/interpolator_test.py", + "extern/frame_interpolation/eval/util.py", + "extern/frame_interpolation/losses/losses.py", + "extern/frame_interpolation/losses/vgg19_loss.py", + "extern/frame_interpolation/models/film_net/feature_extractor.py", + "extern/frame_interpolation/models/film_net/fusion.py", + "extern/frame_interpolation/models/film_net/interpolator.py", + "extern/frame_interpolation/models/film_net/options.py", + "extern/frame_interpolation/models/film_net/pyramid_flow_estimator.py", + "extern/frame_interpolation/models/film_net/util.py", + "extern/frame_interpolation/predict.py", + "extern/frame_interpolation/requirements.txt", + "extern/frame_interpolation/training/augmentation_lib.py", + "extern/frame_interpolation/training/build_saved_model_cli.py", + "extern/frame_interpolation/training/config/film_net-L1.gin", + "extern/frame_interpolation/training/config/film_net-Style.gin", + "extern/frame_interpolation/training/config/film_net-VGG.gin", + "extern/frame_interpolation/training/data_lib.py", + "extern/frame_interpolation/training/eval_lib.py", + "extern/frame_interpolation/training/metrics_lib.py", + "extern/frame_interpolation/training/model_lib.py", + "extern/frame_interpolation/training/train.py", + "extern/frame_interpolation/training/train_lib.py", + "html/js/foldable.js", + "html/js/saveTableData.js", + "html/js/splitPane.js", + "html/js/tabSwitch.js", + "html/style.css", + "install.py", + "log.py", + "node_list.json", + "nodes/__init__.py", + "nodes/animation.py", + "nodes/audio.py", + "nodes/batch.py", + "nodes/conditions.py", + "nodes/constant.py", + "nodes/crop.py", + "nodes/curve.py", + "nodes/debug.py", + "nodes/deep_bump.py", + "nodes/faceenhance.py", + "nodes/faceswap.py", + "nodes/filter.py", + "nodes/generate.py", + "nodes/graph_utils.py", + "nodes/image_interpolation.py", + "nodes/image_processing.py", + "nodes/image_utils.py", + "nodes/io.py", + "nodes/latent_processing.py", + "nodes/ltx.py", + "nodes/mask.py", + "nodes/model.py", + "nodes/number.py", + "nodes/postshot.py", + "nodes/prune.py", + "nodes/qrcode.py", + "nodes/transform.py", + "nodes/video.py", + "nodes/vitmatte.py", + "pyproject.toml", + "pyrightconfig.json", + "requirements.txt", + "scripts/a111_extract.py", + "scripts/comfy_meta.py", + "scripts/download_models.py", + "scripts/get_deps.py", + "scripts/interpolate_frames.py", + "scripts/update_changelog.nu", + "styles.csv", + "types/shared.d.ts", + "types/typedefs.js", + "utils.py", + "web/README.md", + "web/comfy_shared.js", + "web/constant.js", + "web/curve_widget.js", + "web/debug.js", + "web/extern/dom-purify.js", + "web/extern/parse-css.js", + "web/imageFeed.js", + "web/mtb_input_output_sidebar.js", + "web/mtb_sidebar.js", + "web/mtb_ui.js", + "web/mtb_widgets.js", + "web/note_plus.constants.js", + "web/note_plus.js", + "web/notify.js", + "web/numberInput.js", + "web_async/ace/ace.js", + "web_async/ace/ext-beautify.js", + "web_async/ace/ext-code_lens.js", + "web_async/ace/ext-command_bar.js", + "web_async/ace/ext-elastic_tabstops_lite.js", + "web_async/ace/ext-emmet.js", + "web_async/ace/ext-error_marker.js", + "web_async/ace/ext-hardwrap.js", + "web_async/ace/ext-inline_autocomplete.js", + "web_async/ace/ext-keybinding_menu.js", + "web_async/ace/ext-language_tools.js", + "web_async/ace/ext-linking.js", + "web_async/ace/ext-modelist.js", + "web_async/ace/ext-options.js", + "web_async/ace/ext-prompt.js", + "web_async/ace/ext-rtl.js", + "web_async/ace/ext-searchbox.js", + "web_async/ace/ext-settings_menu.js", + "web_async/ace/ext-simple_tokenizer.js", + "web_async/ace/ext-spellcheck.js", + "web_async/ace/ext-split.js", + "web_async/ace/ext-static_highlight.js", + "web_async/ace/ext-statusbar.js", + "web_async/ace/ext-textarea.js", + "web_async/ace/ext-themelist.js", + "web_async/ace/ext-whitespace.js", + "web_async/ace/keybinding-emacs.js", + "web_async/ace/keybinding-sublime.js", + "web_async/ace/keybinding-vim.js", + "web_async/ace/keybinding-vscode.js", + "web_async/ace/mode-css.js", + "web_async/ace/mode-html.js", + "web_async/ace/mode-javascript.js", + "web_async/ace/mode-json.js", + "web_async/ace/mode-json5.js", + "web_async/ace/mode-markdown.js", + "web_async/ace/mode-python.js", + "web_async/ace/mode-svg.js", + "web_async/ace/mode-typescript.js", + "web_async/ace/snippets/css.js", + "web_async/ace/snippets/html.js", + "web_async/ace/snippets/json.js", + "web_async/ace/snippets/json5.js", + "web_async/ace/snippets/markdown.js", + "web_async/ace/snippets/python.js", + "web_async/ace/snippets/typescript.js", + "web_async/ace/theme-ambiance.js", + "web_async/ace/theme-chaos.js", + "web_async/ace/theme-chrome.js", + "web_async/ace/theme-cloud9_day.js", + "web_async/ace/theme-cloud9_night.js", + "web_async/ace/theme-cloud9_night_low_color.js", + "web_async/ace/theme-cloud_editor.js", + "web_async/ace/theme-cloud_editor_dark.js", + "web_async/ace/theme-clouds.js", + "web_async/ace/theme-clouds_midnight.js", + "web_async/ace/theme-cobalt.js", + "web_async/ace/theme-crimson_editor.js", + "web_async/ace/theme-dawn.js", + "web_async/ace/theme-dracula.js", + "web_async/ace/theme-dreamweaver.js", + "web_async/ace/theme-eclipse.js", + "web_async/ace/theme-github.js", + "web_async/ace/theme-github_dark.js", + "web_async/ace/theme-gob.js", + "web_async/ace/theme-gruvbox.js", + "web_async/ace/theme-gruvbox_dark_hard.js", + "web_async/ace/theme-gruvbox_light_hard.js", + "web_async/ace/theme-idle_fingers.js", + "web_async/ace/theme-iplastic.js", + "web_async/ace/theme-katzenmilch.js", + "web_async/ace/theme-kr_theme.js", + "web_async/ace/theme-kuroir.js", + "web_async/ace/theme-merbivore.js", + "web_async/ace/theme-merbivore_soft.js", + "web_async/ace/theme-mono_industrial.js", + "web_async/ace/theme-monokai.js", + "web_async/ace/theme-nord_dark.js", + "web_async/ace/theme-one_dark.js", + "web_async/ace/theme-pastel_on_dark.js", + "web_async/ace/theme-solarized_dark.js", + "web_async/ace/theme-solarized_light.js", + "web_async/ace/theme-sqlserver.js", + "web_async/ace/theme-terminal.js", + "web_async/ace/theme-textmate.js", + "web_async/ace/theme-tomorrow.js", + "web_async/ace/theme-tomorrow_night.js", + "web_async/ace/theme-tomorrow_night_blue.js", + "web_async/ace/theme-tomorrow_night_bright.js", + "web_async/ace/theme-tomorrow_night_eighties.js", + "web_async/ace/theme-twilight.js", + "web_async/ace/theme-vibrant_ink.js", + "web_async/ace/theme-xcode.js", + "web_async/ace/worker-base.js", + "web_async/ace/worker-css.js", + "web_async/ace/worker-html.js", + "web_async/ace/worker-javascript.js", + "web_async/ace/worker-json.js", + "web_async/mtb_markdown.umd.js", + "web_async/mtb_markdown_plus.umd.js", + "wiki/Debugging.md", + "wiki/Examples.md", + "wiki/Home.md", + "wiki/Nodes.md", + "wiki/NodesTable.md", + "wiki/Showcase.md", + "wiki/_Sidebar.md", + "wiki/nodes/nodes-add-to-playlist.md", + "wiki/nodes/nodes-animation-builder.md", + "wiki/nodes/nodes-any-to-string.md", + "wiki/nodes/nodes-apply-text-template.md", + "wiki/nodes/nodes-audio-cut.md", + "wiki/nodes/nodes-audio-sequence.md", + "wiki/nodes/nodes-audio-stack.md", + "wiki/nodes/nodes-auto-pan-equilateral.md", + "wiki/nodes/nodes-batch-float-assemble.md", + "wiki/nodes/nodes-batch-float-fill.md", + "wiki/nodes/nodes-batch-float-normalize.md", + "wiki/nodes/nodes-batch-float.md", + "wiki/nodes/nodes-batch-make.md", + "wiki/nodes/nodes-batch-merge.md", + "wiki/nodes/nodes-batch-sampler.md", + "wiki/nodes/nodes-batch-shake.md", + "wiki/nodes/nodes-batch-shape.md", + "wiki/nodes/nodes-batch-time-wrap.md", + "wiki/nodes/nodes-batch.md", + "wiki/nodes/nodes-batch2d-transform.md", + "wiki/nodes/nodes-bbox-from-mask.md", + "wiki/nodes/nodes-bbox.md", + "wiki/nodes/nodes-blur.md", + "wiki/nodes/nodes-color-correct-g-p-u.md", + "wiki/nodes/nodes-color-correct.md", + "wiki/nodes/nodes-colored-image.md", + "wiki/nodes/nodes-concat-images.md", + "wiki/nodes/nodes-crop.md", + "wiki/nodes/nodes-curve-to-float.md", + "wiki/nodes/nodes-curve.md", + "wiki/nodes/nodes-debug.md", + "wiki/nodes/nodes-deep-bump.md", + "wiki/nodes/nodes-export-with-ffmpeg.md", + "wiki/nodes/nodes-extract-coordinates-from-image.md", + "wiki/nodes/nodes-face-swap.md", + "wiki/nodes/nodes-film-interpolation.md", + "wiki/nodes/nodes-filter-z.md", + "wiki/nodes/nodes-float-to-floats.md", + "wiki/nodes/nodes-float-to-number.md", + "wiki/nodes/nodes-floats-to-float.md", + "wiki/nodes/nodes-floats-to-ints.md", + "wiki/nodes/nodes-get-batch-from-history-v2.md", + "wiki/nodes/nodes-get-batch-from-history.md", + "wiki/nodes/nodes-image-compare.md", + "wiki/nodes/nodes-image-premultiply.md", + "wiki/nodes/nodes-image-remove-background-rembg.md", + "wiki/nodes/nodes-image-resize-factor.md", + "wiki/nodes/nodes-image-tile-offset.md", + "wiki/nodes/nodes-int-to-bool.md", + "wiki/nodes/nodes-int-to-number.md", + "wiki/nodes/nodes-latent-lerp.md", + "wiki/nodes/nodes-load-face-analysis-model.md", + "wiki/nodes/nodes-load-face-enhance-model.md", + "wiki/nodes/nodes-load-face-swap-model.md", + "wiki/nodes/nodes-load-film-model.md", + "wiki/nodes/nodes-load-image-from-url.md", + "wiki/nodes/nodes-load-image-sequence.md", + "wiki/nodes/nodes-mask-to-image.md", + "wiki/nodes/nodes-match-dimensions.md", + "wiki/nodes/nodes-model-patch-seamless.md", + "wiki/nodes/nodes-model-pruner.md", + "wiki/nodes/nodes-pick-from-batch.md", + "wiki/nodes/nodes-plot-batch-float.md", + "wiki/nodes/nodes-postshot-train.md", + "wiki/nodes/nodes-qr-code.md", + "wiki/nodes/nodes-read-playlist.md", + "wiki/nodes/nodes-restore-face.md", + "wiki/nodes/nodes-save-gif.md", + "wiki/nodes/nodes-save-image-grid.md", + "wiki/nodes/nodes-save-image-sequence.md", + "wiki/nodes/nodes-save-tensors.md", + "wiki/nodes/nodes-sharpen.md", + "wiki/nodes/nodes-smart-step.md", + "wiki/nodes/nodes-split-bbox.md", + "wiki/nodes/nodes-stack-images.md", + "wiki/nodes/nodes-string-replace.md", + "wiki/nodes/nodes-styles-loader.md", + "wiki/nodes/nodes-text-to-image.md", + "wiki/nodes/nodes-to-device.md", + "wiki/nodes/nodes-transform-image.md", + "wiki/nodes/nodes-uncrop.md", + "wiki/nodes/nodes-unsplash-image.md", + "wiki/nodes/nodes-vae-decode.md", + "wiki/web/web-dynamic-inputs.md" + ], + "selected": [ + "LICENSE", + "__init__.py", + "extern/GFPGAN/LICENSE", + "extern/frame_interpolation/LICENSE", + "nodes/__init__.py", + "pyproject.toml" + ] +} diff --git a/docs/hel-892/storyboard-reference/mtb__LICENSE b/docs/hel-892/storyboard-reference/mtb__LICENSE new file mode 100644 index 00000000..980ede8c --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Mel Massadian + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/hel-892/storyboard-reference/mtb____init__.py b/docs/hel-892/storyboard-reference/mtb____init__.py new file mode 100644 index 00000000..cf4c3ebf --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb____init__.py @@ -0,0 +1,581 @@ +#!/usr/bin/env python3 +### +# File: __init__.py +# Project: comfy_mtb +# Author: Mel Massadian +# Copyright (c) 2023-2025 Mel Massadian +# +### + +__version__ = "0.5.4" + +import os + +from aiohttp.web_request import Request + +# TODO: don't override this if the user has that setup already +if not os.environ.get("TF_FORCE_GPU_ALLOW_GROWTH"): + os.environ["TF_FORCE_GPU_ALLOW_GROWTH"] = "true" + +if not os.environ.get("TF_GPU_ALLOCATOR"): + os.environ["TF_GPU_ALLOCATOR"] = "cuda_malloc_async" + +import ast +import contextlib +import importlib +import json +import logging +import shutil +import traceback +from importlib import reload +from pathlib import Path + +from aiohttp import web + +IN_COMFY = False + +try: + from server import PromptServer + + IN_COMFY = True +except ModuleNotFoundError: + IN_COMFY = False + + +from .endpoint import endlog +from .install import get_node_dependencies +from .log import blue_text, cyan_text, get_label, get_summary, log +from .utils import comfy_dir, here + +NODE_CLASS_MAPPINGS: dict[str, type] = {} +NODE_DISPLAY_NAME_MAPPINGS: dict[str, str] = {} +NODE_CLASS_MAPPINGS_DEBUG: dict[str, str | None] = {} +WEB_DIRECTORY = "./web" + + +def extract_nodes_from_source(filename: Path): + source_code = "" + source_code = filename.read_text(encoding="utf-8") + nodes: list[str] = [] + + try: + parsed = ast.parse(source_code) + for node in ast.walk(parsed): + if isinstance(node, ast.Assign) and len(node.targets) == 1: + target = node.targets[0] + if isinstance(target, ast.Name) and target.id == "__nodes__": + value = ast.get_source_segment(source_code, node.value) + if value: + node_value = ast.parse(value).body[0].value + if isinstance(node_value, ast.List | ast.Tuple): + nodes.extend( + str(element.id) + for element in node_value.elts + if isinstance(element, ast.Name) + ) + break + except SyntaxError: + log.error("Failed to parse") + return nodes + + +def load_nodes(): + errors: list[str] = [] + nodes: list[type] = [] + nodes_failed: list[str] = [] + + for filename in (here / "nodes").iterdir(): + if filename.suffix == ".py": + module_name = filename.stem + + try: + module = importlib.import_module( + f".nodes.{module_name}", package=__package__ + ) + _nodes = getattr(module, "__nodes__", []) + nodes.extend(_nodes) + log.debug(f"Imported {module_name} nodes") + + except AttributeError: + log.debug(f"Skipping wip module {module_name}") + pass # wip nodes + except Exception: + error_message = traceback.format_exc().splitlines()[-1] + + errors.append( + f"Failed to import module {module_name} because {error_message}" + ) + # Read __nodes__ variable from the source file + nodes_failed.extend(extract_nodes_from_source(filename)) + + if errors: + log.debug( + "Some nodes failed to load:\n\t" + + "\n\t".join(errors) + + "\n\n" + + "Check that you properly installed the dependencies.\n" + + "If you think this is a bug, please report it on the github page (https://github.com/melMass/comfy_mtb/issues)" + ) + + return (nodes, nodes_failed) + + +# - REGISTER WEB EXTENSIONS +def uninstall_old_web_extensions(): + web_extensions_root = comfy_dir / "web" / "extensions" + web_mtb = web_extensions_root / "mtb" + + if web_mtb.exists() and hasattr(nodes, "EXTENSION_WEB_DIRS"): + try: + if web_mtb.is_symlink(): + web_mtb.unlink() + else: + shutil.rmtree(web_mtb) + except Exception as e: + log.warning( + f"""Failed to remove web mtb directory: {e} +Please manually remove it from disk ({web_mtb}) and restart the server.""" + ) + + +# uninstall_old_web_extensions() + + +# - GATHER WIKI PAGES +def wiki_to_classname(s: str): + wiki_name = s.replace("nodes-", "", 1) + return "MTB_" + "".join( + [part.capitalize() for part in wiki_name.split("-")] + ) + + +def classname_to_wiki(s: str): + classname = s.replace("MTB_", "") + parts: list[str] = [] + start = 0 + for i in range(1, len(classname)): + if classname[i].isupper(): + parts.append(classname[start:i].lower()) + start = i + parts.append(classname[start:].lower()) + return "nodes-" + "-".join(parts) + + +wiki = here / "wiki" +node_docs = {} +if wiki.exists() and wiki.is_dir(): + node_docs = { + wiki_to_classname(x.stem): x.read_text(encoding="utf-8") + for x in (wiki / "nodes").glob("*.md") + } + + +# - REGISTER NODES +MTB_EXPORT = os.environ.get("MTB_EXPORT") + +nodes, failed = load_nodes() +for node_class in nodes: + class_name: str = node_class.__name__ + linked_doc = node_docs.get(class_name) + + if not hasattr(node_class, "DESCRIPTION"): + if linked_doc: + log.debug(f"Found linked doc for {class_name}, using it") + node_class.DESCRIPTION = linked_doc + elif node_class.__doc__: + log.debug(f"Using __doc__ as description for {class_name}") + node_class.DESCRIPTION = node_class.__doc__ + if MTB_EXPORT: + wiki_name = classname_to_wiki(class_name) + _ = (wiki / "nodes" / (wiki_name + ".md")).write_text( + node_class.__doc__, encoding="utf-8" + ) + + else: + log.debug( + f"None of the methods could retrieve documentation for {class_name}" + ) + + node_label = f"{get_label(class_name)} (mtb)" + NODE_CLASS_MAPPINGS[node_label] = node_class + NODE_DISPLAY_NAME_MAPPINGS[class_name] = node_label + NODE_CLASS_MAPPINGS_DEBUG[node_label] = node_class.__doc__ + + # TODO: I removed this, I find it more convenient to write without spaces + # but it breaks every of my workflows + # TODO (cont): and until I find a way to automate the conversion + # I'll leave it like this + + if os.environ.get("MTB_EXPORT"): + with open(here / "node_list.json", "w") as f: + _ = f.write( + json.dumps( + { + k: NODE_CLASS_MAPPINGS_DEBUG[k] + for k in sorted(NODE_CLASS_MAPPINGS_DEBUG.keys()) + }, + indent=4, + ) + ) + +log.debug( + "Loaded the following nodes:\n\t" + + "\n\t".join( + f"{cyan_text(k)}: {blue_text(get_summary(doc)) if doc else '-'}" + for k, doc in NODE_CLASS_MAPPINGS_DEBUG.items() + ) +) + +log.info(f"loaded {cyan_text(str(len(nodes)))} nodes successfuly") + +if failed: + with contextlib.suppress(Exception): + base_url, port = utils.get_server_info() + log.info( + f"Some nodes ({len(failed)}) could not be loaded. This can be ignored, but go to http://{base_url}:{port}/mtb if you want more information." + ) + log.debug(failed) + + +# - ENDPOINT + + +if IN_COMFY and hasattr(PromptServer, "instance"): + img_cache = None + prompt_cache = None + + with contextlib.suppress(ImportError): + from cachetools import TTLCache + + img_cache = TTLCache(maxsize=100, ttl=5) # 1 min TTL + prompt_cache = TTLCache(maxsize=100, ttl=5) # 1 min TTL + + node_dependency_mapping = get_node_dependencies() + + PromptServer.instance.app.router.add_static( + "/mtb-assets/", path=(here / "html").as_posix() + ) + + # NOTE: we add an extra static path to avoid comfy mechanism + # that loads every script in web. + PromptServer.instance.app.add_routes( + [web.static("/mtb_async", (here / "web_async").as_posix())] + ) + + @PromptServer.instance.routes.get("/mtb/manage") + async def manage(request): + from . import endpoint + + reload(endpoint) + + endlog.debug("Initializing Manager") + if "text/html" in request.headers.get("Accept", ""): + csv_editor = endpoint.csv_editor() + + tabview = endpoint.render_tab_view(Styles=csv_editor) + return web.Response( + text=endpoint.render_base_template("MTB", tabview), + content_type="text/html", + ) + + return web.json_response( + { + "message": "manage only has a POST api for now", + } + ) + + @PromptServer.instance.routes.get("/mtb/status") + async def get_full_library(request): + from . import endpoint + + reload(endpoint) + + endlog.debug("Getting node registration status") + # Check if the request prefers HTML content + if "text/html" in request.headers.get("Accept", ""): + # # Return an HTML page + html_response = endpoint.render_table( + NODE_CLASS_MAPPINGS_DEBUG, title="Registered" + ) + html_response += endpoint.render_table( + { + k: {"dependencies": node_dependency_mapping.get(k)} + if node_dependency_mapping.get(k) + else "-" + for k in failed + }, + title="Failed to load", + ) + + return web.Response( + text=endpoint.render_base_template("MTB", html_response), + content_type="text/html", + ) + + return web.json_response( + { + "registered": NODE_CLASS_MAPPINGS_DEBUG, + "failed": failed, + } + ) + + @PromptServer.instance.routes.post("/mtb/server-info") + async def set_server_info(request: Request): + json_data: dict[str, bool] = await request.json() + enabled = json_data.get("debug") + if enabled: + os.environ["MTB_DEBUG"] = "true" + log.setLevel(logging.DEBUG) + log.debug("Debug mode set from API (/mtb/debug POST route)") + + elif "MTB_DEBUG" in os.environ: + # del os.environ["MTB_DEBUG"] + _ = os.environ.pop("MTB_DEBUG") + log.setLevel(logging.INFO) + + return web.json_response( + {"message": f"Debug mode {'set' if enabled else 'unset'}"} + ) + + @PromptServer.instance.routes.get("/mtb") + async def get_home(request: Request): + from . import endpoint + + _ = reload(endpoint) + # Check if the request prefers HTML content + if "text/html" in request.headers.get("Accept", ""): + # # Return an HTML page + html_response = """ + + """ + return web.Response( + text=endpoint.render_base_template("MTB", html_response), + content_type="text/html", + ) + + # Return JSON for other requests + return web.json_response({"message": "Welcome to MTB!"}) + + import asyncio + import os + from io import BytesIO + + from aiohttp import web + from PIL import Image + + def get_cached_image(file_path: str, preview_params=None, channel=None): + cache_key = (file_path, preview_params, channel) + if img_cache and (cache_key in img_cache): + return img_cache[cache_key] + + with Image.open(file_path) as img: + info = img.info + if preview_params: + img = process_preview(img, preview_params) + if channel: + img = process_channel(img, channel) + if prompt_cache: + prompt_cache[cache_key] = info + if img_cache: + img_cache[cache_key] = img.getvalue() + return img_cache[cache_key] + + return img.getvalue() + + def process_preview(img: Image.Image, preview_params): + image_format, quality, width = preview_params + quality = int(quality) + + if width: + width = int(width) + img.thumbnail((width, int(width * img.height / img.width))) + + buffer = BytesIO() + img.save( + buffer, format=image_format, quality=quality, metadata=img.info + ) + buffer.seek(0) + return buffer + + def process_channel(img: Image.Image, channel: str): + if channel == "rgb": + if img.mode == "RGBA": + r, g, b, _ = img.split() + img = Image.merge("RGB", (r, g, b)) + else: + img = img.convert("RGB") + elif channel == "a": + if img.mode == "RGBA": + _, _, _, a = img.split() + else: + a = Image.new("L", img.size, 255) + img = Image.new("RGBA", img.size) + img.putalpha(a) + + buffer = BytesIO() + img.save(buffer, format="PNG") + _ = buffer.seek(0) + return buffer + + async def get_image_response( + file, filename: str, preview_info=None, channel=None + ): + img = await asyncio.to_thread( + get_cached_image, file, preview_info, channel + ) + return web.Response( + body=img, + content_type="image/webp" if preview_info else "image/png", + headers={"Content-Disposition": f'filename="{filename}"'}, + ) + + # TODO: Embed the metadatas somehow so we can drag and drop + # to load workflows in the sidebar + @PromptServer.instance.routes.get("/mtb/view") + async def view_image(request: Request): + import folder_paths + + filename = request.rel_url.query.get("filename") + if not filename: + return web.Response(status=404) + + filename, output_dir = folder_paths.annotated_filepath(filename) + if filename[0] == "/" or ".." in filename: + return web.Response(status=400) + + if output_dir is None: + rtype = request.rel_url.query.get("type", "output") + output_dir = folder_paths.get_directory_by_type(rtype) + + if output_dir is None: + return web.Response(status=400) + + if "subfolder" in request.rel_url.query: + full_output_dir = os.path.join( + output_dir, request.rel_url.query["subfolder"] + ) + if ( + os.path.commonpath( + (os.path.abspath(full_output_dir), output_dir) + ) + != output_dir + ): + return web.Response(status=403) + output_dir = full_output_dir + + filename = os.path.basename(filename) + file = os.path.join(output_dir, filename) + + if not os.path.isfile(file): + return web.Response(status=404) + + ret_workflow = request.rel_url.query.get("workflow") + + if ret_workflow: + image = Image.open(file) + prompt = image.info.get("prompt", "") + workflow = image.info.get("workflow", "") + + if workflow: + workflow = json.loads(workflow) + + if prompt: + prompt = json.loads(prompt) + + return web.json_response( + { + "prompt": prompt, + "workflow": workflow, + } + ) + + preview_info = None + if "preview" in request.rel_url.query: + preview_params = request.rel_url.query["preview"].split(";") + image_format = ( + preview_params[0] + if preview_params[0] in ["webp", "jpeg"] + else "webp" + ) + quality = ( + int(preview_params[1]) + if len(preview_params) > 1 and preview_params[1].isdigit() + else 90 + ) + width = request.rel_url.query.get("width") + preview_info = (image_format, quality, width) + + channel = request.rel_url.query.get("channel") + + return await get_image_response(file, filename, preview_info, channel) + + @PromptServer.instance.routes.get("/mtb/server-info") + async def get_debug(request: Request): + from . import endpoint + + _ = reload(endpoint) + isdebug = "MTB_DEBUG" in os.environ + exposed = "MTB_EXPOSE" in os.environ + + def render_property(name: str, val: str): + return f"""{name}: +

+ {val} +

""" + + # Check if the request prefers HTML content + if "text/html" in request.headers.get("Accept", ""): + # # Return an HTML page + html_response = "" + + html_response += render_property( + "Debug", "Enabled" if isdebug else "Disabled" + ) + + html_response += render_property("Exposed", str(exposed)) + + return web.Response( + text=endpoint.render_base_template( + "Server Info", html_response + ), + content_type="text/html", + ) + + # Return JSON for other requests + return web.json_response({"exposed": exposed, "debug": isdebug}) + + @PromptServer.instance.routes.get("/mtb/actions") + async def no_route(request: Request): + from . import endpoint + + if "text/html" in request.headers.get("Accept", ""): + html_response = """ +

Actions has no get for now...

+ """ + return web.Response( + text=endpoint.render_base_template("Actions", html_response), + content_type="text/html", + ) + return web.json_response({"message": "actions has no get for now"}) + + @PromptServer.instance.routes.post("/mtb/actions") + async def do_action(request: Request): + from . import endpoint + + reload(endpoint) + + return await endpoint.do_action(request) + + +# - WAS Dictionary +MANIFEST = { + "name": "MTB Nodes", # The title that will be displayed on Node Class menu,. and Node Class view + "version": (0, 1, 0), # Version of the custom_node or sub module + "author": "Mel Massadian", # Author or organization of the custom_node or sub module + "project": "https://github.com/melMass/comfy_mtb", # The address that the `name` value will link to on Node Class Views + "description": "Set of nodes that enhance your animation workflow and provide a range of useful tools including features such as manipulating bounding boxes, perform color corrections, swap faces in images, interpolate frames for smooth animation, export to ProRes format, apply various image operations, work with latent spaces, generate QR codes, and create normal and height maps for textures.", +} diff --git a/docs/hel-892/storyboard-reference/mtb__log.py b/docs/hel-892/storyboard-reference/mtb__log.py new file mode 100644 index 00000000..76b42e49 --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__log.py @@ -0,0 +1,87 @@ +import logging +import os +import re + +base_log_level = logging.DEBUG if os.environ.get("MTB_DEBUG") else logging.INFO + + +# Custom object that discards the output +class NullWriter: + def write(self, text): + pass + + +class Formatter(logging.Formatter): + grey = "\x1b[38;20m" + cyan = "\x1b[36;20m" + purple = "\x1b[35;20m" + yellow = "\x1b[33;20m" + red = "\x1b[31;20m" + bold_red = "\x1b[31;1m" + reset = "\x1b[0m" + # format = "%(asctime)s - [%(name)s] - %(levelname)s - %(message)s (%(filename)s:%(lineno)d)" + format = "[%(name)s] | %(levelname)s -> %(message)s" + + FORMATS = { + logging.DEBUG: purple + format + reset, + logging.INFO: cyan + format + reset, + logging.WARNING: yellow + format + reset, + logging.ERROR: red + format + reset, + logging.CRITICAL: bold_red + format + reset, + } + + def format(self, record): + log_fmt = self.FORMATS.get(record.levelno) + formatter = logging.Formatter(log_fmt) + return formatter.format(record) + + +def mklog(name: str, level: int = base_log_level): + logger = logging.getLogger(name) + logger.setLevel(level) + + for handler in logger.handlers: + logger.removeHandler(handler) + + ch = logging.StreamHandler() + ch.setLevel(level) + ch.setFormatter(Formatter()) + logger.addHandler(ch) + + # Disable log propagation + logger.propagate = False + + return logger + + +# - The main app logger +log = mklog(__package__, base_log_level) + + +def log_user(arg: str): + print(f"\033[34mComfy MTB Utils:\033[0m {arg}") + + +def get_summary(docstring: str): + return docstring.strip().split("\n\n", 1)[0] + + +def blue_text(text: str): + return f"\033[94m{text}\033[0m" + + +def cyan_text(text: str): + return f"\033[96m{text}\033[0m" + + +def get_label(label: str): + if label.startswith("MTB_"): + label = label[4:] + + words = re.findall( + r"(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|(?<=[A-Za-z])(?=[0-9])|(?<=[0-9])(?=[A-Za-z]))", + label, + ) + reformatted_label = re.sub(r"([A-Z]+)", r" \1", label).strip() + words = reformatted_label.split() + return " ".join(words).strip() diff --git a/docs/hel-892/storyboard-reference/mtb__nodes__graph_utils.py b/docs/hel-892/storyboard-reference/mtb__nodes__graph_utils.py new file mode 100644 index 00000000..39654b6d --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__nodes__graph_utils.py @@ -0,0 +1,885 @@ +import io +import json +import re +import urllib.parse +import urllib.request +from math import pi + +import comfy.model_management as model_management +import comfy.utils +import numpy as np +import torch +from PIL import Image + +from ..log import log +from ..utils import ( + EASINGS, + apply_easing, + get_server_info, + numpy_NFOV, + pil2tensor, + tensor2np, +) + + +def get_image(filename, subfolder, folder_type): + log.debug( + f"Getting image {filename} from foldertype {folder_type} {f'in subfolder: {subfolder}' if subfolder else ''}" + ) + data = {"filename": filename, "subfolder": subfolder, "type": folder_type} + base_url, port = get_server_info() + + url_values = urllib.parse.urlencode(data) + url = f"http://{base_url}:{port}/view?{url_values}" + log.debug(f"Fetching image from {url}") + with urllib.request.urlopen(url) as response: + return io.BytesIO(response.read()) + + +class MTB_ToDevice: + """Send a image or mask tensor to the given device.""" + + @classmethod + def INPUT_TYPES(cls): + devices = ["cpu"] + if torch.backends.mps.is_available(): + devices.append("mps") + if torch.cuda.is_available(): + devices.append("cuda:0") + for i in range(1, torch.cuda.device_count()): + devices.append(f"cuda:{i}") + devices.append("cuda") + + return { + "required": { + "ignore_errors": ("BOOLEAN", {"default": False}), + "device": ( + devices, + { + "default": "cuda" + if torch.cuda.is_available() + else "cpu" + }, + ), + }, + "optional": { + "image": ("IMAGE",), + "mask": ("MASK",), + }, + } + + RETURN_TYPES = ("IMAGE", "MASK") + RETURN_NAMES = ("images", "masks") + CATEGORY = "mtb/utils" + FUNCTION = "to_device" + + def to_device( + self, + *, + ignore_errors: bool = False, + device: str = "cuda", + image: torch.Tensor | None = None, + mask: torch.Tensor | None = None, + ): + if not ignore_errors and image is None and mask is None: + raise ValueError( + "You must either provide an image or a mask," + + " use ignore_error to passthrough" + ) + if ( + device.startswith("cuda") + and ":" not in device + and device != "cuda" + ): + device = f"cuda:{device[4:]}" + + try: + if image is not None: + image = image.to(device) + if mask is not None: + mask = mask.to(device) + except RuntimeError as e: + if not ignore_errors: + raise RuntimeError( + f"Failed to move tensor to device {device}: {str(e)}" + ) from e + log.warning( + f"Failed to move tensor to device {device}, ignoring: {str(e)}" + ) + return (image, mask) + + +# class MTB_ApplyTextTemplate: +class MTB_ApplyTextTemplate: + """ + Experimental node to interpolate strings from inputs. + + Interpolation just requires {}, for instance: + + Some string {var_1} and {var_2} + """ + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "template": ("STRING", {"default": "", "multiline": True}), + }, + } + + RETURN_TYPES = ("STRING",) + RETURN_NAMES = ("string",) + CATEGORY = "mtb/utils" + FUNCTION = "execute" + + def execute(self, *, template: str, **kwargs): + res = f"{template}" + for k, v in kwargs.items(): + res = res.replace(f"{{{k}}}", f"{v}") + + return (res,) + + +class MTB_MatchDimensions: + """Match images dimensions along the given dimension, preserving aspect ratio.""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "source": ("IMAGE",), + "reference": ("IMAGE",), + "match": (["height", "width"], {"default": "height"}), + }, + } + + RETURN_TYPES = ("IMAGE", "INT", "INT") + RETURN_NAMES = ("image", "new_width", "new_height") + CATEGORY = "mtb/utils" + FUNCTION = "execute" + + def execute( + self, source: torch.Tensor, reference: torch.Tensor, match: str + ): + import torchvision.transforms.functional as VF + + _batch_size, height, width, _channels = source.shape + _rbatch_size, rheight, rwidth, _rchannels = reference.shape + + source_aspect_ratio = width / height + # reference_aspect_ratio = rwidth / rheight + + source = source.permute(0, 3, 1, 2) + reference = reference.permute(0, 3, 1, 2) + + if match == "height": + new_height = rheight + new_width = int(rheight * source_aspect_ratio) + else: + new_width = rwidth + new_height = int(rwidth / source_aspect_ratio) + + resized_images = [ + VF.resize( + source[i], + (new_height, new_width), + antialias=True, + interpolation=Image.BICUBIC, + ) + for i in range(_batch_size) + ] + resized_source = torch.stack(resized_images, dim=0) + resized_source = resized_source.permute(0, 2, 3, 1) + + return (resized_source, new_width, new_height) + + +class MTB_FloatToFloats: + """Conversion utility for compatibility with other extensions (AD, IPA, Fitz are using FLOAT to represent list of floats.)""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "float": ("FLOAT", {"default": 0.0, "forceInput": True}), + } + } + + RETURN_TYPES = ("FLOATS",) + RETURN_NAMES = ("floats",) + CATEGORY = "mtb/utils" + FUNCTION = "convert" + + def convert(self, float: float): + return (float,) + + +class MTB_FloatsToInts: + """Conversion utility for compatibility with frame interpolation.""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "floats": ("FLOATS", {"forceInput": True}), + } + } + + RETURN_TYPES = ("INTS", "INT") + CATEGORY = "mtb/utils" + FUNCTION = "convert" + + def convert(self, floats: list[float]): + vals = [int(x) for x in floats] + return (vals, vals) + + +class MTB_FloatsToFloat: + """Conversion utility for compatibility with other extensions (AD, IPA, Fitz are using FLOAT to represent list of floats.)""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "floats": ("FLOATS",), + } + } + + RETURN_TYPES = ("FLOAT",) + RETURN_NAMES = ("float",) + CATEGORY = "mtb/utils" + FUNCTION = "convert" + + def convert(self, floats): + return (floats,) + + +class MTB_AutoPanEquilateral: + """Generate a 360 panning video from an equilateral image.""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "equilateral_image": ("IMAGE",), + "fovX": ("FLOAT", {"default": 45.0}), + "fovY": ("FLOAT", {"default": 45.0}), + "elevation": ("FLOAT", {"default": 0.5}), + "frame_count": ("INT", {"default": 100}), + "width": ("INT", {"default": 768}), + "height": ("INT", {"default": 512}), + }, + "optional": { + "floats_fovX": ("FLOATS",), + "floats_fovY": ("FLOATS",), + "floats_elevation": ("FLOATS",), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("image",) + CATEGORY = "mtb/utils" + FUNCTION = "generate_frames" + + def check_floats(self, f: list[float] | None, expected_count: int): + if f: + if len(f) == expected_count: + return True + return False + return True + + def generate_frames( + self, + equilateral_image: torch.Tensor, + fovX: float, + fovY: float, + elevation: float, + frame_count: int, + width: int, + height: int, + floats_fovX: list[float] | None = None, + floats_fovY: list[float] | None = None, + floats_elevation: list[float] | None = None, + ): + source = tensor2np(equilateral_image) + + if len(source) > 1: + log.warn( + "You provided more than one image in the equilateral_image input, only the first will be used." + ) + if not all( + [ + self.check_floats(x, frame_count) + for x in [floats_fovX, floats_fovY, floats_elevation] + ] + ): + raise ValueError( + "You provided less than the expected number of fovX, fovY, or elevation values." + ) + + source = source[0] + frames = [] + + pbar = comfy.utils.ProgressBar(frame_count) + for i in range(frame_count): + rotation_angle = (i / frame_count) * 2 * pi + + if floats_elevation: + elevation = floats_elevation[i] + + if floats_fovX: + fovX = floats_fovX[i] + + if floats_fovY: + fovY = floats_fovY[i] + + fov = [fovX / 100, fovY / 100] + center_point = [rotation_angle / (2 * pi), elevation] + + nfov = numpy_NFOV(fov, height, width) + frame = nfov.to_nfov(source, center_point=center_point) + + frames.append(frame) + + model_management.throw_exception_if_processing_interrupted() + pbar.update(1) + + return (pil2tensor(frames),) + + +class MTB_GetBatchFromHistory: + """Very experimental node to load images from the history of the server. + + Queue items without output are ignored in the count. + """ + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "enable": ("BOOLEAN", {"default": True}), + "count": ("INT", {"default": 1, "min": 0}), + "offset": ("INT", {"default": 0, "min": -1e9, "max": 1e9}), + "internal_count": ("INT", {"default": 0}), + }, + "optional": { + "passthrough_image": ("IMAGE",), + }, + } + + RETURN_TYPES = ("IMAGE",) + RETURN_NAMES = ("images",) + CATEGORY = "mtb/animation" + FUNCTION = "load_from_history" + + def load_from_history( + self, + *, + enable=True, + count=0, + offset=0, + internal_count=0, # hacky way to invalidate the node + passthrough_image=None, + ): + if not enable or count == 0: + if passthrough_image is not None: + log.debug("Using passthrough image") + return (passthrough_image,) + log.debug("Load from history is disabled for this iteration") + return (torch.zeros(0),) + frames = [] + + base_url, port = get_server_info() + + history_url = f"http://{base_url}:{port}/history" + log.debug(f"Fetching history from {history_url}") + output = torch.zeros(0) + with urllib.request.urlopen(history_url) as response: + output = self.load_batch_frames(response, offset, count, frames) + + if output.size(0) == 0: + log.warn("No output found in history") + + return (output,) + + def load_batch_frames(self, response, offset, count, frames): + history = json.loads(response.read()) + + output_images = [] + + for run in history.values(): + for node_output in run["outputs"].values(): + if "images" in node_output: + for image in node_output["images"]: + image_data = get_image( + image["filename"], + image["subfolder"], + image["type"], + ) + output_images.append(image_data) + + if not output_images: + return torch.zeros(0) + + # Directly get desired range of images + start_index = max(len(output_images) - offset - count, 0) + end_index = len(output_images) - offset + selected_images = output_images[start_index:end_index] + + frames = [Image.open(image) for image in selected_images] + + if not frames: + return torch.zeros(0) + elif len(frames) != count: + log.warning(f"Expected {count} images, got {len(frames)} instead") + + return pil2tensor(frames) + + +class MTB_AnyToString: + """Tries to take any input and convert it to a string.""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": {"input": ("*",)}, + } + + RETURN_TYPES = ("STRING",) + FUNCTION = "do_str" + CATEGORY = "mtb/converters" + + def do_str(self, input): + if isinstance(input, str): + return (input,) + elif isinstance(input, torch.Tensor): + return (f"Tensor of shape {input.shape} and dtype {input.dtype}",) + elif isinstance(input, Image.Image): + return (f"PIL Image of size {input.size} and mode {input.mode}",) + elif isinstance(input, np.ndarray): + return ( + f"Numpy array of shape {input.shape} and dtype {input.dtype}", + ) + + elif isinstance(input, dict): + return ( + f"Dictionary of {len(input)} items, with keys {input.keys()}", + ) + + else: + log.debug(f"Falling back to string conversion of {input}") + return (str(input),) + + +class MTB_StringReplace: + """Basic string replacement with regex support.""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "string": ("STRING", {"forceInput": True}), + "old": ("STRING", {"default": ""}), + "new": ("STRING", {"default": ""}), + "use_regex": ("BOOLEAN", {"default": False}), + } + } + + FUNCTION = "replace_str" + RETURN_TYPES = ("STRING",) + CATEGORY = "mtb/string" + + def replace_str(self, string: str, old: str, new: str, use_regex: bool): + log.debug(f"Current string: {string}") + log.debug(f"Find string: {old}") + log.debug(f"Replace string: {new}") + log.debug(f"Use regex: {use_regex}") + + if use_regex: + try: + string = re.sub(old, new, string) + except re.error as e: + raise ValueError(f"Regex error: {e}") from e + else: + string = string.replace(old, new) + + log.debug(f"New string: {string}") + + return (string,) + + +class MTB_MathExpression: + """Node to evaluate a simple math expression string""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "expression": ("STRING", {"default": "", "multiline": True}), + } + } + + FUNCTION = "eval_expression" + RETURN_TYPES = ("FLOAT", "INT") + RETURN_NAMES = ("result (float)", "result (int)") + CATEGORY = "mtb/math" + DESCRIPTION = ( + "evaluate a simple math expression string, only supports literal_eval" + ) + + def eval_expression(self, expression: str, **kwargs): + from ast import literal_eval + + for key, value in kwargs.items(): + log.debug(f"Replacing placeholder <{key}> with value {value}") + expression = expression.replace(f"<{key}>", str(value)) + + result = -1 + try: + result = literal_eval(expression) + except SyntaxError as e: + raise ValueError( + f"The expression syntax is wrong '{expression}': {e}" + ) from e + + except Exception as e: + raise ValueError( + f"Math expression only support literal_eval now: {e}" + ) + + return (result, int(result)) + + +class MTB_FitNumber: + """Fit the input float using a source and target range""" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "value": ("FLOAT", {"default": 0, "forceInput": True}), + "clamp": ("BOOLEAN", {"default": False}), + "source_min": ( + "FLOAT", + {"default": 0.0, "step": 0.01, "min": -1e5}, + ), + "source_max": ( + "FLOAT", + {"default": 1.0, "step": 0.01, "min": -1e5}, + ), + "target_min": ( + "FLOAT", + {"default": 0.0, "step": 0.01, "min": -1e5}, + ), + "target_max": ( + "FLOAT", + {"default": 1.0, "step": 0.01, "min": -1e5}, + ), + "easing": ( + EASINGS, + {"default": "Linear"}, + ), + } + } + + FUNCTION = "set_range" + RETURN_TYPES = ("FLOAT",) + CATEGORY = "mtb/math" + DESCRIPTION = "Fit the input float using a source and target range" + + def set_range( + self, + value: float, + clamp: bool, + source_min: float, + source_max: float, + target_min: float, + target_max: float, + easing: str, + ): + if source_min == source_max: + normalized_value = 0 + else: + normalized_value = (value - source_min) / (source_max - source_min) + if clamp: + normalized_value = max(min(normalized_value, 1), 0) + + eased_value = apply_easing(normalized_value, easing) + + # - Convert the eased value to the target range + res = target_min + (target_max - target_min) * eased_value + + return (res,) + + +class MTB_ConcatImages: + """Add images to batch.""" + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "concatenate_tensors" + CATEGORY = "mtb/image" + + @classmethod + def INPUT_TYPES(cls): + return { + "required": {"reverse": ("BOOLEAN", {"default": False})}, + "optional": { + "on_mismatch": ( + ["Error", "Smallest", "Largest"], + {"default": "Smallest"}, + ) + }, + } + + def concatenate_tensors( + self, + reverse: bool, + on_mismatch: str = "Smallest", + **kwargs: torch.Tensor, + ) -> tuple[torch.Tensor]: + tensors = list(kwargs.values()) + + if on_mismatch == "Error": + shapes = [tensor.shape for tensor in tensors] + if not all(shape == shapes[0] for shape in shapes): + raise ValueError( + "All input tensors must have the same shape when on_mismatch is 'Error'." + ) + + else: + import torch.nn.functional as F + + if on_mismatch == "Smallest": + target_shape = min( + (tensor.shape for tensor in tensors), + key=lambda s: (s[1], s[2]), + ) + else: # on_mismatch == "Largest" + target_shape = max( + (tensor.shape for tensor in tensors), + key=lambda s: (s[1], s[2]), + ) + + target_height, target_width = target_shape[1], target_shape[2] + + resized_tensors = [] + for tensor in tensors: + if ( + tensor.shape[1] != target_height + or tensor.shape[2] != target_width + ): + resized_tensor = F.interpolate( + tensor.permute(0, 3, 1, 2), + size=(target_height, target_width), + mode="bilinear", + align_corners=False, + ) + resized_tensor = resized_tensor.permute(0, 2, 3, 1) + resized_tensors.append(resized_tensor) + else: + resized_tensors.append(tensor) + + tensors = resized_tensors + + concatenated = torch.cat(tensors, dim=0) + + return (concatenated,) + + +class MTB_TensorOps: + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "tensor": ("IMAGE",), + "operation": ( + [ + "multiply", + "divide", + "add", + "subtract", + "power", + "clamp", + "abs", + "log", + "exp", + "convert_dtype", + "normalize_range", + "normalize_per_channel", + ], + {"default": "multiply"}, + ), + "value": ( + "FLOAT", + { + "default": 1.0, + "min": -1000000.0, + "max": 1000000.0, + "step": 0.01, + }, + ), + "source_min": ( + "FLOAT", + { + "default": 0.0, + "min": -1000000.0, + "max": 1000000.0, + "step": 0.01, + }, + ), + "source_max": ( + "FLOAT", + { + "default": 1.0, + "min": -1000000.0, + "max": 1000000.0, + "step": 0.01, + }, + ), + "target_min": ( + "FLOAT", + { + "default": 0.0, + "min": -1000000.0, + "max": 1000000.0, + "step": 0.01, + }, + ), + "target_max": ( + "FLOAT", + { + "default": 16.0, + "min": -1000000.0, + "max": 1000000.0, + "step": 0.01, + }, + ), + "dtype": ( + ["uint8", "float32", "float16", "bfloat16"], + {"default": "float32"}, + ), + "use_mean": ("BOOLEAN", {"default": False}), + }, + "optional": { + "target_tensor": ("IMAGE",), + }, + } + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "apply" + CATEGORY = "mtb/tensor_ops" + + def apply( + self, + tensor, + operation="multiply", + value=1.0, + source_min=0.0, + source_max=1.0, + target_min=0.0, + target_max=1.0, + dtype="float32", + use_mean=False, + target_tensor=None, + ): + log.debug( + f"Input tensor stats: shape={tensor.shape}, dtype={tensor.dtype}, range=[{tensor.min().item():.6f}, {tensor.max().item():.6f}]" + ) + if operation == "normalize_per_channel": + if target_tensor is None: + raise ValueError( + "Target tensor required for per-channel normalization" + ) + + result = tensor.clone() + for c in range(tensor.shape[-1]): + if use_mean: + source_mean = tensor[..., c].mean() + target_mean = target_tensor[..., c].mean() + scale = target_mean / source_mean + result[..., c] = tensor[..., c] * scale + else: + source_min = tensor[..., c].min() + source_max = tensor[..., c].max() + target_min = target_tensor[..., c].min() + target_max = target_tensor[..., c].max() + + normalized = (tensor[..., c] - source_min) / ( + source_max - source_min + ) + result[..., c] = ( + normalized * (target_max - target_min) + target_min + ) + + log.debug( + f"Channel {c} - Scale: source=[{source_min:.6f}, {source_max:.6f}], target=[{target_min:.6f}, {target_max:.6f}]" + ) + + elif operation == "normalize_range": + if target_tensor is not None: + target_min = target_tensor.min().item() + target_max = target_tensor.max().item() + log.debug( + f"Using target tensor range: [{target_min:.6f}, {target_max:.6f}]" + ) + + normalized = (tensor - source_min) / (source_max - source_min) + result = normalized * (target_max - target_min) + target_min + elif operation == "convert_dtype": + if dtype == "float32": + result = tensor.float() + elif dtype == "float16": + result = tensor.half() + elif dtype == "bfloat16": + result = tensor.bfloat16() + + else: + result = tensor + if operation == "multiply": + result = tensor * value + elif operation == "divide": + result = tensor / value if value != 0 else tensor + elif operation == "add": + result = tensor + value + elif operation == "subtract": + result = tensor - value + elif operation == "power": + result = torch.pow(tensor, value) + elif operation == "clamp": + if target_tensor is not None: + result = torch.clamp( + tensor, + target_tensor.min().item(), + target_tensor.max().item(), + ) + else: + result = torch.clamp(tensor, source_min, source_max) + elif operation == "abs": + result = torch.abs(tensor) + elif operation == "log": + result = torch.log(tensor.clamp(min=1e-10)) + elif operation == "exp": + result = torch.exp(tensor) + + log.debug( + f"Output tensor stats: shape={result.shape}, dtype={result.dtype}, range=[{result.min().item():.6f}, {result.max().item():.6f}]" + ) + return (result,) + + +__nodes__ = [ + MTB_StringReplace, + MTB_FitNumber, + MTB_GetBatchFromHistory, + MTB_AnyToString, + MTB_ConcatImages, + MTB_MathExpression, + MTB_ToDevice, + MTB_ApplyTextTemplate, + MTB_MatchDimensions, + MTB_AutoPanEquilateral, + MTB_FloatsToFloat, + MTB_FloatToFloats, + MTB_FloatsToInts, + MTB_TensorOps, +] diff --git a/docs/hel-892/storyboard-reference/mtb__pyproject.toml b/docs/hel-892/storyboard-reference/mtb__pyproject.toml new file mode 100644 index 00000000..fe4c9c14 --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__pyproject.toml @@ -0,0 +1,182 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "comfy-mtb" +version = "0.5.4" +description = "Animation oriented nodes pack for ComfyUI." +license = { text = "MIT" } +readme = "README.md" +# repository = "" +# url = "https://github.com/melMass/comfy_mtb" +authors = [{ name = "Mel Massadian", email = "mel@melmassadian.com" }] +classifiers = [ + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Intended Audience :: Developers", +] +requires-python = ">=3.10" +dependencies = [ + "qrcode", + "cachetools", + "onnxruntime-gpu", + "requirements-parserx", + "rembg", + "imageio_ffmpeg", + "rich", + "rich_argparse", + "matplotlib", + "pillow", +] +optional-dependencies = { mel = [ + "jupyterlab==4.1.6", +], dev = [ + "black[jupyter]", + "codespell", + "marimo", + "mypy", + "pre-commit", + "pytest", + "pytest-cov", + "pytest-random-order", + "ruff", +], doc = [ + "docutils==0.17.1", + "jupyter-book>=0.15", + "sphinx-autobuild", +] } + +[project.urls] +Homepage = "https://github.com/melMass/comfy_mtb" +Documentation = "https://github.com/melMass/comfy_mtb/wiki" +Repository = "https://github.com/melMass/comfy_mtb" +Issues = "https://github.com/melMass/comfy_mtb/issues" + +[tool.comfy] +PublisherId = "mel" +DisplayName = "comfy-mtb" +Icon = "https://avatars.githubusercontent.com/u/7041726?v=4" + +[tool.bumpversion] +current_version = "0.5.1" +parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" +serialize = ["{major}.{minor}.{patch}"] +search = "{current_version}" +replace = "{new_version}" +regex = false +ignore_missing_version = false +ignore_missing_files = false +tag = true +sign_tags = true +tag_name = "v{new_version}" +tag_message = "⬆️ Bump version: {current_version} → {new_version}" +allow_dirty = true +commit = true +message = "⬆️ Bump version: {current_version} → {new_version}" +commit_args = "" + +[[tool.bumpversion.files]] +filename = "__init__.py" +search = "__version__ = \"{current_version}\"" +replace = "__version__ = \"{new_version}\"" + +[[tool.bumpversion.files]] +filename = "pyproject.toml" +search = "version = \"{current_version}\"" +replace = "version = \"{new_version}\"" + +# [[tool.bumpversion.files]] +# filename = "your_package/__init__.py" +# search = "__version__ = '{current_version}'" +# replace = "__version__ = '{new_version}'" + +# INFO: All those remaining keys are meant for local dev +[tool.pyright] +include = ["."] +exclude = [ + "**/node_modules", + "**/__pycache__", + "src/experimental", + "src/typestubs", +] +ignore = ["src/oldstuff"] +defineConstant = { DEBUG = true } +extraPaths = ["python", "../.."] +stubPath = "src/stubs" + +reportMissingImports = true +reportMissingTypeStubs = false +typeCheckingMode = "basic" + +pythonVersion = "3.10" +pythonPlatform = "Windows" + +[tool.pytest.ini_options] +log_level = "DEBUG" +log_cli = true +markers = [ + "wip: tests that aren't fully finished yet", + "heavy: marks tests as heavy (deselect with '-m \"not heavy\"')", + +] +filterwarnings = ["ignore::UserWarning", 'ignore::DeprecationWarning'] + +[tool.isort] +profile = "black" +line_length = 88 +auto_identify_namespace_packages = false +# NOTE: +# pyright doesn't like implicit namespace + single line (related to https://github.com/microsoft/pyright/issues/2882?) but it's horible so I'll live with it +force_single_line = false +known_first_party = ["mtb"] +extend_skip = ["archives"] +combine_straight_imports = true + +[tool.coverage.run] +parallel = true +source = ["docs", "tests", "comfy-mtb"] + +[tool.coverage.report] +fail_under = 90 +show_missing = true + +[tool.coverage.html] +show_contexts = true + +[tool.ruff] +line-length = 79 +extend-exclude = ["./docs/conf.py", "notebooks", "stubs"] + +[tool.ruff.lint] +select = ["A", "B", "C", "D", "E", "F", "FBT", "I", "N", "S", "SIM", "UP", "W"] +# NOTE: +# D102 - undocumented-public-method (noisy) +# D103 - undocumented-public-function (noisy) +# D100 - undocumented-public-module (noisy) +# N802 - invalid-function-name (forced by comfy's arch) +ignore = ["D103", "D102", "D100", "N802"] + +[tool.ruff.lint.per-file-ignores] +# imported but unused +"__init__.py" = ["F401"] +# use of assert detected +"tests/*" = ["S101"] + +[tool.ruff.lint.pydocstyle] +convention = "numpy" + +[tool.mypy] +pretty = true +ignore_missing_imports = true +# exclude auto generated file +exclude = ["docs/conf.py"] + +[tool.codespell] +# exclude auto generated file +skip = "./docs/conf.py,poetry.lock" +check-filenames = true diff --git a/docs/hel-892/storyboard-reference/mtb__web__comfy_shared.js b/docs/hel-892/storyboard-reference/mtb__web__comfy_shared.js new file mode 100644 index 00000000..a777b691 --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__web__comfy_shared.js @@ -0,0 +1,1211 @@ +/** + * @module Shared utilities + * File: comfy_shared.js + * Project: comfy_mtb + * Author: Mel Massadian + * Copyright (c) 2023-2024 Mel Massadian + */ + +// Reference the shared typedefs file +/// + +import { app } from '../../scripts/app.js' +import { api } from '../../scripts/api.js' + +// #region base utils + +// - crude uuid +export function makeUUID() { + let dt = new Date().getTime() + const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { + const r = ((dt + Math.random() * 16) % 16) | 0 + dt = Math.floor(dt / 16) + return (c === 'x' ? r : (r & 0x3) | 0x8).toString(16) + }) + return uuid +} + +//- local storage manager +export class LocalStorageManager { + constructor(namespace) { + this.namespace = namespace + } + + _namespacedKey(key) { + return `${this.namespace}:${key}` + } + + set(key, value) { + const serializedValue = JSON.stringify(value) + localStorage.setItem(this._namespacedKey(key), serializedValue) + } + + get(key, default_val = null) { + const value = localStorage.getItem(this._namespacedKey(key)) + return value ? JSON.parse(value) : default_val + } + + remove(key) { + localStorage.removeItem(this._namespacedKey(key)) + } + + clear() { + for (const key of Object.keys(localStorage).filter((k) => + k.startsWith(`${this.namespace}:`), + )) { + localStorage.removeItem(key) + } + } +} + +// - log utilities + +function createLogger(emoji, color, consoleMethod = 'log') { + return (message, ...args) => { + if (window.MTB?.DEBUG) { + console[consoleMethod]( + `%c${emoji} ${message}`, + `color: ${color};`, + ...args, + ) + } + } +} + +export const infoLogger = createLogger('ℹ️', 'yellow') +export const warnLogger = createLogger('⚠️', 'orange', 'warn') +export const errorLogger = createLogger('🔥', 'red', 'error') +export const successLogger = createLogger('✅', 'green') + +export const log = (...args) => { + if (window.MTB?.DEBUG) { + console.debug(...args) + } +} + +/** + * Deep merge two objects. + * @param {Object} target - The target object to merge into. + * @param {...Object} sources - The source objects to merge from. + * @returns {Object} - The merged object. + */ +export function deepMerge(target, ...sources) { + if (!sources.length) return target + const source = sources.shift() + + for (const key in source) { + if (source[key] instanceof Object) { + if (!target[key]) Object.assign(target, { [key]: {} }) + deepMerge(target[key], source[key]) + } else { + Object.assign(target, { [key]: source[key] }) + } + } + + return deepMerge(target, ...sources) +} + +// #endregion + +// #region widget utils +export const CONVERTED_TYPE = 'converted-widget' + +export function hideWidget(node, widget, suffix = '') { + widget.origType = widget.type + widget.hidden = true + widget.origComputeSize = widget.computeSize + widget.origSerializeValue = widget.serializeValue + widget.computeSize = () => [0, -4] // -4 is due to the gap litegraph adds between widgets automatically + widget.type = CONVERTED_TYPE + suffix + widget.serializeValue = () => { + // Prevent serializing the widget if we have no input linked + const { link } = node.inputs.find((i) => i.widget?.name === widget.name) + if (link == null) { + return undefined + } + return widget.origSerializeValue + ? widget.origSerializeValue() + : widget.value + } + + // Hide any linked widgets, e.g. seed+seedControl + if (widget.linkedWidgets) { + for (const w of widget.linkedWidgets) { + hideWidget(node, w, `:${widget.name}`) + } + } +} + +/** + * Show widget + * + * @param {import("../../../web/types/litegraph.d.ts").IWidget} widget - target widget + */ +export function showWidget(widget) { + widget.type = widget.origType + widget.computeSize = widget.origComputeSize + widget.serializeValue = widget.origSerializeValue + + delete widget.origType + delete widget.origComputeSize + delete widget.origSerializeValue + + // Hide any linked widgets, e.g. seed+seedControl + if (widget.linkedWidgets) { + for (const w of widget.linkedWidgets) { + showWidget(w) + } + } +} + +export function convertToWidget(node, widget) { + showWidget(widget) + const sz = node.size + node.removeInput(node.inputs.findIndex((i) => i.widget?.name === widget.name)) + + for (const widget of node.widgets) { + widget.last_y -= LiteGraph.NODE_SLOT_HEIGHT + } + + // Restore original size but grow if needed + node.setSize([Math.max(sz[0], node.size[0]), Math.max(sz[1], node.size[1])]) +} + +export function convertToInput(node, widget, config) { + hideWidget(node, widget) + + const { linkType } = getWidgetType(config) + + // Add input and store widget config for creating on primitive node + const sz = node.size + node.addInput(widget.name, linkType, { + widget: { name: widget.name, config }, + }) + + for (const widget of node.widgets) { + widget.last_y += LiteGraph.NODE_SLOT_HEIGHT + } + + // Restore original size but grow if needed + node.setSize([Math.max(sz[0], node.size[0]), Math.max(sz[1], node.size[1])]) +} + +export function hideWidgetForGood(node, widget, suffix = '') { + widget.origType = widget.type + widget.origComputeSize = widget.computeSize + widget.origSerializeValue = widget.serializeValue + widget.computeSize = () => [0, -4] // -4 is due to the gap litegraph adds between widgets automatically + widget.type = CONVERTED_TYPE + suffix + // widget.serializeValue = () => { + // // Prevent serializing the widget if we have no input linked + // const w = node.inputs?.find((i) => i.widget?.name === widget.name); + // if (w?.link == null) { + // return undefined; + // } + // return widget.origSerializeValue ? widget.origSerializeValue() : widget.value; + // }; + + // Hide any linked widgets, e.g. seed+seedControl + if (widget.linkedWidgets) { + for (const w of widget.linkedWidgets) { + hideWidgetForGood(node, w, `:${widget.name}`) + } + } +} + +export function fixWidgets(node) { + if (node.inputs) { + for (const input of node.inputs) { + log(input) + if (input.widget || node.widgets) { + // if (newTypes.includes(input.type)) { + const matching_widget = node.widgets.find((w) => w.name === input.name) + if (matching_widget) { + // if (matching_widget.hidden) { + // log(`Already hidden skipping ${matching_widget.name}`) + // continue + // } + const w = node.widgets.find((w) => w.name === matching_widget.name) + if (w && w.type !== CONVERTED_TYPE) { + log(w) + log(`hidding ${w.name}(${w.type}) from ${node.type}`) + log(node) + hideWidget(node, w) + } else { + log(`converting to widget ${w}`) + + convertToWidget(node, input) + } + } + } + } + } +} +export function inner_value_change(widget, val, event = undefined) { + let value = val + if (widget.type === 'number' || widget.type === 'BBOX') { + value = Number(value) + } else if (widget.type === 'BOOL') { + value = Boolean(value) + } + widget.value = corrected_value + if ( + widget.options?.property && + node.properties[widget.options.property] !== undefined + ) { + node.setProperty(widget.options.property, value) + } + if (widget.callback) { + widget.callback(widget.value, app.canvas, node, pos, event) + } +} + +export const getNamedWidget = (node, ...names) => { + const out = {} + + for (const name of names) { + out[name] = node.widgets.find((w) => w.name === name) + } + + return out +} + +/** + * @param {LGraphNode} node + * @param {LLink} link + * @returns {{to:LGraphNode, from:LGraphNode, type:'error' | 'incoming' | 'outgoing'}} + */ +export const nodesFromLink = (node, link) => { + const fromNode = app.graph.getNodeById(link.origin_id) + const toNode = app.graph.getNodeById(link.target_id) + + let tp = 'error' + + if (fromNode.id === node.id) { + tp = 'outgoing' + } else if (toNode.id === node.id) { + tp = 'incoming' + } + + return { to: toNode, from: fromNode, type: tp } +} + +export const hasWidgets = (node) => { + if (!node.widgets || !node.widgets?.[Symbol.iterator]) { + return false + } + return true +} + +export const cleanupNode = (node) => { + if (!hasWidgets(node)) { + return + } + for (const w of node.widgets) { + if (w.canvas) { + w.canvas.remove() + } + if (w.inputEl) { + w.inputEl.remove() + } + // calls the widget remove callback + w.onRemoved?.() + } +} + +export function offsetDOMWidget( + widget, + ctx, + node, + widgetWidth, + widgetY, + height, +) { + const margin = 10 + const elRect = ctx.canvas.getBoundingClientRect() + const transform = new DOMMatrix() + .scaleSelf( + elRect.width / ctx.canvas.width, + elRect.height / ctx.canvas.height, + ) + .multiplySelf(ctx.getTransform()) + .translateSelf(margin, margin + widgetY) + + const scale = new DOMMatrix().scaleSelf(transform.a, transform.d) + Object.assign(widget.inputEl.style, { + transformOrigin: '0 0', + transform: scale, + left: `${transform.a + transform.e}px`, + top: `${transform.d + transform.f}px`, + width: `${widgetWidth - margin * 2}px`, + // height: `${(widget.parent?.inputHeight || 32) - (margin * 2)}px`, + height: `${(height || widget.parent?.inputHeight || 32) - margin * 2}px`, + + position: 'absolute', + background: !node.color ? '' : node.color, + color: !node.color ? '' : 'white', + zIndex: 5, //app.graph._nodes.indexOf(node), + }) +} + +/** + * Extracts the type and link type from a widget config object. + * @param {*} config + * @returns + */ +export function getWidgetType(config) { + // Special handling for COMBO so we restrict links based on the entries + let type = config?.[0] + let linkType = type + if (Array.isArray(type)) { + type = 'COMBO' + linkType = linkType.join(',') + } + return { type, linkType } +} + +// #endregion + +// #region dynamic connections +/** + * @param {NodeType} nodeType The nodetype to attach the documentation to + * @param {str} prefix A prefix added to each dynamic inputs + * @param {str | [str]} inputType The datatype(s) of those dynamic inputs + * @param {{separator?:string, start_index?:number, link?:LLink, ioSlot?:INodeInputSlot | INodeOutputSlot}?} [opts] Extra options + * @returns + */ +export const setupDynamicConnections = ( + nodeType, + prefix, + inputType, + opts = undefined, +) => { + infoLogger( + 'Setting up dynamic connections for', + Object.getOwnPropertyDescriptors(nodeType).title.value, + ) + + /** @type {{separator:string, start_index:number, link?:LLink, ioSlot?:INodeInputSlot | INodeOutputSlot}?} */ + const options = Object.assign( + { + separator: '_', + start_index: 1, + }, + opts || {}, + ) + const onNodeCreated = nodeType.prototype.onNodeCreated + const inputList = typeof inputType === 'object' + + nodeType.prototype.onNodeCreated = function () { + const r = onNodeCreated ? onNodeCreated.apply(this, []) : undefined + this.addInput( + `${prefix}${options.separator}${options.start_index}`, + inputList ? '*' : inputType, + ) + return r + } + + const onConnectionsChange = nodeType.prototype.onConnectionsChange + /** + * @param {OnConnectionsChangeParams} args + */ + nodeType.prototype.onConnectionsChange = function (...args) { + const [type, slotIndex, isConnected, link, ioSlot] = args + + options.link = link + options.ioSlot = ioSlot + const r = onConnectionsChange + ? onConnectionsChange.apply(this, [ + type, + slotIndex, + isConnected, + link, + ioSlot, + ]) + : undefined + options.DEBUG = { + node: this, + type, + slotIndex, + isConnected, + link, + ioSlot, + } + + dynamic_connection( + this, + slotIndex, + isConnected, + `${prefix}${options.separator}`, + inputType, + options, + ) + return r + } +} + +/** + * Main logic around dynamic inputs + * + * @param {LGraphNode} node - The target node + * @param {number} index - The slot index of the currently changed connection + * @param {bool} connected - Was this event connecting or disconnecting + * @param {string} [connectionPrefix] - The common prefix of the dynamic inputs + * @param {string|[string]} [connectionType] - The type of the dynamic connection + * @param {{start_index?:number, link?:LLink, ioSlot?:INodeInputSlot | INodeOutputSlot}} [opts] - extra options + */ +export const dynamic_connection = ( + node, + index, + connected, + connectionPrefix = 'input_', + connectionType = '*', + opts = undefined, +) => { + /* {{start_index:number, link?:LLink, ioSlot?:INodeInputSlot | INodeOutputSlot}} [opts] - extra options*/ + const options = Object.assign( + { + start_index: 1, + }, + opts || {}, + ) + + // function to test if input is a dynamic one + const isDynamicInput = (inputName) => inputName.startsWith(connectionPrefix) + + if (node.inputs.length > 0 && !isDynamicInput(node.inputs[index].name)) { + return + } + + const listConnection = typeof connectionType === 'object' + + const conType = listConnection ? '*' : connectionType + const nameArray = options.nameArray || [] + + const clean_inputs = () => { + if (node.inputs.length === 0) return + + let w_count = node.widgets?.length || 0 + let i_count = node.inputs?.length || 0 + infoLogger(`Cleaning inputs: [BEFORE] (w: ${w_count} | inputs: ${i_count})`) + + const to_remove = [] + for (let n = 1; n < node.inputs.length; n++) { + const element = node.inputs[n] + if (!element.link && isDynamicInput(element.name)) { + if (node.widgets) { + const w = node.widgets.find((w) => w.name === element.name) + if (w) { + w.onRemoved?.() + node.widgets.length = node.widgets.length - 1 + } + } + infoLogger(`Removing input ${n}`) + to_remove.push(n) + } + } + for (let i = 0; i < to_remove.length; i++) { + const id = to_remove[i] + + node.removeInput(id) + i_count -= 1 + } + node.inputs.length = i_count + + w_count = node.widgets?.length || 0 + i_count = node.inputs?.length || 0 + infoLogger(`Cleaning inputs: [AFTER] (w: ${w_count} | inputs: ${i_count})`) + + infoLogger('Cleaning inputs: making it sequential again') + // make inputs sequential again + let prefixed_idx = options.start_index + for (let i = 0; i < node.inputs.length; i++) { + let name = '' + // rename only prefixed inputs + if (isDynamicInput(node.inputs[i].name)) { + // prefixed => rename and increase index + name = `${connectionPrefix}${prefixed_idx}` + prefixed_idx += 1 + } else { + // not prefixed => keep same name + name = node.inputs[i].name + } + + if (nameArray.length > 0) { + name = i < nameArray.length ? nameArray[i] : name + } + + // preserve label if it exists + node.inputs[i].label = node.inputs[i].label || name + node.inputs[i].name = name + } + } + if (!connected) { + if (!options.link) { + infoLogger('Disconnecting', { options }) + + clean_inputs() + } else { + if (!options.ioSlot.link) { + node.connectionTransit = true + } else { + node.connectionTransit = false + clean_inputs() + } + infoLogger('Reconnecting', { options }) + } + } + + if (connected) { + if (options.link) { + const { from, to, type } = nodesFromLink(node, options.link) + if (type === 'outgoing') return + infoLogger('Connecting', { options, from, to, type }) + } else { + infoLogger('Connecting', { options }) + } + + if (node.connectionTransit) { + infoLogger('In Transit') + node.connectionTransit = false + } + + // Remove inputs and their widget if not linked. + clean_inputs() + + if (node.inputs.length === 0) return + // add an extra input + if (node.inputs[node.inputs.length - 1].link !== null) { + // count only the prefixed inputs + const nextIndex = node.inputs.reduce( + (acc, cur) => (isDynamicInput(cur.name) ? ++acc : acc), + 0, + ) + + const name = + nextIndex < nameArray.length + ? nameArray[nextIndex] + : `${connectionPrefix}${nextIndex + options.start_index}` + + infoLogger(`Adding input ${nextIndex + 1} (${name})`) + node.addInput(name, conType) + } + } +} +// #endregion + +// #region color utils +export function isColorBright(rgb, threshold = 240) { + const brightess = getBrightness(rgb) + return brightess > threshold +} + +function getBrightness(rgbObj) { + return Math.round( + (Number.parseInt(rgbObj[0]) * 299 + + Number.parseInt(rgbObj[1]) * 587 + + Number.parseInt(rgbObj[2]) * 114) / + 1000, + ) +} +// #endregion + +// #region html/css utils + +/** + * Calculate total height of DOM element child + * + * @param {HTMLElement} parentElement - The target dom element + * @returns {number} the total height + */ +export function calculateTotalChildrenHeight(parentElement) { + let totalHeight = 0 + + for (const child of parentElement.children) { + const style = window.getComputedStyle(child) + + // Get height as an integer (without 'px') + const height = Number.parseInt(style.height, 10) + + // Get vertical margin as integers + const marginTop = Number.parseInt(style.marginTop, 10) + const marginBottom = Number.parseInt(style.marginBottom, 10) + + // Sum up height and vertical margins + totalHeight += height + marginTop + marginBottom + } + + return totalHeight +} + +export const loadScript = ( + FILE_URL, + async = true, + type = 'text/javascript', +) => { + return new Promise((resolve, reject) => { + try { + // Check if the script already exists + const existingScript = document.querySelector(`script[src="${FILE_URL}"]`) + if (existingScript) { + resolve({ status: true, message: 'Script already loaded' }) + return + } + + const scriptEle = document.createElement('script') + scriptEle.type = type + scriptEle.async = async + scriptEle.src = FILE_URL + + scriptEle.addEventListener('load', (_ev) => { + resolve({ status: true }) + }) + + scriptEle.addEventListener('error', (_ev) => { + reject({ + status: false, + message: `Failed to load the script ${FILE_URL}`, + }) + }) + + document.body.appendChild(scriptEle) + } catch (error) { + reject(error) + } + }) +} + +// #endregion + +// #region documentation widget + +const create_documentation_stylesheet = () => { + const tag = 'mtb-documentation-stylesheet' + + let styleTag = document.head.querySelector(tag) + + if (!styleTag) { + styleTag = document.createElement('style') + styleTag.type = 'text/css' + styleTag.id = tag + + styleTag.innerHTML = ` +.documentation-popup { + background: var(--comfy-menu-bg); + position: absolute; + color: var(--fg-color); + font: 12px monospace; + line-height: 1.5em; + padding: 10px; + border-radius: 6px; + pointer-events: "inherit"; + z-index: 5; + overflow: hidden; +} +.documentation-wrapper { + padding: 0 2em; + overflow: auto; + max-height: 100%; + /* Scrollbar styling for Chrome */ + &::-webkit-scrollbar { + width: 6px; + } + &::-webkit-scrollbar-track { + background: var(--bg-color); + } + &::-webkit-scrollbar-thumb { + background-color: var(--fg-color); + border-radius: 6px; + border: 3px solid var(--bg-color); + } + + /* Scrollbar styling for Firefox */ + scrollbar-width: thin; + scrollbar-color: var(--fg-color) var(--bg-color); + a { + color: yellow; + } + a:visited { + color: orange; + } + a:hover { + color: red; + } +} + +.documentation-popup img { + max-width: 100%; +} +.documentation-popup table { + border-collapse: collapse; + border: 1px var(--border-color) solid; +} +.documentation-popup th, +.documentation-popup td { + border: 1px var(--border-color) solid; +} +.documentation-popup th { + background-color: var(--comfy-input-bg); +}` + document.head.appendChild(styleTag) + } +} +let parserPromise +const callbackQueue = [] + +function runQueuedCallbacks() { + while (callbackQueue.length) { + const cb = callbackQueue.shift() + cb(window.MTB.mdParser) + } +} + +function loadParser(shiki) { + if (!parserPromise) { + parserPromise = import( + shiki + ? '/mtb_async/mtb_markdown_plus.umd.js' + : '/mtb_async/mtb_markdown.umd.js' + ) + .then((_module) => + shiki ? MTBMarkdownPlus.getParser() : MTBMarkdown.getParser(), + ) + .then((instance) => { + window.MTB.mdParser = instance + runQueuedCallbacks() + return instance + }) + .catch((error) => { + console.error('Error loading the parser:', error) + }) + } + return parserPromise +} + +export const ensureMarkdownParser = async (callback) => { + infoLogger('Ensuring md parser') + let use_shiki = false + try { + use_shiki = await api.getSetting('mtb.Use Shiki') + } catch (e) { + console.warn('Option not available yet', e) + } + + if (window.MTB?.mdParser) { + infoLogger('Markdown parser found') + callback?.(window.MTB.mdParser) + return window.MTB.mdParser + } + + if (!parserPromise) { + infoLogger('Running promise to fetch parser') + + try { + loadParser(use_shiki) //.then(() => { + // callback?.(window.MTB.mdParser) + // }) + } catch (error) { + console.error('Error loading the parser:', error) + } + } else { + infoLogger('A similar promise is already running, waiting for it to finish') + } + if (callback) { + callbackQueue.push(callback) + } + + await parserPromise + await parserPromise + + return window.MTB.mdParser +} + +/** + * Add documentation widget to the given node. + * + * This method will add a `docCtrl` property to the node + * that contains the AbortController that manages all the events + * defined inside it (global and instance ones) without explicit + * cleanup method for each. + * + * @param {NodeData} nodeData + * @param {NodeType} nodeType + * @param {DocumentationOptions} opts + */ +export const addDocumentation = ( + nodeData, + nodeType, + opts = { icon_size: 14, icon_margin: 4 }, +) => { + if (!nodeData.description) { + infoLogger( + `Skipping ${nodeData.name} doesn't have a description, skipping...`, + ) + return + } + + const options = opts || {} + const iconSize = options.icon_size || 14 + const iconMargin = options.icon_margin || 4 + + let docElement = null + let wrapper = null + + const onRem = nodeType.prototype.onRemoved + + nodeType.prototype.onRemoved = function () { + const r = onRem ? onRem.apply(this, []) : undefined + + if (docElement) { + docElement.remove() + docElement = null + } + + if (wrapper) { + wrapper.remove() + wrapper = null + } + return r + } + + const drawFg = nodeType.prototype.onDrawForeground + + /** + * @param {OnDrawForegroundParams} args + */ + nodeType.prototype.onDrawForeground = function (...args) { + const [ctx, _canvas] = args + const r = drawFg ? drawFg.apply(this, args) : undefined + + if (this.flags.collapsed) return r + + // icon position + const x = this.size[0] - iconSize - iconMargin + + let resizeHandle + // create it + if (this.show_doc && docElement === null) { + create_documentation_stylesheet() + + docElement = document.createElement('div') + docElement.classList.add('documentation-popup') + document.body.appendChild(docElement) + + wrapper = document.createElement('div') + wrapper.classList.add('documentation-wrapper') + docElement.appendChild(wrapper) + + // wrapper.innerHTML = documentationConverter.makeHtml(nodeData.description) + + ensureMarkdownParser().then(() => { + MTB.mdParser.parse(nodeData.description).then((e) => { + wrapper.innerHTML = e + // resize handle + resizeHandle = document.createElement('div') + resizeHandle.classList.add('doc-resize-handle') + resizeHandle.style.width = '0' + resizeHandle.style.height = '0' + resizeHandle.style.position = 'absolute' + resizeHandle.style.bottom = '0' + resizeHandle.style.right = '0' + + resizeHandle.style.cursor = 'se-resize' + resizeHandle.style.userSelect = 'none' + + resizeHandle.style.borderWidth = '15px' + resizeHandle.style.borderStyle = 'solid' + + resizeHandle.style.borderColor = + 'transparent var(--border-color) var(--border-color) transparent' + + wrapper.appendChild(resizeHandle) + let isResizing = false + + let startX + let startY + let startWidth + let startHeight + + resizeHandle.addEventListener( + 'mousedown', + (e) => { + e.stopPropagation() + isResizing = true + startX = e.clientX + startY = e.clientY + startWidth = Number.parseInt( + document.defaultView.getComputedStyle(docElement).width, + 10, + ) + startHeight = Number.parseInt( + document.defaultView.getComputedStyle(docElement).height, + 10, + ) + }, + + { signal: this.docCtrl.signal }, + ) + + document.addEventListener( + 'mousemove', + (e) => { + if (!isResizing) return + const scale = app.canvas.ds.scale + const newWidth = startWidth + (e.clientX - startX) / scale + const newHeight = startHeight + (e.clientY - startY) / scale + + docElement.style.width = `${newWidth}px` + docElement.style.height = `${newHeight}px` + + this.docPos = { + width: `${newWidth}px`, + height: `${newHeight}px`, + } + }, + { signal: this.docCtrl.signal }, + ) + + document.addEventListener( + 'mouseup', + () => { + isResizing = false + }, + { signal: this.docCtrl.signal }, + ) + }) + }) + } else if (!this.show_doc && docElement !== null) { + docElement.remove() + docElement = null + } + + // reposition + if (this.show_doc && docElement !== null) { + const rect = ctx.canvas.getBoundingClientRect() + + const dpi = Math.max(1.0, window.devicePixelRatio) + const scaleX = rect.width / ctx.canvas.width + const scaleY = rect.height / ctx.canvas.height + const transform = new DOMMatrix() + .scaleSelf(scaleX, scaleY) + .multiplySelf(ctx.getTransform()) + .translateSelf(this.size[0] * scaleX * dpi, 0) + .translateSelf(10, -32) + + const scale = new DOMMatrix().scaleSelf(transform.a, transform.d) + + Object.assign(docElement.style, { + transformOrigin: '0 0', + transform: scale, + left: `${transform.a + rect.x + transform.e}px`, + top: `${transform.d + rect.y + transform.f}px`, + width: this.docPos ? this.docPos.width : `${this.size[0] * 1.5}px`, + height: this.docPos?.height, + }) + + if (this.docPos === undefined) { + this.docPos = { + width: docElement.style.width, + height: docElement.style.height, + } + } + } + + ctx.save() + ctx.translate(x, iconSize - 34) + ctx.scale(iconSize / 32, iconSize / 32) + ctx.strokeStyle = 'rgba(255,255,255,0.3)' + + ctx.lineCap = 'round' + ctx.lineJoin = 'round' + + ctx.lineWidth = 2.4 + ctx.font = 'bold 36px monospace' + ctx.fillText('?', 0, 24) + + // ctx.font = `bold ${this.show_doc ? 36 : 24}px monospace` + // ctx.fillText(`${this.show_doc ? '▼' : '▶'}`, 24, 24) + ctx.restore() + + return r + } + const mouseDown = nodeType.prototype.onMouseDown + + /** + * @param {OnMouseDownParams} args + */ + nodeType.prototype.onMouseDown = function (...args) { + const [_event, localPos, _graphCanvas] = args + const r = mouseDown ? mouseDown.apply(this, args) : undefined + const iconX = this.size[0] - iconSize - iconMargin + const iconY = iconSize - 34 + if ( + localPos[0] > iconX && + localPos[0] < iconX + iconSize && + localPos[1] > iconY && + localPos[1] < iconY + iconSize + ) { + // Pencil icon was clicked, open the editor + // this.openEditorDialog(); + if (this.show_doc === undefined) { + this.show_doc = true + } else { + this.show_doc = !this.show_doc + } + if (this.show_doc) { + this.docCtrl = new AbortController() + } else { + this.docCtrl.abort() + } + return true // Return true to indicate the event was handled + } + + return r // Return false to let the event propagate + + // return r; + } +} + +// #endregion + +// #region node extensions + +/** + * Extend an object, either replacing the original property or extending it. + * @param {Object} object - The object to which the property belongs. + * @param {string} property - The name of the property to chain the callback to. + * @param {Function} callback - The callback function to be chained. + */ +export function extendPrototype(object, property, callback) { + if (object === undefined) { + console.error('Could not extend undefined object', { object, property }) + return + } + if (property in object) { + const callback_orig = object[property] + object[property] = function (...args) { + const r = callback_orig.apply(this, args) + callback.apply(this, args) + return r + } + } else { + object[property] = callback + } +} + +/** + * Appends a callback to the extra menu options of a given node type. + * @param {NodeType} nodeType + * @param {(app,options) => ContextMenuItem[]} cb + */ +export function addMenuHandler(nodeType, cb) { + const getOpts = nodeType.prototype.getExtraMenuOptions + /** + * @returns {ContextMenuItem[]} items + */ + nodeType.prototype.getExtraMenuOptions = function (app, options) { + const r = getOpts.apply(this, [app, options]) || [] + const newItems = cb.apply(this, [app, options]) || [] + return [...r, ...newItems] + } +} + +/** Prefixes the node title with '[DEPRECATED]' and log the deprecation reason to the console.*/ +export const addDeprecation = (nodeType, reason) => { + const title = nodeType.title + nodeType.title = `[DEPRECATED] ${title}` + // console.log(nodeType) + + const styles = { + title: 'font-size:1.3em;font-weight:900;color:yellow; background: black', + reason: 'font-size:1.2em', + } + console.log( + `%c! ${title} is deprecated:%c ${reason}`, + styles.title, + styles.reason, + ) +} + +// #endregion + +// #region Actions API +export const runAction = async (name, ...args) => { + const req = await api.fetchApi('/mtb/actions', { + method: 'POST', + body: JSON.stringify({ + name, + args, + }), + }) + + const res = await req.json() + return res.result +} +export const getServerInfo = async () => { + const res = await api.fetchApi('/mtb/server-info') + return await res.json() +} +export const setServerInfo = async (opts) => { + await api.fetchApi('/mtb/server-info', { + method: 'POST', + body: JSON.stringify(opts), + }) +} + +// #endregion + +// #region Authoring API / graph utilities +export const getAPIInputs = () => { + const inputs = {} + let counter = 1 + for (const node of getNodes(true)) { + const widgets = node.widgets + + if (node.properties.mtb_api && node.properties.useAPI) { + if (node.properties.mtb_api.inputs) { + for (const currentName in node.properties.mtb_api.inputs) { + const current = node.properties.mtb_api.inputs[currentName] + if (current.enabled) { + const inputName = current.name || currentName + const widget = widgets.find((w) => w.name === currentName) + if (!widget) continue + if (!(inputName in inputs)) { + inputs[inputName] = { + ...current, + id: counter, + name: inputName, + type: current.type, + node_id: node.id, + widgets: [], + } + } + inputs[inputName].widgets.push(widget) + counter = counter + 1 + } + } + } + } + } + return inputs +} + +export const getNodes = (skip_unused) => { + const nodes = [] + for (const outerNode of app.graph.computeExecutionOrder(false)) { + const skipNode = + (outerNode.mode === 2 || outerNode.mode === 4) && skip_unused + const innerNodes = + !skipNode && outerNode.getInnerNodes + ? outerNode.getInnerNodes() + : [outerNode] + for (const node of innerNodes) { + if ((node.mode === 2 || node.mode === 4) && skip_unused) { + continue + } + nodes.push(node) + } + } + return nodes +} +// #endregion diff --git a/docs/hel-892/storyboard-reference/mtb__web__mtb_ui.js b/docs/hel-892/storyboard-reference/mtb__web__mtb_ui.js new file mode 100644 index 00000000..73b626c9 --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__web__mtb_ui.js @@ -0,0 +1,516 @@ +/** + * Adds a named stylesheet to the document with an optional ability to replace an existing one. + * + * @param {string} name - The unique name (ID) of the stylesheet. + * @param {string} css - The CSS rules as a string. + * @param {boolean} [force=false] - Whether to replace the existing stylesheet if it exists. + * @returns {void} + */ +export function addNamedStyleSheet(name, css, force = false) { + const existingStyleSheet = document.getElementById(name) + + if (existingStyleSheet && !force) { + console.debug( + `Stylesheet with name "${name}" already exists. Skipping addition.`, + ) + return + } + + if (existingStyleSheet && force) { + console.debug(`Stylesheet with name "${name}" exists. Replacing...`) + existingStyleSheet.remove() + } + + const styleElement = document.createElement('style') + styleElement.id = name + styleElement.type = 'text/css' + + styleElement.appendChild(document.createTextNode(css)) + document.head.appendChild(styleElement) + + console.debug(`Stylesheet with name "${name}" added.`) +} + +export const ensureMTBStyles = () => { + const S = { + fg: 'var(--fg-color)', + bgi: 'var(--comfy-input-bg)', + bgm: 'var(--comfy-menu-bg)', + border: 'var(--comfy-border)', + borderHover: 'var(--comfy-border-hover)', + box: 'var(--comfy-box)', + accent: 'var(--p-button-text-primary-color)', + } + const common = ` +.mtb_sidebar { + display: flex; + flex-direction: column; + background: ${S.bgm}; +} +.mtb_img_grid { + display: flex; + flex-wrap: wrap; + overflow: scroll; + gap: 1em; + align-items: center; + justify-content: center; + height: 100%; + width: 100%; +} +.mtb_tools { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + width: 100%; +} +` + const inputs = ` +/* SELECT */ +.mtb_select { + appearance: none; + display: grid; + grid-template-areas: "select"; + padding: 10px; + background-color: ${S.bgi}; + border: none; + border-radius: 5px; + font-size: 14px; + color: ${S.fg}; + cursor: pointer; + width: 100%; +} + +@supports (-moz-appearance:none) { +.mtb_select{ + grid-area: select; + background: ${S.bgi} url('data:image/gif;base64,R0lGODlhBgAGAKEDAFVVVX9/f9TU1CgmNyH5BAEKAAMALAAAAAAGAAYAAAIODA4hCDKWxlhNvmCnGwUAOw==') right center no-repeat !important; + background-position: calc(100% - 5px) center !important; + -moz-appearance:none !important; +} + +/* styling the dropdown arrow for browsers that support it */ +.mtb_select:after { + content: ""; + width: 0.8em; + height: 0.5em; + background-color: ${S.fg}; + clip-path: polygon(100% 0%, 0 0%, 50% 100%); +} + +.mtb_select:focus { + outline: none; + border-color: #0056b3; +} + +.mtb_select > option { + padding: 10px; + background-color: ${S.bgi}; + border:none; + color: ${S.fg}; +} + +.mtb_select > option:hover { + background-color: red; + color: ${S.fg}; +} + +/* SLIDER */ +.mtb_slider[type="range"] { + -webkit-appearance: none; + appearance: none; + width: 100%; + height: 10px; + background: ${S.bgm}; + border-radius: 5px; + outline: none; + opacity: 0.7; + transition: opacity .2s; + padding: 1em; +} + +/* slider track */ +.mtb_slider[type="range"]::-webkit-slider-runnable-track, +.mtb_slider[type="range"]::-moz-range-track { + width: 100%; + height: 10px; + background: ${S.bgi}; + border-radius: 5px; +} + + +/* progress */ +.mtb_slider[type="range"]::-moz-range-progress { + background-color: ${S.accent}; + height:10px; + border-radius: 5px; +} + +/* slider thumb (the handle) */ +.mtb_slider[type="range"]::-webkit-slider-thumb, +.mtb_slider[type="range"]::-moz-range-thumb +{ + -webkit-appearance: none; + appearance: none; + width: 15px; + height: 15px; + border-radius: 50%; + background: ${S.fg}; + border: none; + cursor: pointer; + filter: drop-shadow(1px 1px 4px black); +} + +.mtb_slider[type="range"]:focus { + opacity: 1; +} + +.mtb_slider[type=range]:-moz-focusring{ + outline: 1px solid red; + outline-offset: -1px; +} + +.mtb_slider[type="range"]:hover::-webkit-slider-thumb, +.mtb_slider[type="range"]:active::-webkit-slider-thumb { + background-color: ${S.accent}; +} +` + addNamedStyleSheet( + 'mtb_ui', + ` +${common} +${inputs} +`, + ) +} + +/** + * Wrap an element with a div + * + * @param {Object} [style] - CSS styles to apply to the element. + * @returns {HTMLElement} - The created DOM element. + */ +export const wrapElement = (element, style = {}) => { + const container = makeElement('div', style) + container.appendChild(element) + return container +} + +/** + * Creates a DOM element with optional styles, class, and id. + * + * @param {string} kind - The tag name of the element. Supports class and id syntax (e.g. 'div.class#id'). + * @param {Object} [style] - CSS styles to apply to the element. + * @returns {HTMLElement} - The created DOM element. + */ +export const makeElement = (kind, style) => { + let [real_kind, className] = kind.split('.') + let id + + if (className?.includes('#')) { + ;[className, id] = className.split('#') + } + + const el = document.createElement(real_kind) + + if (style) { + Object.assign(el.style, style) + } + + if (className) { + el.classList.add(...className.split(' ')) // Support multiple classes + } + + if (id) { + el.id = id + } + + return el +} +/** + * Clears all child elements of the given parent element. + * + * @param {HTMLElement} el - The parent element whose children should be removed. + */ +export const clearElement = (el) => { + while (el.firstChild) { + el.removeChild(el.firstChild) + } +} +/** + * Creates a labeled element (input, select, etc.). + * + * @param {HTMLElement} el - The element to label. + * @param {string} labelText - The label text. + * @returns {HTMLDivElement} - A div containing the label and the element. + */ +export const makeLabeledElement = (el, labelText) => { + const wrapper = makeElement('div.mtb_labeled_element', { + marginBottom: '1em', + }) + const label = makeElement('label', { + display: 'block', + marginBottom: '0.5em', + }) + label.textContent = labelText + wrapper.appendChild(label) + wrapper.appendChild(el) + return wrapper +} + +/** + * Converts a camelCase CSS property to kebab-case. + * + * @param {string} prop - The camelCase CSS property. + * @returns {string} - The kebab-case CSS property. + */ +const camelToKebab = (prop) => + prop.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`) + +/** + * Parses the style string into an object of CSS property-value pairs. + * + * @param {string} styleString - The CSS rule text (e.g., "color: red; background-color: blue;"). + * @returns {Object} - An object with camelCase CSS properties. + */ +const parseStyleString = (styleString) => { + const styleObj = {} + for (const rule of styleString.split(';')) { + const [property, value] = rule.split(':').map((item) => item.trim()) + if (property && value) { + const camelProp = property.replace(/-([a-z])/g, (g) => g[1].toUpperCase()) + styleObj[camelProp] = value + } + } + return styleObj +} + +/** + * Defines a new CSS class with the provided styles, or skips if the class already exists. + * + * @param {string} className - The name of the CSS class to define. + * @param {Object} classStyles - An object containing camelCase CSS property-value pairs. + */ +export function defineCSSClass(className, classStyles) { + const styleSheets = document.styleSheets + let classExists = false + let existingStyleString = '' + const classExistsInStyleSheet = (styleSheet) => { + const rules = styleSheet.rules || styleSheet.cssRules + for (const rule of rules) { + if (rule.selectorText === `.${className}`) { + classExists = true + existingStyleString = rule.style.cssText // Capture existing styles + return true + } + } + return false + } + + for (const styleSheet of styleSheets) { + if (classExistsInStyleSheet(styleSheet)) { + console.debug(`Class ${className} already exists, merging styles...`) + break + } + } + const existingStyles = classExists + ? parseStyleString(existingStyleString) + : {} + const mergedStyles = { ...existingStyles, ...classStyles } + + const stylesString = Object.entries(mergedStyles) + .map(([key, value]) => `${camelToKebab(key)}: ${value};`) + .join(' ') + + if (!classExists) { + console.debug(`Defining new class ${className}...`) + if (styleSheets[0].insertRule) { + styleSheets[0].insertRule(`.${className} { ${stylesString} }`, 0) + } else if (styleSheets[0].addRule) { + styleSheets[0].addRule(`.${className}`, stylesString, 0) + } + } else { + console.debug(`Updating existing class ${className} with merged styles...`) + for (const styleSheet of styleSheets) { + const rules = styleSheet.rules || styleSheet.cssRules + for (const rule of rules) { + if (rule.selectorText === `.${className}`) { + rule.style.cssText = stylesString // Update the existing rule + } + } + } + } + + console.debug( + `Class ${className} has been defined/updated with styles:`, + mergedStyles, + ) +} + +/** + * Renders a sidebar and ensures it resizes correctly when the window is resized. + * + * @param {HTMLElement} el - The element where the sidebar is rendered. + * @param {HTMLElement} cont - The content container of the sidebar. + * @param {HTMLElement[]} elems - Array of elements to append to the sidebar. + * @returns {Object} - A handle with a method to unregister the resize event. + */ +export const renderSidebar = (el, cont, elems) => { + el.appendChild(cont) + + if (!el.parentNode) { + return + } + el.parentNode.style.overflowY = 'clip' + cont.style.height = `${el.parentNode.offsetHeight}px` + + const resizeHandler = () => { + cont.style.height = `${el.parentNode.offsetHeight}px` + } + window.addEventListener('resize', resizeHandler) + + for (const elem of elems) { + cont.appendChild(elem) + } + + return { + unregister: () => { + window.removeEventListener('resize', resizeHandler) + }, + } +} + +/** + * Creates a element. + */ +export const makeSelect = (options, current = undefined) => { + const selector = makeElement('select.mtb_select', { + width: 'auto', + margin: '1em', + }) + + for (const option of options) { + const opt = makeElement('option') + opt.value = option + opt.innerHTML = option + selector.appendChild(opt) + } + + if (current !== undefined) { + if (options.includes(current)) { + selector.value = current + } else { + console.error( + `You tried to select an option that doesn't exist (${current}). Options: ${options}`, + ) + } + } + + return selector +} + +/** + * Creates an slider element with given parameters. + * + * @param {number} min - Minimum value of the slider. + * @param {number} max - Maximum value of the slider. + * @param {number} [value] - Initial value of the slider. + * @param {number} [step] - Step value for the slider. + * @returns {HTMLInputElement} - The created slider element. + */ +export const makeSlider = (min, max, value = undefined, step = undefined) => { + const slider = makeElement('input.mtb_slider', { + width: '100%', + }) + + slider.type = 'range' + slider.min = min || 0 + slider.max = max || 100 + slider.value = value || slider.min + slider.step = step || 1 + + return slider +} + +/** + * Creates a button element. + * + * @param {string} label - The label for the button. + * @param {Object} [style] - Optional styles to apply to the button. + * @param {Function} [onClick] - Optional click handler. + * @returns {HTMLButtonElement} - The created button element. + */ +export const makeButton = (label, style = {}, onClick = undefined) => { + const button = makeElement('button.mtb_button', style) + button.textContent = label + + if (onClick) { + button.addEventListener('click', onClick) + } + + return button +} + +/** + * Creates a resizable splitter between two elements. + * + * @param {HTMLElement} el1 - The first element. + * @param {HTMLElement} el2 - The second element. + * @param {'vertical' | 'horizontal'} direction - Splitter direction (vertical or horizontal). + * @param {'absolute' | 'normal'} mode - Splitter mode: 'absolute' for free resizing, 'normal' for layout-based resizing. + * @returns {HTMLDivElement} - The container with resizable splitter. + */ +export const makeSplitter = ( + el1, + el2, + direction = 'vertical', + mode = 'normal', +) => { + const container = makeElement('div.mtb_splitter_container', { + display: mode === 'absolute' ? 'block' : 'flex', + flexDirection: direction === 'vertical' ? 'row' : 'column', + position: mode === 'absolute' ? 'relative' : 'static', + height: '100%', + width: '100%', + }) + + const handle = makeElement('div.mtb_splitter_handle', { + backgroundColor: '#ccc', + cursor: direction === 'vertical' ? 'col-resize' : 'row-resize', + width: direction === 'vertical' ? '5px' : '100%', + height: direction === 'horizontal' ? '5px' : '100%', + }) + + let isResizing = false + + handle.addEventListener('mousedown', () => { + isResizing = true + }) + + window.addEventListener('mouseup', () => { + isResizing = false + }) + + window.addEventListener('mousemove', (e) => { + if (!isResizing) return + if (direction === 'vertical') { + const newWidth = e.clientX - container.offsetLeft + el1.style.width = `${newWidth}px` + el2.style.width = `${container.offsetWidth - newWidth}px` + } else { + const newHeight = e.clientY - container.offsetTop + el1.style.height = `${newHeight}px` + el2.style.height = `${container.offsetHeight - newHeight}px` + } + }) + + container.appendChild(el1) + container.appendChild(handle) + container.appendChild(el2) + + return container +} diff --git a/docs/hel-892/storyboard-reference/mtb__web__mtb_widgets.js b/docs/hel-892/storyboard-reference/mtb__web__mtb_widgets.js new file mode 100644 index 00000000..c83fd62d --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__web__mtb_widgets.js @@ -0,0 +1,1432 @@ +/** + * File: mtb_widgets.js + * Project: comfy_mtb + * Author: Mel Massadian + * + * Copyright (c) 2023 Mel Massadian + * + */ + +/// + +// TODO: Use the builtin addDOMWidget everywhere appropriate + +import { app } from '../../scripts/app.js' +import { api } from '../../scripts/api.js' + +import * as mtb_ui from './mtb_ui.js' +import parseCss from './extern/parse-css.js' +import * as shared from './comfy_shared.js' +import { infoLogger } from './comfy_shared.js' +import { NumberInputWidget } from './numberInput.js' + +// NOTE: new widget types registered by MTB Widgets +const newTypes = [/*'BOOL'*/ 'COLOR', 'BBOX'] + +const deprecated_nodes = { + // 'Animation Builder': + // 'Kept to avoid breaking older script but replaced by TimeEngine', +} + +const withFont = (ctx, font, cb) => { + const oldFont = ctx.font + ctx.font = font + cb() + ctx.font = oldFont +} + +const calculateTextDimensions = (ctx, value, width, fontSize = 16) => { + const words = value.split(' ') + const lines = [] + let currentLine = '' + for (const word of words) { + const testLine = currentLine.length === 0 ? word : `${currentLine} ${word}` + const testWidth = ctx.measureText(testLine).width + if (testWidth > width) { + lines.push(currentLine) + currentLine = word + } else { + currentLine = testLine + } + } + if (lines.length === 0) lines.push(value) + const textHeight = (lines.length + 1) * fontSize + const maxLineWidth = lines.reduce( + (maxWidth, line) => Math.max(maxWidth, ctx.measureText(line).width), + 0, + ) + return { textHeight, maxLineWidth } +} + +export function addMultilineWidget(node, name, opts, callback) { + const inputEl = document.createElement('textarea') + inputEl.className = 'comfy-multiline-input' + inputEl.value = opts.defaultVal + inputEl.placeholder = opts.placeholder || name + + const widget = node.addDOMWidget(name, 'textmultiline', inputEl, { + getValue() { + return inputEl.value + }, + setValue(v) { + inputEl.value = v + }, + }) + widget.inputEl = inputEl + + inputEl.addEventListener('input', () => { + callback?.(widget.value) + widget.callback?.(widget.value) + }) + widget.onRemove = () => { + inputEl.remove() + } + + return { minWidth: 400, minHeight: 200, widget } +} + +export const VECTOR_AXIS = { + 0: 'x', + 1: 'y', + 2: 'z', + 3: 'w', +} + +export function addVectorWidgetW( + node, + name, + value, + vector_size, + _callback, + app, +) { + // const inputEl = document.createElement('div') + // const vecEl = document.createElement('div') + // + // inputEl.style.background = 'red' + // + // inputEl.className = 'comfy-vector-container' + // vecEl.className = 'comfy-vector-input' + // + // vecEl.style.display = 'flex' + // inputEl.appendChild(vecEl) + const inputs = [] + + for (let i = 0; i < vector_size; i++) { + // const input = document.createElement('input') + // input.type = 'number' + // input.value = value[VECTOR_AXIS[i]] + const input = node.addWidget( + 'number', + `${name}_${VECTOR_AXIS[i]}`, + value[VECTOR_AXIS[i]], + (val) => {}, + ) + + inputs.push(input) + // vecEl.appendChild(input) + } + // + // const widget = node.addDOMWidget(name, 'vector', inputEl, { + // getValue() { + // return JSON.stringify(widget._value) + // }, + // setValue(v) { + // widget._value = v + // }, + // afterResize(node, widget) { + // console.log('After resize', { that: this, node, widget }) + // }, + // }) + // + // console.log('prev callback', widget.callback) + // widget.callback = callback + // widget._value = value + // + // for (let i = 0; i < vector_size; i++) { + // const input = inputs[i] + // input.addEventListener('change', (event) => { + // widget._value[VECTOR_AXIS[i]] = Number.parseFloat(event.target.value) + // widget.callback?.(widget._value) + // node.graph._version++ + // node.setDirtyCanvas(true, true) + // }) + // } + // // document.body.append(inputEl) + // + // widget.inputEl = inputEl + // widget.vecEl = vecEl + // + // inputEl.addEventListener('input', () => { + // widget.callback?.(widget.value) + // }) + // + return { minWidth: 400, minHeight: 200, widget } +} +export function addVectorWidget(node, name, value, vector_size, callback, app) { + const inputEl = document.createElement('div') + const vecEl = document.createElement('div') + + inputEl.className = 'comfy-vector-container' + vecEl.className = 'comfy-vector-input' + vecEl.id = 'vecEl' + + vecEl.style.display = 'flex' + vecEl.style.flexDirection = 'column' + inputEl.appendChild(vecEl) + const inputs = [] + + // + // for (let i = 0; i < vector_size; i++) { + // const input = document.createElement('input') + // input.type = 'number' + // input.value = value[VECTOR_AXIS[i]] + // inputs.push(input) + // vecEl.appendChild(input) + // } + + const widget = node.addDOMWidget(name, 'vector', inputEl, { + getValue() { + return JSON.stringify(widget._value) + }, + setValue(v) { + widget._value = v + }, + }) + const vec = new NumberInputWidget('vecEl', vector_size, true) + vec.setValue(...Object.values(value)) + vec.onChange = (value) => { + for (let i = 0; i < value.length; i++) { + const val = value[i] + widget._value[VECTOR_AXIS[i]] = Number.parseFloat(val) + } + + widget.callback?.(widget._value) + // widget._value[VECTOR_AXIS[index]] = Number.parseFloat(value) + } + + console.log('prev callback', widget.callback) + widget.callback = callback + widget._value = value + + // for (let i = 0; i < vector_size; i++) { + // const input = inputs[i] + // input.addEventListener('change', (event) => { + // widget._value[VECTOR_AXIS[i]] = Number.parseFloat(event.target.value) + // widget.callback?.(widget._value) + // node.graph._version++ + // node.setDirtyCanvas(true, true) + // }) + // } + + widget.inputEl = inputEl + widget.vecEl = vecEl + widget.vec = vec + + return { minWidth: 400, minHeight: 200 * vector_size, widget } +} +export const MtbWidgets = { + //TODO: complete this properly + + /** + * Creates a vector widget. + * @param {string} key - The key for the widget. + * @param {number[]} [val] - The initial value for the widget. + * @param {number} size - The size of the vector. + * @returns {VectorWidget} The vector widget. + */ + VECTOR: (key, val, size) => { + shared.infoLogger('Adding VECTOR widget', { key, val, size }) + /** @type {VectorWidget} */ + const widget = { + name: key, + type: `vector${size}`, + y: 0, + options: { default: Array.from({ length: size }, () => 0.0) }, + _value: val || Array.from({ length: size }, () => 0.0), + draw: (ctx, node, width, widgetY, height) => { + ctx.textAlign = 'left' + ctx.strokeStyle = outline_color + ctx.fillStyle = background_color + 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 (!w.disabled) ctx.stroke() + ctx.fillStyle = text_color + if (!w.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 = secondary_text_color + ctx.fillText(w.label || w.name, margin * 2 + 5, y + H * 0.7) + ctx.fillStyle = text_color + ctx.textAlign = 'right' + if (w.type === 'number') { + ctx.fillText( + Number(w.value).toFixed( + w.options.precision !== undefined ? w.options.precision : 3, + ), + widget_width - margin * 2 - 20, + y + H * 0.7, + ) + } else { + let v = w.value + if (w.options.values) { + let values = w.options.values + if (values.constructor === Function) values = values() + if (values && values.constructor !== Array) v = values[w.value] + } + ctx.fillText(v, widget_width - margin * 2 - 20, y + H * 0.7) + } + } + }, + get value() { + return this._value + }, + set value(val) { + this._value = val + this.callback?.(this._value) + }, + } + + return widget + }, + BBOX: (key, val) => { + /** @type {import("./types/litegraph").IWidget} */ + const widget = { + name: key, + type: 'BBOX', + // options: val, + y: 0, + value: val?.default || [0, 0, 0, 0], + options: {}, + + draw: function (ctx, _node, widget_width, widgetY, _height) { + const hide = this.type !== 'BBOX' && app.canvas.ds.scale > 0.5 + + const show_text = true + const outline_color = LiteGraph.WIDGET_OUTLINE_COLOR + const background_color = LiteGraph.WIDGET_BGCOLOR + const text_color = LiteGraph.WIDGET_TEXT_COLOR + const secondary_text_color = LiteGraph.WIDGET_SECONDARY_TEXT_COLOR + const H = LiteGraph.NODE_WIDGET_HEIGHT + + const margin = 15 + const numWidgets = 4 // Number of stacked widgets + + if (hide) return + + for (let i = 0; i < numWidgets; i++) { + const currentY = widgetY + i * (H + margin) // Adjust Y position for each widget + + ctx.textAlign = 'left' + ctx.strokeStyle = outline_color + ctx.fillStyle = background_color + ctx.beginPath() + if (show_text) + ctx.roundRect(margin, currentY, widget_width - margin * 2, H, [ + H * 0.5, + ]) + else ctx.rect(margin, currentY, widget_width - margin * 2, H) + ctx.fill() + if (show_text) { + if (!this.disabled) ctx.stroke() + ctx.fillStyle = text_color + if (!this.disabled) { + ctx.beginPath() + ctx.moveTo(margin + 16, currentY + 5) + ctx.lineTo(margin + 6, currentY + H * 0.5) + ctx.lineTo(margin + 16, currentY + H - 5) + ctx.fill() + ctx.beginPath() + ctx.moveTo(widget_width - margin - 16, currentY + 5) + ctx.lineTo(widget_width - margin - 6, currentY + H * 0.5) + ctx.lineTo(widget_width - margin - 16, currentY + H - 5) + ctx.fill() + } + ctx.fillStyle = secondary_text_color + ctx.fillText( + this.label || this.name, + margin * 2 + 5, + currentY + H * 0.7, + ) + ctx.fillStyle = text_color + ctx.textAlign = 'right' + + ctx.fillText( + Number(this.value).toFixed( + this.options?.precision !== undefined + ? this.options.precision + : 3, + ), + widget_width - margin * 2 - 20, + currentY + H * 0.7, + ) + } + } + }, + mouse: function (event, pos, node) { + let old_value = this.value + let x = pos[0] - node.pos[0] + let y = pos[1] - node.pos[1] + let width = node.size[0] + let H = LiteGraph.NODE_WIDGET_HEIGHT + let margin = 5 + let numWidgets = 4 // Number of stacked widgets + + for (let i = 0; i < numWidgets; i++) { + let currentY = y + i * (H + margin) // Adjust Y position for each widget + + if ( + event.type == LiteGraph.pointerevents_method + 'move' && + this.type == 'BBOX' + ) { + 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 == LiteGraph.pointerevents_method + 'down') { + let values = this.options?.values + if (values && values.constructor === Function) { + values = this.options.values(w, node) + } + let values_list = null + + let delta = x < 40 ? -1 : x > widget_width - 40 ? 1 : 0 + if (this.type == 'BBOX') { + 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 + } + } else if (delta) { + //clicked in arrow, used for combos + let index = -1 + this.last_mouseclick = 0 //avoids dobl click event + if (values.constructor === Object) + index = values_list.indexOf(String(this.value)) + delta + else index = values_list.indexOf(this.value) + delta + if (index >= values_list.length) { + index = values_list.length - 1 + } + if (index < 0) { + index = 0 + } + if (values.constructor === Array) this.value = values[index] + else this.value = index + } + } //end mousedown + else if ( + event.type == LiteGraph.pointerevents_method + 'up' && + this.type == 'BBOX' + ) { + let delta = x < 40 ? -1 : x > widget_width - 40 ? 1 : 0 + if (event.click_time < 200 && delta == 0) { + this.prompt( + 'Value', + this.value, + function (v) { + // check if v is a valid equation or a number + if (/^[0-9+\-*/()\s]+|\d+\.\d+$/.test(v)) { + try { + //solve the equation if possible + v = eval(v) + } catch (e) {} + } + this.value = Number(v) + shared.inner_value_change(this, this.value, event) + }.bind(w), + event, + ) + } + } + + if (old_value != this.value) + setTimeout( + function () { + shared.inner_value_change(this, this.value, event) + }.bind(this), + 20, + ) + + app.canvas.setDirty(true) + } + }, + computeSize: function (width) { + return [width, LiteGraph.NODE_WIDGET_HEIGHT * 4] + }, + // onDrawBackground: function (ctx) { + // if (!this.flags.collapsed) return; + // this.inputEl.style.display = "block"; + // this.inputEl.style.top = this.graphcanvas.offsetTop + this.pos[1] + "px"; + // this.inputEl.style.left = this.graphcanvas.offsetLeft + this.pos[0] + "px"; + // }, + // onInputChange: function (e) { + // const property = e.target.dataset.property; + // const bbox = this.getInputData(0); + // if (!bbox) return; + // bbox[property] = parseFloat(e.target.value); + // this.setOutputData(0, bbox); + // } + } + + widget.desc = 'Represents a Bounding Box with x, y, width, and height.' + return widget + }, + + COLOR: (key, val, compute = false) => { + /** @type {import("/types/litegraph").IWidget} */ + const widget = {} + widget.y = 0 + widget.name = key + widget.type = 'COLOR' + widget.options = { default: '#ff0000' } + widget.value = val || '#ff0000' + widget.draw = function (ctx, node, widgetWidth, widgetY, height) { + const hide = this.type !== 'COLOR' && app.canvas.ds.scale > 0.5 + if (hide) { + return + } + const border = 3 + ctx.fillStyle = '#000' + ctx.fillRect(0, widgetY, widgetWidth, height) + ctx.fillStyle = this.value + ctx.fillRect( + border, + widgetY + border, + widgetWidth - border * 2, + height - border * 2, + ) + const color = parseCss(this.value.default || this.value) + if (!color) { + return + } + ctx.fillStyle = shared.isColorBright(color.values, 125) ? '#000' : '#fff' + + ctx.font = '14px Arial' + ctx.textAlign = 'center' + ctx.fillText(this.name, widgetWidth * 0.5, widgetY + 14) + } + widget.mouse = function (e, pos, node) { + if (e.type === 'pointerdown') { + const widgets = node.widgets.filter((w) => w.type === 'COLOR') + + for (const w of widgets) { + // color picker + const rect = [w.last_y, w.last_y + 32] + if (pos[1] > rect[0] && pos[1] < rect[1]) { + const picker = document.createElement('input') + picker.type = 'color' + picker.value = this.value + + Object.assign(picker.style, { + position: 'fixed', + left: `${e.clientX}px`, + top: `${e.clientY}px`, + height: '0px', + width: '0px', + padding: '0px', + opacity: 0, + }) + + picker.addEventListener('blur', () => { + this.callback?.(this.value) + node.graph._version++ + picker.remove() + }) + picker.addEventListener('input', () => { + if (!picker.value) return + + this.value = picker.value + app.canvas.setDirty(true) + }) + + document.body.appendChild(picker) + + requestAnimationFrame(() => { + picker.showPicker() + picker.focus() + }) + } + } + } + } + widget.computeSize = function (width) { + return [width, 32] + } + + return widget + }, + + DEBUG_IMG: (name, val) => { + const w = { + name, + type: 'image', + value: val, + draw: function (ctx, node, widgetWidth, widgetY, height) { + const [cw, ch] = this.computeSize(widgetWidth) + shared.offsetDOMWidget(this, ctx, node, widgetWidth, widgetY, ch) + }, + computeSize: function (width) { + const ratio = this.inputRatio || 1 + if (width) { + return [width, width / ratio + 4] + } + return [128, 128] + }, + onRemoved: function () { + if (this.inputEl) { + this.inputEl.remove() + } + }, + } + + w.inputEl = document.createElement('img') + w.inputEl.src = w.value + w.inputEl.onload = function () { + w.inputRatio = w.inputEl.naturalWidth / w.inputEl.naturalHeight + } + document.body.appendChild(w.inputEl) + return w + }, + DEBUG_STRING: (name, val) => { + const fontSize = 16 + const w = { + name, + type: 'debug_text', + + draw: function (ctx, node, widgetWidth, widgetY, height) { + // const [cw, ch] = this.computeSize(widgetWidth) + shared.offsetDOMWidget(this, ctx, node, widgetWidth, widgetY, height) + }, + computeSize(width) { + if (!this.value) { + return [32, 32] + } + if (!width) { + console.debug(`No width ${this.parent.size}`) + } + let dimensions + withFont(app.ctx, `${fontSize}px monospace`, () => { + dimensions = calculateTextDimensions(app.ctx, this.value, width) + }) + const widgetWidth = Math.max( + width || this.width || 32, + dimensions.maxLineWidth, + ) + const widgetHeight = dimensions.textHeight * 1.5 + return [widgetWidth, widgetHeight] + }, + onRemoved: function () { + if (this.inputEl) { + this.inputEl.remove() + } + }, + get value() { + return this.inputEl.innerHTML + }, + set value(val) { + this.inputEl.innerHTML = val + this.parent?.setSize?.(this.parent?.computeSize()) + }, + } + + w.inputEl = document.createElement('p') + w.inputEl.style = ` + text-align: center; + font-size: ${fontSize}px; + color: var(--input-text); + line-height: 1em; + font-family: monospace; + ` + w.value = val + document.body.appendChild(w.inputEl) + + return w + }, +} + +/** + * @returns {import("./types/comfy").ComfyExtension} extension + */ +const mtb_widgets = { + name: 'mtb.widgets', + + init: async () => { + infoLogger('Registering mtb.widgets') + try { + const msg = await shared.getServerInfo() + if (!window.MTB) { + window.MTB = {} + } + window.MTB.DEBUG = msg.debug + } catch (e) { + console.error('Error:', e) + } + }, + + setup: () => { + app.ui.settings.addSetting({ + id: 'mtb.postshot.path', + category: ['mtb', 'PostShot', 'path'], + name: 'Path to Postshot CLI', + type: 'string', + defaultValue: 'C:/Program Files/Jawset Postshot/bin/postshot-cli.exe', + tooltip: 'The path to the postshot CLI', + }) + + app.ui.settings.addSetting({ + id: 'mtb.Main.debug-enabled', + category: ['mtb', 'Main', 'debug-enabled'], + name: 'Enable Debug (py and js)', + type: 'boolean', + defaultValue: false, + + tooltip: + 'This will enable debug messages in the console and in the python console respectively, no need to restart the server, but do reload the webui', + attrs: { + style: { + // fontFamily: 'monospace', + }, + }, + async onChange(value) { + if (!window.MTB) { + window.MTB = {} + } + window.MTB.DEBUG = value + if (value) { + infoLogger('Enabled DEBUG mode') + } + + try { + shared.setServerInfo({ debug: value }) + } catch (err) { + console.error('Error:', err) + } + }, + }) + }, + + getCustomWidgets: () => { + return { + // BOOL: (node, inputName, inputData, _app) => { + // console.debug('Registering bool') + // + // return { + // widget: node.addCustomWidget( + // MtbWidgets.BOOL(inputName, inputData[1]?.default || false), + // ), + // minWidth: 150, + // minHeight: 30, + // } + // }, + + COLOR: (node, inputName, inputData, _app) => { + console.debug('Registering color') + return { + widget: node.addCustomWidget( + MtbWidgets.COLOR(inputName, inputData[1]?.default || '#ff0000'), + ), + minWidth: 150, + minHeight: 30, + } + }, + // BBOX: (node, inputName, inputData, app) => { + // console.debug("Registering bbox") + // return { + // widget: node.addCustomWidget(MtbWidgets.BBOX(inputName, inputData[1]?.default || [0, 0, 0, 0])), + // minWidth: 150, + // minHeight: 30, + // } + + // } + } + }, + /** + * @param {NodeType} nodeType + * @param {NodeData} nodeData + * @param {import("./types/comfy").App} app + */ + async beforeRegisterNodeDef(nodeType, nodeData, app) { + // const rinputs = nodeData.input?.required + + let has_custom = false + if (nodeData.input?.required) { + for (const i of Object.keys(nodeData.input.required)) { + const input_type = nodeData.input.required[i][0] + + if (newTypes.includes(input_type)) { + has_custom = true + break + } + } + } + if (has_custom) { + //- Add widgets on node creation + const onNodeCreated = nodeType.prototype.onNodeCreated + nodeType.prototype.onNodeCreated = function (...args) { + const r = onNodeCreated ? onNodeCreated.apply(this, args) : undefined + this.serialize_widgets = true + this.setSize?.(this.computeSize()) + + this.onRemoved = function () { + // When removing this node we need to remove the input from the DOM + shared.cleanupNode(this) + } + return r + } + + //- Extra menus + const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions + nodeType.prototype.getExtraMenuOptions = function (_, options) { + const r = origGetExtraMenuOptions + ? origGetExtraMenuOptions.apply(this, arguments) + : undefined + if (this.widgets) { + const toInput = [] + const toWidget = [] + for (const w of this.widgets) { + if (w.type === shared.CONVERTED_TYPE) { + //- This is already handled by widgetinputs.js + // toWidget.push({ + // content: `Convert ${w.name} to widget`, + // callback: () => shared.convertToWidget(this, w), + // }); + } else if (newTypes.includes(w.type)) { + const config = nodeData?.input?.required[w.name] || + nodeData?.input?.optional?.[w.name] || [w.type, w.options || {}] + + toInput.push({ + content: `Convert ${w.name} to input`, + callback: () => shared.convertToInput(this, w, config), + }) + } + } + if (toInput.length) { + options.push(...toInput, null) + } + + if (toWidget.length) { + options.push(...toWidget, null) + } + } + + return r + } + } + + if (!nodeData.name.endsWith('(mtb)')) { + return + } + // console.log('MTB Node', { description: nodeData.description, nodeType }) + + shared.addDocumentation(nodeData, nodeType) + + const deprecation = deprecated_nodes[nodeData.name.replace(' (mtb)', '')] + + if (deprecation) { + shared.addDeprecation(nodeType, deprecation) + } + //- Extending Python Nodes + switch (nodeData.name) { + //TODO: remove this non sense + case 'Get Batch From History (mtb)': + case 'Get Batch From History V2 (mtb)': { + const onNodeCreated = nodeType.prototype.onNodeCreated + nodeType.prototype.onNodeCreated = function () { + const r = onNodeCreated ? onNodeCreated.apply(this, []) : undefined + const internal_count = this.widgets.find( + (w) => w.name === 'internal_count', + ) + shared.hideWidgetForGood(this, internal_count) + internal_count.afterQueued = function () { + this.value++ + } + + return r + } + + const onExecuted = nodeType.prototype.onExecuted + nodeType.prototype.onExecuted = function (message) { + const r = onExecuted ? onExecuted.apply(this, message) : undefined + return r + } + + break + } + case 'Postshot Train (mtb)': + case 'Postshot Export (mtb)': { + const onNodeCreated = nodeType.prototype.onNodeCreated + nodeType.prototype.onNodeCreated = function (...args) { + const r = onNodeCreated ? onNodeCreated.apply(this, args) : undefined + const { postshot_cli } = shared.getNamedWidget(this, 'postshot_cli') + + shared.hideWidgetForGood(this, postshot_cli) + + api.getSetting('mtb.postshot.path').then((p) => { + postshot_cli._value = p + }) + } + + break + } + case 'Save Gif (mtb)': + case 'Save Animated Image (mtb)': { + const onExecuted = nodeType.prototype.onExecuted + nodeType.prototype.onExecuted = function (message) { + const prefix = 'anything_' + const r = onExecuted ? onExecuted.apply(this, message) : undefined + + if (this.widgets) { + const pos = this.widgets.findIndex((w) => w.name === `${prefix}_0`) + if (pos !== -1) { + for (let i = pos; i < this.widgets.length; i++) { + this.widgets[i].onRemoved?.() + } + this.widgets.length = pos + } + + let imgURLs = [] + if (message) { + if (message.gif) { + imgURLs = imgURLs.concat( + message.gif.map((params) => { + return api.apiURL( + `/view?${new URLSearchParams(params).toString()}`, + ) + }), + ) + } + if (message.apng) { + imgURLs = imgURLs.concat( + message.apng.map((params) => { + return api.apiURL( + `/view?${new URLSearchParams(params).toString()}`, + ) + }), + ) + } + let i = 0 + for (const img of imgURLs) { + const w = this.addCustomWidget( + MtbWidgets.DEBUG_IMG(`${prefix}_${i}`, img), + ) + w.parent = this + i++ + } + } + const onRemoved = this.onRemoved + this.onRemoved = () => { + shared.cleanupNode(this) + return onRemoved?.() + } + } + this.setSize?.(this.computeSize()) + return r + } + + break + } + case 'Animation Builder (mtb)': { + const onNodeCreated = nodeType.prototype.onNodeCreated + nodeType.prototype.onNodeCreated = function (...args) { + const r = onNodeCreated ? onNodeCreated.apply(this, args) : undefined + + this.changeMode(LiteGraph.ALWAYS) + const { raw_iteration, raw_loop, total_frames, loop_count } = + shared.getNamedWidget( + this, + 'raw_iteration', + 'raw_loop', + 'total_frames', + 'loop_count', + ) + + shared.hideWidgetForGood(this, raw_iteration) + shared.hideWidgetForGood(this, raw_loop) + + raw_iteration._value = 0 + + // const value_preview = this.addCustomWidget( + // MtbWidgets.DEBUG_STRING('value_preview', 'Idle'), + // ) + + const dom_value_preview = mtb_ui.makeElement('p', { + fontWeigth: '700', + textAlign: 'center', + fontSize: '1.5em', + margin: 0, + }) + const value_preview = this.addDOMWidget( + 'value_preview', + 'DISPLAY', + dom_value_preview, + { + hideOnZoom: false, + setValue: (val) => { + if (val) { + value_preview.element.innerHTML = val + } + }, + }, + ) + value_preview.value = 'Idle' + + const dom_loop_preview = mtb_ui.makeElement('p', { + textAlign: 'center', + margin: 0, + }) + + const loop_preview = this.addDOMWidget( + 'loop_preview', + 'DISPLAY', + dom_loop_preview, + { + hideOnZoom: false, + setValue: (val) => { + if (val) { + dom_loop_preview.innerHTML = val + } + }, + getValue: () => { + dom_loop_preview.innerHTML + }, + }, + ) + loop_preview.value = 'Iteration: Idle' + + const onReset = () => { + raw_iteration.value = 0 + raw_loop.value = 0 + + value_preview.value = 'Idle' + loop_preview.value = 'Iteration: Idle' + + app.canvas.setDirty(true) + } + + // reset button + this.addWidget('button', 'Reset', 'reset', onReset) + + // run button + this.addWidget('button', 'Queue', 'queue', () => { + onReset() // this could maybe be a setting or checkbox + app.queuePrompt(0, total_frames.value * loop_count.value) + window.MTB?.notify?.( + `Started a queue of ${total_frames.value} frames (for ${ + loop_count.value + } loop, so ${total_frames.value * loop_count.value})`, + 5000, + ) + }) + + this.onRemoved = () => { + shared.cleanupNode(this) + app.canvas.setDirty(true) + } + + raw_iteration.afterQueued = function () { + this.value++ + raw_loop.value = Math.floor(this.value / total_frames.value) + + value_preview.value = `frame: ${ + raw_iteration.value % total_frames.value + } / ${total_frames.value - 1}` + + if (raw_loop.value + 1 > loop_count.value) { + loop_preview.value = 'Done 😎!' + } else { + loop_preview.value = `current loop: ${raw_loop.value + 1}/${ + loop_count.value + }` + } + } + + return r + } + + break + } + case 'Interpolate Clip Sequential (mtb)': { + const onNodeCreated = nodeType.prototype.onNodeCreated + nodeType.prototype.onNodeCreated = function (...args) { + const r = onNodeCreated + ? onNodeCreated.apply(this, ...args) + : undefined + const addReplacement = () => { + const input = this.addInput( + `replacement_${this.widgets.length}`, + 'STRING', + '', + ) + console.log(input) + this.addWidget('STRING', `replacement_${this.widgets.length}`, '') + } + //- add + this.addWidget('button', '+', 'add', (value, widget, node) => { + console.log('Button clicked', value, widget, node) + addReplacement() + }) + //- remove + this.addWidget('button', '-', 'remove', (value, widget, node) => { + console.log(`Button clicked: ${value}`, widget, node) + }) + + return r + } + break + } + case 'Styles Loader (mtb)': { + const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions + nodeType.prototype.getExtraMenuOptions = function (_, options) { + const r = origGetExtraMenuOptions + ? origGetExtraMenuOptions.apply(this, arguments) + : undefined + + const getStyle = async (node) => { + try { + const getStyles = await runAction( + 'getStyles', + node.widgets?.[0].value ? node.widgets[0].value : '', + ) + + const output = await getStyles.json() + return output?.result + } catch (e) { + console.error(e) + } + } + const extracters = [ + { + content: 'Extract Positive to Text node', + callback: async () => { + const style = await getStyle(this) + if (style && style.length >= 1) { + if (style[0]) { + window.MTB?.notify?.( + `Extracted positive from ${this.widgets[0].value}`, + ) + // const tn = LiteGraph.createNode('Text box') + const tn = LiteGraph.createNode('CLIPTextEncode') + app.graph.add(tn) + tn.title = `${this.widgets[0].value} (Positive)` + tn.widgets[0].value = style[0] + } else { + window.MTB?.notify?.( + `No positive to extract for ${this.widgets[0].value}`, + ) + } + } + }, + }, + { + content: 'Extract Negative to Text node', + callback: async () => { + const style = await getStyle(this) + if (style && style.length >= 2) { + if (style[1]) { + window.MTB?.notify?.( + `Extracted negative from ${this.widgets[0].value}`, + ) + const tn = LiteGraph.createNode('CLIPTextEncode') + app.graph.add(tn) + tn.title = `${this.widgets[0].value} (Negative)` + tn.widgets[0].value = style[1] + } else { + window.MTB.notify( + `No negative to extract for ${this.widgets[0].value}`, + ) + } + } + }, + }, + ] + options.push(...extracters) + } + + break + } + + //NOTE: dynamic nodes + case 'Apply Text Template (mtb)': { + shared.setupDynamicConnections(nodeType, 'var', '*') + break + } + case 'Save Data Bundle (mtb)': { + shared.setupDynamicConnections(nodeType, 'data', '*') // [MASK,IMAGE] + break + } + case 'Add To Playlist (mtb)': { + shared.setupDynamicConnections(nodeType, 'video', 'VIDEO') + break + } + case 'Interpolate Condition (mtb)': { + shared.setupDynamicConnections(nodeType, 'condition', 'CONDITIONING') + break + } + case 'Psd Save (mtb)': { + shared.setupDynamicConnections(nodeType, 'input_', 'PSDLAYER') + break + } + // case 'Text Encode Frames (mtb)' : { + // shared.setupDynamicConnections(nodeType, 'input_', 'IMAGE') + // break + // } + case 'Stack Images (mtb)': + case 'Concat Images (mtb)': { + shared.setupDynamicConnections(nodeType, 'image', 'IMAGE') + break + } + case 'Audio Sequence (mtb)': + case 'Audio Stack (mtb)': { + shared.setupDynamicConnections(nodeType, 'audio', 'AUDIO') + break + } + case 'Batch Float Assemble (mtb)': + case 'Batch Float Math (mtb)': + case 'Plot Batch Float (mtb)': { + shared.setupDynamicConnections(nodeType, 'floats', 'FLOATS') + break + } + case 'Batch Sequence (mtb)': + case 'Batch Sequence Plus (mtb)': + case 'Batch Merge (mtb)': { + shared.setupDynamicConnections(nodeType, 'batches', 'IMAGE') + + break + } + // TODO: remove this, recommend pythongoss's version that is much better + case 'Math Expression (mtb)': { + const onNodeCreated = nodeType.prototype.onNodeCreated + nodeType.prototype.onNodeCreated = function () { + const r = onNodeCreated + ? onNodeCreated.apply(this, arguments) + : undefined + this.addInput('x', '*') + return r + } + + const onConnectionsChange = nodeType.prototype.onConnectionsChange + nodeType.prototype.onConnectionsChange = function ( + _type, + index, + connected, + link_info, + ) { + const r = onConnectionsChange + ? onConnectionsChange.apply(this, arguments) + : undefined + shared.dynamic_connection(this, index, connected, 'var_', '*', { + nameArray: ['x', 'y', 'z'], + }) + + //- infer type + if (link_info) { + const fromNode = this.graph._nodes.find( + (otherNode) => otherNode.id !== link_info.origin_id, + ) + const type = fromNode.outputs[link_info.origin_slot].type + this.inputs[index].type = type + // this.inputs[index].label = type.toLowerCase() + } + //- restore dynamic input + if (!connected) { + this.inputs[index].type = '*' + this.inputs[index].label = `number_${index + 1}` + } + } + + break + } + + case 'Batch Shape (mtb)': + case 'Mask To Image (mtb)': + case 'Text To Image (mtb)': { + shared.addMenuHandler(nodeType, function (_app, options) { + /** @type {ContextMenuItem} */ + const item = { + content: 'swap colors', + title: 'Swap BG/FG Color ⚡', + callback: (_menuItem) => { + const color_w = this.widgets.find((w) => w.name === 'color') + const bg_w = this.widgets.find( + (w) => w.name === 'background' || w.name === 'bg_color', + ) + + const color = color_w.value + const bg = bg_w.value + + color_w.value = bg + bg_w.value = color + }, + } + + options.push(item) + return [item] + }) + break + } + case 'Scene Detect (mtb)': { + break + } + case 'Loop Start (mtb)': { + const onDrawBackground = nodeType.prototype.onDrawBackground + nodeType.prototype.onDrawBackground = function (...args) { + const r = onDrawBackground + ? onDrawBackground.apply(this, args) + : undefined + const [ctx, /*canvas,*/ ..._rest] = args + if (this.flags.collapsed) return r + if (!this.computed_flow) { + const related = new Set([this.id]) + const visited = new Set() + if (this.outputs[0].links) { + const initLink = this.outputs[0].links[0] + const { to: loopEnd } = shared.nodesFromLink(this, initLink) + const canReachEnd = (node, visited = new Set()) => { + if (node === loopEnd) return true + if (visited.has(node.id)) return false + visited.add(node.id) + for (const output of node.outputs || []) { + if (!output.links) continue + for (const linkId of output.links) { + const { to: nextNode } = shared.nodesFromLink(node, linkId) + if (!nextNode) continue + if (canReachEnd(nextNode, visited)) { + return true + } + } + } + return false + } + const traverseNodes = (node) => { + if (visited.has(node.id)) return + visited.add(node.id) + + // can reach the end + if (node !== this && node !== loopEnd && !canReachEnd(node)) { + return + } + + related.add(node.id) + for (const output of node.outputs || []) { + if (!output.links) continue + + for (const linkId of output.links) { + const { to: nextNode } = shared.nodesFromLink(node, linkId) + if (!nextNode) continue + + traverseNodes(nextNode) + } + } + } + + traverseNodes(this) + } + this.related_to_flow = Array.from(related) + this.computed_flow = true + } + if (this.related_to_flow) { + ctx.save() + const points = [] + const padding = 20 + + const graph = this.graph + const offset = this._pos + + for (const nodeId of this.related_to_flow) { + const node = graph.getNodeById(nodeId) + if (!node) continue + + const scale = 1.0 + const x = node._pos[0] * scale - offset[0] + const y = node._pos[1] * scale - offset[1] + const width = node.size[0] * scale + const height = node.size[1] * scale + const scaledPadding = padding * scale + // console.log({ main: this, x, y, width, height }) + + points.push( + [x - scaledPadding, y - scaledPadding], + [x + width + scaledPadding, y - scaledPadding], + [x + width + scaledPadding, y + height + scaledPadding], + [x - scaledPadding, y + height + scaledPadding], + ) + } + // console.log({ points }) + const hull = shared.getConvexHull(points) + + ctx.beginPath() + + ctx.moveTo(hull[0][0], hull[0][1]) + for (let i = 1; i < hull.length; i++) { + ctx.lineTo(hull[i][0], hull[i][1]) + } + + ctx.closePath() + + ctx.fillStyle = 'rgba(255, 0, 0, 0.1)' + ctx.strokeStyle = 'rgba(255, 0, 0, 0.5)' + ctx.lineWidth = 2 + ctx.fill() + ctx.stroke() + + ctx.restore() + } else { + ctx.save() + ctx.fillStyle = 'red' + ctx.fillRect(-50, -50, this.size[0] + 100, this.size[1] + 100) + ctx.fillStyle = 'white' + ctx.font = 'bold 12px Arial' + ctx.fillText( + `pos: ${this.x}x${this.y}`, + this.size[0] / 2, + this.size[1], + ) + ctx.fillText( + `size:${this._posSize}`, + this.size[0] / 2, + this.size[1] - 30, + ) + ctx.fillText( + `dpi: ${window.devicePixelRatio}`, + this.size[0] / 2, + this.size[1] - 60, + ) + ctx.fillText( + `next: ${graph.getNodeById(this.related_to_flow[1])._posSize}`, + this.size[0] / 2, + this.size[1] - 90, + ) + + ctx.restore() + } + return r + } + break + } + default: { + break + } + } + }, +} + +app.registerExtension(mtb_widgets) diff --git a/docs/hel-892/storyboard-reference/mtb__wiki__nodes__nodes-apply-text-template.md b/docs/hel-892/storyboard-reference/mtb__wiki__nodes__nodes-apply-text-template.md new file mode 100644 index 00000000..0192f884 --- /dev/null +++ b/docs/hel-892/storyboard-reference/mtb__wiki__nodes__nodes-apply-text-template.md @@ -0,0 +1,7 @@ +# Apply Text Template + +Very basic string interpolation using [dynamic inputs](web-dynamic-inputs). + +The var names are `var_1`, `var_2` etc... They are interpolated like this: `{var_1}`, see the following example for a more concrete idea: + +![template_string](https://github.com/melMass/comfy_mtb/assets/7041726/abf8d63e-87f6-426a-adcc-514b85daeb5c) diff --git a/docs/hel-892/storyboard-reference/sources.json b/docs/hel-892/storyboard-reference/sources.json new file mode 100644 index 00000000..2dca1ecd --- /dev/null +++ b/docs/hel-892/storyboard-reference/sources.json @@ -0,0 +1,364 @@ +{ + "sources": [ + { + "id": "kj", + "file": "__init__.py", + "local_file": "kj____init__.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f", + "git_blob_sha1": "2a7f73e2e801713b9d2782031cb2040dba02b819" + }, + { + "id": "kj", + "file": "nodes/nodes.py", + "local_file": "kj__nodes__nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30", + "git_blob_sha1": "372c8518a77b20fa808de3b70736ceb8dde0092e" + }, + { + "id": "kj", + "file": "nodes/image_nodes.py", + "local_file": "kj__nodes__image_nodes.py", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4", + "git_blob_sha1": "aac70d4770f5428a7e3f6bd9a10d50a821987199" + }, + { + "id": "kj", + "file": "LICENSE", + "local_file": "kj__LICENSE", + "url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE", + "commit": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "layer", + "file": "__init__.py", + "local_file": "layer____init__.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/__init__.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0", + "git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a" + }, + { + "id": "layer", + "file": "py/purge_vram.py", + "local_file": "layer__py__purge_vram.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215", + "git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365" + }, + { + "id": "layer", + "file": "LICENSE", + "local_file": "layer__LICENSE", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0", + "git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559" + }, + { + "id": "math", + "file": "__init__.py", + "local_file": "math____init__.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/__init__.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684", + "git_blob_sha1": "ae43dd2090ce782074bf72f2b7f49ad28dff1a5c" + }, + { + "id": "math", + "file": "py/math_expression.py", + "local_file": "math__py__math_expression.py", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857", + "git_blob_sha1": "4a41655b6876a077338040b0099c4d4e8c9dbcd2" + }, + { + "id": "math", + "file": "LICENSE", + "local_file": "math__LICENSE", + "url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE", + "commit": "f2838ed5e59de4d73cde5c98354b87a8d3200190", + "sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c", + "git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "../reverse-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "__init__.py", + "local_file": "../reverse-reference/vhs____init__.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "pyproject.toml", + "local_file": "../reverse-reference/vhs__pyproject.toml", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "10c69eeae93c21cdfc22cb63f39ba4ce83bcd459725fcf6beb0298276541a1c2", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../reverse-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../reverse-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../reverse-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "web/js/videoinfo.js", + "local_file": "../reverse-reference/vhs__web__js__videoinfo.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "LICENSE", + "local_file": "easy__LICENSE", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "__init__.py", + "local_file": "easy____init__.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "d225b7157796aa5f015bb28bfa6cee8e3048fb810a45e988122ea3b365bdde22", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "py/nodes/logic.py", + "local_file": "easy__py__nodes__logic.py", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1", + "git_commit_binding": "unknown" + }, + { + "id": "easy", + "file": "pyproject.toml", + "local_file": "easy__pyproject.toml", + "url": "https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip", + "commit": "发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627", + "sha256": "123745784e7e332be08f29a4fc90d96393af25262c3b4e8cfc806cfaa91799d8", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "LICENSE", + "local_file": "mtb__LICENSE", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "__init__.py", + "local_file": "mtb____init__.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "pyproject.toml", + "local_file": "mtb__pyproject.toml", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "d6f354766a928079ffb85d996b82bb3db517e2246e2216471aadf0a6d03f324d", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_images_nodes.py", + "local_file": "vhs__videohelpersuite__load_images_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4", + "git_commit_binding": "unknown" + }, + { + "id": "core", + "file": "comfy_extras/nodes_audio.py", + "local_file": "core__comfy_extras__nodes_audio.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f", + "git_blob_sha1": "c7916443caedf88ec04b90695a19e29be2d9259d" + }, + { + "id": "core", + "file": "nodes.py", + "local_file": "core__nodes.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/nodes.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "1d8eb523db6753a01a9bdd8efface14a76ff91babb2be434a98ea2a1a757b894", + "git_blob_sha1": "7d83ecb21db8d30bf71c24bd2fbd2c7adfdff7d6" + }, + { + "id": "core", + "file": "folder_paths.py", + "local_file": "core__folder_paths.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/folder_paths.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112", + "git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8" + }, + { + "id": "core", + "file": "LICENSE", + "local_file": "core__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7" + }, + { + "id": "layer", + "file": "py/imagefunc.py", + "local_file": "layer__py__imagefunc.py", + "url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py", + "commit": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", + "sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0", + "git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce" + }, + { + "id": "mtb", + "file": "nodes/graph_utils.py", + "local_file": "mtb__nodes__graph_utils.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "log.py", + "local_file": "mtb__log.py", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "web/mtb_ui.js", + "local_file": "mtb__web__mtb_ui.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "5d5c686d8c7646bccc8efa74ba6815d4f4a65b310cf0d3760399ec55e0fbdf67", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "web/mtb_widgets.js", + "local_file": "mtb__web__mtb_widgets.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "web/comfy_shared.js", + "local_file": "mtb__web__comfy_shared.js", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58", + "git_commit_binding": "unknown" + }, + { + "id": "mtb", + "file": "wiki/nodes/nodes-apply-text-template.md", + "local_file": "mtb__wiki__nodes__nodes-apply-text-template.md", + "url": "https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip", + "commit": "发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1", + "sha256": "f2926be6da3ba5ff0ab992da0ff2baf1404904561ac65867ee50a72e8428f6e8", + "git_commit_binding": "unknown" + }, + { + "id": "core", + "file": "comfy_api/latest/_ui.py", + "local_file": "core__comfy_api__latest___ui.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f", + "git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa" + }, + { + "id": "core", + "file": "comfy_api/latest/_io.py", + "local_file": "core__comfy_api__latest___io.py", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_io.py", + "commit": "e4c61d75555036fa28b6bb34e5fd67b007c9f391", + "sha256": "9ae0d719957a3d31472d4c9de0ff9635db074e222903055bab880b26c295ed86", + "git_blob_sha1": "4b14e5ded38b1061acec725e019e6e14c977b538" + } + ] +} diff --git a/docs/hel-892/storyboard-reference/vhs-package-index.json b/docs/hel-892/storyboard-reference/vhs-package-index.json new file mode 100644 index 00000000..49ee2d90 --- /dev/null +++ b/docs/hel-892/storyboard-reference/vhs-package-index.json @@ -0,0 +1,54 @@ +{ + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip", + "sha256": "f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1", + "members": [ + ".github/workflows/publish.yml", + ".gitignore", + "LICENSE", + "README.md", + "__init__.py", + "pyproject.toml", + "requirements.txt", + "testframework/README.md", + "testframework/__init__.py", + "testframework/server.py", + "testframework/web/js/testRunner.js", + "tests/README.md", + "tests/audio.json", + "tests/batch4x4.json", + "tests/converted-format-input.json", + "tests/converted-input.json", + "tests/loop.json", + "tests/old-prores.json", + "tests/old-vae-conversion.json", + "tests/simple.json", + "video_formats/16bit-png.json", + "video_formats/8bit-png.json", + "video_formats/ProRes.json", + "video_formats/av1-webm.json", + "video_formats/ffmpeg-gif.json", + "video_formats/ffv1-mkv.json", + "video_formats/gifski.json", + "video_formats/h264-mp4.json", + "video_formats/h265-mp4.json", + "video_formats/nvenc_av1-mp4.json", + "video_formats/nvenc_h264-mp4.json", + "video_formats/nvenc_hevc-mp4.json", + "video_formats/webm.json", + "videohelpersuite/batched_nodes.py", + "videohelpersuite/documentation.py", + "videohelpersuite/image_latent_nodes.py", + "videohelpersuite/latent_preview.py", + "videohelpersuite/load_images_nodes.py", + "videohelpersuite/load_video_nodes.py", + "videohelpersuite/logger.py", + "videohelpersuite/nodes.py", + "videohelpersuite/server.py", + "videohelpersuite/utils.py", + "web/js/VHS.core.js", + "web/js/videoinfo.js" + ], + "selected": [ + "videohelpersuite/load_images_nodes.py" + ] +} diff --git a/docs/hel-892/storyboard-reference/vhs__videohelpersuite__load_images_nodes.py b/docs/hel-892/storyboard-reference/vhs__videohelpersuite__load_images_nodes.py new file mode 100644 index 00000000..43f3387c --- /dev/null +++ b/docs/hel-892/storyboard-reference/vhs__videohelpersuite__load_images_nodes.py @@ -0,0 +1,206 @@ +import os +import hashlib +import numpy as np +import torch +from PIL import Image, ImageOps +import itertools + +import folder_paths +from comfy.k_diffusion.utils import FolderOfImages +from comfy.utils import common_upscale, ProgressBar +from .logger import logger +from .utils import BIGMAX, calculate_file_hash, get_sorted_dir_files_from_directory, validate_path, strip_path + + +def is_changed_load_images(directory: str, image_load_cap: int = 0, skip_first_images: int = 0, select_every_nth: int = 1, **kwargs): + if not os.path.isdir(directory): + return False + + dir_files = get_sorted_dir_files_from_directory(directory, skip_first_images, select_every_nth, FolderOfImages.IMG_EXTENSIONS) + if image_load_cap != 0: + dir_files = dir_files[:image_load_cap] + + m = hashlib.sha256() + for filepath in dir_files: + m.update(calculate_file_hash(filepath).encode()) # strings must be encoded before hashing + return m.digest().hex() + + +def validate_load_images(directory: str): + if not os.path.isdir(directory): + return f"Directory '{directory}' cannot be found." + dir_files = os.listdir(directory) + if len(dir_files) == 0: + return f"No files in directory '{directory}'." + + return True + +def images_generator(directory: str, image_load_cap: int = 0, skip_first_images: int = 0, select_every_nth: int = 1, meta_batch=None, unique_id=None): + if not os.path.isdir(directory): + raise FileNotFoundError(f"Directory '{directory} cannot be found.") + dir_files = get_sorted_dir_files_from_directory(directory, skip_first_images, select_every_nth, FolderOfImages.IMG_EXTENSIONS) + + if len(dir_files) == 0: + raise FileNotFoundError(f"No files in directory '{directory}'.") + if image_load_cap > 0: + dir_files = dir_files[:image_load_cap] + sizes = {} + has_alpha = False + for image_path in dir_files: + i = Image.open(image_path) + #exif_transpose can only ever rotate, but rotating can swap width/height + i = ImageOps.exif_transpose(i) + has_alpha |= 'A' in i.getbands() + count = sizes.get(i.size, 0) + sizes[i.size] = count +1 + size = max(sizes.items(), key=lambda x: x[1])[0] + yield size[0], size[1], has_alpha + if meta_batch is not None: + yield min(image_load_cap, len(dir_files)) or len(dir_files) + + iformat = "RGBA" if has_alpha else "RGB" + def load_image(file_path): + i = Image.open(file_path) + i = ImageOps.exif_transpose(i) + i = i.convert(iformat) + i = np.array(i, dtype=np.float32) + #This nonsense provides a nearly 50% speedup on my system + torch.from_numpy(i).div_(255) + if i.shape[0] != size[1] or i.shape[1] != size[0]: + i = torch.from_numpy(i).movedim(-1, 0).unsqueeze(0) + i = common_upscale(i, size[0], size[1], "lanczos", "center") + i = i.squeeze(0).movedim(0, -1).numpy() + if has_alpha: + i[:,:,-1] = 1 - i[:,:,-1] + return i + + total_images = len(dir_files) + processed_images = 0 + pbar = ProgressBar(total_images) + images = map(load_image, dir_files) + try: + prev_image = next(images) + while True: + next_image = next(images) + yield prev_image + processed_images += 1 + pbar.update_absolute(processed_images, total_images) + prev_image = next_image + except StopIteration: + pass + if meta_batch is not None: + meta_batch.inputs.pop(unique_id) + meta_batch.has_closed_inputs = True + if prev_image is not None: + yield prev_image + + +def load_images(directory: str, image_load_cap: int = 0, skip_first_images: int = 0, select_every_nth: int = 1, meta_batch=None, unique_id=None): + if meta_batch is None or unique_id not in meta_batch.inputs: + gen = images_generator(directory, image_load_cap, skip_first_images, select_every_nth, meta_batch, unique_id) + (width, height, has_alpha) = next(gen) + if meta_batch is not None: + meta_batch.inputs[unique_id] = (gen, width, height, has_alpha) + meta_batch.total_frames = min(meta_batch.total_frames, next(gen)) + else: + gen, width, height, has_alpha = meta_batch.inputs[unique_id] + + if meta_batch is not None: + gen = itertools.islice(gen, meta_batch.frames_per_batch) + images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (height, width, 3 + has_alpha))))) + if has_alpha: + #tensors are not continuous. Rewrite will be required if this is an issue + masks = images[:,:,:,3] + images = images[:,:,:,:3] + else: + masks = torch.zeros((images.size(0), 64, 64), dtype=torch.float32, device="cpu") + if len(images) == 0: + raise FileNotFoundError(f"No images could be loaded from directory '{directory}'.") + return images, masks, images.size(0) + +class LoadImagesFromDirectoryUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + directories = [] + for item in os.listdir(input_dir): + if not os.path.isfile(os.path.join(input_dir, item)) and item != "clipspace": + directories.append(item) + return { + "required": { + "directory": (directories,), + }, + "optional": { + "image_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "skip_first_images": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}), + "meta_batch": ("VHS_BatchManager",), + }, + "hidden": { + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ("IMAGE", "MASK", "INT") + RETURN_NAMES = ("IMAGE", "MASK", "frame_count") + FUNCTION = "load_images" + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + def load_images(self, directory: str, **kwargs): + directory = folder_paths.get_annotated_filepath(strip_path(directory)) + return load_images(directory, **kwargs) + + @classmethod + def IS_CHANGED(s, directory: str, **kwargs): + directory = folder_paths.get_annotated_filepath(strip_path(directory)) + return is_changed_load_images(directory, **kwargs) + + @classmethod + def VALIDATE_INPUTS(s, directory: str, **kwargs): + directory = folder_paths.get_annotated_filepath(strip_path(directory)) + return validate_load_images(directory) + + +class LoadImagesFromDirectoryPath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "directory": ("STRING", {"placeholder": "X://path/to/images", "vhs_path_extensions": []}), + }, + "optional": { + "image_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "skip_first_images": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}), + "meta_batch": ("VHS_BatchManager",), + }, + "hidden": { + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ("IMAGE", "MASK", "INT") + RETURN_NAMES = ("IMAGE", "MASK", "frame_count") + FUNCTION = "load_images" + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + def load_images(self, directory: str, **kwargs): + directory = strip_path(directory) + if directory is None or validate_load_images(directory) != True: + raise Exception("directory is not valid: " + directory) + + return load_images(directory, **kwargs) + + @classmethod + def IS_CHANGED(s, directory: str, **kwargs): + if directory is None: + return "input" + return is_changed_load_images(directory, **kwargs) + + @classmethod + def VALIDATE_INPUTS(s, directory: str, **kwargs): + if directory is None: + return True + return validate_load_images(strip_path(directory)) diff --git a/docs/hel-892/手动分镜视频截取固定参考中文说明.md b/docs/hel-892/手动分镜视频截取固定参考中文说明.md new file mode 100644 index 00000000..50d2632e --- /dev/null +++ b/docs/hel-892/手动分镜视频截取固定参考中文说明.md @@ -0,0 +1,1453 @@ +# 手动分镜视频截取固定参考中文说明 + +新增50非注释位置+2完整源注释;旧27图838位置+19注释逐对象不变。28图888+21仅参考展示。155完整定稿0/实跑0/新增转换0。 + +来源local_file以docs/hel-892/storyboard-document-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。 + +## 手动按分镜视频截取 + +这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。 + +准确版本仅参考;活动文件夹合成、视频循环旁路,身份/宿主恢复/效果未知,转换关闭、未实跑。 + +源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json` + +SHA1:59487d0fc84d64832e36f865bb78008f0d90cf67 + +原字节SHA256:381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132 + +规范全图SHA256:632cb01a99b3c09f19a149d6fb09a31b9b15e45f0591c9a2c13d034d91b423dc + +KJ79f529a84a8c20fe5dcdfa984c6be7a94102c014;LayerStyle3b17c7f488006c872f4cb3d6b37029a9464f1d7b;CustomScripts f2838ed5e59de4d73cde5c98354b87a8d3200190。 + +VHS1.7.7/EasyUse1.3.4/MTB0.5.4准确发布包SHA及成员另列,Git绑定未知,不套近版本。 + +core0.6.0准确tag→e4c61d75555036fa28b6bb34e5fd67b007c9f391;无宿主前端声明。Set/Get/Bypasser身份未知,UE版本仅源文本。 + +### 具体连线与处理条件 + +这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。 + +活动物理链8.IMAGE→10.images;6保存1126经边19覆盖8.skip_first_images,13保存44经边20覆盖8.image_load_cap。两个常量另经11/25接5.var_1/var_2;模板tmp/video/video_{var_1}-{var_2}经21覆盖10保存前缀video/ComfyUI。不访问E盘,不把目录图像称为当前直接视频截取。 + +18保存16(JSON int,源出口FLOAT分开)经23覆盖10保存30,也经26接旁路1.force_rate。10无audio/VAE/meta_batch线;16不是同步或源时长保证。H264/yuv420p/crf19/save_output=true、save_metadata=false/trimfalse/pingpongfalse按准确VHS1.7.7解释;元数据false不等于没有独立首帧PNG。历史预览16不当当前运行结果。 + +视频组mode4:1.IMAGE空出口,frame_count→19.initial_value1、VHS info槽3→27;27.frame_count→22.ceil(a / b)→19.total,27.FPS→25.force_rate;19.index→24.a*b→25.skip;Get30到两式b与25.cap。25.IMAGE→26.SaveImageKJ,frame_count→20,19.flow→20→28.PurgeVRAM。只保留物理线,不模拟旁路、循环或求值。 + +21保存200→Set29[每批截取帧数],Get30同名但提供方/版本均未声明,身份/解析未证,不能假定可靠取200。不开展已收敛旧别名历史调查;不推循环次数、起点或分段长度。 + +1/25保存同视频名、cap200,skip0/200;25的force/skip/cap有外线覆盖。1.AUDIO→36.SaveAudio且mode4;10.audio未接,最终视频不保证声音。SaveAudio只有tmp/audio一个保存值,audioUI源口没有第二保存值,不补空串,不称已试听或写入。 + +26保存tmp/image/ComfyUI、空output_folder、.txt;caption未接。准确KJ实现相对/空目录走output,绝对路径另处理;PNG按计数名保存,caption非None才写标注。不声称实际.txt/目录/图像存在。28准确实现无条件clear_memory且purge_cache参数未使用,purge_models控制卸载;本轮不执行显存清理。 + +四个完整历史对象仅文本保留,含旧E盘与tmp/video产物、工作流PNG及输入引用;不去重、不递归凑位置,不请求api/view或媒体。Info27={}、LoopEnd20=[]与Bypasser15缺键分别零保存;组匹配1|2仅源属性,不证明当前动态作用。 + +根22节点24边,无子图,无frontendVersion;workflowRendererVersion=LG不是版本。UE7.5.1/7.5.2及缺version分别保留,空连接声明不证明无回调。EasyUse1.3.4、MTB0.5.4、VHS1.7.7固定准确包字节,Git绑定未知;不借近版本。无模型节点,不编模型依赖;目标安装、目录权限、素材尺寸、实际帧率/编码器/效果待核。 + +两Note31(mode4)循环次数向上取整、35(mode0)在截取的帧图像中,按照分镜头选取帧图像合成完整保留;注释不是执行证明。155完整定稿0/必要实跑0/新增转换0,保持全停用未检查。 + +原边 root [11, 6, 0, 5, 1, "INT"] + +原边 root [16, 8, 0, 10, 0, "IMAGE"] + +原边 root [19, 6, 0, 8, 3, "INT"] + +原边 root [20, 13, 0, 8, 2, "INT"] + +原边 root [21, 5, 0, 10, 6, "STRING"] + +原边 root [23, 18, 0, 10, 4, "FLOAT"] + +原边 root [25, 13, 0, 5, 2, "INT"] + +原边 root [26, 18, 0, 1, 3, "FLOAT"] + +原边 root [29, 22, 0, 19, 1, "INT"] + +原边 root [31, 19, 0, 20, 0, "FLOW_CONTROL"] + +原边 root [32, 19, 1, 24, 0, "INT"] + +原边 root [38, 24, 0, 25, 7, "INT"] + +原边 root [41, 25, 0, 26, 0, "IMAGE"] + +原边 root [43, 1, 3, 27, 0, "VHS_VIDEOINFO"] + +原边 root [44, 27, 1, 22, 0, "INT"] + +原边 root [45, 27, 0, 25, 3, "FLOAT"] + +原边 root [46, 20, 0, 28, 0, "*"] + +原边 root [47, 21, 0, 29, 0, "INT"] + +原边 root [48, 30, 0, 22, 1, "INT"] + +原边 root [49, 30, 0, 24, 1, "INT"] + +原边 root [50, 30, 0, 25, 6, "INT"] + +原边 root [51, 1, 1, 19, 0, "INT"] + +原边 root [52, 25, 1, 20, 1, "INT"] + +原边 root [56, 1, 2, 36, 0, "AUDIO"] + +原节点 root {"id": 8, "type": "VHS_LoadImagesPath", "mode": 0, "inputs": [{"label": "批次管理", "localized_name": "批次管理", "name": "meta_batch", "shape": 7, "type": "VHS_BatchManager", "link": null}, {"label": "路径", "localized_name": "路径", "name": "directory", "type": "STRING", "widget": {"name": "directory"}, "link": null}, {"label": "图像读取上限", "localized_name": "图像读取上限", "name": "image_load_cap", "shape": 7, "type": "INT", "widget": {"name": "image_load_cap"}, "link": 20}, {"label": "跳过前X张", "localized_name": "跳过前X张", "name": "skip_first_images", "shape": 7, "type": "INT", "widget": {"name": "skip_first_images"}, "link": 19}, {"label": "间隔", "localized_name": "间隔", "name": "select_every_nth", "shape": 7, "type": "INT", "widget": {"name": "select_every_nth"}, "link": null}], "outputs": [{"localized_name": "图像", "name": "图像", "type": "IMAGE", "links": [16]}, {"localized_name": "遮罩", "name": "遮罩", "type": "MASK", "links": null}, {"localized_name": "帧数", "name": "帧数", "type": "INT", "links": null}], "properties": {"cnr_id": "comfyui-videohelpersuite", "ver": "1.7.7", "Node name for S&R": "VHS_LoadImagesPath", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.1"}}} + +原节点 root {"id": 18, "type": "FloatConstant", "mode": 0, "inputs": [{"label": "值", "localized_name": "值", "name": "value", "type": "FLOAT", "widget": {"name": "value"}, "link": null}], "outputs": [{"localized_name": "值", "name": "值", "type": "FLOAT", "links": [23, 26]}], "properties": {"cnr_id": "comfyui-kjnodes", "ver": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", "Node name for S&R": "FloatConstant", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 21, "type": "INTConstant", "mode": 0, "inputs": [{"label": "值", "localized_name": "值", "name": "value", "type": "INT", "widget": {"name": "value"}, "link": null}], "outputs": [{"localized_name": "值", "name": "值", "type": "INT", "links": [47]}], "properties": {"cnr_id": "comfyui-kjnodes", "ver": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", "Node name for S&R": "INTConstant", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 29, "type": "SetNode", "mode": 0, "inputs": [{"name": "INT", "type": "INT", "link": 47}], "outputs": [{"name": "*", "type": "*", "links": null}], "properties": {"previousName": "每批截取帧数"}} + +原节点 root {"id": 28, "type": "LayerUtility: PurgeVRAM", "mode": 4, "inputs": [{"localized_name": "任意内容", "name": "anything", "type": "*", "link": 46}, {"localized_name": "清除缓存", "name": "purge_cache", "type": "BOOLEAN", "widget": {"name": "purge_cache"}, "link": null}, {"localized_name": "清除模型", "name": "purge_models", "type": "BOOLEAN", "widget": {"name": "purge_models"}, "link": null}], "outputs": [], "properties": {"cnr_id": "comfyui_layerstyle", "ver": "3b17c7f488006c872f4cb3d6b37029a9464f1d7b", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}}, "Node name for S&R": "LayerUtility: PurgeVRAM"}} + +原节点 root {"id": 27, "type": "VHS_VideoInfoLoaded", "mode": 4, "inputs": [{"label": "视频信息", "localized_name": "视频信息", "name": "video_info", "type": "VHS_VIDEOINFO", "link": 43}], "outputs": [{"localized_name": "FPS🟦", "name": "FPS🟦", "type": "FLOAT", "links": [45]}, {"localized_name": "帧数🟦", "name": "帧数🟦", "type": "INT", "links": [44]}, {"localized_name": "时长🟦", "name": "时长🟦", "type": "FLOAT", "links": null}, {"localized_name": "宽度🟦", "name": "宽度🟦", "type": "INT", "links": null}, {"localized_name": "高度🟦", "name": "高度🟦", "type": "INT", "links": null}], "properties": {"cnr_id": "comfyui-videohelpersuite", "ver": "1.7.7", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}}, "Node name for S&R": "VHS_VideoInfoLoaded"}} + +原节点 root {"id": 30, "type": "GetNode", "mode": 4, "inputs": [], "outputs": [{"name": "INT", "type": "INT", "links": [48, 49, 50]}], "properties": {}} + +原节点 root {"id": 25, "type": "VHS_LoadVideo", "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": 45}, {"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": 50}, {"label": "跳过前X帧", "localized_name": "跳过前X帧", "name": "skip_first_frames", "type": "INT", "widget": {"name": "skip_first_frames"}, "link": 38}, {"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": [41]}, {"localized_name": "帧计数", "name": "帧计数", "type": "INT", "links": [52]}, {"localized_name": "音频", "name": "音频", "type": "AUDIO", "links": []}, {"localized_name": "视频信息", "name": "视频信息", "type": "VHS_VIDEOINFO", "links": []}], "properties": {"cnr_id": "comfyui-videohelpersuite", "ver": "1.7.7", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}, "Node name for S&R": "VHS_LoadVideo"}} + +原节点 root {"id": 20, "type": "easy forLoopEnd", "mode": 4, "inputs": [{"label": "流", "localized_name": "流", "name": "flow", "shape": 5, "type": "FLOW_CONTROL", "link": 31}, {"label": "初始值1", "localized_name": "初始值1", "name": "initial_value1", "shape": 7, "type": "*", "link": 52}, {"label": "初始值2", "localized_name": "初始值2", "name": "initial_value2", "type": "*", "link": null}], "outputs": [{"localized_name": "值1", "name": "值1", "type": "*", "links": [46]}, {"name": "value2", "type": "*", "links": null}], "properties": {"cnr_id": "comfyui-easy-use", "ver": "1.3.4", "Node name for S&R": "easy forLoopEnd", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 19, "type": "easy forLoopStart", "mode": 4, "inputs": [{"label": "初始值1", "localized_name": "初始值1", "name": "initial_value1", "shape": 7, "type": "*", "link": 51}, {"label": "总量", "localized_name": "总量", "name": "total", "type": "INT", "widget": {"name": "total"}, "link": 29}, {"label": "初始值2", "localized_name": "初始值2", "name": "initial_value2", "type": "*", "link": null}], "outputs": [{"localized_name": "开始", "name": "流", "type": "FLOW_CONTROL", "links": [31]}, {"localized_name": "索引", "name": "索引", "type": "INT", "links": [32]}, {"localized_name": "值1", "name": "值1", "type": "*", "links": null}, {"name": "value2", "type": "*", "links": null}], "properties": {"cnr_id": "comfyui-easy-use", "ver": "1.3.4", "Node name for S&R": "easy forLoopStart", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 22, "type": "MathExpression|pysssss", "mode": 4, "inputs": [{"label": "a", "localized_name": "a", "name": "a", "shape": 7, "type": "INT,FLOAT,IMAGE,LATENT", "link": 44}, {"label": "b", "localized_name": "b", "name": "b", "shape": 7, "type": "INT,FLOAT,IMAGE,LATENT", "link": 48}, {"label": "c", "localized_name": "c", "name": "c", "shape": 7, "type": "INT,FLOAT,IMAGE,LATENT", "link": null}, {"label": "表达式", "localized_name": "表达式", "name": "expression", "type": "INT,FLOAT,IMAGE,LATENT", "widget": {"name": "expression"}, "link": null}], "outputs": [{"localized_name": "整数", "name": "整数", "type": "INT", "links": [29]}, {"localized_name": "浮点", "name": "浮点", "type": "FLOAT", "links": null}], "properties": {"cnr_id": "comfyui-custom-scripts", "ver": "f2838ed5e59de4d73cde5c98354b87a8d3200190", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 31, "type": "Note", "mode": 4, "inputs": [], "outputs": [], "properties": {}} + +原节点 root {"id": 10, "type": "VHS_VideoCombine", "mode": 0, "inputs": [{"label": "图像", "localized_name": "图像", "name": "images", "type": "IMAGE", "link": 16}, {"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": 23}, {"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": 21}, {"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": "1.7.7", "Node name for S&R": "VHS_VideoCombine", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.1"}}} + +原节点 root {"id": 15, "type": "Fast Groups Bypasser (rgthree)", "mode": 0, "inputs": [], "outputs": [{"label": "可选连接", "localized_name": "可选连接", "name": "OPT_CONNECTION", "type": "*", "links": null}], "properties": {"matchColors": "", "matchTitle": "1|2", "showNav": true, "showAllGraphs": true, "sort": "position", "customSortAlphabet": "", "toggleRestriction": "default", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 24, "type": "MathExpression|pysssss", "mode": 4, "inputs": [{"label": "a", "localized_name": "a", "name": "a", "shape": 7, "type": "INT,FLOAT,IMAGE,LATENT", "link": 32}, {"label": "b", "localized_name": "b", "name": "b", "shape": 7, "type": "INT,FLOAT,IMAGE,LATENT", "link": 49}, {"label": "c", "localized_name": "c", "name": "c", "shape": 7, "type": "INT,FLOAT,IMAGE,LATENT", "link": null}, {"label": "表达式", "localized_name": "表达式", "name": "expression", "type": "INT,FLOAT,IMAGE,LATENT", "widget": {"name": "expression"}, "link": null}], "outputs": [{"localized_name": "整数", "name": "整数", "type": "INT", "links": [38]}, {"localized_name": "浮点", "name": "浮点", "type": "FLOAT", "links": null}], "properties": {"cnr_id": "comfyui-custom-scripts", "ver": "f2838ed5e59de4d73cde5c98354b87a8d3200190", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}}}} + +原节点 root {"id": 26, "type": "SaveImageKJ", "mode": 4, "inputs": [{"label": "图像", "localized_name": "图像", "name": "images", "type": "IMAGE", "link": 41}, {"label": "标注", "localized_name": "标注", "name": "caption", "shape": 7, "type": "STRING", "link": null}, {"label": "文件名前缀", "localized_name": "文件名前缀", "name": "filename_prefix", "type": "STRING", "widget": {"name": "filename_prefix"}, "link": null}, {"label": "输出文件夹", "localized_name": "输出文件夹", "name": "output_folder", "type": "STRING", "widget": {"name": "output_folder"}, "link": null}, {"label": "标注文件扩展名", "localized_name": "标注文件扩展名", "name": "caption_file_extension", "shape": 7, "type": "STRING", "widget": {"name": "caption_file_extension"}, "link": null}], "outputs": [{"localized_name": "文件名", "name": "文件名", "type": "STRING", "links": []}], "properties": {"cnr_id": "comfyui-kjnodes", "ver": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}, "Node name for S&R": "SaveImageKJ"}} + +原节点 root {"id": 5, "type": "Apply Text Template (mtb)", "mode": 0, "inputs": [{"label": "模板", "localized_name": "模板", "name": "template", "type": "STRING", "widget": {"name": "template"}, "link": null}, {"label": "变量_1", "localized_name": "变量_1", "name": "var_1", "type": "*", "link": 11}, {"label": "var_2", "name": "var_2", "type": "*", "link": 25}, {"name": "var_3", "type": "*", "link": null}], "outputs": [{"localized_name": "字符串", "name": "字符串", "type": "STRING", "links": [21]}], "properties": {"cnr_id": "comfy-mtb", "ver": "0.5.4", "Node name for S&R": "Apply Text Template (mtb)", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 35, "type": "Note", "mode": 0, "inputs": [], "outputs": [], "properties": {}} + +原节点 root {"id": 1, "type": "VHS_LoadVideo", "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": 26}, {"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": []}, {"localized_name": "帧计数", "name": "帧计数", "type": "INT", "links": [51]}, {"localized_name": "音频", "name": "音频", "type": "AUDIO", "links": [56]}, {"localized_name": "视频信息", "name": "视频信息", "type": "VHS_VIDEOINFO", "links": [43]}], "properties": {"cnr_id": "comfyui-videohelpersuite", "ver": "1.7.7", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 36, "type": "SaveAudio", "mode": 4, "inputs": [{"localized_name": "音频", "name": "audio", "type": "AUDIO", "link": 56}, {"localized_name": "文件名前缀", "name": "filename_prefix", "type": "STRING", "widget": {"name": "filename_prefix"}, "link": null}, {"localized_name": "音频UI", "name": "audioUI", "type": "AUDIO_UI", "widget": {"name": "audioUI"}, "link": null}], "outputs": [], "properties": {"cnr_id": "comfy-core", "ver": "0.6.0", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}}, "Node name for S&R": "SaveAudio"}} + +原节点 root {"id": 13, "type": "INTConstant", "mode": 0, "inputs": [{"label": "值", "localized_name": "值", "name": "value", "type": "INT", "widget": {"name": "value"}, "link": null}], "outputs": [{"localized_name": "值", "name": "值", "type": "INT", "links": [20, 25]}], "properties": {"cnr_id": "comfyui-kjnodes", "ver": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", "Node name for S&R": "INTConstant", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +原节点 root {"id": 6, "type": "INTConstant", "mode": 0, "inputs": [{"label": "值", "localized_name": "值", "name": "value", "type": "INT", "widget": {"name": "value"}, "link": null}], "outputs": [{"localized_name": "值", "name": "值", "type": "INT", "links": [11, 19]}], "properties": {"cnr_id": "comfyui-kjnodes", "ver": "79f529a84a8c20fe5dcdfa984c6be7a94102c014", "Node name for S&R": "INTConstant", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"}}} + +### 使用与核对 + +这张图当前把文件夹中的图片批次合成为视频,便于按分镜手动选帧后再合成。活动8文件夹→10合成,6/13常量覆盖跳过数和数量上限,18覆盖播放帧率,5模板覆盖前缀。视频抽帧/循环组mode4旁路,不能称当前直接截取视频;音频未接合成。Set/Get身份、原前端/UE恢复、目录素材和实际效果未知;仅参考说明,转换关闭、未实跑。 + +操作1:先核活动文件夹与旁路视频分支,保持停用,不切组、不运行循环。 + +操作2:核跳过/上限/帧率/前缀外线,保存值不是最终值或真实产物。 + +操作3:分开读取4历史对象与2完整注释,不访问目录/视频/音频或旧预览。 + +常见问题:合成音频未接;Set/Get不能可靠取200;.txt扩展名不保证标注写入;原前端/UE/编码器/效果待核。 + +### 逐保存位置说明 + +#### 1. 节点8 · 图片文件夹引用(directory) + +保存E盘目录仅文本,不访问目录。活动8.IMAGE→10.images;按准确实现文件名排序、筛选、跳过和间隔,再受cap限制,不能当作分镜智能识别。 + +```json +"E:\\ComfyUI-Data\\output\\tmp\\image" +``` + +类:VHS_LoadImagesPath;JSON类型:str;角色:scalar。 + +源位置:`/nodes/0/widgets_values/directory` + +定义默认:schema无显式默认;单位:目录文本 + +范围/条件:字符串,目标目录权限/存在性未知 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [2] 目录读取、图像尺寸匹配和批次;不访问E盘;videohelpersuite/load_images_nodes.py 15~126行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [3] 路径加载具名schema,cap/skip/nth;videohelpersuite/load_images_nodes.py 165~206行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [4] 按文件名排序、过滤、跳过和间隔;videohelpersuite/utils.py 137~155行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 2. 节点8 · 文件夹图片数量上限(image_load_cap) + +保存0被13保存44经边20覆盖;44是上限,不保证44张。 + +```json +0 +``` + +类:VHS_LoadImagesPath;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/0/widgets_values/image_load_cap` + +定义默认:0;单位:图片/间隔 + +范围/条件:0~9007199254740991;0不设此上限 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [2] 目录读取、图像尺寸匹配和批次;不访问E盘;videohelpersuite/load_images_nodes.py 15~126行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [3] 路径加载具名schema,cap/skip/nth;videohelpersuite/load_images_nodes.py 165~206行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [4] 按文件名排序、过滤、跳过和间隔;videohelpersuite/utils.py 137~155行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 3. 节点8 · 文件夹跳过图片数(skip_first_images) + +保存0被6保存1126经边19覆盖;不是视频原始帧索引或精确时间。 + +```json +0 +``` + +类:VHS_LoadImagesPath;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/0/widgets_values/skip_first_images` + +定义默认:0;单位:图片/间隔 + +范围/条件:0~9007199254740991 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [2] 目录读取、图像尺寸匹配和批次;不访问E盘;videohelpersuite/load_images_nodes.py 15~126行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [3] 路径加载具名schema,cap/skip/nth;videohelpersuite/load_images_nodes.py 165~206行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [4] 按文件名排序、过滤、跳过和间隔;videohelpersuite/utils.py 137~155行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 4. 节点8 · 文件夹间隔取图(select_every_nth) + +保存1;具体排序/图片尺寸和可用素材未核验,不访问E盘。 + +```json +1 +``` + +类:VHS_LoadImagesPath;JSON类型:int;角色:scalar。 + +源位置:`/nodes/0/widgets_values/select_every_nth` + +定义默认:1;单位:图片/间隔 + +范围/条件:1~9007199254740991 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [2] 目录读取、图像尺寸匹配和批次;不访问E盘;videohelpersuite/load_images_nodes.py 15~126行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [3] 路径加载具名schema,cap/skip/nth;videohelpersuite/load_images_nodes.py 165~206行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [4] 按文件名排序、过滤、跳过和间隔;videohelpersuite/utils.py 137~155行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 5. 节点8 · 完整历史预览对象(videopreview) + +四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "image_load_cap": 0, + "skip_first_images": 0, + "select_every_nth": 1, + "filename": "E:\\ComfyUI-Data\\output\\tmp\\image", + "type": "path", + "format": "folder" + } +} +``` + +类:VHS_LoadImagesPath;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/0/widgets_values/videopreview` + +定义默认:无服务端默认;单位:历史状态 + +范围/条件:完整对象,不递归增加位置 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [12] 历史预览缓存回调,非实际媒体;web/js/VHS.core.js 915~970行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [11] 同包保存恢复;不证明未知宿主及UE次序;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 6. 节点18 · 具名常量保存值(value) + +18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。 + +```json +16 +``` + +类:FloatConstant;JSON类型:int;角色:scalar。 + +源位置:`/nodes/1/widgets_values/0` + +定义默认:0.0;单位:无固有物理单位 + +范围/条件:-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [13] INTConstant与FloatConstant默认范围及舍入;nodes/nodes.py 31~59行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py + +#### 7. 节点21 · 具名常量保存值(value) + +18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。 + +```json +200 +``` + +类:INTConstant;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/0` + +定义默认:0;单位:无固有物理单位 + +范围/条件:-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [13] INTConstant与FloatConstant默认范围及舍入;nodes/nodes.py 31~59行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py + +#### 8. 节点29 · 具名源标签(身份未知)(name) + +保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。 + +```json +"每批截取帧数" +``` + +类:SetNode;JSON类型:str;角色:identity_unknown。 + +源位置:`/nodes/3/widgets_values/0` + +定义默认:未知:未声明提供方版本;单位:标签文本 + +范围/条件:未知:不以类名绑定实现 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: + +#### 9. 节点28 · 显存清理保存开关(purge_cache) + +28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。 + +```json +true +``` + +类:LayerUtility: PurgeVRAM;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/4/widgets_values/0` + +定义默认:true;单位:开关 + +范围/条件:true/false + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [17] PurgeVRAM默认true,clear_memory无条件、模型清理有条件;py/purge_vram.py 8~37行;commit 3b17c7f488006c872f4cb3d6b37029a9464f1d7b;SHA256 52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py + +#### 10. 节点28 · 显存清理保存开关(purge_models) + +28为mode4,两个值均true。准确实现无条件clear_memory;purge_cache参数未被函数体使用,purge_models条件卸载模型并soft_empty_cache。不要声称关闭purge_cache即可阻止清理;本轮不执行清理。 + +```json +true +``` + +类:LayerUtility: PurgeVRAM;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/4/widgets_values/1` + +定义默认:true;单位:开关 + +范围/条件:true/false + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [17] PurgeVRAM默认true,clear_memory无条件、模型清理有条件;py/purge_vram.py 8~37行;commit 3b17c7f488006c872f4cb3d6b37029a9464f1d7b;SHA256 52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py + +#### 11. 节点30 · 具名源标签(身份未知)(name) + +保存每批截取帧数。Set29接21,Get30到22/24的b及25.cap;两者没有可证明的具名解析关系,不能可靠取200或推算循环。 + +```json +"每批截取帧数" +``` + +类:GetNode;JSON类型:str;角色:identity_unknown。 + +源位置:`/nodes/6/widgets_values/0` + +定义默认:未知:未声明提供方版本;单位:标签文本 + +范围/条件:未知:不以类名绑定实现 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: + +#### 12. 节点25 · 视频文件引用(video) + +1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。 + +```json +"牧马人-1-逃荒来的-1.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/7/widgets_values/video` + +定义默认:动态input枚举,无固定默认;单位:文件引用 + +范围/条件:mp4/webm/mkv/gif/mov等普通文件;实际列表未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 13. 节点25 · 强制采样帧率(force_rate) + +两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/7/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0关闭强制采样 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 14. 节点25 · 自定义宽度(custom_width) + +保存0,实际宽度及动态格式约束未知,不读素材。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;0保持原尺寸或按另一维比例 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 15. 节点25 · 自定义高度(custom_height) + +保存0,实际高度未知;不以保存值保证原片尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;0保持原尺寸或按另一维比例 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 16. 节点25 · 加载帧数上限(frame_load_cap) + +两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。 + +```json +200 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/7/widgets_values/frame_load_cap` + +定义默认:0;单位:帧 + +范围/条件:0~9007199254740991,0不设此上限 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 17. 节点25 · 跳过起始采样帧(skip_first_frames) + +1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。 + +```json +200 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/7/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~9007199254740991,step1 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 18. 节点25 · 间隔取帧(select_every_nth) + +均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/7/widgets_values/select_every_nth` + +定义默认:1;单位:采样帧间隔 + +范围/条件:1~9007199254740991 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 19. 节点25 · 加载格式约束(format) + +保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/7/widgets_values/format` + +定义默认:AnimateDiff;单位:格式选择 + +范围/条件:AnimateDiff内置,外部格式动态扩展未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 20. 节点25 · 完整历史预览对象(videopreview) + +四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "filename": "牧马人-1-逃荒来的-1.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 200, + "skip_first_frames": 200, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/7/widgets_values/videopreview` + +定义默认:无服务端默认;单位:历史状态 + +范围/条件:完整对象,不递归增加位置 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [12] 历史预览缓存回调,非实际媒体;web/js/VHS.core.js 915~970行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [11] 同包保存恢复;不证明未知宿主及UE次序;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 21. 节点19 · 循环总量保存值(total) + +保存1被22外线覆盖;19.initial_value1由1.frame_count输入,非total或已计算index。准确包从索引0或hidden initial_value0开始图展开,但本图mode4且Get身份未知,不模拟循环次数/起点。 + +```json +1 +``` + +类:easy forLoopStart;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/9/widgets_values/0` + +定义默认:1;单位:循环上限 + +范围/条件:1~100000,step1 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [23] 1.3.4循环schema、初始索引及图展开条件;不模拟循环;py/nodes/logic.py 800~903行;commit 发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627;SHA256 9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1;https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip + +#### 22. 节点22 · 原始表达式文本(expression) + +22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。 + +```json +"ceil(a / b)" +``` + +类:MathExpression|pysssss;JSON类型:str;角色:scalar。 + +源位置:`/nodes/10/widgets_values/0` + +定义默认:schema无显式默认;单位:未知,随输入而定 + +范围/条件:多行,dynamicPrompts=false;未声明字符串长度范围 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [20] 运算符及ceil函数注册;只读不求值;py/math_expression.py 15~59行;commit f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py +- [21] 表达式schema、无显式默认及INT/FLOAT出口;py/math_expression.py 98~126行;commit f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py + +#### 23. 节点10 · 合成播放帧率(frame_rate) + +10保存30被18保存16经边23覆盖。18源JSON为int,声明输出FLOAT分开;16不是原片FPS/源时长/同步保证。 + +```json +30 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/12/widgets_values/frame_rate` + +定义默认:8;单位:帧/秒 + +范围/条件:min1,step1,无显式max + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 24. 节点10 · 附加循环次数(loop_count) + +保存0;本H264视频分支不额外循环,不混同GIF循环。 + +```json +0 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/12/widgets_values/loop_count` + +定义默认:0;单位:次 + +范围/条件:0~100 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 25. 节点10 · 合成文件名前缀(filename_prefix) + +保存video/ComfyUI被5模板外线覆盖;模板保存tmp/video/video_{var_1}-{var_2},6/13接var_1/var_2。不执行替换或证明当前文件存在。 + +```json +"video/ComfyUI" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:linked_saved_value。 + +源位置:`/nodes/12/widgets_values/filename_prefix` + +定义默认:AnimateDiff;单位:路径/前缀 + +范围/条件:无显式长度限制,目录权限未知 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 26. 节点10 · 合成编码格式(format) + +保存H264 MP4,模板libx264;目标编码器未核验,不执行ffmpeg。 + +```json +"video/h264-mp4" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/12/widgets_values/format` + +定义默认:动态格式;函数回退image/gif;单位:格式选择 + +范围/条件:动态ffmpeg格式,准确包含video/h264-mp4 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 27. 节点10 · 像素格式(pix_fmt) + +保存yuv420p,不保证实际尺寸、兼容性或编码成功。 + +```json +"yuv420p" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/12/widgets_values/pix_fmt` + +定义默认:yuv420p(模板首项);单位:像素格式 + +范围/条件:yuv420p/yuv420p10le + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 28. 节点10 · 恒定质量因子(crf) + +保存19传入-crf;不承诺固定码率/大小或效果。 + +```json +19 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/12/widgets_values/crf` + +定义默认:19;单位:CRF + +范围/条件:0~100,step1 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 29. 节点10 · 视频元数据开关(save_metadata) + +保存false控制视频元数据;不等于没有独立首帧PNG,首帧另受VHS_MetadataImage影响。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/12/widgets_values/save_metadata` + +定义默认:true;单位:开关 + +范围/条件:true/false,模板及全局条件 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 30. 节点10 · 混流裁切策略(trim_to_audio) + +保存false,本图10.audio未接,不能称保留原声音或自动混流;不执行编码。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/12/widgets_values/trim_to_audio` + +定义默认:false;单位:开关 + +范围/条件:有效音频存在才进入混流 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 31. 节点10 · 往返追加(pingpong) + +保存false不追加逆序中间帧。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/12/widgets_values/pingpong` + +定义默认:false;单位:开关 + +范围/条件:true/false + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 32. 节点10 · 选择输出目录(save_output) + +保存true选择output,前缀被外线覆盖。可能涉及视频和独立PNG;目录/权限/实际结果未知。 + +```json +true +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/12/widgets_values/save_output` + +定义默认:true;单位:开关 + +范围/条件:true选output,false选temp + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [5] 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 234~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [6] 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 420~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [7] H264/CRF/像素及音频模板;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [8] 格式模板、元数据参数条件;videohelpersuite/nodes.py 48~165行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 33. 节点10 · 完整历史预览对象(videopreview) + +四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "filename": "video_1126-44_00001.mp4", + "subfolder": "tmp\\video", + "type": "output", + "format": "video/h264-mp4", + "frame_rate": 16, + "workflow": "video_1126-44_00001.png", + "fullpath": "E:\\ComfyUI-Data\\output\\tmp\\video\\video_1126-44_00001.mp4" + } +} +``` + +类:VHS_VideoCombine;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/12/widgets_values/videopreview` + +定义默认:无服务端默认;单位:历史状态 + +范围/条件:完整对象,不递归增加位置 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [12] 历史预览缓存回调,非实际媒体;web/js/VHS.core.js 915~970行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [11] 同包保存恢复;不证明未知宿主及UE次序;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 34. 节点24 · 原始表达式文本(expression) + +22保存ceil(a / b),a来自27.loaded_frame_count、b来自Get30;24保存a*b,a来自19.index、b来自Get30,接25.skip。仅固定算式和注册语义,不求值、不推次数/分段长度。 + +```json +"a*b" +``` + +类:MathExpression|pysssss;JSON类型:str;角色:scalar。 + +源位置:`/nodes/14/widgets_values/0` + +定义默认:schema无显式默认;单位:未知,随输入而定 + +范围/条件:多行,dynamicPrompts=false;未声明字符串长度范围 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [20] 运算符及ceil函数注册;只读不求值;py/math_expression.py 15~59行;commit f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py +- [21] 表达式schema、无显式默认及INT/FLOAT出口;py/math_expression.py 98~126行;commit f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py + +#### 35. 节点26 · 图片保存前缀(filename_prefix) + +保存tmp/image/ComfyUI,图像来自25;mode4,不保证产物存在。 + +```json +"tmp/image/ComfyUI" +``` + +类:SaveImageKJ;JSON类型:str;角色:scalar。 + +源位置:`/nodes/15/widgets_values/0` + +定义默认:ComfyUI;单位:文本/路径 + +范围/条件:schema无显式长度限制;目录与权限未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [14] SaveImageKJ目录、PNG及caption条件;nodes/image_nodes.py 3235~3321行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py + +#### 36. 节点26 · 图片输出目录(output_folder) + +保存空字符串;准确实现只有绝对路径走指定目录,否则走ComfyUI output及前缀路径。不把空串补成默认,不访问目录。 + +```json +"" +``` + +类:SaveImageKJ;JSON类型:str;角色:scalar。 + +源位置:`/nodes/15/widgets_values/1` + +定义默认:output;单位:文本/路径 + +范围/条件:schema无显式长度限制;目录与权限未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [14] SaveImageKJ目录、PNG及caption条件;nodes/image_nodes.py 3235~3321行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py + +#### 37. 节点26 · 标注扩展名(caption_file_extension) + +保存.txt但caption未接。准确实现仅caption is not None才写标注;不能声称本图输出.txt。PNG仍按图像保存路径处理。 + +```json +".txt" +``` + +类:SaveImageKJ;JSON类型:str;角色:scalar。 + +源位置:`/nodes/15/widgets_values/2` + +定义默认:.txt;单位:文本/路径 + +范围/条件:schema无显式长度限制;目录与权限未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [14] SaveImageKJ目录、PNG及caption条件;nodes/image_nodes.py 3235~3321行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py + +#### 38. 节点5 · 文件名前缀模板(template) + +保存tmp/video/video_{var_1}-{var_2}。准确包对kwargs按{键}逐字替换;源6/13连var_1/var_2,输出到10前缀。不执行替换;原前端未声明,动态口恢复/UE次序未知。 + +```json +"tmp/video/video_{var_1}-{var_2}" +``` + +类:Apply Text Template (mtb);JSON类型:str;角色:scalar。 + +源位置:`/nodes/16/widgets_values/0` + +定义默认:空字符串;单位:模板文本 + +范围/条件:多行,无显式长度范围 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [25] 0.5.4模板schema及按kwargs字面替换,不计算本图结果;nodes/graph_utils.py 113~141行;commit 发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +#### 39. 节点1 · 视频文件引用(video) + +1/25均保存同一牧马人视频名,仅源文本。两者mode4旁路,不读取媒体、不称正在截取或已上传。 + +```json +"牧马人-1-逃荒来的-1.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/18/widgets_values/video` + +定义默认:动态input枚举,无固定默认;单位:文件引用 + +范围/条件:mp4/webm/mkv/gif/mov等普通文件;实际列表未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 40. 节点1 · 强制采样帧率(force_rate) + +两节点保存16;1由18外线覆盖,25由27.loaded_fps覆盖。真实FPS未知,保存值不是最终运行值,也不保证音画同步。 + +```json +16 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:linked_saved_value。 + +源位置:`/nodes/18/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1;0关闭强制采样 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 41. 节点1 · 自定义宽度(custom_width) + +保存0,实际宽度及动态格式约束未知,不读素材。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/18/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;0保持原尺寸或按另一维比例 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 42. 节点1 · 自定义高度(custom_height) + +保存0,实际高度未知;不以保存值保证原片尺寸。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/18/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;0保持原尺寸或按另一维比例 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 43. 节点1 · 加载帧数上限(frame_load_cap) + +两视频保存200;25由Get30外线覆盖,1无此外线。上限不是实际帧数,Get身份未知不可靠取200。 + +```json +200 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/18/widgets_values/frame_load_cap` + +定义默认:0;单位:帧 + +范围/条件:0~9007199254740991,0不设此上限 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 44. 节点1 · 跳过起始采样帧(skip_first_frames) + +1保存0、25保存200;25由24算式外线覆盖。不得计算实际起点或由文件名推时长。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/18/widgets_values/skip_first_frames` + +定义默认:0;单位:采样帧 + +范围/条件:0~9007199254740991,step1 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 45. 节点1 · 间隔取帧(select_every_nth) + +均保存1,采样后不再间隔抽取;仍不证明读取成功或音频同步。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/18/widgets_values/select_every_nth` + +定义默认:1;单位:采样帧间隔 + +范围/条件:1~9007199254740991 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 46. 节点1 · 加载格式约束(format) + +保存AnimateDiff是加载约束,不是视频编码器或模型依赖;无VAE/meta_batch线,不编造模型需求。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/18/widgets_values/format` + +定义默认:AnimateDiff;单位:格式选择 + +范围/条件:AnimateDiff内置,外部格式动态扩展未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [0] 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 22~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [1] 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 293~477行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [10] VHS准确四类节点注册;videohelpersuite/nodes.py 1020~1050行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 47. 节点1 · 完整历史预览对象(videopreview) + +四对象分别原样保存。Combine历史16与当前保存30/外线16分开;旧E盘/tmp/video文件、PNG或输入文件名不是当前产物证明。不请求api/view或媒体。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "filename": "牧马人-1-逃荒来的-1.mp4", + "type": "input", + "format": "video/mp4", + "force_rate": 16, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 200, + "skip_first_frames": 0, + "select_every_nth": 1 + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/18/widgets_values/videopreview` + +定义默认:无服务端默认;单位:历史状态 + +范围/条件:完整对象,不递归增加位置 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [12] 历史预览缓存回调,非实际媒体;web/js/VHS.core.js 915~970行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip +- [11] 同包保存恢复;不证明未知宿主及UE次序;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +#### 48. 节点36 · 旁路音频保存前缀(filename_prefix) + +仅保存tmp/audio一个值;audioUI是源输入口但没有第二个保存值,不补空串。1.AUDIO→36且mode4,准确core SaveAudio调用FLAC输出描述符;未试听/写入,不代表10最终视频有音轨。 + +```json +"tmp/audio" +``` + +类:SaveAudio;JSON类型:str;角色:scalar。 + +源位置:`/nodes/19/widgets_values/0` + +定义默认:audio/ComfyUI;单位:路径/前缀 + +范围/条件:schema无显式长度范围;动态目录权限未知 + +原mode=4;旁路,不模拟执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [33] core0.6.0 SaveAudio具名schema及FLAC输出调用;comfy_extras/nodes_audio.py 120~141行;commit e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py +- [34] AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频;comfy_api/latest/_ui.py 260~390行;commit e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py + +#### 49. 节点13 · 具名常量保存值(value) + +18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。 + +```json +44 +``` + +类:INTConstant;JSON类型:int;角色:scalar。 + +源位置:`/nodes/20/widgets_values/0` + +定义默认:0;单位:无固有物理单位 + +范围/条件:-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [13] INTConstant与FloatConstant默认范围及舍入;nodes/nodes.py 31~59行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py + +#### 50. 节点6 · 具名常量保存值(value) + +18保存16的JSON为int,schema为FLOAT;实现round(value,6)。21保存200→Set29;13保存44→8.cap及5.var_2;6保存1126→8.skip及5.var_1。仅说明物理连接,不计算运行结果。 + +```json +1126 +``` + +类:INTConstant;JSON类型:int;角色:scalar。 + +源位置:`/nodes/21/widgets_values/0` + +定义默认:0;单位:无固有物理单位 + +范围/条件:-0xffffffffffffffff~0xffffffffffffffff;FLOAT step0.00001 + +原mode=0;活动保存态,不等于实际已执行。源声明不是目标安装证明;未构造prompt。 + +依据: +- [13] INTConstant与FloatConstant默认范围及舍入;nodes/nodes.py 31~59行;commit 79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py + +### 零保存节点与源注释 + +27 VHS_VideoInfoLoaded:原{}零位置;不同于缺键/[]。 + +20 easy forLoopEnd:原[]零位置;不补参数。 + +15 Fast Groups Bypasser (rgthree):原缺widgets_values键;提供方/版本未知,不模拟动态组开关。 + +节点31,位置`/nodes/11/widgets_values` + +完整源注释,仅作者说明,不是执行证明。 + +```text +循环次数向上取整 +``` + +节点35,位置`/nodes/17/widgets_values` + +完整源注释,仅作者说明,不是执行证明。 + +```text +在截取的帧图像中,按照分镜头选取帧图像合成 +``` + +### 固定原件索引 + +0. 1.7.7加载格式、采样和尺寸条件;videohelpersuite/load_video_nodes.py 第22~168行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +1. 加载实现和schema;不执行媒体;videohelpersuite/load_video_nodes.py 第293~477行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +2. 目录读取、图像尺寸匹配和批次;不访问E盘;videohelpersuite/load_images_nodes.py 第15~126行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +3. 路径加载具名schema,cap/skip/nth;videohelpersuite/load_images_nodes.py 第165~206行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +4. 按文件名排序、过滤、跳过和间隔;videohelpersuite/utils.py 第137~155行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +5. 1.7.7合成schema、目录和首帧PNG条件;videohelpersuite/nodes.py 第234~420行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +6. 视频编码、音频条件和中间文件;videohelpersuite/nodes.py 第420~625行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +7. H264/CRF/像素及音频模板;video_formats/h264-mp4.json 第1~15行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +8. 格式模板、元数据参数条件;videohelpersuite/nodes.py 第48~165行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +9. VideoInfoLoaded五出口与loaded_键;videohelpersuite/nodes.py 第940~970行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +10. VHS准确四类节点注册;videohelpersuite/nodes.py 第1020~1050行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +11. 同包保存恢复;不证明未知宿主及UE次序;web/js/VHS.core.js 第41~168行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +12. 历史预览缓存回调,非实际媒体;web/js/VHS.core.js 第915~970行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip + +13. INTConstant与FloatConstant默认范围及舍入;nodes/nodes.py 第31~59行;提交79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 9745bff6abba6229272820e8b401c909c2b33e87ca68e2bf42c946cefbf9dd30;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/nodes.py + +14. SaveImageKJ目录、PNG及caption条件;nodes/image_nodes.py 第3235~3321行;提交79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 b246133148284461f161529f9e846bb0d32420eedf990f5315f21e73f80d75d4;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/nodes/image_nodes.py + +15. KJ节点映射配置;__init__.py 第1~120行;提交79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py + +16. KJ配置生成准确注册映射;__init__.py 第232~246行;提交79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 cd120dd79ee58c4b299ab03ef4ab6d0e68adfbc3df3499d9e1c22692f2ae1b0f;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/__init__.py + +17. PurgeVRAM默认true,clear_memory无条件、模型清理有条件;py/purge_vram.py 第8~37行;提交3b17c7f488006c872f4cb3d6b37029a9464f1d7b;SHA256 52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py + +18. PurgeVRAM准确注册;py/purge_vram.py 第72~80行;提交3b17c7f488006c872f4cb3d6b37029a9464f1d7b;SHA256 52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/purge_vram.py + +19. clear_memory的GC及CUDA可用条件;不执行;py/imagefunc.py 第2123~2130行;提交3b17c7f488006c872f4cb3d6b37029a9464f1d7b;SHA256 7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/py/imagefunc.py + +20. 运算符及ceil函数注册;只读不求值;py/math_expression.py 第15~59行;提交f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py + +21. 表达式schema、无显式默认及INT/FLOAT出口;py/math_expression.py 第98~126行;提交f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py + +22. MathExpression准确注册;py/math_expression.py 第245~251行;提交f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 687dca7acec29da95c5153a9a386e29450d8f42106180b46c0dfece085b44857;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/py/math_expression.py + +23. 1.3.4循环schema、初始索引及图展开条件;不模拟循环;py/nodes/logic.py 第800~903行;提交发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627;SHA256 9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1;https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip + +24. 循环准确注册;py/nodes/logic.py 第1738~1745行;提交发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627;SHA256 9ac063949597687c1788e2015b4f2330fe986b94d394c9e8063e3e7cc798b0a1;https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip + +25. 0.5.4模板schema及按kwargs字面替换,不计算本图结果;nodes/graph_utils.py 第113~141行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +26. 模板__nodes__模块列表;nodes/graph_utils.py 第870~882行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 9ffb664380050ce39885ed508722a540105e12594cc6670fb8015c7b53dcbfa7;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +27. MTB显示名注册规则;__init__.py 第190~205行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 140c463336a1251e674e15623452b6d0f1c82e85d3b7e1272d32f68856b16fa6;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +28. MTB类名去前缀及驼峰显示名;log.py 第77~87行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 ebee2327a46276b027c23ade757f22869ce1577e0996675a7f176a7ade2e0f09;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +29. 同包模板动态var_输入恢复;未知宿主及UE次序;web/mtb_widgets.js 第1168~1171行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 fc2aa9b9d7fe493bed98341074038904cd5c994dbbfb081cbd2c8626bc731757;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +30. SaveAudio准确扩展注册;comfy_extras/nodes_audio.py 第603~626行;提交e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py + +31. 音频文件描述符和output目录分派;comfy_api/latest/_ui.py 第27~76行;提交e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py + +32. 模板动态连接setup与恢复回调;web/comfy_shared.js 第377~445行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 a8256d20124f1b73f5bb3544cbce320296fdb520d187665f7a8cd97123ceee58;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +33. core0.6.0 SaveAudio具名schema及FLAC输出调用;comfy_extras/nodes_audio.py 第120~141行;提交e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 a77d1b33d2a445322c5b88bba1ecb4cd60a50b7fc46253ffa74db3aacb89505f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_extras/nodes_audio.py + +34. AudioSaveHelper计数名/目录、编码和输出描述符;不读取音频;comfy_api/latest/_ui.py 第260~390行;提交e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/comfy_api/latest/_ui.py + +35. 准确提交或发布包许可原文;LICENSE 第1~674行;提交79f529a84a8c20fe5dcdfa984c6be7a94102c014;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/79f529a84a8c20fe5dcdfa984c6be7a94102c014/LICENSE + +36. 准确提交或发布包许可原文;LICENSE 第1~21行;提交3b17c7f488006c872f4cb3d6b37029a9464f1d7b;SHA256 5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0;https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/3b17c7f488006c872f4cb3d6b37029a9464f1d7b/LICENSE + +37. 准确提交或发布包许可原文;LICENSE 第1~21行;提交f2838ed5e59de4d73cde5c98354b87a8d3200190;SHA256 3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c;https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/f2838ed5e59de4d73cde5c98354b87a8d3200190/LICENSE + +38. 准确提交或发布包许可原文;LICENSE 第1~674行;提交发布包SHA256:75ed4b6cb1977ee678bc19c30162d69f16cd1cc1c560f3173b090e955a0f7627;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://cdn.comfy.org/yolain/comfyui-easy-use/1.3.4/node.zip + +39. 准确提交或发布包许可原文;LICENSE 第1~21行;提交发布包SHA256:f5e0bb7631fdfa0f858da9a121beec55ed6389b5c442ccd2a91d8866f2ea28c1;SHA256 5f8107313a20aa2a35fd7cc877b4e526ed852e3b8ad761b19f3e4abed8508bb9;https://cdn.comfy.org/mel/comfy-mtb/0.5.4/node.zip + +40. 准确提交或发布包许可原文;LICENSE 第1~674行;提交e4c61d75555036fa28b6bb34e5fd67b007c9f391;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/e4c61d75555036fa28b6bb34e5fd67b007c9f391/LICENSE + +41. 准确提交或发布包许可原文;LICENSE 第1~674行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip diff --git a/e2e/run-storyboard-document.py b/e2e/run-storyboard-document.py new file mode 100644 index 00000000..1bdfa455 --- /dev/null +++ b/e2e/run-storyboard-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/storyboard-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 = ["storyboard"] + 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() diff --git a/e2e/storyboard-document.mjs b/e2e/storyboard-document.mjs new file mode 100644 index 00000000..61bcb365 --- /dev/null +++ b/e2e/storyboard-document.mjs @@ -0,0 +1,102 @@ +// Local GET-only: 50 storyboard positions, 2 notes, and 27 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/storyboard-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=['手动按分镜视频截取','sam3_图像视频-提示词遮罩分割','多视频合成分屏展示','图像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===28&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===888,'28图888保存位置'); + check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===21,'28图21源注释'); + 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_storyboard':'old_twenty_seven';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==='frame_rate'&&f.node_id==='10')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,'迟到分镜响应不覆盖旧SAM3摘要/18字段');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();}