diff --git a/calliope-backend/src/calliope/comfyui/fixed_document.py b/calliope-backend/src/calliope/comfyui/fixed_document.py index 577afd03..3bdb4fd3 100644 --- a/calliope-backend/src/calliope/comfyui/fixed_document.py +++ b/calliope-backend/src/calliope/comfyui/fixed_document.py @@ -15,6 +15,11 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc # Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust. DEFINITIONS = { + ( + "example_ComfyUI_workflows/0-基础处理:图像合并-音频" + "分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video" + "-姿态检测.json" + ): "b3b87aa0c9d47b6266bcb14e6b1fb268d70e9b2830f62149ab7fd8668783905b", ( "example_ComfyUI_workflows/0-基础处理:图像合并-音频" "分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨" diff --git a/calliope-backend/src/calliope/comfyui/source_reviews.json b/calliope-backend/src/calliope/comfyui/source_reviews.json index 86e4af47..22008e6e 100644 --- a/calliope-backend/src/calliope/comfyui/source_reviews.json +++ b/calliope-backend/src/calliope/comfyui/source_reviews.json @@ -5376,6 +5376,1260 @@ "全部单位、范围、调整效果待可信节点定义;本图未实跑", "不更改原图矛盾;原有说明与此前审校完整保留" ] + }, + "fixed_version_document": { + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_sha1": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608", + "canonical_sha256": "8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201", + "notice": "固定版本参考说明;历史预览不是执行结果,环境/UE和实际效果未核对,转换仍关闭。", + "user_overview": "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "versions": [ + "DW源声明完整commit=136f125c89aed92ced1b6fbb491e13719b72fcc0(精确文本参考,非安装证明)", + "VHS源声明1.7.9:官方registry发布包SHA256=ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;Git提交绑定未知,包同字节不等于提交绑定", + "frontend源声明1.36.12→官方tag完整commit52bb58d307242a34103998ef1da8007e47501d5b;UE7.5.2钩子次序和目标安装未知" + ], + "counts": { + "saved_fields": 27, + "scalar_saved_positions": 25, + "history_objects": 2, + "source_notes": 1, + "source_nodes": 5, + "physical_edges": 4, + "linked_saved_fields": 1, + "frontend_only": 2, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "field": "detect_hand", + "label": "手部绘制开关", + "type": "COMBO", + "schema_default": "enable", + "unit": "字符串枚举", + "limits": "enable / disable", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_hand控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/0", + "value": "enable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "detect_body", + "label": "身体绘制开关", + "type": "COMBO", + "schema_default": "enable", + "unit": "字符串枚举", + "limits": "enable / disable", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_body控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/1", + "value": "enable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "detect_face", + "label": "面部绘制开关", + "type": "COMBO", + "schema_default": "enable", + "unit": "字符串枚举", + "limits": "enable / disable", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_face控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/2", + "value": "enable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "resolution", + "label": "姿态图输出分辨率", + "type": "INT", + "schema_default": "512", + "unit": "像素(输出短边目标)", + "limits": "schema64~16384,step64;helper只接受>=64的int,否则回退512", + "effect": "源1024传detect_resolution。此固定实现先以resolution=0处理输入、检测姿态并绘制,随后将画布短边缩放到目标并填充到64倍数,再去填充;不是保证检测器先以1024推理,不是视频宽度/总帧数或模型超分。比例取整及原素材尺寸决定实际尺寸,未计算真实输出。", + "evidence": [ + 0, + 3, + 4, + 7 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/3", + "value": 1024, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "bbox_detector", + "label": "人体框检测模型引用", + "type": "COMBO", + "schema_default": "yolox_l.onnx", + "unit": "文件名枚举", + "limits": "None / yolox_l.torchscript.pt / yolox_l.onnx / yolo_nas_l_fp16.onnx / yolo_nas_m_fp16.onnx / yolo_nas_s_fp16.onnx", + "effect": "源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支,随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。", + "evidence": [ + 0, + 4, + 8, + 5 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/4", + "value": "yolox_l.onnx", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "pose_estimator", + "label": "姿态估计模型引用", + "type": "COMBO", + "schema_default": "dw-ll_ucoco_384_bs5.torchscript.pt", + "unit": "文件名枚举", + "limits": "dw-ll_ucoco_384_bs5.torchscript.pt / dw-ll_ucoco_384.onnx / dw-ll_ucoco.onnx", + "effect": "源TorchScript文件选择hr16/DWPose-TorchScript-BatchSize5。schema默认是此文件,estimate_pose函数签名默认却为dw-ll_ucoco_384.onnx,不能混写。静态from_pretrained可触发缺文件下载和加载,本轮均未调用。名称bs5不证明本视频每批5帧或目标性能。", + "evidence": [ + 0, + 4, + 8, + 5 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/5", + "value": "dw-ll_ucoco_384_bs5.torchscript.pt", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "scale_stick_for_xinsr_cn", + "label": "身体骨架线宽缩放开关", + "type": "COMBO", + "schema_default": "disable", + "unit": "字符串枚举", + "limits": "disable / enable;开启时max_side<500倍率1,否则min(2+max_side//1000,7)", + "effect": "源disable,转false传xinsr_stick_scaling。固定draw_bodypose基础stickwidth=4,关闭倍率1,开启按画布最大边分档;不是图像模型超分或目标安装证明。身体绘制关闭时不能据此保证有身体线条。", + "evidence": [ + 0, + 4, + 6 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/6", + "value": "disable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "video", + "label": "输入视频文件引用", + "type": "COMBO", + "schema_default": "动态input目录文件列表,无固定文件默认", + "unit": "文件名", + "limits": "目录文件扩展webm/mp4/mkv/gif/mov;目标列表未知", + "effect": "源1月11日-1.mp4保持原文,参考LoadVideoUpload转annotated filepath后加载。未访问此媒体;真实时长、分辨率、帧数、原FPS及音频存在性未知。", + "evidence": [ + 9, + 11 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/video", + "value": "1月11日-1.mp4", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "force_rate", + "label": "强制读取帧率", + "type": "FLOAT/INT", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1,0禁用强制重采样", + "effect": "源整数0:cv生成器以原fps决定target_frame_time,非已知原FPS;非零用倒数目标时间重采样。后续select_every_nth还会改变loaded_fps;AnimateDiff前端回调恢复条件及UE未知,不能称最终FPS=0/8/24。", + "evidence": [ + 9, + 10, + 11, + 12, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/force_rate", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "custom_width", + "label": "自定义宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0禁用该维强制尺寸", + "effect": "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + "evidence": [ + 9, + 10, + 11, + 12, + 13, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "custom_height", + "label": "自定义高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0禁用该维强制尺寸", + "effect": "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + "evidence": [ + 9, + 10, + 11, + 12, + 13, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "frame_load_cap", + "label": "读取帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "帧", + "limits": "0~9007199254740991,step1;0不设置此项帧上限", + "effect": "源0不表示零帧,非零在生成循环限制frames_added;内存、素材结束或格式条件仍可限制加载,不能称无限加载或已读取全部。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过开头帧数", + "type": "INT", + "schema_default": "0", + "unit": "生成器计数的帧", + "limits": "0~9007199254740991,step1", + "effect": "源0不主动跳开头;cv循环先累计total_frame_count并跳过<=skip_first_frames部分,然后处理nth选择。不是秒或视频时间戳;强制帧率与实际输入决定时间关系。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "select_every_nth", + "label": "读取间隔", + "type": "INT", + "schema_default": "1", + "unit": "帧间隔倍率", + "limits": "1~9007199254740991,step1", + "effect": "源1保留生成器每个可选帧;cv循环按计数取模选择。loaded_fps由target_frame_time再乘此间隔后的倒数给出,不直接用标题或缓存猜帧率。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式预设", + "limits": "固定包内None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan;允许外部增补,目标动态成员未知", + "effect": "源AnimateDiff定义target_rate=8、dim=(8,0,512,512)。后端用dim决定尺寸对齐,不把target_rate自动当最终帧率。前端format回调将rate reset设8、尺寸reset设512,只在原值等于旧reset时改value并回调;具名恢复按实际控件顺序赋值并触发回调,无法只看对象键顺序推断最终控件值。UE7.5.2钩子次序未知。", + "evidence": [ + 12, + 11, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "videopreview", + "label": "历史视频预览缓存(非运行参数)", + "type": "OBJECT", + "schema_default": "无后端schema默认", + "unit": "前端状态", + "limits": "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + "effect": "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。", + "evidence": [ + 24, + 21, + 25, + 26, + 27 + ], + "role": "frontend_history", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "force_rate": 0, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "filename": "1月11日-1.mp4", + "type": "input", + "format": "video/mp4" + } + }, + "json_type": "dict", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "frame_rate", + "label": "合成帧率保存缓存(外线覆盖)", + "type": "FLOAT/INT", + "schema_default": "8", + "unit": "帧/秒", + "limits": "schema min1、step1,无显式max;源int24并有link12", + "effect": "保存24与预览24均不是最终FPS。物理link12从Info9槽0接Combine4输入槽4 frame_rate;固定包Info依次取loaded_fps等键,槽0读video_info.loaded_fps。Load2按target_frame_time和间隔构造此值。固定前端先控件后写解析外线覆盖同名输入;仅在该参考契约成立范围解释,目标UE/媒体/最终FPS未知。", + "evidence": [ + 14, + 19, + 11, + 27 + ], + "role": "linked_saved", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/frame_rate", + "value": 24, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "loop_count", + "label": "视频循环次数设置", + "type": "INT", + "schema_default": "0", + "unit": "循环参数", + "limits": "0~100,step1", + "effect": "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "filename_prefix", + "label": "保存文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "相对前缀字符串", + "limits": "由folder_paths输出目录规则解析;真实目录未知", + "effect": "源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;不等于预览对象E盘历史fullpath已可访问,不证明任何文件已生成。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/filename_prefix", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "format", + "label": "视频封装和编码预设", + "type": "COMBO", + "schema_default": "schema首项image/gif,无显式default", + "unit": "预设选择", + "limits": "当前video/h264-mp4;动态格式目录和运行编码器可用性未知", + "effect": "固定包h264-mp4.json提供mp4扩展、libx264、bt709及动态pix_fmt/crf/save_metadata/trim_to_audio。前端format回调插入具名动态控件/输入,VHS保存对象具名恢复;实际目标包、ffmpeg和恢复钩子未核对。", + "evidence": [ + 14, + 18, + 17, + 23, + 21 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "pix_fmt", + "label": "输出像素格式", + "type": "COMBO", + "schema_default": "首项yuv420p", + "unit": "像素格式枚举", + "limits": "yuv420p / yuv420p10le", + "effect": "源yuv420p传ffmpeg -pix_fmt;只解释固定h264-mp4定义,不保证目标编码器可用或实际成片色彩效果。", + "evidence": [ + 18, + 17, + 16, + 15, + 23 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "crf", + "label": "H264恒定质量参数", + "type": "INT", + "schema_default": "19", + "unit": "CRF值", + "limits": "固定格式schema0~100,step1;不是目标libx264已接受所有值的证明", + "effect": "源12替换格式-crf参数,通常较小数值请求较高质量/较大体积,但目标编码器合法域、产物与体积均未实测;不能把schema上限当编码器运行保证。", + "evidence": [ + 18, + 16, + 15, + 23 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/crf", + "value": 12, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据保存开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true / false;固定动态格式字段", + "effect": "源true选择ffmpeg元数据写入分支,将prompt及extra_pnginfo等静态构造为元数据;具体文件、内容和成功情况未验证。不是当前流程已运行或预览PNG已存在的证据。", + "evidence": [ + 18, + 16, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/save_metadata", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "trim_to_audio", + "label": "音轨截取条件", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true / false;仅有audio输入/音频数据的合成分支生效", + "effect": "源false在有音频的参考分支设置apad并-shortest,true不加该apad。本图Combine.audio未接,Load音频出口也未接;false不能证明有音频,更不能称保留原音轨。", + "evidence": [ + 18, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "pingpong", + "label": "往返帧序列开关", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true / false", + "effect": "源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "save_output", + "label": "保存目录选择", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true / false", + "effect": "源true选择folder_paths输出目录,false选临时目录;不等于当前文件已保存。真实目录配置/权限/编码器/文件/时长与姿态视频效果均未知。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/save_output", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "videopreview", + "label": "历史视频预览缓存(非运行参数)", + "type": "OBJECT", + "schema_default": "无后端schema默认", + "unit": "前端状态", + "limits": "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + "effect": "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。", + "evidence": [ + 24, + 21, + 25, + 26, + 27 + ], + "role": "frontend_history", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "format": "video/h264-mp4", + "frame_rate": 24, + "fullpath": "E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4", + "subfolder": "", + "type": "output", + "workflow": "AnimateDiff_00006.png" + } + }, + "json_type": "dict", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + } + ], + "sources": [ + { + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "lines": [ + 32, + 105 + ], + "claim": "DWPose schema、字符串开关、权重来源选择、调用和双出口" + }, + { + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "lines": [ + 159, + 165 + ], + "claim": "DWPreprocessor真实注册" + }, + { + "id": "dw", + "file": "__init__.py", + "local_file": "../openpose-reference/dw____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4", + "lines": [ + 25, + 66 + ], + "claim": "扫描node_wrappers合并注册;失败可缺失节点" + }, + { + "id": "dw", + "file": "utils.py", + "local_file": "../openpose-reference/dw__utils.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5", + "lines": [ + 62, + 120 + ], + "claim": "默认、范围、逐帧调用和resolution传递" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "lines": [ + 217, + 279 + ], + "claim": "权重加载、检测、绘制与结果缩放顺序" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/wholebody.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f", + "lines": [ + 19, + 78 + ], + "claim": "模型类型分支及加载设备,仅静态条件" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c", + "lines": [ + 82, + 138 + ], + "claim": "身体骨架线宽缩放条件" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "lines": [ + 155, + 183 + ], + "claim": "短边比例缩放与64倍数填充/去填充闭包" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "lines": [ + 289, + 342 + ], + "claim": "文件缺失时静态下载分支;不授权下载" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 423, + 474 + ], + "claim": "VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 59, + 168 + ], + "claim": "尺寸取整、force_rate、跳帧、间隔与上限" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 293, + 420 + ], + "claim": "加载尺寸/内存上限、格式、loaded_fps和四出口" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 22, + 52 + ], + "claim": "AnimateDiff格式默认及dim/target_rate,非最终帧率证明" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a", + "git_commit_binding": "unknown", + "lines": [ + 19, + 56 + ], + "claim": "DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 235, + 289 + ], + "claim": "合成schema默认、可选输入与签名" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 328, + 625 + ], + "claim": "输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 94, + 191 + ], + "claim": "动态格式默认替换、元数据ffmpeg分支" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 46, + 108 + ], + "claim": "格式发现和动态控件,不推定目标安装可用" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../openpose-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown", + "lines": [ + 1, + 15 + ], + "claim": "h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 941, + 970 + ], + "claim": "VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 1024, + 1043 + ], + "claim": "VHS三个节点真实类注册,均插件而非核心" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 6, + 169 + ], + "claim": "具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 670, + 711 + ], + "claim": "加载格式回调只在wasDefault条件重设值,随后逐控件回调" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 1241, + 1298 + ], + "claim": "合成format回调重建动态控件及同名输入" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 934, + 943 + ], + "claim": "videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "lines": [ + 862, + 875 + ], + "claim": "核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "lines": [ + 907, + 929 + ], + "claim": "核心先数组保存再onSerialize,VHS回调覆盖对象" + }, + { + "id": "frontend", + "file": "src/utils/executionUtil.ts", + "local_file": "../openpose-reference/frontend__src__utils__executionUtil.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36", + "lines": [ + 86, + 127 + ], + "claim": "先可序列化控件后物理连线,外线覆盖同名frame_rate" + }, + { + "id": "frontend", + "file": "src/extensions/core/noteNode.ts", + "local_file": "../openpose-reference/frontend__src__extensions__core__noteNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/extensions/core/noteNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2", + "lines": [ + 1, + 80 + ], + "claim": "MarkdownNote前端注释" + }, + { + "id": "dw", + "file": "LICENSE.txt", + "local_file": "../openpose-reference/dw__LICENSE.txt", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/LICENSE.txt", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "id": "frontend", + "file": "LICENSE", + "local_file": "../openpose-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/LICENSE", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "../openpose-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "lines": [ + 1, + 7 + ], + "claim": "本文件另保留CMU非商业声明;不把仓级许可当全部文件许可" + } + ], + "comments": [ + { + "node_id": "8", + "pointer": "/nodes/0/widgets_values/0", + "text": "## Custom Nodes\n\n- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n", + "evidence": [ + 28 + ], + "meaning": "作者插件链接、更新和准备模型建议,仅为源注释,不证明目标安装或授权更新、下载、停TTS。" + } + ], + "flow": [ + "5源节点(4实体+MarkdownNote8)、4物理边,全mode0、无子图。27顶层保存位置=7个DW数组项+9个Load对象键+11个Combine对象键,其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。", + "边10 LoadVideo2槽0→DW1.image输入槽0;边4 DW1图像槽0→Combine4.images槽0。DW的POSE_KEYPOINT槽1未接;不据标题当核心SDPose或已输出关键点文件。", + "边11 LoadVideo2槽3→Info9.video_info输入槽0;边12 Info9槽0→Combine4.frame_rate输入槽4。固定包Info槽0取loaded_fps,外线覆盖保存24,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名,不能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证明原FPS。", + "VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。", + "DW精确源提交136f125c89aed92ced1b6fbb491e13719b72fcc0,真实注册DWPreprocessor→DWPose_Preprocessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加载分支未调用。", + "VHS声明1.7.9已取官方registry精确发布包并核注册/成员哈希;注册表无Git commit字段,包同字节不等于提交绑定。三类VHS及DW均为插件,不假借core来源,也不把包来源当目标安装证明。", + "frontend1.36.12官方tag对应52bb58d307242a34103998ef1da8007e47501d5b。核心先按序恢复再onConfigure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条件,不能按保存对象键顺序推断最终输入。", + "各节点UE7.5.2(含注释),空widget_ue_connectable/input_ue_unconnectable和extra空ue_links不证明无改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契约成立范围说明覆盖,不导入执行上游或创建生产可信注册。", + "两videopreview完整历史对象独立保存和展示,含E盘fullpath及PNG workflow缓存;不读取文件/视频,不请求api/view或媒体URL,不把缓存当实际产物/最终FPS。filename_prefix=AnimateDiff是保存前缀,区别于旧绝对路径。", + "h264-mp4静态格式含libx264、pix_fmt、crf和元数据/音频选项;schema范围不保证编码器运行合法。实际ffmpeg/编码器/目录/文件、音轨存在性、姿态效果、速度/显存全部未知。未实跑、未定稿、未启用,不增加可靠转换或候选。", + "源物理边:[4, 1, 0, 4, 0, \"IMAGE\"]", + "源物理边:[10, 2, 0, 1, 0, \"IMAGE\"]", + "源物理边:[11, 2, 3, 9, 0, \"VHS_VIDEOINFO\"]", + "源物理边:[12, 9, 0, 4, 4, \"FLOAT\"]", + "源节点8 MarkdownNote:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点1 DWPreprocessor:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点2 VHS_LoadVideo:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点9 VHS_VideoInfoLoaded:mode=0;UE={\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}", + "源节点4 VHS_VideoCombine:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/hidden [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/paused [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/force_rate [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_width [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_height [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/frame_load_cap [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/skip_first_frames [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/select_every_nth [int]=1", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/filename [str]=\"1月11日-1.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/type [str]=\"input\"", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/format [str]=\"video/mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/hidden [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/paused [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/filename [str]=\"AnimateDiff_00006.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/format [str]=\"video/h264-mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/frame_rate [int]=24", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/fullpath [str]=\"E:\\\\ComfyUI-Data\\\\output\\\\AnimateDiff_00006.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/subfolder [str]=\"\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/type [str]=\"output\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/workflow [str]=\"AnimateDiff_00006.png\"" + ], + "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 + ], + "zero_saved_nodes": [ + { + "node_id": "9", + "class_type": "VHS_VideoInfoLoaded", + "evidence": [ + 19, + 20 + ], + "effect": "VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。" + } + ], + "steps": [ + "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", + "保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。" + ] } }, "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json": { diff --git a/calliope-backend/tests/test_background_fixed_document.py b/calliope-backend/tests/test_background_fixed_document.py index 3c887601..de047a0f 100644 --- a/calliope-backend/tests/test_background_fixed_document.py +++ b/calliope-backend/tests/test_background_fixed_document.py @@ -202,10 +202,11 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent(): "图像分割-多宫格分割.json", "gemma4_提示词反推(图像视频音频).json", "sdpose_视频人物姿势骨架提取.json", + "openpose-video-姿态检测.json", ) ) ] - assert len(additions) == 4 + assert len(additions) == 5 for p in additions: now[p].pop("fixed_version_document") historical = [p for p in DEFINITIONS if p not in additions] diff --git a/calliope-backend/tests/test_controlnet_fixed_document.py b/calliope-backend/tests/test_controlnet_fixed_document.py index 95547053..04a45a13 100644 --- a/calliope-backend/tests/test_controlnet_fixed_document.py +++ b/calliope-backend/tests/test_controlnet_fixed_document.py @@ -203,7 +203,7 @@ def test_graph_specific_semantics_and_companion(): def test_other_documents_and_block_swaps(): - assert len(DEFINITIONS) == 15 + assert len(DEFINITIONS) == 16 for path in DEFINITIONS: if path == PATH: continue diff --git a/calliope-backend/tests/test_gemma_fixed_document.py b/calliope-backend/tests/test_gemma_fixed_document.py index 4cfc4e6a..7b42cacb 100644 --- a/calliope-backend/tests/test_gemma_fixed_document.py +++ b/calliope-backend/tests/test_gemma_fixed_document.py @@ -153,10 +153,12 @@ def test_real_document_and_frozen_old_thirteen_blocks(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "9dac1b4:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json")) + now[openpose].pop("fixed_version_document") # SDPose is independently frozen against 7291887 in its own suite. sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json")) now[sdpose].pop("fixed_version_document") - assert len(now) == 156 and len(DEFINITIONS) == 15 + assert len(now) == 156 and len(DEFINITIONS) == 16 assert len([r for r in old.values() if "fixed_version_document" in r]) == 13 assert ( sum( diff --git a/calliope-backend/tests/test_grid_fixed_document.py b/calliope-backend/tests/test_grid_fixed_document.py index 9da9100c..21574561 100644 --- a/calliope-backend/tests/test_grid_fixed_document.py +++ b/calliope-backend/tests/test_grid_fixed_document.py @@ -171,13 +171,15 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved(): resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" old = json.loads(subprocess.check_output(["git", "show", "27e6d56:" + resource], cwd=REPO)) now = json.loads((REPO / resource).read_bytes()) + openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json")) + now[openpose].pop("fixed_version_document") # SDPose is independently frozen against 7291887 in its own suite. sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json")) now[sdpose].pop("fixed_version_document") # Gemma addition is independently protected against 9dac1b4 in its own suite. gemma = next(p for p in now if p.endswith("gemma4_提示词反推(图像视频音频).json")) now[gemma].pop("fixed_version_document") - assert len(DEFINITIONS) == 15 + assert len(DEFINITIONS) == 16 assert ( sum( len(r["fixed_version_document"]["fields"]) diff --git a/calliope-backend/tests/test_openpose_fixed_document.py b/calliope-backend/tests/test_openpose_fixed_document.py new file mode 100644 index 00000000..2bafbb54 --- /dev/null +++ b/calliope-backend/tests/test_openpose_fixed_document.py @@ -0,0 +1,236 @@ +"""Exact source, nested preview types, package citations and old fifteen definitions.""" + +from __future__ import annotations + +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/openpose-document-evidence" +PATH = next(p for p in DEFINITIONS if p.endswith("openpose-video-姿态检测.json")) +RAW = (REPO / PATH).read_bytes() +SOURCE = json.loads(RAW) +REVIEW = review_for(PATH, hashlib.sha1(RAW).hexdigest()) +BLOCK = REVIEW["fixed_version_document"] + + +def pointer(obj, path): + for part in path.strip("/").split("/"): + part = part.replace("~1", "/").replace("~0", "~") + obj = obj[int(part)] if isinstance(obj, list) else obj[part] + return obj + + +def set_value(obj, path, value): + parent, _, key = path.rpartition("/") + target = pointer(obj, parent) + target[int(key) if isinstance(target, list) else key] = value + + +def doc(source=None, review=None, path=PATH): + return build_document( + path, + SOURCE if source is None else source, + None, + None, + [], + REVIEW if review is None else review, + ) + + +@pytest.mark.parametrize("field", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"]) +def test_values_types_citations(field): + v = pointer(SOURCE, field["pointer"]) + assert canonical(v) == canonical(field["value"]) and type(v).__name__ == field["json_type"] + node = pointer(SOURCE, field["pointer"].split("/widgets_values/")[0]) + assert str(node["id"]) == field["node_id"] and node["type"] == field["class_type"] + for k in ["label", "schema_default", "unit", "limits", "effect", "execution_note"]: + assert field[k] + for k in field["evidence"]: + e = BLOCK["sources"][k] + raw = (OUT / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + if e["id"] == "vhs": + assert e["git_commit_binding"] == "unknown" and "发布包SHA256:" in e["commit"] + else: + assert len(e["commit"]) == 40 and e["commit"] in e["url"] + assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines()) + + +@pytest.mark.parametrize("index", range(27)) +@pytest.mark.parametrize("kind", ["value", "type", "pointer", "citation", "role", "default"]) +def test_forged_field_and_recalculated_digest_refused(index, kind): + source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + b = review["fixed_version_document"] + f = b["fields"][index] + if kind in ["value", "type"]: + set_value(source, f["pointer"], {"forged": True} if kind == "value" else None) + f["value"] = pointer(source, f["pointer"]) + f["json_type"] = type(f["value"]).__name__ + elif kind == "citation": + b["sources"][f["evidence"][0]]["sha256"] = "0" * 64 + else: + f[{"default": "schema_default"}.get(kind, kind)] = "forged" + b["canonical_sha256"] = hashlib.sha256(canonical(source)).hexdigest() + review["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest() + actual = doc(source, review)["fixed_version"] + assert not actual["matched"] and "fields" not in actual + + +def leaves(obj, path): + if isinstance(obj, dict): + for key, value in obj.items(): + yield from leaves(value, path + "/" + key) + else: + yield path + + +MUTATIONS = ( + [f"/links/{i}/{j}" for i in range(4) for j in range(6)] + + ["/extra/frontendVersion", "/nodes/0/widgets_values/0"] + + [ + f"/nodes/{i}/{suffix}" + for i in range(5) + for suffix in [ + "mode", + "type", + "properties/ue_properties/version", + "properties/ue_properties/widget_ue_connectable", + "properties/ue_properties/input_ue_unconnectable", + ] + ] + + [f"/nodes/{i}/properties/{key}" for i in range(1, 5) for key in ["cnr_id", "ver"]] + + [ + p + for i in [2, 4] + for p in leaves( + SOURCE["nodes"][i]["widgets_values"]["videopreview"], + f"/nodes/{i}/widgets_values/videopreview", + ) + ] +) + + +@pytest.mark.parametrize("path", MUTATIONS) +def test_graph_versions_nested_cache_notes_and_ue_fail_closed(path): + source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) + set_value(source, path, "forged") + review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256( + canonical(source) + ).hexdigest() + review["caller_digest"] = hashlib.sha256( + canonical(review["fixed_version_document"]) + ).hexdigest() + assert not doc(source, review)["fixed_version"]["matched"] + + +@pytest.mark.parametrize("value", [None, [], "missing"]) +def test_empty_object_not_missing_null_or_list(value): + source = copy.deepcopy(SOURCE) + if value == "missing": + del source["nodes"][3]["widgets_values"] + else: + source["nodes"][3]["widgets_values"] = value + assert not doc(source=source)["fixed_version"]["matched"] + + +@pytest.mark.parametrize( + "key", + [ + "source_path", + "source_sha1", + "source_sha256", + "notice", + "user_overview", + "versions", + "comments", + "flow", + "sources", + ], +) +def test_editorial_forgery_refused(key): + review = copy.deepcopy(REVIEW) + review["fixed_version_document"][key] = "forged" + review["caller_digest"] = hashlib.sha256( + canonical(review["fixed_version_document"]) + ).hexdigest() + assert not doc(review=review)["fixed_version"]["matched"] + + +def test_exact_document_topology_and_preservation(): + d = doc() + assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"] + assert len(BLOCK["fields"]) == 27 and len(BLOCK["comments"]) == 1 + assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2 + assert len(SOURCE["nodes"]) == 5 and len(SOURCE["links"]) == 4 + assert SOURCE["links"] == [ + [4, 1, 0, 4, 0, "IMAGE"], + [10, 2, 0, 1, 0, "IMAGE"], + [11, 2, 3, 9, 0, "VHS_VIDEOINFO"], + [12, 9, 0, 4, 4, "FLOAT"], + ] + nodes = {n["id"]: n for n in SOURCE["nodes"]} + for edge, origin, slot, target, inp, typ in SOURCE["links"]: + assert edge in nodes[origin]["outputs"][slot]["links"] + assert nodes[target]["inputs"][inp]["link"] == edge + assert nodes[target]["inputs"][inp]["type"] == typ + assert nodes[9]["widgets_values"] == {} and type(nodes[9]["widgets_values"]) is dict + assert all(n["mode"] == 0 for n in SOURCE["nodes"]) + assert pointer(SOURCE, BLOCK["comments"][0]["pointer"]) == BLOCK["comments"][0]["text"] + assert not BLOCK["counts"]["final_prompt_constructed"] + assert all( + s in "".join(BLOCK["flow"]) + for s in [ + "未实跑", + "包同字节不等于提交绑定", + "loaded_fps", + "外线覆盖", + "音频", + "UE7.5.2", + "空对象", + "不是缺键/null/[]", + ] + ) + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO)) + current = json.loads((REPO / resource).read_bytes()) + assert current[PATH].pop("fixed_version_document") == BLOCK + assert current == previous and len(DEFINITIONS) == 16 + old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r] + assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394 + assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert d["dependencies"]["check_state"] == "unchecked" + assert not doc(path="untrusted.json").get("fixed_version") + for p in DEFINITIONS: + if p == PATH: + continue + r = copy.deepcopy(REVIEW) + r["fixed_version_document"] = previous[p]["fixed_version_document"] + assert not doc(review=r)["fixed_version"]["matched"] + + +def test_raw_source_identity_and_missing_packages(tmp_path): + assert review_for(PATH, "0" * 40) is None + r = copy.deepcopy(REVIEW) + r["source_sha"] = "0" * 40 + assert not doc(review=r)["fixed_version"]["matched"] + import sys + + code = ( + "import runpy,sys; from pathlib import Path; ns=runpy.run_path('recompute.py'); " + "ns['require_packages'].__globals__['REPO']=Path(sys.argv[1]); ns['require_packages']()" + ) + result = subprocess.run( + [sys.executable, "-c", code, str(tmp_path)], cwd=OUT, capture_output=True, text=True + ) + assert result.returncode != 0 and "缺少wheel/sdist包产物" in result.stderr + assert "uv build --project calliope-backend --offline" in result.stderr diff --git a/calliope-backend/tests/test_qwen_edit_fixed_document.py b/calliope-backend/tests/test_qwen_edit_fixed_document.py index a2e84c52..800cc982 100644 --- a/calliope-backend/tests/test_qwen_edit_fixed_document.py +++ b/calliope-backend/tests/test_qwen_edit_fixed_document.py @@ -245,10 +245,11 @@ def test_old_nine_blocks_and_other_editorial_content_preserved(): "图像分割-多宫格分割.json", "gemma4_提示词反推(图像视频音频).json", "sdpose_视频人物姿势骨架提取.json", + "openpose-video-姿态检测.json", ) ) ] - assert len(additions) == 4 + assert len(additions) == 5 for p in additions: now[p].pop("fixed_version_document") for entry in now.values(): diff --git a/calliope-backend/tests/test_sdpose_fixed_document.py b/calliope-backend/tests/test_sdpose_fixed_document.py index 6933c85b..7e73f21f 100644 --- a/calliope-backend/tests/test_sdpose_fixed_document.py +++ b/calliope-backend/tests/test_sdpose_fixed_document.py @@ -153,10 +153,12 @@ def test_real_document_and_frozen_old_fourteen_blocks(): other = next(p for p in DEFINITIONS if p != PATH) resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" now = json.loads((REPO / resource).read_bytes()) + openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json")) review["fixed_version_document"] = now[other]["fixed_version_document"] assert not doc(review=review)["fixed_version"]["matched"] + now[openpose].pop("fixed_version_document") old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO)) - assert len(now) == 156 and len(DEFINITIONS) == 15 + assert len(now) == 156 and len(DEFINITIONS) == 16 old_blocks = [ r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r ] diff --git a/docs/hel-892/OpenPose视频姿态图固定参考中文说明.md b/docs/hel-892/OpenPose视频姿态图固定参考中文说明.md new file mode 100644 index 00000000..c1754045 --- /dev/null +++ b/docs/hel-892/OpenPose视频姿态图固定参考中文说明.md @@ -0,0 +1,884 @@ +# OpenPose视频姿态图固定参考中文说明 + +27新顶层保存位置(25标量+2历史预览对象)+1新注释;旧15图394保存位置+14注释逐对象不变。16图421位置+15注释展示,155定稿0、实跑0、新增转换0。 + +复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。 + +## openpose-video-姿态检测 + +这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。 + +固定版本参考说明;历史预览不是执行结果,环境/UE和实际效果未核对,转换仍关闭。 + +源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json` + +SHA1:1eeeab4e68accd810c54a326a88b9022846ee8ae + +原字节SHA256:43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608 + +规范全图SHA256:8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201 + +DW源声明完整commit=136f125c89aed92ced1b6fbb491e13719b72fcc0(精确文本参考,非安装证明) + +VHS源声明1.7.9:官方registry发布包SHA256=ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;Git提交绑定未知,包同字节不等于提交绑定 + +frontend源声明1.36.12→官方tag完整commit52bb58d307242a34103998ef1da8007e47501d5b;UE7.5.2钩子次序和目标安装未知 + +### 具体连线与处理条件 + +5源节点(4实体+MarkdownNote8)、4物理边,全mode0、无子图。27顶层保存位置=7个DW数组项+9个Load对象键+11个Combine对象键,其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。 + +边10 LoadVideo2槽0→DW1.image输入槽0;边4 DW1图像槽0→Combine4.images槽0。DW的POSE_KEYPOINT槽1未接;不据标题当核心SDPose或已输出关键点文件。 + +边11 LoadVideo2槽3→Info9.video_info输入槽0;边12 Info9槽0→Combine4.frame_rate输入槽4。固定包Info槽0取loaded_fps,外线覆盖保存24,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名,不能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证明原FPS。 + +VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。 + +DW精确源提交136f125c89aed92ced1b6fbb491e13719b72fcc0,真实注册DWPreprocessor→DWPose_Preprocessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加载分支未调用。 + +VHS声明1.7.9已取官方registry精确发布包并核注册/成员哈希;注册表无Git commit字段,包同字节不等于提交绑定。三类VHS及DW均为插件,不假借core来源,也不把包来源当目标安装证明。 + +frontend1.36.12官方tag对应52bb58d307242a34103998ef1da8007e47501d5b。核心先按序恢复再onConfigure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条件,不能按保存对象键顺序推断最终输入。 + +各节点UE7.5.2(含注释),空widget_ue_connectable/input_ue_unconnectable和extra空ue_links不证明无改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契约成立范围说明覆盖,不导入执行上游或创建生产可信注册。 + +两videopreview完整历史对象独立保存和展示,含E盘fullpath及PNG workflow缓存;不读取文件/视频,不请求api/view或媒体URL,不把缓存当实际产物/最终FPS。filename_prefix=AnimateDiff是保存前缀,区别于旧绝对路径。 + +h264-mp4静态格式含libx264、pix_fmt、crf和元数据/音频选项;schema范围不保证编码器运行合法。实际ffmpeg/编码器/目录/文件、音轨存在性、姿态效果、速度/显存全部未知。未实跑、未定稿、未启用,不增加可靠转换或候选。 + +源物理边:[4, 1, 0, 4, 0, "IMAGE"] + +源物理边:[10, 2, 0, 1, 0, "IMAGE"] + +源物理边:[11, 2, 3, 9, 0, "VHS_VIDEOINFO"] + +源物理边:[12, 9, 0, 4, 4, "FLOAT"] + +源节点8 MarkdownNote:mode=0;UE={"widget_ue_connectable": {}, "version": "7.5.2", "input_ue_unconnectable": {}} + +源节点1 DWPreprocessor:mode=0;UE={"widget_ue_connectable": {}, "version": "7.5.2", "input_ue_unconnectable": {}} + +源节点2 VHS_LoadVideo:mode=0;UE={"widget_ue_connectable": {}, "version": "7.5.2", "input_ue_unconnectable": {}} + +源节点9 VHS_VideoInfoLoaded:mode=0;UE={"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.2"} + +源节点4 VHS_VideoCombine:mode=0;UE={"widget_ue_connectable": {}, "version": "7.5.2", "input_ue_unconnectable": {}} + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/hidden [bool]=false + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/paused [bool]=false + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/force_rate [int]=0 + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_width [int]=0 + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_height [int]=0 + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/frame_load_cap [int]=0 + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/skip_first_frames [int]=0 + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/select_every_nth [int]=1 + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/filename [str]="1月11日-1.mp4" + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/type [str]="input" + +历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/format [str]="video/mp4" + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/hidden [bool]=false + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/paused [bool]=false + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/filename [str]="AnimateDiff_00006.mp4" + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/format [str]="video/h264-mp4" + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/frame_rate [int]=24 + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/fullpath [str]="E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4" + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/subfolder [str]="" + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/type [str]="output" + +历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/workflow [str]="AnimateDiff_00006.png" + +### 使用与核对 + +这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。 + +先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。 + +核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。 + +保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。 + +### 逐保存位置说明 + +#### 1. 节点1 · 手部绘制开关(detect_hand) + +源保存enable字符串,包装器以等于enable转布尔再传include_hand控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。 + +```json +"enable" +``` + +类:DWPreprocessor;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/0` + +定义默认:enable;单位:字符串枚举 + +范围/条件:enable / disable + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [1] DWPreprocessor真实注册;node_wrappers/dwpose.py 159~165行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [2] 扫描node_wrappers合并注册;失败可缺失节点;__init__.py 25~66行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py +- [3] 默认、范围、逐帧调用和resolution传递;utils.py 62~120行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py + +#### 2. 节点1 · 身体绘制开关(detect_body) + +源保存enable字符串,包装器以等于enable转布尔再传include_body控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。 + +```json +"enable" +``` + +类:DWPreprocessor;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/1` + +定义默认:enable;单位:字符串枚举 + +范围/条件:enable / disable + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [1] DWPreprocessor真实注册;node_wrappers/dwpose.py 159~165行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [2] 扫描node_wrappers合并注册;失败可缺失节点;__init__.py 25~66行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py +- [3] 默认、范围、逐帧调用和resolution传递;utils.py 62~120行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py + +#### 3. 节点1 · 面部绘制开关(detect_face) + +源保存enable字符串,包装器以等于enable转布尔再传include_face控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。 + +```json +"enable" +``` + +类:DWPreprocessor;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/2` + +定义默认:enable;单位:字符串枚举 + +范围/条件:enable / disable + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [1] DWPreprocessor真实注册;node_wrappers/dwpose.py 159~165行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [2] 扫描node_wrappers合并注册;失败可缺失节点;__init__.py 25~66行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py +- [3] 默认、范围、逐帧调用和resolution传递;utils.py 62~120行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py + +#### 4. 节点1 · 姿态图输出分辨率(resolution) + +源1024传detect_resolution。此固定实现先以resolution=0处理输入、检测姿态并绘制,随后将画布短边缩放到目标并填充到64倍数,再去填充;不是保证检测器先以1024推理,不是视频宽度/总帧数或模型超分。比例取整及原素材尺寸决定实际尺寸,未计算真实输出。 + +```json +1024 +``` + +类:DWPreprocessor;JSON类型:int;角色:scalar。 + +源位置:`/nodes/1/widgets_values/3` + +定义默认:512;单位:像素(输出短边目标) + +范围/条件:schema64~16384,step64;helper只接受>=64的int,否则回退512 + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [3] 默认、范围、逐帧调用和resolution传递;utils.py 62~120行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py +- [7] 短边比例缩放与64倍数填充/去填充闭包;src/custom_controlnet_aux/util.py 155~183行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py + +#### 5. 节点1 · 人体框检测模型引用(bbox_detector) + +源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支,随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。 + +```json +"yolox_l.onnx" +``` + +类:DWPreprocessor;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/4` + +定义默认:yolox_l.onnx;单位:文件名枚举 + +范围/条件:None / yolox_l.torchscript.pt / yolox_l.onnx / yolo_nas_l_fp16.onnx / yolo_nas_m_fp16.onnx / yolo_nas_s_fp16.onnx + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py +- [8] 文件缺失时静态下载分支;不授权下载;src/custom_controlnet_aux/util.py 289~342行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py +- [5] 模型类型分支及加载设备,仅静态条件;src/custom_controlnet_aux/dwpose/wholebody.py 19~78行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py + +#### 6. 节点1 · 姿态估计模型引用(pose_estimator) + +源TorchScript文件选择hr16/DWPose-TorchScript-BatchSize5。schema默认是此文件,estimate_pose函数签名默认却为dw-ll_ucoco_384.onnx,不能混写。静态from_pretrained可触发缺文件下载和加载,本轮均未调用。名称bs5不证明本视频每批5帧或目标性能。 + +```json +"dw-ll_ucoco_384_bs5.torchscript.pt" +``` + +类:DWPreprocessor;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/5` + +定义默认:dw-ll_ucoco_384_bs5.torchscript.pt;单位:文件名枚举 + +范围/条件:dw-ll_ucoco_384_bs5.torchscript.pt / dw-ll_ucoco_384.onnx / dw-ll_ucoco.onnx + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py +- [8] 文件缺失时静态下载分支;不授权下载;src/custom_controlnet_aux/util.py 289~342行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py +- [5] 模型类型分支及加载设备,仅静态条件;src/custom_controlnet_aux/dwpose/wholebody.py 19~78行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py + +#### 7. 节点1 · 身体骨架线宽缩放开关(scale_stick_for_xinsr_cn) + +源disable,转false传xinsr_stick_scaling。固定draw_bodypose基础stickwidth=4,关闭倍率1,开启按画布最大边分档;不是图像模型超分或目标安装证明。身体绘制关闭时不能据此保证有身体线条。 + +```json +"disable" +``` + +类:DWPreprocessor;JSON类型:str;角色:scalar。 + +源位置:`/nodes/1/widgets_values/6` + +定义默认:disable;单位:字符串枚举 + +范围/条件:disable / enable;开启时max_side<500倍率1,否则min(2+max_side//1000,7) + +源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [0] DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 32~105行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py +- [4] 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 217~279行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py +- [6] 身体骨架线宽缩放条件;src/custom_controlnet_aux/dwpose/util.py 82~138行;commit 136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py + +#### 8. 节点2 · 输入视频文件引用(video) + +源1月11日-1.mp4保持原文,参考LoadVideoUpload转annotated filepath后加载。未访问此媒体;真实时长、分辨率、帧数、原FPS及音频存在性未知。 + +```json +"1月11日-1.mp4" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/2/widgets_values/video` + +定义默认:动态input目录文件列表,无固定文件默认;单位:文件名 + +范围/条件:目录文件扩展webm/mp4/mkv/gif/mov;目标列表未知 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 9. 节点2 · 强制读取帧率(force_rate) + +源整数0:cv生成器以原fps决定target_frame_time,非已知原FPS;非零用倒数目标时间重采样。后续select_every_nth还会改变loaded_fps;AnimateDiff前端回调恢复条件及UE未知,不能称最终FPS=0/8/24。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/force_rate` + +定义默认:0;单位:帧/秒 + +范围/条件:0~60,step1,0禁用强制重采样 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [10] 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 59~168行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [12] AnimateDiff格式默认及dim/target_rate,非最终帧率证明;videohelpersuite/load_video_nodes.py 22~52行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [22] 加载格式回调只在wasDefault条件重设值,随后逐控件回调;web/js/VHS.core.js 670~711行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 10. 节点2 · 自定义宽度(custom_width) + +两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/custom_width` + +定义默认:0;单位:像素 + +范围/条件:0~8192;0禁用该维强制尺寸 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [10] 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 59~168行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [12] AnimateDiff格式默认及dim/target_rate,非最终帧率证明;videohelpersuite/load_video_nodes.py 22~52行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [13] DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容;videohelpersuite/utils.py 19~56行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [22] 加载格式回调只在wasDefault条件重设值,随后逐控件回调;web/js/VHS.core.js 670~711行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 11. 节点2 · 自定义高度(custom_height) + +两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/custom_height` + +定义默认:0;单位:像素 + +范围/条件:0~8192;0禁用该维强制尺寸 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [10] 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 59~168行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [12] AnimateDiff格式默认及dim/target_rate,非最终帧率证明;videohelpersuite/load_video_nodes.py 22~52行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [13] DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容;videohelpersuite/utils.py 19~56行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [22] 加载格式回调只在wasDefault条件重设值,随后逐控件回调;web/js/VHS.core.js 670~711行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 12. 节点2 · 读取帧数上限(frame_load_cap) + +源0不表示零帧,非零在生成循环限制frames_added;内存、素材结束或格式条件仍可限制加载,不能称无限加载或已读取全部。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/frame_load_cap` + +定义默认:0;单位:帧 + +范围/条件:0~9007199254740991,step1;0不设置此项帧上限 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [10] 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 59~168行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [13] DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容;videohelpersuite/utils.py 19~56行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 13. 节点2 · 跳过开头帧数(skip_first_frames) + +源0不主动跳开头;cv循环先累计total_frame_count并跳过<=skip_first_frames部分,然后处理nth选择。不是秒或视频时间戳;强制帧率与实际输入决定时间关系。 + +```json +0 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/skip_first_frames` + +定义默认:0;单位:生成器计数的帧 + +范围/条件:0~9007199254740991,step1 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [10] 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 59~168行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [13] DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容;videohelpersuite/utils.py 19~56行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 14. 节点2 · 读取间隔(select_every_nth) + +源1保留生成器每个可选帧;cv循环按计数取模选择。loaded_fps由target_frame_time再乘此间隔后的倒数给出,不直接用标题或缓存猜帧率。 + +```json +1 +``` + +类:VHS_LoadVideo;JSON类型:int;角色:scalar。 + +源位置:`/nodes/2/widgets_values/select_every_nth` + +定义默认:1;单位:帧间隔倍率 + +范围/条件:1~9007199254740991,step1 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [9] VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 423~474行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [10] 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 59~168行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [13] DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容;videohelpersuite/utils.py 19~56行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 15. 节点2 · 加载格式约束(format) + +源AnimateDiff定义target_rate=8、dim=(8,0,512,512)。后端用dim决定尺寸对齐,不把target_rate自动当最终帧率。前端format回调将rate reset设8、尺寸reset设512,只在原值等于旧reset时改value并回调;具名恢复按实际控件顺序赋值并触发回调,无法只看对象键顺序推断最终控件值。UE7.5.2钩子次序未知。 + +```json +"AnimateDiff" +``` + +类:VHS_LoadVideo;JSON类型:str;角色:scalar。 + +源位置:`/nodes/2/widgets_values/format` + +定义默认:AnimateDiff;单位:格式预设 + +范围/条件:固定包内None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan;允许外部增补,目标动态成员未知 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [12] AnimateDiff格式默认及dim/target_rate,非最终帧率证明;videohelpersuite/load_video_nodes.py 22~52行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [22] 加载格式回调只在wasDefault条件重设值,随后逐控件回调;web/js/VHS.core.js 670~711行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 16. 节点2 · 历史视频预览缓存(非运行参数)(videopreview) + +这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\ComfyUI-Data\output\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "force_rate": 0, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "filename": "1月11日-1.mp4", + "type": "input", + "format": "video/mp4" + } +} +``` + +类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/2/widgets_values/videopreview` + +定义默认:无后端schema默认;单位:前端状态 + +范围/条件:对象及嵌套JSON类型原样保留,不递归计作新增运行参数 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [24] videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget;web/js/VHS.core.js 934~943行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [25] 核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复;src/lib/litegraph/src/LGraphNode.ts 862~875行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts +- [26] 核心先数组保存再onSerialize,VHS回调覆盖对象;src/lib/litegraph/src/LGraphNode.ts 907~929行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts +- [27] 先可序列化控件后物理连线,外线覆盖同名frame_rate;src/utils/executionUtil.ts 86~127行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts + +#### 17. 节点4 · 合成帧率保存缓存(外线覆盖)(frame_rate) + +保存24与预览24均不是最终FPS。物理link12从Info9槽0接Combine4输入槽4 frame_rate;固定包Info依次取loaded_fps等键,槽0读video_info.loaded_fps。Load2按target_frame_time和间隔构造此值。固定前端先控件后写解析外线覆盖同名输入;仅在该参考契约成立范围解释,目标UE/媒体/最终FPS未知。 + +```json +24 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:linked_saved。 + +源位置:`/nodes/4/widgets_values/frame_rate` + +定义默认:8;单位:帧/秒 + +范围/条件:schema min1、step1,无显式max;源int24并有link12 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [14] 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 235~289行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [19] VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height;videohelpersuite/nodes.py 941~970行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [11] 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [27] 先可序列化控件后物理连线,外线覆盖同名frame_rate;src/utils/executionUtil.ts 86~127行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts + +#### 18. 节点4 · 视频循环次数设置(loop_count) + +源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。 + +```json +0 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/4/widgets_values/loop_count` + +定义默认:0;单位:循环参数 + +范围/条件:0~100,step1 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [14] 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 235~289行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 19. 节点4 · 保存文件名前缀(filename_prefix) + +源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;不等于预览对象E盘历史fullpath已可访问,不证明任何文件已生成。 + +```json +"AnimateDiff" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/filename_prefix` + +定义默认:AnimateDiff;单位:相对前缀字符串 + +范围/条件:由folder_paths输出目录规则解析;真实目录未知 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [14] 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 235~289行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 20. 节点4 · 视频封装和编码预设(format) + +固定包h264-mp4.json提供mp4扩展、libx264、bt709及动态pix_fmt/crf/save_metadata/trim_to_audio。前端format回调插入具名动态控件/输入,VHS保存对象具名恢复;实际目标包、ffmpeg和恢复钩子未核对。 + +```json +"video/h264-mp4" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/format` + +定义默认:schema首项image/gif,无显式default;单位:预设选择 + +范围/条件:当前video/h264-mp4;动态格式目录和运行编码器可用性未知 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [14] 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 235~289行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [18] h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [17] 格式发现和动态控件,不推定目标安装可用;videohelpersuite/nodes.py 46~108行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [23] 合成format回调重建动态控件及同名输入;web/js/VHS.core.js 1241~1298行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 21. 节点4 · 输出像素格式(pix_fmt) + +源yuv420p传ffmpeg -pix_fmt;只解释固定h264-mp4定义,不保证目标编码器可用或实际成片色彩效果。 + +```json +"yuv420p" +``` + +类:VHS_VideoCombine;JSON类型:str;角色:scalar。 + +源位置:`/nodes/4/widgets_values/pix_fmt` + +定义默认:首项yuv420p;单位:像素格式枚举 + +范围/条件:yuv420p / yuv420p10le + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [18] h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [17] 格式发现和动态控件,不推定目标安装可用;videohelpersuite/nodes.py 46~108行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [16] 动态格式默认替换、元数据ffmpeg分支;videohelpersuite/nodes.py 94~191行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [23] 合成format回调重建动态控件及同名输入;web/js/VHS.core.js 1241~1298行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 22. 节点4 · H264恒定质量参数(crf) + +源12替换格式-crf参数,通常较小数值请求较高质量/较大体积,但目标编码器合法域、产物与体积均未实测;不能把schema上限当编码器运行保证。 + +```json +12 +``` + +类:VHS_VideoCombine;JSON类型:int;角色:scalar。 + +源位置:`/nodes/4/widgets_values/crf` + +定义默认:19;单位:CRF值 + +范围/条件:固定格式schema0~100,step1;不是目标libx264已接受所有值的证明 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [18] h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [16] 动态格式默认替换、元数据ffmpeg分支;videohelpersuite/nodes.py 94~191行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [23] 合成format回调重建动态控件及同名输入;web/js/VHS.core.js 1241~1298行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 23. 节点4 · 视频元数据保存开关(save_metadata) + +源true选择ffmpeg元数据写入分支,将prompt及extra_pnginfo等静态构造为元数据;具体文件、内容和成功情况未验证。不是当前流程已运行或预览PNG已存在的证据。 + +```json +true +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/4/widgets_values/save_metadata` + +定义默认:true;单位:布尔 + +范围/条件:true / false;固定动态格式字段 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [18] h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [16] 动态格式默认替换、元数据ffmpeg分支;videohelpersuite/nodes.py 94~191行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 24. 节点4 · 音轨截取条件(trim_to_audio) + +源false在有音频的参考分支设置apad并-shortest,true不加该apad。本图Combine.audio未接,Load音频出口也未接;false不能证明有音频,更不能称保留原音轨。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/4/widgets_values/trim_to_audio` + +定义默认:false;单位:布尔 + +范围/条件:true / false;仅有audio输入/音频数据的合成分支生效 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [18] h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 25. 节点4 · 往返帧序列开关(pingpong) + +源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。 + +```json +false +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/4/widgets_values/pingpong` + +定义默认:false;单位:布尔 + +范围/条件:true / false + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [14] 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 235~289行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 26. 节点4 · 保存目录选择(save_output) + +源true选择folder_paths输出目录,false选临时目录;不等于当前文件已保存。真实目录配置/权限/编码器/文件/时长与姿态视频效果均未知。 + +```json +true +``` + +类:VHS_VideoCombine;JSON类型:bool;角色:scalar。 + +源位置:`/nodes/4/widgets_values/save_output` + +定义默认:true;单位:布尔 + +范围/条件:true / false + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [14] 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 235~289行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [15] 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 328~625行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +#### 27. 节点4 · 历史视频预览缓存(非运行参数)(videopreview) + +这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\ComfyUI-Data\output\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。 + +```json +{ + "hidden": false, + "paused": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "format": "video/h264-mp4", + "frame_rate": 24, + "fullpath": "E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4", + "subfolder": "", + "type": "output", + "workflow": "AnimateDiff_00006.png" + } +} +``` + +类:VHS_VideoCombine;JSON类型:dict;角色:frontend_history。 + +源位置:`/nodes/4/widgets_values/videopreview` + +定义默认:无后端schema默认;单位:前端状态 + +范围/条件:对象及嵌套JSON类型原样保留,不递归计作新增运行参数 + +源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。 + +依据: +- [24] videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget;web/js/VHS.core.js 934~943行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [21] 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 6~169行;commit 发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip +- [25] 核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复;src/lib/litegraph/src/LGraphNode.ts 862~875行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts +- [26] 核心先数组保存再onSerialize,VHS回调覆盖对象;src/lib/litegraph/src/LGraphNode.ts 907~929行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts +- [27] 先可序列化控件后物理连线,外线覆盖同名frame_rate;src/utils/executionUtil.ts 86~127行;commit 52bb58d307242a34103998ef1da8007e47501d5b;SHA256 4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts + +### 零保存节点与源注释 + +9 VHS_VideoInfoLoaded:VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。 + +节点8,位置`/nodes/0/widgets_values/0` + +作者插件链接、更新和准备模型建议,仅为源注释,不证明目标安装或授权更新、下载、停TTS。 + +```text +## Custom Nodes + +- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux) +- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite) + +## Report Issue + +Note: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release. + +- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues) +- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues) +- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues) + +``` + +### 固定原件索引 + +0. DWPose schema、字符串开关、权重来源选择、调用和双出口;node_wrappers/dwpose.py 第32~105行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py + +1. DWPreprocessor真实注册;node_wrappers/dwpose.py 第159~165行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py + +2. 扫描node_wrappers合并注册;失败可缺失节点;__init__.py 第25~66行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py + +3. 默认、范围、逐帧调用和resolution传递;utils.py 第62~120行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py + +4. 权重加载、检测、绘制与结果缩放顺序;src/custom_controlnet_aux/dwpose/__init__.py 第217~279行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py + +5. 模型类型分支及加载设备,仅静态条件;src/custom_controlnet_aux/dwpose/wholebody.py 第19~78行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py + +6. 身体骨架线宽缩放条件;src/custom_controlnet_aux/dwpose/util.py 第82~138行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py + +7. 短边比例缩放与64倍数填充/去填充闭包;src/custom_controlnet_aux/util.py 第155~183行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py + +8. 文件缺失时静态下载分支;不授权下载;src/custom_controlnet_aux/util.py 第289~342行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py + +9. VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用;videohelpersuite/load_video_nodes.py 第423~474行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +10. 尺寸取整、force_rate、跳帧、间隔与上限;videohelpersuite/load_video_nodes.py 第59~168行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +11. 加载尺寸/内存上限、格式、loaded_fps和四出口;videohelpersuite/load_video_nodes.py 第293~420行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +12. AnimateDiff格式默认及dim/target_rate,非最终帧率证明;videohelpersuite/load_video_nodes.py 第22~52行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +13. DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容;videohelpersuite/utils.py 第19~56行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +14. 合成schema默认、可选输入与签名;videohelpersuite/nodes.py 第235~289行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +15. 输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回;videohelpersuite/nodes.py 第328~625行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +16. 动态格式默认替换、元数据ffmpeg分支;videohelpersuite/nodes.py 第94~191行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +17. 格式发现和动态控件,不推定目标安装可用;videohelpersuite/nodes.py 第46~108行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +18. h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264;video_formats/h264-mp4.json 第1~15行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +19. VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height;videohelpersuite/nodes.py 第941~970行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +20. VHS三个节点真实类注册,均插件而非核心;videohelpersuite/nodes.py 第1024~1043行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +21. 具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象;web/js/VHS.core.js 第6~169行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +22. 加载格式回调只在wasDefault条件重设值,随后逐控件回调;web/js/VHS.core.js 第670~711行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +23. 合成format回调重建动态控件及同名输入;web/js/VHS.core.js 第1241~1298行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +24. videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget;web/js/VHS.core.js 第934~943行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +25. 核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复;src/lib/litegraph/src/LGraphNode.ts 第862~875行;提交52bb58d307242a34103998ef1da8007e47501d5b;SHA256 ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts + +26. 核心先数组保存再onSerialize,VHS回调覆盖对象;src/lib/litegraph/src/LGraphNode.ts 第907~929行;提交52bb58d307242a34103998ef1da8007e47501d5b;SHA256 ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts + +27. 先可序列化控件后物理连线,外线覆盖同名frame_rate;src/utils/executionUtil.ts 第86~127行;提交52bb58d307242a34103998ef1da8007e47501d5b;SHA256 4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts + +28. MarkdownNote前端注释;src/extensions/core/noteNode.ts 第1~80行;提交52bb58d307242a34103998ef1da8007e47501d5b;SHA256 1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/extensions/core/noteNode.ts + +29. 原仓许可文本,逐文件声明保持;未安装执行;LICENSE.txt 第1~8行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/LICENSE.txt + +30. 原仓许可文本,逐文件声明保持;未安装执行;LICENSE 第1~8行;提交52bb58d307242a34103998ef1da8007e47501d5b;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/LICENSE + +31. 原仓许可文本,逐文件声明保持;未安装执行;LICENSE 第1~8行;提交发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip + +32. 本文件另保留CMU非商业声明;不把仓级许可当全部文件许可;src/custom_controlnet_aux/dwpose/__init__.py 第1~7行;提交136f125c89aed92ced1b6fbb491e13719b72fcc0;SHA256 11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3;https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py diff --git a/docs/hel-892/openpose-document-evidence/.gitignore b/docs/hel-892/openpose-document-evidence/.gitignore new file mode 100644 index 00000000..c18dd8d8 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/docs/hel-892/openpose-document-evidence/actual-openpose-video-姿态检测.json b/docs/hel-892/openpose-document-evidence/actual-openpose-video-姿态检测.json new file mode 100644 index 00000000..050893f9 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/actual-openpose-video-姿态检测.json @@ -0,0 +1,3057 @@ +{ + "companion_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "dependencies": { + "check_state": "unchecked", + "checked_at": null, + "missing": [], + "model_locations": "待目标机提供", + "models": [ + "dw-ll_ucoco_384_bs5.torchscript.pt", + "yolox_l.onnx" + ], + "node_packs": [], + "node_types": [ + "DWPreprocessor", + "MarkdownNote", + "VHS_LoadVideo", + "VHS_VideoCombine", + "VHS_VideoInfoLoaded" + ], + "source": null + }, + "draft": true, + "errors": [ + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:DWPreprocessor" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_LoadVideo" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_VideoInfoLoaded" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "待提供目标机节点定义:VHS_VideoCombine" + }, + { + "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", + "symptom": "未得到可执行节点" + } + ], + "fixed_version": { + "canonical_sha256": "8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201", + "comments": [ + { + "evidence": [ + 28 + ], + "meaning": "作者插件链接、更新和准备模型建议,仅为源注释,不证明目标安装或授权更新、下载、停TTS。", + "node_id": "8", + "pointer": "/nodes/0/widgets_values/0", + "text": "## Custom Nodes\n\n- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" + } + ], + "counts": { + "final_prompt_constructed": false, + "final_scalars": 0, + "frontend_only": 2, + "history_objects": 2, + "linked_saved_fields": 1, + "physical_edges": 4, + "saved_fields": 27, + "scalar_saved_positions": 25, + "source_nodes": 5, + "source_notes": 1 + }, + "fields": [ + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_hand控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "detect_hand", + "json_type": "str", + "label": "手部绘制开关", + "limits": "enable / disable", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/0", + "role": "scalar", + "schema_default": "enable", + "scope": "root", + "type": "COMBO", + "unit": "字符串枚举", + "value": "enable" + }, + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_body控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "detect_body", + "json_type": "str", + "label": "身体绘制开关", + "limits": "enable / disable", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/1", + "role": "scalar", + "schema_default": "enable", + "scope": "root", + "type": "COMBO", + "unit": "字符串枚举", + "value": "enable" + }, + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_face控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "detect_face", + "json_type": "str", + "label": "面部绘制开关", + "limits": "enable / disable", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/2", + "role": "scalar", + "schema_default": "enable", + "scope": "root", + "type": "COMBO", + "unit": "字符串枚举", + "value": "enable" + }, + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源1024传detect_resolution。此固定实现先以resolution=0处理输入、检测姿态并绘制,随后将画布短边缩放到目标并填充到64倍数,再去填充;不是保证检测器先以1024推理,不是视频宽度/总帧数或模型超分。比例取整及原素材尺寸决定实际尺寸,未计算真实输出。", + "evidence": [ + 0, + 3, + 4, + 7 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "resolution", + "json_type": "int", + "label": "姿态图输出分辨率", + "limits": "schema64~16384,step64;helper只接受>=64的int,否则回退512", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/3", + "role": "scalar", + "schema_default": "512", + "scope": "root", + "type": "INT", + "unit": "像素(输出短边目标)", + "value": 1024 + }, + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支,随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。", + "evidence": [ + 0, + 4, + 8, + 5 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "bbox_detector", + "json_type": "str", + "label": "人体框检测模型引用", + "limits": "None / yolox_l.torchscript.pt / yolox_l.onnx / yolo_nas_l_fp16.onnx / yolo_nas_m_fp16.onnx / yolo_nas_s_fp16.onnx", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/4", + "role": "scalar", + "schema_default": "yolox_l.onnx", + "scope": "root", + "type": "COMBO", + "unit": "文件名枚举", + "value": "yolox_l.onnx" + }, + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源TorchScript文件选择hr16/DWPose-TorchScript-BatchSize5。schema默认是此文件,estimate_pose函数签名默认却为dw-ll_ucoco_384.onnx,不能混写。静态from_pretrained可触发缺文件下载和加载,本轮均未调用。名称bs5不证明本视频每批5帧或目标性能。", + "evidence": [ + 0, + 4, + 8, + 5 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "pose_estimator", + "json_type": "str", + "label": "姿态估计模型引用", + "limits": "dw-ll_ucoco_384_bs5.torchscript.pt / dw-ll_ucoco_384.onnx / dw-ll_ucoco.onnx", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/5", + "role": "scalar", + "schema_default": "dw-ll_ucoco_384_bs5.torchscript.pt", + "scope": "root", + "type": "COMBO", + "unit": "文件名枚举", + "value": "dw-ll_ucoco_384_bs5.torchscript.pt" + }, + { + "class_type": "DWPreprocessor", + "definition_node_id": "1", + "effect": "源disable,转false传xinsr_stick_scaling。固定draw_bodypose基础stickwidth=4,关闭倍率1,开启按画布最大边分档;不是图像模型超分或目标安装证明。身体绘制关闭时不能据此保证有身体线条。", + "evidence": [ + 0, + 4, + 6 + ], + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "scale_stick_for_xinsr_cn", + "json_type": "str", + "label": "身体骨架线宽缩放开关", + "limits": "disable / enable;开启时max_side<500倍率1,否则min(2+max_side//1000,7)", + "node_id": "1", + "pointer": "/nodes/1/widgets_values/6", + "role": "scalar", + "schema_default": "disable", + "scope": "root", + "type": "COMBO", + "unit": "字符串枚举", + "value": "disable" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "源1月11日-1.mp4保持原文,参考LoadVideoUpload转annotated filepath后加载。未访问此媒体;真实时长、分辨率、帧数、原FPS及音频存在性未知。", + "evidence": [ + 9, + 11 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "video", + "json_type": "str", + "label": "输入视频文件引用", + "limits": "目录文件扩展webm/mp4/mkv/gif/mov;目标列表未知", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/video", + "role": "scalar", + "schema_default": "动态input目录文件列表,无固定文件默认", + "scope": "root", + "type": "COMBO", + "unit": "文件名", + "value": "1月11日-1.mp4" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "源整数0:cv生成器以原fps决定target_frame_time,非已知原FPS;非零用倒数目标时间重采样。后续select_every_nth还会改变loaded_fps;AnimateDiff前端回调恢复条件及UE未知,不能称最终FPS=0/8/24。", + "evidence": [ + 9, + 10, + 11, + 12, + 22, + 21 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "force_rate", + "json_type": "int", + "label": "强制读取帧率", + "limits": "0~60,step1,0禁用强制重采样", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/force_rate", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "FLOAT/INT", + "unit": "帧/秒", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + "evidence": [ + 9, + 10, + 11, + 12, + 13, + 22, + 21 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "custom_width", + "json_type": "int", + "label": "自定义宽度", + "limits": "0~8192;0禁用该维强制尺寸", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/custom_width", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + "evidence": [ + 9, + 10, + 11, + 12, + 13, + 22, + 21 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "custom_height", + "json_type": "int", + "label": "自定义高度", + "limits": "0~8192;0禁用该维强制尺寸", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/custom_height", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "像素", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "源0不表示零帧,非零在生成循环限制frames_added;内存、素材结束或格式条件仍可限制加载,不能称无限加载或已读取全部。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "frame_load_cap", + "json_type": "int", + "label": "读取帧数上限", + "limits": "0~9007199254740991,step1;0不设置此项帧上限", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/frame_load_cap", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "源0不主动跳开头;cv循环先累计total_frame_count并跳过<=skip_first_frames部分,然后处理nth选择。不是秒或视频时间戳;强制帧率与实际输入决定时间关系。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "skip_first_frames", + "json_type": "int", + "label": "跳过开头帧数", + "limits": "0~9007199254740991,step1", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/skip_first_frames", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "生成器计数的帧", + "value": 0 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "源1保留生成器每个可选帧;cv循环按计数取模选择。loaded_fps由target_frame_time再乘此间隔后的倒数给出,不直接用标题或缓存猜帧率。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "select_every_nth", + "json_type": "int", + "label": "读取间隔", + "limits": "1~9007199254740991,step1", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/select_every_nth", + "role": "scalar", + "schema_default": "1", + "scope": "root", + "type": "INT", + "unit": "帧间隔倍率", + "value": 1 + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "源AnimateDiff定义target_rate=8、dim=(8,0,512,512)。后端用dim决定尺寸对齐,不把target_rate自动当最终帧率。前端format回调将rate reset设8、尺寸reset设512,只在原值等于旧reset时改value并回调;具名恢复按实际控件顺序赋值并触发回调,无法只看对象键顺序推断最终控件值。UE7.5.2钩子次序未知。", + "evidence": [ + 12, + 11, + 22, + 21 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "format", + "json_type": "str", + "label": "加载格式约束", + "limits": "固定包内None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan;允许外部增补,目标动态成员未知", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/format", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "COMBO", + "unit": "格式预设", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_LoadVideo", + "definition_node_id": "2", + "effect": "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。", + "evidence": [ + 24, + 21, + 25, + 26, + 27 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史视频预览缓存(非运行参数)", + "limits": "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + "node_id": "2", + "pointer": "/nodes/2/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无后端schema默认", + "scope": "root", + "type": "OBJECT", + "unit": "前端状态", + "value": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "1月11日-1.mp4", + "force_rate": 0, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": false + } + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "保存24与预览24均不是最终FPS。物理link12从Info9槽0接Combine4输入槽4 frame_rate;固定包Info依次取loaded_fps等键,槽0读video_info.loaded_fps。Load2按target_frame_time和间隔构造此值。固定前端先控件后写解析外线覆盖同名输入;仅在该参考契约成立范围解释,目标UE/媒体/最终FPS未知。", + "evidence": [ + 14, + 19, + 11, + 27 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "frame_rate", + "json_type": "int", + "label": "合成帧率保存缓存(外线覆盖)", + "limits": "schema min1、step1,无显式max;源int24并有link12", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/frame_rate", + "role": "linked_saved", + "schema_default": "8", + "scope": "root", + "type": "FLOAT/INT", + "unit": "帧/秒", + "value": 24 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", + "evidence": [ + 14, + 15 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "loop_count", + "json_type": "int", + "label": "视频循环次数设置", + "limits": "0~100,step1", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/loop_count", + "role": "scalar", + "schema_default": "0", + "scope": "root", + "type": "INT", + "unit": "循环参数", + "value": 0 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;不等于预览对象E盘历史fullpath已可访问,不证明任何文件已生成。", + "evidence": [ + 14, + 15 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "filename_prefix", + "json_type": "str", + "label": "保存文件名前缀", + "limits": "由folder_paths输出目录规则解析;真实目录未知", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/filename_prefix", + "role": "scalar", + "schema_default": "AnimateDiff", + "scope": "root", + "type": "STRING", + "unit": "相对前缀字符串", + "value": "AnimateDiff" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "固定包h264-mp4.json提供mp4扩展、libx264、bt709及动态pix_fmt/crf/save_metadata/trim_to_audio。前端format回调插入具名动态控件/输入,VHS保存对象具名恢复;实际目标包、ffmpeg和恢复钩子未核对。", + "evidence": [ + 14, + 18, + 17, + 23, + 21 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "format", + "json_type": "str", + "label": "视频封装和编码预设", + "limits": "当前video/h264-mp4;动态格式目录和运行编码器可用性未知", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/format", + "role": "scalar", + "schema_default": "schema首项image/gif,无显式default", + "scope": "root", + "type": "COMBO", + "unit": "预设选择", + "value": "video/h264-mp4" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源yuv420p传ffmpeg -pix_fmt;只解释固定h264-mp4定义,不保证目标编码器可用或实际成片色彩效果。", + "evidence": [ + 18, + 17, + 16, + 15, + 23 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "pix_fmt", + "json_type": "str", + "label": "输出像素格式", + "limits": "yuv420p / yuv420p10le", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/pix_fmt", + "role": "scalar", + "schema_default": "首项yuv420p", + "scope": "root", + "type": "COMBO", + "unit": "像素格式枚举", + "value": "yuv420p" + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源12替换格式-crf参数,通常较小数值请求较高质量/较大体积,但目标编码器合法域、产物与体积均未实测;不能把schema上限当编码器运行保证。", + "evidence": [ + 18, + 16, + 15, + 23 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "crf", + "json_type": "int", + "label": "H264恒定质量参数", + "limits": "固定格式schema0~100,step1;不是目标libx264已接受所有值的证明", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/crf", + "role": "scalar", + "schema_default": "19", + "scope": "root", + "type": "INT", + "unit": "CRF值", + "value": 12 + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源true选择ffmpeg元数据写入分支,将prompt及extra_pnginfo等静态构造为元数据;具体文件、内容和成功情况未验证。不是当前流程已运行或预览PNG已存在的证据。", + "evidence": [ + 18, + 16, + 15 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "save_metadata", + "json_type": "bool", + "label": "视频元数据保存开关", + "limits": "true / false;固定动态格式字段", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/save_metadata", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源false在有音频的参考分支设置apad并-shortest,true不加该apad。本图Combine.audio未接,Load音频出口也未接;false不能证明有音频,更不能称保留原音轨。", + "evidence": [ + 18, + 15 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "trim_to_audio", + "json_type": "bool", + "label": "音轨截取条件", + "limits": "true / false;仅有audio输入/音频数据的合成分支生效", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/trim_to_audio", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。", + "evidence": [ + 14, + 15 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "pingpong", + "json_type": "bool", + "label": "往返帧序列开关", + "limits": "true / false", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/pingpong", + "role": "scalar", + "schema_default": "false", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": false + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "源true选择folder_paths输出目录,false选临时目录;不等于当前文件已保存。真实目录配置/权限/编码器/文件/时长与姿态视频效果均未知。", + "evidence": [ + 14, + 15 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "save_output", + "json_type": "bool", + "label": "保存目录选择", + "limits": "true / false", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/save_output", + "role": "scalar", + "schema_default": "true", + "scope": "root", + "type": "BOOLEAN", + "unit": "布尔", + "value": true + }, + { + "class_type": "VHS_VideoCombine", + "definition_node_id": "4", + "effect": "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。", + "evidence": [ + 24, + 21, + 25, + 26, + 27 + ], + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + "field": "videopreview", + "json_type": "dict", + "label": "历史视频预览缓存(非运行参数)", + "limits": "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + "node_id": "4", + "pointer": "/nodes/4/widgets_values/videopreview", + "role": "frontend_history", + "schema_default": "无后端schema默认", + "scope": "root", + "type": "OBJECT", + "unit": "前端状态", + "value": { + "hidden": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "format": "video/h264-mp4", + "frame_rate": 24, + "fullpath": "E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4", + "subfolder": "", + "type": "output", + "workflow": "AnimateDiff_00006.png" + }, + "paused": false + } + } + ], + "flow": [ + "5源节点(4实体+MarkdownNote8)、4物理边,全mode0、无子图。27顶层保存位置=7个DW数组项+9个Load对象键+11个Combine对象键,其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。", + "边10 LoadVideo2槽0→DW1.image输入槽0;边4 DW1图像槽0→Combine4.images槽0。DW的POSE_KEYPOINT槽1未接;不据标题当核心SDPose或已输出关键点文件。", + "边11 LoadVideo2槽3→Info9.video_info输入槽0;边12 Info9槽0→Combine4.frame_rate输入槽4。固定包Info槽0取loaded_fps,外线覆盖保存24,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名,不能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证明原FPS。", + "VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。", + "DW精确源提交136f125c89aed92ced1b6fbb491e13719b72fcc0,真实注册DWPreprocessor→DWPose_Preprocessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加载分支未调用。", + "VHS声明1.7.9已取官方registry精确发布包并核注册/成员哈希;注册表无Git commit字段,包同字节不等于提交绑定。三类VHS及DW均为插件,不假借core来源,也不把包来源当目标安装证明。", + "frontend1.36.12官方tag对应52bb58d307242a34103998ef1da8007e47501d5b。核心先按序恢复再onConfigure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条件,不能按保存对象键顺序推断最终输入。", + "各节点UE7.5.2(含注释),空widget_ue_connectable/input_ue_unconnectable和extra空ue_links不证明无改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契约成立范围说明覆盖,不导入执行上游或创建生产可信注册。", + "两videopreview完整历史对象独立保存和展示,含E盘fullpath及PNG workflow缓存;不读取文件/视频,不请求api/view或媒体URL,不把缓存当实际产物/最终FPS。filename_prefix=AnimateDiff是保存前缀,区别于旧绝对路径。", + "h264-mp4静态格式含libx264、pix_fmt、crf和元数据/音频选项;schema范围不保证编码器运行合法。实际ffmpeg/编码器/目录/文件、音轨存在性、姿态效果、速度/显存全部未知。未实跑、未定稿、未启用,不增加可靠转换或候选。", + "源物理边:[4, 1, 0, 4, 0, \"IMAGE\"]", + "源物理边:[10, 2, 0, 1, 0, \"IMAGE\"]", + "源物理边:[11, 2, 3, 9, 0, \"VHS_VIDEOINFO\"]", + "源物理边:[12, 9, 0, 4, 4, \"FLOAT\"]", + "源节点8 MarkdownNote:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点1 DWPreprocessor:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点2 VHS_LoadVideo:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点9 VHS_VideoInfoLoaded:mode=0;UE={\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}", + "源节点4 VHS_VideoCombine:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/hidden [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/paused [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/force_rate [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_width [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_height [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/frame_load_cap [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/skip_first_frames [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/select_every_nth [int]=1", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/filename [str]=\"1月11日-1.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/type [str]=\"input\"", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/format [str]=\"video/mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/hidden [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/paused [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/filename [str]=\"AnimateDiff_00006.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/format [str]=\"video/h264-mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/frame_rate [int]=24", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/fullpath [str]=\"E:\\\\ComfyUI-Data\\\\output\\\\AnimateDiff_00006.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/subfolder [str]=\"\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/type [str]=\"output\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/workflow [str]=\"AnimateDiff_00006.png\"" + ], + "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 + ], + "matched": true, + "notice": "固定版本参考说明;历史预览不是执行结果,环境/UE和实际效果未核对,转换仍关闭。", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_sha1": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608", + "sources": [ + { + "claim": "DWPose schema、字符串开关、权重来源选择、调用和双出口", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "node_wrappers/dwpose.py", + "id": "dw", + "lines": [ + 32, + 105 + ], + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py" + }, + { + "claim": "DWPreprocessor真实注册", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "node_wrappers/dwpose.py", + "id": "dw", + "lines": [ + 159, + 165 + ], + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py" + }, + { + "claim": "扫描node_wrappers合并注册;失败可缺失节点", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "__init__.py", + "id": "dw", + "lines": [ + 25, + 66 + ], + "local_file": "../openpose-reference/dw____init__.py", + "sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py" + }, + { + "claim": "默认、范围、逐帧调用和resolution传递", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "utils.py", + "id": "dw", + "lines": [ + 62, + 120 + ], + "local_file": "../openpose-reference/dw__utils.py", + "sha256": "6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py" + }, + { + "claim": "权重加载、检测、绘制与结果缩放顺序", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "id": "dw", + "lines": [ + 217, + 279 + ], + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py" + }, + { + "claim": "模型类型分支及加载设备,仅静态条件", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "src/custom_controlnet_aux/dwpose/wholebody.py", + "id": "dw", + "lines": [ + 19, + 78 + ], + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py", + "sha256": "89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py" + }, + { + "claim": "身体骨架线宽缩放条件", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "src/custom_controlnet_aux/dwpose/util.py", + "id": "dw", + "lines": [ + 82, + 138 + ], + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py", + "sha256": "e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py" + }, + { + "claim": "短边比例缩放与64倍数填充/去填充闭包", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "src/custom_controlnet_aux/util.py", + "id": "dw", + "lines": [ + 155, + 183 + ], + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py" + }, + { + "claim": "文件缺失时静态下载分支;不授权下载", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "src/custom_controlnet_aux/util.py", + "id": "dw", + "lines": [ + 289, + 342 + ], + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py" + }, + { + "claim": "VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/load_video_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 423, + 474 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "尺寸取整、force_rate、跳帧、间隔与上限", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/load_video_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 59, + 168 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "加载尺寸/内存上限、格式、loaded_fps和四出口", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/load_video_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 293, + 420 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "AnimateDiff格式默认及dim/target_rate,非最终帧率证明", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/load_video_nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 22, + 52 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/utils.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 19, + 56 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__utils.py", + "sha256": "ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "合成schema默认、可选输入与签名", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 235, + 289 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 328, + 625 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "动态格式默认替换、元数据ffmpeg分支", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 94, + 191 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "格式发现和动态控件,不推定目标安装可用", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 46, + 108 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "video_formats/h264-mp4.json", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1, + 15 + ], + "local_file": "../openpose-reference/vhs__video_formats__h264-mp4.json", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 941, + 970 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "VHS三个节点真实类注册,均插件而非核心", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "videohelpersuite/nodes.py", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1024, + 1043 + ], + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "web/js/VHS.core.js", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 6, + 169 + ], + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "加载格式回调只在wasDefault条件重设值,随后逐控件回调", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "web/js/VHS.core.js", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 670, + 711 + ], + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "合成format回调重建动态控件及同名输入", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "web/js/VHS.core.js", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1241, + 1298 + ], + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "web/js/VHS.core.js", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 934, + 943 + ], + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "id": "frontend", + "lines": [ + 862, + 875 + ], + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts" + }, + { + "claim": "核心先数组保存再onSerialize,VHS回调覆盖对象", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "id": "frontend", + "lines": [ + 907, + 929 + ], + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts" + }, + { + "claim": "先可序列化控件后物理连线,外线覆盖同名frame_rate", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "file": "src/utils/executionUtil.ts", + "id": "frontend", + "lines": [ + 86, + 127 + ], + "local_file": "../openpose-reference/frontend__src__utils__executionUtil.ts", + "sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts" + }, + { + "claim": "MarkdownNote前端注释", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "file": "src/extensions/core/noteNode.ts", + "id": "frontend", + "lines": [ + 1, + 80 + ], + "local_file": "../openpose-reference/frontend__src__extensions__core__noteNode.ts", + "sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/extensions/core/noteNode.ts" + }, + { + "claim": "原仓许可文本,逐文件声明保持;未安装执行", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "LICENSE.txt", + "id": "dw", + "lines": [ + 1, + 8 + ], + "local_file": "../openpose-reference/dw__LICENSE.txt", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/LICENSE.txt" + }, + { + "claim": "原仓许可文本,逐文件声明保持;未安装执行", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "file": "LICENSE", + "id": "frontend", + "lines": [ + 1, + 8 + ], + "local_file": "../openpose-reference/frontend__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/LICENSE" + }, + { + "claim": "原仓许可文本,逐文件声明保持;未安装执行", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "file": "LICENSE", + "git_commit_binding": "unknown", + "id": "vhs", + "lines": [ + 1, + 8 + ], + "local_file": "../openpose-reference/vhs__LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip" + }, + { + "claim": "本文件另保留CMU非商业声明;不把仓级许可当全部文件许可", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "id": "dw", + "lines": [ + 1, + 7 + ], + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py" + } + ], + "steps": [ + "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", + "保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。" + ], + "user_overview": "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "versions": [ + "DW源声明完整commit=136f125c89aed92ced1b6fbb491e13719b72fcc0(精确文本参考,非安装证明)", + "VHS源声明1.7.9:官方registry发布包SHA256=ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;Git提交绑定未知,包同字节不等于提交绑定", + "frontend源声明1.36.12→官方tag完整commit52bb58d307242a34103998ef1da8007e47501d5b;UE7.5.2钩子次序和目标安装未知" + ], + "zero_saved_nodes": [ + { + "class_type": "VHS_VideoInfoLoaded", + "effect": "VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。", + "evidence": [ + 19, + 20 + ], + "node_id": "9" + } + ] + }, + "io": { + "inputs": [], + "outputs": [] + }, + "materials": [], + "params": [ + { + "advanced": false, + "default": "1月11日-1.mp4", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "video", + "max": null, + "min": null, + "name": "video", + "node_id": "2", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "force_rate", + "max": null, + "min": null, + "name": "force_rate", + "node_id": "2", + "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": "2", + "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": "2", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_load_cap", + "max": null, + "min": null, + "name": "frame_load_cap", + "node_id": "2", + "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": "2", + "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": "2", + "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": "2", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 24, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "frame_rate", + "max": null, + "min": null, + "name": "frame_rate", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 0, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "loop_count", + "max": null, + "min": null, + "name": "loop_count", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": "AnimateDiff", + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "filename_prefix", + "max": null, + "min": null, + "name": "filename_prefix", + "node_id": "4", + "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": "4", + "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": "4", + "options": null, + "range_source": "unverified", + "type": "str", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": 12, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "crf", + "max": null, + "min": null, + "name": "crf", + "node_id": "4", + "options": null, + "range_source": "unverified", + "type": "int", + "unit": null, + "value_origin": "ui_named_widget" + }, + { + "advanced": false, + "default": true, + "default_source": "source_file", + "effect": "待节点定义及人工核对", + "field": "save_metadata", + "max": null, + "min": null, + "name": "save_metadata", + "node_id": "4", + "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": "4", + "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": "4", + "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": "4", + "options": null, + "range_source": "unverified", + "type": "bool", + "unit": null, + "value_origin": "ui_named_widget" + } + ], + "purpose": "视频姿态检测由 VHS_LoadVideo 接 DWPreprocessor,再由 VHS_VideoCombine 输出。", + "snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", + "source_links": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "scope": "" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "scope": "" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "scope": "" + } + ], + "source_nodes": [ + { + "class_type": "MarkdownNote", + "inputs": [], + "mode": 0, + "node_id": "8", + "source_values": [ + "## Custom Nodes\n\n- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" + ], + "title": "For Local Users" + }, + { + "class_type": "DWPreprocessor", + "inputs": [ + { + "label": "图像", + "link": 10, + "localized_name": "图像", + "name": "image", + "type": "IMAGE" + }, + { + "label": "检测手部", + "link": null, + "localized_name": "检测手部", + "name": "detect_hand", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "detect_hand" + } + }, + { + "label": "检测身体", + "link": null, + "localized_name": "检测身体", + "name": "detect_body", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "detect_body" + } + }, + { + "label": "检测面部", + "link": null, + "localized_name": "检测面部", + "name": "detect_face", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "detect_face" + } + }, + { + "label": "分辨率", + "link": null, + "localized_name": "分辨率", + "name": "resolution", + "shape": 7, + "type": "INT", + "widget": { + "name": "resolution" + } + }, + { + "label": "BBox检测", + "link": null, + "localized_name": "BBox检测", + "name": "bbox_detector", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "bbox_detector" + } + }, + { + "label": "姿态预估", + "link": null, + "localized_name": "姿态预估", + "name": "pose_estimator", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "pose_estimator" + } + }, + { + "label": "新超分辨率ControlNet缩放工具", + "link": null, + "localized_name": "新超分辨率ControlNet缩放工具", + "name": "scale_stick_for_xinsr_cn", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "scale_stick_for_xinsr_cn" + } + } + ], + "mode": 0, + "node_id": "1", + "source_values": [ + "enable", + "enable", + "enable", + 1024, + "yolox_l.onnx", + "dw-ll_ucoco_384_bs5.torchscript.pt", + "disable" + ], + "title": null + }, + { + "class_type": "VHS_LoadVideo", + "inputs": [ + { + "label": "批次管理", + "link": null, + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager" + }, + { + "link": null, + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE" + }, + { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + { + "label": "帧数读取上限", + "link": null, + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + } + }, + { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + } + ], + "mode": 0, + "node_id": "2", + "source_values": { + "custom_height": 0, + "custom_width": 0, + "force_rate": 0, + "format": "AnimateDiff", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "video": "1月11日-1.mp4", + "videopreview": { + "hidden": false, + "params": { + "custom_height": 0, + "custom_width": 0, + "filename": "1月11日-1.mp4", + "force_rate": 0, + "format": "video/mp4", + "frame_load_cap": 0, + "select_every_nth": 1, + "skip_first_frames": 0, + "type": "input" + }, + "paused": false + } + }, + "title": null + }, + { + "class_type": "VHS_VideoInfoLoaded", + "inputs": [ + { + "label": "视频信息", + "link": 11, + "localized_name": "视频信息", + "name": "video_info", + "type": "VHS_VIDEOINFO" + } + ], + "mode": 0, + "node_id": "9", + "source_values": {}, + "title": null + }, + { + "class_type": "VHS_VideoCombine", + "inputs": [ + { + "label": "图像", + "link": 4, + "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": 12, + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + } + }, + { + "label": "循环次数", + "link": null, + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + } + }, + { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + } + }, + { + "label": "Ping-Pong", + "link": null, + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + } + }, + { + "label": "保存到输出文件夹", + "link": null, + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + } + }, + { + "link": null, + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + } + }, + { + "link": null, + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + } + }, + { + "label": "保存元数据", + "link": null, + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + } + }, + { + "label": "修剪音频", + "link": null, + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + } + } + ], + "mode": 0, + "node_id": "4", + "source_values": { + "crf": 12, + "filename_prefix": "AnimateDiff", + "format": "video/h264-mp4", + "frame_rate": 24, + "loop_count": 0, + "pingpong": false, + "pix_fmt": "yuv420p", + "save_metadata": true, + "save_output": true, + "trim_to_audio": false, + "videopreview": { + "hidden": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "format": "video/h264-mp4", + "frame_rate": 24, + "fullpath": "E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4", + "subfolder": "", + "type": "output", + "workflow": "AnimateDiff_00006.png" + }, + "paused": false + } + }, + "title": null + } + ], + "source_notes": [ + { + "content": [ + "## Custom Nodes\n\n- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" + ], + "node_id": "8" + } + ], + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_review": { + "complete": false, + "evidence": { + "link_count": 4, + "model_references": [ + "dw-ll_ucoco_384_bs5.torchscript.pt", + "yolox_l.onnx" + ], + "named_value_count": 18, + "node_count": 5, + "note_node_ids": [ + "8" + ], + "unnamed_widget_node_ids": [ + "1" + ] + }, + "fourth_review": { + "batch": "HEL-892-fourth", + "classification_counts": { + "runtime_parameter": 16 + }, + "fields": [ + [ + "2", + "video" + ], + [ + "2", + "force_rate" + ], + [ + "2", + "custom_width" + ], + [ + "2", + "custom_height" + ], + [ + "2", + "skip_first_frames" + ], + [ + "2", + "select_every_nth" + ], + [ + "2", + "format" + ], + [ + "4", + "frame_rate" + ], + [ + "4", + "loop_count" + ], + [ + "4", + "filename_prefix" + ], + [ + "4", + "format" + ], + [ + "4", + "pix_fmt" + ], + [ + "4", + "crf" + ], + [ + "4", + "save_metadata" + ], + [ + "4", + "trim_to_audio" + ], + [ + "4", + "pingpong" + ] + ], + "operation_check": "本图新增16项具名字段局部审校;逐项按source_review.reviewed_named_fields的具体连线和operation_check核对;前端状态、仅现值和语义未知项不可当作已确认运行语义。", + "unknowns": [ + "全部单位、范围、调整效果待可信节点定义;本图未实跑", + "不更改原图矛盾;原有说明与此前审校完整保留" + ] + }, + "instruction": "加载视频节点 frame_load_cap=0,合成节点 frame_rate=24、save_output=true;数值是源控件现值,实际视频时长与帧率待环境核对。", + "purpose": "视频姿态检测由 VHS_LoadVideo 接 DWPreprocessor,再由 VHS_VideoCombine 输出。", + "reviewed_named_fields": [ + { + "field": "frame_load_cap", + "label": "读取帧数上限现值", + "node_id": "2", + "scope": "仅核对字段、现值及连线位置;单位/合法范围/调整效果未确认", + "source_value": 0 + }, + { + "field": "save_output", + "label": "是否保存输出现值", + "node_id": "4", + "scope": "仅核对字段、现值及连线位置;单位/合法范围/调整效果未确认", + "source_value": true + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "video", + "input_socket": { + "label": "视频", + "link": null, + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + } + }, + "label": "加载节点的视频素材选择;核对现值文件是否为本分支所需素材", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/video", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": "1月11日-1.mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "force_rate", + "input_socket": { + "label": "强制帧率", + "link": null, + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + } + }, + "label": "视频读取阶段的强制帧率控件;零值含义不能从源图确认", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/force_rate", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_width", + "input_socket": { + "label": "自定义宽度", + "link": null, + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + } + }, + "label": "素材加载阶段的自定义宽度控件;零值含义待节点定义", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/custom_width", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "custom_height", + "input_socket": { + "label": "自定义高度", + "link": null, + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + } + }, + "label": "素材加载阶段的自定义高度控件;零值含义待节点定义", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/custom_height", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "skip_first_frames", + "input_socket": { + "label": "跳过前X帧", + "link": null, + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + } + }, + "label": "视频读取的起始跳过控件;核对两路视频的起点是否匹配", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/skip_first_frames", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "select_every_nth", + "input_socket": { + "label": "间隔", + "link": null, + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + } + }, + "label": "素材读取的间隔选择控件;实际抽帧规则待定义", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/select_every_nth", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 1 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_LoadVideo", + "connections": { + "incoming": [], + "outgoing": [ + { + "link": [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + "pointer": "/links/1" + }, + { + "link": [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + "pointer": "/links/2" + } + ] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "素材加载的格式选择;AnimateDiff/LTXV是此加载字段现值,不能当作最终输出封装格式", + "mode": 0, + "node_id": "2", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/2/widgets_values/format", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": "AnimateDiff" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "frame_rate", + "input_socket": { + "label": "帧率", + "link": 12, + "localized_name": "帧率", + "name": "frame_rate", + "type": "FLOAT", + "widget": { + "name": "frame_rate" + } + }, + "label": "合成节点帧率设置;核对是否另有输入连线覆盖该控件", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。同名输入槽另接link=12;保存控件值不代表实际输入值,优先级待真实导出核对。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/frame_rate", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 24 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "loop_count", + "input_socket": { + "label": "循环次数", + "link": null, + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + } + }, + "label": "合成阶段的循环次数控件;零值约定和格式适用性待定义", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/loop_count", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 0 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "filename_prefix", + "input_socket": { + "label": "文件名前缀", + "link": null, + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + } + }, + "label": "输出命名前缀;核对输出分支和目录用途,实际落盘位置待环境核对", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/filename_prefix", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": "AnimateDiff" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "format", + "input_socket": { + "label": "格式", + "link": null, + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + } + }, + "label": "视频合成的编码格式选择;与pix_fmt及音轨连线配套核对", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/format", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": "video/h264-mp4" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "pix_fmt", + "input_socket": { + "link": null, + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + } + }, + "label": "视频合成的像素格式选择;与编码格式配套核对", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/pix_fmt", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": "yuv420p" + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "crf", + "input_socket": { + "link": null, + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + } + }, + "label": "视频合成编码设置;仅确认处于合成步骤,不给出质量范围或调整效果", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/crf", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": 12 + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "save_metadata", + "input_socket": { + "label": "保存元数据", + "link": null, + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + } + }, + "label": "视频合成的保存元数据开关;具体保存内容待插件定义", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/save_metadata", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": true + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "trim_to_audio", + "input_socket": { + "label": "修剪音频", + "link": null, + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + } + }, + "label": "视频合成的音频裁剪开关;先核对本节点是否接入音轨", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/trim_to_audio", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": false + }, + { + "category": "runtime_parameter", + "class_type": "VHS_VideoCombine", + "connections": { + "incoming": [ + { + "link": [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + "pointer": "/links/0" + }, + { + "link": [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ], + "pointer": "/links/3" + } + ], + "outgoing": [] + }, + "evidence_kind": "curated_source_use_with_mechanical_values_and_connections", + "field": "pingpong", + "input_socket": { + "label": "Ping-Pong", + "link": null, + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + } + }, + "label": "视频合成的Ping-Pong控件;具体帧序列规则待插件定义", + "mode": 0, + "node_id": "4", + "operation_check": "核对上述节点/槽位的素材、模型或提示词对应关系;缺连线不推断其为有效主路径。源未列本节点下游连线;是否输出节点及是否被提交仍须原前端导出核对。", + "scope": "源用途局部审校;单位/合法范围/调整效果均未确认", + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_pointer": "/nodes/4/widgets_values/pingpong", + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_title": null, + "source_value": false + } + ], + "scope": [ + "结构及用途局部审校" + ], + "source_sha": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "unconfirmed": [ + "逐参数语义、单位、范围和调整效果未定稿", + "UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出", + "模型/节点包位置、素材可用性及实际输出未在目标环境核对" + ] + }, + "source_review_sha": "de411154ca266bb478cd6956c82a8fdc68d69f75dab688cd548b1b8c9300e719", + "status": { + "doc_done": false, + "exec_verified": false, + "imported": true + }, + "steps": [ + "加载视频节点 frame_load_cap=0,合成节点 frame_rate=24、save_output=true;数值是源控件现值,实际视频时长与帧率待环境核对。", + "本图新增16项具名字段局部审校;逐项按source_review.reviewed_named_fields的具体连线和operation_check核对;前端状态、仅现值和语义未知项不可当作已确认运行语义。", + "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", + "保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。" + ], + "title": "openpose-video-姿态检测" +} diff --git a/docs/hel-892/openpose-document-evidence/audit-summary.json b/docs/hel-892/openpose-document-evidence/audit-summary.json new file mode 100644 index 00000000..dfd588aa --- /dev/null +++ b/docs/hel-892/openpose-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/openpose-document-evidence/backend-build.txt b/docs/hel-892/openpose-document-evidence/backend-build.txt new file mode 100644 index 00000000..ae5fa5cc --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/backend-build.txt @@ -0,0 +1,4 @@ +Building source distribution... +Building wheel from source distribution... +Successfully built calliope-backend/dist/calliope-1.5.8.tar.gz +Successfully built calliope-backend/dist/calliope-1.5.8-py3-none-any.whl diff --git a/docs/hel-892/openpose-document-evidence/boundaries.json b/docs/hel-892/openpose-document-evidence/boundaries.json new file mode 100644 index 00000000..e080c257 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/boundaries.json @@ -0,0 +1,728 @@ +{ + "base": "fec5ccab441dace8f489fd3eaacc68fa25c47f8e", + "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_fifteen_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/openpose-document-evidence/browser-check.txt b/docs/hel-892/openpose-document-evidence/browser-check.txt new file mode 100644 index 00000000..d6346b38 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/browser-check.txt @@ -0,0 +1,1721 @@ +PASS 16图421保存位置 +PASS 16图15源注释 +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 openpose-video-姿态检测展开流程 0 +PASS 1440 openpose-video-姿态检测展开流程 1 +PASS 1440 openpose-video-姿态检测展开流程 2 +PASS 1440 openpose-video-姿态检测展开流程 3 +PASS 1440 openpose-video-姿态检测展开流程 4 +PASS 1440 openpose-video-姿态检测展开流程 5 +PASS 1440 openpose-video-姿态检测展开流程 6 +PASS 1440 openpose-video-姿态检测展开流程 7 +PASS 1440 openpose-video-姿态检测展开流程 8 +PASS 1440 openpose-video-姿态检测展开流程 9 +PASS 1440 openpose-video-姿态检测展开流程 10 +PASS 1440 openpose-video-姿态检测展开流程 11 +PASS 1440 openpose-video-姿态检测展开流程 12 +PASS 1440 openpose-video-姿态检测展开流程 13 +PASS 1440 openpose-video-姿态检测展开流程 14 +PASS 1440 openpose-video-姿态检测展开流程 15 +PASS 1440 openpose-video-姿态检测展开流程 16 +PASS 1440 openpose-video-姿态检测展开流程 17 +PASS 1440 openpose-video-姿态检测展开流程 18 +PASS 1440 openpose-video-姿态检测展开流程 19 +PASS 1440 openpose-video-姿态检测展开流程 20 +PASS 1440 openpose-video-姿态检测展开流程 21 +PASS 1440 openpose-video-姿态检测展开流程 22 +PASS 1440 openpose-video-姿态检测展开流程 23 +PASS 1440 openpose-video-姿态检测展开流程 24 +PASS 1440 openpose-video-姿态检测展开流程 25 +PASS 1440 openpose-video-姿态检测展开流程 26 +PASS 1440 openpose-video-姿态检测展开流程 27 +PASS 1440 openpose-video-姿态检测展开流程 28 +PASS 1440 openpose-video-姿态检测展开流程 29 +PASS 1440 openpose-video-姿态检测展开流程 30 +PASS 1440 openpose-video-姿态检测展开流程 31 +PASS 1440 openpose-video-姿态检测展开流程 32 +PASS 1440 openpose-video-姿态检测展开流程 33 +PASS 1440 openpose-video-姿态检测展开流程 34 +PASS 1440 openpose-video-姿态检测展开流程 35 +PASS 1440 openpose-video-姿态检测展开流程 36 +PASS 1440 openpose-video-姿态检测展开流程 37 +PASS 1440 openpose-video-姿态检测展开流程 38 +PASS 1440 openpose-video-姿态检测原件摘要可展开 +PASS 1440 openpose-video-姿态检测版本 0 +PASS 1440 openpose-video-姿态检测版本 1 +PASS 1440 openpose-video-姿态检测版本 2 +PASS 1440 1.detect_hand键盘展开 +PASS 1440 1.detect_hand用途/单位/范围/来源条件 +PASS 1440 1.detect_hand精确保留现值 +PASS 1440 1.detect_hand指针默认折叠 +PASS 1440 1.detect_hand精确源码/类型/指针 +PASS 1440 1.detect_hand展开无溢出 +PASS 1440 1.detect_body键盘展开 +PASS 1440 1.detect_body用途/单位/范围/来源条件 +PASS 1440 1.detect_body精确保留现值 +PASS 1440 1.detect_body指针默认折叠 +PASS 1440 1.detect_body精确源码/类型/指针 +PASS 1440 1.detect_body展开无溢出 +PASS 1440 1.detect_face键盘展开 +PASS 1440 1.detect_face用途/单位/范围/来源条件 +PASS 1440 1.detect_face精确保留现值 +PASS 1440 1.detect_face指针默认折叠 +PASS 1440 1.detect_face精确源码/类型/指针 +PASS 1440 1.detect_face展开无溢出 +PASS 1440 1.resolution键盘展开 +PASS 1440 1.resolution用途/单位/范围/来源条件 +PASS 1440 1.resolution精确保留现值 +PASS 1440 1.resolution指针默认折叠 +PASS 1440 1.resolution精确源码/类型/指针 +PASS 1440 1.resolution展开无溢出 +PASS 1440 1.bbox_detector键盘展开 +PASS 1440 1.bbox_detector用途/单位/范围/来源条件 +PASS 1440 1.bbox_detector精确保留现值 +PASS 1440 1.bbox_detector指针默认折叠 +PASS 1440 1.bbox_detector精确源码/类型/指针 +PASS 1440 1.bbox_detector展开无溢出 +PASS 1440 1.pose_estimator键盘展开 +PASS 1440 1.pose_estimator用途/单位/范围/来源条件 +PASS 1440 1.pose_estimator精确保留现值 +PASS 1440 1.pose_estimator指针默认折叠 +PASS 1440 1.pose_estimator精确源码/类型/指针 +PASS 1440 1.pose_estimator展开无溢出 +PASS 1440 1.scale_stick_for_xinsr_cn键盘展开 +PASS 1440 1.scale_stick_for_xinsr_cn用途/单位/范围/来源条件 +PASS 1440 1.scale_stick_for_xinsr_cn精确保留现值 +PASS 1440 1.scale_stick_for_xinsr_cn指针默认折叠 +PASS 1440 1.scale_stick_for_xinsr_cn精确源码/类型/指针 +PASS 1440 1.scale_stick_for_xinsr_cn展开无溢出 +PASS 1440 2.video键盘展开 +PASS 1440 2.video用途/单位/范围/来源条件 +PASS 1440 2.video精确保留现值 +PASS 1440 2.video指针默认折叠 +PASS 1440 2.video精确源码/类型/指针 +PASS 1440 2.video展开无溢出 +PASS 1440 2.force_rate键盘展开 +PASS 1440 2.force_rate用途/单位/范围/来源条件 +PASS 1440 2.force_rate精确保留现值 +PASS 1440 2.force_rate指针默认折叠 +PASS 1440 2.force_rate精确源码/类型/指针 +PASS 1440 2.force_rate展开无溢出 +PASS 1440 2.custom_width键盘展开 +PASS 1440 2.custom_width用途/单位/范围/来源条件 +PASS 1440 2.custom_width精确保留现值 +PASS 1440 2.custom_width指针默认折叠 +PASS 1440 2.custom_width精确源码/类型/指针 +PASS 1440 2.custom_width展开无溢出 +PASS 1440 2.custom_height键盘展开 +PASS 1440 2.custom_height用途/单位/范围/来源条件 +PASS 1440 2.custom_height精确保留现值 +PASS 1440 2.custom_height指针默认折叠 +PASS 1440 2.custom_height精确源码/类型/指针 +PASS 1440 2.custom_height展开无溢出 +PASS 1440 2.frame_load_cap键盘展开 +PASS 1440 2.frame_load_cap用途/单位/范围/来源条件 +PASS 1440 2.frame_load_cap精确保留现值 +PASS 1440 2.frame_load_cap指针默认折叠 +PASS 1440 2.frame_load_cap精确源码/类型/指针 +PASS 1440 2.frame_load_cap展开无溢出 +PASS 1440 2.skip_first_frames键盘展开 +PASS 1440 2.skip_first_frames用途/单位/范围/来源条件 +PASS 1440 2.skip_first_frames精确保留现值 +PASS 1440 2.skip_first_frames指针默认折叠 +PASS 1440 2.skip_first_frames精确源码/类型/指针 +PASS 1440 2.skip_first_frames展开无溢出 +PASS 1440 2.select_every_nth键盘展开 +PASS 1440 2.select_every_nth用途/单位/范围/来源条件 +PASS 1440 2.select_every_nth精确保留现值 +PASS 1440 2.select_every_nth指针默认折叠 +PASS 1440 2.select_every_nth精确源码/类型/指针 +PASS 1440 2.select_every_nth展开无溢出 +PASS 1440 2.format键盘展开 +PASS 1440 2.format用途/单位/范围/来源条件 +PASS 1440 2.format精确保留现值 +PASS 1440 2.format指针默认折叠 +PASS 1440 2.format精确源码/类型/指针 +PASS 1440 2.format展开无溢出 +PASS 1440 2.videopreview键盘展开 +PASS 1440 2.videopreview用途/单位/范围/来源条件 +PASS 1440 2.videopreview精确保留现值 +PASS 1440 2.videopreview指针默认折叠 +PASS 1440 2.videopreview精确源码/类型/指针 +PASS 1440 2.videopreview展开无溢出 +PASS 1440 4.frame_rate键盘展开 +PASS 1440 4.frame_rate用途/单位/范围/来源条件 +PASS 1440 4.frame_rate精确保留现值 +PASS 1440 4.frame_rate指针默认折叠 +PASS 1440 4.frame_rate精确源码/类型/指针 +PASS 1440 4.frame_rate展开无溢出 +PASS 1440 4.loop_count键盘展开 +PASS 1440 4.loop_count用途/单位/范围/来源条件 +PASS 1440 4.loop_count精确保留现值 +PASS 1440 4.loop_count指针默认折叠 +PASS 1440 4.loop_count精确源码/类型/指针 +PASS 1440 4.loop_count展开无溢出 +PASS 1440 4.filename_prefix键盘展开 +PASS 1440 4.filename_prefix用途/单位/范围/来源条件 +PASS 1440 4.filename_prefix精确保留现值 +PASS 1440 4.filename_prefix指针默认折叠 +PASS 1440 4.filename_prefix精确源码/类型/指针 +PASS 1440 4.filename_prefix展开无溢出 +PASS 1440 4.format键盘展开 +PASS 1440 4.format用途/单位/范围/来源条件 +PASS 1440 4.format精确保留现值 +PASS 1440 4.format指针默认折叠 +PASS 1440 4.format精确源码/类型/指针 +PASS 1440 4.format展开无溢出 +PASS 1440 4.pix_fmt键盘展开 +PASS 1440 4.pix_fmt用途/单位/范围/来源条件 +PASS 1440 4.pix_fmt精确保留现值 +PASS 1440 4.pix_fmt指针默认折叠 +PASS 1440 4.pix_fmt精确源码/类型/指针 +PASS 1440 4.pix_fmt展开无溢出 +PASS 1440 4.crf键盘展开 +PASS 1440 4.crf用途/单位/范围/来源条件 +PASS 1440 4.crf精确保留现值 +PASS 1440 4.crf指针默认折叠 +PASS 1440 4.crf精确源码/类型/指针 +PASS 1440 4.crf展开无溢出 +PASS 1440 4.save_metadata键盘展开 +PASS 1440 4.save_metadata用途/单位/范围/来源条件 +PASS 1440 4.save_metadata精确保留现值 +PASS 1440 4.save_metadata指针默认折叠 +PASS 1440 4.save_metadata精确源码/类型/指针 +PASS 1440 4.save_metadata展开无溢出 +PASS 1440 4.trim_to_audio键盘展开 +PASS 1440 4.trim_to_audio用途/单位/范围/来源条件 +PASS 1440 4.trim_to_audio精确保留现值 +PASS 1440 4.trim_to_audio指针默认折叠 +PASS 1440 4.trim_to_audio精确源码/类型/指针 +PASS 1440 4.trim_to_audio展开无溢出 +PASS 1440 4.pingpong键盘展开 +PASS 1440 4.pingpong用途/单位/范围/来源条件 +PASS 1440 4.pingpong精确保留现值 +PASS 1440 4.pingpong指针默认折叠 +PASS 1440 4.pingpong精确源码/类型/指针 +PASS 1440 4.pingpong展开无溢出 +PASS 1440 4.save_output键盘展开 +PASS 1440 4.save_output用途/单位/范围/来源条件 +PASS 1440 4.save_output精确保留现值 +PASS 1440 4.save_output指针默认折叠 +PASS 1440 4.save_output精确源码/类型/指针 +PASS 1440 4.save_output展开无溢出 +PASS 1440 4.videopreview键盘展开 +PASS 1440 4.videopreview用途/单位/范围/来源条件 +PASS 1440 4.videopreview精确保留现值 +PASS 1440 4.videopreview指针默认折叠 +PASS 1440 4.videopreview精确源码/类型/指针 +PASS 1440 4.videopreview展开无溢出 +PASS 1440注释8全文 +PASS 1440注释8无溢出 +PASS 1440Tab焦点保留 +PASS 1440ShiftTab焦点保留 +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 sdpose_视频人物姿势骨架提取展开流程 0 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 1 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 2 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 3 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 4 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 5 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 6 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 7 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 8 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 9 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 10 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 11 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 12 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 13 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 14 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 15 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 16 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 17 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 18 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 19 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 20 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 21 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 22 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 23 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 24 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 25 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 26 +PASS 1440 sdpose_视频人物姿势骨架提取展开流程 27 +PASS 1440 sdpose_视频人物姿势骨架提取原件摘要可展开 +PASS 1440 sdpose_视频人物姿势骨架提取版本 0 +PASS 1440 sdpose_视频人物姿势骨架提取版本 1 +PASS 1440 sdpose_视频人物姿势骨架提取版本 2 +PASS 1440 sdpose_视频人物姿势骨架提取版本 3 +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 gemma4_提示词反推(图像视频音频)展开流程 0 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 1 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 2 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 3 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 4 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 5 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 6 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 7 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 8 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 9 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 10 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 11 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 12 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 13 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 14 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 15 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 16 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 17 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 18 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 19 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 20 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 21 +PASS 1440 gemma4_提示词反推(图像视频音频)展开流程 22 +PASS 1440 gemma4_提示词反推(图像视频音频)原件摘要可展开 +PASS 1440 gemma4_提示词反推(图像视频音频)版本 0 +PASS 1440 gemma4_提示词反推(图像视频音频)版本 1 +PASS 1440 gemma4_提示词反推(图像视频音频)版本 2 +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 图像合并成四宫格展开流程 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 图像合并成四宫格原件摘要可展开 +PASS 1440 图像合并成四宫格版本 0 +PASS 1440 图像合并成四宫格版本 1 +PASS 1440 图像合并成四宫格版本 2 +PASS 1440 图像合并成四宫格关闭归还焦点 +PASS 1440 图像分割-多宫格分割默认中文用途 +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 图像分割-多宫格分割原件摘要可展开 +PASS 1440 图像分割-多宫格分割版本 0 +PASS 1440 图像分割-多宫格分割版本 1 +PASS 1440 图像分割-多宫格分割版本 2 +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_图像编辑_背景移除展开流程 0 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 1 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 2 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 3 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 4 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 5 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 6 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 7 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 8 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 9 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 10 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 11 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 12 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 13 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 14 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 15 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 16 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 17 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 18 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 19 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 20 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 21 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 22 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 23 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 24 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 25 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 26 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 27 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 28 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 29 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 30 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 31 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 32 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 33 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 34 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 35 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 36 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 37 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 38 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 39 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 40 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 41 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 42 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 43 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 44 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 45 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 46 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 47 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 48 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 49 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 50 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 51 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 52 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 53 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 54 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 55 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 56 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 57 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 58 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 59 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 60 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 61 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 62 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 63 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 64 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 65 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 66 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 67 +PASS 1440 Qwen_image2.1_图像编辑_背景移除展开流程 68 +PASS 1440 Qwen_image2.1_图像编辑_背景移除原件摘要可展开 +PASS 1440 Qwen_image2.1_图像编辑_背景移除版本 0 +PASS 1440 Qwen_image2.1_图像编辑_背景移除版本 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_图像编辑_提示词增强展开流程 0 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 1 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 2 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 3 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 4 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 5 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 6 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 7 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 8 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 9 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 10 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 11 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 12 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 13 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 14 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 15 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 16 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 17 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 18 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 19 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 20 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 21 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 22 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 23 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 24 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 25 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 26 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 27 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 28 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 29 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 30 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 31 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 32 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 33 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 34 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 35 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 36 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 37 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 38 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 39 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 40 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 41 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 42 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 43 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 44 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 45 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 46 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 47 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 48 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 49 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 50 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 51 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 52 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 53 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 54 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 55 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 56 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 57 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 58 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 59 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 60 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 61 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 62 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 63 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 64 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 65 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 66 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 67 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 68 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 69 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 70 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 71 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 72 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 73 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 74 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 75 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 76 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 77 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 78 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 79 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 80 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 81 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 82 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 83 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 84 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 85 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 86 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 87 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 88 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 89 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 90 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 91 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 92 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 93 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 94 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 95 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强展开流程 96 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强原件摘要可展开 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强版本 0 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强版本 1 +PASS 1440 Qwen_image2.1_图像编辑_提示词增强版本 2 +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_文生图_提示词增强展开流程 0 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 1 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 2 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 3 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 4 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 5 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 6 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 7 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 8 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 9 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 10 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 11 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 12 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 13 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 14 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 15 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 16 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 17 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 18 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 19 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 20 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 21 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 22 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 23 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 24 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 25 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 26 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 27 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 28 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 29 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 30 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 31 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 32 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 33 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 34 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 35 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 36 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 37 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 38 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 39 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 40 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 41 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 42 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 43 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 44 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 45 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 46 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 47 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 48 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 49 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 50 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 51 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 52 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 53 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 54 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 55 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 56 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 57 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 58 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 59 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 60 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 61 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 62 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 63 +PASS 1440 Qwen_image2.1_文生图_提示词增强展开流程 64 +PASS 1440 Qwen_image2.1_文生图_提示词增强原件摘要可展开 +PASS 1440 Qwen_image2.1_文生图_提示词增强版本 0 +PASS 1440 Qwen_image2.1_文生图_提示词增强版本 1 +PASS 1440 Qwen_image2.1_文生图_提示词增强版本 2 +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 ControlNet_aux_常用样例展开流程 0 +PASS 1440 ControlNet_aux_常用样例展开流程 1 +PASS 1440 ControlNet_aux_常用样例展开流程 2 +PASS 1440 ControlNet_aux_常用样例展开流程 3 +PASS 1440 ControlNet_aux_常用样例展开流程 4 +PASS 1440 ControlNet_aux_常用样例展开流程 5 +PASS 1440 ControlNet_aux_常用样例展开流程 6 +PASS 1440 ControlNet_aux_常用样例展开流程 7 +PASS 1440 ControlNet_aux_常用样例展开流程 8 +PASS 1440 ControlNet_aux_常用样例展开流程 9 +PASS 1440 ControlNet_aux_常用样例展开流程 10 +PASS 1440 ControlNet_aux_常用样例展开流程 11 +PASS 1440 ControlNet_aux_常用样例展开流程 12 +PASS 1440 ControlNet_aux_常用样例展开流程 13 +PASS 1440 ControlNet_aux_常用样例展开流程 14 +PASS 1440 ControlNet_aux_常用样例展开流程 15 +PASS 1440 ControlNet_aux_常用样例展开流程 16 +PASS 1440 ControlNet_aux_常用样例展开流程 17 +PASS 1440 ControlNet_aux_常用样例展开流程 18 +PASS 1440 ControlNet_aux_常用样例展开流程 19 +PASS 1440 ControlNet_aux_常用样例展开流程 20 +PASS 1440 ControlNet_aux_常用样例展开流程 21 +PASS 1440 ControlNet_aux_常用样例展开流程 22 +PASS 1440 ControlNet_aux_常用样例展开流程 23 +PASS 1440 ControlNet_aux_常用样例展开流程 24 +PASS 1440 ControlNet_aux_常用样例展开流程 25 +PASS 1440 ControlNet_aux_常用样例展开流程 26 +PASS 1440 ControlNet_aux_常用样例展开流程 27 +PASS 1440 ControlNet_aux_常用样例展开流程 28 +PASS 1440 ControlNet_aux_常用样例展开流程 29 +PASS 1440 ControlNet_aux_常用样例展开流程 30 +PASS 1440 ControlNet_aux_常用样例原件摘要可展开 +PASS 1440 ControlNet_aux_常用样例版本 0 +PASS 1440 ControlNet_aux_常用样例版本 1 +PASS 1440 ControlNet_aux_常用样例版本 2 +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-语音转文字展开流程 0 +PASS 1440 Qwen3-ASR-语音转文字展开流程 1 +PASS 1440 Qwen3-ASR-语音转文字展开流程 2 +PASS 1440 Qwen3-ASR-语音转文字展开流程 3 +PASS 1440 Qwen3-ASR-语音转文字展开流程 4 +PASS 1440 Qwen3-ASR-语音转文字原件摘要可展开 +PASS 1440 Qwen3-ASR-语音转文字版本 0 +PASS 1440 Qwen3-ASR-语音转文字版本 1 +PASS 1440 Qwen3-ASR-语音转文字版本 2 +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 Qwen3-ASR-Subtitle语音转字幕展开流程 0 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕展开流程 1 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕展开流程 2 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕展开流程 3 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕展开流程 4 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕展开流程 5 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕原件摘要可展开 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕版本 0 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕版本 1 +PASS 1440 Qwen3-ASR-Subtitle语音转字幕版本 2 +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 Minimax-H3提示词增强展开流程 0 +PASS 1440 Minimax-H3提示词增强展开流程 1 +PASS 1440 Minimax-H3提示词增强展开流程 2 +PASS 1440 Minimax-H3提示词增强展开流程 3 +PASS 1440 Minimax-H3提示词增强原件摘要可展开 +PASS 1440 Minimax-H3提示词增强版本 0 +PASS 1440 Minimax-H3提示词增强版本 1 +PASS 1440 Minimax-H3提示词增强版本 2 +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 音频转MP3格式展开流程 0 +PASS 1440 音频转MP3格式展开流程 1 +PASS 1440 音频转MP3格式展开流程 2 +PASS 1440 音频转MP3格式展开流程 3 +PASS 1440 音频转MP3格式展开流程 4 +PASS 1440 音频转MP3格式原件摘要可展开 +PASS 1440 音频转MP3格式版本 0 +PASS 1440 音频转MP3格式版本 1 +PASS 1440 音频转MP3格式版本 2 +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 音频人声分离展开流程 0 +PASS 1440 音频人声分离展开流程 1 +PASS 1440 音频人声分离展开流程 2 +PASS 1440 音频人声分离展开流程 3 +PASS 1440 音频人声分离展开流程 4 +PASS 1440 音频人声分离原件摘要可展开 +PASS 1440 音频人声分离版本 0 +PASS 1440 音频人声分离版本 1 +PASS 1440 音频人声分离版本 2 +PASS 1440 音频人声分离关闭归还焦点 +PASS 1440 视频-音频分离默认中文用途 +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 视频-音频分离原件摘要可展开 +PASS 1440 视频-音频分离版本 0 +PASS 1440 视频-音频分离版本 1 +PASS 1440 视频-音频分离版本 2 +PASS 1440 视频-音频分离关闭归还焦点 +PASS 1440 图像嵌入文字描述默认中文用途 +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 图像嵌入文字描述原件摘要可展开 +PASS 1440 图像嵌入文字描述版本 0 +PASS 1440 图像嵌入文字描述版本 1 +PASS 1440 图像嵌入文字描述版本 2 +PASS 1440 图像嵌入文字描述关闭归还焦点 +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 openpose-video-姿态检测展开流程 0 +PASS 390 openpose-video-姿态检测展开流程 1 +PASS 390 openpose-video-姿态检测展开流程 2 +PASS 390 openpose-video-姿态检测展开流程 3 +PASS 390 openpose-video-姿态检测展开流程 4 +PASS 390 openpose-video-姿态检测展开流程 5 +PASS 390 openpose-video-姿态检测展开流程 6 +PASS 390 openpose-video-姿态检测展开流程 7 +PASS 390 openpose-video-姿态检测展开流程 8 +PASS 390 openpose-video-姿态检测展开流程 9 +PASS 390 openpose-video-姿态检测展开流程 10 +PASS 390 openpose-video-姿态检测展开流程 11 +PASS 390 openpose-video-姿态检测展开流程 12 +PASS 390 openpose-video-姿态检测展开流程 13 +PASS 390 openpose-video-姿态检测展开流程 14 +PASS 390 openpose-video-姿态检测展开流程 15 +PASS 390 openpose-video-姿态检测展开流程 16 +PASS 390 openpose-video-姿态检测展开流程 17 +PASS 390 openpose-video-姿态检测展开流程 18 +PASS 390 openpose-video-姿态检测展开流程 19 +PASS 390 openpose-video-姿态检测展开流程 20 +PASS 390 openpose-video-姿态检测展开流程 21 +PASS 390 openpose-video-姿态检测展开流程 22 +PASS 390 openpose-video-姿态检测展开流程 23 +PASS 390 openpose-video-姿态检测展开流程 24 +PASS 390 openpose-video-姿态检测展开流程 25 +PASS 390 openpose-video-姿态检测展开流程 26 +PASS 390 openpose-video-姿态检测展开流程 27 +PASS 390 openpose-video-姿态检测展开流程 28 +PASS 390 openpose-video-姿态检测展开流程 29 +PASS 390 openpose-video-姿态检测展开流程 30 +PASS 390 openpose-video-姿态检测展开流程 31 +PASS 390 openpose-video-姿态检测展开流程 32 +PASS 390 openpose-video-姿态检测展开流程 33 +PASS 390 openpose-video-姿态检测展开流程 34 +PASS 390 openpose-video-姿态检测展开流程 35 +PASS 390 openpose-video-姿态检测展开流程 36 +PASS 390 openpose-video-姿态检测展开流程 37 +PASS 390 openpose-video-姿态检测展开流程 38 +PASS 390 openpose-video-姿态检测原件摘要可展开 +PASS 390 openpose-video-姿态检测版本 0 +PASS 390 openpose-video-姿态检测版本 1 +PASS 390 openpose-video-姿态检测版本 2 +PASS 390 1.detect_hand键盘展开 +PASS 390 1.detect_hand用途/单位/范围/来源条件 +PASS 390 1.detect_hand精确保留现值 +PASS 390 1.detect_hand指针默认折叠 +PASS 390 1.detect_hand精确源码/类型/指针 +PASS 390 1.detect_hand展开无溢出 +PASS 390 1.detect_body键盘展开 +PASS 390 1.detect_body用途/单位/范围/来源条件 +PASS 390 1.detect_body精确保留现值 +PASS 390 1.detect_body指针默认折叠 +PASS 390 1.detect_body精确源码/类型/指针 +PASS 390 1.detect_body展开无溢出 +PASS 390 1.detect_face键盘展开 +PASS 390 1.detect_face用途/单位/范围/来源条件 +PASS 390 1.detect_face精确保留现值 +PASS 390 1.detect_face指针默认折叠 +PASS 390 1.detect_face精确源码/类型/指针 +PASS 390 1.detect_face展开无溢出 +PASS 390 1.resolution键盘展开 +PASS 390 1.resolution用途/单位/范围/来源条件 +PASS 390 1.resolution精确保留现值 +PASS 390 1.resolution指针默认折叠 +PASS 390 1.resolution精确源码/类型/指针 +PASS 390 1.resolution展开无溢出 +PASS 390 1.bbox_detector键盘展开 +PASS 390 1.bbox_detector用途/单位/范围/来源条件 +PASS 390 1.bbox_detector精确保留现值 +PASS 390 1.bbox_detector指针默认折叠 +PASS 390 1.bbox_detector精确源码/类型/指针 +PASS 390 1.bbox_detector展开无溢出 +PASS 390 1.pose_estimator键盘展开 +PASS 390 1.pose_estimator用途/单位/范围/来源条件 +PASS 390 1.pose_estimator精确保留现值 +PASS 390 1.pose_estimator指针默认折叠 +PASS 390 1.pose_estimator精确源码/类型/指针 +PASS 390 1.pose_estimator展开无溢出 +PASS 390 1.scale_stick_for_xinsr_cn键盘展开 +PASS 390 1.scale_stick_for_xinsr_cn用途/单位/范围/来源条件 +PASS 390 1.scale_stick_for_xinsr_cn精确保留现值 +PASS 390 1.scale_stick_for_xinsr_cn指针默认折叠 +PASS 390 1.scale_stick_for_xinsr_cn精确源码/类型/指针 +PASS 390 1.scale_stick_for_xinsr_cn展开无溢出 +PASS 390 2.video键盘展开 +PASS 390 2.video用途/单位/范围/来源条件 +PASS 390 2.video精确保留现值 +PASS 390 2.video指针默认折叠 +PASS 390 2.video精确源码/类型/指针 +PASS 390 2.video展开无溢出 +PASS 390 2.force_rate键盘展开 +PASS 390 2.force_rate用途/单位/范围/来源条件 +PASS 390 2.force_rate精确保留现值 +PASS 390 2.force_rate指针默认折叠 +PASS 390 2.force_rate精确源码/类型/指针 +PASS 390 2.force_rate展开无溢出 +PASS 390 2.custom_width键盘展开 +PASS 390 2.custom_width用途/单位/范围/来源条件 +PASS 390 2.custom_width精确保留现值 +PASS 390 2.custom_width指针默认折叠 +PASS 390 2.custom_width精确源码/类型/指针 +PASS 390 2.custom_width展开无溢出 +PASS 390 2.custom_height键盘展开 +PASS 390 2.custom_height用途/单位/范围/来源条件 +PASS 390 2.custom_height精确保留现值 +PASS 390 2.custom_height指针默认折叠 +PASS 390 2.custom_height精确源码/类型/指针 +PASS 390 2.custom_height展开无溢出 +PASS 390 2.frame_load_cap键盘展开 +PASS 390 2.frame_load_cap用途/单位/范围/来源条件 +PASS 390 2.frame_load_cap精确保留现值 +PASS 390 2.frame_load_cap指针默认折叠 +PASS 390 2.frame_load_cap精确源码/类型/指针 +PASS 390 2.frame_load_cap展开无溢出 +PASS 390 2.skip_first_frames键盘展开 +PASS 390 2.skip_first_frames用途/单位/范围/来源条件 +PASS 390 2.skip_first_frames精确保留现值 +PASS 390 2.skip_first_frames指针默认折叠 +PASS 390 2.skip_first_frames精确源码/类型/指针 +PASS 390 2.skip_first_frames展开无溢出 +PASS 390 2.select_every_nth键盘展开 +PASS 390 2.select_every_nth用途/单位/范围/来源条件 +PASS 390 2.select_every_nth精确保留现值 +PASS 390 2.select_every_nth指针默认折叠 +PASS 390 2.select_every_nth精确源码/类型/指针 +PASS 390 2.select_every_nth展开无溢出 +PASS 390 2.format键盘展开 +PASS 390 2.format用途/单位/范围/来源条件 +PASS 390 2.format精确保留现值 +PASS 390 2.format指针默认折叠 +PASS 390 2.format精确源码/类型/指针 +PASS 390 2.format展开无溢出 +PASS 390 2.videopreview键盘展开 +PASS 390 2.videopreview用途/单位/范围/来源条件 +PASS 390 2.videopreview精确保留现值 +PASS 390 2.videopreview指针默认折叠 +PASS 390 2.videopreview精确源码/类型/指针 +PASS 390 2.videopreview展开无溢出 +PASS 390 4.frame_rate键盘展开 +PASS 390 4.frame_rate用途/单位/范围/来源条件 +PASS 390 4.frame_rate精确保留现值 +PASS 390 4.frame_rate指针默认折叠 +PASS 390 4.frame_rate精确源码/类型/指针 +PASS 390 4.frame_rate展开无溢出 +PASS 390 4.loop_count键盘展开 +PASS 390 4.loop_count用途/单位/范围/来源条件 +PASS 390 4.loop_count精确保留现值 +PASS 390 4.loop_count指针默认折叠 +PASS 390 4.loop_count精确源码/类型/指针 +PASS 390 4.loop_count展开无溢出 +PASS 390 4.filename_prefix键盘展开 +PASS 390 4.filename_prefix用途/单位/范围/来源条件 +PASS 390 4.filename_prefix精确保留现值 +PASS 390 4.filename_prefix指针默认折叠 +PASS 390 4.filename_prefix精确源码/类型/指针 +PASS 390 4.filename_prefix展开无溢出 +PASS 390 4.format键盘展开 +PASS 390 4.format用途/单位/范围/来源条件 +PASS 390 4.format精确保留现值 +PASS 390 4.format指针默认折叠 +PASS 390 4.format精确源码/类型/指针 +PASS 390 4.format展开无溢出 +PASS 390 4.pix_fmt键盘展开 +PASS 390 4.pix_fmt用途/单位/范围/来源条件 +PASS 390 4.pix_fmt精确保留现值 +PASS 390 4.pix_fmt指针默认折叠 +PASS 390 4.pix_fmt精确源码/类型/指针 +PASS 390 4.pix_fmt展开无溢出 +PASS 390 4.crf键盘展开 +PASS 390 4.crf用途/单位/范围/来源条件 +PASS 390 4.crf精确保留现值 +PASS 390 4.crf指针默认折叠 +PASS 390 4.crf精确源码/类型/指针 +PASS 390 4.crf展开无溢出 +PASS 390 4.save_metadata键盘展开 +PASS 390 4.save_metadata用途/单位/范围/来源条件 +PASS 390 4.save_metadata精确保留现值 +PASS 390 4.save_metadata指针默认折叠 +PASS 390 4.save_metadata精确源码/类型/指针 +PASS 390 4.save_metadata展开无溢出 +PASS 390 4.trim_to_audio键盘展开 +PASS 390 4.trim_to_audio用途/单位/范围/来源条件 +PASS 390 4.trim_to_audio精确保留现值 +PASS 390 4.trim_to_audio指针默认折叠 +PASS 390 4.trim_to_audio精确源码/类型/指针 +PASS 390 4.trim_to_audio展开无溢出 +PASS 390 4.pingpong键盘展开 +PASS 390 4.pingpong用途/单位/范围/来源条件 +PASS 390 4.pingpong精确保留现值 +PASS 390 4.pingpong指针默认折叠 +PASS 390 4.pingpong精确源码/类型/指针 +PASS 390 4.pingpong展开无溢出 +PASS 390 4.save_output键盘展开 +PASS 390 4.save_output用途/单位/范围/来源条件 +PASS 390 4.save_output精确保留现值 +PASS 390 4.save_output指针默认折叠 +PASS 390 4.save_output精确源码/类型/指针 +PASS 390 4.save_output展开无溢出 +PASS 390 4.videopreview键盘展开 +PASS 390 4.videopreview用途/单位/范围/来源条件 +PASS 390 4.videopreview精确保留现值 +PASS 390 4.videopreview指针默认折叠 +PASS 390 4.videopreview精确源码/类型/指针 +PASS 390 4.videopreview展开无溢出 +PASS 390注释8全文 +PASS 390注释8无溢出 +PASS 390Tab焦点保留 +PASS 390ShiftTab焦点保留 +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 sdpose_视频人物姿势骨架提取展开流程 0 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 1 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 2 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 3 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 4 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 5 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 6 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 7 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 8 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 9 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 10 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 11 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 12 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 13 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 14 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 15 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 16 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 17 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 18 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 19 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 20 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 21 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 22 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 23 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 24 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 25 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 26 +PASS 390 sdpose_视频人物姿势骨架提取展开流程 27 +PASS 390 sdpose_视频人物姿势骨架提取原件摘要可展开 +PASS 390 sdpose_视频人物姿势骨架提取版本 0 +PASS 390 sdpose_视频人物姿势骨架提取版本 1 +PASS 390 sdpose_视频人物姿势骨架提取版本 2 +PASS 390 sdpose_视频人物姿势骨架提取版本 3 +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 gemma4_提示词反推(图像视频音频)展开流程 0 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 1 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 2 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 3 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 4 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 5 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 6 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 7 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 8 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 9 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 10 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 11 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 12 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 13 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 14 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 15 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 16 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 17 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 18 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 19 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 20 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 21 +PASS 390 gemma4_提示词反推(图像视频音频)展开流程 22 +PASS 390 gemma4_提示词反推(图像视频音频)原件摘要可展开 +PASS 390 gemma4_提示词反推(图像视频音频)版本 0 +PASS 390 gemma4_提示词反推(图像视频音频)版本 1 +PASS 390 gemma4_提示词反推(图像视频音频)版本 2 +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 图像合并成四宫格展开流程 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 图像合并成四宫格原件摘要可展开 +PASS 390 图像合并成四宫格版本 0 +PASS 390 图像合并成四宫格版本 1 +PASS 390 图像合并成四宫格版本 2 +PASS 390 图像合并成四宫格关闭归还焦点 +PASS 390 图像分割-多宫格分割默认中文用途 +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 图像分割-多宫格分割原件摘要可展开 +PASS 390 图像分割-多宫格分割版本 0 +PASS 390 图像分割-多宫格分割版本 1 +PASS 390 图像分割-多宫格分割版本 2 +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_图像编辑_背景移除展开流程 0 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 1 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 2 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 3 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 4 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 5 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 6 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 7 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 8 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 9 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 10 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 11 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 12 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 13 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 14 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 15 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 16 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 17 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 18 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 19 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 20 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 21 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 22 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 23 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 24 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 25 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 26 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 27 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 28 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 29 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 30 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 31 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 32 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 33 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 34 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 35 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 36 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 37 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 38 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 39 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 40 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 41 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 42 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 43 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 44 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 45 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 46 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 47 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 48 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 49 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 50 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 51 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 52 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 53 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 54 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 55 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 56 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 57 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 58 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 59 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 60 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 61 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 62 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 63 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 64 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 65 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 66 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 67 +PASS 390 Qwen_image2.1_图像编辑_背景移除展开流程 68 +PASS 390 Qwen_image2.1_图像编辑_背景移除原件摘要可展开 +PASS 390 Qwen_image2.1_图像编辑_背景移除版本 0 +PASS 390 Qwen_image2.1_图像编辑_背景移除版本 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_图像编辑_提示词增强展开流程 0 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 1 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 2 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 3 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 4 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 5 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 6 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 7 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 8 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 9 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 10 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 11 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 12 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 13 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 14 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 15 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 16 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 17 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 18 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 19 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 20 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 21 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 22 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 23 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 24 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 25 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 26 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 27 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 28 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 29 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 30 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 31 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 32 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 33 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 34 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 35 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 36 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 37 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 38 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 39 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 40 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 41 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 42 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 43 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 44 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 45 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 46 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 47 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 48 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 49 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 50 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 51 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 52 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 53 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 54 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 55 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 56 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 57 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 58 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 59 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 60 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 61 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 62 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 63 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 64 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 65 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 66 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 67 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 68 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 69 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 70 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 71 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 72 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 73 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 74 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 75 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 76 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 77 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 78 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 79 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 80 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 81 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 82 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 83 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 84 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 85 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 86 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 87 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 88 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 89 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 90 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 91 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 92 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 93 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 94 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 95 +PASS 390 Qwen_image2.1_图像编辑_提示词增强展开流程 96 +PASS 390 Qwen_image2.1_图像编辑_提示词增强原件摘要可展开 +PASS 390 Qwen_image2.1_图像编辑_提示词增强版本 0 +PASS 390 Qwen_image2.1_图像编辑_提示词增强版本 1 +PASS 390 Qwen_image2.1_图像编辑_提示词增强版本 2 +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_文生图_提示词增强展开流程 0 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 1 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 2 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 3 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 4 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 5 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 6 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 7 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 8 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 9 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 10 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 11 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 12 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 13 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 14 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 15 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 16 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 17 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 18 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 19 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 20 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 21 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 22 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 23 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 24 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 25 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 26 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 27 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 28 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 29 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 30 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 31 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 32 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 33 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 34 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 35 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 36 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 37 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 38 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 39 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 40 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 41 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 42 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 43 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 44 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 45 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 46 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 47 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 48 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 49 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 50 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 51 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 52 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 53 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 54 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 55 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 56 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 57 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 58 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 59 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 60 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 61 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 62 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 63 +PASS 390 Qwen_image2.1_文生图_提示词增强展开流程 64 +PASS 390 Qwen_image2.1_文生图_提示词增强原件摘要可展开 +PASS 390 Qwen_image2.1_文生图_提示词增强版本 0 +PASS 390 Qwen_image2.1_文生图_提示词增强版本 1 +PASS 390 Qwen_image2.1_文生图_提示词增强版本 2 +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 ControlNet_aux_常用样例展开流程 0 +PASS 390 ControlNet_aux_常用样例展开流程 1 +PASS 390 ControlNet_aux_常用样例展开流程 2 +PASS 390 ControlNet_aux_常用样例展开流程 3 +PASS 390 ControlNet_aux_常用样例展开流程 4 +PASS 390 ControlNet_aux_常用样例展开流程 5 +PASS 390 ControlNet_aux_常用样例展开流程 6 +PASS 390 ControlNet_aux_常用样例展开流程 7 +PASS 390 ControlNet_aux_常用样例展开流程 8 +PASS 390 ControlNet_aux_常用样例展开流程 9 +PASS 390 ControlNet_aux_常用样例展开流程 10 +PASS 390 ControlNet_aux_常用样例展开流程 11 +PASS 390 ControlNet_aux_常用样例展开流程 12 +PASS 390 ControlNet_aux_常用样例展开流程 13 +PASS 390 ControlNet_aux_常用样例展开流程 14 +PASS 390 ControlNet_aux_常用样例展开流程 15 +PASS 390 ControlNet_aux_常用样例展开流程 16 +PASS 390 ControlNet_aux_常用样例展开流程 17 +PASS 390 ControlNet_aux_常用样例展开流程 18 +PASS 390 ControlNet_aux_常用样例展开流程 19 +PASS 390 ControlNet_aux_常用样例展开流程 20 +PASS 390 ControlNet_aux_常用样例展开流程 21 +PASS 390 ControlNet_aux_常用样例展开流程 22 +PASS 390 ControlNet_aux_常用样例展开流程 23 +PASS 390 ControlNet_aux_常用样例展开流程 24 +PASS 390 ControlNet_aux_常用样例展开流程 25 +PASS 390 ControlNet_aux_常用样例展开流程 26 +PASS 390 ControlNet_aux_常用样例展开流程 27 +PASS 390 ControlNet_aux_常用样例展开流程 28 +PASS 390 ControlNet_aux_常用样例展开流程 29 +PASS 390 ControlNet_aux_常用样例展开流程 30 +PASS 390 ControlNet_aux_常用样例原件摘要可展开 +PASS 390 ControlNet_aux_常用样例版本 0 +PASS 390 ControlNet_aux_常用样例版本 1 +PASS 390 ControlNet_aux_常用样例版本 2 +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-语音转文字展开流程 0 +PASS 390 Qwen3-ASR-语音转文字展开流程 1 +PASS 390 Qwen3-ASR-语音转文字展开流程 2 +PASS 390 Qwen3-ASR-语音转文字展开流程 3 +PASS 390 Qwen3-ASR-语音转文字展开流程 4 +PASS 390 Qwen3-ASR-语音转文字原件摘要可展开 +PASS 390 Qwen3-ASR-语音转文字版本 0 +PASS 390 Qwen3-ASR-语音转文字版本 1 +PASS 390 Qwen3-ASR-语音转文字版本 2 +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 Qwen3-ASR-Subtitle语音转字幕展开流程 0 +PASS 390 Qwen3-ASR-Subtitle语音转字幕展开流程 1 +PASS 390 Qwen3-ASR-Subtitle语音转字幕展开流程 2 +PASS 390 Qwen3-ASR-Subtitle语音转字幕展开流程 3 +PASS 390 Qwen3-ASR-Subtitle语音转字幕展开流程 4 +PASS 390 Qwen3-ASR-Subtitle语音转字幕展开流程 5 +PASS 390 Qwen3-ASR-Subtitle语音转字幕原件摘要可展开 +PASS 390 Qwen3-ASR-Subtitle语音转字幕版本 0 +PASS 390 Qwen3-ASR-Subtitle语音转字幕版本 1 +PASS 390 Qwen3-ASR-Subtitle语音转字幕版本 2 +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 Minimax-H3提示词增强展开流程 0 +PASS 390 Minimax-H3提示词增强展开流程 1 +PASS 390 Minimax-H3提示词增强展开流程 2 +PASS 390 Minimax-H3提示词增强展开流程 3 +PASS 390 Minimax-H3提示词增强原件摘要可展开 +PASS 390 Minimax-H3提示词增强版本 0 +PASS 390 Minimax-H3提示词增强版本 1 +PASS 390 Minimax-H3提示词增强版本 2 +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 音频转MP3格式展开流程 0 +PASS 390 音频转MP3格式展开流程 1 +PASS 390 音频转MP3格式展开流程 2 +PASS 390 音频转MP3格式展开流程 3 +PASS 390 音频转MP3格式展开流程 4 +PASS 390 音频转MP3格式原件摘要可展开 +PASS 390 音频转MP3格式版本 0 +PASS 390 音频转MP3格式版本 1 +PASS 390 音频转MP3格式版本 2 +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 音频人声分离展开流程 0 +PASS 390 音频人声分离展开流程 1 +PASS 390 音频人声分离展开流程 2 +PASS 390 音频人声分离展开流程 3 +PASS 390 音频人声分离展开流程 4 +PASS 390 音频人声分离原件摘要可展开 +PASS 390 音频人声分离版本 0 +PASS 390 音频人声分离版本 1 +PASS 390 音频人声分离版本 2 +PASS 390 音频人声分离关闭归还焦点 +PASS 390 视频-音频分离默认中文用途 +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 视频-音频分离原件摘要可展开 +PASS 390 视频-音频分离版本 0 +PASS 390 视频-音频分离版本 1 +PASS 390 视频-音频分离版本 2 +PASS 390 视频-音频分离关闭归还焦点 +PASS 390 图像嵌入文字描述默认中文用途 +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 图像嵌入文字描述原件摘要可展开 +PASS 390 图像嵌入文字描述版本 0 +PASS 390 图像嵌入文字描述版本 1 +PASS 390 图像嵌入文字描述版本 2 +PASS 390 图像嵌入文字描述关闭归还焦点 +PASS 旧/空说明回退 旧工作流回退(隔离测试夹具) +PASS 旧/空说明回退 空说明回退(隔离测试夹具) +PASS 缺摘要自然中文回退 +PASS 回退不暴露undefined +PASS 错绑定提示明确且不展示旧字段 +PASS 回退不暴露undefined +PASS 摘要HTML仅纯文本不创建图像或请求 +PASS 回退不暴露undefined +PASS 迟到OpenPose响应不覆盖SDPose图摘要/18字段 +PASS GET失败显示重试 +PASS 读取失败隐藏旧摘要 +PASS 重试恢复摘要 +PASS 无脚本错误或禁止请求 [] +PASS 全程本地GET无写/生成/目标/历史预览请求 +All owned browser services stopped. diff --git a/docs/hel-892/openpose-document-evidence/browser-results.json b/docs/hel-892/openpose-document-evidence/browser-results.json new file mode 100644 index 00000000..a524ca21 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/browser-results.json @@ -0,0 +1,2017 @@ +{ + "assertion_count": 1720, + "assertionGroups": { + "aggregate": 2, + "new_openpose": 444, + "old_fifteen": 1260, + "shared_regressions": 14 + }, + "checks": [ + "16图421保存位置", + "16图15源注释", + "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 openpose-video-姿态检测展开流程 0", + "1440 openpose-video-姿态检测展开流程 1", + "1440 openpose-video-姿态检测展开流程 2", + "1440 openpose-video-姿态检测展开流程 3", + "1440 openpose-video-姿态检测展开流程 4", + "1440 openpose-video-姿态检测展开流程 5", + "1440 openpose-video-姿态检测展开流程 6", + "1440 openpose-video-姿态检测展开流程 7", + "1440 openpose-video-姿态检测展开流程 8", + "1440 openpose-video-姿态检测展开流程 9", + "1440 openpose-video-姿态检测展开流程 10", + "1440 openpose-video-姿态检测展开流程 11", + "1440 openpose-video-姿态检测展开流程 12", + "1440 openpose-video-姿态检测展开流程 13", + "1440 openpose-video-姿态检测展开流程 14", + "1440 openpose-video-姿态检测展开流程 15", + "1440 openpose-video-姿态检测展开流程 16", + "1440 openpose-video-姿态检测展开流程 17", + "1440 openpose-video-姿态检测展开流程 18", + "1440 openpose-video-姿态检测展开流程 19", + "1440 openpose-video-姿态检测展开流程 20", + "1440 openpose-video-姿态检测展开流程 21", + "1440 openpose-video-姿态检测展开流程 22", + "1440 openpose-video-姿态检测展开流程 23", + "1440 openpose-video-姿态检测展开流程 24", + "1440 openpose-video-姿态检测展开流程 25", + "1440 openpose-video-姿态检测展开流程 26", + "1440 openpose-video-姿态检测展开流程 27", + "1440 openpose-video-姿态检测展开流程 28", + "1440 openpose-video-姿态检测展开流程 29", + "1440 openpose-video-姿态检测展开流程 30", + "1440 openpose-video-姿态检测展开流程 31", + "1440 openpose-video-姿态检测展开流程 32", + "1440 openpose-video-姿态检测展开流程 33", + "1440 openpose-video-姿态检测展开流程 34", + "1440 openpose-video-姿态检测展开流程 35", + "1440 openpose-video-姿态检测展开流程 36", + "1440 openpose-video-姿态检测展开流程 37", + "1440 openpose-video-姿态检测展开流程 38", + "1440 openpose-video-姿态检测原件摘要可展开", + "1440 openpose-video-姿态检测版本 0", + "1440 openpose-video-姿态检测版本 1", + "1440 openpose-video-姿态检测版本 2", + "1440 1.detect_hand键盘展开", + "1440 1.detect_hand用途/单位/范围/来源条件", + "1440 1.detect_hand精确保留现值", + "1440 1.detect_hand指针默认折叠", + "1440 1.detect_hand精确源码/类型/指针", + "1440 1.detect_hand展开无溢出", + "1440 1.detect_body键盘展开", + "1440 1.detect_body用途/单位/范围/来源条件", + "1440 1.detect_body精确保留现值", + "1440 1.detect_body指针默认折叠", + "1440 1.detect_body精确源码/类型/指针", + "1440 1.detect_body展开无溢出", + "1440 1.detect_face键盘展开", + "1440 1.detect_face用途/单位/范围/来源条件", + "1440 1.detect_face精确保留现值", + "1440 1.detect_face指针默认折叠", + "1440 1.detect_face精确源码/类型/指针", + "1440 1.detect_face展开无溢出", + "1440 1.resolution键盘展开", + "1440 1.resolution用途/单位/范围/来源条件", + "1440 1.resolution精确保留现值", + "1440 1.resolution指针默认折叠", + "1440 1.resolution精确源码/类型/指针", + "1440 1.resolution展开无溢出", + "1440 1.bbox_detector键盘展开", + "1440 1.bbox_detector用途/单位/范围/来源条件", + "1440 1.bbox_detector精确保留现值", + "1440 1.bbox_detector指针默认折叠", + "1440 1.bbox_detector精确源码/类型/指针", + "1440 1.bbox_detector展开无溢出", + "1440 1.pose_estimator键盘展开", + "1440 1.pose_estimator用途/单位/范围/来源条件", + "1440 1.pose_estimator精确保留现值", + "1440 1.pose_estimator指针默认折叠", + "1440 1.pose_estimator精确源码/类型/指针", + "1440 1.pose_estimator展开无溢出", + "1440 1.scale_stick_for_xinsr_cn键盘展开", + "1440 1.scale_stick_for_xinsr_cn用途/单位/范围/来源条件", + "1440 1.scale_stick_for_xinsr_cn精确保留现值", + "1440 1.scale_stick_for_xinsr_cn指针默认折叠", + "1440 1.scale_stick_for_xinsr_cn精确源码/类型/指针", + "1440 1.scale_stick_for_xinsr_cn展开无溢出", + "1440 2.video键盘展开", + "1440 2.video用途/单位/范围/来源条件", + "1440 2.video精确保留现值", + "1440 2.video指针默认折叠", + "1440 2.video精确源码/类型/指针", + "1440 2.video展开无溢出", + "1440 2.force_rate键盘展开", + "1440 2.force_rate用途/单位/范围/来源条件", + "1440 2.force_rate精确保留现值", + "1440 2.force_rate指针默认折叠", + "1440 2.force_rate精确源码/类型/指针", + "1440 2.force_rate展开无溢出", + "1440 2.custom_width键盘展开", + "1440 2.custom_width用途/单位/范围/来源条件", + "1440 2.custom_width精确保留现值", + "1440 2.custom_width指针默认折叠", + "1440 2.custom_width精确源码/类型/指针", + "1440 2.custom_width展开无溢出", + "1440 2.custom_height键盘展开", + "1440 2.custom_height用途/单位/范围/来源条件", + "1440 2.custom_height精确保留现值", + "1440 2.custom_height指针默认折叠", + "1440 2.custom_height精确源码/类型/指针", + "1440 2.custom_height展开无溢出", + "1440 2.frame_load_cap键盘展开", + "1440 2.frame_load_cap用途/单位/范围/来源条件", + "1440 2.frame_load_cap精确保留现值", + "1440 2.frame_load_cap指针默认折叠", + "1440 2.frame_load_cap精确源码/类型/指针", + "1440 2.frame_load_cap展开无溢出", + "1440 2.skip_first_frames键盘展开", + "1440 2.skip_first_frames用途/单位/范围/来源条件", + "1440 2.skip_first_frames精确保留现值", + "1440 2.skip_first_frames指针默认折叠", + "1440 2.skip_first_frames精确源码/类型/指针", + "1440 2.skip_first_frames展开无溢出", + "1440 2.select_every_nth键盘展开", + "1440 2.select_every_nth用途/单位/范围/来源条件", + "1440 2.select_every_nth精确保留现值", + "1440 2.select_every_nth指针默认折叠", + "1440 2.select_every_nth精确源码/类型/指针", + "1440 2.select_every_nth展开无溢出", + "1440 2.format键盘展开", + "1440 2.format用途/单位/范围/来源条件", + "1440 2.format精确保留现值", + "1440 2.format指针默认折叠", + "1440 2.format精确源码/类型/指针", + "1440 2.format展开无溢出", + "1440 2.videopreview键盘展开", + "1440 2.videopreview用途/单位/范围/来源条件", + "1440 2.videopreview精确保留现值", + "1440 2.videopreview指针默认折叠", + "1440 2.videopreview精确源码/类型/指针", + "1440 2.videopreview展开无溢出", + "1440 4.frame_rate键盘展开", + "1440 4.frame_rate用途/单位/范围/来源条件", + "1440 4.frame_rate精确保留现值", + "1440 4.frame_rate指针默认折叠", + "1440 4.frame_rate精确源码/类型/指针", + "1440 4.frame_rate展开无溢出", + "1440 4.loop_count键盘展开", + "1440 4.loop_count用途/单位/范围/来源条件", + "1440 4.loop_count精确保留现值", + "1440 4.loop_count指针默认折叠", + "1440 4.loop_count精确源码/类型/指针", + "1440 4.loop_count展开无溢出", + "1440 4.filename_prefix键盘展开", + "1440 4.filename_prefix用途/单位/范围/来源条件", + "1440 4.filename_prefix精确保留现值", + "1440 4.filename_prefix指针默认折叠", + "1440 4.filename_prefix精确源码/类型/指针", + "1440 4.filename_prefix展开无溢出", + "1440 4.format键盘展开", + "1440 4.format用途/单位/范围/来源条件", + "1440 4.format精确保留现值", + "1440 4.format指针默认折叠", + "1440 4.format精确源码/类型/指针", + "1440 4.format展开无溢出", + "1440 4.pix_fmt键盘展开", + "1440 4.pix_fmt用途/单位/范围/来源条件", + "1440 4.pix_fmt精确保留现值", + "1440 4.pix_fmt指针默认折叠", + "1440 4.pix_fmt精确源码/类型/指针", + "1440 4.pix_fmt展开无溢出", + "1440 4.crf键盘展开", + "1440 4.crf用途/单位/范围/来源条件", + "1440 4.crf精确保留现值", + "1440 4.crf指针默认折叠", + "1440 4.crf精确源码/类型/指针", + "1440 4.crf展开无溢出", + "1440 4.save_metadata键盘展开", + "1440 4.save_metadata用途/单位/范围/来源条件", + "1440 4.save_metadata精确保留现值", + "1440 4.save_metadata指针默认折叠", + "1440 4.save_metadata精确源码/类型/指针", + "1440 4.save_metadata展开无溢出", + "1440 4.trim_to_audio键盘展开", + "1440 4.trim_to_audio用途/单位/范围/来源条件", + "1440 4.trim_to_audio精确保留现值", + "1440 4.trim_to_audio指针默认折叠", + "1440 4.trim_to_audio精确源码/类型/指针", + "1440 4.trim_to_audio展开无溢出", + "1440 4.pingpong键盘展开", + "1440 4.pingpong用途/单位/范围/来源条件", + "1440 4.pingpong精确保留现值", + "1440 4.pingpong指针默认折叠", + "1440 4.pingpong精确源码/类型/指针", + "1440 4.pingpong展开无溢出", + "1440 4.save_output键盘展开", + "1440 4.save_output用途/单位/范围/来源条件", + "1440 4.save_output精确保留现值", + "1440 4.save_output指针默认折叠", + "1440 4.save_output精确源码/类型/指针", + "1440 4.save_output展开无溢出", + "1440 4.videopreview键盘展开", + "1440 4.videopreview用途/单位/范围/来源条件", + "1440 4.videopreview精确保留现值", + "1440 4.videopreview指针默认折叠", + "1440 4.videopreview精确源码/类型/指针", + "1440 4.videopreview展开无溢出", + "1440注释8全文", + "1440注释8无溢出", + "1440Tab焦点保留", + "1440ShiftTab焦点保留", + "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 sdpose_视频人物姿势骨架提取展开流程 0", + "1440 sdpose_视频人物姿势骨架提取展开流程 1", + "1440 sdpose_视频人物姿势骨架提取展开流程 2", + "1440 sdpose_视频人物姿势骨架提取展开流程 3", + "1440 sdpose_视频人物姿势骨架提取展开流程 4", + "1440 sdpose_视频人物姿势骨架提取展开流程 5", + "1440 sdpose_视频人物姿势骨架提取展开流程 6", + "1440 sdpose_视频人物姿势骨架提取展开流程 7", + "1440 sdpose_视频人物姿势骨架提取展开流程 8", + "1440 sdpose_视频人物姿势骨架提取展开流程 9", + "1440 sdpose_视频人物姿势骨架提取展开流程 10", + "1440 sdpose_视频人物姿势骨架提取展开流程 11", + "1440 sdpose_视频人物姿势骨架提取展开流程 12", + "1440 sdpose_视频人物姿势骨架提取展开流程 13", + "1440 sdpose_视频人物姿势骨架提取展开流程 14", + "1440 sdpose_视频人物姿势骨架提取展开流程 15", + "1440 sdpose_视频人物姿势骨架提取展开流程 16", + "1440 sdpose_视频人物姿势骨架提取展开流程 17", + "1440 sdpose_视频人物姿势骨架提取展开流程 18", + "1440 sdpose_视频人物姿势骨架提取展开流程 19", + "1440 sdpose_视频人物姿势骨架提取展开流程 20", + "1440 sdpose_视频人物姿势骨架提取展开流程 21", + "1440 sdpose_视频人物姿势骨架提取展开流程 22", + "1440 sdpose_视频人物姿势骨架提取展开流程 23", + "1440 sdpose_视频人物姿势骨架提取展开流程 24", + "1440 sdpose_视频人物姿势骨架提取展开流程 25", + "1440 sdpose_视频人物姿势骨架提取展开流程 26", + "1440 sdpose_视频人物姿势骨架提取展开流程 27", + "1440 sdpose_视频人物姿势骨架提取原件摘要可展开", + "1440 sdpose_视频人物姿势骨架提取版本 0", + "1440 sdpose_视频人物姿势骨架提取版本 1", + "1440 sdpose_视频人物姿势骨架提取版本 2", + "1440 sdpose_视频人物姿势骨架提取版本 3", + "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 gemma4_提示词反推(图像视频音频)展开流程 0", + "1440 gemma4_提示词反推(图像视频音频)展开流程 1", + "1440 gemma4_提示词反推(图像视频音频)展开流程 2", + "1440 gemma4_提示词反推(图像视频音频)展开流程 3", + "1440 gemma4_提示词反推(图像视频音频)展开流程 4", + "1440 gemma4_提示词反推(图像视频音频)展开流程 5", + "1440 gemma4_提示词反推(图像视频音频)展开流程 6", + "1440 gemma4_提示词反推(图像视频音频)展开流程 7", + "1440 gemma4_提示词反推(图像视频音频)展开流程 8", + "1440 gemma4_提示词反推(图像视频音频)展开流程 9", + "1440 gemma4_提示词反推(图像视频音频)展开流程 10", + "1440 gemma4_提示词反推(图像视频音频)展开流程 11", + "1440 gemma4_提示词反推(图像视频音频)展开流程 12", + "1440 gemma4_提示词反推(图像视频音频)展开流程 13", + "1440 gemma4_提示词反推(图像视频音频)展开流程 14", + "1440 gemma4_提示词反推(图像视频音频)展开流程 15", + "1440 gemma4_提示词反推(图像视频音频)展开流程 16", + "1440 gemma4_提示词反推(图像视频音频)展开流程 17", + "1440 gemma4_提示词反推(图像视频音频)展开流程 18", + "1440 gemma4_提示词反推(图像视频音频)展开流程 19", + "1440 gemma4_提示词反推(图像视频音频)展开流程 20", + "1440 gemma4_提示词反推(图像视频音频)展开流程 21", + "1440 gemma4_提示词反推(图像视频音频)展开流程 22", + "1440 gemma4_提示词反推(图像视频音频)原件摘要可展开", + "1440 gemma4_提示词反推(图像视频音频)版本 0", + "1440 gemma4_提示词反推(图像视频音频)版本 1", + "1440 gemma4_提示词反推(图像视频音频)版本 2", + "1440 gemma4_提示词反推(图像视频音频)关闭归还焦点", + "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 图像合并成四宫格原件摘要可展开", + "1440 图像合并成四宫格版本 0", + "1440 图像合并成四宫格版本 1", + "1440 图像合并成四宫格版本 2", + "1440 图像合并成四宫格关闭归还焦点", + "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 图像分割-多宫格分割原件摘要可展开", + "1440 图像分割-多宫格分割版本 0", + "1440 图像分割-多宫格分割版本 1", + "1440 图像分割-多宫格分割版本 2", + "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_图像编辑_背景移除展开流程 0", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 1", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 2", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 3", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 4", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 5", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 6", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 7", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 8", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 9", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 10", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 11", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 12", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 13", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 14", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 15", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 16", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 17", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 18", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 19", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 20", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 21", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 22", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 23", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 24", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 25", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 26", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 27", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 28", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 29", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 30", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 31", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 32", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 33", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 34", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 35", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 36", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 37", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 38", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 39", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 40", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 41", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 42", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 43", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 44", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 45", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 46", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 47", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 48", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 49", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 50", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 51", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 52", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 53", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 54", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 55", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 56", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 57", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 58", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 59", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 60", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 61", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 62", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 63", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 64", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 65", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 66", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 67", + "1440 Qwen_image2.1_图像编辑_背景移除展开流程 68", + "1440 Qwen_image2.1_图像编辑_背景移除原件摘要可展开", + "1440 Qwen_image2.1_图像编辑_背景移除版本 0", + "1440 Qwen_image2.1_图像编辑_背景移除版本 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_图像编辑_提示词增强展开流程 0", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 1", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 2", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 3", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 4", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 5", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 6", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 7", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 8", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 9", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 10", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 11", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 12", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 13", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 14", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 15", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 16", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 17", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 18", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 19", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 20", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 21", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 22", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 23", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 24", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 25", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 26", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 27", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 28", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 29", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 30", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 31", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 32", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 33", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 34", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 35", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 36", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 37", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 38", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 39", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 40", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 41", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 42", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 43", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 44", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 45", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 46", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 47", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 48", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 49", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 50", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 51", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 52", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 53", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 54", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 55", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 56", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 57", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 58", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 59", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 60", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 61", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 62", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 63", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 64", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 65", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 66", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 67", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 68", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 69", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 70", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 71", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 72", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 73", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 74", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 75", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 76", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 77", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 78", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 79", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 80", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 81", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 82", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 83", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 84", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 85", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 86", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 87", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 88", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 89", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 90", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 91", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 92", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 93", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 94", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 95", + "1440 Qwen_image2.1_图像编辑_提示词增强展开流程 96", + "1440 Qwen_image2.1_图像编辑_提示词增强原件摘要可展开", + "1440 Qwen_image2.1_图像编辑_提示词增强版本 0", + "1440 Qwen_image2.1_图像编辑_提示词增强版本 1", + "1440 Qwen_image2.1_图像编辑_提示词增强版本 2", + "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_文生图_提示词增强展开流程 0", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 1", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 2", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 3", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 4", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 5", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 6", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 7", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 8", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 9", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 10", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 11", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 12", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 13", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 14", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 15", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 16", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 17", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 18", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 19", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 20", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 21", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 22", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 23", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 24", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 25", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 26", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 27", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 28", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 29", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 30", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 31", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 32", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 33", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 34", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 35", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 36", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 37", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 38", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 39", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 40", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 41", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 42", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 43", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 44", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 45", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 46", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 47", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 48", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 49", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 50", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 51", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 52", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 53", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 54", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 55", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 56", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 57", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 58", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 59", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 60", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 61", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 62", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 63", + "1440 Qwen_image2.1_文生图_提示词增强展开流程 64", + "1440 Qwen_image2.1_文生图_提示词增强原件摘要可展开", + "1440 Qwen_image2.1_文生图_提示词增强版本 0", + "1440 Qwen_image2.1_文生图_提示词增强版本 1", + "1440 Qwen_image2.1_文生图_提示词增强版本 2", + "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 ControlNet_aux_常用样例展开流程 0", + "1440 ControlNet_aux_常用样例展开流程 1", + "1440 ControlNet_aux_常用样例展开流程 2", + "1440 ControlNet_aux_常用样例展开流程 3", + "1440 ControlNet_aux_常用样例展开流程 4", + "1440 ControlNet_aux_常用样例展开流程 5", + "1440 ControlNet_aux_常用样例展开流程 6", + "1440 ControlNet_aux_常用样例展开流程 7", + "1440 ControlNet_aux_常用样例展开流程 8", + "1440 ControlNet_aux_常用样例展开流程 9", + "1440 ControlNet_aux_常用样例展开流程 10", + "1440 ControlNet_aux_常用样例展开流程 11", + "1440 ControlNet_aux_常用样例展开流程 12", + "1440 ControlNet_aux_常用样例展开流程 13", + "1440 ControlNet_aux_常用样例展开流程 14", + "1440 ControlNet_aux_常用样例展开流程 15", + "1440 ControlNet_aux_常用样例展开流程 16", + "1440 ControlNet_aux_常用样例展开流程 17", + "1440 ControlNet_aux_常用样例展开流程 18", + "1440 ControlNet_aux_常用样例展开流程 19", + "1440 ControlNet_aux_常用样例展开流程 20", + "1440 ControlNet_aux_常用样例展开流程 21", + "1440 ControlNet_aux_常用样例展开流程 22", + "1440 ControlNet_aux_常用样例展开流程 23", + "1440 ControlNet_aux_常用样例展开流程 24", + "1440 ControlNet_aux_常用样例展开流程 25", + "1440 ControlNet_aux_常用样例展开流程 26", + "1440 ControlNet_aux_常用样例展开流程 27", + "1440 ControlNet_aux_常用样例展开流程 28", + "1440 ControlNet_aux_常用样例展开流程 29", + "1440 ControlNet_aux_常用样例展开流程 30", + "1440 ControlNet_aux_常用样例原件摘要可展开", + "1440 ControlNet_aux_常用样例版本 0", + "1440 ControlNet_aux_常用样例版本 1", + "1440 ControlNet_aux_常用样例版本 2", + "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-语音转文字展开流程 0", + "1440 Qwen3-ASR-语音转文字展开流程 1", + "1440 Qwen3-ASR-语音转文字展开流程 2", + "1440 Qwen3-ASR-语音转文字展开流程 3", + "1440 Qwen3-ASR-语音转文字展开流程 4", + "1440 Qwen3-ASR-语音转文字原件摘要可展开", + "1440 Qwen3-ASR-语音转文字版本 0", + "1440 Qwen3-ASR-语音转文字版本 1", + "1440 Qwen3-ASR-语音转文字版本 2", + "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 Qwen3-ASR-Subtitle语音转字幕展开流程 0", + "1440 Qwen3-ASR-Subtitle语音转字幕展开流程 1", + "1440 Qwen3-ASR-Subtitle语音转字幕展开流程 2", + "1440 Qwen3-ASR-Subtitle语音转字幕展开流程 3", + "1440 Qwen3-ASR-Subtitle语音转字幕展开流程 4", + "1440 Qwen3-ASR-Subtitle语音转字幕展开流程 5", + "1440 Qwen3-ASR-Subtitle语音转字幕原件摘要可展开", + "1440 Qwen3-ASR-Subtitle语音转字幕版本 0", + "1440 Qwen3-ASR-Subtitle语音转字幕版本 1", + "1440 Qwen3-ASR-Subtitle语音转字幕版本 2", + "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 Minimax-H3提示词增强展开流程 0", + "1440 Minimax-H3提示词增强展开流程 1", + "1440 Minimax-H3提示词增强展开流程 2", + "1440 Minimax-H3提示词增强展开流程 3", + "1440 Minimax-H3提示词增强原件摘要可展开", + "1440 Minimax-H3提示词增强版本 0", + "1440 Minimax-H3提示词增强版本 1", + "1440 Minimax-H3提示词增强版本 2", + "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 音频转MP3格式展开流程 0", + "1440 音频转MP3格式展开流程 1", + "1440 音频转MP3格式展开流程 2", + "1440 音频转MP3格式展开流程 3", + "1440 音频转MP3格式展开流程 4", + "1440 音频转MP3格式原件摘要可展开", + "1440 音频转MP3格式版本 0", + "1440 音频转MP3格式版本 1", + "1440 音频转MP3格式版本 2", + "1440 音频转MP3格式关闭归还焦点", + "1440 音频人声分离默认中文用途", + "1440 音频人声分离源审校默认折叠", + "1440 音频人声分离技术范围默认折叠", + "1440 音频人声分离默认无执行计数/实现标识", + "1440 音频人声分离默认依据限制可见", + "1440 音频人声分离 说明未定稿", + "1440 音频人声分离 未验证实跑", + "1440 音频人声分离 未检查", + "1440 音频人声分离停用/时间戳空", + "1440 音频人声分离参数全保留", + "1440 音频人声分离默认无溢出", + "1440 音频人声分离原用途/源路径展开保留", + "1440 音频人声分离展开流程 0", + "1440 音频人声分离展开流程 1", + "1440 音频人声分离展开流程 2", + "1440 音频人声分离展开流程 3", + "1440 音频人声分离展开流程 4", + "1440 音频人声分离原件摘要可展开", + "1440 音频人声分离版本 0", + "1440 音频人声分离版本 1", + "1440 音频人声分离版本 2", + "1440 音频人声分离关闭归还焦点", + "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 视频-音频分离原件摘要可展开", + "1440 视频-音频分离版本 0", + "1440 视频-音频分离版本 1", + "1440 视频-音频分离版本 2", + "1440 视频-音频分离关闭归还焦点", + "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 图像嵌入文字描述原件摘要可展开", + "1440 图像嵌入文字描述版本 0", + "1440 图像嵌入文字描述版本 1", + "1440 图像嵌入文字描述版本 2", + "1440 图像嵌入文字描述关闭归还焦点", + "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 openpose-video-姿态检测展开流程 0", + "390 openpose-video-姿态检测展开流程 1", + "390 openpose-video-姿态检测展开流程 2", + "390 openpose-video-姿态检测展开流程 3", + "390 openpose-video-姿态检测展开流程 4", + "390 openpose-video-姿态检测展开流程 5", + "390 openpose-video-姿态检测展开流程 6", + "390 openpose-video-姿态检测展开流程 7", + "390 openpose-video-姿态检测展开流程 8", + "390 openpose-video-姿态检测展开流程 9", + "390 openpose-video-姿态检测展开流程 10", + "390 openpose-video-姿态检测展开流程 11", + "390 openpose-video-姿态检测展开流程 12", + "390 openpose-video-姿态检测展开流程 13", + "390 openpose-video-姿态检测展开流程 14", + "390 openpose-video-姿态检测展开流程 15", + "390 openpose-video-姿态检测展开流程 16", + "390 openpose-video-姿态检测展开流程 17", + "390 openpose-video-姿态检测展开流程 18", + "390 openpose-video-姿态检测展开流程 19", + "390 openpose-video-姿态检测展开流程 20", + "390 openpose-video-姿态检测展开流程 21", + "390 openpose-video-姿态检测展开流程 22", + "390 openpose-video-姿态检测展开流程 23", + "390 openpose-video-姿态检测展开流程 24", + "390 openpose-video-姿态检测展开流程 25", + "390 openpose-video-姿态检测展开流程 26", + "390 openpose-video-姿态检测展开流程 27", + "390 openpose-video-姿态检测展开流程 28", + "390 openpose-video-姿态检测展开流程 29", + "390 openpose-video-姿态检测展开流程 30", + "390 openpose-video-姿态检测展开流程 31", + "390 openpose-video-姿态检测展开流程 32", + "390 openpose-video-姿态检测展开流程 33", + "390 openpose-video-姿态检测展开流程 34", + "390 openpose-video-姿态检测展开流程 35", + "390 openpose-video-姿态检测展开流程 36", + "390 openpose-video-姿态检测展开流程 37", + "390 openpose-video-姿态检测展开流程 38", + "390 openpose-video-姿态检测原件摘要可展开", + "390 openpose-video-姿态检测版本 0", + "390 openpose-video-姿态检测版本 1", + "390 openpose-video-姿态检测版本 2", + "390 1.detect_hand键盘展开", + "390 1.detect_hand用途/单位/范围/来源条件", + "390 1.detect_hand精确保留现值", + "390 1.detect_hand指针默认折叠", + "390 1.detect_hand精确源码/类型/指针", + "390 1.detect_hand展开无溢出", + "390 1.detect_body键盘展开", + "390 1.detect_body用途/单位/范围/来源条件", + "390 1.detect_body精确保留现值", + "390 1.detect_body指针默认折叠", + "390 1.detect_body精确源码/类型/指针", + "390 1.detect_body展开无溢出", + "390 1.detect_face键盘展开", + "390 1.detect_face用途/单位/范围/来源条件", + "390 1.detect_face精确保留现值", + "390 1.detect_face指针默认折叠", + "390 1.detect_face精确源码/类型/指针", + "390 1.detect_face展开无溢出", + "390 1.resolution键盘展开", + "390 1.resolution用途/单位/范围/来源条件", + "390 1.resolution精确保留现值", + "390 1.resolution指针默认折叠", + "390 1.resolution精确源码/类型/指针", + "390 1.resolution展开无溢出", + "390 1.bbox_detector键盘展开", + "390 1.bbox_detector用途/单位/范围/来源条件", + "390 1.bbox_detector精确保留现值", + "390 1.bbox_detector指针默认折叠", + "390 1.bbox_detector精确源码/类型/指针", + "390 1.bbox_detector展开无溢出", + "390 1.pose_estimator键盘展开", + "390 1.pose_estimator用途/单位/范围/来源条件", + "390 1.pose_estimator精确保留现值", + "390 1.pose_estimator指针默认折叠", + "390 1.pose_estimator精确源码/类型/指针", + "390 1.pose_estimator展开无溢出", + "390 1.scale_stick_for_xinsr_cn键盘展开", + "390 1.scale_stick_for_xinsr_cn用途/单位/范围/来源条件", + "390 1.scale_stick_for_xinsr_cn精确保留现值", + "390 1.scale_stick_for_xinsr_cn指针默认折叠", + "390 1.scale_stick_for_xinsr_cn精确源码/类型/指针", + "390 1.scale_stick_for_xinsr_cn展开无溢出", + "390 2.video键盘展开", + "390 2.video用途/单位/范围/来源条件", + "390 2.video精确保留现值", + "390 2.video指针默认折叠", + "390 2.video精确源码/类型/指针", + "390 2.video展开无溢出", + "390 2.force_rate键盘展开", + "390 2.force_rate用途/单位/范围/来源条件", + "390 2.force_rate精确保留现值", + "390 2.force_rate指针默认折叠", + "390 2.force_rate精确源码/类型/指针", + "390 2.force_rate展开无溢出", + "390 2.custom_width键盘展开", + "390 2.custom_width用途/单位/范围/来源条件", + "390 2.custom_width精确保留现值", + "390 2.custom_width指针默认折叠", + "390 2.custom_width精确源码/类型/指针", + "390 2.custom_width展开无溢出", + "390 2.custom_height键盘展开", + "390 2.custom_height用途/单位/范围/来源条件", + "390 2.custom_height精确保留现值", + "390 2.custom_height指针默认折叠", + "390 2.custom_height精确源码/类型/指针", + "390 2.custom_height展开无溢出", + "390 2.frame_load_cap键盘展开", + "390 2.frame_load_cap用途/单位/范围/来源条件", + "390 2.frame_load_cap精确保留现值", + "390 2.frame_load_cap指针默认折叠", + "390 2.frame_load_cap精确源码/类型/指针", + "390 2.frame_load_cap展开无溢出", + "390 2.skip_first_frames键盘展开", + "390 2.skip_first_frames用途/单位/范围/来源条件", + "390 2.skip_first_frames精确保留现值", + "390 2.skip_first_frames指针默认折叠", + "390 2.skip_first_frames精确源码/类型/指针", + "390 2.skip_first_frames展开无溢出", + "390 2.select_every_nth键盘展开", + "390 2.select_every_nth用途/单位/范围/来源条件", + "390 2.select_every_nth精确保留现值", + "390 2.select_every_nth指针默认折叠", + "390 2.select_every_nth精确源码/类型/指针", + "390 2.select_every_nth展开无溢出", + "390 2.format键盘展开", + "390 2.format用途/单位/范围/来源条件", + "390 2.format精确保留现值", + "390 2.format指针默认折叠", + "390 2.format精确源码/类型/指针", + "390 2.format展开无溢出", + "390 2.videopreview键盘展开", + "390 2.videopreview用途/单位/范围/来源条件", + "390 2.videopreview精确保留现值", + "390 2.videopreview指针默认折叠", + "390 2.videopreview精确源码/类型/指针", + "390 2.videopreview展开无溢出", + "390 4.frame_rate键盘展开", + "390 4.frame_rate用途/单位/范围/来源条件", + "390 4.frame_rate精确保留现值", + "390 4.frame_rate指针默认折叠", + "390 4.frame_rate精确源码/类型/指针", + "390 4.frame_rate展开无溢出", + "390 4.loop_count键盘展开", + "390 4.loop_count用途/单位/范围/来源条件", + "390 4.loop_count精确保留现值", + "390 4.loop_count指针默认折叠", + "390 4.loop_count精确源码/类型/指针", + "390 4.loop_count展开无溢出", + "390 4.filename_prefix键盘展开", + "390 4.filename_prefix用途/单位/范围/来源条件", + "390 4.filename_prefix精确保留现值", + "390 4.filename_prefix指针默认折叠", + "390 4.filename_prefix精确源码/类型/指针", + "390 4.filename_prefix展开无溢出", + "390 4.format键盘展开", + "390 4.format用途/单位/范围/来源条件", + "390 4.format精确保留现值", + "390 4.format指针默认折叠", + "390 4.format精确源码/类型/指针", + "390 4.format展开无溢出", + "390 4.pix_fmt键盘展开", + "390 4.pix_fmt用途/单位/范围/来源条件", + "390 4.pix_fmt精确保留现值", + "390 4.pix_fmt指针默认折叠", + "390 4.pix_fmt精确源码/类型/指针", + "390 4.pix_fmt展开无溢出", + "390 4.crf键盘展开", + "390 4.crf用途/单位/范围/来源条件", + "390 4.crf精确保留现值", + "390 4.crf指针默认折叠", + "390 4.crf精确源码/类型/指针", + "390 4.crf展开无溢出", + "390 4.save_metadata键盘展开", + "390 4.save_metadata用途/单位/范围/来源条件", + "390 4.save_metadata精确保留现值", + "390 4.save_metadata指针默认折叠", + "390 4.save_metadata精确源码/类型/指针", + "390 4.save_metadata展开无溢出", + "390 4.trim_to_audio键盘展开", + "390 4.trim_to_audio用途/单位/范围/来源条件", + "390 4.trim_to_audio精确保留现值", + "390 4.trim_to_audio指针默认折叠", + "390 4.trim_to_audio精确源码/类型/指针", + "390 4.trim_to_audio展开无溢出", + "390 4.pingpong键盘展开", + "390 4.pingpong用途/单位/范围/来源条件", + "390 4.pingpong精确保留现值", + "390 4.pingpong指针默认折叠", + "390 4.pingpong精确源码/类型/指针", + "390 4.pingpong展开无溢出", + "390 4.save_output键盘展开", + "390 4.save_output用途/单位/范围/来源条件", + "390 4.save_output精确保留现值", + "390 4.save_output指针默认折叠", + "390 4.save_output精确源码/类型/指针", + "390 4.save_output展开无溢出", + "390 4.videopreview键盘展开", + "390 4.videopreview用途/单位/范围/来源条件", + "390 4.videopreview精确保留现值", + "390 4.videopreview指针默认折叠", + "390 4.videopreview精确源码/类型/指针", + "390 4.videopreview展开无溢出", + "390注释8全文", + "390注释8无溢出", + "390Tab焦点保留", + "390ShiftTab焦点保留", + "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 sdpose_视频人物姿势骨架提取展开流程 0", + "390 sdpose_视频人物姿势骨架提取展开流程 1", + "390 sdpose_视频人物姿势骨架提取展开流程 2", + "390 sdpose_视频人物姿势骨架提取展开流程 3", + "390 sdpose_视频人物姿势骨架提取展开流程 4", + "390 sdpose_视频人物姿势骨架提取展开流程 5", + "390 sdpose_视频人物姿势骨架提取展开流程 6", + "390 sdpose_视频人物姿势骨架提取展开流程 7", + "390 sdpose_视频人物姿势骨架提取展开流程 8", + "390 sdpose_视频人物姿势骨架提取展开流程 9", + "390 sdpose_视频人物姿势骨架提取展开流程 10", + "390 sdpose_视频人物姿势骨架提取展开流程 11", + "390 sdpose_视频人物姿势骨架提取展开流程 12", + "390 sdpose_视频人物姿势骨架提取展开流程 13", + "390 sdpose_视频人物姿势骨架提取展开流程 14", + "390 sdpose_视频人物姿势骨架提取展开流程 15", + "390 sdpose_视频人物姿势骨架提取展开流程 16", + "390 sdpose_视频人物姿势骨架提取展开流程 17", + "390 sdpose_视频人物姿势骨架提取展开流程 18", + "390 sdpose_视频人物姿势骨架提取展开流程 19", + "390 sdpose_视频人物姿势骨架提取展开流程 20", + "390 sdpose_视频人物姿势骨架提取展开流程 21", + "390 sdpose_视频人物姿势骨架提取展开流程 22", + "390 sdpose_视频人物姿势骨架提取展开流程 23", + "390 sdpose_视频人物姿势骨架提取展开流程 24", + "390 sdpose_视频人物姿势骨架提取展开流程 25", + "390 sdpose_视频人物姿势骨架提取展开流程 26", + "390 sdpose_视频人物姿势骨架提取展开流程 27", + "390 sdpose_视频人物姿势骨架提取原件摘要可展开", + "390 sdpose_视频人物姿势骨架提取版本 0", + "390 sdpose_视频人物姿势骨架提取版本 1", + "390 sdpose_视频人物姿势骨架提取版本 2", + "390 sdpose_视频人物姿势骨架提取版本 3", + "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 gemma4_提示词反推(图像视频音频)展开流程 0", + "390 gemma4_提示词反推(图像视频音频)展开流程 1", + "390 gemma4_提示词反推(图像视频音频)展开流程 2", + "390 gemma4_提示词反推(图像视频音频)展开流程 3", + "390 gemma4_提示词反推(图像视频音频)展开流程 4", + "390 gemma4_提示词反推(图像视频音频)展开流程 5", + "390 gemma4_提示词反推(图像视频音频)展开流程 6", + "390 gemma4_提示词反推(图像视频音频)展开流程 7", + "390 gemma4_提示词反推(图像视频音频)展开流程 8", + "390 gemma4_提示词反推(图像视频音频)展开流程 9", + "390 gemma4_提示词反推(图像视频音频)展开流程 10", + "390 gemma4_提示词反推(图像视频音频)展开流程 11", + "390 gemma4_提示词反推(图像视频音频)展开流程 12", + "390 gemma4_提示词反推(图像视频音频)展开流程 13", + "390 gemma4_提示词反推(图像视频音频)展开流程 14", + "390 gemma4_提示词反推(图像视频音频)展开流程 15", + "390 gemma4_提示词反推(图像视频音频)展开流程 16", + "390 gemma4_提示词反推(图像视频音频)展开流程 17", + "390 gemma4_提示词反推(图像视频音频)展开流程 18", + "390 gemma4_提示词反推(图像视频音频)展开流程 19", + "390 gemma4_提示词反推(图像视频音频)展开流程 20", + "390 gemma4_提示词反推(图像视频音频)展开流程 21", + "390 gemma4_提示词反推(图像视频音频)展开流程 22", + "390 gemma4_提示词反推(图像视频音频)原件摘要可展开", + "390 gemma4_提示词反推(图像视频音频)版本 0", + "390 gemma4_提示词反推(图像视频音频)版本 1", + "390 gemma4_提示词反推(图像视频音频)版本 2", + "390 gemma4_提示词反推(图像视频音频)关闭归还焦点", + "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 图像合并成四宫格原件摘要可展开", + "390 图像合并成四宫格版本 0", + "390 图像合并成四宫格版本 1", + "390 图像合并成四宫格版本 2", + "390 图像合并成四宫格关闭归还焦点", + "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 图像分割-多宫格分割原件摘要可展开", + "390 图像分割-多宫格分割版本 0", + "390 图像分割-多宫格分割版本 1", + "390 图像分割-多宫格分割版本 2", + "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_图像编辑_背景移除展开流程 0", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 1", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 2", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 3", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 4", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 5", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 6", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 7", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 8", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 9", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 10", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 11", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 12", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 13", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 14", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 15", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 16", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 17", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 18", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 19", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 20", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 21", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 22", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 23", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 24", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 25", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 26", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 27", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 28", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 29", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 30", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 31", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 32", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 33", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 34", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 35", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 36", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 37", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 38", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 39", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 40", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 41", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 42", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 43", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 44", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 45", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 46", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 47", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 48", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 49", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 50", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 51", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 52", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 53", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 54", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 55", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 56", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 57", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 58", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 59", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 60", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 61", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 62", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 63", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 64", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 65", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 66", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 67", + "390 Qwen_image2.1_图像编辑_背景移除展开流程 68", + "390 Qwen_image2.1_图像编辑_背景移除原件摘要可展开", + "390 Qwen_image2.1_图像编辑_背景移除版本 0", + "390 Qwen_image2.1_图像编辑_背景移除版本 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_图像编辑_提示词增强展开流程 0", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 1", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 2", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 3", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 4", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 5", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 6", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 7", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 8", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 9", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 10", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 11", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 12", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 13", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 14", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 15", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 16", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 17", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 18", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 19", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 20", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 21", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 22", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 23", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 24", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 25", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 26", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 27", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 28", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 29", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 30", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 31", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 32", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 33", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 34", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 35", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 36", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 37", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 38", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 39", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 40", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 41", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 42", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 43", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 44", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 45", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 46", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 47", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 48", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 49", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 50", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 51", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 52", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 53", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 54", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 55", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 56", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 57", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 58", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 59", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 60", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 61", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 62", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 63", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 64", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 65", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 66", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 67", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 68", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 69", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 70", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 71", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 72", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 73", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 74", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 75", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 76", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 77", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 78", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 79", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 80", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 81", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 82", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 83", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 84", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 85", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 86", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 87", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 88", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 89", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 90", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 91", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 92", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 93", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 94", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 95", + "390 Qwen_image2.1_图像编辑_提示词增强展开流程 96", + "390 Qwen_image2.1_图像编辑_提示词增强原件摘要可展开", + "390 Qwen_image2.1_图像编辑_提示词增强版本 0", + "390 Qwen_image2.1_图像编辑_提示词增强版本 1", + "390 Qwen_image2.1_图像编辑_提示词增强版本 2", + "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_文生图_提示词增强展开流程 0", + "390 Qwen_image2.1_文生图_提示词增强展开流程 1", + "390 Qwen_image2.1_文生图_提示词增强展开流程 2", + "390 Qwen_image2.1_文生图_提示词增强展开流程 3", + "390 Qwen_image2.1_文生图_提示词增强展开流程 4", + "390 Qwen_image2.1_文生图_提示词增强展开流程 5", + "390 Qwen_image2.1_文生图_提示词增强展开流程 6", + "390 Qwen_image2.1_文生图_提示词增强展开流程 7", + "390 Qwen_image2.1_文生图_提示词增强展开流程 8", + "390 Qwen_image2.1_文生图_提示词增强展开流程 9", + "390 Qwen_image2.1_文生图_提示词增强展开流程 10", + "390 Qwen_image2.1_文生图_提示词增强展开流程 11", + "390 Qwen_image2.1_文生图_提示词增强展开流程 12", + "390 Qwen_image2.1_文生图_提示词增强展开流程 13", + "390 Qwen_image2.1_文生图_提示词增强展开流程 14", + "390 Qwen_image2.1_文生图_提示词增强展开流程 15", + "390 Qwen_image2.1_文生图_提示词增强展开流程 16", + "390 Qwen_image2.1_文生图_提示词增强展开流程 17", + "390 Qwen_image2.1_文生图_提示词增强展开流程 18", + "390 Qwen_image2.1_文生图_提示词增强展开流程 19", + "390 Qwen_image2.1_文生图_提示词增强展开流程 20", + "390 Qwen_image2.1_文生图_提示词增强展开流程 21", + "390 Qwen_image2.1_文生图_提示词增强展开流程 22", + "390 Qwen_image2.1_文生图_提示词增强展开流程 23", + "390 Qwen_image2.1_文生图_提示词增强展开流程 24", + "390 Qwen_image2.1_文生图_提示词增强展开流程 25", + "390 Qwen_image2.1_文生图_提示词增强展开流程 26", + "390 Qwen_image2.1_文生图_提示词增强展开流程 27", + "390 Qwen_image2.1_文生图_提示词增强展开流程 28", + "390 Qwen_image2.1_文生图_提示词增强展开流程 29", + "390 Qwen_image2.1_文生图_提示词增强展开流程 30", + "390 Qwen_image2.1_文生图_提示词增强展开流程 31", + "390 Qwen_image2.1_文生图_提示词增强展开流程 32", + "390 Qwen_image2.1_文生图_提示词增强展开流程 33", + "390 Qwen_image2.1_文生图_提示词增强展开流程 34", + "390 Qwen_image2.1_文生图_提示词增强展开流程 35", + "390 Qwen_image2.1_文生图_提示词增强展开流程 36", + "390 Qwen_image2.1_文生图_提示词增强展开流程 37", + "390 Qwen_image2.1_文生图_提示词增强展开流程 38", + "390 Qwen_image2.1_文生图_提示词增强展开流程 39", + "390 Qwen_image2.1_文生图_提示词增强展开流程 40", + "390 Qwen_image2.1_文生图_提示词增强展开流程 41", + "390 Qwen_image2.1_文生图_提示词增强展开流程 42", + "390 Qwen_image2.1_文生图_提示词增强展开流程 43", + "390 Qwen_image2.1_文生图_提示词增强展开流程 44", + "390 Qwen_image2.1_文生图_提示词增强展开流程 45", + "390 Qwen_image2.1_文生图_提示词增强展开流程 46", + "390 Qwen_image2.1_文生图_提示词增强展开流程 47", + "390 Qwen_image2.1_文生图_提示词增强展开流程 48", + "390 Qwen_image2.1_文生图_提示词增强展开流程 49", + "390 Qwen_image2.1_文生图_提示词增强展开流程 50", + "390 Qwen_image2.1_文生图_提示词增强展开流程 51", + "390 Qwen_image2.1_文生图_提示词增强展开流程 52", + "390 Qwen_image2.1_文生图_提示词增强展开流程 53", + "390 Qwen_image2.1_文生图_提示词增强展开流程 54", + "390 Qwen_image2.1_文生图_提示词增强展开流程 55", + "390 Qwen_image2.1_文生图_提示词增强展开流程 56", + "390 Qwen_image2.1_文生图_提示词增强展开流程 57", + "390 Qwen_image2.1_文生图_提示词增强展开流程 58", + "390 Qwen_image2.1_文生图_提示词增强展开流程 59", + "390 Qwen_image2.1_文生图_提示词增强展开流程 60", + "390 Qwen_image2.1_文生图_提示词增强展开流程 61", + "390 Qwen_image2.1_文生图_提示词增强展开流程 62", + "390 Qwen_image2.1_文生图_提示词增强展开流程 63", + "390 Qwen_image2.1_文生图_提示词增强展开流程 64", + "390 Qwen_image2.1_文生图_提示词增强原件摘要可展开", + "390 Qwen_image2.1_文生图_提示词增强版本 0", + "390 Qwen_image2.1_文生图_提示词增强版本 1", + "390 Qwen_image2.1_文生图_提示词增强版本 2", + "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 ControlNet_aux_常用样例展开流程 0", + "390 ControlNet_aux_常用样例展开流程 1", + "390 ControlNet_aux_常用样例展开流程 2", + "390 ControlNet_aux_常用样例展开流程 3", + "390 ControlNet_aux_常用样例展开流程 4", + "390 ControlNet_aux_常用样例展开流程 5", + "390 ControlNet_aux_常用样例展开流程 6", + "390 ControlNet_aux_常用样例展开流程 7", + "390 ControlNet_aux_常用样例展开流程 8", + "390 ControlNet_aux_常用样例展开流程 9", + "390 ControlNet_aux_常用样例展开流程 10", + "390 ControlNet_aux_常用样例展开流程 11", + "390 ControlNet_aux_常用样例展开流程 12", + "390 ControlNet_aux_常用样例展开流程 13", + "390 ControlNet_aux_常用样例展开流程 14", + "390 ControlNet_aux_常用样例展开流程 15", + "390 ControlNet_aux_常用样例展开流程 16", + "390 ControlNet_aux_常用样例展开流程 17", + "390 ControlNet_aux_常用样例展开流程 18", + "390 ControlNet_aux_常用样例展开流程 19", + "390 ControlNet_aux_常用样例展开流程 20", + "390 ControlNet_aux_常用样例展开流程 21", + "390 ControlNet_aux_常用样例展开流程 22", + "390 ControlNet_aux_常用样例展开流程 23", + "390 ControlNet_aux_常用样例展开流程 24", + "390 ControlNet_aux_常用样例展开流程 25", + "390 ControlNet_aux_常用样例展开流程 26", + "390 ControlNet_aux_常用样例展开流程 27", + "390 ControlNet_aux_常用样例展开流程 28", + "390 ControlNet_aux_常用样例展开流程 29", + "390 ControlNet_aux_常用样例展开流程 30", + "390 ControlNet_aux_常用样例原件摘要可展开", + "390 ControlNet_aux_常用样例版本 0", + "390 ControlNet_aux_常用样例版本 1", + "390 ControlNet_aux_常用样例版本 2", + "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-语音转文字展开流程 0", + "390 Qwen3-ASR-语音转文字展开流程 1", + "390 Qwen3-ASR-语音转文字展开流程 2", + "390 Qwen3-ASR-语音转文字展开流程 3", + "390 Qwen3-ASR-语音转文字展开流程 4", + "390 Qwen3-ASR-语音转文字原件摘要可展开", + "390 Qwen3-ASR-语音转文字版本 0", + "390 Qwen3-ASR-语音转文字版本 1", + "390 Qwen3-ASR-语音转文字版本 2", + "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 Qwen3-ASR-Subtitle语音转字幕展开流程 0", + "390 Qwen3-ASR-Subtitle语音转字幕展开流程 1", + "390 Qwen3-ASR-Subtitle语音转字幕展开流程 2", + "390 Qwen3-ASR-Subtitle语音转字幕展开流程 3", + "390 Qwen3-ASR-Subtitle语音转字幕展开流程 4", + "390 Qwen3-ASR-Subtitle语音转字幕展开流程 5", + "390 Qwen3-ASR-Subtitle语音转字幕原件摘要可展开", + "390 Qwen3-ASR-Subtitle语音转字幕版本 0", + "390 Qwen3-ASR-Subtitle语音转字幕版本 1", + "390 Qwen3-ASR-Subtitle语音转字幕版本 2", + "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 Minimax-H3提示词增强展开流程 0", + "390 Minimax-H3提示词增强展开流程 1", + "390 Minimax-H3提示词增强展开流程 2", + "390 Minimax-H3提示词增强展开流程 3", + "390 Minimax-H3提示词增强原件摘要可展开", + "390 Minimax-H3提示词增强版本 0", + "390 Minimax-H3提示词增强版本 1", + "390 Minimax-H3提示词增强版本 2", + "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 音频转MP3格式展开流程 0", + "390 音频转MP3格式展开流程 1", + "390 音频转MP3格式展开流程 2", + "390 音频转MP3格式展开流程 3", + "390 音频转MP3格式展开流程 4", + "390 音频转MP3格式原件摘要可展开", + "390 音频转MP3格式版本 0", + "390 音频转MP3格式版本 1", + "390 音频转MP3格式版本 2", + "390 音频转MP3格式关闭归还焦点", + "390 音频人声分离默认中文用途", + "390 音频人声分离源审校默认折叠", + "390 音频人声分离技术范围默认折叠", + "390 音频人声分离默认无执行计数/实现标识", + "390 音频人声分离默认依据限制可见", + "390 音频人声分离 说明未定稿", + "390 音频人声分离 未验证实跑", + "390 音频人声分离 未检查", + "390 音频人声分离停用/时间戳空", + "390 音频人声分离参数全保留", + "390 音频人声分离默认无溢出", + "390 音频人声分离原用途/源路径展开保留", + "390 音频人声分离展开流程 0", + "390 音频人声分离展开流程 1", + "390 音频人声分离展开流程 2", + "390 音频人声分离展开流程 3", + "390 音频人声分离展开流程 4", + "390 音频人声分离原件摘要可展开", + "390 音频人声分离版本 0", + "390 音频人声分离版本 1", + "390 音频人声分离版本 2", + "390 音频人声分离关闭归还焦点", + "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 视频-音频分离原件摘要可展开", + "390 视频-音频分离版本 0", + "390 视频-音频分离版本 1", + "390 视频-音频分离版本 2", + "390 视频-音频分离关闭归还焦点", + "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 图像嵌入文字描述原件摘要可展开", + "390 图像嵌入文字描述版本 0", + "390 图像嵌入文字描述版本 1", + "390 图像嵌入文字描述版本 2", + "390 图像嵌入文字描述关闭归还焦点", + "旧/空说明回退 旧工作流回退(隔离测试夹具)", + "旧/空说明回退 空说明回退(隔离测试夹具)", + "缺摘要自然中文回退", + "回退不暴露undefined", + "错绑定提示明确且不展示旧字段", + "回退不暴露undefined", + "摘要HTML仅纯文本不创建图像或请求", + "回退不暴露undefined", + "迟到OpenPose响应不覆盖SDPose图摘要/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/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/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "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/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "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/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/19" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/13" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/12" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/64" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/62" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/70" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/1" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/36" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/35" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/2" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/25" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/24" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/21" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/14" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/156" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/157" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/7" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/jobs" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + }, + { + "method": "GET", + "url": "http://127.0.0.1:5173/api/workflows/6" + } + ], + "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/openpose-document-evidence/build_definition.py b/docs/hel-892/openpose-document-evidence/build_definition.py new file mode 100644 index 00000000..9068c389 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/build_definition.py @@ -0,0 +1,668 @@ +"""Source-bound OpenPose editorial reference; no conversion or upstream execution.""" + +from __future__ import annotations + +import hashlib +import json +from pathlib import Path + +REPO = Path(__file__).resolve().parents[3] +OUT = Path(__file__).resolve().parent +PATHS = [ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/" + "人物骨骼姿势提取/openpose-video-姿态检测.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() + source = json.loads(raw) + base = OUT.parent / "openpose-reference" + entries = json.loads((base / "sources.json").read_bytes())["sources"] + refs = [] + + def ref(repo, file, start, end, claim): + e = next(e for e in entries if e["id"] == repo and e["file"] == file) + data = (base / e["local_file"]).read_bytes() + assert hashlib.sha256(data).hexdigest() == e["sha256"] + assert 1 <= start <= end <= len(data.decode().splitlines()) + refs.append( + { + **e, + "local_file": "../openpose-reference/" + e["local_file"], + "lines": [start, end], + "claim": claim, + } + ) + return len(refs) - 1 + + dw = ref( + "dw", + "node_wrappers/dwpose.py", + 32, + 105, + "DWPose schema、字符串开关、权重来源选择、调用和双出口", + ) + dwreg = ref("dw", "node_wrappers/dwpose.py", 159, 165, "DWPreprocessor真实注册") + loader = ref("dw", "__init__.py", 25, 66, "扫描node_wrappers合并注册;失败可缺失节点") + helper = ref("dw", "utils.py", 62, 120, "默认、范围、逐帧调用和resolution传递") + detector = ref( + "dw", + "src/custom_controlnet_aux/dwpose/__init__.py", + 217, + 279, + "权重加载、检测、绘制与结果缩放顺序", + ) + model_load = ref( + "dw", + "src/custom_controlnet_aux/dwpose/wholebody.py", + 19, + 78, + "模型类型分支及加载设备,仅静态条件", + ) + drawing = ref("dw", "src/custom_controlnet_aux/dwpose/util.py", 82, 138, "身体骨架线宽缩放条件") + common = ref( + "dw", "src/custom_controlnet_aux/util.py", 155, 183, "短边比例缩放与64倍数填充/去填充闭包" + ) + download = ref( + "dw", "src/custom_controlnet_aux/util.py", 289, 342, "文件缺失时静态下载分支;不授权下载" + ) + load = ref( + "vhs", + "videohelpersuite/load_video_nodes.py", + 423, + 474, + "VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用", + ) + gen = ref( + "vhs", + "videohelpersuite/load_video_nodes.py", + 59, + 168, + "尺寸取整、force_rate、跳帧、间隔与上限", + ) + loadrun = ref( + "vhs", + "videohelpersuite/load_video_nodes.py", + 293, + 420, + "加载尺寸/内存上限、格式、loaded_fps和四出口", + ) + loadfmt = ref( + "vhs", + "videohelpersuite/load_video_nodes.py", + 22, + 52, + "AnimateDiff格式默认及dim/target_rate,非最终帧率证明", + ) + constants = ref( + "vhs", "videohelpersuite/utils.py", 19, 56, "DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容" + ) + combine = ref("vhs", "videohelpersuite/nodes.py", 235, 289, "合成schema默认、可选输入与签名") + combine_run = ref( + "vhs", + "videohelpersuite/nodes.py", + 328, + 625, + "输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回", + ) + metadata = ref( + "vhs", "videohelpersuite/nodes.py", 94, 191, "动态格式默认替换、元数据ffmpeg分支" + ) + formats = ref( + "vhs", "videohelpersuite/nodes.py", 46, 108, "格式发现和动态控件,不推定目标安装可用" + ) + h264 = ref( + "vhs", + "video_formats/h264-mp4.json", + 1, + 15, + "h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264", + ) + info = ref( + "vhs", + "videohelpersuite/nodes.py", + 941, + 970, + "VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height", + ) + registry = ref( + "vhs", "videohelpersuite/nodes.py", 1024, 1043, "VHS三个节点真实类注册,均插件而非核心" + ) + kv = ref( + "vhs", + "web/js/VHS.core.js", + 6, + 169, + "具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象", + ) + loadcb = ref( + "vhs", + "web/js/VHS.core.js", + 670, + 711, + "加载格式回调只在wasDefault条件重设值,随后逐控件回调", + ) + dyn = ref("vhs", "web/js/VHS.core.js", 1241, 1298, "合成format回调重建动态控件及同名输入") + preview = ref( + "vhs", + "web/js/VHS.core.js", + 934, + 943, + "videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget", + ) + restore = ref( + "frontend", + "src/lib/litegraph/src/LGraphNode.ts", + 862, + 875, + "核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复", + ) + persist = ref( + "frontend", + "src/lib/litegraph/src/LGraphNode.ts", + 907, + 929, + "核心先数组保存再onSerialize,VHS回调覆盖对象", + ) + execute = ref( + "frontend", + "src/utils/executionUtil.ts", + 86, + 127, + "先可序列化控件后物理连线,外线覆盖同名frame_rate", + ) + note = ref("frontend", "src/extensions/core/noteNode.ts", 1, 80, "MarkdownNote前端注释") + for repo, file in [("dw", "LICENSE.txt"), ("frontend", "LICENSE"), ("vhs", "LICENSE")]: + ref(repo, file, 1, 8, "原仓许可文本,逐文件声明保持;未安装执行") + ref( + "dw", + "src/custom_controlnet_aux/dwpose/__init__.py", + 1, + 7, + "本文件另保留CMU非商业声明;不把仓级许可当全部文件许可", + ) + + specs = {} + + def spec(cls, name, label, typ, default, unit, limits, effect, evidence, role="scalar"): + specs[cls, name] = dict( + field=name, + label=label, + type=typ, + schema_default=default, + unit=unit, + limits=limits, + effect=effect, + evidence=evidence, + role=role, + ) + + for name, label, flag in [ + ("detect_hand", "手部绘制开关", "include_hand"), + ("detect_body", "身体绘制开关", "include_body"), + ("detect_face", "面部绘制开关", "include_face"), + ]: + spec( + "DWPreprocessor", + name, + label, + "COMBO", + "enable", + "字符串枚举", + "enable / disable", + f"源保存enable字符串,包装器以等于enable转布尔再传{flag}控制绘制。" + "模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + [dw, dwreg, loader, helper, detector], + ) + spec( + "DWPreprocessor", + "resolution", + "姿态图输出分辨率", + "INT", + "512", + "像素(输出短边目标)", + "schema64~16384,step64;helper只接受>=64的int,否则回退512", + "源1024传detect_resolution。此固定实现先以resolution=0处理输入、检测姿态并绘制," + "随后将画布短边缩放到目标并填充到64倍数,再去填充;不是保证检测器先以1024推理," + "不是视频宽度/总帧数或模型超分。比例取整及原素材尺寸决定实际尺寸,未计算真实输出。", + [dw, helper, detector, common], + ) + spec( + "DWPreprocessor", + "bbox_detector", + "人体框检测模型引用", + "COMBO", + "yolox_l.onnx", + "文件名枚举", + "None / yolox_l.torchscript.pt / yolox_l." + "onnx / yolo_nas_l_fp16.onnx / yolo_nas_m" + "_fp16.onnx / yolo_nas_s_fp16.onnx", + "源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支," + "随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。", + [dw, detector, download, model_load], + ) + spec( + "DWPreprocessor", + "pose_estimator", + "姿态估计模型引用", + "COMBO", + "dw-ll_ucoco_384_bs5.torchscript.pt", + "文件名枚举", + "dw-ll_ucoco_384_bs5.torchscript.pt / dw-ll_ucoco_384.onnx / dw-ll_ucoco.onnx", + "源TorchScript文件选择hr16/DWPose-TorchScript-BatchSize5。schema默认是此文件," + "estimate_pose函数签名默认却为dw-ll_ucoco_384.onnx,不能混写。静态from_pretrained可触发缺文件下载和加载," + "本轮均未调用。名称bs5不证明本视频每批5帧或目标性能。", + [dw, detector, download, model_load], + ) + spec( + "DWPreprocessor", + "scale_stick_for_xinsr_cn", + "身体骨架线宽缩放开关", + "COMBO", + "disable", + "字符串枚举", + "disable / enable;开启时max_side<500倍率1,否则min(2+max_side//1000,7)", + "源disable,转false传xinsr_stick_scaling。固定draw_bodypose基础stickwidth=4," + "关闭倍率1,开启按画布最大边分档;不是图像模型超分或目标安装证明。身体绘制关闭时不能据此保证有身体线条。", + [dw, detector, drawing], + ) + spec( + "VHS_LoadVideo", + "video", + "输入视频文件引用", + "COMBO", + "动态input目录文件列表,无固定文件默认", + "文件名", + "目录文件扩展webm/mp4/mkv/gif/mov;目标列表未知", + "源1月11日-1.mp4保持原文,参考LoadVideoUpload转annotated filepath后加载。未访问此媒体;" + "真实时长、分辨率、帧数、原FPS及音频存在性未知。", + [load, loadrun], + ) + spec( + "VHS_LoadVideo", + "force_rate", + "强制读取帧率", + "FLOAT/INT", + "0", + "帧/秒", + "0~60,step1,0禁用强制重采样", + "源整数0:cv生成器以原fps决定target_frame_time,非已知原FPS;非零用倒数目标时间重采样。" + "后续select_every_nth还会改变loaded_fps;AnimateDiff前端回调恢复条件及UE未知,不能称最终FPS=0/8/24。", + [load, gen, loadrun, loadfmt, loadcb, kv], + ) + for name, label in [("custom_width", "自定义宽度"), ("custom_height", "自定义高度")]: + spec( + "VHS_LoadVideo", + name, + label, + "INT", + "0", + "像素", + "0~8192;0禁用该维强制尺寸", + "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。" + "单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。" + "前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + [load, gen, loadrun, loadfmt, constants, loadcb, kv], + ) + spec( + "VHS_LoadVideo", + "frame_load_cap", + "读取帧数上限", + "INT", + "0", + "帧", + "0~9007199254740991,step1;0不设置此项帧上限", + "源0不表示零帧,非零在生成循环限制frames_added;内存、素材结束或格式条件仍可限制加载," + "不能称无限加载或已读取全部。", + [load, gen, loadrun, constants], + ) + spec( + "VHS_LoadVideo", + "skip_first_frames", + "跳过开头帧数", + "INT", + "0", + "生成器计数的帧", + "0~9007199254740991,step1", + "源0不主动跳开头;cv循环先累计total_frame_count并跳过<=skip_first_frames部分,然后处理nth选择。" + "不是秒或视频时间戳;强制帧率与实际输入决定时间关系。", + [load, gen, loadrun, constants], + ) + spec( + "VHS_LoadVideo", + "select_every_nth", + "读取间隔", + "INT", + "1", + "帧间隔倍率", + "1~9007199254740991,step1", + "源1保留生成器每个可选帧;cv循环按计数取模选择。loaded_fps由target_frame_time再乘此间隔后的倒数给出," + "不直接用标题或缓存猜帧率。", + [load, gen, loadrun, constants], + ) + spec( + "VHS_LoadVideo", + "format", + "加载格式约束", + "COMBO", + "AnimateDiff", + "格式预设", + "固定包内None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan;允许外部增补,目标动态成员未知", + "源AnimateDiff定义target_rate=8、dim=(8,0,512,512)。后端用dim决定尺寸对齐,不把target_rate自动当最终帧率。" + "前端format回调将rate reset设8、尺寸reset设512,只在原值等于旧reset时改value并回调;" + "具名恢复按实际控件顺序赋值并触发回调,无法只看对象键顺序推断最终控件值。UE7.5.2钩子次序未知。", + [loadfmt, loadrun, loadcb, kv], + ) + spec( + "VHS_VideoCombine", + "frame_rate", + "合成帧率保存缓存(外线覆盖)", + "FLOAT/INT", + "8", + "帧/秒", + "schema min1、step1,无显式max;源int24并有link12", + "保存24与预览24均不是最终FPS。物理link12从Info9槽0接Combine4输入槽4 frame_rate;" + "固定包Info依次取loaded_fps等键,槽0读video_info.loaded_fps。Load2按target_frame_time和间隔构造此值。" + "固定前端先控件后写解析外线覆盖同名输入;仅在该参考契约成立范围解释,目标UE/媒体/最终FPS未知。", + [combine, info, loadrun, execute], + "linked_saved", + ) + spec( + "VHS_VideoCombine", + "loop_count", + "视频循环次数设置", + "INT", + "0", + "循环参数", + "0~100,step1", + "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。" + "这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", + [combine, combine_run], + ) + spec( + "VHS_VideoCombine", + "filename_prefix", + "保存文件名前缀", + "STRING", + "AnimateDiff", + "相对前缀字符串", + "由folder_paths输出目录规则解析;真实目录未知", + "源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;" + "不等于预览对象E盘历史fullpath已可访问,不证明任何文件已生成。", + [combine, combine_run], + ) + spec( + "VHS_VideoCombine", + "format", + "视频封装和编码预设", + "COMBO", + "schema首项image/gif,无显式default", + "预设选择", + "当前video/h264-mp4;动态格式目录和运行编码器可用性未知", + "固定包h264-mp4.json提供mp4扩展、libx264、bt709及动态pix_fmt/crf/save_metadata/trim_to_audio。" + "前端format回调插入具名动态控件/输入,VHS保存对象具名恢复;实际目标包、ffmpeg和恢复钩子未核对。", + [combine, h264, formats, dyn, kv], + ) + spec( + "VHS_VideoCombine", + "pix_fmt", + "输出像素格式", + "COMBO", + "首项yuv420p", + "像素格式枚举", + "yuv420p / yuv420p10le", + "源yuv420p传ffmpeg -pix_fmt;只解释固定h264-mp4定义," + "不保证目标编码器可用或实际成片色彩效果。", + [h264, formats, metadata, combine_run, dyn], + ) + spec( + "VHS_VideoCombine", + "crf", + "H264恒定质量参数", + "INT", + "19", + "CRF值", + "固定格式schema0~100,step1;不是目标libx264已接受所有值的证明", + "源12替换格式-crf参数,通常较小数值请求较高质量/较大体积,但目标编码器合法域、产物与体积均未实测;" + "不能把schema上限当编码器运行保证。", + [h264, metadata, combine_run, dyn], + ) + spec( + "VHS_VideoCombine", + "save_metadata", + "视频元数据保存开关", + "BOOLEAN", + "true", + "布尔", + "true / false;固定动态格式字段", + "源true选择ffmpeg元数据写入分支,将prompt及extra_pnginfo等静态构造为元数据;具体文件、内容和成功情况未验证。" + "不是当前流程已运行或预览PNG已存在的证据。", + [h264, metadata, combine_run], + ) + spec( + "VHS_VideoCombine", + "trim_to_audio", + "音轨截取条件", + "BOOLEAN", + "false", + "布尔", + "true / false;仅有audio输入/音频数据的合成分支生效", + "源false在有音频的参考分支设置apad并-shortest,true不加该apad。" + "本图Combine.audio未接,Load音频出口也未接;false不能证明有音频,更不能称保留原音轨。", + [h264, combine_run], + ) + spec( + "VHS_VideoCombine", + "pingpong", + "往返帧序列开关", + "BOOLEAN", + "false", + "布尔", + "true / false", + "源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。", + [combine, combine_run], + ) + spec( + "VHS_VideoCombine", + "save_output", + "保存目录选择", + "BOOLEAN", + "true", + "布尔", + "true / false", + "源true选择folder_paths输出目录,false选临时目录;不等于当前文件已保存。" + "真实目录配置/权限/编码器/文件/时长与姿态视频效果均未知。", + [combine, combine_run], + ) + preview_note = ( + "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。" + "hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath" + "只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;" + "E:\\ComfyUI-Data\\output\\AnimateDiff_00006" + ".mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/vie" + "w或媒体URL。" + "DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同," + "VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。" + ) + for cls in ["VHS_LoadVideo", "VHS_VideoCombine"]: + spec( + cls, + "videopreview", + "历史视频预览缓存(非运行参数)", + "OBJECT", + "无后端schema默认", + "前端状态", + "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + preview_note, + [preview, kv, restore, persist, execute], + "frontend_history", + ) + + fields, comments = [], [] + dw_names = [ + "detect_hand", + "detect_body", + "detect_face", + "resolution", + "bbox_detector", + "pose_estimator", + "scale_stick_for_xinsr_cn", + ] + for i, n in enumerate(source["nodes"]): + values = n["widgets_values"] + if n["type"] == "MarkdownNote": + comments.append( + dict( + node_id=str(n["id"]), + pointer=f"/nodes/{i}/widgets_values/0", + text=values[0], + evidence=[note], + meaning="作者插件链接、更新和准备模型建议,仅为源注释,不证明目标安装或授权更新、下载、停TTS。", + ) + ) + continue + if n["type"] == "VHS_VideoInfoLoaded": + assert values == {} and type(values) is dict + continue + pairs = zip(dw_names, values, strict=True) if isinstance(values, list) else values.items() + for j, (name, value) in enumerate(pairs): + fields.append( + { + **specs[n["type"], name], + "node_id": str(n["id"]), + "definition_node_id": str(n["id"]), + "class_type": n["type"], + "scope": "root", + "pointer": f"/nodes/{i}/widgets_values/" + f"{j if isinstance(values, list) else name}", + "value": value, + "json_type": type(value).__name__, + "execution_note": f"源mode={n['mode']},声明" + f"{n['properties']['cnr_id']}@{n['properties']['ver']};" + "仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。", + } + ) + assert len(fields) == 27 and len(comments) == 1 + overview = ( + "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。" + "合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。" + ) + flow = [ + "5源节点(4实体+MarkdownNote8)、4物理边,全mode0、无子图。" + "27顶层保存位置=7个DW数组项+9个Load对象键+11个Combine对象键" + ",其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。", + "边10 LoadVideo2槽0→DW1.image输入槽0;边4 DW1图像槽" + "0→Combine4.images槽0。DW的POSE_KEYPOINT槽1未接" + ";不据标题当核心SDPose或已输出关键点文件。", + "边11 LoadVideo2槽3→Info9.video_info输入槽0;边1" + "2 Info9槽0→Combine4.frame_rate输入槽4。固定包Inf" + "o槽0取loaded_fps,外线覆盖保存24,依Load的target_fra" + "me_time及select_every_nth构造;中文FPS🟦仅源显示名,不" + "能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证" + "明原FPS。", + "VHS_VideoInfoLoaded9原widgets_values={}为空" + "对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接" + "。Load帧数/音频出口未接、VAE/meta_batch未接,Combine." + "audio/meta_batch/vae也未接;不能称保留原音轨。", + "DW精确源提交136f125c89aed92ced1b6fbb491e13719" + "b72fcc0,真实注册DWPreprocessor→DWPose_Prepro" + "cessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放" + "画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加" + "载分支未调用。", + "VHS声明1.7.9已取官方registry精确发布包并核注册/成员哈希;注册表" + "无Git commit字段,包同字节不等于提交绑定。三类VHS及DW均为插件,不" + "假借core来源,也不把包来源当目标安装证明。", + "frontend1.36.12官方tag对应52bb58d307242a3410" + "3998ef1da8007e47501d5b。核心先按序恢复再onConfigu" + "re,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆" + "盖具名对象。format回调可重建控件/改reset条件,不能按保存对象键顺序推" + "断最终输入。", + "各节点UE7.5.2(含注释),空widget_ue_connectable/i" + "nput_ue_unconnectable和extra空ue_links不证明无" + "改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契" + "约成立范围说明覆盖,不导入执行上游或创建生产可信注册。", + "两videopreview完整历史对象独立保存和展示,含E盘fullpath及P" + "NG workflow缓存;不读取文件/视频,不请求api/view或媒体URL" + ",不把缓存当实际产物/最终FPS。filename_prefix=Animate" + "Diff是保存前缀,区别于旧绝对路径。", + "h264-mp4静态格式含libx264、pix_fmt、crf和元数据/音频选" + "项;schema范围不保证编码器运行合法。实际ffmpeg/编码器/目录/文件、" + "音轨存在性、姿态效果、速度/显存全部未知。未实跑、未定稿、未启用,不增加可靠转换" + "或候选。", + ] + flow += ["源物理边:" + json.dumps(e, ensure_ascii=False) for e in source["links"]] + flow += [ + f"源节点{n['id']} {n['type']}:mode={n['mode']};UE=" + + json.dumps(n["properties"]["ue_properties"], ensure_ascii=False) + for n in source["nodes"] + ] + + # Complete nested preview pointer/value/type table, visible through existing flow details. + def leaves(obj, pointer): + if isinstance(obj, dict): + for key, value in obj.items(): + yield from leaves(value, pointer + "/" + key) + else: + yield pointer, obj + + for field in fields: + if field["field"] == "videopreview": + flow += [ + f"历史预览嵌套(不另计保存位置){p} [{type(v).__name__}]=" + + json.dumps(v, ensure_ascii=False) + for p, v in leaves(field["value"], field["pointer"]) + ] + return dict( + source_path=path, + source_sha1=hashlib.sha1(raw).hexdigest(), + source_sha256=hashlib.sha256(raw).hexdigest(), + canonical_sha256=hashlib.sha256(canonical(source)).hexdigest(), + notice="固定版本参考说明;历史预览不是执行结果,环境/UE和实际效果未核对,转换仍关闭。", + user_overview=overview, + versions=[ + "DW源声明完整commit=136f125c89aed92ced1b6fbb491e13719b72fcc0(精确文本参考,非安装证明)", + "VHS源声明1.7.9:官方registry发布包SHA256=ac63991d" + "8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9" + "d5fe61059f57cdf8;Git提交绑定未知,包同字节不等于提交绑定", + "frontend源声明1.36.12→官方tag完整commit52bb58d3" + "07242a34103998ef1da8007e47501d5b;UE7.5.2" + "钩子次序和目标安装未知", + ], + counts=dict( + saved_fields=27, + scalar_saved_positions=25, + history_objects=2, + source_notes=1, + source_nodes=5, + physical_edges=4, + linked_saved_fields=1, + frontend_only=2, + final_scalars=0, + final_prompt_constructed=False, + ), + fields=fields, + sources=refs, + comments=comments, + flow=flow, + flow_evidence=list(range(len(refs))), + zero_saved_nodes=[ + dict( + node_id="9", + class_type="VHS_VideoInfoLoaded", + evidence=[info, registry], + effect=flow[3], + ) + ], + steps=[ + overview, + "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", + "保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。", + ], + ) diff --git a/docs/hel-892/openpose-document-evidence/definition-0.json b/docs/hel-892/openpose-document-evidence/definition-0.json new file mode 100644 index 00000000..798d3a0b --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/definition-0.json @@ -0,0 +1,1254 @@ +{ + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "source_sha1": "1eeeab4e68accd810c54a326a88b9022846ee8ae", + "source_sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608", + "canonical_sha256": "8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201", + "notice": "固定版本参考说明;历史预览不是执行结果,环境/UE和实际效果未核对,转换仍关闭。", + "user_overview": "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "versions": [ + "DW源声明完整commit=136f125c89aed92ced1b6fbb491e13719b72fcc0(精确文本参考,非安装证明)", + "VHS源声明1.7.9:官方registry发布包SHA256=ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8;Git提交绑定未知,包同字节不等于提交绑定", + "frontend源声明1.36.12→官方tag完整commit52bb58d307242a34103998ef1da8007e47501d5b;UE7.5.2钩子次序和目标安装未知" + ], + "counts": { + "saved_fields": 27, + "scalar_saved_positions": 25, + "history_objects": 2, + "source_notes": 1, + "source_nodes": 5, + "physical_edges": 4, + "linked_saved_fields": 1, + "frontend_only": 2, + "final_scalars": 0, + "final_prompt_constructed": false + }, + "fields": [ + { + "field": "detect_hand", + "label": "手部绘制开关", + "type": "COMBO", + "schema_default": "enable", + "unit": "字符串枚举", + "limits": "enable / disable", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_hand控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/0", + "value": "enable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "detect_body", + "label": "身体绘制开关", + "type": "COMBO", + "schema_default": "enable", + "unit": "字符串枚举", + "limits": "enable / disable", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_body控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/1", + "value": "enable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "detect_face", + "label": "面部绘制开关", + "type": "COMBO", + "schema_default": "enable", + "unit": "字符串枚举", + "limits": "enable / disable", + "effect": "源保存enable字符串,包装器以等于enable转布尔再传include_face控制绘制。模型先检测后绘制;关闭某部分不证明省去该部分推理,也不承诺人数、精度或速度。源值不改bool。", + "evidence": [ + 0, + 1, + 2, + 3, + 4 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/2", + "value": "enable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "resolution", + "label": "姿态图输出分辨率", + "type": "INT", + "schema_default": "512", + "unit": "像素(输出短边目标)", + "limits": "schema64~16384,step64;helper只接受>=64的int,否则回退512", + "effect": "源1024传detect_resolution。此固定实现先以resolution=0处理输入、检测姿态并绘制,随后将画布短边缩放到目标并填充到64倍数,再去填充;不是保证检测器先以1024推理,不是视频宽度/总帧数或模型超分。比例取整及原素材尺寸决定实际尺寸,未计算真实输出。", + "evidence": [ + 0, + 3, + 4, + 7 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/3", + "value": 1024, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "bbox_detector", + "label": "人体框检测模型引用", + "type": "COMBO", + "schema_default": "yolox_l.onnx", + "unit": "文件名枚举", + "limits": "None / yolox_l.torchscript.pt / yolox_l.onnx / yolo_nas_l_fp16.onnx / yolo_nas_m_fp16.onnx / yolo_nas_s_fp16.onnx", + "effect": "源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支,随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。", + "evidence": [ + 0, + 4, + 8, + 5 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/4", + "value": "yolox_l.onnx", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "pose_estimator", + "label": "姿态估计模型引用", + "type": "COMBO", + "schema_default": "dw-ll_ucoco_384_bs5.torchscript.pt", + "unit": "文件名枚举", + "limits": "dw-ll_ucoco_384_bs5.torchscript.pt / dw-ll_ucoco_384.onnx / dw-ll_ucoco.onnx", + "effect": "源TorchScript文件选择hr16/DWPose-TorchScript-BatchSize5。schema默认是此文件,estimate_pose函数签名默认却为dw-ll_ucoco_384.onnx,不能混写。静态from_pretrained可触发缺文件下载和加载,本轮均未调用。名称bs5不证明本视频每批5帧或目标性能。", + "evidence": [ + 0, + 4, + 8, + 5 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/5", + "value": "dw-ll_ucoco_384_bs5.torchscript.pt", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "scale_stick_for_xinsr_cn", + "label": "身体骨架线宽缩放开关", + "type": "COMBO", + "schema_default": "disable", + "unit": "字符串枚举", + "limits": "disable / enable;开启时max_side<500倍率1,否则min(2+max_side//1000,7)", + "effect": "源disable,转false传xinsr_stick_scaling。固定draw_bodypose基础stickwidth=4,关闭倍率1,开启按画布最大边分档;不是图像模型超分或目标安装证明。身体绘制关闭时不能据此保证有身体线条。", + "evidence": [ + 0, + 4, + 6 + ], + "role": "scalar", + "node_id": "1", + "definition_node_id": "1", + "class_type": "DWPreprocessor", + "scope": "root", + "pointer": "/nodes/1/widgets_values/6", + "value": "disable", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui_controlnet_aux@136f125c89aed92ced1b6fbb491e13719b72fcc0;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "video", + "label": "输入视频文件引用", + "type": "COMBO", + "schema_default": "动态input目录文件列表,无固定文件默认", + "unit": "文件名", + "limits": "目录文件扩展webm/mp4/mkv/gif/mov;目标列表未知", + "effect": "源1月11日-1.mp4保持原文,参考LoadVideoUpload转annotated filepath后加载。未访问此媒体;真实时长、分辨率、帧数、原FPS及音频存在性未知。", + "evidence": [ + 9, + 11 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/video", + "value": "1月11日-1.mp4", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "force_rate", + "label": "强制读取帧率", + "type": "FLOAT/INT", + "schema_default": "0", + "unit": "帧/秒", + "limits": "0~60,step1,0禁用强制重采样", + "effect": "源整数0:cv生成器以原fps决定target_frame_time,非已知原FPS;非零用倒数目标时间重采样。后续select_every_nth还会改变loaded_fps;AnimateDiff前端回调恢复条件及UE未知,不能称最终FPS=0/8/24。", + "evidence": [ + 9, + 10, + 11, + 12, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/force_rate", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "custom_width", + "label": "自定义宽度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0禁用该维强制尺寸", + "effect": "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + "evidence": [ + 9, + 10, + 11, + 12, + 13, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/custom_width", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "custom_height", + "label": "自定义高度", + "type": "INT", + "schema_default": "0", + "unit": "像素", + "limits": "0~8192;0禁用该维强制尺寸", + "effect": "两维均0时先保留原比例尺寸,再按格式downscale_ratio对齐取整;AnimateDiff dim[0]=8。单维非零时另一维按比例推算,两维非零时分别指定。源两维0并不证明像素尺寸完全不变。前端format回调可设置step/mod/reset,只有wasDefault条件会改value;最终恢复取值和素材未知。", + "evidence": [ + 9, + 10, + 11, + 12, + 13, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/custom_height", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "frame_load_cap", + "label": "读取帧数上限", + "type": "INT", + "schema_default": "0", + "unit": "帧", + "limits": "0~9007199254740991,step1;0不设置此项帧上限", + "effect": "源0不表示零帧,非零在生成循环限制frames_added;内存、素材结束或格式条件仍可限制加载,不能称无限加载或已读取全部。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/frame_load_cap", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "skip_first_frames", + "label": "跳过开头帧数", + "type": "INT", + "schema_default": "0", + "unit": "生成器计数的帧", + "limits": "0~9007199254740991,step1", + "effect": "源0不主动跳开头;cv循环先累计total_frame_count并跳过<=skip_first_frames部分,然后处理nth选择。不是秒或视频时间戳;强制帧率与实际输入决定时间关系。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/skip_first_frames", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "select_every_nth", + "label": "读取间隔", + "type": "INT", + "schema_default": "1", + "unit": "帧间隔倍率", + "limits": "1~9007199254740991,step1", + "effect": "源1保留生成器每个可选帧;cv循环按计数取模选择。loaded_fps由target_frame_time再乘此间隔后的倒数给出,不直接用标题或缓存猜帧率。", + "evidence": [ + 9, + 10, + 11, + 13 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/select_every_nth", + "value": 1, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "format", + "label": "加载格式约束", + "type": "COMBO", + "schema_default": "AnimateDiff", + "unit": "格式预设", + "limits": "固定包内None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan;允许外部增补,目标动态成员未知", + "effect": "源AnimateDiff定义target_rate=8、dim=(8,0,512,512)。后端用dim决定尺寸对齐,不把target_rate自动当最终帧率。前端format回调将rate reset设8、尺寸reset设512,只在原值等于旧reset时改value并回调;具名恢复按实际控件顺序赋值并触发回调,无法只看对象键顺序推断最终控件值。UE7.5.2钩子次序未知。", + "evidence": [ + 12, + 11, + 22, + 21 + ], + "role": "scalar", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/format", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "videopreview", + "label": "历史视频预览缓存(非运行参数)", + "type": "OBJECT", + "schema_default": "无后端schema默认", + "unit": "前端状态", + "limits": "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + "effect": "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。", + "evidence": [ + 24, + 21, + 25, + 26, + 27 + ], + "role": "frontend_history", + "node_id": "2", + "definition_node_id": "2", + "class_type": "VHS_LoadVideo", + "scope": "root", + "pointer": "/nodes/2/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "force_rate": 0, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "filename": "1月11日-1.mp4", + "type": "input", + "format": "video/mp4" + } + }, + "json_type": "dict", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "frame_rate", + "label": "合成帧率保存缓存(外线覆盖)", + "type": "FLOAT/INT", + "schema_default": "8", + "unit": "帧/秒", + "limits": "schema min1、step1,无显式max;源int24并有link12", + "effect": "保存24与预览24均不是最终FPS。物理link12从Info9槽0接Combine4输入槽4 frame_rate;固定包Info依次取loaded_fps等键,槽0读video_info.loaded_fps。Load2按target_frame_time和间隔构造此值。固定前端先控件后写解析外线覆盖同名输入;仅在该参考契约成立范围解释,目标UE/媒体/最终FPS未知。", + "evidence": [ + 14, + 19, + 11, + 27 + ], + "role": "linked_saved", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/frame_rate", + "value": 24, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "loop_count", + "label": "视频循环次数设置", + "type": "INT", + "schema_default": "0", + "unit": "循环参数", + "limits": "0~100,step1", + "effect": "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/loop_count", + "value": 0, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "filename_prefix", + "label": "保存文件名前缀", + "type": "STRING", + "schema_default": "AnimateDiff", + "unit": "相对前缀字符串", + "limits": "由folder_paths输出目录规则解析;真实目录未知", + "effect": "源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;不等于预览对象E盘历史fullpath已可访问,不证明任何文件已生成。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/filename_prefix", + "value": "AnimateDiff", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "format", + "label": "视频封装和编码预设", + "type": "COMBO", + "schema_default": "schema首项image/gif,无显式default", + "unit": "预设选择", + "limits": "当前video/h264-mp4;动态格式目录和运行编码器可用性未知", + "effect": "固定包h264-mp4.json提供mp4扩展、libx264、bt709及动态pix_fmt/crf/save_metadata/trim_to_audio。前端format回调插入具名动态控件/输入,VHS保存对象具名恢复;实际目标包、ffmpeg和恢复钩子未核对。", + "evidence": [ + 14, + 18, + 17, + 23, + 21 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/format", + "value": "video/h264-mp4", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "pix_fmt", + "label": "输出像素格式", + "type": "COMBO", + "schema_default": "首项yuv420p", + "unit": "像素格式枚举", + "limits": "yuv420p / yuv420p10le", + "effect": "源yuv420p传ffmpeg -pix_fmt;只解释固定h264-mp4定义,不保证目标编码器可用或实际成片色彩效果。", + "evidence": [ + 18, + 17, + 16, + 15, + 23 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/pix_fmt", + "value": "yuv420p", + "json_type": "str", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "crf", + "label": "H264恒定质量参数", + "type": "INT", + "schema_default": "19", + "unit": "CRF值", + "limits": "固定格式schema0~100,step1;不是目标libx264已接受所有值的证明", + "effect": "源12替换格式-crf参数,通常较小数值请求较高质量/较大体积,但目标编码器合法域、产物与体积均未实测;不能把schema上限当编码器运行保证。", + "evidence": [ + 18, + 16, + 15, + 23 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/crf", + "value": 12, + "json_type": "int", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "save_metadata", + "label": "视频元数据保存开关", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true / false;固定动态格式字段", + "effect": "源true选择ffmpeg元数据写入分支,将prompt及extra_pnginfo等静态构造为元数据;具体文件、内容和成功情况未验证。不是当前流程已运行或预览PNG已存在的证据。", + "evidence": [ + 18, + 16, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/save_metadata", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "trim_to_audio", + "label": "音轨截取条件", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true / false;仅有audio输入/音频数据的合成分支生效", + "effect": "源false在有音频的参考分支设置apad并-shortest,true不加该apad。本图Combine.audio未接,Load音频出口也未接;false不能证明有音频,更不能称保留原音轨。", + "evidence": [ + 18, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/trim_to_audio", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "pingpong", + "label": "往返帧序列开关", + "type": "BOOLEAN", + "schema_default": "false", + "unit": "布尔", + "limits": "true / false", + "effect": "源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/pingpong", + "value": false, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "save_output", + "label": "保存目录选择", + "type": "BOOLEAN", + "schema_default": "true", + "unit": "布尔", + "limits": "true / false", + "effect": "源true选择folder_paths输出目录,false选临时目录;不等于当前文件已保存。真实目录配置/权限/编码器/文件/时长与姿态视频效果均未知。", + "evidence": [ + 14, + 15 + ], + "role": "scalar", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/save_output", + "value": true, + "json_type": "bool", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + }, + { + "field": "videopreview", + "label": "历史视频预览缓存(非运行参数)", + "type": "OBJECT", + "schema_default": "无后端schema默认", + "unit": "前端状态", + "limits": "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", + "effect": "这是前端历史预览状态对象,完整嵌套原文按原JSON类型展示,不作为执行输入或已生成证明。hidden/paused是界面可见和暂停状态;params中的filename/type/format/尺寸/读取选项或frame_rate/workflow/fullpath只是缓存。Load params.type=input与Combine type=output不能证明媒体存在;E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4是旧路径,workflow是旧PNG名;不读取路径、不请求api/view或媒体URL。DOM widget options.serialize=false与VHS自定义onSerialize枚举全部widgets并不相同,VHS仍可把预览对象存进工作流;API是否排除取决固定前端控件options,目标UE钩子未知。", + "evidence": [ + 24, + 21, + 25, + 26, + 27 + ], + "role": "frontend_history", + "node_id": "4", + "definition_node_id": "4", + "class_type": "VHS_VideoCombine", + "scope": "root", + "pointer": "/nodes/4/widgets_values/videopreview", + "value": { + "hidden": false, + "paused": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "format": "video/h264-mp4", + "frame_rate": 24, + "fullpath": "E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4", + "subfolder": "", + "type": "output", + "workflow": "AnimateDiff_00006.png" + } + }, + "json_type": "dict", + "execution_note": "源mode=0,声明comfyui-videohelpersuite@1.7.9;仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。" + } + ], + "sources": [ + { + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "lines": [ + 32, + 105 + ], + "claim": "DWPose schema、字符串开关、权重来源选择、调用和双出口" + }, + { + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "lines": [ + 159, + 165 + ], + "claim": "DWPreprocessor真实注册" + }, + { + "id": "dw", + "file": "__init__.py", + "local_file": "../openpose-reference/dw____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4", + "lines": [ + 25, + 66 + ], + "claim": "扫描node_wrappers合并注册;失败可缺失节点" + }, + { + "id": "dw", + "file": "utils.py", + "local_file": "../openpose-reference/dw__utils.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5", + "lines": [ + 62, + 120 + ], + "claim": "默认、范围、逐帧调用和resolution传递" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "lines": [ + 217, + 279 + ], + "claim": "权重加载、检测、绘制与结果缩放顺序" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/wholebody.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f", + "lines": [ + 19, + 78 + ], + "claim": "模型类型分支及加载设备,仅静态条件" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c", + "lines": [ + 82, + 138 + ], + "claim": "身体骨架线宽缩放条件" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "lines": [ + 155, + 183 + ], + "claim": "短边比例缩放与64倍数填充/去填充闭包" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "lines": [ + 289, + 342 + ], + "claim": "文件缺失时静态下载分支;不授权下载" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 423, + 474 + ], + "claim": "VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 59, + 168 + ], + "claim": "尺寸取整、force_rate、跳帧、间隔与上限" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 293, + 420 + ], + "claim": "加载尺寸/内存上限、格式、loaded_fps和四出口" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 22, + 52 + ], + "claim": "AnimateDiff格式默认及dim/target_rate,非最终帧率证明" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a", + "git_commit_binding": "unknown", + "lines": [ + 19, + 56 + ], + "claim": "DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 235, + 289 + ], + "claim": "合成schema默认、可选输入与签名" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 328, + 625 + ], + "claim": "输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 94, + 191 + ], + "claim": "动态格式默认替换、元数据ffmpeg分支" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 46, + 108 + ], + "claim": "格式发现和动态控件,不推定目标安装可用" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../openpose-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown", + "lines": [ + 1, + 15 + ], + "claim": "h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 941, + 970 + ], + "claim": "VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 1024, + 1043 + ], + "claim": "VHS三个节点真实类注册,均插件而非核心" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 6, + 169 + ], + "claim": "具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 670, + 711 + ], + "claim": "加载格式回调只在wasDefault条件重设值,随后逐控件回调" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 1241, + 1298 + ], + "claim": "合成format回调重建动态控件及同名输入" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 934, + 943 + ], + "claim": "videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "lines": [ + 862, + 875 + ], + "claim": "核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "lines": [ + 907, + 929 + ], + "claim": "核心先数组保存再onSerialize,VHS回调覆盖对象" + }, + { + "id": "frontend", + "file": "src/utils/executionUtil.ts", + "local_file": "../openpose-reference/frontend__src__utils__executionUtil.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36", + "lines": [ + 86, + 127 + ], + "claim": "先可序列化控件后物理连线,外线覆盖同名frame_rate" + }, + { + "id": "frontend", + "file": "src/extensions/core/noteNode.ts", + "local_file": "../openpose-reference/frontend__src__extensions__core__noteNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/extensions/core/noteNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2", + "lines": [ + 1, + 80 + ], + "claim": "MarkdownNote前端注释" + }, + { + "id": "dw", + "file": "LICENSE.txt", + "local_file": "../openpose-reference/dw__LICENSE.txt", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/LICENSE.txt", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "id": "frontend", + "file": "LICENSE", + "local_file": "../openpose-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/LICENSE", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "../openpose-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "lines": [ + 1, + 7 + ], + "claim": "本文件另保留CMU非商业声明;不把仓级许可当全部文件许可" + } + ], + "comments": [ + { + "node_id": "8", + "pointer": "/nodes/0/widgets_values/0", + "text": "## Custom Nodes\n\n- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n", + "evidence": [ + 28 + ], + "meaning": "作者插件链接、更新和准备模型建议,仅为源注释,不证明目标安装或授权更新、下载、停TTS。" + } + ], + "flow": [ + "5源节点(4实体+MarkdownNote8)、4物理边,全mode0、无子图。27顶层保存位置=7个DW数组项+9个Load对象键+11个Combine对象键,其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。", + "边10 LoadVideo2槽0→DW1.image输入槽0;边4 DW1图像槽0→Combine4.images槽0。DW的POSE_KEYPOINT槽1未接;不据标题当核心SDPose或已输出关键点文件。", + "边11 LoadVideo2槽3→Info9.video_info输入槽0;边12 Info9槽0→Combine4.frame_rate输入槽4。固定包Info槽0取loaded_fps,外线覆盖保存24,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名,不能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证明原FPS。", + "VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。", + "DW精确源提交136f125c89aed92ced1b6fbb491e13719b72fcc0,真实注册DWPreprocessor→DWPose_Preprocessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加载分支未调用。", + "VHS声明1.7.9已取官方registry精确发布包并核注册/成员哈希;注册表无Git commit字段,包同字节不等于提交绑定。三类VHS及DW均为插件,不假借core来源,也不把包来源当目标安装证明。", + "frontend1.36.12官方tag对应52bb58d307242a34103998ef1da8007e47501d5b。核心先按序恢复再onConfigure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条件,不能按保存对象键顺序推断最终输入。", + "各节点UE7.5.2(含注释),空widget_ue_connectable/input_ue_unconnectable和extra空ue_links不证明无改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契约成立范围说明覆盖,不导入执行上游或创建生产可信注册。", + "两videopreview完整历史对象独立保存和展示,含E盘fullpath及PNG workflow缓存;不读取文件/视频,不请求api/view或媒体URL,不把缓存当实际产物/最终FPS。filename_prefix=AnimateDiff是保存前缀,区别于旧绝对路径。", + "h264-mp4静态格式含libx264、pix_fmt、crf和元数据/音频选项;schema范围不保证编码器运行合法。实际ffmpeg/编码器/目录/文件、音轨存在性、姿态效果、速度/显存全部未知。未实跑、未定稿、未启用,不增加可靠转换或候选。", + "源物理边:[4, 1, 0, 4, 0, \"IMAGE\"]", + "源物理边:[10, 2, 0, 1, 0, \"IMAGE\"]", + "源物理边:[11, 2, 3, 9, 0, \"VHS_VIDEOINFO\"]", + "源物理边:[12, 9, 0, 4, 4, \"FLOAT\"]", + "源节点8 MarkdownNote:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点1 DWPreprocessor:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点2 VHS_LoadVideo:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "源节点9 VHS_VideoInfoLoaded:mode=0;UE={\"widget_ue_connectable\": {}, \"input_ue_unconnectable\": {}, \"version\": \"7.5.2\"}", + "源节点4 VHS_VideoCombine:mode=0;UE={\"widget_ue_connectable\": {}, \"version\": \"7.5.2\", \"input_ue_unconnectable\": {}}", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/hidden [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/paused [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/force_rate [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_width [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/custom_height [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/frame_load_cap [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/skip_first_frames [int]=0", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/select_every_nth [int]=1", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/filename [str]=\"1月11日-1.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/type [str]=\"input\"", + "历史预览嵌套(不另计保存位置)/nodes/2/widgets_values/videopreview/params/format [str]=\"video/mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/hidden [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/paused [bool]=false", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/filename [str]=\"AnimateDiff_00006.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/format [str]=\"video/h264-mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/frame_rate [int]=24", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/fullpath [str]=\"E:\\\\ComfyUI-Data\\\\output\\\\AnimateDiff_00006.mp4\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/subfolder [str]=\"\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/type [str]=\"output\"", + "历史预览嵌套(不另计保存位置)/nodes/4/widgets_values/videopreview/params/workflow [str]=\"AnimateDiff_00006.png\"" + ], + "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 + ], + "zero_saved_nodes": [ + { + "node_id": "9", + "class_type": "VHS_VideoInfoLoaded", + "evidence": [ + 19, + 20 + ], + "effect": "VHS_VideoInfoLoaded9原widgets_values={}为空对象、零保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。" + } + ], + "steps": [ + "这张图拟把视频画面交给DWPose绘制人物姿态,再合成视频;关键点第二出口和音频均未接,不能称输出关键点文件或保留原音轨。合成帧率有外线覆盖,保存24与两处历史预览均不是实跑结果。插件、UE和真实媒体未核对,转换仍关闭。", + "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", + "保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。" + ] +} diff --git a/docs/hel-892/openpose-document-evidence/development-corrections.md b/docs/hel-892/openpose-document-evidence/development-corrections.md new file mode 100644 index 00000000..f338b93d --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/development-corrections.md @@ -0,0 +1,3 @@ +初期取GitHub API遇403限流,改固定git ls-remote tag记录、完整commit raw文本及patch原文;DW许可原文件是LICENSE.txt(初取LICENSE返回404已纠正)。未做广域历史搜索,未重扫SDPose。DW merge的.patch包含被合并提交序列,不能把其首行From当merge SHA;精确源地址使用声明的完整commit,patch仅保留原件。 + +开发中Ruff初检发现未用变量和长行(lint-initial.txt),修正引用与折行;新专项初跑281通过/1失败(中文流程缺外线覆盖字样),补清实际说明;受影响初跑2715通过/1失败(SDPose历史比较先移除新块后又取其交换定义),调整移除顺序保留交换拒绝断言。最终受影响2716通过/0失败/1警告,Ruff check/format均0;历史失败记录不覆盖成绿。新专项282例已包含最终总数,不另行相加。 diff --git a/docs/hel-892/openpose-document-evidence/fetch_sources.py b/docs/hel-892/openpose-document-evidence/fetch_sources.py new file mode 100644 index 00000000..74a7f79a --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/fetch_sources.py @@ -0,0 +1,156 @@ +"""Fetch fixed source text and registry archive; never import upstream code.""" + +import hashlib +import io +import json +import subprocess +import urllib.request +import zipfile +from pathlib import Path + +OUT = Path(__file__).resolve().parent.parent / "openpose-reference" +FILES = { + "dw": ( + "Fannovel16/comfyui_controlnet_aux", + "136f125c89aed92ced1b6fbb491e13719b72fcc0", + [ + "LICENSE.txt", + "__init__.py", + "node_wrappers/dwpose.py", + "utils.py", + "src/custom_controlnet_aux/dwpose/__init__.py", + "src/custom_controlnet_aux/dwpose/wholebody.py", + "src/custom_controlnet_aux/dwpose/util.py", + "src/custom_controlnet_aux/util.py", + ], + ), + "frontend": ( + "Comfy-Org/ComfyUI_frontend", + "v1.36.12", + [ + "LICENSE", + "src/lib/litegraph/src/LGraphNode.ts", + "src/utils/executionUtil.ts", + "src/extensions/core/noteNode.ts", + ], + ), +} +VHS = [ + "LICENSE", + "__init__.py", + "pyproject.toml", + "videohelpersuite/nodes.py", + "videohelpersuite/load_video_nodes.py", + "videohelpersuite/utils.py", + "video_formats/h264-mp4.json", + "web/js/VHS.core.js", + "web/js/videoinfo.js", +] + + +def get(url): + return urllib.request.urlopen( + urllib.request.Request(url, headers={"User-Agent": "static-reference"}), timeout=30 + ).read() + + +def main(): + OUT.mkdir(exist_ok=True) + sources, identities = [], [] + for key, (repo, revision, files) in FILES.items(): + if revision.startswith("v"): + raw = subprocess.check_output( + [ + "git", + "ls-remote", + "https://github.com/" + repo + ".git", + "refs/tags/" + revision, + ], + timeout=45, + ) + commit = raw.decode().split()[0] + (OUT / (key + "-tag.txt")).write_bytes(raw) + else: + commit = revision + url = f"https://github.com/{repo}/commit/{commit}.patch" + raw = get(url) + assert b"diff --git" in raw + (OUT / (key + "-commit.patch")).write_bytes(raw) + identities.append( + dict(repo=repo, id=key, revision=revision, commit=commit, installed=False) + ) + for file in files: + url = f"https://raw.githubusercontent.com/{repo}/{commit}/{file}" + raw = get(url) + local = key + "__" + file.replace("/", "__") + (OUT / local).write_bytes(raw) + sources.append( + dict( + id=key, + file=file, + local_file=local, + url=url, + commit=commit, + sha256=hashlib.sha256(raw).hexdigest(), + ) + ) + url = "https://api.comfy.org/nodes/comfyui-videohelpersuite/versions/1.7.9" + raw = get(url) + (OUT / "vhs-registry.json").write_bytes(raw) + release = json.loads(raw) + raw = get(release["downloadUrl"]) + (OUT / "vhs-1.7.9.zip").write_bytes(raw) + sha = hashlib.sha256(raw).hexdigest() + with zipfile.ZipFile(io.BytesIO(raw)) as z: + members = [ + dict(file=n, sha256=hashlib.sha256(z.read(n)).hexdigest()) + for n in z.namelist() + if not n.endswith("/") + ] + for file in VHS: + raw = z.read(file) + local = "vhs__" + file.replace("/", "__") + (OUT / local).write_bytes(raw) + sources.append( + dict( + id="vhs", + file=file, + local_file=local, + url=release["downloadUrl"], + commit="发布包SHA256:" + sha, + sha256=hashlib.sha256(raw).hexdigest(), + git_commit_binding="unknown", + ) + ) + (OUT / "vhs-package-index.json").write_text( + json.dumps( + dict( + url=release["downloadUrl"], + sha256=sha, + members=members, + git_commit_binding="unknown", + note="发布包同字节不等于提交绑定", + ), + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + identities.append( + dict( + id="vhs", + version="1.7.9", + package_sha256=sha, + git_commit_binding="unknown", + installed=False, + ) + ) + (OUT / "sources.json").write_text( + json.dumps(dict(sources=sources), ensure_ascii=False, indent=2) + "\n" + ) + (OUT / "identity.json").write_text(json.dumps(identities, ensure_ascii=False, indent=2) + "\n") + print("Fixed DW, frontend and VHS package source text only") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/openpose-document-evidence/fixed-source-index.json b/docs/hel-892/openpose-document-evidence/fixed-source-index.json new file mode 100644 index 00000000..84e2b5a9 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/fixed-source-index.json @@ -0,0 +1,481 @@ +[ + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "lines": [ + 32, + 105 + ], + "claim": "DWPose schema、字符串开关、权重来源选择、调用和双出口" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "../openpose-reference/dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f", + "lines": [ + 159, + 165 + ], + "claim": "DWPreprocessor真实注册" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "__init__.py", + "local_file": "../openpose-reference/dw____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4", + "lines": [ + 25, + 66 + ], + "claim": "扫描node_wrappers合并注册;失败可缺失节点" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "utils.py", + "local_file": "../openpose-reference/dw__utils.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5", + "lines": [ + 62, + 120 + ], + "claim": "默认、范围、逐帧调用和resolution传递" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "lines": [ + 217, + 279 + ], + "claim": "权重加载、检测、绘制与结果缩放顺序" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/wholebody.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f", + "lines": [ + 19, + 78 + ], + "claim": "模型类型分支及加载设备,仅静态条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c", + "lines": [ + 82, + 138 + ], + "claim": "身体骨架线宽缩放条件" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "lines": [ + 155, + 183 + ], + "claim": "短边比例缩放与64倍数填充/去填充闭包" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34", + "lines": [ + 289, + 342 + ], + "claim": "文件缺失时静态下载分支;不授权下载" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 423, + 474 + ], + "claim": "VHS_LoadVideo注册类LoadVideoUpload准确schema与路径引用" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 59, + 168 + ], + "claim": "尺寸取整、force_rate、跳帧、间隔与上限" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 293, + 420 + ], + "claim": "加载尺寸/内存上限、格式、loaded_fps和四出口" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown", + "lines": [ + 22, + 52 + ], + "claim": "AnimateDiff格式默认及dim/target_rate,非最终帧率证明" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a", + "git_commit_binding": "unknown", + "lines": [ + 19, + 56 + ], + "claim": "DIMMAX8192、BIGMAX2**53-1和FLOAT/INT兼容" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 235, + 289 + ], + "claim": "合成schema默认、可选输入与签名" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 328, + 625 + ], + "claim": "输出/临时目录、前缀、循环、ffmpeg、音频条件与预览返回" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 94, + 191 + ], + "claim": "动态格式默认替换、元数据ffmpeg分支" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 46, + 108 + ], + "claim": "格式发现和动态控件,不推定目标安装可用" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "../openpose-reference/vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown", + "lines": [ + 1, + 15 + ], + "claim": "h264-mp4的pix_fmt/crf/元数据/音频截取定义和libx264" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 941, + 970 + ], + "claim": "VideoInfoLoaded依次取loaded_fps/frame_count/duration/width/height" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "../openpose-reference/vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown", + "lines": [ + 1024, + 1043 + ], + "claim": "VHS三个节点真实类注册,均插件而非核心" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 6, + 169 + ], + "claim": "具名对象恢复:先旧回调,逐控件赋值并回调;保存覆盖成对象" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 670, + 711 + ], + "claim": "加载格式回调只在wasDefault条件重设值,随后逐控件回调" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 1241, + 1298 + ], + "claim": "合成format回调重建动态控件及同名输入" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "../openpose-reference/vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown", + "lines": [ + 934, + 943 + ], + "claim": "videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "lines": [ + 862, + 875 + ], + "claim": "核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "../openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f", + "lines": [ + 907, + 929 + ], + "claim": "核心先数组保存再onSerialize,VHS回调覆盖对象" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "frontend", + "file": "src/utils/executionUtil.ts", + "local_file": "../openpose-reference/frontend__src__utils__executionUtil.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36", + "lines": [ + 86, + 127 + ], + "claim": "先可序列化控件后物理连线,外线覆盖同名frame_rate" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "frontend", + "file": "src/extensions/core/noteNode.ts", + "local_file": "../openpose-reference/frontend__src__extensions__core__noteNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/extensions/core/noteNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2", + "lines": [ + 1, + 80 + ], + "claim": "MarkdownNote前端注释" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "LICENSE.txt", + "local_file": "../openpose-reference/dw__LICENSE.txt", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/LICENSE.txt", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "frontend", + "file": "LICENSE", + "local_file": "../openpose-reference/frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/LICENSE", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "vhs", + "file": "LICENSE", + "local_file": "../openpose-reference/vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown", + "lines": [ + 1, + 8 + ], + "claim": "原仓许可文本,逐文件声明保持;未安装执行" + }, + { + "document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "../openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3", + "lines": [ + 1, + 7 + ], + "claim": "本文件另保留CMU非商业声明;不把仓级许可当全部文件许可" + } +] diff --git a/docs/hel-892/openpose-document-evidence/frontend-install.txt b/docs/hel-892/openpose-document-evidence/frontend-install.txt new file mode 100644 index 00000000..d397f2f6 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/frontend-install.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/openpose-document-evidence/import-protection.json b/docs/hel-892/openpose-document-evidence/import-protection.json new file mode 100644 index 00000000..c72e436d --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/import-protection.json @@ -0,0 +1,69 @@ +{ + "base": "fec5ccab441dace8f489fd3eaacc68fa25c47f8e", + "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": 27, + "new_notes": 1, + "old_saved": 394, + "old_notes": 14, + "overviews": 16, + "all_disabled": true, + "doc_done": 0, + "executed": 0 +} diff --git a/docs/hel-892/openpose-document-evidence/lint-initial.txt b/docs/hel-892/openpose-document-evidence/lint-initial.txt new file mode 100644 index 00000000..0459c237 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/lint-initial.txt @@ -0,0 +1,567 @@ +E501 Line too long (104 > 100) + --> calliope-backend/tests/test_openpose_fixed_document.py:106:101 + | +104 | source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW) +105 | set_value(source, path, "forged") +106 | review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(source)).hexdigest() + | ^^^^ +107 | review["caller_digest"] = hashlib.sha256(canonical(review["fixed_version_document"])).hexdigest() +108 | assert not doc(source, review)["fixed_version"]["matched"] + | + +E501 Line too long (101 > 100) + --> calliope-backend/tests/test_openpose_fixed_document.py:107:101 + | +105 | set_value(source, path, "forged") +106 | review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(source)).hexdigest() +107 | review["caller_digest"] = hashlib.sha256(canonical(review["fixed_version_document"])).hexdigest() + | ^ +108 | assert not doc(source, review)["fixed_version"]["matched"] + | + +E501 Line too long (101 > 100) + --> calliope-backend/tests/test_openpose_fixed_document.py:126:101 + | +124 | review = copy.deepcopy(REVIEW) +125 | review["fixed_version_document"][key] = "forged" +126 | review["caller_digest"] = hashlib.sha256(canonical(review["fixed_version_document"])).hexdigest() + | ^ +127 | assert not doc(review=review)["fixed_version"]["matched"] + | + +E501 Line too long (101 > 100) + --> calliope-backend/tests/test_openpose_fixed_document.py:175:101 + | +173 | import sys +174 | code = ("import runpy,sys; from pathlib import Path; ns=runpy.run_path('recompute.py'); " +175 | "ns['require_packages'].__globals__['REPO']=Path(sys.argv[1]); ns['require_packages']()") + | ^ +176 | result = subprocess.run([sys.executable, "-c", code, str(tmp_path)], cwd=OUT, +177 | capture_output=True, text=True) + | + +F841 Local variable `dwreg` is assigned to but never used + --> docs/hel-892/openpose-document-evidence/build_definition.py:39:5 + | +37 | dw = ref("dw", "node_wrappers/dwpose.py", 32, 105, +38 | "DWPose schema、字符串开关、权重来源选择、调用和双出口") +39 | dwreg = ref("dw", "node_wrappers/dwpose.py", 159, 165, "DWPreprocessor真实注册") + | ^^^^^ +40 | loader = ref("dw", "__init__.py", 25, 66, "扫描node_wrappers合并注册;失败可缺失节点") +41 | helper = ref("dw", "utils.py", 62, 120, "默认、范围、逐帧调用和resolution传递") + | +help: Remove assignment to unused variable `dwreg` + +F841 Local variable `loader` is assigned to but never used + --> docs/hel-892/openpose-document-evidence/build_definition.py:40:5 + | +38 | "DWPose schema、字符串开关、权重来源选择、调用和双出口") +39 | dwreg = ref("dw", "node_wrappers/dwpose.py", 159, 165, "DWPreprocessor真实注册") +40 | loader = ref("dw", "__init__.py", 25, 66, "扫描node_wrappers合并注册;失败可缺失节点") + | ^^^^^^ +41 | helper = ref("dw", "utils.py", 62, 120, "默认、范围、逐帧调用和resolution传递") +42 | detector = ref("dw", "src/custom_controlnet_aux/dwpose/__init__.py", 217, 279, + | +help: Remove assignment to unused variable `loader` + +F841 Local variable `restore` is assigned to but never used + --> docs/hel-892/openpose-document-evidence/build_definition.py:82:5 + | +80 | preview = ref("vhs", "web/js/VHS.core.js", 934, 943, +81 | "videopreview DOM状态serialize=false;VHS自定义保存仍枚举全部widget") +82 | restore = ref("frontend", "src/lib/litegraph/src/LGraphNode.ts", 862, 875, + | ^^^^^^^ +83 | "核心先按序恢复再onConfigure,VHS对象须由插件具名回调恢复") +84 | persist = ref("frontend", "src/lib/litegraph/src/LGraphNode.ts", 907, 929, + | +help: Remove assignment to unused variable `restore` + +E501 Line too long (104 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:115:88 + | +113 | "不是视频宽度/总帧数或模型超分。比例取整及原素材尺寸决定实际尺寸,未计算真实输出。", +114 | [dw, helper, detector, common]) +115 | spec("DWPreprocessor", "bbox_detector", "人体框检测模型引用", "COMBO", "yolox_l.onnx", "文件名枚举", + | ^^^^ +116 | "None / yolox_l.torchscript.pt / yolox_l.onnx / yolo_nas_l_fp16.onnx / yolo_nas_m_fp16.onnx / yolo_nas_s_fp16.onnx", +117 | "源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支," + | + +E501 Line too long (125 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:116:101 + | +114 | [dw, helper, detector, common]) +115 | spec("DWPreprocessor", "bbox_detector", "人体框检测模型引用", "COMBO", "yolox_l.onnx", "文件名枚举", +116 | "None / yolox_l.torchscript.pt / yolox_l.onnx / yolo_nas_l_fp16.onnx / yolo_nas_m_fp16.onnx / yolo_nas_s_fp16.onnx", + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +117 | "源yolox_l.onnx选择yzd-v/DWPose来源;det_filename传加载器。缺本地文件时custom_hf_download可进入下载分支," +118 | "随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。", + | + +E501 Line too long (125 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:120:93 + | +118 | "随后依文件类型加载;仅静态说明,不下载或运行。文件名不证明安装/兼容、可下载或显存速度。", +119 | [dw, detector, download]) +120 | spec("DWPreprocessor", "pose_estimator", "姿态估计模型引用", "COMBO", "dw-ll_ucoco_384_bs5.torchscript.pt", "文件名枚举", + | ^^^^^^^^^^^^^^^^^^^^^^^^^ +121 | "dw-ll_ucoco_384_bs5.torchscript.pt / dw-ll_ucoco_384.onnx / dw-ll_ucoco.onnx", +122 | "源TorchScript文件选择hr16/DWPose-TorchScript-BatchSize5。schema默认是此文件," + | + +E501 Line too long (112 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:126:91 + | +124 | "本轮均未调用。名称bs5不证明本视频每批5帧或目标性能。", +125 | [dw, detector, download]) +126 | spec("DWPreprocessor", "scale_stick_for_xinsr_cn", "身体骨架线宽缩放开关", "COMBO", "disable", "字符串枚举", + | ^^^^^^^^^^^^ +127 | "disable / enable;开启时max_side<500倍率1,否则min(2+max_side//1000,7)", +128 | "源disable,转false传xinsr_stick_scaling。固定draw_bodypose基础stickwidth=4," + | + +E501 Line too long (114 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:131:78 + | +129 | "关闭倍率1,开启按画布最大边分档;不是图像模型超分或目标安装证明。身体绘制关闭时不能据此保证有身体线条。", +130 | [dw, detector, drawing]) +131 | spec("VHS_LoadVideo", "video", "输入视频文件引用", "COMBO", "动态input目录文件列表,无固定文件默认", "文件名", + | ^^^^^^^^^^^^^^ +132 | "目录文件扩展webm/mp4/mkv/gif/mov;目标列表未知", +133 | "源1月11日-1.mp4保持原文,参考LoadVideoUpload转annotated filepath后加载。未访问此媒体;" + | + +E501 Line too long (101 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:164:85 + | +162 | "具名恢复按实际控件顺序赋值并触发回调,无法只看对象键顺序推断最终控件值。UE7.5.2钩子次序未知。", +163 | [loadfmt, loadrun, loadcb, kv]) +164 | spec("VHS_VideoCombine", "frame_rate", "合成帧率保存缓存(外线覆盖)", "FLOAT/INT", "8", "帧/秒", + | ^ +165 | "schema min1、step1,无显式max;源int24并有link12", +166 | "保存24与预览24均不是最终FPS。物理link12从Info9槽0接Combine4输入槽4 frame_rate;" + | + +E501 Line too long (103 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:170:87 + | +168 | "固定前端先控件后写解析外线覆盖同名输入;仅在该参考契约成立范围解释,目标UE/媒体/最终FPS未知。", +169 | [combine, info, loadrun, execute], "linked_saved") +170 | spec("VHS_VideoCombine", "loop_count", "视频循环次数设置", "INT", "0", "循环参数", "0~100,step1", + | ^^^ +171 | "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。" +172 | "这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", [combine, combine_run]) + | + +E501 Line too long (104 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:172:71 + | +170 | spec("VHS_VideoCombine", "loop_count", "视频循环次数设置", "INT", "0", "循环参数", "0~100,step1", +171 | "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。" +172 | "这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", [combine, combine_run]) + | ^^^^ +173 | spec("VHS_VideoCombine", "filename_prefix", "保存文件名前缀", "STRING", "AnimateDiff", "相对前缀字符串", +174 | "由folder_paths输出目录规则解析;真实目录未知", + | + +E501 Line too long (108 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:173:90 + | +171 | "源0走空loop_args,不添加ffmpeg loop过滤器;>0按loop/size=num_frames构造。" +172 | "这是当前video格式分支;不能套GIF的无限循环解释或保证播放器循环行为。", [combine, combine_run]) +173 | spec("VHS_VideoCombine", "filename_prefix", "保存文件名前缀", "STRING", "AnimateDiff", "相对前缀字符串", + | ^^^^^^^^ +174 | "由folder_paths输出目录规则解析;真实目录未知", +175 | "源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;" + | + +E501 Line too long (119 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:177:86 + | +175 | "源AnimateDiff用于输出名称及计数,save_output=true选择输出目录;" +176 | "不等于预览对象E盘历史fullpath已可访问,不证明任何文件已生成。", [combine, combine_run]) +177 | spec("VHS_VideoCombine", "format", "视频封装和编码预设", "COMBO", "schema首项image/gif,无显式default", "预设选择", + | ^^^^^^^^^^^^^^^^^^^ +178 | "当前video/h264-mp4;动态格式目录和运行编码器可用性未知", +179 | "固定包h264-mp4.json提供mp4扩展、libx264、bt709及动态pix_fmt/crf/save_metadata/trim_to_audio。" + | + +E501 Line too long (104 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:184:71 + | +182 | spec("VHS_VideoCombine", "pix_fmt", "输出像素格式", "COMBO", "首项yuv420p", "像素格式枚举", +183 | "yuv420p / yuv420p10le", +184 | "源yuv420p传ffmpeg -pix_fmt;只解释固定h264-mp4定义,不保证目标编码器可用或实际成片色彩效果。", + | ^^^^ +185 | [h264, formats, metadata, combine_run, dyn]) +186 | spec("VHS_VideoCombine", "crf", "H264恒定质量参数", "INT", "19", "CRF值", + | + +E501 Line too long (102 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:199:92 + | +197 | "本图Combine.audio未接,Load音频出口也未接;false不能证明有音频,更不能称保留原音轨。", +198 | [h264, combine_run]) +199 | spec("VHS_VideoCombine", "pingpong", "往返帧序列开关", "BOOLEAN", "false", "布尔", "true / false", + | ^^ +200 | "源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。", +201 | [combine, combine_run]) + | + +E501 Line too long (102 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:202:93 + | +200 | "源false不调用to_pingpong;true时改帧序列并与meta_batch有不兼容提示。不是循环次数或FPS。", +201 | [combine, combine_run]) +202 | spec("VHS_VideoCombine", "save_output", "保存目录选择", "BOOLEAN", "true", "布尔", "true / false", + | ^^ +203 | "源true选择folder_paths输出目录,false选临时目录;不等于当前文件已保存。" +204 | "真实目录配置/权限/编码器/文件/时长与姿态视频效果均未知。", [combine, combine_run]) + | + +E501 Line too long (109 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:214:81 + | +212 | ) +213 | for cls in ["VHS_LoadVideo", "VHS_VideoCombine"]: +214 | spec(cls, "videopreview", "历史视频预览缓存(非运行参数)", "OBJECT", "无后端schema默认", "前端状态", + | ^^^^^^^^ +215 | "对象及嵌套JSON类型原样保留,不递归计作新增运行参数", preview_note, +216 | [preview, kv, persist, execute], "frontend_history") + | + +E501 Line too long (137 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:219:101 + | +218 | … +219 | …_face", "resolution", "bbox_detector", "pose_estimator", "scale_stick_for_xinsr_cn"] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +220 | … +221 | … + | + +E501 Line too long (104 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:233:101 + | +231 | for j, (name, value) in enumerate(pairs): +232 | fields.append({**specs[n["type"], name], "node_id": str(n["id"]), +233 | "definition_node_id": str(n["id"]), "class_type": n["type"], "scope": "root", + | ^^^^ +234 | "pointer": f"/nodes/{i}/widgets_values/{j if isinstance(values, list) else name}", +235 | "value": value, "json_type": type(value).__name__, + | + +E501 Line too long (109 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:234:101 + | +232 | fields.append({**specs[n["type"], name], "node_id": str(n["id"]), +233 | "definition_node_id": str(n["id"]), "class_type": n["type"], "scope": "root", +234 | "pointer": f"/nodes/{i}/widgets_values/{j if isinstance(values, list) else name}", + | ^^^^^^^^^ +235 | "value": value, "json_type": type(value).__name__, +236 | "execution_note": f"源mode={n['mode']},声明{n['properties']['cnr_id']}@{n['properties']['ver']};" + | + +E501 Line too long (126 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:236:97 + | +234 | "pointer": f"/nodes/{i}/widgets_values/{j if isinstance(values, list) else name}", +235 | "value": value, "json_type": type(value).__name__, +236 | "execution_note": f"源mode={n['mode']},声明{n['properties']['cnr_id']}@{n['properties']['ver']};" + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ +237 | "仅静态参考,真实安装、UE7.5.2钩子顺序及效果未知,未生成prompt。"}) +238 | assert len(fields) == 27 and len(comments) == 1 + | + +E501 Line too long (149 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:245:87 + | +243 | … +244 | … 无子图。27顶层保存位置=7个DW数组项+9个Load对象键+11个Combine对象键,其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。", +245 | …→Combine4.images槽0。DW的POSE_KEYPOINT槽1未接;不据标题当核心SDPose或已输出关键点文件。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +246 | …nfo9槽0→Combine4.frame_rate输入槽4。固定包Info槽0取loaded_fps,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名… +247 | … 保存位置;不是缺键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/… + | + +E501 Line too long (266 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:246:87 + | +244 | …个Load对象键+11个Combine对象键,其中25标量、2个预览对象;另1源注释。嵌套叶子不重复计数。", +245 | …NT槽1未接;不据标题当核心SDPose或已输出关键点文件。", +246 | … 定包Info槽0取loaded_fps,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名,不能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证明原FPS。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +247 | … 帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。", +248 | …processor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加载分支未调用。", + | + +E501 Line too long (250 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:248:91 + | +246 | … 定包Info槽0取loaded_fps,依Load的target_frame_time及select_every_nth构造;中文FPS🟦仅源显示名,不能单独证明语义。保存24与预览24均不是最终FPS,force_rate=0不证… +247 | … 口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能称保留原音轨。", +248 | …eprocessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名不证明安装,静态缺文件下载/加载分支未调用。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +249 | … 节不等于提交绑定。三类VHS及DW均为插件,不假借core来源,也不把包来源当目标安装证明。", +250 | …Configure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条件,不能按保存对象键顺序推断最终输入。", + | + +E501 Line too long (181 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:249:69 + | +247 | … 键/null/[]。其余四出口帧数/时长/宽度/高度未接。Load帧数/音频出口未接、VAE/meta_batch未接,Combine.audio/meta_batch/vae也未接;不能… +248 | …eprocessor→DWPose_Preprocessor;不是case01 AIO e8b689a。分辨率在本提交检测后缩放画布,三个开关控制绘制而非保证跳过检测。模型文件名… +249 | …it commit字段,包同字节不等于提交绑定。三类VHS及DW均为插件,不假借core来源,也不把包来源当目标安装证明。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +250 | …。核心先按序恢复再onConfigure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条… +251 | …table和extra空ue_links不证明无改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契约成立范围说明覆盖,不… + | + +E501 Line too long (213 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:252:73 + | +250 | … onConfigure,VHS随后具名恢复并回调;核心先数组保存再onSerialize,VHS覆盖具名对象。format回调可重建控件/改reset条件,不能按保存对象… +251 | …_links不证明无改写;真实安装、钩子次序/动态成员及最终恢复未知。固定前端先控件后连线只在参考契约成立范围说明覆盖,不导入执行上游或创… +252 | … 件/视频,不请求api/view或媒体URL,不把缓存当实际产物/最终FPS。filename_prefix=AnimateDiff是保存前缀,区别于旧绝对路径。", + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +253 | … 合法。实际ffmpeg/编码器/目录/文件、音轨存在性、姿态效果、速度/显存全部未知。未实跑、未定稿、未启用,不增加可靠转换或候选。", +254 | … + | + +E501 Line too long (159 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:256:96 + | +254 | … +255 | …r e in source["links"]] +256 | …=" + json.dumps(n["properties"]["ue_properties"], ensure_ascii=False) for n in source["nodes"]] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +257 | …through existing flow details. +258 | … + | + +E501 Line too long (169 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:266:86 + | +264 | … +265 | … +266 | …name__}]=" + json.dumps(v, ensure_ascii=False) for p, v in leaves(field["value"], field["pointer"])] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +267 | … +268 | …source_sha256=hashlib.sha256(raw).hexdigest(), + | + +E501 Line too long (115 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:268:101 + | +266 | flow += [f"历史预览嵌套(不另计保存位置){p} [{type(v).__name__}]=" + json.dumps(v, ensure_ascii=False) for p, v in leave… +267 | return dict( +268 | source_path=path, source_sha1=hashlib.sha1(raw).hexdigest(), source_sha256=hashlib.sha256(raw).hexdigest(), + | ^^^^^^^^^^^^^^^ +269 | canonical_sha256=hashlib.sha256(canonical(source)).hexdigest(), +270 | notice="固定版本参考说明;历史预览不是执行结果,环境/UE和实际效果未核对,转换仍关闭。", + | + +E501 Line too long (104 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:278:101 + | +276 | source_nodes=5, physical_edges=4, linked_saved_fields=1, frontend_only=2, +277 | final_scalars=0, final_prompt_constructed=False), +278 | fields=fields, sources=refs, comments=comments, flow=flow, flow_evidence=list(range(len(refs))), + | ^^^^ +279 | zero_saved_nodes=[dict(node_id="9", class_type="VHS_VideoInfoLoaded", evidence=[info, registry], effect=flow[3])], +280 | steps=[overview, "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + | + +E501 Line too long (122 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:279:101 + | +277 | final_scalars=0, final_prompt_constructed=False), +278 | fields=fields, sources=refs, comments=comments, flow=flow, flow_evidence=list(range(len(refs))), +279 | zero_saved_nodes=[dict(node_id="9", class_type="VHS_VideoInfoLoaded", evidence=[info, registry], effect=flow[3])], + | ^^^^^^^^^^^^^^^^^^^^^^ +280 | steps=[overview, "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", +281 | "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", + | + +E501 Line too long (112 > 100) + --> docs/hel-892/openpose-document-evidence/build_definition.py:280:64 + | +278 | fields=fields, sources=refs, comments=comments, flow=flow, flow_evidence=list(range(len(refs))), +279 | zero_saved_nodes=[dict(node_id="9", class_type="VHS_VideoInfoLoaded", evidence=[info, registry], effect=flow[3])], +280 | steps=[overview, "先看视频引用、姿态三个绘制开关和模型文件名;素材、模型、插件均待核对,不读取或执行。", + | ^^^^^^^^^^^^ +281 | "核对输出分辨率、加载尺寸/抽帧/上限、帧率外线与编码预设;两预览对象只读历史文本,不能当运行参数。", +282 | "保持停用、未检查、未定稿、未实跑;实际环境、UE、ffmpeg和效果待确认,不生成prompt或访问媒体。"], + | + +E501 Line too long (341 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:12:101 + | +10 | … +11 | … +12 | …ICENSE.txt", "__init__.py", "node_wrappers/dwpose.py", "utils.py", "src/custom_controlnet_aux/dwpose/__init__.py", "src/custom_controlnet_aux/dwpose/wholebody.py", "src/custom_controlnet_aux/dwpose/util.py", "src/custom_controlnet_aux/util.py"]), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +13 | …GraphNode.ts", "src/utils/executionUtil.ts", "src/extensions/core/noteNode.ts"]), +14 | … + | + +E501 Line too long (176 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:13:101 + | +11 | … +12 | …b491e13719b72fcc0", ["LICENSE.txt", "__init__.py", "node_wrappers/dwpose.py", "utils.py", "src/custom_controlnet_aux/dwpose/__init__.… +13 | …src/lib/litegraph/src/LGraphNode.ts", "src/utils/executionUtil.ts", "src/extensions/core/noteNode.ts"]), + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +14 | … +15 | …es.py", "videohelpersuite/load_video_nodes.py", "videohelpersuite/utils.py", "video_formats/h264-mp4.json", "web/js/VHS.core.js", "we… + | + +E501 Line too long (224 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:15:101 + | +13 | …GraphNode.ts", "src/utils/executionUtil.ts", "src/extensions/core/noteNode.ts"]), +14 | … +15 | …te/load_video_nodes.py", "videohelpersuite/utils.py", "video_formats/h264-mp4.json", "web/js/VHS.core.js", "web/js/videoinfo.js"] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +E501 Line too long (125 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:19:101 + | +18 | def get(url): +19 | return urllib.request.urlopen(urllib.request.Request(url, headers={"User-Agent": "static-reference"}), timeout=30).read() + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +E501 Line too long (139 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:27:101 + | +25 | …: +26 | … +27 | …-remote", "https://github.com/" + repo + ".git", "refs/tags/" + revision], timeout=45) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +28 | … +29 | …w) + | + +E501 Line too long (101 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:36:101 + | +34 | assert b"diff --git" in raw +35 | (OUT / (key + "-commit.patch")).write_bytes(raw) +36 | identities.append(dict(repo=repo, id=key, revision=revision, commit=commit, installed=False)) + | ^ +37 | for file in files: +38 | url = f"https://raw.githubusercontent.com/{repo}/{commit}/{file}" + | + +E501 Line too long (133 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:42:101 + | +40 | local = key + "__" + file.replace("/", "__") +41 | (OUT / local).write_bytes(raw) +42 | sources.append(dict(id=key, file=file, local_file=local, url=url, commit=commit, sha256=hashlib.sha256(raw).hexdigest())) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +43 | url = "https://api.comfy.org/nodes/comfyui-videohelpersuite/versions/1.7.9" +44 | raw = get(url) + | + +E501 Line too long (123 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:51:101 + | +49 | sha = hashlib.sha256(raw).hexdigest() +50 | with zipfile.ZipFile(io.BytesIO(raw)) as z: +51 | members = [dict(file=n, sha256=hashlib.sha256(z.read(n)).hexdigest()) for n in z.namelist() if not n.endswith("/")] + | ^^^^^^^^^^^^^^^^^^^^^^^ +52 | for file in VHS: +53 | raw = z.read(file) + | + +E501 Line too long (199 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:56:101 + | +54 | … +55 | … +56 | …"downloadUrl"], commit="发布包SHA256:" + sha, sha256=hashlib.sha256(raw).hexdigest(), git_commit_binding="unknown")) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +57 | …adUrl"], sha256=sha, members=members, git_commit_binding="unknown", note="发布包同字节不等于提交绑定"), ensure_ascii=False, indent=2)… +58 | …t_binding="unknown", installed=False)) + | + +E501 Line too long (224 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:57:101 + | +55 | … +56 | …"], commit="发布包SHA256:" + sha, sha256=hashlib.sha256(raw).hexdigest(), git_commit_binding="unknown")) +57 | …256=sha, members=members, git_commit_binding="unknown", note="发布包同字节不等于提交绑定"), ensure_ascii=False, indent=2) + "\n") + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +58 | …nknown", installed=False)) +59 | …ent=2) + "\n") + | + +E501 Line too long (121 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:58:101 + | +56 | sources.append(dict(id="vhs", file=file, local_file=local, url=release["downloadUrl"], commit="发布包SHA256:" + sha, sha25… +57 | (OUT / "vhs-package-index.json").write_text(json.dumps(dict(url=release["downloadUrl"], sha256=sha, members=members, git_commit_bi… +58 | identities.append(dict(id="vhs", version="1.7.9", package_sha256=sha, git_commit_binding="unknown", installed=False)) + | ^^^^^^^^^^^^^^^^^^^^^ +59 | (OUT / "sources.json").write_text(json.dumps(dict(sources=sources), ensure_ascii=False, indent=2) + "\n") +60 | (OUT / "identity.json").write_text(json.dumps(identities, ensure_ascii=False, indent=2) + "\n") + | + +E501 Line too long (109 > 100) + --> docs/hel-892/openpose-document-evidence/fetch_sources.py:59:101 + | +57 | (OUT / "vhs-package-index.json").write_text(json.dumps(dict(url=release["downloadUrl"], sha256=sha, members=members, git_commit_bi… +58 | identities.append(dict(id="vhs", version="1.7.9", package_sha256=sha, git_commit_binding="unknown", installed=False)) +59 | (OUT / "sources.json").write_text(json.dumps(dict(sources=sources), ensure_ascii=False, indent=2) + "\n") + | ^^^^^^^^^ +60 | (OUT / "identity.json").write_text(json.dumps(identities, ensure_ascii=False, indent=2) + "\n") +61 | print("Fixed DW, frontend and VHS package source text only") + | + +E501 Line too long (104 > 100) + --> docs/hel-892/openpose-document-evidence/recompute.py:64:101 + | +62 | assert release["version"] == "1.7.9" and release["downloadUrl"] == index["url"] +63 | with zipfile.ZipFile(io.BytesIO(archive)) as z: +64 | assert [n for n in z.namelist() if not n.endswith("/")] == [e["file"] for e in index["members"]] + | ^^^^ +65 | for e in index["members"]: +66 | assert hashlib.sha256(z.read(e["file"])).hexdigest() == e["sha256"] + | + +E501 Line too long (103 > 100) + --> docs/hel-892/openpose-document-evidence/recompute.py:70:101 + | +68 | if e["id"] == "vhs": +69 | assert z.read(e["file"]) == (reference / e["local_file"]).read_bytes() +70 | write("source-check.json", dict(fixed_originals=len(source_records), members=len(index["members"]), + | ^^^ +71 | package_sha256=index["sha256"], frontend_tag=tag, checked_sha256=True, +72 | git_commit_binding="unknown", imported_upstream=False)) + | + +E501 Line too long (107 > 100) + --> docs/hel-892/openpose-document-evidence/recompute.py:85:101 + | +83 | assert by_id[target]["inputs"][inp]["link"] == eid +84 | assert by_id[target]["inputs"][inp]["type"] == typ +85 | write("source-graph.json", dict(source_path=PATHS[0], raw_sha256=hashlib.sha256(graph_raw).hexdigest(), + | ^^^^^^^ +86 | canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(), nodes=nodes, links=graph["links"], +87 | no_subgraphs=True, saved_fields=27, scalar_positions=25, history_objects=2, notes=1, + | + +E501 Line too long (107 > 100) + --> docs/hel-892/openpose-document-evidence/recompute.py:86:101 + | +84 | assert by_id[target]["inputs"][inp]["type"] == typ +85 | write("source-graph.json", dict(source_path=PATHS[0], raw_sha256=hashlib.sha256(graph_raw).hexdigest(), +86 | canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(), nodes=nodes, links=graph["links"], + | ^^^^^^^ +87 | no_subgraphs=True, saved_fields=27, scalar_positions=25, history_objects=2, notes=1, +88 | extra_sha256=hashlib.sha256(canonical(graph["extra"])).hexdigest())) + | + +Found 52 errors. +No fixes available (3 hidden fixes can be enabled with the `--unsafe-fixes` option). diff --git a/docs/hel-892/openpose-document-evidence/package-check.json b/docs/hel-892/openpose-document-evidence/package-check.json new file mode 100644 index 00000000..9cbbcca9 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/package-check.json @@ -0,0 +1,23 @@ +[ + { + "file": "fixed_document.py", + "sha256": "cffb0b459eb63d2e1b632d7b18fef57b0a9b711418f239046b4b743ffc14057c", + "wheel": true, + "sdist": true, + "definitions": 16 + }, + { + "file": "source_reviews.json", + "sha256": "e0b76a933c40085e9ee58a246c65fd66c7fd7b503194c2121ed55fedb2addc13", + "wheel": true, + "sdist": true, + "definitions": 16 + }, + { + "file": "library.py", + "sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c", + "wheel": true, + "sdist": true, + "definitions": 16 + } +] diff --git a/docs/hel-892/openpose-document-evidence/pins.json b/docs/hel-892/openpose-document-evidence/pins.json new file mode 100644 index 00000000..81ea8c26 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/pins.json @@ -0,0 +1,3 @@ +{ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json": "b3b87aa0c9d47b6266bcb14e6b1fb268d70e9b2830f62149ab7fd8668783905b" +} diff --git a/docs/hel-892/openpose-document-evidence/pr-state-initial.json b/docs/hel-892/openpose-document-evidence/pr-state-initial.json new file mode 100644 index 00000000..260c709c --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/pr-state-initial.json @@ -0,0 +1,8 @@ +{ + "url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25", + "state": "open", + "head": "agent/agent/a64a969a6a44", + "head_sha": "fec5ccab441dace8f489fd3eaacc68fa25c47f8e", + "base": "main", + "merged": false +} diff --git a/docs/hel-892/openpose-document-evidence/rebuild.py b/docs/hel-892/openpose-document-evidence/rebuild.py new file mode 100644 index 00000000..cb8ee860 --- /dev/null +++ b/docs/hel-892/openpose-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 = "fec5ccab441dace8f489fd3eaacc68fa25c47f8e" +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 15 blocks unchanged") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/openpose-document-evidence/recompute.py b/docs/hel-892/openpose-document-evidence/recompute.py new file mode 100644 index 00000000..d462e389 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/recompute.py @@ -0,0 +1,364 @@ +"""Actual fec5cca database upgrade, one-row protection/rollback, frozen boundaries and packages.""" + +from __future__ import annotations + +import hashlib +import io +import json +import os +import sqlite3 +import subprocess +import sys +import tarfile +import tempfile +import zipfile +from pathlib import Path + +from build_definition import OUT, PATHS, REPO, canonical +from rebuild import BASE, RESOURCE, build_all + +sys.path.insert(0, str(REPO / "calliope-backend")) + + +def write(name, value): + (OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n") + + +def require_packages(): + dist = REPO / "calliope-backend/dist" + w = sorted(dist.glob("*.whl")) + s = sorted(dist.glob("*.tar.gz")) + if not w or not s: + raise SystemExit( + ( + "缺少wheel/sdist包产物,请先在仓库根执行:" + "uv build --project calliop" + "e-backend --offline" + ) + ) + return w[-1], s[-1] + + +def main(): + from calliope.comfyui.fixed_document import DEFINITIONS + from calliope.comfyui.library import rollback_batch + from scripts.audit_library_documents import audit + + wheels, sdists = require_packages() + reference = OUT.parent / "openpose-reference" + source_records = json.loads((reference / "sources.json").read_bytes())["sources"] + for e in source_records: + raw = (reference / e["local_file"]).read_bytes() + assert hashlib.sha256(raw).hexdigest() == e["sha256"] + if e["id"] != "vhs": + assert len(e["commit"]) == 40 and e["commit"] in e["url"] + tag = (reference / "frontend-tag.txt").read_text().split() + assert tag == ["52bb58d307242a34103998ef1da8007e47501d5b", "refs/tags/v1.36.12"] + index = json.loads((reference / "vhs-package-index.json").read_bytes()) + archive = (reference / "vhs-1.7.9.zip").read_bytes() + assert hashlib.sha256(archive).hexdigest() == index["sha256"] + assert index["git_commit_binding"] == "unknown" + release = json.loads((reference / "vhs-registry.json").read_bytes()) + assert release["version"] == "1.7.9" and release["downloadUrl"] == index["url"] + with zipfile.ZipFile(io.BytesIO(archive)) as z: + assert [n for n in z.namelist() if not n.endswith("/")] == [ + e["file"] for e in index["members"] + ] + for e in index["members"]: + assert hashlib.sha256(z.read(e["file"])).hexdigest() == e["sha256"] + for e in source_records: + if e["id"] == "vhs": + assert z.read(e["file"]) == (reference / e["local_file"]).read_bytes() + write( + "source-check.json", + dict( + fixed_originals=len(source_records), + members=len(index["members"]), + package_sha256=index["sha256"], + frontend_tag=tag, + checked_sha256=True, + git_commit_binding="unknown", + imported_upstream=False, + ), + ) + graph_raw = (REPO / PATHS[0]).read_bytes() + graph = json.loads(graph_raw) + nodes = graph["nodes"] + assert len(nodes) == 5 and len(graph["links"]) == 4 + assert all(n["mode"] == 0 for n in nodes) and "definitions" not in graph + assert sum(len(n["widgets_values"]) for n in nodes if n["type"] != "MarkdownNote") == 27 + assert nodes[3]["widgets_values"] == {} and type(nodes[3]["widgets_values"]) is dict + by_id = {n["id"]: n for n in nodes} + for eid, origin, slot, target, inp, typ in graph["links"]: + assert eid in by_id[origin]["outputs"][slot]["links"] + assert by_id[target]["inputs"][inp]["link"] == eid + assert by_id[target]["inputs"][inp]["type"] == typ + write( + "source-graph.json", + dict( + source_path=PATHS[0], + raw_sha256=hashlib.sha256(graph_raw).hexdigest(), + canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(), + nodes=nodes, + links=graph["links"], + no_subgraphs=True, + saved_fields=27, + scalar_positions=25, + history_objects=2, + notes=1, + extra_sha256=hashlib.sha256(canonical(graph["extra"])).hexdigest(), + ), + ) + + 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) == 15 + assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items()) + write( + "review-delta.json", + dict( + base=BASE, + changed_paths=PATHS, + other_reviews_unchanged=len(previous) - 1, + old_blocks_unchanged=15, + old_saved=394, + old_notes=14, + new_saved=27, + new_notes=1, + total_documents=16, + total_saved=421, + total_notes=15, + ), + ) + for p, d in DEFINITIONS.items(): + assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d + with tempfile.TemporaryDirectory() as directory: + work = Path(directory) + old = work / "old" + old.mkdir() + data = subprocess.check_output(["git", "archive", BASE, "calliope-backend/src"], cwd=REPO) + with tarfile.open(fileobj=io.BytesIO(data)) as a: + a.extractall(old, filter="data") + db = work / "library.db" + + def run(name, historical=False): + out = work / name + env = { + **os.environ, + "PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"), + } + subprocess.run( + [ + sys.executable, + "-m", + "calliope.comfyui.library_cli", + "import", + "--root", + str(REPO / "example_ComfyUI_workflows"), + "--db", + str(db), + "--source-commit", + BASE, + "--companions", + str(REPO / "docs/hel-892/supplied-api/manifest.json"), + "--output-dir", + str(out), + ], + cwd=REPO, + env=env, + check=True, + stdout=subprocess.DEVNULL, + ) + return json.loads((out / "import_report.json").read_bytes()), out + + def rows(): + with sqlite3.connect(db) as c: + c.row_factory = sqlite3.Row + return { + r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows") + } + + first, _ = run("historical", True) + before = rows() + assert first["counts"] == {"imported": 155, "user_excluded": 1} + assert all("fixed_version" not in json.loads(before[p]["doc_json"]) for p in PATHS) + assert all( + json.loads(before[p]["doc_json"])["fixed_version"]["matched"] + for p in DEFINITIONS + if p not in PATHS + ) + original = db + protected = [] + + def protect(name): + nonlocal db + db = work / (name + ".db") + with sqlite3.connect(original) as src, sqlite3.connect(db) as dst: + src.backup(dst) + for p in PATHS: + dst.execute( + "UPDATE workflows SET description=? WHERE source_repo_path=?", + (name, p), + ) + snapshot = rows() + r, _ = run(name) + assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1} + assert rows() == snapshot and all(len(snapshot[p]) == 29 for p in PATHS) + protected.append(dict(phase=name, counts=r["counts"], whole_rows=1, columns=29)) + db = original + + protect("user-before") + upgrade, exported = run("upgrade") + after = rows() + assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1} + for p, row in after.items(): + if p not in PATHS: + assert row == before[p] + continue + assert len(row) == 29 + assert all( + row[k] == before[p][k] + for k in row.keys() - {"doc_json", "batch_id", "imported_at", "library_fingerprint"} + ) + d = json.loads(row["doc_json"]) + assert d["fixed_version"]["matched"] + old_doc = json.loads(before[p]["doc_json"]) + without = dict(d) + fixed = without.pop("fixed_version") + assert without["steps"] == old_doc["steps"][:-3] + fixed["steps"] + without["steps"] = old_doc["steps"] + assert without.pop("source_review_sha") != old_doc.pop("source_review_sha") + assert without == old_doc + write("actual-" + Path(p).stem + ".json", d) + repeat, _ = run("repeat") + assert repeat["counts"] == {"skipped": 155, "user_excluded": 1} + with sqlite3.connect(db) as c: + c.row_factory = sqlite3.Row + r = rollback_batch(c, upgrade["batch_id"]) + assert len(r["files"]) == 1 and all(f["result"] == "restored" for f in r["files"]) + assert rows() == before + redo, _ = run("redo") + assert redo["counts"] == upgrade["counts"] + protect("user-after") + db = work / "fresh.db" + fresh, exported = run("fresh") + fresh_repeat, _ = run("fresh-repeat") + assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"] + assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139} + companion = 0 + for row in rows().values(): + d = json.loads(row["doc_json"]) + companion += sum(p.get("value_origin") == "supplied_api_companion" for p in d["params"]) + assert ( + not row["is_enabled"] + and row["doc_completed_at"] is None + and row["exec_verified_at"] is None + ) + assert not d["status"]["doc_done"] and not d["status"]["exec_verified"] + assert d["dependencies"]["check_state"] == "unchecked" + report = audit(REPO, exported) + assert ( + report["named_values_preserved"] == 1217 + and report["unnamed_widget_nodes"] == 3660 + and companion == 294 + ) + assert report["full_documents_completed"] == report["real_executions"] == 0 + write("audit-summary.json", {k: v for k, v in report.items() if k != "files"}) + write( + "import-protection.json", + dict( + base=BASE, + first=first["counts"], + upgrade=upgrade["counts"], + repeat=repeat["counts"], + restored_rows=1, + untouched_whole_rows=154, + eligibility_unchanged=True, + redo=redo["counts"], + user_protection=protected, + fresh=fresh["counts"], + fresh_repeat=fresh_repeat["counts"], + states=fresh["states"], + source_named_fields=1217, + positional_widgets=3660, + companion_values=companion, + new_saved=27, + new_notes=1, + old_saved=394, + old_notes=14, + overviews=16, + 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_fifteen_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", + ), + ) + 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=16, + ) + ) + write("package-check.json", packages) + print( + ( + "PASS actual fec5cca upgrade1/skip154, " + "repeat155, rollback1, edits1/29cols, f" + "resh155, 1217/3660/294, 16 definitions" + ", frozen boundaries, wheel/sdist" + ) + ) + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/openpose-document-evidence/recompute.txt b/docs/hel-892/openpose-document-evidence/recompute.txt new file mode 100644 index 00000000..48234d6c --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/recompute.txt @@ -0,0 +1 @@ +PASS actual fec5cca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 16 definitions, frozen boundaries, wheel/sdist diff --git a/docs/hel-892/openpose-document-evidence/render_report.py b/docs/hel-892/openpose-document-evidence/render_report.py new file mode 100644 index 00000000..ec68f71f --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/render_report.py @@ -0,0 +1,111 @@ +"""Readable complete Chinese definitions and fixed source index from delivered data.""" + +from __future__ import annotations + +import hashlib +import json +from pathlib import Path + +OUT = Path(__file__).resolve().parent + + +def main(): + lines = [ + "# OpenPose视频姿态图固定参考中文说明", + "", + "27新顶层保存位置(25标量+2历史预览对象)+1新注释;旧15图394保存位置+14注释逐对象不变。16图421位置+15注释展示,155定稿0、实跑0、新增转换0。", + "", + "复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。", + "", + ] + 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 / "OpenPose视频姿态图固定参考中文说明.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/openpose-document-evidence/repeat.py b/docs/hel-892/openpose-document-evidence/repeat.py new file mode 100644 index 00000000..18c4ae93 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/repeat.py @@ -0,0 +1,50 @@ +"""Repeat every deterministic audit and compare reviewed resource/package byte identities.""" + +from __future__ import annotations + +import hashlib +import json +import subprocess +import sys + +from build_definition import OUT, REPO, canonical +from rebuild import RESOURCE, build_all + + +def main(): + a, overview = build_all() + b, again = build_all() + assert a == b and overview == again + assert a == json.loads((REPO / RESOURCE).read_bytes()) + names = [ + "audit-summary.json", + "review-delta.json", + "import-protection.json", + "boundaries.json", + "package-check.json", + "source-check.json", + "source-graph.json", + ] + subprocess.run([sys.executable, str(OUT / "recompute.py")], cwd=REPO, check=True) + before = {p: hashlib.sha256((OUT / p).read_bytes()).hexdigest() for p in names} + subprocess.run([sys.executable, str(OUT / "recompute.py")], cwd=REPO, check=True) + assert before == {p: hashlib.sha256((OUT / p).read_bytes()).hexdigest() for p in names} + (OUT / "repeatability.json").write_text( + json.dumps( + dict( + definitions=16, + repeated_build_equal=True, + repeated_audits_equal=True, + resource_sha256=hashlib.sha256(canonical(a)).hexdigest(), + artifacts=before, + ), + ensure_ascii=False, + indent=2, + ) + + "\n" + ) + print("PASS repeated 16 definitions and upgrade/audit/package recomputation: zero difference") + + +if __name__ == "__main__": + main() diff --git a/docs/hel-892/openpose-document-evidence/repeat.txt b/docs/hel-892/openpose-document-evidence/repeat.txt new file mode 100644 index 00000000..45148069 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/repeat.txt @@ -0,0 +1,3 @@ +PASS actual fec5cca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 16 definitions, frozen boundaries, wheel/sdist +PASS actual fec5cca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 16 definitions, frozen boundaries, wheel/sdist +PASS repeated 16 definitions and upgrade/audit/package recomputation: zero difference diff --git a/docs/hel-892/openpose-document-evidence/repeatability.json b/docs/hel-892/openpose-document-evidence/repeatability.json new file mode 100644 index 00000000..95aef6a4 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/repeatability.json @@ -0,0 +1,15 @@ +{ + "definitions": 16, + "repeated_build_equal": true, + "repeated_audits_equal": true, + "resource_sha256": "9cccbfbda7b078fae7b00521d8245b4cbe7789f0c29aada3d754967ecd7dac66", + "artifacts": { + "audit-summary.json": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a", + "review-delta.json": "dfbbc5f3df7332dd20589fc68d57518041157522e5a8e097d1ba0ca6435134eb", + "import-protection.json": "0fce5cd41e0767183c63596fece0d6b05c8641c3be4dcc50299cb55dd08177eb", + "boundaries.json": "562ee02b0d0bdbf5aa8b594c4fa986698f3dfa1a3ad7eab0d3b7cdcf43fc0d85", + "package-check.json": "57dfc8a32455dac20eb2ba158083f999e4536f160e8ed36cbe959916c56b2c89", + "source-check.json": "5995cdc40c36c86c094b04621a8d3eae647a4106f1c8ab6906d4578059ca64ac", + "source-graph.json": "2ee36834939565d19ffed60041c64c8b8793459d931022459e89395699fdc589" + } +} diff --git a/docs/hel-892/openpose-document-evidence/review-delta.json b/docs/hel-892/openpose-document-evidence/review-delta.json new file mode 100644 index 00000000..88e8e9e4 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/review-delta.json @@ -0,0 +1,15 @@ +{ + "base": "fec5ccab441dace8f489fd3eaacc68fa25c47f8e", + "changed_paths": [ + "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json" + ], + "other_reviews_unchanged": 155, + "old_blocks_unchanged": 15, + "old_saved": 394, + "old_notes": 14, + "new_saved": 27, + "new_notes": 1, + "total_documents": 16, + "total_saved": 421, + "total_notes": 15 +} diff --git a/docs/hel-892/openpose-document-evidence/ruff-check.txt b/docs/hel-892/openpose-document-evidence/ruff-check.txt new file mode 100644 index 00000000..1f5f344d --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/ruff-check.txt @@ -0,0 +1 @@ +All checks passed! diff --git a/docs/hel-892/openpose-document-evidence/ruff-format.txt b/docs/hel-892/openpose-document-evidence/ruff-format.txt new file mode 100644 index 00000000..40fbba5b --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/ruff-format.txt @@ -0,0 +1 @@ +15 files already formatted diff --git a/docs/hel-892/openpose-document-evidence/sdpose-retest.txt b/docs/hel-892/openpose-document-evidence/sdpose-retest.txt new file mode 100644 index 00000000..e9ba9d98 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/sdpose-retest.txt @@ -0,0 +1,4 @@ +........................................................................ [ 37%] +........................................................................ [ 75%] +................................................ [100%] +192 passed, 1 warning in 0.38s diff --git a/docs/hel-892/openpose-document-evidence/service-0.log b/docs/hel-892/openpose-document-evidence/service-0.log new file mode 100644 index 00000000..664291e0 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/service-0.log @@ -0,0 +1,73 @@ +INFO: Started server process [513037] +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': {'imported': 155, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}} +INFO: 127.0.0.1:40400 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40412 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40408 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40430 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:40424 - "GET /api/settings HTTP/1.1" 200 OK +INFO: 127.0.0.1:40444 - "GET /api/workflows HTTP/1.1" 200 OK +INFO: 127.0.0.1:40458 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40472 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:40482 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:40486 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37364 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37376 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37390 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37404 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37414 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37416 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37422 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:37432 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37434 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:37436 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37450 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37456 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37466 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37476 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37482 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:37492 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42680 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42682 - "GET /api/workflows/19 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42690 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:42704 - "GET /api/workflows/13 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42716 - "GET /api/workflows/12 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42718 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:42720 - "GET /api/workflows/64 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42726 - "GET /api/workflows/62 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42728 - "GET /api/workflows/70 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42730 - "GET /api/workflows/1 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42740 - "GET /api/workflows/36 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42746 - "GET /api/workflows/35 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42762 - "GET /api/workflows/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42770 - "GET /api/workflows/25 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42776 - "GET /api/workflows/24 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42780 - "GET /api/workflows/21 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42794 - "GET /api/workflows/14 HTTP/1.1" 200 OK +INFO: 127.0.0.1:42800 - "GET /api/workflows/156 HTTP/1.1" 200 OK +INFO: 127.0.0.1:33614 - "GET /api/workflows/157 HTTP/1.1" 200 OK +INFO: 127.0.0.1:33624 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:33634 - "GET /api/workflows/7 HTTP/1.1" 200 OK +INFO: 127.0.0.1:33642 - "GET /api/jobs HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:33646 - "GET /api/workflows/6 HTTP/1.1" 200 OK +INFO: Shutting down +INFO: Waiting for application shutdown. +INFO: Application shutdown complete. +INFO: Finished server process [513037] diff --git a/docs/hel-892/openpose-document-evidence/service-1.log b/docs/hel-892/openpose-document-evidence/service-1.log new file mode 100644 index 00000000..e3ba3316 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/service-1.log @@ -0,0 +1,11 @@ +▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json] + + tsconfig.json:2:12: + 2 │ "extends": "./.svelte-kit/tsconfig.json", + ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +3:17:51 PM [vite] (client) Forced re-optimization of dependencies + + VITE v6.4.3 ready in 431 ms + + ➜ Local: http://127.0.0.1:5173/ diff --git a/docs/hel-892/openpose-document-evidence/source-check.json b/docs/hel-892/openpose-document-evidence/source-check.json new file mode 100644 index 00000000..4b063243 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/source-check.json @@ -0,0 +1,12 @@ +{ + "fixed_originals": 21, + "members": 45, + "package_sha256": "ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "frontend_tag": [ + "52bb58d307242a34103998ef1da8007e47501d5b", + "refs/tags/v1.36.12" + ], + "checked_sha256": true, + "git_commit_binding": "unknown", + "imported_upstream": false +} diff --git a/docs/hel-892/openpose-document-evidence/source-graph.json b/docs/hel-892/openpose-document-evidence/source-graph.json new file mode 100644 index 00000000..980d9e80 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/source-graph.json @@ -0,0 +1,650 @@ +{ + "source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json", + "raw_sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608", + "canonical_sha256": "8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201", + "nodes": [ + { + "id": 8, + "type": "MarkdownNote", + "pos": [ + -221.66666666666666, + -1236.6666668633015 + ], + "size": [ + 425, + 282.31770833333337 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "For Local Users", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "## Custom Nodes\n\n- [Fannovel16/comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 1, + "type": "DWPreprocessor", + "pos": [ + 520.5947318412174, + -1233.628961743877 + ], + "size": [ + 340, + 230 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "image", + "type": "IMAGE", + "link": 10 + }, + { + "label": "检测手部", + "localized_name": "检测手部", + "name": "detect_hand", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "detect_hand" + }, + "link": null + }, + { + "label": "检测身体", + "localized_name": "检测身体", + "name": "detect_body", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "detect_body" + }, + "link": null + }, + { + "label": "检测面部", + "localized_name": "检测面部", + "name": "detect_face", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "detect_face" + }, + "link": null + }, + { + "label": "分辨率", + "localized_name": "分辨率", + "name": "resolution", + "shape": 7, + "type": "INT", + "widget": { + "name": "resolution" + }, + "link": null + }, + { + "label": "BBox检测", + "localized_name": "BBox检测", + "name": "bbox_detector", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "bbox_detector" + }, + "link": null + }, + { + "label": "姿态预估", + "localized_name": "姿态预估", + "name": "pose_estimator", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "pose_estimator" + }, + "link": null + }, + { + "label": "新超分辨率ControlNet缩放工具", + "localized_name": "新超分辨率ControlNet缩放工具", + "name": "scale_stick_for_xinsr_cn", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "scale_stick_for_xinsr_cn" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "图像", + "name": "图像", + "type": "IMAGE", + "links": [ + 4 + ] + }, + { + "localized_name": "姿态关键点", + "name": "姿态关键点", + "type": "POSE_KEYPOINT", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui_controlnet_aux", + "ver": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "Node name for S&R": "DWPreprocessor", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "enable", + "enable", + "enable", + 1024, + "yolox_l.onnx", + "dw-ll_ucoco_384_bs5.torchscript.pt", + "disable" + ] + }, + { + "id": 2, + "type": "VHS_LoadVideo", + "pos": [ + 220.00004950195887, + -1236.6666678464755 + ], + "size": [ + 255.8203125, + 746.573978237792 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "label": "批次管理", + "localized_name": "批次管理", + "name": "meta_batch", + "shape": 7, + "type": "VHS_BatchManager", + "link": null + }, + { + "localized_name": "vae", + "name": "vae", + "shape": 7, + "type": "VAE", + "link": null + }, + { + "label": "视频", + "localized_name": "视频", + "name": "video", + "type": "COMBO", + "widget": { + "name": "video" + }, + "link": null + }, + { + "label": "强制帧率", + "localized_name": "强制帧率", + "name": "force_rate", + "type": "FLOAT", + "widget": { + "name": "force_rate" + }, + "link": null + }, + { + "label": "自定义宽度", + "localized_name": "自定义宽度", + "name": "custom_width", + "type": "INT", + "widget": { + "name": "custom_width" + }, + "link": null + }, + { + "label": "自定义高度", + "localized_name": "自定义高度", + "name": "custom_height", + "type": "INT", + "widget": { + "name": "custom_height" + }, + "link": null + }, + { + "label": "帧数读取上限", + "localized_name": "帧数读取上限", + "name": "frame_load_cap", + "type": "INT", + "widget": { + "name": "frame_load_cap" + }, + "link": null + }, + { + "label": "跳过前X帧", + "localized_name": "跳过前X帧", + "name": "skip_first_frames", + "type": "INT", + "widget": { + "name": "skip_first_frames" + }, + "link": null + }, + { + "label": "间隔", + "localized_name": "间隔", + "name": "select_every_nth", + "type": "INT", + "widget": { + "name": "select_every_nth" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "shape": 7, + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + } + ], + "outputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 10 + ] + }, + { + "localized_name": "帧计数", + "name": "帧计数", + "type": "INT", + "links": null + }, + { + "localized_name": "音频", + "name": "音频", + "type": "AUDIO", + "links": null + }, + { + "localized_name": "视频信息", + "name": "视频信息", + "type": "VHS_VIDEOINFO", + "links": [ + 11 + ] + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "1.7.9", + "Node name for S&R": "VHS_LoadVideo", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "video": "1月11日-1.mp4", + "force_rate": 0, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "format": "AnimateDiff", + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "force_rate": 0, + "custom_width": 0, + "custom_height": 0, + "frame_load_cap": 0, + "skip_first_frames": 0, + "select_every_nth": 1, + "filename": "1月11日-1.mp4", + "type": "input", + "format": "video/mp4" + } + } + } + }, + { + "id": 9, + "type": "VHS_VideoInfoLoaded", + "pos": [ + 580, + -890 + ], + "size": [ + 186, + 106 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "label": "视频信息", + "localized_name": "视频信息", + "name": "video_info", + "type": "VHS_VIDEOINFO", + "link": 11 + } + ], + "outputs": [ + { + "localized_name": "FPS🟦", + "name": "FPS🟦", + "type": "FLOAT", + "links": [ + 12 + ] + }, + { + "localized_name": "帧数🟦", + "name": "帧数🟦", + "type": "INT", + "links": null + }, + { + "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.9", + "Node name for S&R": "VHS_VideoInfoLoaded", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.2" + } + }, + "widgets_values": {} + }, + { + "id": 4, + "type": "VHS_VideoCombine", + "pos": [ + 960, + -1240 + ], + "size": [ + 260, + 778.3125 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "label": "图像", + "localized_name": "图像", + "name": "images", + "type": "IMAGE", + "link": 4 + }, + { + "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": 12 + }, + { + "label": "循环次数", + "localized_name": "循环次数", + "name": "loop_count", + "type": "INT", + "widget": { + "name": "loop_count" + }, + "link": null + }, + { + "label": "文件名前缀", + "localized_name": "文件名前缀", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": null + }, + { + "label": "格式", + "localized_name": "格式", + "name": "format", + "type": "COMBO", + "widget": { + "name": "format" + }, + "link": null + }, + { + "label": "Ping-Pong", + "localized_name": "Ping-Pong", + "name": "pingpong", + "type": "BOOLEAN", + "widget": { + "name": "pingpong" + }, + "link": null + }, + { + "label": "保存到输出文件夹", + "localized_name": "保存到输出文件夹", + "name": "save_output", + "type": "BOOLEAN", + "widget": { + "name": "save_output" + }, + "link": null + }, + { + "name": "pix_fmt", + "type": [ + "yuv420p", + "yuv420p10le" + ], + "widget": { + "name": "pix_fmt" + }, + "link": null + }, + { + "name": "crf", + "type": "INT", + "widget": { + "name": "crf" + }, + "link": null + }, + { + "label": "保存元数据", + "localized_name": "保存元数据", + "name": "save_metadata", + "type": "BOOLEAN", + "widget": { + "name": "save_metadata" + }, + "link": null + }, + { + "label": "修剪音频", + "localized_name": "修剪音频", + "name": "trim_to_audio", + "type": "BOOLEAN", + "widget": { + "name": "trim_to_audio" + }, + "link": null + } + ], + "outputs": [ + { + "localized_name": "文件名", + "name": "文件名", + "type": "VHS_FILENAMES", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-videohelpersuite", + "ver": "1.7.9", + "Node name for S&R": "VHS_VideoCombine", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.2", + "input_ue_unconnectable": {} + } + }, + "widgets_values": { + "frame_rate": 24, + "loop_count": 0, + "filename_prefix": "AnimateDiff", + "format": "video/h264-mp4", + "pix_fmt": "yuv420p", + "crf": 12, + "save_metadata": true, + "trim_to_audio": false, + "pingpong": false, + "save_output": true, + "videopreview": { + "hidden": false, + "paused": false, + "params": { + "filename": "AnimateDiff_00006.mp4", + "format": "video/h264-mp4", + "frame_rate": 24, + "fullpath": "E:\\ComfyUI-Data\\output\\AnimateDiff_00006.mp4", + "subfolder": "", + "type": "output", + "workflow": "AnimateDiff_00006.png" + } + } + } + } + ], + "links": [ + [ + 4, + 1, + 0, + 4, + 0, + "IMAGE" + ], + [ + 10, + 2, + 0, + 1, + 0, + "IMAGE" + ], + [ + 11, + 2, + 3, + 9, + 0, + "VHS_VIDEOINFO" + ], + [ + 12, + 9, + 0, + 4, + 4, + "FLOAT" + ] + ], + "no_subgraphs": true, + "saved_fields": 27, + "scalar_positions": 25, + "history_objects": 2, + "notes": 1, + "extra_sha256": "3abff18296863b95d0f0eed9e8c08669e8b25e29b826fc41b5d068b27ae5a115" +} diff --git a/docs/hel-892/openpose-document-evidence/tests-final.txt b/docs/hel-892/openpose-document-evidence/tests-final.txt new file mode 100644 index 00000000..0b377643 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/tests-final.txt @@ -0,0 +1,39 @@ +........................................................................ [ 2%] +........................................................................ [ 5%] +........................................................................ [ 7%] +........................................................................ [ 10%] +........................................................................ [ 13%] +........................................................................ [ 15%] +........................................................................ [ 18%] +........................................................................ [ 21%] +........................................................................ [ 23%] +........................................................................ [ 26%] +........................................................................ [ 29%] +........................................................................ [ 31%] +........................................................................ [ 34%] +........................................................................ [ 37%] +........................................................................ [ 39%] +........................................................................ [ 42%] +........................................................................ [ 45%] +........................................................................ [ 47%] +........................................................................ [ 50%] +........................................................................ [ 53%] +........................................................................ [ 55%] +........................................................................ [ 58%] +........................................................................ [ 60%] +........................................................................ [ 63%] +........................................................................ [ 66%] +........................................................................ [ 68%] +........................................................................ [ 71%] +........................................................................ [ 74%] +........................................................................ [ 76%] +........................................................................ [ 79%] +........................................................................ [ 82%] +........................................................................ [ 84%] +........................................................................ [ 87%] +........................................................................ [ 90%] +........................................................................ [ 92%] +........................................................................ [ 95%] +........................................................................ [ 98%] +.................................................... [100%] +2716 passed, 1 warning in 15.91s diff --git a/docs/hel-892/openpose-document-evidence/tests-initial.txt b/docs/hel-892/openpose-document-evidence/tests-initial.txt new file mode 100644 index 00000000..00acc116 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/tests-initial.txt @@ -0,0 +1,48 @@ +........................................................................ [ 25%] +........................................................................ [ 51%] +........................................................................ [ 76%] +................................................................F. [100%] +=================================== FAILURES =================================== +________________ test_exact_document_topology_and_preservation _________________ + + def test_exact_document_topology_and_preservation(): + d = doc() + assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"] + assert len(BLOCK["fields"]) == 27 and len(BLOCK["comments"]) == 1 + assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2 + assert len(SOURCE["nodes"]) == 5 and len(SOURCE["links"]) == 4 + assert SOURCE["links"] == [ + [4, 1, 0, 4, 0, "IMAGE"], + [10, 2, 0, 1, 0, "IMAGE"], + [11, 2, 3, 9, 0, "VHS_VIDEOINFO"], + [12, 9, 0, 4, 4, "FLOAT"], + ] + nodes = {n["id"]: n for n in SOURCE["nodes"]} + for edge, origin, slot, target, inp, typ in SOURCE["links"]: + assert edge in nodes[origin]["outputs"][slot]["links"] + assert nodes[target]["inputs"][inp]["link"] == edge + assert nodes[target]["inputs"][inp]["type"] == typ + assert nodes[9]["widgets_values"] == {} and type(nodes[9]["widgets_values"]) is dict + assert all(n["mode"] == 0 for n in SOURCE["nodes"]) + assert pointer(SOURCE, BLOCK["comments"][0]["pointer"]) == BLOCK["comments"][0]["text"] + assert not BLOCK["counts"]["final_prompt_constructed"] +> assert all( + s in "".join(BLOCK["flow"]) + for s in [ + "未实跑", + "包同字节不等于提交绑定", + "loaded_fps", + "外线覆盖", + "音频", + "UE7.5.2", + "空对象", + "不是缺键/null/[]", + ] + ) +E assert False +E + where False = all(. at 0x7fd54576af20>) + +calliope-backend/tests/test_openpose_fixed_document.py:189: AssertionError +=========================== short test summary info ============================ +FAILED calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation +1 failed, 281 passed, 1 warning in 0.57s diff --git a/docs/hel-892/openpose-document-evidence/tests.txt b/docs/hel-892/openpose-document-evidence/tests.txt new file mode 100644 index 00000000..79d0a33c --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/tests.txt @@ -0,0 +1,61 @@ +........................................................................ [ 2%] +........................................................................ [ 5%] +........................................................................ [ 7%] +........................................................................ [ 10%] +........................................................................ [ 13%] +........................................................................ [ 15%] +....................................F................................... [ 18%] +........................................................................ [ 21%] +........................................................................ [ 23%] +........................................................................ [ 26%] +........................................................................ [ 29%] +........................................................................ [ 31%] +........................................................................ [ 34%] +........................................................................ [ 37%] +........................................................................ [ 39%] +........................................................................ [ 42%] +........................................................................ [ 45%] +........................................................................ [ 47%] +........................................................................ [ 50%] +........................................................................ [ 53%] +........................................................................ [ 55%] +........................................................................ [ 58%] +........................................................................ [ 60%] +........................................................................ [ 63%] +........................................................................ [ 66%] +........................................................................ [ 68%] +........................................................................ [ 71%] +........................................................................ [ 74%] +........................................................................ [ 76%] +........................................................................ [ 79%] +........................................................................ [ 82%] +........................................................................ [ 84%] +........................................................................ [ 87%] +........................................................................ [ 90%] +........................................................................ [ 92%] +........................................................................ [ 95%] +........................................................................ [ 98%] +.................................................... [100%] +=================================== FAILURES =================================== +______________ test_real_document_and_frozen_old_fourteen_blocks _______________ + + def test_real_document_and_frozen_old_fourteen_blocks(): + d = doc() + assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"] + assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False) + assert d["dependencies"]["check_state"] == "unchecked" + assert "fixed_version" not in doc(path="untrusted.json") + review = copy.deepcopy(REVIEW) + other = next(p for p in DEFINITIONS if p != PATH) + resource = "calliope-backend/src/calliope/comfyui/source_reviews.json" + now = json.loads((REPO / resource).read_bytes()) + openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json")) + now[openpose].pop("fixed_version_document") +> review["fixed_version_document"] = now[other]["fixed_version_document"] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +E KeyError: 'fixed_version_document' + +calliope-backend/tests/test_sdpose_fixed_document.py:158: KeyError +=========================== short test summary info ============================ +FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks +1 failed, 2715 passed, 1 warning in 16.06s diff --git a/docs/hel-892/openpose-document-evidence/validation-commands.txt b/docs/hel-892/openpose-document-evidence/validation-commands.txt new file mode 100644 index 00000000..f3b96274 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/validation-commands.txt @@ -0,0 +1,16 @@ +# 仓库根前台运行,Python3.11,既有锁定依赖;不访问目标机/媒体/权重 +uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline +npm ci --prefix calliope-web --ignore-scripts --offline +# 原件已固定;fetch_sources.py是可选在线文本重取,不在离线复算中联网 +python3 docs/hel-892/openpose-document-evidence/rebuild.py +uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/openpose-document-evidence/build_definition.py docs/hel-892/openpose-document-evidence/fetch_sources.py docs/hel-892/openpose-document-evidence/rebuild.py docs/hel-892/openpose-document-evidence/recompute.py docs/hel-892/openpose-document-evidence/render_report.py docs/hel-892/openpose-document-evidence/repeat.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_openpose_fixed_document.py calliope-backend/tests/test_sdpose_fixed_document.py calliope-backend/tests/test_gemma_fixed_document.py calliope-backend/tests/test_grid_fixed_document.py calliope-backend/tests/test_background_fixed_document.py calliope-backend/tests/test_qwen_edit_fixed_document.py calliope-backend/tests/test_controlnet_fixed_document.py e2e/run-openpose-document.py +uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/openpose-document-evidence/build_definition.py docs/hel-892/openpose-document-evidence/fetch_sources.py docs/hel-892/openpose-document-evidence/rebuild.py docs/hel-892/openpose-document-evidence/recompute.py docs/hel-892/openpose-document-evidence/render_report.py docs/hel-892/openpose-document-evidence/repeat.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_openpose_fixed_document.py calliope-backend/tests/test_sdpose_fixed_document.py calliope-backend/tests/test_gemma_fixed_document.py calliope-backend/tests/test_grid_fixed_document.py calliope-backend/tests/test_background_fixed_document.py calliope-backend/tests/test_qwen_edit_fixed_document.py calliope-backend/tests/test_controlnet_fixed_document.py e2e/run-openpose-document.py +node --check e2e/openpose-document.mjs +uv run --project calliope-backend --offline pytest calliope-backend/tests/test_openpose_fixed_document.py calliope-backend/tests/test_sdpose_fixed_document.py calliope-backend/tests/test_gemma_fixed_document.py calliope-backend/tests/test_grid_fixed_document.py calliope-backend/tests/test_background_fixed_document.py calliope-backend/tests/test_qwen_edit_fixed_document.py calliope-backend/tests/test_qwen_fixed_document.py calliope-backend/tests/test_controlnet_fixed_document.py calliope-backend/tests/test_asr_fixed_document.py calliope-backend/tests/test_media_fixed_document.py calliope-backend/tests/test_audio_fixed_document.py calliope-backend/tests/test_fixed_document.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_supplied_companions.py calliope-backend/tests/test_delivery_scope.py calliope-backend/tests/test_case04_saved_reference.py -q --disable-warnings +uv build --project calliope-backend --offline +uv run --project calliope-backend --offline python docs/hel-892/openpose-document-evidence/recompute.py +uv run --project calliope-backend --offline python docs/hel-892/openpose-document-evidence/repeat.py +python3 docs/hel-892/openpose-document-evidence/render_report.py +# 实际本地浏览命令;服务finally停止,不复用其他服务 +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-openpose-document.py +# 缺dist测试通过test_raw_source_identity_and_missing_packages覆盖,不删除真实包;未复跑全后台/全前端/冻结转换组。 diff --git a/docs/hel-892/openpose-document-evidence/visual-inspection.md b/docs/hel-892/openpose-document-evidence/visual-inspection.md new file mode 100644 index 00000000..b919c713 --- /dev/null +++ b/docs/hel-892/openpose-document-evidence/visual-inspection.md @@ -0,0 +1 @@ +实际目验1440-6-default、390-6-default、1440-frame_rate和390-videopreview四张截图。两屏中文概要、未定稿/未实跑及转换关闭可读;无明显遮挡/横溢。FPS展开清楚区分24缓存与loaded_fps外线;预览展开保留完整JSON/类型/旧E盘路径并标历史状态,未加载媒体。其余38张仅作为自动截图,不声称逐张人工目验。42截图与1次字体CSS本地拦截单列,不算PASS断言。 diff --git a/docs/hel-892/openpose-reference/dw-commit.patch b/docs/hel-892/openpose-reference/dw-commit.patch new file mode 100644 index 00000000..3b9228d9 --- /dev/null +++ b/docs/hel-892/openpose-reference/dw-commit.patch @@ -0,0 +1,177 @@ +From eb9ef257a95f931c248edb35b05cf18068c8c4ad Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 10:32:00 +0100 +Subject: [PATCH 1/8] Add MIGraphXExecutionProvider to ORT_PROVIDERS + +--- + utils.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utils.py b/utils.py +index cf3dd6e6..813b9520 100644 +--- a/utils.py ++++ b/utils.py +@@ -46,7 +46,7 @@ + annotator_ckpts_path = str(Path(here, "./ckpts")) + TEMP_DIR = tempfile.gettempdir() + USE_SYMLINKS = False +- ORT_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "CoreMLExecutionProvider"] ++ ORT_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "CoreMLExecutionProvider", "MIGraphXExecutionProvider"] + + os.environ['AUX_ANNOTATOR_CKPTS_PATH'] = os.getenv('AUX_ANNOTATOR_CKPTS_PATH', annotator_ckpts_path) + os.environ['AUX_TEMP_DIR'] = os.getenv('AUX_TEMP_DIR', str(TEMP_DIR)) + +From 2c754a7cd9d4a44c251676c4b022f65ea824c4d3 Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 10:32:15 +0100 +Subject: [PATCH 2/8] Update config.example.yaml + +--- + config.example.yaml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/config.example.yaml b/config.example.yaml +index 6734ad02..1de7d738 100644 +--- a/config.example.yaml ++++ b/config.example.yaml +@@ -17,4 +17,4 @@ USE_SYMLINKS: False + # empty list or only keep ["CPUExecutionProvider"] means you use cv2.dnn.readNetFromONNX to load onnx models + # if your onnx models can only run on the CPU or have other issues, we recommend using pt model instead. + # default value is ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider"] +-EP_list: ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider"] ++EP_list: ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] + +From 9cca5c69ba4892dfb0afb30652490fe64154aa91 Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 10:32:30 +0100 +Subject: [PATCH 3/8] Add MIGraphXExecutionProvider to GPU providers + +--- + node_wrappers/dwpose.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/node_wrappers/dwpose.py b/node_wrappers/dwpose.py +index f0422588..34905037 100644 +--- a/node_wrappers/dwpose.py ++++ b/node_wrappers/dwpose.py +@@ -8,7 +8,7 @@ + + DWPOSE_MODEL_NAME = "yzd-v/DWPose" + #Trigger startup caching for onnxruntime +-GPU_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CoreMLExecutionProvider"] ++GPU_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CoreMLExecutionProvider", "MIGraphXExecutionProvider"] + def check_ort_gpu(): + try: + import onnxruntime as ort + +From d23b24f17217c03a0f9101feea4495cb205974f6 Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 10:33:42 +0100 +Subject: [PATCH 4/8] Add MIGraphXExecutionProvider to ONNX_PROVIDERS + +--- + src/custom_controlnet_aux/dwpose/util.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/custom_controlnet_aux/dwpose/util.py b/src/custom_controlnet_aux/dwpose/util.py +index 42874b33..92de18d7 100644 +--- a/src/custom_controlnet_aux/dwpose/util.py ++++ b/src/custom_controlnet_aux/dwpose/util.py +@@ -436,7 +436,7 @@ def guess_onnx_input_shape_dtype(filename): + if os.getenv('AUX_ORT_PROVIDERS'): + ONNX_PROVIDERS = os.getenv('AUX_ORT_PROVIDERS').split(',') + else: +- ONNX_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider"] ++ ONNX_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] + def get_ort_providers() -> List[str]: + providers = [] + try: + +From 4a55dbc32337a8ecfbe948bfe8a68189ba4e079a Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 10:38:03 +0100 +Subject: [PATCH 5/8] Update config.example.yaml + +--- + config.example.yaml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/config.example.yaml b/config.example.yaml +index 1de7d738..280a6212 100644 +--- a/config.example.yaml ++++ b/config.example.yaml +@@ -16,5 +16,5 @@ USE_SYMLINKS: False + # for example, if you have CUDA installed, you can set it to: ["CUDAExecutionProvider", "CPUExecutionProvider"] + # empty list or only keep ["CPUExecutionProvider"] means you use cv2.dnn.readNetFromONNX to load onnx models + # if your onnx models can only run on the CPU or have other issues, we recommend using pt model instead. +-# default value is ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider"] ++# default value is ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] + EP_list: ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] + +From 24b4572d2c87bba2cb55fe6f666f05638f591371 Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 14:10:30 +0100 +Subject: [PATCH 6/8] Update EP_list default value in config example + +--- + config.example.yaml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/config.example.yaml b/config.example.yaml +index 280a6212..527be3fa 100644 +--- a/config.example.yaml ++++ b/config.example.yaml +@@ -16,5 +16,5 @@ USE_SYMLINKS: False + # for example, if you have CUDA installed, you can set it to: ["CUDAExecutionProvider", "CPUExecutionProvider"] + # empty list or only keep ["CPUExecutionProvider"] means you use cv2.dnn.readNetFromONNX to load onnx models + # if your onnx models can only run on the CPU or have other issues, we recommend using pt model instead. +-# default value is ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] +-EP_list: ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] ++# default value is ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider", "CPUExecutionProvider"] ++EP_list: ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider", "CPUExecutionProvider"] + +From 6965b98dcfb33e6b4da415ec660c76672c984633 Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 14:11:04 +0100 +Subject: [PATCH 7/8] Reorder ONNX_PROVIDERS list for consistency + +--- + src/custom_controlnet_aux/dwpose/util.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/custom_controlnet_aux/dwpose/util.py b/src/custom_controlnet_aux/dwpose/util.py +index 92de18d7..921c9294 100644 +--- a/src/custom_controlnet_aux/dwpose/util.py ++++ b/src/custom_controlnet_aux/dwpose/util.py +@@ -436,7 +436,7 @@ def guess_onnx_input_shape_dtype(filename): + if os.getenv('AUX_ORT_PROVIDERS'): + ONNX_PROVIDERS = os.getenv('AUX_ORT_PROVIDERS').split(',') + else: +- ONNX_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "MIGraphXExecutionProvider"] ++ ONNX_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider", "CPUExecutionProvider"] + def get_ort_providers() -> List[str]: + providers = [] + try: + +From cb5790ad75c621729068b6164392728e6cdaf8d5 Mon Sep 17 00:00:00 2001 +From: Dw_03 +Date: Tue, 4 Nov 2025 14:11:52 +0100 +Subject: [PATCH 8/8] Update utils.py + +--- + utils.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utils.py b/utils.py +index 813b9520..c37f9411 100644 +--- a/utils.py ++++ b/utils.py +@@ -46,7 +46,7 @@ + annotator_ckpts_path = str(Path(here, "./ckpts")) + TEMP_DIR = tempfile.gettempdir() + USE_SYMLINKS = False +- ORT_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "CoreMLExecutionProvider", "MIGraphXExecutionProvider"] ++ ORT_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider", "CPUExecutionProvider", "CoreMLExecutionProvider"] + + os.environ['AUX_ANNOTATOR_CKPTS_PATH'] = os.getenv('AUX_ANNOTATOR_CKPTS_PATH', annotator_ckpts_path) + os.environ['AUX_TEMP_DIR'] = os.getenv('AUX_TEMP_DIR', str(TEMP_DIR)) diff --git a/docs/hel-892/openpose-reference/dw__LICENSE.txt b/docs/hel-892/openpose-reference/dw__LICENSE.txt new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__LICENSE.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/docs/hel-892/openpose-reference/dw____init__.py b/docs/hel-892/openpose-reference/dw____init__.py new file mode 100644 index 00000000..0de222b1 --- /dev/null +++ b/docs/hel-892/openpose-reference/dw____init__.py @@ -0,0 +1,224 @@ +import sys, os + +# Disable NPU device initialization and problematic MMCV ops to prevent RuntimeError +# Must be set BEFORE any MMCV imports happen anywhere in ComfyUI +os.environ['NPU_DEVICE_COUNT'] = '0' +os.environ['MMCV_WITH_OPS'] = '0' +from .utils import here, define_preprocessor_inputs, INPUT +from pathlib import Path +import traceback +import importlib +from .log import log, blue_text, cyan_text, get_summary, get_label +from .hint_image_enchance import NODE_CLASS_MAPPINGS as HIE_NODE_CLASS_MAPPINGS +from .hint_image_enchance import NODE_DISPLAY_NAME_MAPPINGS as HIE_NODE_DISPLAY_NAME_MAPPINGS +#Ref: https://github.com/comfyanonymous/ComfyUI/blob/76d53c4622fc06372975ed2a43ad345935b8a551/nodes.py#L17 +sys.path.insert(0, str(Path(here, "src").resolve())) +for pkg_name in ["custom_controlnet_aux", "custom_mmpkg"]: + sys.path.append(str(Path(here, "src", pkg_name).resolve())) + +#Enable CPU fallback for ops not being supported by MPS like upsample_bicubic2d.out +#https://github.com/pytorch/pytorch/issues/77764 +#https://github.com/Fannovel16/comfyui_controlnet_aux/issues/2#issuecomment-1763579485 +os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = os.getenv("PYTORCH_ENABLE_MPS_FALLBACK", '1') + + +def load_nodes(): + shorted_errors = [] + full_error_messages = [] + node_class_mappings = {} + node_display_name_mappings = {} + + for filename in (here / "node_wrappers").iterdir(): + module_name = filename.stem + if module_name.startswith('.'): continue #Skip hidden files created by the OS (e.g. [.DS_Store](https://en.wikipedia.org/wiki/.DS_Store)) + try: + module = importlib.import_module( + f".node_wrappers.{module_name}", package=__package__ + ) + node_class_mappings.update(getattr(module, "NODE_CLASS_MAPPINGS")) + if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS"): + node_display_name_mappings.update(getattr(module, "NODE_DISPLAY_NAME_MAPPINGS")) + + log.debug(f"Imported {module_name} nodes") + + except AttributeError: + pass # wip nodes + except Exception: + error_message = traceback.format_exc() + full_error_messages.append(error_message) + error_message = error_message.splitlines()[-1] + shorted_errors.append( + f"Failed to import module {module_name} because {error_message}" + ) + + if len(shorted_errors) > 0: + full_err_log = '\n\n'.join(full_error_messages) + print(f"\n\nFull error log from comfyui_controlnet_aux: \n{full_err_log}\n\n") + log.info( + f"Some nodes failed to load:\n\t" + + "\n\t".join(shorted_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/Fannovel16/comfyui_controlnet_aux/issues)" + ) + return node_class_mappings, node_display_name_mappings + +AUX_NODE_MAPPINGS, AUX_DISPLAY_NAME_MAPPINGS = load_nodes() + +#For nodes not mapping image to image or has special requirements +AIO_NOT_SUPPORTED = ["InpaintPreprocessor", "MeshGraphormer+ImpactDetector-DepthMapPreprocessor", "DiffusionEdge_Preprocessor"] +AIO_NOT_SUPPORTED += ["SavePoseKpsAsJsonFile", "FacialPartColoringFromPoseKps", "UpperBodyTrackingFromPoseKps", "RenderPeopleKps", "RenderAnimalKps"] +AIO_NOT_SUPPORTED += ["Unimatch_OptFlowPreprocessor", "MaskOptFlow"] + +def preprocessor_options(): + auxs = list(AUX_NODE_MAPPINGS.keys()) + auxs.insert(0, "none") + for name in AIO_NOT_SUPPORTED: + if name in auxs: + auxs.remove(name) + return auxs + + +PREPROCESSOR_OPTIONS = preprocessor_options() + +class AIO_Preprocessor: + @classmethod + def INPUT_TYPES(s): + return define_preprocessor_inputs( + preprocessor=INPUT.COMBO(PREPROCESSOR_OPTIONS, default="none"), + resolution=INPUT.RESOLUTION() + ) + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "execute" + + CATEGORY = "ControlNet Preprocessors" + + def execute(self, preprocessor, image, resolution=512): + if preprocessor == "none": + return (image, ) + else: + aux_class = AUX_NODE_MAPPINGS[preprocessor] + input_types = aux_class.INPUT_TYPES() + input_types = { + **input_types["required"], + **(input_types["optional"] if "optional" in input_types else {}) + } + params = {} + for name, input_type in input_types.items(): + if name == "image": + params[name] = image + continue + + if name == "resolution": + params[name] = resolution + continue + + if len(input_type) == 2 and ("default" in input_type[1]): + params[name] = input_type[1]["default"] + continue + + default_values = { "INT": 0, "FLOAT": 0.0 } + if type(input_type[0]) is list: + for input_type_value in input_type[0]: + if input_type_value in default_values: + params[name] = default_values[input_type[0]] + else: + if input_type[0] in default_values: + params[name] = default_values[input_type[0]] + + return getattr(aux_class(), aux_class.FUNCTION)(**params) + +class ControlNetAuxSimpleAddText: + @classmethod + def INPUT_TYPES(s): + return dict( + required=dict(image=INPUT.IMAGE(), text=INPUT.STRING()) + ) + + RETURN_TYPES = ("IMAGE",) + FUNCTION = "execute" + CATEGORY = "ControlNet Preprocessors" + def execute(self, image, text): + from PIL import Image, ImageDraw, ImageFont + import numpy as np + import torch + + font = ImageFont.truetype(str((here / "NotoSans-Regular.ttf").resolve()), 40) + img = Image.fromarray(image[0].cpu().numpy().__mul__(255.).astype(np.uint8)) + ImageDraw.Draw(img).text((0,0), text, fill=(0,255,0), font=font) + return (torch.from_numpy(np.array(img)).unsqueeze(0) / 255.,) + +class ExecuteAllControlNetPreprocessors: + @classmethod + def INPUT_TYPES(s): + return define_preprocessor_inputs(resolution=INPUT.RESOLUTION()) + RETURN_TYPES = ("IMAGE",) + FUNCTION = "execute" + + CATEGORY = "ControlNet Preprocessors" + + def execute(self, image, resolution=512): + try: + from comfy_execution.graph_utils import GraphBuilder + except: + raise RuntimeError("ExecuteAllControlNetPreprocessor requries [Execution Model Inversion](https://github.com/comfyanonymous/ComfyUI/commit/5cfe38). Update ComfyUI/SwarmUI to get this feature") + + graph = GraphBuilder() + curr_outputs = [] + for preprocc in PREPROCESSOR_OPTIONS: + preprocc_node = graph.node("AIO_Preprocessor", preprocessor=preprocc, image=image, resolution=resolution) + hint_img = preprocc_node.out(0) + add_text_node = graph.node("ControlNetAuxSimpleAddText", image=hint_img, text=preprocc) + curr_outputs.append(add_text_node.out(0)) + + while len(curr_outputs) > 1: + _outputs = [] + for i in range(0, len(curr_outputs), 2): + if i+1 < len(curr_outputs): + image_batch = graph.node("ImageBatch", image1=curr_outputs[i], image2=curr_outputs[i+1]) + _outputs.append(image_batch.out(0)) + else: + _outputs.append(curr_outputs[i]) + curr_outputs = _outputs + + return { + "result": (curr_outputs[0],), + "expand": graph.finalize(), + } + +class ControlNetPreprocessorSelector: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "preprocessor": (PREPROCESSOR_OPTIONS,), + } + } + + RETURN_TYPES = (PREPROCESSOR_OPTIONS,) + RETURN_NAMES = ("preprocessor",) + FUNCTION = "get_preprocessor" + + CATEGORY = "ControlNet Preprocessors" + + def get_preprocessor(self, preprocessor: str): + return (preprocessor,) + + +NODE_CLASS_MAPPINGS = { + **AUX_NODE_MAPPINGS, + "AIO_Preprocessor": AIO_Preprocessor, + "ControlNetPreprocessorSelector": ControlNetPreprocessorSelector, + **HIE_NODE_CLASS_MAPPINGS, + "ExecuteAllControlNetPreprocessors": ExecuteAllControlNetPreprocessors, + "ControlNetAuxSimpleAddText": ControlNetAuxSimpleAddText +} + +NODE_DISPLAY_NAME_MAPPINGS = { + **AUX_DISPLAY_NAME_MAPPINGS, + "AIO_Preprocessor": "AIO Aux Preprocessor", + "ControlNetPreprocessorSelector": "Preprocessor Selector", + **HIE_NODE_DISPLAY_NAME_MAPPINGS, + "ExecuteAllControlNetPreprocessors": "Execute All ControlNet Preprocessors" +} diff --git a/docs/hel-892/openpose-reference/dw__node_wrappers__dwpose.py b/docs/hel-892/openpose-reference/dw__node_wrappers__dwpose.py new file mode 100644 index 00000000..34905037 --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__node_wrappers__dwpose.py @@ -0,0 +1,166 @@ +from ..utils import common_annotator_call, define_preprocessor_inputs, INPUT +import comfy.model_management as model_management +import numpy as np +import warnings +from ..src.custom_controlnet_aux.dwpose import DwposeDetector, AnimalposeDetector +import os +import json + +DWPOSE_MODEL_NAME = "yzd-v/DWPose" +#Trigger startup caching for onnxruntime +GPU_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CoreMLExecutionProvider", "MIGraphXExecutionProvider"] +def check_ort_gpu(): + try: + import onnxruntime as ort + for provider in GPU_PROVIDERS: + if provider in ort.get_available_providers(): + return True + return False + except: + return False + +if not os.environ.get("DWPOSE_ONNXRT_CHECKED"): + if check_ort_gpu(): + print("DWPose: Onnxruntime with acceleration providers detected") + else: + warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly") + os.environ['AUX_ORT_PROVIDERS'] = '' + os.environ["DWPOSE_ONNXRT_CHECKED"] = '1' + +class DWPose_Preprocessor: + @classmethod + def INPUT_TYPES(s): + return define_preprocessor_inputs( + detect_hand=INPUT.COMBO(["enable", "disable"]), + detect_body=INPUT.COMBO(["enable", "disable"]), + detect_face=INPUT.COMBO(["enable", "disable"]), + resolution=INPUT.RESOLUTION(), + bbox_detector=INPUT.COMBO( + ["None"] + ["yolox_l.torchscript.pt", "yolox_l.onnx", "yolo_nas_l_fp16.onnx", "yolo_nas_m_fp16.onnx", "yolo_nas_s_fp16.onnx"], + default="yolox_l.onnx" + ), + pose_estimator=INPUT.COMBO( + ["dw-ll_ucoco_384_bs5.torchscript.pt", "dw-ll_ucoco_384.onnx", "dw-ll_ucoco.onnx"], + default="dw-ll_ucoco_384_bs5.torchscript.pt" + ), + scale_stick_for_xinsr_cn=INPUT.COMBO(["disable", "enable"]) + ) + + RETURN_TYPES = ("IMAGE", "POSE_KEYPOINT") + FUNCTION = "estimate_pose" + + CATEGORY = "ControlNet Preprocessors/Faces and Poses Estimators" + + def estimate_pose(self, image, detect_hand="enable", detect_body="enable", detect_face="enable", resolution=512, bbox_detector="yolox_l.onnx", pose_estimator="dw-ll_ucoco_384.onnx", scale_stick_for_xinsr_cn="disable", **kwargs): + if bbox_detector == "None": + yolo_repo = DWPOSE_MODEL_NAME + elif bbox_detector == "yolox_l.onnx": + yolo_repo = DWPOSE_MODEL_NAME + elif "yolox" in bbox_detector: + yolo_repo = "hr16/yolox-onnx" + elif "yolo_nas" in bbox_detector: + yolo_repo = "hr16/yolo-nas-fp16" + else: + raise NotImplementedError(f"Download mechanism for {bbox_detector}") + + if pose_estimator == "dw-ll_ucoco_384.onnx": + pose_repo = DWPOSE_MODEL_NAME + elif pose_estimator.endswith(".onnx"): + pose_repo = "hr16/UnJIT-DWPose" + elif pose_estimator.endswith(".torchscript.pt"): + pose_repo = "hr16/DWPose-TorchScript-BatchSize5" + else: + raise NotImplementedError(f"Download mechanism for {pose_estimator}") + + model = DwposeDetector.from_pretrained( + pose_repo, + yolo_repo, + det_filename=(None if bbox_detector == "None" else bbox_detector), pose_filename=pose_estimator, + torchscript_device=model_management.get_torch_device() + ) + detect_hand = detect_hand == "enable" + detect_body = detect_body == "enable" + detect_face = detect_face == "enable" + scale_stick_for_xinsr_cn = scale_stick_for_xinsr_cn == "enable" + self.openpose_dicts = [] + def func(image, **kwargs): + pose_img, openpose_dict = model(image, **kwargs) + self.openpose_dicts.append(openpose_dict) + return pose_img + + out = common_annotator_call(func, image, include_hand=detect_hand, include_face=detect_face, include_body=detect_body, image_and_json=True, resolution=resolution, xinsr_stick_scaling=scale_stick_for_xinsr_cn) + del model + return { + 'ui': { "openpose_json": [json.dumps(self.openpose_dicts, indent=4)] }, + "result": (out, self.openpose_dicts) + } + +class AnimalPose_Preprocessor: + @classmethod + def INPUT_TYPES(s): + return define_preprocessor_inputs( + bbox_detector = INPUT.COMBO( + ["None"] + ["yolox_l.torchscript.pt", "yolox_l.onnx", "yolo_nas_l_fp16.onnx", "yolo_nas_m_fp16.onnx", "yolo_nas_s_fp16.onnx"], + default="yolox_l.torchscript.pt" + ), + pose_estimator = INPUT.COMBO( + ["rtmpose-m_ap10k_256_bs5.torchscript.pt", "rtmpose-m_ap10k_256.onnx"], + default="rtmpose-m_ap10k_256_bs5.torchscript.pt" + ), + resolution = INPUT.RESOLUTION() + ) + + RETURN_TYPES = ("IMAGE", "POSE_KEYPOINT") + FUNCTION = "estimate_pose" + + CATEGORY = "ControlNet Preprocessors/Faces and Poses Estimators" + + def estimate_pose(self, image, resolution=512, bbox_detector="yolox_l.onnx", pose_estimator="rtmpose-m_ap10k_256.onnx", **kwargs): + if bbox_detector == "None": + yolo_repo = DWPOSE_MODEL_NAME + elif bbox_detector == "yolox_l.onnx": + yolo_repo = DWPOSE_MODEL_NAME + elif "yolox" in bbox_detector: + yolo_repo = "hr16/yolox-onnx" + elif "yolo_nas" in bbox_detector: + yolo_repo = "hr16/yolo-nas-fp16" + else: + raise NotImplementedError(f"Download mechanism for {bbox_detector}") + + if pose_estimator == "dw-ll_ucoco_384.onnx": + pose_repo = DWPOSE_MODEL_NAME + elif pose_estimator.endswith(".onnx"): + pose_repo = "hr16/UnJIT-DWPose" + elif pose_estimator.endswith(".torchscript.pt"): + pose_repo = "hr16/DWPose-TorchScript-BatchSize5" + else: + raise NotImplementedError(f"Download mechanism for {pose_estimator}") + + model = AnimalposeDetector.from_pretrained( + pose_repo, + yolo_repo, + det_filename=(None if bbox_detector == "None" else bbox_detector), pose_filename=pose_estimator, + torchscript_device=model_management.get_torch_device() + ) + + self.openpose_dicts = [] + def func(image, **kwargs): + pose_img, openpose_dict = model(image, **kwargs) + self.openpose_dicts.append(openpose_dict) + return pose_img + + out = common_annotator_call(func, image, image_and_json=True, resolution=resolution) + del model + return { + 'ui': { "openpose_json": [json.dumps(self.openpose_dicts, indent=4)] }, + "result": (out, self.openpose_dicts) + } + +NODE_CLASS_MAPPINGS = { + "DWPreprocessor": DWPose_Preprocessor, + "AnimalPosePreprocessor": AnimalPose_Preprocessor +} +NODE_DISPLAY_NAME_MAPPINGS = { + "DWPreprocessor": "DWPose Estimator", + "AnimalPosePreprocessor": "AnimalPose Estimator (AP10K)" +} diff --git a/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py new file mode 100644 index 00000000..a9152bef --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose____init__.py @@ -0,0 +1,332 @@ +# Openpose +# Original from CMU https://github.com/CMU-Perceptual-Computing-Lab/openpose +# 2nd Edited by https://github.com/Hzzone/pytorch-openpose +# 3rd Edited by ControlNet +# 4th Edited by ControlNet (added face and correct hands) +# 5th Edited by ControlNet (Improved JSON serialization/deserialization, and lots of bug fixs) +# This preprocessor is licensed by CMU for non-commercial use only. + +import os +os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" + +import json +import torch +import numpy as np +from . import util +from .body import Body, BodyResult, Keypoint +from .hand import Hand +from .face import Face +from .types import PoseResult, HandResult, FaceResult, AnimalPoseResult +from huggingface_hub import hf_hub_download +from .wholebody import Wholebody +import warnings +from custom_controlnet_aux.util import HWC3, resize_image_with_pad, common_input_validate, custom_hf_download +import cv2 +from PIL import Image +from .animalpose import AnimalPoseImage + +from typing import Tuple, List, Callable, Union, Optional + + +def draw_animalposes(animals: list[list[Keypoint]], H: int, W: int) -> np.ndarray: + canvas = np.zeros(shape=(H, W, 3), dtype=np.uint8) + for animal_pose in animals: + canvas = draw_animalpose(canvas, animal_pose) + return canvas + + +def draw_animalpose(canvas: np.ndarray, keypoints: list[Keypoint]) -> np.ndarray: + # order of the keypoints for AP10k and a standardized list of colors for limbs + keypointPairsList = [ + (1, 2), + (2, 3), + (1, 3), + (3, 4), + (4, 9), + (9, 10), + (10, 11), + (4, 6), + (6, 7), + (7, 8), + (4, 5), + (5, 15), + (15, 16), + (16, 17), + (5, 12), + (12, 13), + (13, 14), + ] + colorsList = [ + (255, 255, 255), + (100, 255, 100), + (150, 255, 255), + (100, 50, 255), + (50, 150, 200), + (0, 255, 255), + (0, 150, 0), + (0, 0, 255), + (0, 0, 150), + (255, 50, 255), + (255, 0, 255), + (255, 0, 0), + (150, 0, 0), + (255, 255, 100), + (0, 150, 0), + (255, 255, 0), + (150, 150, 150), + ] # 16 colors needed + + for ind, (i, j) in enumerate(keypointPairsList): + p1 = keypoints[i - 1] + p2 = keypoints[j - 1] + + if p1 is not None and p2 is not None: + cv2.line( + canvas, + (int(p1.x), int(p1.y)), + (int(p2.x), int(p2.y)), + colorsList[ind], + 5, + ) + return canvas + + +def draw_poses(poses: List[PoseResult], H, W, draw_body=True, draw_hand=True, draw_face=True, xinsr_stick_scaling=False): + """ + Draw the detected poses on an empty canvas. + + Args: + poses (List[PoseResult]): A list of PoseResult objects containing the detected poses. + H (int): The height of the canvas. + W (int): The width of the canvas. + draw_body (bool, optional): Whether to draw body keypoints. Defaults to True. + draw_hand (bool, optional): Whether to draw hand keypoints. Defaults to True. + draw_face (bool, optional): Whether to draw face keypoints. Defaults to True. + + Returns: + numpy.ndarray: A 3D numpy array representing the canvas with the drawn poses. + """ + canvas = np.zeros(shape=(H, W, 3), dtype=np.uint8) + + for pose in poses: + if draw_body: + canvas = util.draw_bodypose(canvas, pose.body.keypoints, xinsr_stick_scaling) + + if draw_hand: + canvas = util.draw_handpose(canvas, pose.left_hand) + canvas = util.draw_handpose(canvas, pose.right_hand) + + if draw_face: + canvas = util.draw_facepose(canvas, pose.face) + + return canvas + + +def decode_json_as_poses( + pose_json: dict, +) -> Tuple[List[PoseResult], List[AnimalPoseResult], int, int]: + """Decode the json_string complying with the openpose JSON output format + to poses that controlnet recognizes. + https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/02_output.md + + Args: + json_string: The json string to decode. + + Returns: + human_poses + animal_poses + canvas_height + canvas_width + """ + height = pose_json["canvas_height"] + width = pose_json["canvas_width"] + + def chunks(lst, n): + """Yield successive n-sized chunks from lst.""" + for i in range(0, len(lst), n): + yield lst[i : i + n] + + def decompress_keypoints( + numbers: Optional[List[float]], + ) -> Optional[List[Optional[Keypoint]]]: + if not numbers: + return None + + assert len(numbers) % 3 == 0 + + def create_keypoint(x, y, c): + if c < 1.0: + return None + keypoint = Keypoint(x, y) + return keypoint + + return [create_keypoint(x, y, c) for x, y, c in chunks(numbers, n=3)] + + return ( + [ + PoseResult( + body=BodyResult( + keypoints=decompress_keypoints(pose.get("pose_keypoints_2d")) + ), + left_hand=decompress_keypoints(pose.get("hand_left_keypoints_2d")), + right_hand=decompress_keypoints(pose.get("hand_right_keypoints_2d")), + face=decompress_keypoints(pose.get("face_keypoints_2d")), + ) + for pose in pose_json.get("people", []) + ], + [decompress_keypoints(pose) for pose in pose_json.get("animals", [])], + height, + width, + ) + + +def encode_poses_as_dict(poses: List[PoseResult], canvas_height: int, canvas_width: int) -> str: + """ Encode the pose as a dict following openpose JSON output format: + https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/02_output.md + """ + def compress_keypoints(keypoints: Union[List[Keypoint], None]) -> Union[List[float], None]: + if not keypoints: + return None + + return [ + value + for keypoint in keypoints + for value in ( + [float(keypoint.x), float(keypoint.y), 1.0] + if keypoint is not None + else [0.0, 0.0, 0.0] + ) + ] + + return { + 'people': [ + { + 'pose_keypoints_2d': compress_keypoints(pose.body.keypoints), + "face_keypoints_2d": compress_keypoints(pose.face), + "hand_left_keypoints_2d": compress_keypoints(pose.left_hand), + "hand_right_keypoints_2d":compress_keypoints(pose.right_hand), + } + for pose in poses + ], + 'canvas_height': canvas_height, + 'canvas_width': canvas_width, + } + +global_cached_dwpose = Wholebody() + +class DwposeDetector: + """ + A class for detecting human poses in images using the Dwpose model. + + Attributes: + model_dir (str): Path to the directory where the pose models are stored. + """ + def __init__(self, dw_pose_estimation): + self.dw_pose_estimation = dw_pose_estimation + + @classmethod + def from_pretrained(cls, pretrained_model_or_path, pretrained_det_model_or_path=None, det_filename=None, pose_filename=None, torchscript_device="cuda"): + global global_cached_dwpose + pretrained_det_model_or_path = pretrained_det_model_or_path or pretrained_model_or_path + + pose_filename = pose_filename or "dw-ll_ucoco_384.onnx" + + det_model_path = None + if det_filename is not None: + det_model_path = custom_hf_download(pretrained_det_model_or_path, det_filename) + pose_model_path = custom_hf_download(pretrained_model_or_path, pose_filename) + + print(f"\nDWPose: Using {det_filename} for bbox detection and {pose_filename} for pose estimation") + if global_cached_dwpose.det is None or global_cached_dwpose.det_filename != det_filename: + t = Wholebody(det_model_path, None, torchscript_device=torchscript_device) + t.pose = global_cached_dwpose.pose + t.pose_filename = global_cached_dwpose.pose + global_cached_dwpose = t + + if global_cached_dwpose.pose is None or global_cached_dwpose.pose_filename != pose_filename: + t = Wholebody(None, pose_model_path, torchscript_device=torchscript_device) + t.det = global_cached_dwpose.det + t.det_filename = global_cached_dwpose.det_filename + global_cached_dwpose = t + return cls(global_cached_dwpose) + + def detect_poses(self, oriImg) -> List[PoseResult]: + with torch.no_grad(): + keypoints_info = self.dw_pose_estimation(oriImg.copy()) + return Wholebody.format_result(keypoints_info) + + def __call__(self, input_image, detect_resolution=512, include_body=True, include_hand=False, include_face=False, hand_and_face=None, output_type="pil", image_and_json=False, upscale_method="INTER_CUBIC", xinsr_stick_scaling=False, **kwargs): + if hand_and_face is not None: + warnings.warn("hand_and_face is deprecated. Use include_hand and include_face instead.", DeprecationWarning) + include_hand = hand_and_face + include_face = hand_and_face + + input_image, output_type = common_input_validate(input_image, output_type, **kwargs) + input_image, _ = resize_image_with_pad(input_image, 0, upscale_method) + poses = self.detect_poses(input_image) + + canvas = draw_poses(poses, input_image.shape[0], input_image.shape[1], draw_body=include_body, draw_hand=include_hand, draw_face=include_face, xinsr_stick_scaling=xinsr_stick_scaling) + canvas, remove_pad = resize_image_with_pad(canvas, detect_resolution, upscale_method) + detected_map = HWC3(remove_pad(canvas)) + + if output_type == "pil": + detected_map = Image.fromarray(detected_map) + + if image_and_json: + return (detected_map, encode_poses_as_dict(poses, input_image.shape[0], input_image.shape[1])) + + return detected_map + +global_cached_animalpose = AnimalPoseImage() +class AnimalposeDetector: + """ + A class for detecting animal poses in images using the RTMPose AP10k model. + + Attributes: + model_dir (str): Path to the directory where the pose models are stored. + """ + def __init__(self, animal_pose_estimation): + self.animal_pose_estimation = animal_pose_estimation + + @classmethod + def from_pretrained(cls, pretrained_model_or_path, pretrained_det_model_or_path=None, det_filename="yolox_l.onnx", pose_filename="dw-ll_ucoco_384.onnx", torchscript_device="cuda"): + global global_cached_animalpose + det_model_path = custom_hf_download(pretrained_det_model_or_path, det_filename) + pose_model_path = custom_hf_download(pretrained_model_or_path, pose_filename) + + print(f"\nAnimalPose: Using {det_filename} for bbox detection and {pose_filename} for pose estimation") + if global_cached_animalpose.det is None or global_cached_animalpose.det_filename != det_filename: + t = AnimalPoseImage(det_model_path, None, torchscript_device=torchscript_device) + t.pose = global_cached_animalpose.pose + t.pose_filename = global_cached_animalpose.pose + global_cached_animalpose = t + + if global_cached_animalpose.pose is None or global_cached_animalpose.pose_filename != pose_filename: + t = AnimalPoseImage(None, pose_model_path, torchscript_device=torchscript_device) + t.det = global_cached_animalpose.det + t.det_filename = global_cached_animalpose.det_filename + global_cached_animalpose = t + return cls(global_cached_animalpose) + + def __call__(self, input_image, detect_resolution=512, output_type="pil", image_and_json=False, upscale_method="INTER_CUBIC", **kwargs): + input_image, output_type = common_input_validate(input_image, output_type, **kwargs) + input_image, remove_pad = resize_image_with_pad(input_image, detect_resolution, upscale_method) + result = self.animal_pose_estimation(input_image) + if result is None: + detected_map = np.zeros_like(input_image) + openpose_dict = { + 'version': 'ap10k', + 'animals': [], + 'canvas_height': input_image.shape[0], + 'canvas_width': input_image.shape[1] + } + else: + detected_map, openpose_dict = result + detected_map = remove_pad(detected_map) + if output_type == "pil": + detected_map = Image.fromarray(detected_map) + + if image_and_json: + return (detected_map, openpose_dict) + + return detected_map diff --git a/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py new file mode 100644 index 00000000..921c9294 --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose__util.py @@ -0,0 +1,466 @@ +import math +import numpy as np +import matplotlib +import cv2 +import os +from typing import List, Tuple, Union, Optional + +from .body import BodyResult, Keypoint + +eps = 0.01 + + +def smart_resize(x, s): + Ht, Wt = s + if x.ndim == 2: + Ho, Wo = x.shape + Co = 1 + else: + Ho, Wo, Co = x.shape + if Co == 3 or Co == 1: + k = float(Ht + Wt) / float(Ho + Wo) + return cv2.resize(x, (int(Wt), int(Ht)), interpolation=cv2.INTER_AREA if k < 1 else cv2.INTER_LANCZOS4) + else: + return np.stack([smart_resize(x[:, :, i], s) for i in range(Co)], axis=2) + + +def smart_resize_k(x, fx, fy): + if x.ndim == 2: + Ho, Wo = x.shape + Co = 1 + else: + Ho, Wo, Co = x.shape + Ht, Wt = Ho * fy, Wo * fx + if Co == 3 or Co == 1: + k = float(Ht + Wt) / float(Ho + Wo) + return cv2.resize(x, (int(Wt), int(Ht)), interpolation=cv2.INTER_AREA if k < 1 else cv2.INTER_LANCZOS4) + else: + return np.stack([smart_resize_k(x[:, :, i], fx, fy) for i in range(Co)], axis=2) + + +def padRightDownCorner(img, stride, padValue): + h = img.shape[0] + w = img.shape[1] + + pad = 4 * [None] + pad[0] = 0 # up + pad[1] = 0 # left + pad[2] = 0 if (h % stride == 0) else stride - (h % stride) # down + pad[3] = 0 if (w % stride == 0) else stride - (w % stride) # right + + img_padded = img + pad_up = np.tile(img_padded[0:1, :, :]*0 + padValue, (pad[0], 1, 1)) + img_padded = np.concatenate((pad_up, img_padded), axis=0) + pad_left = np.tile(img_padded[:, 0:1, :]*0 + padValue, (1, pad[1], 1)) + img_padded = np.concatenate((pad_left, img_padded), axis=1) + pad_down = np.tile(img_padded[-2:-1, :, :]*0 + padValue, (pad[2], 1, 1)) + img_padded = np.concatenate((img_padded, pad_down), axis=0) + pad_right = np.tile(img_padded[:, -2:-1, :]*0 + padValue, (1, pad[3], 1)) + img_padded = np.concatenate((img_padded, pad_right), axis=1) + + return img_padded, pad + + +def transfer(model, model_weights): + transfered_model_weights = {} + for weights_name in model.state_dict().keys(): + transfered_model_weights[weights_name] = model_weights['.'.join(weights_name.split('.')[1:])] + return transfered_model_weights + + +def is_normalized(keypoints: List[Optional[Keypoint]]) -> bool: + point_normalized = [ + 0 <= abs(k.x) <= 1 and 0 <= abs(k.y) <= 1 + for k in keypoints + if k is not None + ] + if not point_normalized: + return False + return all(point_normalized) + + +def draw_bodypose(canvas: np.ndarray, keypoints: List[Keypoint], xinsr_stick_scaling: bool = False) -> np.ndarray: + """ + Draw keypoints and limbs representing body pose on a given canvas. + + Args: + canvas (np.ndarray): A 3D numpy array representing the canvas (image) on which to draw the body pose. + keypoints (List[Keypoint]): A list of Keypoint objects representing the body keypoints to be drawn. + xinsr_stick_scaling (bool): Whether or not scaling stick width for xinsr ControlNet + + Returns: + np.ndarray: A 3D numpy array representing the modified canvas with the drawn body pose. + + Note: + The function expects the x and y coordinates of the keypoints to be normalized between 0 and 1. + """ + if not is_normalized(keypoints): + H, W = 1.0, 1.0 + else: + H, W, _ = canvas.shape + + CH, CW, _ = canvas.shape + stickwidth = 4 + + # Ref: https://huggingface.co/xinsir/controlnet-openpose-sdxl-1.0 + max_side = max(CW, CH) + if xinsr_stick_scaling: + stick_scale = 1 if max_side < 500 else min(2 + (max_side // 1000), 7) + else: + stick_scale = 1 + + limbSeq = [ + [2, 3], [2, 6], [3, 4], [4, 5], + [6, 7], [7, 8], [2, 9], [9, 10], + [10, 11], [2, 12], [12, 13], [13, 14], + [2, 1], [1, 15], [15, 17], [1, 16], + [16, 18], + ] + + colors = [[255, 0, 0], [255, 85, 0], [255, 170, 0], [255, 255, 0], [170, 255, 0], [85, 255, 0], [0, 255, 0], \ + [0, 255, 85], [0, 255, 170], [0, 255, 255], [0, 170, 255], [0, 85, 255], [0, 0, 255], [85, 0, 255], \ + [170, 0, 255], [255, 0, 255], [255, 0, 170], [255, 0, 85]] + + for (k1_index, k2_index), color in zip(limbSeq, colors): + keypoint1 = keypoints[k1_index - 1] + keypoint2 = keypoints[k2_index - 1] + + if keypoint1 is None or keypoint2 is None: + continue + + Y = np.array([keypoint1.x, keypoint2.x]) * float(W) + X = np.array([keypoint1.y, keypoint2.y]) * float(H) + mX = np.mean(X) + mY = np.mean(Y) + length = ((X[0] - X[1]) ** 2 + (Y[0] - Y[1]) ** 2) ** 0.5 + angle = math.degrees(math.atan2(X[0] - X[1], Y[0] - Y[1])) + polygon = cv2.ellipse2Poly((int(mY), int(mX)), (int(length / 2), stickwidth*stick_scale), int(angle), 0, 360, 1) + cv2.fillConvexPoly(canvas, polygon, [int(float(c) * 0.6) for c in color]) + + for keypoint, color in zip(keypoints, colors): + if keypoint is None: + continue + + x, y = keypoint.x, keypoint.y + x = int(x * W) + y = int(y * H) + cv2.circle(canvas, (int(x), int(y)), 4, color, thickness=-1) + + return canvas + + +def draw_handpose(canvas: np.ndarray, keypoints: Union[List[Keypoint], None]) -> np.ndarray: + """ + Draw keypoints and connections representing hand pose on a given canvas. + + Args: + canvas (np.ndarray): A 3D numpy array representing the canvas (image) on which to draw the hand pose. + keypoints (List[Keypoint]| None): A list of Keypoint objects representing the hand keypoints to be drawn + or None if no keypoints are present. + + Returns: + np.ndarray: A 3D numpy array representing the modified canvas with the drawn hand pose. + + Note: + The function expects the x and y coordinates of the keypoints to be normalized between 0 and 1. + """ + if not keypoints: + return canvas + + if not is_normalized(keypoints): + H, W = 1.0, 1.0 + else: + H, W, _ = canvas.shape + + edges = [[0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [0, 9], [9, 10], \ + [10, 11], [11, 12], [0, 13], [13, 14], [14, 15], [15, 16], [0, 17], [17, 18], [18, 19], [19, 20]] + + for ie, (e1, e2) in enumerate(edges): + k1 = keypoints[e1] + k2 = keypoints[e2] + if k1 is None or k2 is None: + continue + + x1 = int(k1.x * W) + y1 = int(k1.y * H) + x2 = int(k2.x * W) + y2 = int(k2.y * H) + if x1 > eps and y1 > eps and x2 > eps and y2 > eps: + cv2.line(canvas, (x1, y1), (x2, y2), matplotlib.colors.hsv_to_rgb([ie / float(len(edges)), 1.0, 1.0]) * 255, thickness=2) + + for keypoint in keypoints: + if keypoint is None: + continue + + x, y = keypoint.x, keypoint.y + x = int(x * W) + y = int(y * H) + if x > eps and y > eps: + cv2.circle(canvas, (x, y), 4, (0, 0, 255), thickness=-1) + return canvas + + +def draw_facepose(canvas: np.ndarray, keypoints: Union[List[Keypoint], None]) -> np.ndarray: + """ + Draw keypoints representing face pose on a given canvas. + + Args: + canvas (np.ndarray): A 3D numpy array representing the canvas (image) on which to draw the face pose. + keypoints (List[Keypoint]| None): A list of Keypoint objects representing the face keypoints to be drawn + or None if no keypoints are present. + + Returns: + np.ndarray: A 3D numpy array representing the modified canvas with the drawn face pose. + + Note: + The function expects the x and y coordinates of the keypoints to be normalized between 0 and 1. + """ + if not keypoints: + return canvas + + if not is_normalized(keypoints): + H, W = 1.0, 1.0 + else: + H, W, _ = canvas.shape + + for keypoint in keypoints: + if keypoint is None: + continue + + x, y = keypoint.x, keypoint.y + x = int(x * W) + y = int(y * H) + if x > eps and y > eps: + cv2.circle(canvas, (x, y), 3, (255, 255, 255), thickness=-1) + return canvas + + +# detect hand according to body pose keypoints +# please refer to https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/src/openpose/hand/handDetector.cpp +def handDetect(body: BodyResult, oriImg) -> List[Tuple[int, int, int, bool]]: + """ + Detect hands in the input body pose keypoints and calculate the bounding box for each hand. + + Args: + body (BodyResult): A BodyResult object containing the detected body pose keypoints. + oriImg (numpy.ndarray): A 3D numpy array representing the original input image. + + Returns: + List[Tuple[int, int, int, bool]]: A list of tuples, each containing the coordinates (x, y) of the top-left + corner of the bounding box, the width (height) of the bounding box, and + a boolean flag indicating whether the hand is a left hand (True) or a + right hand (False). + + Notes: + - The width and height of the bounding boxes are equal since the network requires squared input. + - The minimum bounding box size is 20 pixels. + """ + ratioWristElbow = 0.33 + detect_result = [] + image_height, image_width = oriImg.shape[0:2] + + keypoints = body.keypoints + # right hand: wrist 4, elbow 3, shoulder 2 + # left hand: wrist 7, elbow 6, shoulder 5 + left_shoulder = keypoints[5] + left_elbow = keypoints[6] + left_wrist = keypoints[7] + right_shoulder = keypoints[2] + right_elbow = keypoints[3] + right_wrist = keypoints[4] + + # if any of three not detected + has_left = all(keypoint is not None for keypoint in (left_shoulder, left_elbow, left_wrist)) + has_right = all(keypoint is not None for keypoint in (right_shoulder, right_elbow, right_wrist)) + if not (has_left or has_right): + return [] + + hands = [] + #left hand + if has_left: + hands.append([ + left_shoulder.x, left_shoulder.y, + left_elbow.x, left_elbow.y, + left_wrist.x, left_wrist.y, + True + ]) + # right hand + if has_right: + hands.append([ + right_shoulder.x, right_shoulder.y, + right_elbow.x, right_elbow.y, + right_wrist.x, right_wrist.y, + False + ]) + + for x1, y1, x2, y2, x3, y3, is_left in hands: + # pos_hand = pos_wrist + ratio * (pos_wrist - pos_elbox) = (1 + ratio) * pos_wrist - ratio * pos_elbox + # handRectangle.x = posePtr[wrist*3] + ratioWristElbow * (posePtr[wrist*3] - posePtr[elbow*3]); + # handRectangle.y = posePtr[wrist*3+1] + ratioWristElbow * (posePtr[wrist*3+1] - posePtr[elbow*3+1]); + # const auto distanceWristElbow = getDistance(poseKeypoints, person, wrist, elbow); + # const auto distanceElbowShoulder = getDistance(poseKeypoints, person, elbow, shoulder); + # handRectangle.width = 1.5f * fastMax(distanceWristElbow, 0.9f * distanceElbowShoulder); + x = x3 + ratioWristElbow * (x3 - x2) + y = y3 + ratioWristElbow * (y3 - y2) + distanceWristElbow = math.sqrt((x3 - x2) ** 2 + (y3 - y2) ** 2) + distanceElbowShoulder = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2) + width = 1.5 * max(distanceWristElbow, 0.9 * distanceElbowShoulder) + # x-y refers to the center --> offset to topLeft point + # handRectangle.x -= handRectangle.width / 2.f; + # handRectangle.y -= handRectangle.height / 2.f; + x -= width / 2 + y -= width / 2 # width = height + # overflow the image + if x < 0: x = 0 + if y < 0: y = 0 + width1 = width + width2 = width + if x + width > image_width: width1 = image_width - x + if y + width > image_height: width2 = image_height - y + width = min(width1, width2) + # the max hand box value is 20 pixels + if width >= 20: + detect_result.append((int(x), int(y), int(width), is_left)) + + ''' + return value: [[x, y, w, True if left hand else False]]. + width=height since the network require squared input. + x, y is the coordinate of top left + ''' + return detect_result + + +# Written by Lvmin +def faceDetect(body: BodyResult, oriImg) -> Union[Tuple[int, int, int], None]: + """ + Detect the face in the input body pose keypoints and calculate the bounding box for the face. + + Args: + body (BodyResult): A BodyResult object containing the detected body pose keypoints. + oriImg (numpy.ndarray): A 3D numpy array representing the original input image. + + Returns: + Tuple[int, int, int] | None: A tuple containing the coordinates (x, y) of the top-left corner of the + bounding box and the width (height) of the bounding box, or None if the + face is not detected or the bounding box width is less than 20 pixels. + + Notes: + - The width and height of the bounding box are equal. + - The minimum bounding box size is 20 pixels. + """ + # left right eye ear 14 15 16 17 + image_height, image_width = oriImg.shape[0:2] + + keypoints = body.keypoints + head = keypoints[0] + left_eye = keypoints[14] + right_eye = keypoints[15] + left_ear = keypoints[16] + right_ear = keypoints[17] + + if head is None or all(keypoint is None for keypoint in (left_eye, right_eye, left_ear, right_ear)): + return None + + width = 0.0 + x0, y0 = head.x, head.y + + if left_eye is not None: + x1, y1 = left_eye.x, left_eye.y + d = max(abs(x0 - x1), abs(y0 - y1)) + width = max(width, d * 3.0) + + if right_eye is not None: + x1, y1 = right_eye.x, right_eye.y + d = max(abs(x0 - x1), abs(y0 - y1)) + width = max(width, d * 3.0) + + if left_ear is not None: + x1, y1 = left_ear.x, left_ear.y + d = max(abs(x0 - x1), abs(y0 - y1)) + width = max(width, d * 1.5) + + if right_ear is not None: + x1, y1 = right_ear.x, right_ear.y + d = max(abs(x0 - x1), abs(y0 - y1)) + width = max(width, d * 1.5) + + x, y = x0, y0 + + x -= width + y -= width + + if x < 0: + x = 0 + + if y < 0: + y = 0 + + width1 = width * 2 + width2 = width * 2 + + if x + width > image_width: + width1 = image_width - x + + if y + width > image_height: + width2 = image_height - y + + width = min(width1, width2) + + if width >= 20: + return int(x), int(y), int(width) + else: + return None + + +# get max index of 2d array +def npmax(array): + arrayindex = array.argmax(1) + arrayvalue = array.max(1) + i = arrayvalue.argmax() + j = arrayindex[i] + return i, j + +def guess_onnx_input_shape_dtype(filename): + dtype = np.float32 + if "fp16" in filename: + dtype = np.float16 + elif "int8" in filename: + dtype = np.uint8 + input_size = (640, 640) if "yolo" in filename else (192, 256) + if "384" in filename: + input_size = (288, 384) + elif "256" in filename: + input_size = (256, 256) + return input_size, dtype + +if os.getenv('AUX_ORT_PROVIDERS'): + ONNX_PROVIDERS = os.getenv('AUX_ORT_PROVIDERS').split(',') +else: + ONNX_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider", "CPUExecutionProvider"] +def get_ort_providers() -> List[str]: + providers = [] + try: + import onnxruntime as ort + for provider in ONNX_PROVIDERS: + if provider in ort.get_available_providers(): + providers.append(provider) + return providers + except: + return [] + +def is_model_torchscript(model) -> bool: + return bool(type(model).__name__ == "RecursiveScriptModule") + +def get_model_type(Nodesname, filename) -> str: + ort_providers = list(filter(lambda x : x != "CPUExecutionProvider", get_ort_providers())) + if filename is None: + return None + elif ("onnx" in filename) and ort_providers: + print(f"{Nodesname}: Caching ONNXRuntime session {filename}...") + return "ort" + elif ("onnx" in filename): + print(f"{Nodesname}: Caching OpenCV DNN module {filename} on cv2.DNN...") + return "cv2" + else: + print(f"{Nodesname}: Caching TorchScript module {filename} on ...") + return "torchscript" diff --git a/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py new file mode 100644 index 00000000..d453739e --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__dwpose__wholebody.py @@ -0,0 +1,181 @@ +# Copyright (c) OpenMMLab. All rights reserved. +import cv2 +import numpy as np + +from .dw_onnx.cv_ox_det import inference_detector as inference_onnx_yolox +from .dw_onnx.cv_ox_yolo_nas import inference_detector as inference_onnx_yolo_nas +from .dw_onnx.cv_ox_pose import inference_pose as inference_onnx_pose + +from .dw_torchscript.jit_det import inference_detector as inference_jit_yolox +from .dw_torchscript.jit_pose import inference_pose as inference_jit_pose + +from typing import List, Optional +from .types import PoseResult, BodyResult, Keypoint +from timeit import default_timer +import os +from .util import guess_onnx_input_shape_dtype, get_model_type, get_ort_providers, is_model_torchscript +import torch + +class Wholebody: + def __init__(self, det_model_path: Optional[str] = None, pose_model_path: Optional[str] = None, torchscript_device="cuda"): + self.det_filename = det_model_path and os.path.basename(det_model_path) + self.pose_filename = pose_model_path and os.path.basename(pose_model_path) + self.det, self.pose = None, None + # return type: None ort cv2 torchscript + self.det_model_type = get_model_type("DWPose",self.det_filename) + self.pose_model_type = get_model_type("DWPose",self.pose_filename) + # Always loads to CPU to avoid building OpenCV. + cv2_device = 'cpu' + cv2_backend = cv2.dnn.DNN_BACKEND_OPENCV if cv2_device == 'cpu' else cv2.dnn.DNN_BACKEND_CUDA + # You need to manually build OpenCV through cmake to work with your GPU. + cv2_providers = cv2.dnn.DNN_TARGET_CPU if cv2_device == 'cpu' else cv2.dnn.DNN_TARGET_CUDA + ort_providers = get_ort_providers() + + if self.det_model_type is None: + pass + elif self.det_model_type == "ort": + try: + import onnxruntime as ort + self.det = ort.InferenceSession(det_model_path, providers=ort_providers) + except: + print(f"Failed to load onnxruntime with {self.det.get_providers()}.\nPlease change EP_list in the config.yaml and restart ComfyUI") + self.det = ort.InferenceSession(det_model_path, providers=["CPUExecutionProvider"]) + elif self.det_model_type == "cv2": + try: + self.det = cv2.dnn.readNetFromONNX(det_model_path) + self.det.setPreferableBackend(cv2_backend) + self.det.setPreferableTarget(cv2_providers) + except: + print("TopK operators may not work on your OpenCV, try use onnxruntime with CPUExecutionProvider") + try: + import onnxruntime as ort + self.det = ort.InferenceSession(det_model_path, providers=["CPUExecutionProvider"]) + except: + print(f"Failed to load {det_model_path}, you can use other models instead") + else: + self.det = torch.jit.load(det_model_path) + self.det.to(torchscript_device) + + if self.pose_model_type is None: + pass + elif self.pose_model_type == "ort": + try: + import onnxruntime as ort + self.pose = ort.InferenceSession(pose_model_path, providers=ort_providers) + except: + print(f"Failed to load onnxruntime with {self.pose.get_providers()}.\nPlease change EP_list in the config.yaml and restart ComfyUI") + self.pose = ort.InferenceSession(pose_model_path, providers=["CPUExecutionProvider"]) + elif self.pose_model_type == "cv2": + self.pose = cv2.dnn.readNetFromONNX(pose_model_path) + self.pose.setPreferableBackend(cv2_backend) + self.pose.setPreferableTarget(cv2_providers) + else: + self.pose = torch.jit.load(pose_model_path) + self.pose.to(torchscript_device) + + if self.pose_filename is not None: + self.pose_input_size, _ = guess_onnx_input_shape_dtype(self.pose_filename) + + def __call__(self, oriImg) -> Optional[np.ndarray]: + #Sacrifice accurate time measurement for compatibility + + det_result = None + + if self.det is None: + print("DWPose: No detector specified, using full image for pose estimation.") # pragma: no cover + det_result = [] + else: + det_start = default_timer() + if is_model_torchscript(self.det): + det_result = inference_jit_yolox(self.det, oriImg, detect_classes=[0]) + else: + if "yolox" in self.det_filename: + det_result = inference_onnx_yolox(self.det, oriImg, detect_classes=[0], dtype=np.float32) + else: + #FP16 and INT8 YOLO NAS accept uint8 input + det_result = inference_onnx_yolo_nas(self.det, oriImg, detect_classes=[0], dtype=np.uint8) + print(f"DWPose: Bbox {((default_timer() - det_start) * 1000):.2f}ms") + if (det_result is None) or (det_result.shape[0] == 0): + return None + + pose_start = default_timer() + if is_model_torchscript(self.pose): + keypoints, scores = inference_jit_pose(self.pose, det_result, oriImg, self.pose_input_size) + else: + _, pose_onnx_dtype = guess_onnx_input_shape_dtype(self.pose_filename) + keypoints, scores = inference_onnx_pose(self.pose, det_result, oriImg, self.pose_input_size, dtype=pose_onnx_dtype) + + num_subjects_log = 'full image' + if hasattr(det_result, 'shape') and det_result.shape[0] > 0: + num_subjects_log = f"{det_result.shape[0]} people" + elif isinstance(det_result, list) and len(det_result) > 0 and isinstance(det_result[0], (list, np.ndarray)): + num_subjects_log = f"{len(det_result)} people" + + print(f"DWPose: Pose {((default_timer() - pose_start) * 1000):.2f}ms on {num_subjects_log}\n") + + keypoints_info = np.concatenate( + (keypoints, scores[..., None]), axis=-1) + # compute neck joint + neck = np.mean(keypoints_info[:, [5, 6]], axis=1) + # neck score when visualizing pred + neck[:, 2:4] = np.logical_and( + keypoints_info[:, 5, 2:4] > 0.3, + keypoints_info[:, 6, 2:4] > 0.3).astype(int) + new_keypoints_info = np.insert( + keypoints_info, 17, neck, axis=1) + mmpose_idx = [ + 17, 6, 8, 10, 7, 9, 12, 14, 16, 13, 15, 2, 1, 4, 3 + ] + openpose_idx = [ + 1, 2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17 + ] + new_keypoints_info[:, openpose_idx] = \ + new_keypoints_info[:, mmpose_idx] + keypoints_info = new_keypoints_info + + return keypoints_info + + @staticmethod + def format_result(keypoints_info: Optional[np.ndarray]) -> List[PoseResult]: + def format_keypoint_part( + part: np.ndarray, + ) -> Optional[List[Optional[Keypoint]]]: + keypoints = [ + Keypoint(x, y, score, i) if score >= 0.3 else None + for i, (x, y, score) in enumerate(part) + ] + return ( + None if all(keypoint is None for keypoint in keypoints) else keypoints + ) + + def total_score(keypoints: Optional[List[Optional[Keypoint]]]) -> float: + return ( + sum(keypoint.score for keypoint in keypoints if keypoint is not None) + if keypoints is not None + else 0.0 + ) + + pose_results = [] + if keypoints_info is None: + return pose_results + + for instance in keypoints_info: + body_keypoints = format_keypoint_part(instance[:18]) or ([None] * 18) + left_hand = format_keypoint_part(instance[92:113]) + right_hand = format_keypoint_part(instance[113:134]) + face = format_keypoint_part(instance[24:92]) + + # Openpose face consists of 70 points in total, while DWPose only + # provides 68 points. Padding the last 2 points. + if face is not None: + # left eye + face.append(body_keypoints[14]) + # right eye + face.append(body_keypoints[15]) + + body = BodyResult( + body_keypoints, total_score(body_keypoints), len(body_keypoints) + ) + pose_results.append(PoseResult(body, left_hand, right_hand, face)) + + return pose_results diff --git a/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__util.py b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__util.py new file mode 100644 index 00000000..fee98aea --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__src__custom_controlnet_aux__util.py @@ -0,0 +1,350 @@ +import os +import random +import tempfile +import warnings +from contextlib import suppress +from pathlib import Path + +import cv2 +import numpy as np +import torch +from huggingface_hub import constants, hf_hub_download +from torch.utils.model_zoo import load_url +from ast import literal_eval + + +HF_MODEL_NAME = "lllyasviel/Annotators" +DWPOSE_MODEL_NAME = "yzd-v/DWPose" +BDS_MODEL_NAME = "bdsqlsz/qinglong_controlnet-lllite" +DENSEPOSE_MODEL_NAME = "LayerNorm/DensePose-TorchScript-with-hint-image" +MESH_GRAPHORMER_MODEL_NAME = "hr16/ControlNet-HandRefiner-pruned" +SAM_MODEL_NAME = "dhkim2810/MobileSAM" +UNIMATCH_MODEL_NAME = "hr16/Unimatch" +DEPTH_ANYTHING_MODEL_NAME = "LiheYoung/Depth-Anything" #HF Space +DIFFUSION_EDGE_MODEL_NAME = "hr16/Diffusion-Edge" +METRIC3D_MODEL_NAME = "JUGGHM/Metric3D" + +DEPTH_ANYTHING_V2_MODEL_NAME_DICT = { + "depth_anything_v2_vits.pth": "depth-anything/Depth-Anything-V2-Small", + "depth_anything_v2_vitb.pth": "depth-anything/Depth-Anything-V2-Base", + "depth_anything_v2_vitl.pth": "depth-anything/Depth-Anything-V2-Large", + "depth_anything_v2_vitg.pth": "depth-anything/Depth-Anything-V2-Giant", + "depth_anything_v2_metric_vkitti_vitl.pth": "depth-anything/Depth-Anything-V2-Metric-VKITTI-Large", + "depth_anything_v2_metric_hypersim_vitl.pth": "depth-anything/Depth-Anything-V2-Metric-Hypersim-Large" +} + +temp_dir = tempfile.gettempdir() +annotator_ckpts_path = os.path.join(Path(__file__).parents[2], 'ckpts') +USE_SYMLINKS = False + +try: + annotator_ckpts_path = os.environ['AUX_ANNOTATOR_CKPTS_PATH'] +except: + warnings.warn("Custom pressesor model path not set successfully.") + pass + +try: + USE_SYMLINKS = literal_eval(os.environ['AUX_USE_SYMLINKS']) +except: + warnings.warn("USE_SYMLINKS not set successfully. Using default value: False to download models.") + pass + +try: + temp_dir = os.environ['AUX_TEMP_DIR'] + if len(temp_dir) >= 60: + warnings.warn(f"custom temp dir is too long. Using default") + temp_dir = tempfile.gettempdir() +except: + warnings.warn(f"custom temp dir not set successfully") + pass + +here = Path(__file__).parent.resolve() + +def HWC3(x): + assert x.dtype == np.uint8 + if x.ndim == 2: + x = x[:, :, None] + assert x.ndim == 3 + H, W, C = x.shape + assert C == 1 or C == 3 or C == 4 + if C == 3: + return x + if C == 1: + return np.concatenate([x, x, x], axis=2) + if C == 4: + color = x[:, :, 0:3].astype(np.float32) + alpha = x[:, :, 3:4].astype(np.float32) / 255.0 + y = color * alpha + 255.0 * (1.0 - alpha) + y = y.clip(0, 255).astype(np.uint8) + return y + + +def make_noise_disk(H, W, C, F, rng=None): + if rng: + noise = rng.uniform(low=0, high=1, size=((H // F) + 2, (W // F) + 2, C)) + else: + noise = np.random.uniform(low=0, high=1, size=((H // F) + 2, (W // F) + 2, C)) + noise = cv2.resize(noise, (W + 2 * F, H + 2 * F), interpolation=cv2.INTER_CUBIC) + noise = noise[F: F + H, F: F + W] + noise -= np.min(noise) + noise /= np.max(noise) + if C == 1: + noise = noise[:, :, None] + return noise + + +def nms(x, t, s): + x = cv2.GaussianBlur(x.astype(np.float32), (0, 0), s) + + f1 = np.array([[0, 0, 0], [1, 1, 1], [0, 0, 0]], dtype=np.uint8) + f2 = np.array([[0, 1, 0], [0, 1, 0], [0, 1, 0]], dtype=np.uint8) + f3 = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]], dtype=np.uint8) + f4 = np.array([[0, 0, 1], [0, 1, 0], [1, 0, 0]], dtype=np.uint8) + + y = np.zeros_like(x) + + for f in [f1, f2, f3, f4]: + np.putmask(y, cv2.dilate(x, kernel=f) == x, x) + + z = np.zeros_like(y, dtype=np.uint8) + z[y > t] = 255 + return z + +def min_max_norm(x): + x -= np.min(x) + x /= np.maximum(np.max(x), 1e-5) + return x + + +def safe_step(x, step=2): + y = x.astype(np.float32) * float(step + 1) + y = y.astype(np.int32).astype(np.float32) / float(step) + return y + + +def img2mask(img, H, W, low=10, high=90): + assert img.ndim == 3 or img.ndim == 2 + assert img.dtype == np.uint8 + + if img.ndim == 3: + y = img[:, :, random.randrange(0, img.shape[2])] + else: + y = img + + y = cv2.resize(y, (W, H), interpolation=cv2.INTER_CUBIC) + + if random.uniform(0, 1) < 0.5: + y = 255 - y + + return y < np.percentile(y, random.randrange(low, high)) + +def safer_memory(x): + # Fix many MAC/AMD problems + return np.ascontiguousarray(x.copy()).copy() + +UPSCALE_METHODS = ["INTER_NEAREST", "INTER_LINEAR", "INTER_AREA", "INTER_CUBIC", "INTER_LANCZOS4"] +def get_upscale_method(method_str): + assert method_str in UPSCALE_METHODS, f"Method {method_str} not found in {UPSCALE_METHODS}" + return getattr(cv2, method_str) + +def pad64(x): + return int(np.ceil(float(x) / 64.0) * 64 - x) + +#https://github.com/Mikubill/sd-webui-controlnet/blob/main/scripts/processor.py#L17 +#Added upscale_method, mode params +def resize_image_with_pad(input_image, resolution, upscale_method = "", skip_hwc3=False, mode='edge'): + if skip_hwc3: + img = input_image + else: + img = HWC3(input_image) + H_raw, W_raw, _ = img.shape + if resolution == 0: + return img, lambda x: x + k = float(resolution) / float(min(H_raw, W_raw)) + H_target = int(np.round(float(H_raw) * k)) + W_target = int(np.round(float(W_raw) * k)) + img = cv2.resize(img, (W_target, H_target), interpolation=get_upscale_method(upscale_method) if k > 1 else cv2.INTER_AREA) + H_pad, W_pad = pad64(H_target), pad64(W_target) + img_padded = np.pad(img, [[0, H_pad], [0, W_pad], [0, 0]], mode=mode) + + def remove_pad(x): + return safer_memory(x[:H_target, :W_target, ...]) + + return safer_memory(img_padded), remove_pad + +def common_input_validate(input_image, output_type, **kwargs): + if "img" in kwargs: + warnings.warn("img is deprecated, please use `input_image=...` instead.", DeprecationWarning) + input_image = kwargs.pop("img") + + if "return_pil" in kwargs: + warnings.warn("return_pil is deprecated. Use output_type instead.", DeprecationWarning) + output_type = "pil" if kwargs["return_pil"] else "np" + + if type(output_type) is bool: + warnings.warn("Passing `True` or `False` to `output_type` is deprecated and will raise an error in future versions") + if output_type: + output_type = "pil" + + if input_image is None: + raise ValueError("input_image must be defined.") + + if not isinstance(input_image, np.ndarray): + input_image = np.array(input_image, dtype=np.uint8) + output_type = output_type or "pil" + else: + output_type = output_type or "np" + + return (input_image, output_type) + +def torch_gc(): + if torch.cuda.is_available(): + torch.cuda.empty_cache() + torch.cuda.ipc_collect() + + +def ade_palette(): + """ADE20K palette that maps each class to RGB values.""" + return [[120, 120, 120], [180, 120, 120], [6, 230, 230], [80, 50, 50], + [4, 200, 3], [120, 120, 80], [140, 140, 140], [204, 5, 255], + [230, 230, 230], [4, 250, 7], [224, 5, 255], [235, 255, 7], + [150, 5, 61], [120, 120, 70], [8, 255, 51], [255, 6, 82], + [143, 255, 140], [204, 255, 4], [255, 51, 7], [204, 70, 3], + [0, 102, 200], [61, 230, 250], [255, 6, 51], [11, 102, 255], + [255, 7, 71], [255, 9, 224], [9, 7, 230], [220, 220, 220], + [255, 9, 92], [112, 9, 255], [8, 255, 214], [7, 255, 224], + [255, 184, 6], [10, 255, 71], [255, 41, 10], [7, 255, 255], + [224, 255, 8], [102, 8, 255], [255, 61, 6], [255, 194, 7], + [255, 122, 8], [0, 255, 20], [255, 8, 41], [255, 5, 153], + [6, 51, 255], [235, 12, 255], [160, 150, 20], [0, 163, 255], + [140, 140, 140], [250, 10, 15], [20, 255, 0], [31, 255, 0], + [255, 31, 0], [255, 224, 0], [153, 255, 0], [0, 0, 255], + [255, 71, 0], [0, 235, 255], [0, 173, 255], [31, 0, 255], + [11, 200, 200], [255, 82, 0], [0, 255, 245], [0, 61, 255], + [0, 255, 112], [0, 255, 133], [255, 0, 0], [255, 163, 0], + [255, 102, 0], [194, 255, 0], [0, 143, 255], [51, 255, 0], + [0, 82, 255], [0, 255, 41], [0, 255, 173], [10, 0, 255], + [173, 255, 0], [0, 255, 153], [255, 92, 0], [255, 0, 255], + [255, 0, 245], [255, 0, 102], [255, 173, 0], [255, 0, 20], + [255, 184, 184], [0, 31, 255], [0, 255, 61], [0, 71, 255], + [255, 0, 204], [0, 255, 194], [0, 255, 82], [0, 10, 255], + [0, 112, 255], [51, 0, 255], [0, 194, 255], [0, 122, 255], + [0, 255, 163], [255, 153, 0], [0, 255, 10], [255, 112, 0], + [143, 255, 0], [82, 0, 255], [163, 255, 0], [255, 235, 0], + [8, 184, 170], [133, 0, 255], [0, 255, 92], [184, 0, 255], + [255, 0, 31], [0, 184, 255], [0, 214, 255], [255, 0, 112], + [92, 255, 0], [0, 224, 255], [112, 224, 255], [70, 184, 160], + [163, 0, 255], [153, 0, 255], [71, 255, 0], [255, 0, 163], + [255, 204, 0], [255, 0, 143], [0, 255, 235], [133, 255, 0], + [255, 0, 235], [245, 0, 255], [255, 0, 122], [255, 245, 0], + [10, 190, 212], [214, 255, 0], [0, 204, 255], [20, 0, 255], + [255, 255, 0], [0, 153, 255], [0, 41, 255], [0, 255, 204], + [41, 0, 255], [41, 255, 0], [173, 0, 255], [0, 245, 255], + [71, 0, 255], [122, 0, 255], [0, 255, 184], [0, 92, 255], + [184, 255, 0], [0, 133, 255], [255, 214, 0], [25, 194, 194], + [102, 255, 0], [92, 0, 255]] + +#https://stackoverflow.com/a/44873382 +#Assume that the minimum version of Python ppl use is 3.9 +def sha256sum(file_path): + import hashlib + h = hashlib.sha256() + b = bytearray(128*1024) + mv = memoryview(b) + with open(file_path, 'rb', buffering=0) as f: + while n := f.readinto(mv): + h.update(mv[:n]) + return h.hexdigest() + +def check_hash_from_torch_hub(file_path, filename): + basename, _ = filename.split('.') + _, ref_hash = basename.split('-') + curr_hash = sha256sum(file_path) + return curr_hash[:len(ref_hash)] == ref_hash + +def custom_torch_download(filename, ckpts_dir=annotator_ckpts_path): + """Download PyTorch models using PyTorch 2.7's built-in download mechanism.""" + model_url = "https://download.pytorch.org/models/" + filename + + # Use PyTorch's built-in model downloading with custom cache directory + local_dir = os.path.join(ckpts_dir, "torch") + if not os.path.exists(local_dir): + os.makedirs(local_dir, exist_ok=True) + + model_path = os.path.join(local_dir, filename) + + if not os.path.exists(model_path): + print(f"Downloading {filename} from pytorch.org...") + try: + # Use PyTorch 2.7's load_url which handles caching, progress, and hash checking + state_dict = load_url(model_url, model_dir=local_dir, file_name=filename, progress=True, check_hash=True) + # The file is already saved by load_url, we just need the path + except Exception as e: + warnings.warn(f"Download failed with error: {e}") + raise + + print(f"model_path is {model_path}") + return model_path + +def custom_hf_download(pretrained_model_or_path, filename, cache_dir=temp_dir, ckpts_dir=annotator_ckpts_path, subfolder='', use_symlinks=USE_SYMLINKS, repo_type="model"): + + local_dir = os.path.join(ckpts_dir, pretrained_model_or_path) + model_path = Path(local_dir).joinpath(*subfolder.split('/'), filename).__str__() + + if len(str(model_path)) >= 255: + warnings.warn(f"Path {model_path} is too long, \n please change annotator_ckpts_path in config.yaml") + + if not os.path.exists(model_path): + print(f"Failed to find {model_path}.\n Downloading from huggingface.co") + print(f"cacher folder is {cache_dir}, you can change it by custom_tmp_path in config.yaml") + if use_symlinks: + cache_dir_d = constants.HF_HUB_CACHE # use huggingface newer env variables `HF_HUB_CACHE` + if cache_dir_d is None: + import platform + if platform.system() == "Windows": + cache_dir_d = Path(os.getenv("USERPROFILE")).joinpath(".cache", "huggingface", "hub").__str__() + else: + cache_dir_d = os.path.join(os.getenv("HOME"), ".cache", "huggingface", "hub") + try: + # test_link + Path(cache_dir_d).mkdir(parents=True, exist_ok=True) + Path(ckpts_dir).mkdir(parents=True, exist_ok=True) + (Path(cache_dir_d) / f"linktest_{filename}.txt").touch() + # symlink instead of link avoid `invalid cross-device link` error. + os.symlink(os.path.join(cache_dir_d, f"linktest_{filename}.txt"), os.path.join(ckpts_dir, f"linktest_{filename}.txt")) + print("Using symlinks to download models. \n",\ + "Make sure you have enough space on your cache folder. \n",\ + "And do not purge the cache folder after downloading.\n",\ + "Otherwise, you will have to re-download the models every time you run the script.\n",\ + "You can use USE_SYMLINKS: False in config.yaml to avoid this behavior.") + except: + print("Maybe not able to create symlink. Disable using symlinks.") + use_symlinks = False + cache_dir_d = Path(cache_dir).joinpath("ckpts", pretrained_model_or_path).__str__() + finally: # always remove test link files + with suppress(FileNotFoundError): + os.remove(os.path.join(ckpts_dir, f"linktest_{filename}.txt")) + os.remove(os.path.join(cache_dir_d, f"linktest_{filename}.txt")) + else: + cache_dir_d = os.path.join(cache_dir, "ckpts", pretrained_model_or_path) + + model_path = hf_hub_download(repo_id=pretrained_model_or_path, + cache_dir=cache_dir_d, + local_dir=local_dir, + subfolder=subfolder, + filename=filename, + local_dir_use_symlinks=use_symlinks, + resume_download=True, + etag_timeout=100, + repo_type=repo_type + ) + if not use_symlinks: + try: + import shutil + shutil.rmtree(os.path.join(cache_dir, "ckpts")) + except Exception as e : + print(e) + + print(f"model_path is {model_path}") + + return model_path diff --git a/docs/hel-892/openpose-reference/dw__utils.py b/docs/hel-892/openpose-reference/dw__utils.py new file mode 100644 index 00000000..c37f9411 --- /dev/null +++ b/docs/hel-892/openpose-reference/dw__utils.py @@ -0,0 +1,250 @@ +import torch +import numpy as np +import os +import cv2 +import yaml +from pathlib import Path +from enum import Enum +from .log import log +import subprocess +import threading +import comfy +import tempfile + +here = Path(__file__).parent.resolve() + +config_path = Path(here, "config.yaml") + +if os.path.exists(config_path): + config = yaml.load(open(config_path, "r"), Loader=yaml.FullLoader) + + annotator_ckpts_path = str(Path(here, config["annotator_ckpts_path"])) + TEMP_DIR = config["custom_temp_path"] + USE_SYMLINKS = config["USE_SYMLINKS"] + ORT_PROVIDERS = config["EP_list"] + + if USE_SYMLINKS is None or type(USE_SYMLINKS) != bool: + log.error("USE_SYMLINKS must be a boolean. Using False by default.") + USE_SYMLINKS = False + + if TEMP_DIR is None: + TEMP_DIR = tempfile.gettempdir() + elif not os.path.isdir(TEMP_DIR): + try: + os.makedirs(TEMP_DIR) + except: + log.error("Failed to create custom temp directory. Using default.") + TEMP_DIR = tempfile.gettempdir() + + if not os.path.isdir(annotator_ckpts_path): + try: + os.makedirs(annotator_ckpts_path) + except: + log.error("Failed to create config ckpts directory. Using default.") + annotator_ckpts_path = str(Path(here, "./ckpts")) +else: + annotator_ckpts_path = str(Path(here, "./ckpts")) + TEMP_DIR = tempfile.gettempdir() + USE_SYMLINKS = False + ORT_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "MIGraphXExecutionProvider", "CPUExecutionProvider", "CoreMLExecutionProvider"] + +os.environ['AUX_ANNOTATOR_CKPTS_PATH'] = os.getenv('AUX_ANNOTATOR_CKPTS_PATH', annotator_ckpts_path) +os.environ['AUX_TEMP_DIR'] = os.getenv('AUX_TEMP_DIR', str(TEMP_DIR)) +os.environ['AUX_USE_SYMLINKS'] = os.getenv('AUX_USE_SYMLINKS', str(USE_SYMLINKS)) +os.environ['AUX_ORT_PROVIDERS'] = os.getenv('AUX_ORT_PROVIDERS', str(",".join(ORT_PROVIDERS))) + +log.info(f"Using ckpts path: {annotator_ckpts_path}") +log.info(f"Using symlinks: {USE_SYMLINKS}") +log.info(f"Using ort providers: {ORT_PROVIDERS}") + +# Sync with theoritical limit from Comfy base +# https://github.com/comfyanonymous/ComfyUI/blob/eecd69b53a896343775bcb02a4f8349e7442ffd1/nodes.py#L45 +MAX_RESOLUTION=16384 + +def common_annotator_call(model, tensor_image, input_batch=False, show_pbar=True, **kwargs): + if "detect_resolution" in kwargs: + del kwargs["detect_resolution"] #Prevent weird case? + + if "resolution" in kwargs: + detect_resolution = kwargs["resolution"] if type(kwargs["resolution"]) == int and kwargs["resolution"] >= 64 else 512 + del kwargs["resolution"] + else: + detect_resolution = 512 + + if input_batch: + np_images = np.asarray(tensor_image * 255., dtype=np.uint8) + np_results = model(np_images, output_type="np", detect_resolution=detect_resolution, **kwargs) + return torch.from_numpy(np_results.astype(np.float32) / 255.0) + + batch_size = tensor_image.shape[0] + if show_pbar: + pbar = comfy.utils.ProgressBar(batch_size) + out_tensor = None + for i, image in enumerate(tensor_image): + np_image = np.asarray(image.cpu() * 255., dtype=np.uint8) + np_result = model(np_image, output_type="np", detect_resolution=detect_resolution, **kwargs) + out = torch.from_numpy(np_result.astype(np.float32) / 255.0) + if out_tensor is None: + out_tensor = torch.zeros(batch_size, *out.shape, dtype=torch.float32) + out_tensor[i] = out + if show_pbar: + pbar.update(1) + return out_tensor + +def define_preprocessor_inputs(**arguments): + return dict( + required=dict(image=INPUT.IMAGE()), + optional=arguments + ) + +class INPUT(Enum): + def IMAGE(): + return ("IMAGE",) + def LATENT(): + return ("LATENT",) + def MASK(): + return ("MASK",) + def SEED(default=0): + return ("INT", dict(default=default, min=0, max=0xffffffffffffffff)) + def RESOLUTION(default=512, min=64, max=MAX_RESOLUTION, step=64): + return ("INT", dict(default=default, min=min, max=max, step=step)) + def INT(default=0, min=0, max=MAX_RESOLUTION, step=1): + return ("INT", dict(default=default, min=min, max=max, step=step)) + def FLOAT(default=0, min=0, max=1, step=0.01): + return ("FLOAT", dict(default=default, min=min, max=max, step=step)) + def STRING(default='', multiline=False): + return ("STRING", dict(default=default, multiline=multiline)) + def COMBO(values, default=None): + return (values, dict(default=values[0] if default is None else default)) + def BOOLEAN(default=True): + return ("BOOLEAN", dict(default=default)) + + + +class ResizeMode(Enum): + """ + Resize modes for ControlNet input images. + """ + + RESIZE = "Just Resize" + INNER_FIT = "Crop and Resize" + OUTER_FIT = "Resize and Fill" + + def int_value(self): + if self == ResizeMode.RESIZE: + return 0 + elif self == ResizeMode.INNER_FIT: + return 1 + elif self == ResizeMode.OUTER_FIT: + return 2 + assert False, "NOTREACHED" + +#https://github.com/Mikubill/sd-webui-controlnet/blob/e67e017731aad05796b9615dc6eadce911298ea1/internal_controlnet/external_code.py#L89 +#Replaced logger with internal log +def pixel_perfect_resolution( + image: np.ndarray, + target_H: int, + target_W: int, + resize_mode: ResizeMode, +) -> int: + """ + Calculate the estimated resolution for resizing an image while preserving aspect ratio. + + The function first calculates scaling factors for height and width of the image based on the target + height and width. Then, based on the chosen resize mode, it either takes the smaller or the larger + scaling factor to estimate the new resolution. + + If the resize mode is OUTER_FIT, the function uses the smaller scaling factor, ensuring the whole image + fits within the target dimensions, potentially leaving some empty space. + + If the resize mode is not OUTER_FIT, the function uses the larger scaling factor, ensuring the target + dimensions are fully filled, potentially cropping the image. + + After calculating the estimated resolution, the function prints some debugging information. + + Args: + image (np.ndarray): A 3D numpy array representing an image. The dimensions represent [height, width, channels]. + target_H (int): The target height for the image. + target_W (int): The target width for the image. + resize_mode (ResizeMode): The mode for resizing. + + Returns: + int: The estimated resolution after resizing. + """ + raw_H, raw_W, _ = image.shape + + k0 = float(target_H) / float(raw_H) + k1 = float(target_W) / float(raw_W) + + if resize_mode == ResizeMode.OUTER_FIT: + estimation = min(k0, k1) * float(min(raw_H, raw_W)) + else: + estimation = max(k0, k1) * float(min(raw_H, raw_W)) + + log.debug(f"Pixel Perfect Computation:") + log.debug(f"resize_mode = {resize_mode}") + log.debug(f"raw_H = {raw_H}") + log.debug(f"raw_W = {raw_W}") + log.debug(f"target_H = {target_H}") + log.debug(f"target_W = {target_W}") + log.debug(f"estimation = {estimation}") + + return int(np.round(estimation)) + +#https://github.com/Mikubill/sd-webui-controlnet/blob/e67e017731aad05796b9615dc6eadce911298ea1/scripts/controlnet.py#L404 +def safe_numpy(x): + # A very safe method to make sure that Apple/Mac works + y = x + + # below is very boring but do not change these. If you change these Apple or Mac may fail. + y = y.copy() + y = np.ascontiguousarray(y) + y = y.copy() + return y + +#https://github.com/Mikubill/sd-webui-controlnet/blob/e67e017731aad05796b9615dc6eadce911298ea1/scripts/utils.py#L140 +def get_unique_axis0(data): + arr = np.asanyarray(data) + idxs = np.lexsort(arr.T) + arr = arr[idxs] + unique_idxs = np.empty(len(arr), dtype=np.bool_) + unique_idxs[:1] = True + unique_idxs[1:] = np.any(arr[:-1, :] != arr[1:, :], axis=-1) + return arr[unique_idxs] + +#Ref: https://github.com/ltdrdata/ComfyUI-Manager/blob/284e90dc8296a2e1e4f14b4b2d10fba2f52f0e53/__init__.py#L14 +def handle_stream(stream, prefix): + for line in stream: + print(prefix, line, end="") + + +def run_script(cmd, cwd='.'): + process = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1) + + stdout_thread = threading.Thread(target=handle_stream, args=(process.stdout, "")) + stderr_thread = threading.Thread(target=handle_stream, args=(process.stderr, "[!]")) + + stdout_thread.start() + stderr_thread.start() + + stdout_thread.join() + stderr_thread.join() + + return process.wait() + +def nms(x, t, s): + x = cv2.GaussianBlur(x.astype(np.float32), (0, 0), s) + + f1 = np.array([[0, 0, 0], [1, 1, 1], [0, 0, 0]], dtype=np.uint8) + f2 = np.array([[0, 1, 0], [0, 1, 0], [0, 1, 0]], dtype=np.uint8) + f3 = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]], dtype=np.uint8) + f4 = np.array([[0, 0, 1], [0, 1, 0], [1, 0, 0]], dtype=np.uint8) + + y = np.zeros_like(x) + + for f in [f1, f2, f3, f4]: + np.putmask(y, cv2.dilate(x, kernel=f) == x, x) + + z = np.zeros_like(y, dtype=np.uint8) + z[y > t] = 255 + return z diff --git a/docs/hel-892/openpose-reference/frontend-commit.patch b/docs/hel-892/openpose-reference/frontend-commit.patch new file mode 100644 index 00000000..f32f8a9c --- /dev/null +++ b/docs/hel-892/openpose-reference/frontend-commit.patch @@ -0,0 +1,5925 @@ +From 52bb58d307242a34103998ef1da8007e47501d5b Mon Sep 17 00:00:00 2001 +From: Comfy Org PR Bot +Date: Sun, 28 Dec 2025 10:05:27 +0900 +Subject: [PATCH] 1.36.12 (#7763) + +Patch version increment to 1.36.12 + +**Base branch:** `main` + +--------- + +Co-authored-by: christian-byrne <72887196+christian-byrne@users.noreply.github.com> +Co-authored-by: github-actions +--- + package.json | 2 +- + src/locales/en/nodeDefs.json | 101 +- + src/locales/zh/main.json | 4543 +++++++++++++++++----------------- + src/locales/zh/nodeDefs.json | 682 ++--- + 4 files changed, 2558 insertions(+), 2770 deletions(-) + +diff --git a/package.json b/package.json +index df7e1fa404e..cc2872d024a 100644 +--- a/package.json ++++ b/package.json +@@ -1,7 +1,7 @@ + { + "name": "@comfyorg/comfyui-frontend", + "private": true, +- "version": "1.36.11", ++ "version": "1.36.12", + "type": "module", + "repository": "https://github.com/Comfy-Org/ComfyUI_frontend", + "homepage": "https://comfy.org", +diff --git a/src/locales/en/nodeDefs.json b/src/locales/en/nodeDefs.json +index b9c846bfc28..9de05e37a3f 100644 +--- a/src/locales/en/nodeDefs.json ++++ b/src/locales/en/nodeDefs.json +@@ -3183,13 +3183,16 @@ + }, + "outputs": { + "0": { +- "name": "width" ++ "name": "width", ++ "tooltip": null + }, + "1": { +- "name": "height" ++ "name": "height", ++ "tooltip": null + }, + "2": { +- "name": "batch_size" ++ "name": "batch_size", ++ "tooltip": null + } + } + }, +@@ -3725,6 +3728,11 @@ + "control_after_generate": { + "name": "control after generate" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageBatch": { +@@ -3841,6 +3849,11 @@ + "y": { + "name": "y" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageDeduplication": { +@@ -3871,6 +3884,11 @@ + "flip_method": { + "name": "flip_method" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageFromBatch": { +@@ -3885,6 +3903,11 @@ + "length": { + "name": "length" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageGrid": { +@@ -4024,6 +4047,11 @@ + "rotation": { + "name": "rotation" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageScale": { +@@ -4072,6 +4100,11 @@ + "largest_size": { + "name": "largest_size" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageScaleToTotalPixels": { +@@ -4120,7 +4153,7 @@ + }, + "ImageStitch": { + "display_name": "Image Stitch", +- "description": "\nStitches image2 to image1 in the specified direction.\nIf image2 is not provided, returns image1 unchanged.\nOptional spacing can be added between images.\n", ++ "description": "Stitches image2 to image1 in the specified direction.\nIf image2 is not provided, returns image1 unchanged.\nOptional spacing can be added between images.", + "inputs": { + "image1": { + "name": "image1" +@@ -4140,6 +4173,11 @@ + "image2": { + "name": "image2" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ImageToMask": { +@@ -4687,6 +4725,36 @@ + } + } + }, ++ "KlingMotionControl": { ++ "display_name": "Kling Motion Control", ++ "inputs": { ++ "prompt": { ++ "name": "prompt" ++ }, ++ "reference_image": { ++ "name": "reference_image" ++ }, ++ "reference_video": { ++ "name": "reference_video", ++ "tooltip": "Motion reference video used to drive movement/expression.\nDuration limits depend on character_orientation:\n - image: 3–10s (max 10s)\n - video: 3–30s (max 30s)" ++ }, ++ "keep_original_sound": { ++ "name": "keep_original_sound" ++ }, ++ "character_orientation": { ++ "name": "character_orientation", ++ "tooltip": "Controls where the character's facing/orientation comes from.\nvideo: movements, expressions, camera moves, and orientation follow the motion reference video (other details via prompt).\nimage: movements and expressions still follow the motion reference video, but the character orientation matches the reference image (camera/other details via prompt)." ++ }, ++ "mode": { ++ "name": "mode" ++ } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } ++ } ++ }, + "KlingOmniProEditVideoNode": { + "display_name": "Kling Omni Edit Video (Pro)", + "description": "Edit an existing video with the latest model from Kling.", +@@ -6435,6 +6503,19 @@ + } + } + }, ++ "ManualSigmas": { ++ "display_name": "ManualSigmas", ++ "inputs": { ++ "sigmas": { ++ "name": "sigmas" ++ } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } ++ } ++ }, + "MaskComposite": { + "display_name": "MaskComposite", + "inputs": { +@@ -10452,6 +10533,11 @@ + "amount": { + "name": "amount" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "RepeatLatentBatch": { +@@ -10539,6 +10625,11 @@ + "interpolation": { + "name": "interpolation" + } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } + } + }, + "ResizeImagesByLongerEdge": { +@@ -13838,7 +13929,7 @@ + }, + "enhance_prompt": { + "name": "enhance_prompt", +- "tooltip": "Whether to enhance the prompt with AI assistance" ++ "tooltip": "This parameter is deprecated and ignored." + }, + "person_generation": { + "name": "person_generation", +diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json +index cc0e5cae9ac..37d83187fcf 100644 +--- a/src/locales/zh/main.json ++++ b/src/locales/zh/main.json +@@ -1,950 +1,605 @@ + { +- "g": { +- "1x": "1倍", +- "2x": "2倍", +- "about": "关于", +- "add": "添加", +- "addNodeFilterCondition": "添加节点筛选条件", +- "all": "全部", +- "amount": "数量", +- "apply": "应用", +- "architecture": "架构", +- "audioFailedToLoad": "音频加载失败", +- "audioProgress": "音频进度", +- "author": "作者", +- "back": "返回", +- "batchRename": "批量重命名", +- "beta": "测试版", +- "bookmark": "保存到库", +- "calculatingDimensions": "正在计算尺寸", +- "cancel": "取消", +- "cancelled": "已取消", +- "capture": "捕获", +- "category": "类别", +- "chart": "图表", +- "chartLowercase": "图表", +- "choose_file_to_upload": "选择要上传的文件", +- "clear": "清除", +- "clearAll": "全部清除", +- "clearFilters": "清除筛选", +- "close": "关闭", +- "color": "颜色", +- "comfy": "舒适", +- "comfyOrgLogoAlt": "ComfyOrg 徽标", +- "comingSoon": "即将推出", +- "command": "指令", +- "commandProhibited": "命令 {command} 被禁止。请联系管理员了解更多信息。", +- "community": "社区", +- "completed": "已完成", +- "confirm": "确认", +- "confirmed": "已确认", +- "content": "内容", +- "continue": "继续", +- "control_after_generate": "生成后控制", +- "control_before_generate": "生成前控制", +- "copied": "已复制", +- "copy": "复制", +- "copyJobId": "复制队列 ID", +- "copyToClipboard": "复制到剪贴板", +- "copyURL": "复制链接", +- "core": "核心", +- "currentUser": "当前用户", +- "custom": "自定义", +- "customBackground": "自定义背景", +- "customize": "自定义", +- "customizeFolder": "自定义文件夹", +- "defaultBanner": "默认横幅", +- "delete": "删除", +- "deleteAudioFile": "删除音频文件", +- "deleteImage": "删除图片", +- "deprecated": "已弃用", +- "description": "描述", +- "devices": "设备", +- "disableAll": "禁用全部", +- "disableSelected": "禁用选中项", +- "disableThirdParty": "禁用第三方", +- "disabling": "禁用中", +- "dismiss": "关闭", +- "download": "下载", +- "downloadImage": "下载图片", +- "downloadVideo": "下载视频", +- "dropYourFileOr": "拖放您的文件或", +- "duplicate": "复制", +- "edit": "编辑", +- "editImage": "编辑图片", +- "editOrMaskImage": "编辑或遮罩图片", +- "emDash": "-", +- "empty": "空", +- "enableAll": "启用全部", +- "enableOrDisablePack": "启用或禁用包", +- "enableSelected": "启用选中项", +- "enabled": "已启用", +- "enabling": "启用中", +- "enterBaseName": "输入基础名称", +- "enterNewName": "输入新名称", +- "error": "错误", +- "errorLoadingImage": "图片加载出错", +- "errorLoadingVideo": "视频加载出错", +- "experimental": "测试版", +- "export": "导出", +- "extensionName": "扩展名称", +- "failed": "失败", +- "failedToCopyJobId": "未能复制队列 ID", +- "failedToDownloadImage": "图片下载失败", +- "failedToDownloadVideo": "视频下载失败", ++ "actionbar": { ++ "dockToTop": "停靠到顶部", + "feedback": "反馈", +- "file": "文件", +- "filter": "过滤", +- "findIssues": "查找问题", +- "frameNodes": "框选节点", +- "frontendNewer": "前端版本 {frontendVersion} 可能与后端版本 {backendVersion} 不相容。", +- "frontendOutdated": "前端版本 {frontendVersion} 已过时。后端需要 {requiredVersion} 或更高版本。", +- "galleryImage": "图库图片", +- "galleryThumbnail": "图库缩略图", +- "goToNode": "转到节点", +- "graphNavigation": "图形导航", +- "halfSpeed": "0.5倍", +- "icon": "图标", +- "imageFailedToLoad": "图像加载失败", +- "imagePreview": "图片预览 - 使用方向键切换图片", +- "imageUrl": "图片网址", +- "import": "导入", +- "inProgress": "进行中", +- "info": "节点信息", +- "insert": "插入", +- "install": "安装", +- "installed": "已安装", +- "installing": "正在安装", +- "interrupted": "已中断", +- "itemSelected": "已选择 {selectedCount} 项", +- "itemsCopiedToClipboard": "已复制到剪贴板", +- "itemsSelected": "已选择 {selectedCount} 项", +- "job": "任务", +- "jobIdCopied": "队列 ID 已复制到剪贴板", +- "keybinding": "按键绑定", +- "keybindingAlreadyExists": "快捷键已存在", +- "learnMore": "了解更多", +- "listening": "正在监听...", +- "liveSamplingPreview": "实时采样预览", +- "loadAllFolders": "加载所有文件夹", +- "loadWorkflow": "加载工作流", +- "loading": "加载中", +- "loadingPanel": "正在加载{panel}面板...", +- "login": "登录", +- "logoAlt": "ComfyUI 标志", +- "logs": "日志", +- "markdown": "markdown", +- "micPermissionDenied": "麦克风权限被拒绝", +- "migrate": "迁移", +- "missing": "缺失", +- "more": "更多", +- "moreOptions": "更多选项", +- "moreWorkflows": "更多工作流", +- "multiSelectDropdown": "多选下拉框", +- "name": "名称", +- "newFolder": "新文件夹", +- "next": "下一个", +- "no": "否", +- "noAudioRecorded": "未录制音频", +- "noItems": "无项目", +- "noResults": "无结果", +- "noResultsFound": "未找到结果", +- "noTasksFound": "未找到任务", +- "noTasksFoundMessage": "队列中没有任务。", +- "noWorkflowsFound": "未找到工作流。", +- "nodeContentError": "节点内容错误", +- "nodeHeaderError": "节点标题错误", +- "nodeRenderError": "节点渲染错误", +- "nodeSlotsError": "节点插槽错误", +- "nodeWidgetsError": "节点控件错误", +- "nodes": "节点", +- "nodesRunning": "节点正在运行", +- "none": "无", +- "nothingToCopy": "没有可以复制的内容", +- "nothingToDelete": "没有可以删除的内容", +- "nothingToDuplicate": "Nothing to duplicate", +- "nothingToRename": "没有可以重命名的内容", +- "ok": "确定", +- "openManager": "打开管理器", +- "openNewIssue": "打开新问题", +- "or": "或", +- "overwrite": "覆盖", +- "playPause": "开启/暂停", +- "playRecording": "播放录音", +- "playbackSpeed": "播放速度", +- "playing": "播放中", +- "pressKeysForNewBinding": "按下按键设置新绑定", +- "preview": "预览", +- "profile": "档案", +- "progressCountOf": "共", +- "queued": "已执行", +- "ready": "就绪", +- "reconnected": "已重新连接", +- "reconnecting": "重新连接中", +- "refresh": "刷新", +- "refreshNode": "刷新节点", +- "relativeTime": { +- "daysAgo": "{count}天 前", +- "hoursAgo": "{count}时 前", +- "minutesAgo": "{count}分 前", +- "monthsAgo": "{count}月 前", +- "now": "刚才", +- "weeksAgo": "{count}周 前", +- "yearsAgo": "{count}年 前" ++ "feedbackTooltip": "反馈" ++ }, ++ "apiNodesCostBreakdown": { ++ "costPerRun": "每次运行的成本", ++ "title": "API节点", ++ "totalCost": "总成本" ++ }, ++ "apiNodesSignInDialog": { ++ "message": "此工作流包含API节点,需要您登录账户才能运行。", ++ "title": "使用API节点需要登录" ++ }, ++ "assetBrowser": { ++ "allCategory": "全部{category}", ++ "allModels": "全部模型", ++ "ariaLabel": { ++ "assetCard": "{name} - {type}资产", ++ "loadingAsset": "正在加载资产" + }, +- "releaseTitle": "{package} {version} 发布", +- "reloadToApplyChanges": "重新加载以应用更改", +- "removeImage": "移除图片", +- "removeVideo": "移除视频", +- "rename": "重命名", +- "reportIssue": "发送报告", +- "reportIssueTooltip": "向 Comfy Org 提交错误报告", +- "reportSent": "报告已提交", +- "reset": "重置", +- "resetAll": "重置所有", +- "resetAllKeybindingsTooltip": "将所有键绑定重置为默认", +- "resizeFromBottomLeft": "从左下角调整大小", +- "resizeFromBottomRight": "从右下角调整大小", +- "resizeFromTopLeft": "从左上角调整大小", +- "resizeFromTopRight": "从右上角调整大小", +- "restart": "重新启动", +- "resultsCount": "找到 {count} 个结果", +- "running": "正在运行", +- "save": "保存", +- "saving": "正在保存", +- "search": "搜索", +- "searchExtensions": "搜索扩展", +- "searchFailedMessage": "我们找不到任何与您的搜索匹配的设置。请尝试调整您的搜索词。", +- "searchKeybindings": "搜索快捷键", +- "searchModels": "搜索模型", +- "searchNodes": "搜索节点", +- "searchPlaceholder": "搜索占位符", +- "searchSettings": "搜索设置", +- "searchWorkflows": "搜索工作流", +- "seeTutorial": "查看教程", +- "selectItemsToCopy": "选择复制", +- "selectItemsToDelete": "选择删除", +- "selectItemsToDuplicate": "选择复制", +- "selectItemsToRename": "选择重命名", +- "selectedFile": "已选文件", +- "setAsBackground": "设为背景", +- "settings": "设置", +- "showReport": "显示报告", +- "singleSelectDropdown": "单选下拉框", +- "sort": "排序", +- "source": "来源", +- "startRecording": "开始录音", +- "status": "状态", +- "stopPlayback": "停止播放", +- "stopRecording": "停止录音", +- "submit": "提交", +- "success": "成功", +- "systemInfo": "系统信息", +- "terminal": "终端", +- "title": "标题", +- "triggerPhrase": "触发短语", +- "unknownError": "未知错误", +- "untitled": "无标题", +- "update": "更新", +- "updateAvailable": "有更新可用", +- "updateFrontend": "更新前端", +- "updated": "已更新", +- "updating": "更新中", +- "upload": "上传", +- "usageHint": "使用提示", +- "user": "用户", +- "versionMismatchWarning": "版本兼容性警告", +- "versionMismatchWarningMessage": "{warning}:{detail} 请参阅 https://docs.comfy.org/installation/update_comfyui#common-update-issues 以取得更新说明。", +- "videoFailedToLoad": "视频加载失败", +- "videoPreview": "视频预览 - 使用方向键切换视频", +- "viewImageOfTotal": "查看第 {index} 张图片,共 {total} 张", +- "viewVideoOfTotal": "查看第 {index} 个视频,共 {total} 个", +- "vitePreloadErrorMessage": "应用已发布新版本。是否立即重新加载?\n如果不重新加载,应用的某些功能可能无法正常工作。\n您可以先拒绝,保存进度后再重新加载。", +- "vitePreloadErrorTitle": "新版本可用", +- "volume": "音量", +- "warning": "警告", +- "workflow": "工作流" +- }, +- "manager": { +- "allMissingNodesInstalled": "所有缺失节点已成功安装", +- "applyChanges": "应用更改", +- "changingVersion": "将版本从 {from} 更改为 {to}", +- "clickToFinishSetup": "点击", +- "conflicts": { +- "conflictInfoTitle": "为什么会发生这种情况?", +- "conflictMessages": { +- "accelerator": "GPU/加速器不受支持(可用:{current},要求:{required})", +- "banned": "该软件包因安全原因被禁用", +- "comfyui_version": "ComfyUI 版本不匹配(当前:{current},要求:{required})", +- "frontend_version": "前端版本不匹配(当前:{current},要求:{required})", +- "generic": "兼容性问题(当前:{current},要求:{required})", +- "import_failed": "导入失败", +- "os": "操作系统不受支持(当前:{current},要求:{required})", +- "pending": "安全验证待定 - 无法验证兼容性" +- }, +- "conflicts": "冲突", +- "description": "我们检测到您的部分扩展与新版 ComfyUI 存在冲突。更新后,依赖这些扩展的工作流可能会被破坏。", +- "enableAnyway": "仍然启用", +- "extensionAtRisk": "有风险的扩展", +- "importFailedExtensions": "导入失败的扩展", +- "info": "如果继续更新,冲突的扩展将被自动禁用。您可以随时在 ComfyUI 管理器中查看和管理它们。", +- "installAnyway": "仍然安装", +- "title": "检测到节点包问题!", +- "understood": "我已了解", +- "warningBanner": { +- "button": "了解更多...", +- "message": "这些扩展需要与您当前环境不同版本的系统包。安装它们可能会覆盖核心依赖,并影响其他扩展或工作流。", +- "title": "部分扩展因与当前环境不兼容而被禁用" +- }, +- "warningTooltip": "该软件包可能与您当前的环境存在兼容性问题" +- }, +- "createdBy": "创建者", +- "dependencies": "依赖关系", +- "disabledNodesWontUpdate": "已禁用的节点不会被更新", +- "discoverCommunityContent": "发现社区制作的节点包,扩展等等...", +- "downloads": "下载", +- "enablePackToChangeVersion": "启用此包以更改版本", +- "errorConnecting": "连接到Comfy节点注册表时出错。", +- "extensionsSuccessfullyInstalled": "扩展已成功安装并可使用!", +- "failed": "失败 ({count})", +- "failedToInstall": "安装失败", +- "filter": { +- "disabled": "已禁用", +- "enabled": "已启用", +- "nodePack": "节点包" ++ "assetCollection": "资产合集", ++ "assets": "资产", ++ "baseModels": "基础模型", ++ "browseAssets": "浏览资产", ++ "checkpoints": "模型", ++ "civitaiLinkExample": "案例: https://civitai.com/api/download/models/833921?type=Model&format=SafeTensor", ++ "civitaiLinkExampleStrong": "案例:", ++ "civitaiLinkExampleUrl": "https://civitai.com/models/10706/luisap-z-image-and-qwen-pixel-art-refiner?modelVersionId=2225295", ++ "civitaiLinkLabel": "Civitai 模型 download link", ++ "civitaiLinkLabelDownload": "下载", ++ "civitaiLinkPlaceholder": "粘贴链接到此", ++ "confirmModelDetails": "确认模型信息", ++ "connectionError": "请检查您的网络连接后重试", ++ "deletion": { ++ "body": "从资产库永久移除这个模型。", ++ "complete": "{assetName} 已经删除。", ++ "failed": "{assetName} 无法删除。", ++ "header": "删除该模型?", ++ "inProgress": "正在删除 {assetName}..." + }, +- "gettingInfo": "正在获取信息...", +- "importFailedGenericError": "软件包导入失败。请查看控制台获取更多信息。", +- "inWorkflow": "在工作流中", +- "infoPanelEmpty": "点击一个项目查看信息", +- "installAllMissingNodes": "安装所有缺失节点", +- "installError": "安装错误", +- "installSelected": "安装选定", +- "installationQueue": "安装队列", +- "installingDependencies": "正在安装依赖项...", +- "lastUpdated": "最后更新", +- "latestVersion": "最新", +- "legacyManagerUI": "使用传统界面", +- "legacyManagerUIDescription": "如需使用传统管理器界面,请以 --enable-manager-legacy-ui 参数启动 ComfyUI", +- "legacyMenuNotAvailable": "传统管理器菜单不可用,已切换为新管理器菜单。", +- "license": "许可证", +- "loadingVersions": "正在加载版本...", +- "mixedSelectionMessage": "无法对混合选择执行批量操作", +- "nightlyVersion": "每夜", +- "noDescription": "无可用描述", +- "noNodesFound": "未找到节点", +- "noNodesFoundDescription": "无法解析包的节点,或者该包仅为前端扩展,没有任何节点。", +- "noResultsFound": "未找到符合您搜索的结果。", +- "nodePack": "节点包", +- "notAvailable": "不可用", +- "packsSelected": "选定的包", +- "repository": "仓库", +- "restartToApplyChanges": "要应用更改,请重新启动ComfyUI", +- "restartingBackend": "正在重启后端以应用更改...", +- "searchPlaceholder": "搜索", +- "selectVersion": "选择版本", +- "sort": { +- "created": "最新", +- "downloads": "最受欢迎", +- "publisher": "出版商", +- "updated": "最近更新" ++ "errorFileTooLarge": "允许执行文件的文件大小限制", ++ "errorFormatNotAllowed": "仅允许 SafeTensor 格式", ++ "errorModelTypeNotSupported": "不支持该类型的模型", ++ "errorUnknown": "发生了意外错误", ++ "errorUnsafePickleScan": "CivitAI 在该文件中检测到不安全代码", ++ "errorUnsafeVirusScan": "CivitAI 在该文件中检测到木马或可疑文件", ++ "errorUploadFailed": "导入资产失败,请重试。", ++ "failedToCreateNode": "创建节点失败。请重试或查看控制台获取详细信息。", ++ "fileFormats": "文件格式", ++ "fileName": "文件名", ++ "fileSize": "文件大小", ++ "filterBy": "筛选方式", ++ "findInLibrary": "模型在模型库的{type}区里", ++ "finish": "完成", ++ "genericLinkPlaceholder": "粘贴链接到这", ++ "jobId": "任务ID", ++ "loadingModels": "正在加载{type}...", ++ "maxFileSize": "最大文件大小:{size}", ++ "maxFileSizeValue": "1 GB", ++ "media": { ++ "audioPlaceholder": "音频", ++ "threeDModelPlaceholder": "3D 模型" + }, +- "status": { +- "active": "活跃", +- "banned": "已禁止", +- "conflicting": "冲突", +- "deleted": "已删除", +- "flagged": "已标记", +- "importFailed": "安装错误", +- "pending": "待定", +- "unknown": "未知" ++ "modelAssociatedWithLink": "您提供的链接的模型:", ++ "modelName": "模型名", ++ "modelNamePlaceholder": "输入该模型的名称", ++ "modelTypeSelectorLabel": "这是什么类型的模型?", ++ "modelTypeSelectorPlaceholder": "选择模型类型", ++ "modelUploaded": "模型导入成功!🎉", ++ "noAssetsFound": "未找到资产", ++ "noModelsInFolder": "此文件夹中没有可用的{type}", ++ "noValidSourceDetected": "检测不到有效的导入源", ++ "notSureLeaveAsIs": "不确定?那就放着不管吧", ++ "onlyCivitaiUrlsSupported": "仅支持 Civitai 链接", ++ "ownership": "所属", ++ "ownershipAll": "全部", ++ "ownershipMyModels": "我的模型", ++ "ownershipPublicModels": "公共模型", ++ "providerCivitai": "Civitai", ++ "providerHuggingFace": "Hugging Face", ++ "rename": { ++ "failed": "无法重命名资产。" + }, +- "title": "自定义节点管理器", +- "toFinishSetup": "以完成设置", +- "totalNodes": "节点总数", +- "tryAgainLater": "请稍后再试。", +- "tryDifferentSearch": "请尝试不同的搜索查询。", +- "tryUpdate": "尝试更新", +- "tryUpdateTooltip": "从库中拉取更新。测试版本可能有无法自动检测到更新。", +- "uninstall": "卸载", +- "uninstallSelected": "卸载所选", +- "uninstalling": "正在卸载", +- "update": "更新", +- "updateAll": "全部更新", +- "updateSelected": "更新所选", +- "updatingAllPacks": "更新所有包", +- "version": "版本" +- }, +- "issueReport": { +- "helpFix": "帮助修复这个" +- }, +- "color": { +- "black": "黑色", +- "blue": "蓝色", +- "brown": "棕色", +- "custom": "自定义", +- "cyan": "青色", +- "default": "默认", +- "green": "绿色", +- "noColor": "无色", +- "pale_blue": "淡蓝色", +- "pink": "粉色", +- "purple": "紫色", +- "red": "红色", +- "yellow": "黄色" ++ "selectFrameworks": "选择框架", ++ "selectModelType": "选择模型类型", ++ "selectProjects": "选择项目", ++ "sortAZ": "A-Z", ++ "sortBy": "排序方式", ++ "sortPopular": "最受欢迎", ++ "sortRecent": "最近", ++ "sortZA": "Z-A", ++ "sortingType": "排序类型", ++ "tags": "标签", ++ "tagsHelp": "按逗号区分标签", ++ "tagsPlaceholder": "例如:模型, checkpoint", ++ "tryAdjustingFilters": "请尝试调整搜索或筛选条件", ++ "unknown": "未知", ++ "unsupportedUrlSource": "仅支持来自 {sources} URL 的模型", ++ "upgradeFeatureDescription": "该功能仅 Creator 和 Pro 订阅计划可用", ++ "upgradeToUnlockFeature": "升级订阅解锁该功能", ++ "upload": "导入", ++ "uploadFailed": "导入失败", ++ "uploadModel": "导入模型", ++ "uploadModelDescription1": "粘贴 Civitai 模型下载链接,将其添加到库中。", ++ "uploadModelDescription1Generic": "站贴模型下载链接,将其添加到模型库中。", ++ "uploadModelDescription2": "目前仅支持 https://civitai.com 链接。", ++ "uploadModelDescription2Generic": "仅支持来自以下提供服务的 URL :", ++ "uploadModelDescription2Link": "https://civitai.com/models", ++ "uploadModelDescription3": "最大文件大小:1 GB", ++ "uploadModelFailedToRetrieveMetadata": "检索元数据失败。请检查连接并重试。", ++ "uploadModelFromCivitai": "从 Civitai 导入模型", ++ "uploadModelGeneric": "导入模型", ++ "uploadModelHelpFooterText": "需要查找 URL 的帮助吗?点击下面的教程视频。", ++ "uploadModelHelpVideo": "上传模型视频", ++ "uploadModelHowDoIFindThis": "如何找到这个?", ++ "uploadSuccess": "模型导入成功!", ++ "uploadingModel": "正在导入模型..." + }, +- "contextMenu": { +- "Add Group": "添加组", +- "Add Group For Selected Nodes": "为选定节点添加组", +- "Add Node": "添加节点", +- "Add Subgraph to Library": "添加子工作流到节点库", +- "Adjust Size": "调整尺寸", +- "Align Selected To": "对齐选中项到", +- "Bottom": "底部", +- "Bypass": "绕过", +- "Clone": "克隆", +- "Collapse": "折叠", +- "Color": "颜色", +- "Colors": "颜色", +- "Convert to Group Node": "转换为组节点", +- "Convert to Subgraph": "转换为子工作流", +- "Copy": "复制", +- "Copy (Clipspace)": "复制 (Clipspace)", +- "Copy Image": "复制图像", +- "Delete": "删除", +- "Distribute Nodes": "分布节点", +- "Duplicate": "复制", +- "Edit Subgraph Widgets": "编辑子工作流组件", +- "Expand": "展开", +- "Expand Node": "展开节点", +- "Extensions": "扩展", +- "Horizontal": "水平", +- "Inputs": "输入", +- "Left": "左侧", +- "Manage": "管理", +- "Manage Group Nodes": "管理组节点", +- "Minimize Node": "最小化节点", +- "Mode": "模式", +- "Node Info": "节点信息", +- "Node Templates": "节点模板", +- "Open Image": "打开图像", +- "Open in Mask Editor": "用遮罩编辑器打开", +- "Outputs": "输出", +- "Paste": "站贴", +- "Pin": "固定", +- "Properties": "属性", +- "Properties Panel": "属性面板", +- "Remove": "删除", +- "Remove Bypass": "删除所有忽略节点", +- "Rename": "重命名", +- "RenameWidget": "重命名组件", +- "Resize": "调整大小", +- "Right": "右侧", +- "Run Branch": "运行支流节点", +- "Save Image": "保存图像", +- "Save Selected as Template": "将选定节点另存为模板", +- "Search": "搜索", +- "Shape": "形状", +- "Shapes": "形状", +- "Title": "标题", +- "Top": "顶部", +- "Unpack Subgraph": "解包子工作流", +- "Unpin": "取消固定", +- "Vertical": "竖直", +- "deprecated": "弃用", +- "new": "新" +- }, +- "icon": { +- "bookmark": "书签", +- "box": "盒子", +- "briefcase": "公文包", +- "exclamation-triangle": "警告", +- "file": "文件", +- "folder": "文件夹", +- "heart": "心", +- "inbox": "收件箱", +- "star": "星星" +- }, +- "welcome": { +- "getStarted": "开始使用", +- "title": "欢迎使用 ComfyUI" +- }, +- "userSelect": { +- "enterUsername": "输入用户名", +- "existingUser": "用户已存在", +- "newUser": "新用户", +- "next": "下一步", +- "selectUser": "选择用户" +- }, +- "notSupported": { +- "continue": "继续", +- "continueTooltip": "我确定我的设备是受支持的", +- "illustrationAlt": "Sad girl illustration", +- "learnMore": "了解更多", +- "message": "仅支持以下设备:", +- "reportIssue": "报告问题", +- "supportedDevices": { +- "macos": "MacOS (M1 或更高版本)", +- "windows": "Windows (支持 CUDA 的 Nvidia GPU)" ++ "auth": { ++ "apiKey": { ++ "cleared": "API 密钥已清除", ++ "clearedDetail": "您的 API 密钥已成功清除", ++ "description": "使用您的 Comfy API 密钥以启用 API 节点", ++ "error": "无效的 API 密钥", ++ "generateKey": "在这里获取", ++ "helpText": "需要 API 密钥?", ++ "invalid": "无效的 API 密钥", ++ "invalidDetail": "请输入有效的 API 密钥", ++ "label": "API 密钥", ++ "placeholder": "请输入您的 API 密钥", ++ "storageFailed": "API 密钥存储失败", ++ "storageFailedDetail": "请重试。", ++ "stored": "API 密钥已存储", ++ "storedDetail": "您的 API 密钥已成功存储", ++ "title": "API 密钥", ++ "whitelistInfo": "关于非白名单网站" + }, +- "title": "您的设备不受支持" +- }, +- "downloadGit": { +- "gitWebsite": "下载 git", +- "instructions": "请下载并安装适合您操作系统的最新版本。下面的下载 git 按钮将打开 git-scm.com 下载页面。", +- "message": "无法找到 git。正常操作需要一个可用的 git 副本。", +- "skip": "跳过", +- "title": "下载 git", +- "warning": "如果您确定不需要安装 git,或者已经安装了 git,您可以点击跳过以绕过此检查。当前不支持在没有可用 git 副本的情况下运行 ComfyUI。" +- }, +- "install": { +- "appDataLocationTooltip": "ComfyUI 的应用数据目录。存储:\n- 日志\n- 服务器配置", +- "appPathLocationTooltip": "ComfyUI 的应用资产目录。存储 ComfyUI 代码和资产", +- "cannotWrite": "无法写入所选路径。", +- "chooseInstallationLocation": "选择安装位置", +- "customNodes": "自定义节点", +- "customNodesDescription": "引用现有 ComfyUI 安装的自定义节点文件并安装其依赖项。", +- "desktopAppSettings": "桌面应用设置", +- "desktopAppSettingsDescription": "配置 ComfyUI 在桌面上的行为。您可以稍后更改这些设置。", +- "desktopSettings": "桌面设置", +- "failedToSelectDirectory": "选择目录失败", +- "gpu": "GPU", +- "gpuPicker": { +- "appleMetalDescription": "利用您的Mac GPU以获得更快速度和更佳体验", +- "cpuDescription": "当GPU加速不可用时,使用CPU模式以获得兼容性", +- "cpuSubtitle": "CPU模式", +- "manualDescription": "为高级配置或不受支持的硬件手动配置ComfyUI", +- "manualSubtitle": "手动设置", +- "nvidiaDescription": "使用NVIDIA GPU和CUDA加速以获得最佳性能。", +- "nvidiaSubtitle": "NVIDIA CUDA", +- "recommended": "推荐", +- "title": "选择您的硬件配置" ++ "deleteAccount": { ++ "cancel": "取消", ++ "confirm": "删除账户", ++ "confirmMessage": "您确定要删除您的账户吗?此操作无法撤销,并且会永久删除您的所有数据。", ++ "confirmTitle": "删除账户", ++ "deleteAccount": "删除账户", ++ "success": "账户已删除", ++ "successDetail": "您的账户已成功删除。" + }, +- "gpuSelection": { +- "cpuMode": "CPU 模式", +- "cpuModeDescription": "CPU 模式仅适用于开发者和极少数特殊情况。", +- "cpuModeDescription2": "如果你不完全确定你需要这个,忽略该选项并在上面选择你的 GPU。", +- "customComfyNeedsPython": "在 python 完成设置前,ComfyUI 将无法工作", +- "customInstallRequirements": "安装所有需求和依赖项(例如:自定义 torch)", +- "customManualVenv": "手动配置 python 虚拟环境", +- "customMayNotWork": "完全不支持,可能无法工作", +- "customSkipsPython": "此选项跳过正常的 python 设置。", +- "enableCpuMode": "启用 CPU 模式", +- "mpsDescription": "Apple Metal Performance Shaders 使用 pytorch nightly 支持。", +- "nvidiaDescription": "NVIDIA 设备直接支持使用 pytorch CUDA 构建。", +- "selectGpu": "选择 GPU", +- "selectGpuDescription": "选择你拥有的 GPU 类型" ++ "errors": { ++ "auth/cancelled-popup-request": "登录已取消。请重试。", ++ "auth/email-already-in-use": "已存在使用此电子邮件的账户。请尝试登录。", ++ "auth/invalid-credential": "登录凭据无效。请检查您的邮箱和密码。", ++ "auth/invalid-email": "请输入有效的电子邮件地址。", ++ "auth/network-request-failed": "网络错误。请检查您的连接并重试。", ++ "auth/operation-not-allowed": "此登录方法目前不受支持。", ++ "auth/popup-closed-by-user": "登录已取消。请重试。", ++ "auth/too-many-requests": "登录尝试次数过多。请稍等片刻再试。", ++ "auth/user-disabled": "此账户已被禁用。请联系客服。", ++ "auth/user-not-found": "未找到使用此电子邮件的账户。您想要创建一个新账户吗?", ++ "auth/weak-password": "密码强度太弱。请使用至少6个字符的更强密码。", ++ "auth/wrong-password": "您输入的密码不正确,请重试。" + }, +- "helpImprove": "请帮助我们改进ComfyUI", +- "insideAppInstallDir": "该文件夹位于 ComfyUI Desktop 应用程序包中,程序更新时会删除该文件夹。选择安装文件夹之外的目录,例如 Documents/ComfyUI。", +- "insideUpdaterCache": "该文件夹位于 ComfyUI 更新缓存中,程序更新时会清除该缓存。为您的数据选择一个不同的位置。", +- "installLocation": "安装位置", +- "installLocationDescription": "选择 ComfyUI 用户数据的存放目录。将安装一个 Python 环境到所选位置。请确保所选磁盘有足够的空间(约 15GB)。", +- "installLocationTooltip": "ComfyUI 的用户数据目录。存储:\n- Python 环境\n- 模型\n- 自定义节点\n", +- "insufficientFreeSpace": "空间不足 - 最小可用空间", +- "isOneDrive": "在OneDrive中安装可能会导致问题。强烈建议在非OneDrive位置安装。", +- "locationPicker": { +- "chooseDownloadServers": "手动选择下载服务器", +- "downloadServersDescription": "根据您的位置选择用于下载Python、PyPI包和PyTorch的特定镜像服务器。", +- "migrateDescription": "从之前的ComfyUI安装复制或链接您的模型、自定义节点和配置。", +- "migrateFromExisting": "从现有安装迁移", +- "migrationPathPlaceholder": "选择已有的ComfyUI安装(可选)", +- "pathPlaceholder": "/Users/username/Documents/ComfyUI", +- "subtitle": "选择一个文件夹用于存放ComfyUI文件。我们也会自动在此处设置Python。", +- "title": "选择ComfyUI的安装位置" ++ "login": { ++ "andText": "和", ++ "backToLogin": "返回登录", ++ "confirmPasswordLabel": "确认密码", ++ "confirmPasswordPlaceholder": "再次输入相同的密码", ++ "didntReceiveEmail": "没有收到邮件?请联系我们:", ++ "emailLabel": "电子邮件", ++ "emailPlaceholder": "输入您的电子邮件", ++ "failed": "登录失败", ++ "forgotPassword": "忘记密码?", ++ "forgotPasswordError": "发送重置密码邮件失败", ++ "insecureContextWarning": "此连接不安全(HTTP)—如果继续登录,您的凭据可能会被攻击者拦截。", ++ "loginButton": "登录", ++ "loginWithGithub": "使用Github登录", ++ "loginWithGoogle": "使用Google登录", ++ "newUser": "新用户?", ++ "noAssociatedUser": "所提供的 API 密钥未关联任何 Comfy 用户", ++ "orContinueWith": "或者继续使用", ++ "passwordLabel": "密码", ++ "passwordPlaceholder": "输入您的密码", ++ "passwordResetError": "发送密码重置邮件失败。请重试。", ++ "passwordResetInstructions": "请输入您的电子邮件地址,我们将向您发送重置密码的链接。", ++ "passwordResetSent": "重置密码邮件已发送", ++ "passwordResetSentDetail": "请查收您的电子邮件,点击链接重置密码。", ++ "privacyLink": "隐私政策", ++ "questionsContactPrefix": "有疑问?请联系我们:", ++ "sendResetLink": "发送重置链接", ++ "signInOrSignUp": "登录 / 注册", ++ "signUp": "注册", ++ "success": "登录成功", ++ "termsLink": "使用条款", ++ "termsText": "点击“下一步”或“注册”即表示您同意我们的", ++ "title": "登录您的账户", ++ "useApiKey": "Comfy API 密钥", ++ "userAvatar": "用户头像" + }, +- "manualConfiguration": { +- "createVenv": "您需要在以下目录中创建虚拟环境", +- "requirements": "依赖项", +- "restartWhenFinished": "配置虚拟环境完成后,请重新启动ComfyUI。", +- "title": "手动配置", +- "virtualEnvironmentPath": "虚拟环境路径" ++ "loginButton": { ++ "tooltipHelp": "登录以使用“API 节点”", ++ "tooltipLearnMore": "了解更多..." + }, +- "metricsDisabled": "禁用度量", +- "metricsEnabled": "启用度量", +- "migrateFromExistingInstallation": "从现有安装迁移", +- "migration": "迁移", +- "migrationOptional": "迁移是可选的。如果您之前没有安装过 ComfyUI,可以跳过此步骤。", +- "migrationSourcePathDescription": "如果您已有现有的ComfyUI安装,我们可以复制/链接您现有的用户文件和模型到新的安装。您现有的ComfyUI安装将不会受到影响。", +- "moreInfo": "有关更多信息,请阅读我们的", +- "nonDefaultDrive": "请在您的系统驱动器上安装ComfyUI(例如C:\\)。具有不同文件系统的驱动器可能会导致不可预测的问题。安装后,模型和其他文件可以存储在其他驱动器上。", +- "parentMissing": "路径不存在 - 请先创建包含该路径的目录", +- "pathExists": "目录已存在 - 请确保您已备份全部数据", +- "pathValidationFailed": "路径验证失败", +- "privacyPolicy": "隐私政策", +- "selectItemsToMigrate": "选择要迁移的项目", +- "settings": { +- "allowMetrics": "使用情况指标", +- "allowMetricsDescription": "通过发送匿名使用情况指标来帮助改进ComfyUI。不会收集任何个人信息或工作流内容。", +- "autoUpdate": "自动更新", +- "autoUpdateDescription": "更新可用时自动更新。您将在安装更新之前收到通知。", +- "checkingMirrors": "正在检查到Python镜像的网络访问...", +- "dataCollectionDialog": { +- "collect": { +- "errorReports": "错误报告和堆栈跟踪", +- "systemInfo": "硬件,操作系统类型和应用版本", +- "userJourneyEvents": "用户旅程事件" +- }, +- "doNotCollect": { +- "customNodeConfigurations": "自定义节点配置", +- "fileSystemInformation": "文件系统信息", +- "personalInformation": "个人信息", +- "workflowContents": "工作流内容" +- }, +- "title": "关于数据收集", +- "viewFullPolicy": "查看完整政策", +- "whatWeCollect": "我们收集的内容:", +- "whatWeDoNotCollect": "我们不收集的内容:" +- }, +- "errorUpdatingConsent": "更新同意错误", +- "errorUpdatingConsentDetail": "无法更新度量同意设置", +- "learnMoreAboutData": "了解更多关于数据收集的信息", +- "mirrorSettings": "镜像设置", +- "mirrorsReachable": "到Python镜像的网络访问良好", +- "mirrorsUnreachable": "对某些python镜像的网络访问不佳", +- "pypiMirrorPlaceholder": "输入PyPI镜像URL", +- "pythonMirrorPlaceholder": "输入Python镜像URL" ++ "passwordUpdate": { ++ "success": "密码已更新", ++ "successDetail": "您的密码已成功更新" + }, +- "systemLocations": "系统位置", +- "unhandledError": "未知错误", +- "updateConsent": "您之前选择了报告崩溃。我们现在正在跟踪基于事件的度量,以帮助识别错误并改进应用程序。我们不收集任何个人可识别信息。" +- }, +- "desktopStart": { +- "initialising": "正在初始化..." +- }, +- "serverStart": { +- "copyAllTooltip": "全部复制", +- "copySelectionTooltip": "复制所选内容", +- "errorMessage": "无法启动 ComfyUI 桌面版", +- "installation": { +- "title": "正在安装 ComfyUI" ++ "reauthRequired": { ++ "cancel": "取消", ++ "confirm": "重新登录", ++ "message": "出于安全原因,此操作需要您重新登录。是否继续?", ++ "title": "需要重新认证" + }, +- "openLogs": "打开日志", +- "process": { +- "error": "无法启动 ComfyUI 桌面版", +- "initial-state": "加载中...", +- "python-setup": "正在设置 Python 环境...", +- "ready": "完成中...", +- "starting-server": "正在启动 ComfyUI 服务器..." ++ "signOut": { ++ "signOut": "退出登录", ++ "success": "成功退出登录", ++ "successDetail": "您已成功退出账户。" + }, +- "reportIssue": "报告问题", +- "showTerminal": "显示终端", +- "title": "启动 ComfyUI", +- "troubleshoot": "故障排除" ++ "signup": { ++ "alreadyHaveAccount": "已经有账户了?", ++ "emailLabel": "电子邮件", ++ "emailPlaceholder": "输入您的电子邮件", ++ "passwordLabel": "密码", ++ "passwordPlaceholder": "输入新密码", ++ "personalDataConsentLabel": "我同意处理我的个人数据。", ++ "regionRestrictionChina": "根据当地法规要求,我们暂时无法为中国地区的用户提供服务。", ++ "signIn": "登录", ++ "signUpButton": "注册", ++ "signUpWithGithub": "使用Github注册", ++ "signUpWithGoogle": "使用Google注册", ++ "title": "创建一个账户" ++ } + }, +- "serverConfig": { +- "modifiedConfigs": "您已修改以下服务器配置。重启以应用更改。", +- "restart": "重启", +- "restartRequiredToastDetail": "重启软件应用设置。", +- "restartRequiredToastSummary": "需要重启", +- "revertChanges": "撤销更改" ++ "breadcrumbsMenu": { ++ "clearWorkflow": "清除工作流", ++ "deleteBlueprint": "删除蓝图", ++ "deleteWorkflow": "删除工作流", ++ "duplicate": "复制", ++ "enterNewName": "输入新名称", ++ "missingNodesWarning": "工作流包含不支持的节点(红色突出显示)。" + }, +- "shape": { +- "CARD": "卡片", +- "arrow": "箭头", +- "box": "方框", +- "circle": "圆形", +- "default": "默认", +- "round": "圆角" ++ "clipboard": { ++ "errorMessage": "复制到剪贴板失败", ++ "errorNotSupported": "您的浏览器不支持剪贴板API", ++ "successMessage": "已复制到剪贴板" + }, +- "sideToolbar": { +- "assets": "资产", +- "backToAssets": "返回所有资产", +- "browseTemplates": "浏览示例模板", +- "downloads": "下载", +- "helpCenter": "帮助中心", +- "labels": { +- "assets": "资产", +- "console": "控制台", +- "generated": "已生成", +- "imported": "已导入", +- "menu": "菜单", +- "models": "模型", +- "nodes": "节点", +- "queue": "队列", +- "templates": "模板", +- "workflows": "工作流" +- }, +- "logout": "登出", +- "mediaAssets": { +- "filter3D": "3D", +- "filterAudio": "音频", +- "filterImage": "图像", +- "filterVideo": "视频", +- "sortFastestFirst": "生成时间(最快)", +- "sortLongestFirst": "生成时间(最慢)", +- "sortNewestFirst": "最新", +- "sortOldestFirst": "最旧", +- "title": "媒体资产" ++ "cloudFooter_needHelp": "需要帮助?", ++ "cloudForgotPassword_backToLogin": "返回登录", ++ "cloudForgotPassword_didntReceiveEmail": "没有收到邮件?", ++ "cloudForgotPassword_emailLabel": "电子邮件", ++ "cloudForgotPassword_emailPlaceholder": "输入您的邮箱", ++ "cloudForgotPassword_emailRequired": "邮箱是必填项", ++ "cloudForgotPassword_instructions": "请输入您的电子邮件地址,我们将向您发送重置密码的链接。", ++ "cloudForgotPassword_passwordResetError": "发送密码重置邮件失败", ++ "cloudForgotPassword_passwordResetSent": "密码重置邮件已发送", ++ "cloudForgotPassword_sendResetLink": "发送重置链接", ++ "cloudForgotPassword_title": "忘记密码", ++ "cloudOnboarding": { ++ "authTimeout": { ++ "causes": [ ++ "Corporate firewall or proxy blocking authentication services", ++ "VPN or network restrictions", ++ "Browser extensions interfering with requests", ++ "Regional network limitations", ++ "Try a different browser or network" ++ ], ++ "helpText": "需要帮助?联系", ++ "message": "我们无法连接到 ComfyUI 云端服务。这可能是由于网络连接缓慢或临时服务问题导致的。", ++ "restart": "退出并重试", ++ "supportLink": "支持", ++ "technicalDetails": "技术细节", ++ "title": "连接时间过长", ++ "troubleshooting": "常见原因:" + }, +- "modelLibrary": "模型库", +- "newBlankWorkflow": "创建空白工作流", +- "noFilesFound": "未找到文件", +- "noFilesFoundMessage": "上传文件或生成内容以在此处查看", +- "noGeneratedFiles": "未找到生成的文件", +- "noImportedFiles": "未找到导入的文件", +- "nodeLibrary": "节点库", +- "nodeLibraryTab": { +- "groupBy": "分组方式", +- "groupStrategies": { +- "category": "类别", +- "categoryDesc": "按节点类别分组", +- "module": "模块", +- "moduleDesc": "按模块来源分组", +- "source": "来源", +- "sourceDesc": "按来源类型分组(核心,自定义,API)" +- }, +- "resetView": "重置视图为默认", +- "sortBy": { +- "alphabetical": "字母顺序", +- "alphabeticalDesc": "在分组内按字母顺序排序", +- "original": "原始顺序", +- "originalDesc": "保持原始顺序" +- }, +- "sortMode": "排序模式" ++ "checkingStatus": "正在检查您的账户状态...", ++ "forgotPassword": { ++ "backToLogin": "返回登录", ++ "didntReceiveEmail": "没有收到邮件?请联系我们:", ++ "emailLabel": "电子邮件", ++ "emailPlaceholder": "输入您的邮箱", ++ "emailRequired": "邮箱为必填项", ++ "instructions": "请输入您的电子邮件地址,我们将向您发送重置密码的链接。", ++ "passwordResetError": "发送密码重置邮件失败,请重试。", ++ "passwordResetSent": "密码重置邮件已发送", ++ "sendResetLink": "发送重置链接", ++ "title": "忘记密码" + }, +- "openWorkflow": "在本地文件系统中打开工作流", +- "queue": "队列", +- "queueProgressOverlay": { +- "activeJobsSuffix": "活跃任务", +- "cancelJobTooltip": "取消任务", +- "clearHistory": "清除任务记录", +- "clearHistoryDialogAssetsNote": "这些任务生成的资产不会被删除,并且始终可以在资产面板中查看。", +- "clearHistoryDialogDescription": "以下所有已完成或失败的任务将从队列面板中删除。", +- "clearHistoryDialogTitle": "确定要清除任务记录?", +- "clearQueueTooltip": "清理队列", +- "clearQueued": "清除已执行", +- "colonPercent": ":{percent}", +- "currentNode": "当前节点:", +- "expandCollapsedQueue": "展开任务队列", +- "filterAllWorkflows": "全部工作流", +- "filterBy": "筛选方式", +- "filterCurrentWorkflow": "当前工作流", +- "filterJobs": "筛选任务", +- "interruptAll": "中断全部正在运行的任务", +- "jobQueue": "任务队列", +- "jobsCompleted": "{count} 任务完成 | {count} 任务完成", +- "jobsFailed": "{count} 任务失败 | {count} 任务失败", +- "moreOptions": "更多设置", +- "noActiveJobs": "无活跃任务", +- "preview": "预览", +- "queuedSuffix": "已执行", +- "running": "运行中", +- "showAssets": "显示资产", +- "showAssetsPanel": "显示资产面板", +- "sortBy": "排序方式", +- "sortJobs": "排序任务", +- "stubClipTextEncode": "CLIP文本编码:", +- "title": "队列进度", +- "total": "全部:{percent}", +- "viewAllJobs": "查看全部任务", +- "viewJobHistory": "查看任务记录" ++ "privateBeta": { ++ "desc": "登录以加入等候名单。轮到您时我们会通知您。已经收到通知?登录开始使用 Cloud。", ++ "title": "云服务目前处于内测阶段" + }, +- "searchAssets": "搜索资产", +- "templates": "模板", +- "themeToggle": "切换主题", +- "workflowTab": { +- "confirmDelete": "您确定要删除此工作流吗?", +- "confirmDeleteTitle": "删除工作流?", +- "confirmOverwrite": "下面的文件已经存在。您想要覆盖它吗?", +- "confirmOverwriteTitle": "覆盖现有文件?", +- "deleteFailed": "尝试删除工作流失败。", +- "deleteFailedTitle": "删除失败", +- "deleted": "工作流已删除", +- "dirtyClose": "以下文件已被更改。您想在关闭之前保存它们吗?", +- "dirtyCloseHint": "按住 Shift 关闭而不提示", +- "dirtyCloseTitle": "保存更改?", +- "workflowTreeType": { +- "bookmarks": "书签", +- "browse": "浏览", +- "open": "打开" +- } ++ "retry": "重试", ++ "retrying": "正在重试...", ++ "start": { ++ "desc": "无需任何设置。可在任何设备上使用。", ++ "download": "下载 ComfyUI", ++ "explain": "一次生成多个输出。轻松分享工作流。", ++ "learnAboutButton": "了解云服务", ++ "title": "几秒内开始创作", ++ "wantToRun": "想在本机运行 ComfyUI 吗?" + }, +- "workflows": "工作流" +- }, +- "helpCenter": { +- "feedback": "提交反馈", +- "docs": "文档", +- "github": "Github", +- "help": "帮助和支持", +- "managerExtension": "管理扩展", +- "more": "更多...", +- "whatsNew": "新功能?", +- "clickToLearnMore": "点击了解更多 →", +- "loadingReleases": "加载发布信息...", +- "recentReleases": "最近发布", +- "noRecentReleases": "没有最近的发布", +- "updateAvailable": "更新", +- "desktopUserGuide": "桌面端用户指南", +- "openDevTools": "打开开发者工具", +- "reinstall": "重新安装", +- "updateComfyUI": "更新 ComfyUI", +- "updateComfyUIStarted": "更新开始", +- "updateComfyUIStartedDetail": "正在更新 ComfyUI,请稍等...", +- "updateComfyUISuccess": "更新完成", +- "updateComfyUISuccessDetail": "ComfyUI 已更新,正在重启...", +- "updateComfyUIFailed": "更新 ComfyUI 失败,请重试。" ++ "survey": { ++ "options": { ++ "familiarity": { ++ "advanced": "高级用户(自定义工作流)", ++ "basics": "熟练掌握基础知识", ++ "expert": "专家(帮助他人)", ++ "new": "ComfyUI 新手(从未使用过)", ++ "starting": "刚刚开始(正在学习教程)" ++ }, ++ "industry": { ++ "architecture": "架构", ++ "education": "教育", ++ "film_tv_animation": "电影、电视与动画", ++ "fine_art": "美术与插画", ++ "gaming": "游戏", ++ "marketing": "营销与广告", ++ "other": "其他", ++ "otherPlaceholder": "请指定", ++ "product_design": "产品与平面设计", ++ "software": "软件与技术" ++ }, ++ "making": { ++ "3d": "3D 资产", ++ "audio": "音频 / 音乐", ++ "custom_nodes": "自定义节点和工作流", ++ "images": "图片", ++ "video": "视频与动画" ++ }, ++ "purpose": { ++ "client": "客户工作(自由职业)", ++ "community": "社区贡献(节点、工作流等)", ++ "inhouse": "我自己的工作场所(内部)", ++ "personal": "个人项目 / 爱好", ++ "research": "学术研究" ++ } ++ }, ++ "placeholder": "调查问题占位符", ++ "questions": { ++ "familiarity": "你对 ComfyUI 有多熟悉?", ++ "industry": "您的主要行业是什么?", ++ "making": "你打算做什么?", ++ "purpose": "您主要将使用 ComfyUI 做什么?" ++ }, ++ "steps": { ++ "familiarity": "你对 ComfyUI 有多熟悉?", ++ "industry": "您的主要行业是什么?", ++ "making": "你打算做什么?", ++ "purpose": "您将主要使用 ComfyUI 做什么?" ++ }, ++ "title": "云调研" ++ } + }, +- "releaseToast": { +- "newVersionAvailable": "新版本可用!", +- "whatsNew": "新功能?", +- "skip": "跳过", +- "update": "更新", +- "description": "在此更新中尝试最新的改进和功能。" ++ "cloudPrivateBeta_desc": "登录以加入等候名单。轮到您时我们会通知您。已经收到通知?登录开始使用 Cloud。", ++ "cloudPrivateBeta_title": "云服务目前处于内测阶段", ++ "cloudSorryContactSupport_title": "抱歉,请联系客服", ++ "cloudStart_desc": "无需任何设置。可在任何设备上使用。", ++ "cloudStart_download": "下载 ComfyUI", ++ "cloudStart_explain": "一次性生成多个输出。轻松分享工作流。", ++ "cloudStart_learnAboutButton": "了解云服务", ++ "cloudStart_title": "几秒钟内开始创作", ++ "cloudStart_wantToRun": "想在本地运行 ComfyUI 吗?", ++ "cloudSurvey_steps_familiarity": "你对 ComfyUI 有多熟悉?", ++ "cloudSurvey_steps_industry": "您的主要行业是什么?", ++ "cloudSurvey_steps_making": "你打算做什么?", ++ "cloudSurvey_steps_purpose": "您将主要使用 ComfyUI 做什么?", ++ "cloudWaitlist_contactLink": "这里", ++ "cloudWaitlist_questionsText": "有问题?联系我们", ++ "color": { ++ "black": "黑色", ++ "blue": "蓝色", ++ "brown": "棕色", ++ "custom": "自定义", ++ "cyan": "青色", ++ "default": "默认", ++ "green": "绿色", ++ "noColor": "无色", ++ "pale_blue": "淡蓝色", ++ "pink": "粉色", ++ "purple": "紫色", ++ "red": "红色", ++ "yellow": "黄色" + }, +- "menu": { +- "autoQueue": "自动执行", +- "batchCount": "批次数量", +- "batchCountTooltip": "工作流生成次数", ++ "commands": { + "clear": "清空工作流", +- "clipspace": "打开剪贴板", ++ "clipspace": "打开 Clipspace", + "dark": "深色", +- "disabled": "禁用", +- "disabledTooltip": "工作流将不会自动执行", + "execute": "执行", +- "help": "说明", +- "hideMenu": "隐藏菜单", +- "instant": "实时", +- "instantTooltip": "工作流将会在生成完成后立即执行", +- "interrupt": "取消当前任务", +- "light": "淺色", +- "manageExtensions": "管理扩展功能", +- "onChange": "更改时", +- "onChangeTooltip": "一旦进行更改,工作流将添加到执行队列", ++ "help": "帮助", ++ "interrupt": "取消当前运行", ++ "light": "浅色", ++ "manageExtensions": "管理扩展", + "queue": "队列面板", +- "refresh": "刷新节点", +- "resetView": "重置视图", ++ "refresh": "刷新节点定义", ++ "resetView": "重置画布视图", + "run": "运行", +- "runWorkflow": "运行工作流(Shift排在前面)", +- "runWorkflowDisabled": "工作流包含不支持的节点(已用红色突出显示)。删除这些节点以运行工作流。", +- "runWorkflowFront": "运行工作流(排在前面)", +- "settings": "设定", +- "showMenu": "显示菜单", ++ "runWorkflow": "运行工作流", ++ "runWorkflowFront": "运行工作流(队列前端)", ++ "settings": "设置", + "theme": "主题", +- "toggleBottomPanel": "底部面板", +- "customNodesManager": "自定义节点管理器" ++ "toggleBottomPanel": "切换底部面板" + }, +- "tabMenu": { +- "addToBookmarks": "添加到书签", +- "closeOtherTabs": "关闭其他标签", +- "closeTab": "关闭标签", +- "closeTabsToLeft": "关闭左侧标签", +- "closeTabsToRight": "关闭右侧标签", +- "duplicateTab": "复制标签", +- "removeFromBookmarks": "从书签中移除" ++ "contextMenu": { ++ "Add Group": "添加组", ++ "Add Group For Selected Nodes": "为选定节点添加组", ++ "Add Node": "添加节点", ++ "Add Subgraph to Library": "添加子工作流到节点库", ++ "Adjust Size": "调整尺寸", ++ "Align Selected To": "对齐选中项到", ++ "Bottom": "底部", ++ "Bypass": "绕过", ++ "Clone": "克隆", ++ "Collapse": "折叠", ++ "Color": "颜色", ++ "Colors": "颜色", ++ "Convert to Group Node": "转换为组节点", ++ "Convert to Subgraph": "转换为子工作流", ++ "Copy": "复制", ++ "Copy (Clipspace)": "复制 (Clipspace)", ++ "Copy Image": "复制图像", ++ "Delete": "删除", ++ "Distribute Nodes": "分布节点", ++ "Duplicate": "复制", ++ "Edit Subgraph Widgets": "编辑子工作流组件", ++ "Expand": "展开", ++ "Expand Node": "展开节点", ++ "Extensions": "扩展", ++ "Horizontal": "水平", ++ "Inputs": "输入", ++ "Left": "左侧", ++ "Manage": "管理", ++ "Manage Group Nodes": "管理组节点", ++ "Minimize Node": "最小化节点", ++ "Mode": "模式", ++ "Node Info": "节点信息", ++ "Node Templates": "节点模板", ++ "Open Image": "打开图像", ++ "Open in Mask Editor": "用遮罩编辑器打开", ++ "Outputs": "输出", ++ "Paste": "站贴", ++ "Pin": "固定", ++ "Properties": "属性", ++ "Properties Panel": "属性面板", ++ "Remove": "删除", ++ "Remove Bypass": "删除所有忽略节点", ++ "Rename": "重命名", ++ "RenameWidget": "重命名组件", ++ "Resize": "调整大小", ++ "Right": "右侧", ++ "Run Branch": "运行支流节点", ++ "Save Image": "保存图像", ++ "Save Selected as Template": "将选定节点另存为模板", ++ "Search": "搜索", ++ "Shape": "形状", ++ "Shapes": "形状", ++ "Title": "标题", ++ "Top": "顶部", ++ "Unpack Subgraph": "解包子工作流", ++ "Unpin": "取消固定", ++ "Vertical": "竖直", ++ "deprecated": "弃用", ++ "new": "新" + }, +- "templateWorkflows": { +- "activeFilters": "筛选条件:", +- "allTemplates": "全部模板", +- "categories": "分类", +- "category": { +- "3D": "3D", +- "All": "所有模板", +- "Area Composition": "区域合成", +- "Audio": "音频生成", +- "Basics": "基础", +- "ComfyUI Examples": "ComfyUI示例", +- "ControlNet": "ControlNet", +- "Custom Nodes": "自定义节点", +- "Extensions": "扩展", +- "Flux": "Flux", +- "Generation Type": "生成类型", +- "GettingStarted": "入门", +- "Image": "图像生成", +- "Image API": "图像 API", +- "LLM API": "LLM API", +- "LLMs": "LLMs", +- "Partner Nodes": "合作伙伴节点", +- "Upscaling": "图像放大", +- "Video": "视频生成", +- "Video API": "视频 API" +- }, +- "error": { +- "templateNotFound": "未找到模板 \"{templateName}\"" +- }, +- "licenseFilter": "许可证", +- "loading": "正在加载模板...", +- "loadingMore": "正在加载更多模板...", +- "modelFilter": "模型筛选", +- "modelsSelected": "已选 {count} 个模型", +- "noResults": "未找到模板", +- "noResultsHint": "请尝试调整搜索或筛选条件", +- "resetFilters": "清除筛选", +- "resultsCount": "显示 {count} / 共 {total} 个模板", +- "runsOnFilter": "运行于", +- "runsOnSelected": "{count} 次运行", +- "searchPlaceholder": "搜索模板...", +- "sort": { +- "alphabetical": "A → Z", +- "default": "默认", +- "modelSizeLowToHigh": "模型大小(从低到高)", +- "newest": "最新", +- "recommended": "推荐", +- "searchPlaceholder": "搜索...", +- "vramLowToHigh": "VRAM 使用量(从低到高)" +- }, +- "sorting": "排序方式", +- "title": "从模板开始", +- "useCaseFilter": "使用例", +- "useCasesSelected": "已选 {count} 个用例" +- }, +- "templateWidgets": { +- "sort": { +- "searchPlaceholder": "搜索中..." +- } ++ "credits": { ++ "accountInitialized": "账户已初始化", ++ "activity": "活动", ++ "added": "已添加", ++ "additionalInfo": "附加信息", ++ "apiPricing": "API 价格", ++ "credits": "积分", ++ "creditsAvailable": "积分可用", ++ "details": "详情", ++ "eventType": "事件类型", ++ "faqs": "常见问题", ++ "invoiceHistory": "发票历史", ++ "lastUpdated": "最近更新", ++ "messageSupport": "联系客服", ++ "model": "模型", ++ "purchaseCredits": "购买积分", ++ "refreshes": "于 {date} 刷新", ++ "time": "时间", ++ "topUp": { ++ "addMoreCredits": "获取更多积分", ++ "addMoreCreditsToRun": "获取更多积分来运行", ++ "buy": "购买", ++ "buyNow": "立即购买", ++ "creditsDescription": "该工作流需要积分运行。", ++ "howManyCredits": "您想要多少积分?", ++ "insufficientMessage": "您的积分不足,无法运行此工作流。", ++ "insufficientTitle": "积分不足", ++ "insufficientWorkflowMessage": "您的积分不足以运行该工作流。", ++ "maxAmount": "(最高 $1,000 美元)", ++ "purchaseError": "购买失败", ++ "purchaseErrorDetail": "购买积分失败:{error}", ++ "quickPurchase": "快速购买", ++ "seeDetails": "查看详情", ++ "templateNote": "*使用 Wan Fun Control 模板生成", ++ "topUp": "充值", ++ "unknownError": "发生未知错误", ++ "videosEstimate": "~{count} 个视频*" ++ }, ++ "unified": { ++ "message": "积分已合并", ++ "tooltip": "我们统一了 Comfy 的支付方式。现在全部使用 Comfy 积分 :\n- 合作节点(API节点)\n- Cloud 工作流\n\n您现有的合作伙伴节点积分将自动转换为 Comfy 积分。" ++ }, ++ "yourCreditBalance": "您的积分余额" + }, +- "graphCanvasMenu": { +- "fitView": "适应视图", +- "focusMode": "专注模式", +- "hand": "拖拽", +- "hideLinks": "隐藏链接", +- "panMode": "平移模式", +- "resetView": "重置视图", +- "select": "选择", +- "selectMode": "选择模式", +- "showLinks": "显示链接", +- "toggleLinkVisibility": "切换链接可见性", +- "toggleMinimap": "切换小地图", +- "zoomIn": "放大", +- "zoomOptions": "缩放选项", +- "zoomOut": "缩小" ++ "dataTypes": { ++ "*": "*", ++ "AUDIO": "音频", ++ "AUDIO_ENCODER": "音频编码器", ++ "AUDIO_ENCODER_OUTPUT": "音频编码器输出", ++ "AUDIO_RECORD": "音频录制", ++ "BOOLEAN": "布尔", ++ "CAMERA_CONTROL": "相机控制", ++ "CLIP": "CLIP", ++ "CLIP_VISION": "CLIP视觉", ++ "CLIP_VISION_OUTPUT": "CLIP视觉输出", ++ "COMBO": "组合", ++ "CONDITIONING": "条件", ++ "CONTROL_NET": "ControlNet", ++ "FLOAT": "浮点", ++ "FLOATS": "浮点组", ++ "GEMINI_INPUT_FILES": "GEMINI 输入文件", ++ "GLIGEN": "GLIGEN", ++ "GUIDER": "引导器", ++ "HOOKS": "约束", ++ "HOOK_KEYFRAMES": "约束关键帧", ++ "IMAGE": "图像", ++ "INT": "整数", ++ "LATENT": "Latent", ++ "LATENT_OPERATION": "Latent操作", ++ "LATENT_UPSCALE_MODEL": "LATENT_UPSCALE_MODEL", ++ "LOAD3D_CAMERA": "加载3D相机", ++ "LOAD_3D": "加载3D", ++ "LORA_MODEL": "LORA模型", ++ "LOSS_MAP": "损失图", ++ "LUMA_CONCEPTS": "Luma 概念", ++ "LUMA_REF": "Luma 参考", ++ "MASK": "遮罩", ++ "MESH": "网格", ++ "MODEL": "模型", ++ "MODEL_PATCH": "模型补丁", ++ "MODEL_TASK_ID": "模型任务ID", ++ "NOISE": "噪波", ++ "OPENAI_CHAT_CONFIG": "OpenAI对话文件", ++ "OPENAI_INPUT_FILES": "OpenAI输入文件", ++ "PHOTOMAKER": "PhotoMaker", ++ "PIXVERSE_TEMPLATE": "Pixverse 模板", ++ "RECRAFT_COLOR": "Recraft 颜色", ++ "RECRAFT_CONTROLS": "Recraft 控件", ++ "RECRAFT_V3_STYLE": "Recraft V3 风格", ++ "RETARGET_TASK_ID": "重定向任务ID", ++ "RIG_TASK_ID": "RIG_TASK_ID", ++ "SAMPLER": "采样器", ++ "SIGMAS": "Sigmas", ++ "STRING": "字符串", ++ "STYLE_MODEL": "风格模型", ++ "SVG": "SVG", ++ "TIMESTEPS_RANGE": "时间间隔范围", ++ "TRACKS": "TRACKS", ++ "UPSCALE_MODEL": "放大模型", ++ "VAE": "VAE", ++ "VIDEO": "视频", ++ "VOXEL": "体素", ++ "WAN_CAMERA_EMBEDDING": "WAN 摄像头嵌入", ++ "WEBCAM": "摄像头" + }, +- "zoomControls": { +- "hideMinimap": "隐藏小地图", +- "label": "缩放控制", +- "showMinimap": "显示小地图", +- "zoomToFit": "适合画面" ++ "desktopDialogs": { ++ "": { ++ "buttons": { ++ "Close": "关闭" ++ }, ++ "message": "提供的对话 ID 无效。", ++ "title": "无效对话框" ++ } + }, +- "groupNode": { +- "create": "创建组节点", +- "enterName": "输入名称" ++ "desktopMenu": { ++ "confirmQuit": "有未保存的工作流开启;任何未保存的更改都将丢失。忽略此警告并退出?", ++ "confirmReinstall": "这将清除您的 extra_models_config.yaml 文件,并重新开始安装。您确定吗?", ++ "quit": "退出", ++ "reinstall": "重新安装" + }, +- "nodeTemplates": { +- "enterName": "输入名称", +- "saveAsTemplate": "另存为模板" ++ "desktopStart": { ++ "initialising": "正在初始化..." + }, +- "workflowService": { +- "enterFilename": "输入文件名", +- "exportWorkflow": "导出工作流", +- "saveWorkflow": "保存工作流" ++ "desktopUpdate": { ++ "description": "ComfyUI桌面正在安装新的依赖项。这可能需要几分钟的时间。", ++ "errorCheckingUpdate": "检查更新时出错", ++ "errorInstallingUpdate": "安装更新时出错", ++ "noUpdateFound": "未发现更新", ++ "terminalDefaultMessage": "更新过程中的任何控制台输出都将在这里显示。", ++ "title": "正在更新ComfyUI桌面", ++ "updateAvailableMessage": "有可用的更新。您现在要重启并更新吗?", ++ "updateFoundTitle": "找到更新 (v{version})" + }, +- "subgraphStore": { +- "blueprintName": "子工作流名称", +- "confirmDelete": "此操作将永久从您的库中移除该子工作流", +- "confirmDeleteTitle": "删除子工作流?", +- "hidden": "隐藏/嵌套参数", +- "hideAll": "全部隐藏", +- "loadFailure": "加载子工作流蓝图失败", +- "overwriteBlueprint": "保存将用您的更改覆盖当前子工作流", +- "overwriteBlueprintTitle": "覆盖现有子工作流?", +- "promoteOutsideSubgraph": "不在子工作流中时无法提升小部件", +- "publish": "发布子工作流", +- "publishSuccess": "已保存到节点库", +- "publishSuccessMessage": "您可以在节点库的“子工作流蓝图”下找到您的子工作流蓝图", +- "saveBlueprint": "保存子工作流到节点库", +- "showAll": "全部显示", +- "showRecommended": "显示推荐控件", +- "shown": "节点上显示" ++ "downloadGit": { ++ "gitWebsite": "下载 git", ++ "instructions": "请下载并安装适合您操作系统的最新版本。下面的下载 git 按钮将打开 git-scm.com 下载页面。", ++ "message": "无法找到 git。正常操作需要一个可用的 git 副本。", ++ "skip": "跳过", ++ "title": "下载 git", ++ "warning": "如果您确定不需要安装 git,或者已经安装了 git,您可以点击跳过以绕过此检查。当前不支持在没有可用 git 副本的情况下运行 ComfyUI。" + }, + "electronFileDownload": { + "cancel": "取消下载", +@@ -954,582 +609,523 @@ + "paused": "已暂停", + "resume": "恢复下载" + }, +- "maskEditor": { +- "activateLayer": "活跃层", +- "applyToWholeImage": "应用到图像整体", +- "baseImageLayer": "基础图像层", +- "baseLayerPreview": "基础图像层预览", +- "black": "黑", +- "brushSettings": "笔刷设置", +- "brushShape": "笔刷形状", +- "clear": "清除", +- "clickToResetZoom": "点击重置缩放", +- "colorSelectSettings": "色彩选取设置", +- "colorSelector": "色彩选取", +- "fillOpacity": "填充不透明度", +- "hardness": "硬度", +- "imageLayer": "图像层", +- "invert": "反转", +- "layers": "图层", +- "livePreview": "实时预览", +- "maskBlendingOptions": "遮罩混合设置", +- "maskLayer": "遮罩层", +- "maskOpacity": "遮罩不透明度", +- "maskTolerance": "遮罩阈值", +- "method": "方法", +- "negative": "负面", +- "opacity": "不透明度", +- "paintBucketSettings": "填充设置", +- "paintLayer": "绘画层", +- "redo": "重做", +- "resetToDefault": "重置为默认", +- "selectionOpacity": "选取不透明度", +- "smoothingPrecision": "预测平滑", +- "stepSize": "间距", +- "stopAtMask": "遇到遮罩时停止", +- "thickness": "厚度", +- "title": "遮罩编辑器", +- "tolerance": "阈值", +- "undo": "撤回", +- "white": "白" +- }, +- "commands": { +- "clear": "清空工作流", +- "clipspace": "打开 Clipspace", +- "dark": "深色", +- "execute": "执行", +- "help": "帮助", +- "interrupt": "取消当前运行", +- "light": "浅色", +- "manageExtensions": "管理扩展", +- "queue": "队列面板", +- "refresh": "刷新节点定义", +- "resetView": "重置画布视图", +- "run": "运行", +- "runWorkflow": "运行工作流", +- "runWorkflowFront": "运行工作流(队列前端)", +- "settings": "设置", +- "theme": "主题", +- "toggleBottomPanel": "切换底部面板" ++ "errorDialog": { ++ "defaultTitle": "发生错误", ++ "extensionFileHint": "这可能是由于以下脚本", ++ "loadWorkflowTitle": "由于重新加载工作流数据出错,加载被中止", ++ "noStackTrace": "无可用堆栈跟踪", ++ "promptExecutionError": "提示执行失败" + }, +- "queue": { +- "completedIn": "{duration} 后完成", +- "inQueue": "正在执行...", +- "initializingAlmostReady": "初始化中 - 即将完成", +- "jobAddedToQueue": "任务添加到队列", +- "jobDetails": { +- "computeHoursUsed": "计算耗时", +- "errorMessage": "报错信息", +- "estimatedFinishIn": "预计完成于", +- "estimatedStartIn": "预计开始于", +- "eta": { +- "minutes": "~{count} 分钟 | ~{count} 分钟", +- "minutesRange": "~{lo}-{hi} 分钟", +- "seconds": "~{count} 秒 | ~{count} 秒", +- "secondsRange": "~{lo}-{hi} 秒" +- }, +- "failedAfter": "失败于", +- "generatedOn": "生成于", +- "header": "任务细节", +- "jobId": "任务ID", +- "queuePosition": "队列位置", +- "queuePositionValue": "在您前方有 ~{count} 个任务 | 在您前方有 ~{count} 个任务", +- "queuedAt": "执行于", +- "report": "反馈", +- "timeElapsed": "耗时", +- "totalGenerationTime": "总生成时间", +- "workflow": "工作流" +- }, +- "jobList": { +- "sortComputeHoursUsed": "计算用时(最先)", +- "sortMostRecent": "最新", +- "sortTotalGenerationTime": "生成时间(最慢)", +- "undated": "无日期" ++ "g": { ++ "1x": "1倍", ++ "2x": "2倍", ++ "about": "关于", ++ "add": "添加", ++ "addNodeFilterCondition": "添加节点筛选条件", ++ "all": "全部", ++ "amount": "数量", ++ "apply": "应用", ++ "architecture": "架构", ++ "audioFailedToLoad": "音频加载失败", ++ "audioProgress": "音频进度", ++ "author": "作者", ++ "back": "返回", ++ "batchRename": "批量重命名", ++ "beta": "测试版", ++ "bookmark": "保存到库", ++ "calculatingDimensions": "正在计算尺寸", ++ "cancel": "取消", ++ "cancelled": "已取消", ++ "capture": "捕获", ++ "category": "类别", ++ "chart": "图表", ++ "chartLowercase": "图表", ++ "choose_file_to_upload": "选择要上传的文件", ++ "clear": "清除", ++ "clearAll": "全部清除", ++ "clearFilters": "清除筛选", ++ "close": "关闭", ++ "color": "颜色", ++ "comfy": "舒适", ++ "comfyOrgLogoAlt": "ComfyOrg 徽标", ++ "comingSoon": "即将推出", ++ "command": "指令", ++ "commandProhibited": "命令 {command} 被禁止。请联系管理员了解更多信息。", ++ "community": "社区", ++ "completed": "已完成", ++ "confirm": "确认", ++ "confirmed": "已确认", ++ "content": "内容", ++ "continue": "继续", ++ "control_after_generate": "生成后控制", ++ "control_before_generate": "生成前控制", ++ "copied": "已复制", ++ "copy": "复制", ++ "copyJobId": "复制队列 ID", ++ "copyToClipboard": "复制到剪贴板", ++ "copyURL": "复制链接", ++ "core": "核心", ++ "currentUser": "当前用户", ++ "custom": "自定义", ++ "customBackground": "自定义背景", ++ "customize": "自定义", ++ "customizeFolder": "自定义文件夹", ++ "defaultBanner": "默认横幅", ++ "delete": "删除", ++ "deleteAudioFile": "删除音频文件", ++ "deleteImage": "删除图片", ++ "deprecated": "已弃用", ++ "description": "描述", ++ "devices": "设备", ++ "disableAll": "禁用全部", ++ "disableSelected": "禁用选中项", ++ "disableThirdParty": "禁用第三方", ++ "disabling": "禁用中", ++ "dismiss": "关闭", ++ "download": "下载", ++ "downloadImage": "下载图片", ++ "downloadVideo": "下载视频", ++ "dropYourFileOr": "拖放您的文件或", ++ "duplicate": "复制", ++ "edit": "编辑", ++ "editImage": "编辑图片", ++ "editOrMaskImage": "编辑或遮罩图片", ++ "emDash": "-", ++ "empty": "空", ++ "enableAll": "启用全部", ++ "enableOrDisablePack": "启用或禁用包", ++ "enableSelected": "启用选中项", ++ "enabled": "已启用", ++ "enabling": "启用中", ++ "enterBaseName": "输入基础名称", ++ "enterNewName": "输入新名称", ++ "error": "错误", ++ "errorLoadingImage": "图片加载出错", ++ "errorLoadingVideo": "视频加载出错", ++ "experimental": "测试版", ++ "export": "导出", ++ "extensionName": "扩展名称", ++ "failed": "失败", ++ "failedToCopyJobId": "未能复制队列 ID", ++ "failedToDownloadImage": "图片下载失败", ++ "failedToDownloadVideo": "视频下载失败", ++ "feedback": "反馈", ++ "file": "文件", ++ "filter": "过滤", ++ "findIssues": "查找问题", ++ "frameNodes": "框选节点", ++ "frontendNewer": "前端版本 {frontendVersion} 可能与后端版本 {backendVersion} 不相容。", ++ "frontendOutdated": "前端版本 {frontendVersion} 已过时。后端需要 {requiredVersion} 或更高版本。", ++ "galleryImage": "图库图片", ++ "galleryThumbnail": "图库缩略图", ++ "goToNode": "转到节点", ++ "graphNavigation": "图形导航", ++ "halfSpeed": "0.5倍", ++ "icon": "图标", ++ "imageFailedToLoad": "图像加载失败", ++ "imagePreview": "图片预览 - 使用方向键切换图片", ++ "imageUrl": "图片网址", ++ "import": "导入", ++ "inProgress": "进行中", ++ "info": "节点信息", ++ "insert": "插入", ++ "install": "安装", ++ "installed": "已安装", ++ "installing": "正在安装", ++ "interrupted": "已中断", ++ "itemSelected": "已选择 {selectedCount} 项", ++ "itemsCopiedToClipboard": "已复制到剪贴板", ++ "itemsSelected": "已选择 {selectedCount} 项", ++ "job": "任务", ++ "jobIdCopied": "队列 ID 已复制到剪贴板", ++ "keybinding": "按键绑定", ++ "keybindingAlreadyExists": "快捷键已存在", ++ "learnMore": "了解更多", ++ "listening": "正在监听...", ++ "liveSamplingPreview": "实时采样预览", ++ "loadAllFolders": "加载所有文件夹", ++ "loadWorkflow": "加载工作流", ++ "loading": "加载中", ++ "loadingPanel": "正在加载{panel}面板...", ++ "login": "登录", ++ "logoAlt": "ComfyUI 标志", ++ "logs": "日志", ++ "markdown": "markdown", ++ "micPermissionDenied": "麦克风权限被拒绝", ++ "migrate": "迁移", ++ "missing": "缺失", ++ "more": "更多", ++ "moreOptions": "更多选项", ++ "moreWorkflows": "更多工作流", ++ "multiSelectDropdown": "多选下拉框", ++ "name": "名称", ++ "newFolder": "新文件夹", ++ "next": "下一个", ++ "no": "否", ++ "noAudioRecorded": "未录制音频", ++ "noItems": "无项目", ++ "noResults": "无结果", ++ "noResultsFound": "未找到结果", ++ "noTasksFound": "未找到任务", ++ "noTasksFoundMessage": "队列中没有任务。", ++ "noWorkflowsFound": "未找到工作流。", ++ "nodeContentError": "节点内容错误", ++ "nodeHeaderError": "节点标题错误", ++ "nodeRenderError": "节点渲染错误", ++ "nodeSlotsError": "节点插槽错误", ++ "nodeWidgetsError": "节点控件错误", ++ "nodes": "节点", ++ "nodesRunning": "节点正在运行", ++ "none": "无", ++ "nothingToCopy": "没有可以复制的内容", ++ "nothingToDelete": "没有可以删除的内容", ++ "nothingToDuplicate": "Nothing to duplicate", ++ "nothingToRename": "没有可以重命名的内容", ++ "ok": "确定", ++ "openManager": "打开管理器", ++ "openNewIssue": "打开新问题", ++ "or": "或", ++ "overwrite": "覆盖", ++ "playPause": "开启/暂停", ++ "playRecording": "播放录音", ++ "playbackSpeed": "播放速度", ++ "playing": "播放中", ++ "pressKeysForNewBinding": "按下按键设置新绑定", ++ "preview": "预览", ++ "profile": "档案", ++ "progressCountOf": "共", ++ "queued": "已执行", ++ "ready": "就绪", ++ "reconnected": "已重新连接", ++ "reconnecting": "重新连接中", ++ "refresh": "刷新", ++ "refreshNode": "刷新节点", ++ "relativeTime": { ++ "daysAgo": "{count}天 前", ++ "hoursAgo": "{count}时 前", ++ "minutesAgo": "{count}分 前", ++ "monthsAgo": "{count}月 前", ++ "now": "刚才", ++ "weeksAgo": "{count}周 前", ++ "yearsAgo": "{count}年 前" + }, +- "jobMenu": { +- "addToCurrentWorkflow": "添加到当前工作流", +- "cancelJob": "取消任务", +- "copyErrorMessage": "复制报错信息", +- "copyJobId": "复制任务ID", +- "delete": "删除", +- "deleteAsset": "删除资产", +- "download": "下载", +- "exportWorkflow": "导出工作流", +- "inspectAsset": "查看资产", +- "openAsWorkflowNewTab": "在新标签页中读取工作流", +- "openWorkflowNewTab": "在新标签页中打开工作流", +- "removeJob": "移除任务", +- "reportError": "反馈报错" +- } +- }, +- "menuLabels": { +- "File": "文件", +- "Edit": "编辑", +- "View": "视图", +- "Help": "帮助", +- "Check for Updates": "检查更新", +- "Open Custom Nodes Folder": "打开自定义节点文件夹", +- "Open Inputs Folder": "打开输入文件夹", +- "Open Logs Folder": "打开日志文件夹", +- "Open extra_model_paths_yaml": "打开 extra_model_paths.yaml", +- "Open Models Folder": "打开模型文件夹", +- "Open Outputs Folder": "打开输出文件夹", +- "Open DevTools": "打开开发者工具", +- "Desktop User Guide": "桌面端用户手册", +- "Quit": "退出", +- "Reinstall": "重装", +- "Restart": "重启", +- "Open 3D Viewer (Beta) for Selected Node": "为选中节点打开3D查看器(测试版)", +- "Experimental: Browse Model Assets": "实验性:浏览模型资产", +- "Browse Templates": "浏览模板", +- "Delete Selected Items": "删除选定的项目", +- "Zoom to fit": "缩放以适应", +- "Lock Canvas": "锁定画布", +- "Move Selected Nodes Down": "下移所选节点", +- "Move Selected Nodes Left": "左移所选节点", +- "Move Selected Nodes Right": "右移所选节点", +- "Move Selected Nodes Up": "上移所选节点", +- "Reset View": "重置视图", +- "Resize Selected Nodes": "调整选定节点的大小", +- "Node Links": "节点连接", +- "Canvas Toggle Lock": "切换视图锁定", +- "Minimap": "小地图", +- "Pin/Unpin Selected Items": "固定/取消固定选定项目", +- "Bypass/Unbypass Selected Nodes": "忽略/取消忽略选定节点", +- "Collapse/Expand Selected Nodes": "折叠/展开选定节点", +- "Mute/Unmute Selected Nodes": "静音/取消静音选定节点", +- "Pin/Unpin Selected Nodes": "固定/取消固定选定节点", +- "Unlock Canvas": "解除锁定画布", +- "Zoom In": "放大画面", +- "Zoom Out": "缩小画面", +- "Clear Pending Tasks": "清除待处理任务", +- "Clear Workflow": "清除工作流", +- "Contact Support": "联系支持", +- "Show Model Selector (Dev)": "显示模型选择器(开发用)", +- "Duplicate Current Workflow": "复制当前工作流", +- "Export": "导出", +- "Export (API)": "导出 (API)", +- "Convert Selection to Subgraph": "将选中内容转换为子工作流", +- "Edit Subgraph Widgets": "编辑子工作流组件", +- "Exit Subgraph": "退出子工作流", +- "Fit Group To Contents": "适应组内容", +- "Group Selected Nodes": "将选中节点转换为组节点", +- "Toggle promotion of hovered widget": "切换悬停小部件的提升", +- "Unpack the selected Subgraph": "解包选中子工作流", +- "Convert selected nodes to group node": "将选中节点转换为组节点", +- "Manage group nodes": "管理组节点", +- "Ungroup selected group nodes": "解散选中组节点", +- "About ComfyUI": "关于ComfyUI", +- "Comfy-Org Discord": "Comfy-Org Discord", +- "ComfyUI Docs": "ComfyUI 文档", +- "ComfyUI Forum": "ComfyUI 论坛", +- "ComfyUI Issues": "ComfyUI 问题", +- "Interrupt": "中断", +- "Load Default Workflow": "加载默认工作流", +- "Custom Nodes Manager": "自定义节点管理器", +- "Custom Nodes (Legacy)": "自定义节点(旧版)", +- "Manager Menu (Legacy)": "管理菜单(旧版)", +- "Install Missing Custom Nodes": "安装缺失的自定义节点", +- "Check for Custom Node Updates": "检查自定义节点更新", +- "Toggle the Custom Nodes Manager Progress Bar": "切换自定义节点管理器进度条", +- "Decrease Brush Size in MaskEditor": "在 MaskEditor 中减小笔刷大小", +- "Increase Brush Size in MaskEditor": "在 MaskEditor 中增大笔刷大小", +- "Open Mask Editor for Selected Node": "为选中节点打开 Mask 编辑器", +- "Unload Models": "卸载模型", +- "Unload Models and Execution Cache": "卸载模型和执行缓存", +- "New": "新建", +- "Clipspace": "剪贴空间", +- "Manager": "管理器", +- "Open": "打开", +- "Publish": "发布", +- "Queue Prompt": "执行提示词", +- "Queue Prompt (Front)": "执行提示词 (优先执行)", +- "Queue Selected Output Nodes": "将所选输出节点加入队列", +- "Redo": "重做", +- "Refresh Node Definitions": "刷新节点定义", +- "Save": "保存", +- "Save As": "另存为", +- "Show Settings Dialog": "显示设置对话框", +- "Experimental: Enable AssetAPI": "实验性:启用 AssetAPI", +- "Canvas Performance": "画布性能", +- "Help Center": "帮助中心", +- "toggle linear mode": "切换线性模式", +- "Toggle Theme (Dark/Light)": "切换主题(暗/亮)", +- "Undo": "撤销", +- "Open Sign In Dialog": "打开登录对话框", +- "Sign Out": "退出登录", +- "Experimental: Enable Nodes 2_0": "实验性:启用 Nodes 2.0", +- "Close Current Workflow": "关闭当前工作流", +- "Next Opened Workflow": "下一个打开的工作流", +- "Previous Opened Workflow": "上一个打开的工作流", +- "Toggle Search Box": "切换搜索框", +- "Bottom Panel": "底部面板", +- "Show Keybindings Dialog": "显示快捷键对话框", +- "Toggle Terminal Bottom Panel": "切换终端底部面板", +- "Toggle Logs Bottom Panel": "切换日志底部面板", +- "Toggle Essential Bottom Panel": "切换基础底部面板", +- "Toggle View Controls Bottom Panel": "切换视图控制底部面板", +- "Focus Mode": "专注模式", +- "Assets": "资产", +- "Model Library": "模型库", +- "Node Library": "节点库", +- "Workflows": "工作流" ++ "releaseTitle": "{package} {version} 发布", ++ "reloadToApplyChanges": "重新加载以应用更改", ++ "removeImage": "移除图片", ++ "removeVideo": "移除视频", ++ "rename": "重命名", ++ "reportIssue": "发送报告", ++ "reportIssueTooltip": "向 Comfy Org 提交错误报告", ++ "reportSent": "报告已提交", ++ "reset": "重置", ++ "resetAll": "重置所有", ++ "resetAllKeybindingsTooltip": "将所有键绑定重置为默认", ++ "resizeFromBottomLeft": "从左下角调整大小", ++ "resizeFromBottomRight": "从右下角调整大小", ++ "resizeFromTopLeft": "从左上角调整大小", ++ "resizeFromTopRight": "从右上角调整大小", ++ "restart": "重新启动", ++ "resultsCount": "找到 {count} 个结果", ++ "running": "正在运行", ++ "save": "保存", ++ "saving": "正在保存", ++ "search": "搜索", ++ "searchExtensions": "搜索扩展", ++ "searchFailedMessage": "我们找不到任何与您的搜索匹配的设置。请尝试调整您的搜索词。", ++ "searchKeybindings": "搜索快捷键", ++ "searchModels": "搜索模型", ++ "searchNodes": "搜索节点", ++ "searchPlaceholder": "搜索占位符", ++ "searchSettings": "搜索设置", ++ "searchWorkflows": "搜索工作流", ++ "seeTutorial": "查看教程", ++ "selectItemsToCopy": "选择复制", ++ "selectItemsToDelete": "选择删除", ++ "selectItemsToDuplicate": "选择复制", ++ "selectItemsToRename": "选择重命名", ++ "selectedFile": "已选文件", ++ "setAsBackground": "设为背景", ++ "settings": "设置", ++ "showReport": "显示报告", ++ "singleSelectDropdown": "单选下拉框", ++ "sort": "排序", ++ "source": "来源", ++ "startRecording": "开始录音", ++ "status": "状态", ++ "stopPlayback": "停止播放", ++ "stopRecording": "停止录音", ++ "submit": "提交", ++ "success": "成功", ++ "systemInfo": "系统信息", ++ "terminal": "终端", ++ "title": "标题", ++ "triggerPhrase": "触发短语", ++ "unknownError": "未知错误", ++ "untitled": "无标题", ++ "update": "更新", ++ "updateAvailable": "有更新可用", ++ "updateFrontend": "更新前端", ++ "updated": "已更新", ++ "updating": "更新中", ++ "upload": "上传", ++ "usageHint": "使用提示", ++ "user": "用户", ++ "versionMismatchWarning": "版本兼容性警告", ++ "versionMismatchWarningMessage": "{warning}:{detail} 请参阅 https://docs.comfy.org/installation/update_comfyui#common-update-issues 以取得更新说明。", ++ "videoFailedToLoad": "视频加载失败", ++ "videoPreview": "视频预览 - 使用方向键切换视频", ++ "viewImageOfTotal": "查看第 {index} 张图片,共 {total} 张", ++ "viewVideoOfTotal": "查看第 {index} 个视频,共 {total} 个", ++ "vitePreloadErrorMessage": "应用已发布新版本。是否立即重新加载?\n如果不重新加载,应用的某些功能可能无法正常工作。\n您可以先拒绝,保存进度后再重新加载。", ++ "vitePreloadErrorTitle": "新版本可用", ++ "volume": "音量", ++ "warning": "警告", ++ "workflow": "工作流" + }, +- "desktopMenu": { +- "confirmQuit": "有未保存的工作流开启;任何未保存的更改都将丢失。忽略此警告并退出?", +- "confirmReinstall": "这将清除您的 extra_models_config.yaml 文件,并重新开始安装。您确定吗?", +- "quit": "退出", +- "reinstall": "重新安装" ++ "graphCanvasMenu": { ++ "fitView": "适应视图", ++ "focusMode": "专注模式", ++ "hand": "拖拽", ++ "hideLinks": "隐藏链接", ++ "panMode": "平移模式", ++ "resetView": "重置视图", ++ "select": "选择", ++ "selectMode": "选择模式", ++ "showLinks": "显示链接", ++ "toggleLinkVisibility": "切换链接可见性", ++ "toggleMinimap": "切换小地图", ++ "zoomIn": "放大", ++ "zoomOptions": "缩放选项", ++ "zoomOut": "缩小" + }, +- "settingsCategories": { +- "Comfy-Desktop": "Comfy桌面版", +- "General": "常规", +- "Appearance": "外观", +- "ColorPalette": "色彩主题", +- "Comfy": "Comfy", +- "Workflow": "工作流", +- "DevMode": "开发模式", +- "LiteGraph": "画面", +- "Node Widget": "节点组件", +- "Node": "节点", +- "Extension": "扩展", +- "Canvas": "画布", +- "Link": "连线", +- "Group": "组", +- "Menu": "菜单", +- "Keybinding": "快捷键", +- "LinkRelease": "释放链接", +- "Graph": "画面", +- "Locale": "区域设置", +- "Mask Editor": "遮罩编辑器", +- "BrushAdjustment": "画笔调整", +- "ModelLibrary": "模型库", +- "NodeLibrary": "节点库", +- "Node Search Box": "节点搜索框", +- "Pointer": "指针", +- "Queue": "队列", +- "QueueButton": "执行按钮", +- "RerouteBeta": "转接点 Beta", +- "Server": "服务器", +- "Settings": "设置", +- "Sidebar": "侧边栏", +- "Tree Explorer": "树形浏览器", +- "Validation": "验证", +- "Window": "窗口", +- "Server-Config": "服务器配置", +- "About": "关于", +- "EditTokenWeight": "编辑令牌权重", +- "CustomColorPalettes": "自定义色彩主题", +- "UV": "UV", +- "ContextMenu": "上下文菜单", +- "Reroute": "重新路由", +- "Load 3D": "加载3D", +- "Camera": "相机", +- "Scene": "场景", +- "3D": "3D", +- "Light": "光照", +- "User": "用户", +- "Credits": "积分", +- "API Nodes": "API 节点", +- "Notification Preferences": "通知偏好", +- "3DViewer": "3D查看器", +- "Canvas Navigation": "画布导航", +- "PlanCredits": "计划与积分", +- "Vue Nodes": "Nodes 2.0", +- "VueNodes": "Nodes 2.0", +- "Nodes 2_0": "Nodes 2.0", +- "Execution": "执行", +- "PLY": "PLY" ++ "groupNode": { ++ "create": "创建组节点", ++ "enterName": "输入名称" + }, +- "serverConfigItems": { +- "listen": { +- "name": "主机:要监听的IP地址" +- }, +- "port": { +- "name": "端口:要监听的端口" +- }, +- "tls-keyfile": { +- "name": "TLS 密钥文件:HTTPS 的 TLS 密钥文件路径" +- }, +- "tls-certfile": { +- "name": "TLS 证书文件:HTTPS 的 TLS 证书文件路径" +- }, +- "enable-cors-header": { +- "name": "启用 CORS header:使用 \"*\" 代表所有来源或指定域名" +- }, +- "max-upload-size": { +- "name": "最大上传大小 (MB)" +- }, +- "cuda-device": { +- "name": "要使用的 CUDA 设备索引" +- }, +- "cuda-malloc": { +- "name": "使用 CUDA malloc 进行内存分配" +- }, +- "global-precision": { +- "name": "全局浮点精度", +- "tooltip": "全局浮点精度" +- }, +- "unet-precision": { +- "name": "UNET 精度", +- "tooltip": "UNET 精度" +- }, +- "vae-precision": { +- "name": "VAE 精度", +- "tooltip": "VAE 精度" +- }, +- "cpu-vae": { +- "name": "在 CPU 上运行 VAE" +- }, +- "text-encoder-precision": { +- "name": "文本编码器精度", +- "tooltip": "文本编码器精度" +- }, +- "force-channels-last": { +- "name": "强制使用 channels-last 内存格式" +- }, +- "directml": { +- "name": "DirectML 设备索引" +- }, +- "disable-ipex-optimize": { +- "name": "禁用 IPEX 优化" +- }, +- "preview-method": { +- "name": "用于潜空间预览的方法" +- }, +- "preview-size": { +- "name": "预览图像的大小" +- }, +- "cache-classic": { +- "name": "使用经典缓存系统" +- }, +- "cache-lru": { +- "name": "使用 LRU 缓存,最多缓存 N 个节点结果。", +- "tooltip": "可能会使用更多的 RAM/VRAM。" +- }, +- "cross-attention-method": { +- "name": "交叉注意力方法" +- }, +- "disable-xformers": { +- "name": "禁用 xFormers 优化" +- }, +- "force-upcast-attention": { +- "name": "强制 upcast-attention" +- }, +- "dont-upcast-attention": { +- "name": "不使用 upcast-attention" +- }, +- "vram-management": { +- "name": "VRAM 管理模式" +- }, +- "reserve-vram": { +- "name": "保留 VRAM (GB)", +- "tooltip": "设置您希望为操作系统/其他软件保留的 VRAM (GB)。默认会根据系统类型保留一定数量。" +- }, +- "default-hashing-function": { +- "name": "模型文件的默认哈希函数" +- }, +- "disable-smart-memory": { +- "name": "禁用智能内存管理", +- "tooltip": "强制 ComfyUI 在可以时将模型从 VRAM 移出到常规 RAM。" +- }, +- "deterministic": { +- "name": "使 pytorch 在可以时使用较慢的确定性算法。", +- "tooltip": "请注意,这可能不会在所有情况下使图像具有确定性。" +- }, +- "fast": { +- "name": "启用一些未经测试且可能降低质量的优化。" +- }, +- "dont-print-server": { +- "name": "不将服务器输出打印到控制台。" +- }, +- "disable-metadata": { +- "name": "禁用在文件中保存提示元数据。" ++ "help": { ++ "helpCenterMenu": "帮助中心菜单", ++ "recentReleases": "最近发布" ++ }, ++ "helpCenter": { ++ "clickToLearnMore": "点击了解更多 →", ++ "desktopUserGuide": "桌面端用户指南", ++ "docs": "文档", ++ "feedback": "提交反馈", ++ "github": "Github", ++ "help": "帮助和支持", ++ "loadingReleases": "加载发布信息...", ++ "managerExtension": "管理扩展", ++ "more": "更多...", ++ "noRecentReleases": "没有最近的发布", ++ "openDevTools": "打开开发者工具", ++ "recentReleases": "最近发布", ++ "reinstall": "重新安装", ++ "updateAvailable": "更新", ++ "updateComfyUI": "更新 ComfyUI", ++ "updateComfyUIFailed": "更新 ComfyUI 失败,请重试。", ++ "updateComfyUIStarted": "更新开始", ++ "updateComfyUIStartedDetail": "正在更新 ComfyUI,请稍等...", ++ "updateComfyUISuccess": "更新完成", ++ "updateComfyUISuccessDetail": "ComfyUI 已更新,正在重启...", ++ "whatsNew": "新功能?" ++ }, ++ "icon": { ++ "bookmark": "书签", ++ "box": "盒子", ++ "briefcase": "公文包", ++ "exclamation-triangle": "警告", ++ "file": "文件", ++ "folder": "文件夹", ++ "heart": "心", ++ "inbox": "收件箱", ++ "star": "星星" ++ }, ++ "install": { ++ "appDataLocationTooltip": "ComfyUI 的应用数据目录。存储:\n- 日志\n- 服务器配置", ++ "appPathLocationTooltip": "ComfyUI 的应用资产目录。存储 ComfyUI 代码和资产", ++ "cannotWrite": "无法写入所选路径。", ++ "chooseInstallationLocation": "选择安装位置", ++ "customNodes": "自定义节点", ++ "customNodesDescription": "引用现有 ComfyUI 安装的自定义节点文件并安装其依赖项。", ++ "desktopAppSettings": "桌面应用设置", ++ "desktopAppSettingsDescription": "配置 ComfyUI 在桌面上的行为。您可以稍后更改这些设置。", ++ "desktopSettings": "桌面设置", ++ "failedToSelectDirectory": "选择目录失败", ++ "gpu": "GPU", ++ "gpuPicker": { ++ "appleMetalDescription": "利用您的Mac GPU以获得更快速度和更佳体验", ++ "cpuDescription": "当GPU加速不可用时,使用CPU模式以获得兼容性", ++ "cpuSubtitle": "CPU模式", ++ "manualDescription": "为高级配置或不受支持的硬件手动配置ComfyUI", ++ "manualSubtitle": "手动设置", ++ "nvidiaDescription": "使用NVIDIA GPU和CUDA加速以获得最佳性能。", ++ "nvidiaSubtitle": "NVIDIA CUDA", ++ "recommended": "推荐", ++ "title": "选择您的硬件配置" + }, +- "enable-manager-legacy-ui": { +- "name": "使用旧版管理器UI", +- "tooltip": "是用旧版 ComfyUI-Manager UI。" ++ "gpuSelection": { ++ "cpuMode": "CPU 模式", ++ "cpuModeDescription": "CPU 模式仅适用于开发者和极少数特殊情况。", ++ "cpuModeDescription2": "如果你不完全确定你需要这个,忽略该选项并在上面选择你的 GPU。", ++ "customComfyNeedsPython": "在 python 完成设置前,ComfyUI 将无法工作", ++ "customInstallRequirements": "安装所有需求和依赖项(例如:自定义 torch)", ++ "customManualVenv": "手动配置 python 虚拟环境", ++ "customMayNotWork": "完全不支持,可能无法工作", ++ "customSkipsPython": "此选项跳过正常的 python 设置。", ++ "enableCpuMode": "启用 CPU 模式", ++ "mpsDescription": "Apple Metal Performance Shaders 使用 pytorch nightly 支持。", ++ "nvidiaDescription": "NVIDIA 设备直接支持使用 pytorch CUDA 构建。", ++ "selectGpu": "选择 GPU", ++ "selectGpuDescription": "选择你拥有的 GPU 类型" + }, +- "disable-all-custom-nodes": { +- "name": "禁用加载所有自定义节点。" ++ "helpImprove": "请帮助我们改进ComfyUI", ++ "insideAppInstallDir": "该文件夹位于 ComfyUI Desktop 应用程序包中,程序更新时会删除该文件夹。选择安装文件夹之外的目录,例如 Documents/ComfyUI。", ++ "insideUpdaterCache": "该文件夹位于 ComfyUI 更新缓存中,程序更新时会清除该缓存。为您的数据选择一个不同的位置。", ++ "installLocation": "安装位置", ++ "installLocationDescription": "选择 ComfyUI 用户数据的存放目录。将安装一个 Python 环境到所选位置。请确保所选磁盘有足够的空间(约 15GB)。", ++ "installLocationTooltip": "ComfyUI 的用户数据目录。存储:\n- Python 环境\n- 模型\n- 自定义节点\n", ++ "insufficientFreeSpace": "空间不足 - 最小可用空间", ++ "isOneDrive": "在OneDrive中安装可能会导致问题。强烈建议在非OneDrive位置安装。", ++ "locationPicker": { ++ "chooseDownloadServers": "手动选择下载服务器", ++ "downloadServersDescription": "根据您的位置选择用于下载Python、PyPI包和PyTorch的特定镜像服务器。", ++ "migrateDescription": "从之前的ComfyUI安装复制或链接您的模型、自定义节点和配置。", ++ "migrateFromExisting": "从现有安装迁移", ++ "migrationPathPlaceholder": "选择已有的ComfyUI安装(可选)", ++ "pathPlaceholder": "/Users/username/Documents/ComfyUI", ++ "subtitle": "选择一个文件夹用于存放ComfyUI文件。我们也会自动在此处设置Python。", ++ "title": "选择ComfyUI的安装位置" + }, +- "log-level": { +- "name": "日志详细级别" ++ "manualConfiguration": { ++ "createVenv": "您需要在以下目录中创建虚拟环境", ++ "requirements": "依赖项", ++ "restartWhenFinished": "配置虚拟环境完成后,请重新启动ComfyUI。", ++ "title": "手动配置", ++ "virtualEnvironmentPath": "虚拟环境路径" + }, +- "input-directory": { +- "name": "输入目录" ++ "metricsDisabled": "禁用度量", ++ "metricsEnabled": "启用度量", ++ "migrateFromExistingInstallation": "从现有安装迁移", ++ "migration": "迁移", ++ "migrationOptional": "迁移是可选的。如果您之前没有安装过 ComfyUI,可以跳过此步骤。", ++ "migrationSourcePathDescription": "如果您已有现有的ComfyUI安装,我们可以复制/链接您现有的用户文件和模型到新的安装。您现有的ComfyUI安装将不会受到影响。", ++ "moreInfo": "有关更多信息,请阅读我们的", ++ "nonDefaultDrive": "请在您的系统驱动器上安装ComfyUI(例如C:\\)。具有不同文件系统的驱动器可能会导致不可预测的问题。安装后,模型和其他文件可以存储在其他驱动器上。", ++ "parentMissing": "路径不存在 - 请先创建包含该路径的目录", ++ "pathExists": "目录已存在 - 请确保您已备份全部数据", ++ "pathValidationFailed": "路径验证失败", ++ "privacyPolicy": "隐私政策", ++ "selectItemsToMigrate": "选择要迁移的项目", ++ "settings": { ++ "allowMetrics": "使用情况指标", ++ "allowMetricsDescription": "通过发送匿名使用情况指标来帮助改进ComfyUI。不会收集任何个人信息或工作流内容。", ++ "autoUpdate": "自动更新", ++ "autoUpdateDescription": "更新可用时自动更新。您将在安装更新之前收到通知。", ++ "checkingMirrors": "正在检查到Python镜像的网络访问...", ++ "dataCollectionDialog": { ++ "collect": { ++ "errorReports": "错误报告和堆栈跟踪", ++ "systemInfo": "硬件,操作系统类型和应用版本", ++ "userJourneyEvents": "用户旅程事件" ++ }, ++ "doNotCollect": { ++ "customNodeConfigurations": "自定义节点配置", ++ "fileSystemInformation": "文件系统信息", ++ "personalInformation": "个人信息", ++ "workflowContents": "工作流内容" ++ }, ++ "title": "关于数据收集", ++ "viewFullPolicy": "查看完整政策", ++ "whatWeCollect": "我们收集的内容:", ++ "whatWeDoNotCollect": "我们不收集的内容:" ++ }, ++ "errorUpdatingConsent": "更新同意错误", ++ "errorUpdatingConsentDetail": "无法更新度量同意设置", ++ "learnMoreAboutData": "了解更多关于数据收集的信息", ++ "mirrorSettings": "镜像设置", ++ "mirrorsReachable": "到Python镜像的网络访问良好", ++ "mirrorsUnreachable": "对某些python镜像的网络访问不佳", ++ "pypiMirrorPlaceholder": "输入PyPI镜像URL", ++ "pythonMirrorPlaceholder": "输入Python镜像URL" + }, +- "output-directory": { +- "name": "输出目录" +- } ++ "systemLocations": "系统位置", ++ "unhandledError": "未知错误", ++ "updateConsent": "您之前选择了报告崩溃。我们现在正在跟踪基于事件的度量,以帮助识别错误并改进应用程序。我们不收集任何个人可识别信息。" + }, +- "serverConfigCategories": { +- "Attention": "注意力", +- "CUDA": "CUDA", +- "Cache": "缓存", +- "Directories": "目录", +- "General": "常规", +- "Inference": "推理", +- "Memory": "内存", +- "Network": "网络", +- "Preview": "预览" ++ "issueReport": { ++ "helpFix": "帮助修复这个" + }, +- "nodeCategories": { +- "_for_testing": "_用于测试", +- "custom_sampling": "自定义采样", +- "noise": "噪波", +- "dataset": "dataset", +- "text": "文本", +- "image": "图像", +- "sampling": "采样", +- "schedulers": "调度器", +- "audio": "音频", +- "conditioning": "条件", +- "loaders": "加载器", +- "guiders": "引导器", +- "api node": "api 节点", +- "video": "视频", +- "ByteDance": "字节跳动", +- "preprocessors": "预处理器", +- "utils": "工具", +- "string": "字符串", +- "advanced": "高级", +- "guidance": "引导", +- "model_merging": "模型合并", +- "model_patches": "模型微调", +- "chroma_radiance": "chroma_radiance", +- "attention_experiments": "注意力实验", +- "flux": "Flux", +- "kandinsky5": "kandinsky5", +- "hooks": "约束", +- "combine": "组合", +- "cond single": "条件单", +- "context": "上下文", +- "controlnet": "ControlNet", +- "inpaint": "局部重绘", +- "scheduling": "调度", +- "create": "创建", +- "mask": "遮罩", +- "deprecated": "已弃用", +- "debug": "调试", ++ "linearMode": { ++ "openWorkflow": "打开工作流", ++ "share": "分享" ++ }, ++ "load3d": { ++ "applyingTexture": "应用纹理中...", ++ "backgroundColor": "背景颜色", ++ "camera": "摄影机", ++ "cameraType": { ++ "orthographic": "正交", ++ "perspective": "透视" ++ }, ++ "clearRecording": "清除录制", ++ "dropToLoad": "拖放 3D 模型以加载", ++ "edgeThreshold": "边缘阈值", ++ "export": "导出", ++ "exportModel": "导出模型", ++ "exportRecording": "导出录制", ++ "exportingModel": "正在导出模型...", ++ "fov": "视场", ++ "light": "灯光", ++ "lightIntensity": "光照强度", ++ "loadingBackgroundImage": "正在加载背景图像", ++ "loadingModel": "正在加载3D模型...", ++ "materialMode": "材质模式", ++ "materialModes": { ++ "depth": "深度", ++ "lineart": "线稿", ++ "normal": "法线", ++ "original": "原始", ++ "pointCloud": "点云", ++ "wireframe": "线框" ++ }, + "model": "模型", +- "latent": "Latent", +- "3d": "3d", +- "ltxv": "LTXV", +- "qwen": "Qwen千问", +- "sd3": "SD3", +- "unet": "U-Net", +- "sigmas": "Sigmas", +- "BFL": "BFL", +- "Gemini": "Gemini", +- "video_models": "视频模型", +- "gligen": "GLIGEN", +- "sd": "sd", +- "Ideogram": "Ideogram", +- "postprocessing": "后处理", +- "transform": "变换", +- "batch": "批处理", +- "upscaling": "放大", +- "instructpix2pix": "InstructPix2Pix", +- "compositing": "合成", +- "Kling": "Kling", +- "samplers": "采样器", +- "operations": "操作", +- "training": "训练", +- "lotus": "lotus", +- "LTXV": "LTXV", +- "Luma": "Luma", +- "MiniMax": "MiniMax", +- "model_specific": "模型特定", +- "Moonvalley Marey": "Moonvalley Marey", +- "OpenAI": "OpenAI", +- "Sora": "Sora", +- "cond pair": "条件对", +- "photomaker": "PhotoMaker", +- "PixVerse": "PixVerse", +- "primitive": "基础", +- "Recraft": "Recraft", +- "edit_models": "编辑模型", +- "Rodin": "Rodin", +- "Runway": "Runway", +- "animation": "动画", +- "api": "API", +- "save": "保存", +- "upscale_diffusion": "放大扩散", +- "clip": "CLIP", +- "Stability AI": "Stability AI", +- "stable_cascade": "StableCascade", +- "3d_models": "3D模型", +- "style_model": "风格模型", +- "Topaz": "Topaz", +- "Tripo": "Tripo", +- "Veo": "Veo", +- "Vidu": "Vidu", +- "": "", +- "camera": "相机", +- "Wan": "Wan万相", +- "zimage": "zimage" ++ "openIn3DViewer": "在 3D 查看器中打开", ++ "panoramaMode": "全景", ++ "previewOutput": "预览输出", ++ "reloadingModel": "正在重新加载模型...", ++ "removeBackgroundImage": "移除背景图片", ++ "resizeNodeMatchOutput": "调整节点以匹配输出", ++ "scene": "场景", ++ "showGrid": "显示网格", ++ "startRecording": "开始录制", ++ "stopRecording": "停止录制", ++ "switchCamera": "切换摄影机类型", ++ "switchingMaterialMode": "切换材质模式中...", ++ "tiledMode": "分快", ++ "unsupportedFileType": "不支持的文件类型(支持 .gltf、.glb、.obj、.fbx、.stl)", ++ "upDirection": "上方向", ++ "upDirections": { ++ "original": "原始" ++ }, ++ "uploadBackgroundImage": "上传背景图片", ++ "uploadTexture": "上传纹理", ++ "uploadingModel": "正在上传3D模型...", ++ "viewer": { ++ "apply": "应用", ++ "cameraSettings": "相机设置", ++ "cameraType": "相机类型", ++ "cancel": "取消", ++ "exportSettings": "导出设置", ++ "lightSettings": "灯光设置", ++ "modelSettings": "模型设置", ++ "sceneSettings": "场景设置", ++ "title": "3D 查看器(测试版)" ++ } + }, +- "dataTypes": { +- "*": "*", +- "AUDIO": "音频", +- "AUDIO_ENCODER": "音频编码器", +- "AUDIO_ENCODER_OUTPUT": "音频编码器输出", +- "AUDIO_RECORD": "音频录制", +- "BOOLEAN": "布尔", +- "CAMERA_CONTROL": "相机控制", +- "CLIP": "CLIP", +- "CLIP_VISION": "CLIP视觉", +- "CLIP_VISION_OUTPUT": "CLIP视觉输出", +- "COMBO": "组合", +- "CONDITIONING": "条件", +- "CONTROL_NET": "ControlNet", +- "FLOAT": "浮点", +- "FLOATS": "浮点组", +- "GEMINI_INPUT_FILES": "GEMINI 输入文件", +- "GLIGEN": "GLIGEN", +- "GUIDER": "引导器", +- "HOOK_KEYFRAMES": "约束关键帧", +- "HOOKS": "约束", +- "IMAGE": "图像", +- "INT": "整数", +- "LATENT": "Latent", +- "LATENT_OPERATION": "Latent操作", +- "LATENT_UPSCALE_MODEL": "LATENT_UPSCALE_MODEL", +- "LOAD_3D": "加载3D", +- "LOAD3D_CAMERA": "加载3D相机", +- "LORA_MODEL": "LORA模型", +- "LOSS_MAP": "损失图", +- "LUMA_CONCEPTS": "Luma 概念", +- "LUMA_REF": "Luma 参考", +- "MASK": "遮罩", +- "MESH": "网格", +- "MODEL": "模型", +- "MODEL_PATCH": "模型补丁", +- "MODEL_TASK_ID": "模型任务ID", +- "NOISE": "噪波", +- "OPENAI_CHAT_CONFIG": "OpenAI对话文件", +- "OPENAI_INPUT_FILES": "OpenAI输入文件", +- "PHOTOMAKER": "PhotoMaker", +- "PIXVERSE_TEMPLATE": "Pixverse 模板", +- "RECRAFT_COLOR": "Recraft 颜色", +- "RECRAFT_CONTROLS": "Recraft 控件", +- "RECRAFT_V3_STYLE": "Recraft V3 风格", +- "RETARGET_TASK_ID": "重定向任务ID", +- "RIG_TASK_ID": "RIG_TASK_ID", +- "SAMPLER": "采样器", +- "SIGMAS": "Sigmas", +- "STRING": "字符串", +- "STYLE_MODEL": "风格模型", +- "SVG": "SVG", +- "TIMESTEPS_RANGE": "时间间隔范围", +- "TRACKS": "TRACKS", +- "UPSCALE_MODEL": "放大模型", +- "VAE": "VAE", +- "VIDEO": "视频", +- "VOXEL": "体素", +- "WAN_CAMERA_EMBEDDING": "WAN 摄像头嵌入", +- "WEBCAM": "摄像头" ++ "loadWorkflowWarning": { ++ "coreNodesFromVersion": "核心节点来源于 {version} 版本。", ++ "outdatedVersion": "这个工作流由新版 ComfyUI({version})创建,部分节点可能无法正常运行。", ++ "outdatedVersionGeneric": "这个工作流由新版 ComfyUI 创建,部分节点可能无法正常运行。" + }, + "maintenance": { + "None": "无", +@@ -1559,462 +1155,575 @@ + "updaterCache": "您当前的 ComfyUI 基本路径位于 ComfyUI 更新缓存中,程序更新时会清除该缓存。为您的数据选择一个不同的位置。" + } + }, +- "missingModelsDialog": { +- "doNotAskAgain": "不再显示此消息", +- "missingModels": "缺少模型", +- "missingModelsMessage": "加载工作流时,未找到以下模型" +- }, +- "versionMismatchWarning": { +- "dismiss": "关闭", +- "frontendNewer": "前端版本 {frontendVersion} 可能与后端版本 {backendVersion} 不相容。", +- "frontendOutdated": "前端版本 {frontendVersion} 已过时。后端需要 {requiredVersion} 版或更高版本。", +- "title": "版本相容性警告", +- "updateFrontend": "更新前端" +- }, +- "loadWorkflowWarning": { +- "coreNodesFromVersion": "核心节点来源于 {version} 版本。", +- "outdatedVersion": "这个工作流由新版 ComfyUI({version})创建,部分节点可能无法正常运行。", +- "outdatedVersionGeneric": "这个工作流由新版 ComfyUI 创建,部分节点可能无法正常运行。" +- }, +- "errorDialog": { +- "defaultTitle": "发生错误", +- "extensionFileHint": "这可能是由于以下脚本", +- "loadWorkflowTitle": "由于重新加载工作流数据出错,加载被中止", +- "noStackTrace": "无可用堆栈跟踪", +- "promptExecutionError": "提示执行失败" +- }, +- "apiNodesSignInDialog": { +- "message": "此工作流包含API节点,需要您登录账户才能运行。", +- "title": "使用API节点需要登录" +- }, +- "apiNodesCostBreakdown": { +- "costPerRun": "每次运行的成本", +- "title": "API节点", +- "totalCost": "总成本" +- }, +- "desktopUpdate": { +- "description": "ComfyUI桌面正在安装新的依赖项。这可能需要几分钟的时间。", +- "errorCheckingUpdate": "检查更新时出错", +- "errorInstallingUpdate": "安装更新时出错", +- "noUpdateFound": "未发现更新", +- "terminalDefaultMessage": "更新过程中的任何控制台输出都将在这里显示。", +- "title": "正在更新ComfyUI桌面", +- "updateAvailableMessage": "有可用的更新。您现在要重启并更新吗?", +- "updateFoundTitle": "找到更新 (v{version})" ++ "manager": { ++ "allMissingNodesInstalled": "所有缺失节点已成功安装", ++ "applyChanges": "应用更改", ++ "changingVersion": "将版本从 {from} 更改为 {to}", ++ "clickToFinishSetup": "点击", ++ "conflicts": { ++ "conflictInfoTitle": "为什么会发生这种情况?", ++ "conflictMessages": { ++ "accelerator": "GPU/加速器不受支持(可用:{current},要求:{required})", ++ "banned": "该软件包因安全原因被禁用", ++ "comfyui_version": "ComfyUI 版本不匹配(当前:{current},要求:{required})", ++ "frontend_version": "前端版本不匹配(当前:{current},要求:{required})", ++ "generic": "兼容性问题(当前:{current},要求:{required})", ++ "import_failed": "导入失败", ++ "os": "操作系统不受支持(当前:{current},要求:{required})", ++ "pending": "安全验证待定 - 无法验证兼容性" ++ }, ++ "conflicts": "冲突", ++ "description": "我们检测到您的部分扩展与新版 ComfyUI 存在冲突。更新后,依赖这些扩展的工作流可能会被破坏。", ++ "enableAnyway": "仍然启用", ++ "extensionAtRisk": "有风险的扩展", ++ "importFailedExtensions": "导入失败的扩展", ++ "info": "如果继续更新,冲突的扩展将被自动禁用。您可以随时在 ComfyUI 管理器中查看和管理它们。", ++ "installAnyway": "仍然安装", ++ "title": "检测到节点包问题!", ++ "understood": "我已了解", ++ "warningBanner": { ++ "button": "了解更多...", ++ "message": "这些扩展需要与您当前环境不同版本的系统包。安装它们可能会覆盖核心依赖,并影响其他扩展或工作流。", ++ "title": "部分扩展因与当前环境不兼容而被禁用" ++ }, ++ "warningTooltip": "该软件包可能与您当前的环境存在兼容性问题" ++ }, ++ "createdBy": "创建者", ++ "dependencies": "依赖关系", ++ "disabledNodesWontUpdate": "已禁用的节点不会被更新", ++ "discoverCommunityContent": "发现社区制作的节点包,扩展等等...", ++ "downloads": "下载", ++ "enablePackToChangeVersion": "启用此包以更改版本", ++ "errorConnecting": "连接到Comfy节点注册表时出错。", ++ "extensionsSuccessfullyInstalled": "扩展已成功安装并可使用!", ++ "failed": "失败 ({count})", ++ "failedToInstall": "安装失败", ++ "filter": { ++ "disabled": "已禁用", ++ "enabled": "已启用", ++ "nodePack": "节点包" ++ }, ++ "gettingInfo": "正在获取信息...", ++ "importFailedGenericError": "软件包导入失败。请查看控制台获取更多信息。", ++ "inWorkflow": "在工作流中", ++ "infoPanelEmpty": "点击一个项目查看信息", ++ "installAllMissingNodes": "安装所有缺失节点", ++ "installError": "安装错误", ++ "installSelected": "安装选定", ++ "installationQueue": "安装队列", ++ "installingDependencies": "正在安装依赖项...", ++ "lastUpdated": "最后更新", ++ "latestVersion": "最新", ++ "legacyManagerUI": "使用传统界面", ++ "legacyManagerUIDescription": "如需使用传统管理器界面,请以 --enable-manager-legacy-ui 参数启动 ComfyUI", ++ "legacyMenuNotAvailable": "传统管理器菜单不可用,已切换为新管理器菜单。", ++ "license": "许可证", ++ "loadingVersions": "正在加载版本...", ++ "mixedSelectionMessage": "无法对混合选择执行批量操作", ++ "nightlyVersion": "每夜", ++ "noDescription": "无可用描述", ++ "noNodesFound": "未找到节点", ++ "noNodesFoundDescription": "无法解析包的节点,或者该包仅为前端扩展,没有任何节点。", ++ "noResultsFound": "未找到符合您搜索的结果。", ++ "nodePack": "节点包", ++ "notAvailable": "不可用", ++ "packsSelected": "选定的包", ++ "repository": "仓库", ++ "restartToApplyChanges": "要应用更改,请重新启动ComfyUI", ++ "restartingBackend": "正在重启后端以应用更改...", ++ "searchPlaceholder": "搜索", ++ "selectVersion": "选择版本", ++ "sort": { ++ "created": "最新", ++ "downloads": "最受欢迎", ++ "publisher": "出版商", ++ "updated": "最近更新" ++ }, ++ "status": { ++ "active": "活跃", ++ "banned": "已禁止", ++ "conflicting": "冲突", ++ "deleted": "已删除", ++ "flagged": "已标记", ++ "importFailed": "安装错误", ++ "pending": "待定", ++ "unknown": "未知" ++ }, ++ "title": "自定义节点管理器", ++ "toFinishSetup": "以完成设置", ++ "totalNodes": "节点总数", ++ "tryAgainLater": "请稍后再试。", ++ "tryDifferentSearch": "请尝试不同的搜索查询。", ++ "tryUpdate": "尝试更新", ++ "tryUpdateTooltip": "从库中拉取更新。测试版本可能有无法自动检测到更新。", ++ "uninstall": "卸载", ++ "uninstallSelected": "卸载所选", ++ "uninstalling": "正在卸载", ++ "update": "更新", ++ "updateAll": "全部更新", ++ "updateSelected": "更新所选", ++ "updatingAllPacks": "更新所有包", ++ "version": "版本" + }, +- "clipboard": { +- "errorMessage": "复制到剪贴板失败", +- "errorNotSupported": "您的浏览器不支持剪贴板API", +- "successMessage": "已复制到剪贴板" ++ "maskEditor": { ++ "activateLayer": "活跃层", ++ "applyToWholeImage": "应用到图像整体", ++ "baseImageLayer": "基础图像层", ++ "baseLayerPreview": "基础图像层预览", ++ "black": "黑", ++ "brushSettings": "笔刷设置", ++ "brushShape": "笔刷形状", ++ "clear": "清除", ++ "clickToResetZoom": "点击重置缩放", ++ "colorSelectSettings": "色彩选取设置", ++ "colorSelector": "色彩选取", ++ "fillOpacity": "填充不透明度", ++ "hardness": "硬度", ++ "imageLayer": "图像层", ++ "invert": "反转", ++ "layers": "图层", ++ "livePreview": "实时预览", ++ "maskBlendingOptions": "遮罩混合设置", ++ "maskLayer": "遮罩层", ++ "maskOpacity": "遮罩不透明度", ++ "maskTolerance": "遮罩阈值", ++ "method": "方法", ++ "negative": "负面", ++ "opacity": "不透明度", ++ "paintBucketSettings": "填充设置", ++ "paintLayer": "绘画层", ++ "redo": "重做", ++ "resetToDefault": "重置为默认", ++ "selectionOpacity": "选取不透明度", ++ "smoothingPrecision": "预测平滑", ++ "stepSize": "间距", ++ "stopAtMask": "遇到遮罩时停止", ++ "thickness": "厚度", ++ "title": "遮罩编辑器", ++ "tolerance": "阈值", ++ "undo": "撤回", ++ "white": "白" + }, +- "load3d": { +- "switchCamera": "切换摄影机类型", +- "showGrid": "显示网格", +- "backgroundColor": "背景颜色", +- "lightIntensity": "光照强度", +- "fov": "视场", +- "previewOutput": "预览输出", +- "uploadBackgroundImage": "上传背景图片", +- "removeBackgroundImage": "移除背景图片", +- "tiledMode": "分快", +- "panoramaMode": "全景", +- "loadingModel": "正在加载3D模型...", +- "upDirection": "上方向", +- "materialMode": "材质模式", +- "scene": "场景", +- "model": "模型", +- "camera": "摄影机", +- "light": "灯光", +- "switchingMaterialMode": "切换材质模式中...", +- "edgeThreshold": "边缘阈值", +- "export": "导出", +- "exportModel": "导出模型", +- "exportingModel": "正在导出模型...", +- "reloadingModel": "正在重新加载模型...", +- "uploadTexture": "上传纹理", +- "applyingTexture": "应用纹理中...", +- "materialModes": { +- "depth": "深度", +- "lineart": "线稿", +- "normal": "法线", +- "original": "原始", +- "pointCloud": "点云", +- "wireframe": "线框" +- }, +- "upDirections": { +- "original": "原始" ++ "mediaAsset": { ++ "actions": { ++ "addToWorkflow": "添加到当前工作流", ++ "copyJobId": "复制任务ID", ++ "delete": "删除", ++ "download": "下载", ++ "exportWorkflow": "导出工作流", ++ "inspect": "查看资产", ++ "more": "更多设置", ++ "openWorkflow": "在新标签页中读取工作流", ++ "seeMoreOutputs": "查看更多输出" + }, +- "startRecording": "开始录制", +- "stopRecording": "停止录制", +- "exportRecording": "导出录制", +- "clearRecording": "清除录制", +- "resizeNodeMatchOutput": "调整节点以匹配输出", +- "loadingBackgroundImage": "正在加载背景图像", +- "cameraType": { +- "orthographic": "正交", +- "perspective": "透视" ++ "assetDeletedSuccessfully": "资产删除成功", ++ "deleteAssetDescription": "此资产将被永久删除。", ++ "deleteAssetTitle": "删除此资产?", ++ "deleteSelectedDescription": "{count} 项资产将被永久删除。", ++ "deleteSelectedTitle": "删除所选资产?", ++ "deletingImportedFilesCloudOnly": "删除导入文件仅支持云版本", ++ "failedToCreateNode": "创建节点失败", ++ "failedToDeleteAsset": "删除资产失败", ++ "failedToExportWorkflow": "工作流导出失败", ++ "jobIdToast": { ++ "copied": "已复制", ++ "error": "错误", ++ "jobIdCopied": "任务 ID 已复制到剪贴板", ++ "jobIdCopyFailed": "复制队列 ID 失败" + }, +- "viewer": { +- "apply": "应用", +- "cameraSettings": "相机设置", +- "cameraType": "相机类型", +- "cancel": "取消", +- "exportSettings": "导出设置", +- "lightSettings": "灯光设置", +- "modelSettings": "模型设置", +- "sceneSettings": "场景设置", +- "title": "3D 查看器(测试版)" ++ "noJobIdFound": "该资产不包含任务ID", ++ "noWorkflowDataFound": "该资产不包含工作流数据", ++ "nodeAddedToWorkflow": "{nodeType} 节点已添加到工作流", ++ "nodeTypeNotFound": "节点类型 {nodeType} 不存在", ++ "selection": { ++ "assetsDeletedSuccessfully": "已成功删除 {count} 个资产", ++ "deleteSelected": "删除", ++ "deselectAll": "取消全选", ++ "downloadSelected": "下载", ++ "downloadStarted": "正在下载 {count} 个文件...", ++ "downloadsStarted": "开始下载 {count} 个文件", ++ "failedToDeleteAssets": "未能删除所选资产", ++ "partialDeleteSuccess": "{succeeded} 删除成功, {failed} 失败", ++ "selectedCount": "已选择资产:{count}" + }, +- "openIn3DViewer": "在 3D 查看器中打开", +- "dropToLoad": "拖放 3D 模型以加载", +- "unsupportedFileType": "不支持的文件类型(支持 .gltf、.glb、.obj、.fbx、.stl)", +- "uploadingModel": "正在上传3D模型..." ++ "unsupportedFileType": "加载节点不支持该类型文件", ++ "workflowExportedSuccessfully": "工作流导出成功!", ++ "workflowOpenedInNewTab": "工作流已在新标签页中打开" + }, +- "toastMessages": { +- "nothingToQueue": "没有可加入队列的内容", +- "pleaseSelectOutputNodes": "请选择输出节点", +- "failedToQueue": "排队失败", +- "failedExecutionPathResolution": "无法解析所选节点的路径", +- "no3dScene": "没有3D场景可以应用纹理", +- "failedToApplyTexture": "应用纹理失败", +- "no3dSceneToExport": "没有3D场景可以导出", +- "failedToExportModel": "无法将模型导出为 {format}", +- "exportSuccess": "成功将模型导出为 {format}", +- "fileLoadError": "无法在 {fileName} 中找到工作流", +- "dropFileError": "无法处理掉落的项目:{error}", +- "interrupted": "执行已被中断", +- "pendingTasksDeleted": "待处理任务已删除", +- "nothingToGroup": "没有可分组的内容", +- "pleaseSelectNodesToGroup": "请选取节点(或其他组)以创建分组", +- "emptyCanvas": "画布为空", +- "fileUploadFailed": "文件上传失败", +- "unableToGetModelFilePath": "无法获取模型文件路径", +- "couldNotDetermineFileType": "无法确定文件类型", +- "errorLoadingModel": "加载模型出错", +- "failedToDownloadFile": "文件下载失败", +- "updateRequested": "已请求更新", +- "nodeDefinitionsUpdated": "节点定义已更新", +- "errorSaveSetting": "保存设置 {id} 出错:{err}", +- "errorCopyImage": "复制图片出错:{error}", +- "noTemplatesToExport": "没有模板可以导出", +- "failedToFetchLogs": "无法获取服务器日志", +- "migrateToLitegraphReroute": "将来的版本中将删除重定向节点。点击以迁移到litegraph-native重定向。", +- "legacyMaskEditorDeprecated": "旧版遮罩编辑器已弃用,即将删除。", +- "userNotAuthenticated": "用户未认证", +- "failedToFetchBalance": "获取余额失败:{error}", +- "failedToCreateCustomer": "创建客户失败:{error}", +- "failedToInitiateCreditPurchase": "发起积分购买失败:{error}", +- "failedToAccessBillingPortal": "访问账单门户失败:{error}", +- "failedToPurchaseCredits": "购买积分失败:{error}", +- "failedToFetchSubscription": "获取订阅状态失败:{error}", +- "failedToInitiateSubscription": "订阅启动失败:{error}", +- "unauthorizedDomain": "您的域名 {domain} 未被授权使用此服务。请联系 {email} 将您的域名添加到白名单。", +- "useApiKeyTip": "提示:无法正常登录?请使用 Comfy API Key 选项。", +- "nothingSelected": "未选择任何内容", +- "cannotCreateSubgraph": "无法创建子工作流", +- "failedToConvertToSubgraph": "无法将项目转换为子工作流", +- "failedToInitializeLoad3dViewer": "初始化3D查看器失败", +- "failedToLoadBackgroundImage": "无法加载背景图片", +- "failedToLoadModel": "无法加载3D模型", +- "modelLoadedSuccessfully": "3D模型加载成功", +- "failedToUpdateBackgroundColor": "更新背景色失败", +- "failedToToggleGrid": "切换网格失败", +- "failedToToggleCamera": "切换镜头失败", +- "failedToUpdateFOV": "更新FOV失败", +- "failedToUpdateLightIntensity": "更新光照强度失败", +- "failedToUpdateBackgroundImage": "更新背景图像失败", +- "failedToUpdateUpDirection": "更新向上轴失败", +- "failedToUpdateMaterialMode": "更新材质模式失败", +- "failedToUpdateEdgeThreshold": "更新边缘阈值失败", +- "failedToUploadBackgroundImage": "上传背景图像失败", +- "failedToUpdateBackgroundRenderMode": "切换背景模式到 {mode} 失败" ++ "menu": { ++ "autoQueue": "自动执行", ++ "batchCount": "批次数量", ++ "batchCountTooltip": "工作流生成次数", ++ "clear": "清空工作流", ++ "clipspace": "打开剪贴板", ++ "customNodesManager": "自定义节点管理器", ++ "dark": "深色", ++ "disabled": "禁用", ++ "disabledTooltip": "工作流将不会自动执行", ++ "execute": "执行", ++ "help": "说明", ++ "hideMenu": "隐藏菜单", ++ "instant": "实时", ++ "instantTooltip": "工作流将会在生成完成后立即执行", ++ "interrupt": "取消当前任务", ++ "light": "淺色", ++ "manageExtensions": "管理扩展功能", ++ "onChange": "更改时", ++ "onChangeTooltip": "一旦进行更改,工作流将添加到执行队列", ++ "queue": "队列面板", ++ "refresh": "刷新节点", ++ "resetView": "重置视图", ++ "run": "运行", ++ "runWorkflow": "运行工作流(Shift排在前面)", ++ "runWorkflowDisabled": "工作流包含不支持的节点(已用红色突出显示)。删除这些节点以运行工作流。", ++ "runWorkflowFront": "运行工作流(排在前面)", ++ "settings": "设定", ++ "showMenu": "显示菜单", ++ "theme": "主题", ++ "toggleBottomPanel": "底部面板" ++ }, ++ "menuLabels": { ++ "About ComfyUI": "关于ComfyUI", ++ "Assets": "资产", ++ "Bottom Panel": "底部面板", ++ "Browse Templates": "浏览模板", ++ "Bypass/Unbypass Selected Nodes": "忽略/取消忽略选定节点", ++ "Canvas Performance": "画布性能", ++ "Canvas Toggle Lock": "切换视图锁定", ++ "Check for Custom Node Updates": "检查自定义节点更新", ++ "Check for Updates": "检查更新", ++ "Clear Pending Tasks": "清除待处理任务", ++ "Clear Workflow": "清除工作流", ++ "Clipspace": "剪贴空间", ++ "Close Current Workflow": "关闭当前工作流", ++ "Collapse/Expand Selected Nodes": "折叠/展开选定节点", ++ "Comfy-Org Discord": "Comfy-Org Discord", ++ "ComfyUI Docs": "ComfyUI 文档", ++ "ComfyUI Forum": "ComfyUI 论坛", ++ "ComfyUI Issues": "ComfyUI 问题", ++ "Contact Support": "联系支持", ++ "Convert Selection to Subgraph": "将选中内容转换为子工作流", ++ "Convert selected nodes to group node": "将选中节点转换为组节点", ++ "Custom Nodes (Legacy)": "自定义节点(旧版)", ++ "Custom Nodes Manager": "自定义节点管理器", ++ "Decrease Brush Size in MaskEditor": "在 MaskEditor 中减小笔刷大小", ++ "Delete Selected Items": "删除选定的项目", ++ "Desktop User Guide": "桌面端用户手册", ++ "Duplicate Current Workflow": "复制当前工作流", ++ "Edit": "编辑", ++ "Edit Subgraph Widgets": "编辑子工作流组件", ++ "Exit Subgraph": "退出子工作流", ++ "Experimental: Browse Model Assets": "实验性:浏览模型资产", ++ "Experimental: Enable AssetAPI": "实验性:启用 AssetAPI", ++ "Experimental: Enable Nodes 2_0": "实验性:启用 Nodes 2.0", ++ "Export": "导出", ++ "Export (API)": "导出 (API)", ++ "File": "文件", ++ "Fit Group To Contents": "适应组内容", ++ "Focus Mode": "专注模式", ++ "Group Selected Nodes": "将选中节点转换为组节点", ++ "Help": "帮助", ++ "Help Center": "帮助中心", ++ "Increase Brush Size in MaskEditor": "在 MaskEditor 中增大笔刷大小", ++ "Install Missing Custom Nodes": "安装缺失的自定义节点", ++ "Interrupt": "中断", ++ "Load Default Workflow": "加载默认工作流", ++ "Lock Canvas": "锁定画布", ++ "Manage group nodes": "管理组节点", ++ "Manager": "管理器", ++ "Manager Menu (Legacy)": "管理菜单(旧版)", ++ "Minimap": "小地图", ++ "Model Library": "模型库", ++ "Move Selected Nodes Down": "下移所选节点", ++ "Move Selected Nodes Left": "左移所选节点", ++ "Move Selected Nodes Right": "右移所选节点", ++ "Move Selected Nodes Up": "上移所选节点", ++ "Mute/Unmute Selected Nodes": "静音/取消静音选定节点", ++ "New": "新建", ++ "Next Opened Workflow": "下一个打开的工作流", ++ "Node Library": "节点库", ++ "Node Links": "节点连接", ++ "Open": "打开", ++ "Open 3D Viewer (Beta) for Selected Node": "为选中节点打开3D查看器(测试版)", ++ "Open Custom Nodes Folder": "打开自定义节点文件夹", ++ "Open DevTools": "打开开发者工具", ++ "Open Inputs Folder": "打开输入文件夹", ++ "Open Logs Folder": "打开日志文件夹", ++ "Open Mask Editor for Selected Node": "为选中节点打开 Mask 编辑器", ++ "Open Models Folder": "打开模型文件夹", ++ "Open Outputs Folder": "打开输出文件夹", ++ "Open Sign In Dialog": "打开登录对话框", ++ "Open extra_model_paths_yaml": "打开 extra_model_paths.yaml", ++ "Pin/Unpin Selected Items": "固定/取消固定选定项目", ++ "Pin/Unpin Selected Nodes": "固定/取消固定选定节点", ++ "Previous Opened Workflow": "上一个打开的工作流", ++ "Publish": "发布", ++ "Queue Prompt": "执行提示词", ++ "Queue Prompt (Front)": "执行提示词 (优先执行)", ++ "Queue Selected Output Nodes": "将所选输出节点加入队列", ++ "Quit": "退出", ++ "Redo": "重做", ++ "Refresh Node Definitions": "刷新节点定义", ++ "Reinstall": "重装", ++ "Reset View": "重置视图", ++ "Resize Selected Nodes": "调整选定节点的大小", ++ "Restart": "重启", ++ "Save": "保存", ++ "Save As": "另存为", ++ "Show Keybindings Dialog": "显示快捷键对话框", ++ "Show Model Selector (Dev)": "显示模型选择器(开发用)", ++ "Show Settings Dialog": "显示设置对话框", ++ "Sign Out": "退出登录", ++ "Toggle Essential Bottom Panel": "切换基础底部面板", ++ "Toggle Logs Bottom Panel": "切换日志底部面板", ++ "Toggle Search Box": "切换搜索框", ++ "Toggle Terminal Bottom Panel": "切换终端底部面板", ++ "Toggle Theme (Dark/Light)": "切换主题(暗/亮)", ++ "Toggle View Controls Bottom Panel": "切换视图控制底部面板", ++ "Toggle promotion of hovered widget": "切换悬停小部件的提升", ++ "Toggle the Custom Nodes Manager Progress Bar": "切换自定义节点管理器进度条", ++ "Undo": "撤销", ++ "Ungroup selected group nodes": "解散选中组节点", ++ "Unload Models": "卸载模型", ++ "Unload Models and Execution Cache": "卸载模型和执行缓存", ++ "Unlock Canvas": "解除锁定画布", ++ "Unpack the selected Subgraph": "解包选中子工作流", ++ "View": "视图", ++ "Workflows": "工作流", ++ "Zoom In": "放大画面", ++ "Zoom Out": "缩小画面", ++ "Zoom to fit": "缩放以适应", ++ "toggle linear mode": "切换线性模式" + }, +- "nodeErrors": { +- "content": "节点内容错误", +- "header": "节点头错误", +- "render": "节点渲染错误", +- "slots": "节点接口错误", +- "widgets": "节点组件错误" ++ "minimap": { ++ "nodeColors": "节点颜色", ++ "renderBypassState": "渲染绕过状态", ++ "renderErrorState": "渲染错误状态", ++ "showGroups": "显示框架/分组", ++ "showLinks": "显示连接" + }, +- "auth": { +- "apiKey": { +- "cleared": "API 密钥已清除", +- "clearedDetail": "您的 API 密钥已成功清除", +- "description": "使用您的 Comfy API 密钥以启用 API 节点", +- "error": "无效的 API 密钥", +- "generateKey": "在这里获取", +- "helpText": "需要 API 密钥?", +- "invalid": "无效的 API 密钥", +- "invalidDetail": "请输入有效的 API 密钥", +- "label": "API 密钥", +- "placeholder": "请输入您的 API 密钥", +- "storageFailed": "API 密钥存储失败", +- "storageFailedDetail": "请重试。", +- "stored": "API 密钥已存储", +- "storedDetail": "您的 API 密钥已成功存储", +- "title": "API 密钥", +- "whitelistInfo": "关于非白名单网站" +- }, +- "deleteAccount": { +- "cancel": "取消", +- "confirm": "删除账户", +- "confirmMessage": "您确定要删除您的账户吗?此操作无法撤销,并且会永久删除您的所有数据。", +- "confirmTitle": "删除账户", +- "deleteAccount": "删除账户", +- "success": "账户已删除", +- "successDetail": "您的账户已成功删除。" +- }, +- "errors": { +- "auth/cancelled-popup-request": "登录已取消。请重试。", +- "auth/email-already-in-use": "已存在使用此电子邮件的账户。请尝试登录。", +- "auth/invalid-credential": "登录凭据无效。请检查您的邮箱和密码。", +- "auth/invalid-email": "请输入有效的电子邮件地址。", +- "auth/network-request-failed": "网络错误。请检查您的连接并重试。", +- "auth/operation-not-allowed": "此登录方法目前不受支持。", +- "auth/popup-closed-by-user": "登录已取消。请重试。", +- "auth/too-many-requests": "登录尝试次数过多。请稍等片刻再试。", +- "auth/user-disabled": "此账户已被禁用。请联系客服。", +- "auth/user-not-found": "未找到使用此电子邮件的账户。您想要创建一个新账户吗?", +- "auth/weak-password": "密码强度太弱。请使用至少6个字符的更强密码。", +- "auth/wrong-password": "您输入的密码不正确,请重试。" +- }, +- "login": { +- "andText": "和", +- "backToLogin": "返回登录", +- "confirmPasswordLabel": "确认密码", +- "confirmPasswordPlaceholder": "再次输入相同的密码", +- "didntReceiveEmail": "没有收到邮件?请联系我们:", +- "emailLabel": "电子邮件", +- "emailPlaceholder": "输入您的电子邮件", +- "failed": "登录失败", +- "forgotPassword": "忘记密码?", +- "forgotPasswordError": "发送重置密码邮件失败", +- "insecureContextWarning": "此连接不安全(HTTP)—如果继续登录,您的凭据可能会被攻击者拦截。", +- "loginButton": "登录", +- "loginWithGithub": "使用Github登录", +- "loginWithGoogle": "使用Google登录", +- "newUser": "新用户?", +- "noAssociatedUser": "所提供的 API 密钥未关联任何 Comfy 用户", +- "orContinueWith": "或者继续使用", +- "passwordLabel": "密码", +- "passwordPlaceholder": "输入您的密码", +- "passwordResetError": "发送密码重置邮件失败。请重试。", +- "passwordResetInstructions": "请输入您的电子邮件地址,我们将向您发送重置密码的链接。", +- "passwordResetSent": "重置密码邮件已发送", +- "passwordResetSentDetail": "请查收您的电子邮件,点击链接重置密码。", +- "privacyLink": "隐私政策", +- "questionsContactPrefix": "有疑问?请联系我们:", +- "sendResetLink": "发送重置链接", +- "signInOrSignUp": "登录 / 注册", +- "signUp": "注册", +- "success": "登录成功", +- "termsLink": "使用条款", +- "termsText": "点击“下一步”或“注册”即表示您同意我们的", +- "title": "登录您的账户", +- "useApiKey": "Comfy API 密钥", +- "userAvatar": "用户头像" +- }, +- "loginButton": { +- "tooltipHelp": "登录以使用“API 节点”", +- "tooltipLearnMore": "了解更多..." +- }, +- "passwordUpdate": { +- "success": "密码已更新", +- "successDetail": "您的密码已成功更新" +- }, +- "reauthRequired": { +- "cancel": "取消", +- "confirm": "重新登录", +- "message": "出于安全原因,此操作需要您重新登录。是否继续?", +- "title": "需要重新认证" +- }, +- "signOut": { +- "signOut": "退出登录", +- "success": "成功退出登录", +- "successDetail": "您已成功退出账户。" ++ "missingModelsDialog": { ++ "doNotAskAgain": "不再显示此消息", ++ "missingModels": "缺少模型", ++ "missingModelsMessage": "加载工作流时,未找到以下模型" ++ }, ++ "missingNodes": { ++ "cloud": { ++ "description": "该工作流包含 Comfy Cloud 目前不支持的节点", ++ "gotIt": "好的", ++ "learnMore": "查看更多", ++ "priorityMessage": "我们已经标记这些节点,将会优先支持它们。", ++ "replacementInstruction": "同时,如果可能的话,将这些节点(红色突出显示)替换为已经支持的节点,或者尝试不同的工作流。", ++ "title": "Comfy Cloud 目前不支持这些节点" + }, +- "signup": { +- "alreadyHaveAccount": "已经有账户了?", +- "emailLabel": "电子邮件", +- "emailPlaceholder": "输入您的电子邮件", +- "passwordLabel": "密码", +- "passwordPlaceholder": "输入新密码", +- "personalDataConsentLabel": "我同意处理我的个人数据。", +- "regionRestrictionChina": "根据当地法规要求,我们暂时无法为中国地区的用户提供服务。", +- "signIn": "登录", +- "signUpButton": "注册", +- "signUpWithGithub": "使用Github注册", +- "signUpWithGoogle": "使用Google注册", +- "title": "创建一个账户" ++ "oss": { ++ "description": "该工作流包含您未安装的自定义节点", ++ "replacementInstruction": "安装这些节点后运行此工作流,或者用已安装的节点替换它们。缺失的节点在画布上以红色突出显示。", ++ "title": "该工作流含有缺失节点" + } + }, +- "validation": { +- "descriptionRequired": "描述是必填的", +- "invalidEmail": "无效的电子邮件地址", +- "length": "必须为{length}个字符", +- "maxLength": "不能超过{length}个字符", +- "minLength": "必须至少有{length}个字符", +- "password": { +- "lowercase": "必须包含至少一个小写字母", +- "match": "密码必须匹配", +- "minLength": "必须在8到32个字符之间", +- "number": "必须包含至少一个数字", +- "requirements": "密码要求", +- "special": "必须包含至少一个特殊字符", +- "uppercase": "必须包含至少一个大写字母" +- }, +- "personalDataConsentRequired": "您必须同意处理您的个人数据。", +- "prefix": "必须以 {prefix} 开头", +- "required": "必填" ++ "nodeCategories": { ++ "": "", ++ "3d": "3d", ++ "3d_models": "3D模型", ++ "BFL": "BFL", ++ "ByteDance": "字节跳动", ++ "Gemini": "Gemini", ++ "Ideogram": "Ideogram", ++ "Kling": "Kling", ++ "LTXV": "LTXV", ++ "Luma": "Luma", ++ "MiniMax": "MiniMax", ++ "Moonvalley Marey": "Moonvalley Marey", ++ "OpenAI": "OpenAI", ++ "PixVerse": "PixVerse", ++ "Recraft": "Recraft", ++ "Rodin": "Rodin", ++ "Runway": "Runway", ++ "Sora": "Sora", ++ "Stability AI": "Stability AI", ++ "Topaz": "Topaz", ++ "Tripo": "Tripo", ++ "Veo": "Veo", ++ "Vidu": "Vidu", ++ "Wan": "Wan万相", ++ "_for_testing": "_用于测试", ++ "advanced": "高级", ++ "animation": "动画", ++ "api": "API", ++ "api node": "api 节点", ++ "attention_experiments": "注意力实验", ++ "audio": "音频", ++ "batch": "批处理", ++ "camera": "相机", ++ "chroma_radiance": "chroma_radiance", ++ "clip": "CLIP", ++ "combine": "组合", ++ "compositing": "合成", ++ "cond pair": "条件对", ++ "cond single": "条件单", ++ "conditioning": "条件", ++ "context": "上下文", ++ "controlnet": "ControlNet", ++ "create": "创建", ++ "custom_sampling": "自定义采样", ++ "dataset": "dataset", ++ "debug": "调试", ++ "deprecated": "已弃用", ++ "edit_models": "编辑模型", ++ "flux": "Flux", ++ "gligen": "GLIGEN", ++ "guidance": "引导", ++ "guiders": "引导器", ++ "hooks": "约束", ++ "image": "图像", ++ "inpaint": "局部重绘", ++ "instructpix2pix": "InstructPix2Pix", ++ "kandinsky5": "kandinsky5", ++ "latent": "Latent", ++ "loaders": "加载器", ++ "lotus": "lotus", ++ "ltxv": "LTXV", ++ "mask": "遮罩", ++ "model": "模型", ++ "model_merging": "模型合并", ++ "model_patches": "模型微调", ++ "model_specific": "模型特定", ++ "noise": "噪波", ++ "operations": "操作", ++ "photomaker": "PhotoMaker", ++ "postprocessing": "后处理", ++ "preprocessors": "预处理器", ++ "primitive": "基础", ++ "qwen": "Qwen千问", ++ "samplers": "采样器", ++ "sampling": "采样", ++ "save": "保存", ++ "schedulers": "调度器", ++ "scheduling": "调度", ++ "sd": "sd", ++ "sd3": "SD3", ++ "sigmas": "Sigmas", ++ "stable_cascade": "StableCascade", ++ "string": "字符串", ++ "style_model": "风格模型", ++ "text": "文本", ++ "training": "训练", ++ "transform": "变换", ++ "unet": "U-Net", ++ "upscale_diffusion": "放大扩散", ++ "upscaling": "放大", ++ "utils": "工具", ++ "video": "视频", ++ "video_models": "视频模型", ++ "zimage": "zimage" ++ }, ++ "nodeErrors": { ++ "content": "节点内容错误", ++ "header": "节点头错误", ++ "render": "节点渲染错误", ++ "slots": "节点接口错误", ++ "widgets": "节点组件错误" + }, +- "credits": { +- "activity": "活动", +- "credits": "积分", +- "yourCreditBalance": "您的积分余额", +- "purchaseCredits": "购买积分", +- "invoiceHistory": "发票历史", +- "apiPricing": "API 价格", +- "faqs": "常见问题", +- "messageSupport": "联系客服", +- "lastUpdated": "最近更新", +- "topUp": { +- "addMoreCredits": "获取更多积分", +- "addMoreCreditsToRun": "获取更多积分来运行", +- "buy": "购买", +- "buyNow": "立即购买", +- "creditsDescription": "该工作流需要积分运行。", +- "howManyCredits": "您想要多少积分?", +- "insufficientMessage": "您的积分不足,无法运行此工作流。", +- "insufficientTitle": "积分不足", +- "insufficientWorkflowMessage": "您的积分不足以运行该工作流。", +- "maxAmount": "(最高 $1,000 美元)", +- "purchaseError": "购买失败", +- "purchaseErrorDetail": "购买积分失败:{error}", +- "quickPurchase": "快速购买", +- "seeDetails": "查看详情", +- "templateNote": "*使用 Wan Fun Control 模板生成", +- "topUp": "充值", +- "unknownError": "发生未知错误", +- "videosEstimate": "~{count} 个视频*" +- }, +- "creditsAvailable": "积分可用", +- "refreshes": "于 {date} 刷新", +- "eventType": "事件类型", +- "details": "详情", +- "time": "时间", +- "additionalInfo": "附加信息", +- "model": "模型", +- "added": "已添加", +- "accountInitialized": "账户已初始化", +- "unified": { +- "message": "积分已合并", +- "tooltip": "我们统一了 Comfy 的支付方式。现在全部使用 Comfy 积分 :\n- 合作节点(API节点)\n- Cloud 工作流\n\n您现有的合作伙伴节点积分将自动转换为 Comfy 积分。" +- } ++ "nodeHelpPage": { ++ "documentationPage": "文档页面", ++ "inputs": "输入", ++ "loadError": "加载帮助失败:{error}", ++ "moreHelp": "如需更多帮助,请访问", ++ "outputs": "输出", ++ "type": "类型" + }, +- "subscription": { +- "title": "订阅", +- "titleUnsubscribed": "订阅 Comfy Cloud", +- "comfyCloud": "Comfy 云", +- "comfyCloudLogo": "Comfy Cloud Logo", +- "beta": "测试版", +- "perMonth": "美元 / 月", +- "usdPerMonth": "USD / mo", +- "renewsDate": "将于 {date} 续订", +- "expiresDate": "于 {date} 过期", +- "manageSubscription": "管理订阅", +- "partnerNodesBalance": "\"合作伙伴节点\"积分余额", +- "partnerNodesDescription": "用于运行商业/专有模型", +- "totalCredits": "总积分", +- "viewUsageHistory": "查看使用历史", +- "addApiCredits": "添加API额度", +- "addCredits": "添加积分", +- "monthlyCreditsRollover": "这些积分将结转到下个月", +- "monthlyBonusDescription": "每月积分奖励", +- "prepaidDescription": "预付款额度", +- "prepaidCreditsInfo": "单独购买且不会过期的积分", +- "creditsRemainingThisMonth": "本月剩余积分", +- "creditsRemainingThisYear": "今年剩余积分", +- "creditsYouveAdded": "你获得的积分", +- "monthlyCreditsInfo": "积分每月刷新,不会保留", +- "viewMoreDetailsPlans": "查看有关订阅和定价的更多信息", +- "nextBillingCycle": "下一个计费周期", +- "yourPlanIncludes": "您的计划包括:", +- "viewMoreDetails": "查看更多详情", ++ "nodeTemplates": { ++ "enterName": "输入名称", ++ "saveAsTemplate": "另存为模板" ++ }, ++ "notSupported": { ++ "continue": "继续", ++ "continueTooltip": "我确定我的设备是受支持的", ++ "illustrationAlt": "Sad girl illustration", + "learnMore": "了解更多", +- "billedMonthly": "每月付款", +- "billedYearly": "{total} 每年付款", +- "monthly": "月度", +- "yearly": "年度", +- "tierNameYearly": "{name} 年度", +- "messageSupport": "消息支持", +- "invoiceHistory": "发票历史", +- "benefits": { +- "benefit1": "合作伙伴节点的月度积分 — 按需充值", +- "benefit2": "每个队列最长运行 30 分钟" ++ "message": "仅支持以下设备:", ++ "reportIssue": "报告问题", ++ "supportedDevices": { ++ "macos": "MacOS (M1 或更高版本)", ++ "windows": "Windows (支持 CUDA 的 Nvidia GPU)" + }, +- "yearlyDiscount": "20% 减免", +- "tiers": { +- "founder": { +- "name": "Founder's Edition" +- }, +- "standard": { +- "name": "Standard" +- }, +- "creator": { +- "name": "Creator" ++ "title": "您的设备不受支持" ++ }, ++ "queue": { ++ "completedIn": "{duration} 后完成", ++ "inQueue": "正在执行...", ++ "initializingAlmostReady": "初始化中 - 即将完成", ++ "jobAddedToQueue": "任务添加到队列", ++ "jobDetails": { ++ "computeHoursUsed": "计算耗时", ++ "errorMessage": "报错信息", ++ "estimatedFinishIn": "预计完成于", ++ "estimatedStartIn": "预计开始于", ++ "eta": { ++ "minutes": "~{count} 分钟 | ~{count} 分钟", ++ "minutesRange": "~{lo}-{hi} 分钟", ++ "seconds": "~{count} 秒 | ~{count} 秒", ++ "secondsRange": "~{lo}-{hi} 秒" + }, +- "pro": { +- "name": "Pro" +- } ++ "failedAfter": "失败于", ++ "generatedOn": "生成于", ++ "header": "任务细节", ++ "jobId": "任务ID", ++ "queuePosition": "队列位置", ++ "queuePositionValue": "在您前方有 ~{count} 个任务 | 在您前方有 ~{count} 个任务", ++ "queuedAt": "执行于", ++ "report": "反馈", ++ "timeElapsed": "耗时", ++ "totalGenerationTime": "总生成时间", ++ "workflow": "工作流" + }, +- "required": { +- "subscribe": "订阅", +- "title": "订阅", +- "waitingForSubscription": "请在新标签页中完成订阅。我们会自动检测到您已完成!" ++ "jobList": { ++ "sortComputeHoursUsed": "计算用时(最先)", ++ "sortMostRecent": "最新", ++ "sortTotalGenerationTime": "生成时间(最慢)", ++ "undated": "无日期" + }, +- "subscribeToRun": "订阅", +- "subscribeToRunFull": "订阅 Run", +- "subscribeNow": "立即订阅", +- "subscribeToComfyCloud": "订阅 Comfy Cloud", +- "description": "选择最适合您的订阅计划", +- "haveQuestions": "对企业级有疑问?", +- "contactUs": "联系我们", +- "viewEnterprise": "查看企业", +- "partnerNodesCredits": "合作伙伴节点积分", +- "plansAndPricing": "订阅和定价", +- "managePlan": "管理订阅", +- "upgrade": "升级", +- "mostPopular": "最受欢迎", +- "currentPlan": "当前订阅计划", +- "subscribeTo": "订阅 {plan}", +- "monthlyCreditsLabel": "每月积分", +- "yearlyCreditsLabel": "总共年度积分", +- "maxDurationLabel": "运行单个工作流的最大时长", +- "gpuLabel": "RTX 6000 Pro (96GB VRAM)", +- "addCreditsLabel": "随时获取更多积分", +- "customLoRAsLabel": "导入您的 Lora", +- "videoEstimateLabel": "可使用 Wan Fun Control 模板生成 5 秒视频的数量", +- "videoEstimateHelp": "这是什么?", +- "videoEstimateExplanation": "这些预估基于 Wan Fun Control 生成 5 秒视频。", +- "videoEstimateTryTemplate": "试试 Wan Fun Control template →", +- "upgradePlan": "升级订阅", +- "upgradeTo": "升级到 {plan}", +- "changeTo": "更改为 {plan}", +- "maxDuration": { +- "creator": "30 分钟", +- "founder": "30 分钟", +- "pro": "1 小时", +- "standard": "30 分钟" ++ "jobMenu": { ++ "addToCurrentWorkflow": "添加到当前工作流", ++ "cancelJob": "取消任务", ++ "copyErrorMessage": "复制报错信息", ++ "copyJobId": "复制任务ID", ++ "delete": "删除", ++ "deleteAsset": "删除资产", ++ "download": "下载", ++ "exportWorkflow": "导出工作流", ++ "inspectAsset": "查看资产", ++ "openAsWorkflowNewTab": "在新标签页中读取工作流", ++ "openWorkflowNewTab": "在新标签页中打开工作流", ++ "removeJob": "移除任务", ++ "reportError": "反馈报错" + } + }, +- "userSettings": { +- "title": "我的用户设置", +- "accountSettings": "用户设置", +- "name": "名称", +- "email": "电子邮件", +- "provider": "登录方式", +- "notSet": "未设置", +- "updatePassword": "更新密码" ++ "releaseToast": { ++ "description": "在此更新中尝试最新的改进和功能。", ++ "newVersionAvailable": "新版本可用!", ++ "skip": "跳过", ++ "update": "更新", ++ "whatsNew": "新功能?" ++ }, ++ "rightSidePanel": { ++ "bypass": "忽略", ++ "color": "节点颜色", ++ "info": "信息", ++ "inputs": "输入", ++ "inputsNone": "无输入", ++ "inputsNoneTooltip": "节点没有输入", ++ "mute": "禁用", ++ "noSelection": "选择一个节点查看其属性信息。", ++ "nodeState": "节点状态", ++ "normal": "正常", ++ "parameters": "参数", ++ "pinned": "顶固", ++ "properties": "属性", ++ "settings": "设置", ++ "title": "无选中节点 | 选中了 1 个节点 | 选中了 {count} 个节点", ++ "togglePanel": "开关属性面板" + }, + "selectionToolbox": { + "Bypass Group Nodes": "绕过分组节点", +@@ -2025,61 +1734,233 @@ + "tooltip": "执行到选定的输出节点(用橙色边框高亮显示)" + } + }, +- "widgets": { +- "selectModel": "选择模型", +- "uploadSelect": { +- "placeholder": "请选择...", +- "placeholderAudio": "请选择音频...", +- "placeholderImage": "请选择图片...", +- "placeholderModel": "请选择模型...", +- "placeholderUnknown": "请选择媒体...", +- "placeholderVideo": "请选择视频..." ++ "serverConfig": { ++ "modifiedConfigs": "您已修改以下服务器配置。重启以应用更改。", ++ "restart": "重启", ++ "restartRequiredToastDetail": "重启软件应用设置。", ++ "restartRequiredToastSummary": "需要重启", ++ "revertChanges": "撤销更改" ++ }, ++ "serverConfigCategories": { ++ "Attention": "注意力", ++ "CUDA": "CUDA", ++ "Cache": "缓存", ++ "Directories": "目录", ++ "General": "常规", ++ "Inference": "推理", ++ "Memory": "内存", ++ "Network": "网络", ++ "Preview": "预览" ++ }, ++ "serverConfigItems": { ++ "cache-classic": { ++ "name": "使用经典缓存系统" + }, +- "valueControl": { +- "decrement": "递减值", +- "decrementDesc": "数值-1或切换到上一个选项", +- "editSettings": "改变控制设置", +- "fixed": "固定值", +- "fixedDesc": "数值不变", +- "header": { +- "after": "之后", +- "before": "之前", +- "postfix": "正在运行工作流:", +- "prefix": "自动更新该值" +- }, +- "increment": "递增值", +- "incrementDesc": "数值+1或切换到下一个选项", +- "linkToGlobal": "连接到", +- "linkToGlobalDesc": "唯一值连接到全局值控制设置", +- "linkToGlobalSeed": "全局值", +- "randomize": "随机值", +- "randomizeDesc": "每次运行后随机化该值" ++ "cache-lru": { ++ "name": "使用 LRU 缓存,最多缓存 N 个节点结果。", ++ "tooltip": "可能会使用更多的 RAM/VRAM。" ++ }, ++ "cpu-vae": { ++ "name": "在 CPU 上运行 VAE" ++ }, ++ "cross-attention-method": { ++ "name": "交叉注意力方法" ++ }, ++ "cuda-device": { ++ "name": "要使用的 CUDA 设备索引" ++ }, ++ "cuda-malloc": { ++ "name": "使用 CUDA malloc 进行内存分配" ++ }, ++ "default-hashing-function": { ++ "name": "模型文件的默认哈希函数" ++ }, ++ "deterministic": { ++ "name": "使 pytorch 在可以时使用较慢的确定性算法。", ++ "tooltip": "请注意,这可能不会在所有情况下使图像具有确定性。" ++ }, ++ "directml": { ++ "name": "DirectML 设备索引" ++ }, ++ "disable-all-custom-nodes": { ++ "name": "禁用加载所有自定义节点。" ++ }, ++ "disable-ipex-optimize": { ++ "name": "禁用 IPEX 优化" ++ }, ++ "disable-metadata": { ++ "name": "禁用在文件中保存提示元数据。" ++ }, ++ "disable-smart-memory": { ++ "name": "禁用智能内存管理", ++ "tooltip": "强制 ComfyUI 在可以时将模型从 VRAM 移出到常规 RAM。" ++ }, ++ "disable-xformers": { ++ "name": "禁用 xFormers 优化" ++ }, ++ "dont-print-server": { ++ "name": "不将服务器输出打印到控制台。" ++ }, ++ "dont-upcast-attention": { ++ "name": "不使用 upcast-attention" ++ }, ++ "enable-cors-header": { ++ "name": "启用 CORS header:使用 \"*\" 代表所有来源或指定域名" ++ }, ++ "enable-manager-legacy-ui": { ++ "name": "使用旧版管理器UI", ++ "tooltip": "是用旧版 ComfyUI-Manager UI。" ++ }, ++ "fast": { ++ "name": "启用一些未经测试且可能降低质量的优化。" ++ }, ++ "force-channels-last": { ++ "name": "强制使用 channels-last 内存格式" ++ }, ++ "force-upcast-attention": { ++ "name": "强制 upcast-attention" ++ }, ++ "global-precision": { ++ "name": "全局浮点精度", ++ "tooltip": "全局浮点精度" ++ }, ++ "input-directory": { ++ "name": "输入目录" ++ }, ++ "listen": { ++ "name": "主机:要监听的IP地址" ++ }, ++ "log-level": { ++ "name": "日志详细级别" ++ }, ++ "max-upload-size": { ++ "name": "最大上传大小 (MB)" ++ }, ++ "output-directory": { ++ "name": "输出目录" ++ }, ++ "port": { ++ "name": "端口:要监听的端口" ++ }, ++ "preview-method": { ++ "name": "用于潜空间预览的方法" ++ }, ++ "preview-size": { ++ "name": "预览图像的大小" ++ }, ++ "reserve-vram": { ++ "name": "保留 VRAM (GB)", ++ "tooltip": "设置您希望为操作系统/其他软件保留的 VRAM (GB)。默认会根据系统类型保留一定数量。" ++ }, ++ "text-encoder-precision": { ++ "name": "文本编码器精度", ++ "tooltip": "文本编码器精度" ++ }, ++ "tls-certfile": { ++ "name": "TLS 证书文件:HTTPS 的 TLS 证书文件路径" ++ }, ++ "tls-keyfile": { ++ "name": "TLS 密钥文件:HTTPS 的 TLS 密钥文件路径" ++ }, ++ "unet-precision": { ++ "name": "UNET 精度", ++ "tooltip": "UNET 精度" ++ }, ++ "vae-precision": { ++ "name": "VAE 精度", ++ "tooltip": "VAE 精度" ++ }, ++ "vram-management": { ++ "name": "VRAM 管理模式" + } + }, +- "widgetFileUpload": { +- "browseFiles": "浏览文件", +- "dropPrompt": "将文件拖到此处或" +- }, +- "nodeHelpPage": { +- "documentationPage": "文档页面", +- "inputs": "输入", +- "loadError": "加载帮助失败:{error}", +- "moreHelp": "如需更多帮助,请访问", +- "outputs": "输出", +- "type": "类型" ++ "serverStart": { ++ "copyAllTooltip": "全部复制", ++ "copySelectionTooltip": "复制所选内容", ++ "errorMessage": "无法启动 ComfyUI 桌面版", ++ "installation": { ++ "title": "正在安装 ComfyUI" ++ }, ++ "openLogs": "打开日志", ++ "process": { ++ "error": "无法启动 ComfyUI 桌面版", ++ "initial-state": "加载中...", ++ "python-setup": "正在设置 Python 环境...", ++ "ready": "完成中...", ++ "starting-server": "正在启动 ComfyUI 服务器..." ++ }, ++ "reportIssue": "报告问题", ++ "showTerminal": "显示终端", ++ "title": "启动 ComfyUI", ++ "troubleshoot": "故障排除" + }, +- "whatsNewPopup": { +- "learnMore": "了解更多", +- "later": "Later", +- "noReleaseNotes": "暂无更新说明。" ++ "settingsCategories": { ++ "3D": "3D", ++ "3DViewer": "3D查看器", ++ "API Nodes": "API 节点", ++ "About": "关于", ++ "Appearance": "外观", ++ "BrushAdjustment": "画笔调整", ++ "Camera": "相机", ++ "Canvas": "画布", ++ "Canvas Navigation": "画布导航", ++ "ColorPalette": "色彩主题", ++ "Comfy": "Comfy", ++ "Comfy-Desktop": "Comfy桌面版", ++ "ContextMenu": "上下文菜单", ++ "Credits": "积分", ++ "CustomColorPalettes": "自定义色彩主题", ++ "DevMode": "开发模式", ++ "EditTokenWeight": "编辑令牌权重", ++ "Execution": "执行", ++ "Extension": "扩展", ++ "General": "常规", ++ "Graph": "画面", ++ "Group": "组", ++ "Keybinding": "快捷键", ++ "Light": "光照", ++ "Link": "连线", ++ "LinkRelease": "释放链接", ++ "LiteGraph": "画面", ++ "Load 3D": "加载3D", ++ "Locale": "区域设置", ++ "Mask Editor": "遮罩编辑器", ++ "Menu": "菜单", ++ "ModelLibrary": "模型库", ++ "Node": "节点", ++ "Node Search Box": "节点搜索框", ++ "Node Widget": "节点组件", ++ "NodeLibrary": "节点库", ++ "Nodes 2_0": "Nodes 2.0", ++ "Notification Preferences": "通知偏好", ++ "PLY": "PLY", ++ "PlanCredits": "计划与积分", ++ "Pointer": "指针", ++ "Queue": "队列", ++ "QueueButton": "执行按钮", ++ "Reroute": "重新路由", ++ "RerouteBeta": "转接点 Beta", ++ "Scene": "场景", ++ "Server": "服务器", ++ "Server-Config": "服务器配置", ++ "Settings": "设置", ++ "Sidebar": "侧边栏", ++ "Tree Explorer": "树形浏览器", ++ "UV": "UV", ++ "User": "用户", ++ "Validation": "验证", ++ "Vue Nodes": "Nodes 2.0", ++ "VueNodes": "Nodes 2.0", ++ "Window": "窗口", ++ "Workflow": "工作流" + }, +- "breadcrumbsMenu": { +- "duplicate": "复制", +- "clearWorkflow": "清除工作流", +- "deleteWorkflow": "删除工作流", +- "deleteBlueprint": "删除蓝图", +- "enterNewName": "输入新名称", +- "missingNodesWarning": "工作流包含不支持的节点(红色突出显示)。" ++ "shape": { ++ "CARD": "卡片", ++ "arrow": "箭头", ++ "box": "方框", ++ "circle": "圆形", ++ "default": "默认", ++ "round": "圆角" + }, + "shortcuts": { + "essentials": "常用", +@@ -2096,302 +1977,406 @@ + }, + "viewControls": "视图控制" + }, +- "minimap": { +- "nodeColors": "节点颜色", +- "renderBypassState": "渲染绕过状态", +- "renderErrorState": "渲染错误状态", +- "showGroups": "显示框架/分组", +- "showLinks": "显示连接" +- }, +- "cloudOnboarding": { +- "authTimeout": { +- "causes": [ +- "Corporate firewall or proxy blocking authentication services", +- "VPN or network restrictions", +- "Browser extensions interfering with requests", +- "Regional network limitations", +- "Try a different browser or network" +- ], +- "helpText": "需要帮助?联系", +- "message": "我们无法连接到 ComfyUI 云端服务。这可能是由于网络连接缓慢或临时服务问题导致的。", +- "restart": "退出并重试", +- "supportLink": "支持", +- "technicalDetails": "技术细节", +- "title": "连接时间过长", +- "troubleshooting": "常见原因:" ++ "sideToolbar": { ++ "assets": "资产", ++ "backToAssets": "返回所有资产", ++ "browseTemplates": "浏览示例模板", ++ "downloads": "下载", ++ "helpCenter": "帮助中心", ++ "labels": { ++ "assets": "资产", ++ "console": "控制台", ++ "generated": "已生成", ++ "imported": "已导入", ++ "menu": "菜单", ++ "models": "模型", ++ "nodes": "节点", ++ "queue": "队列", ++ "templates": "模板", ++ "workflows": "工作流" + }, +- "checkingStatus": "正在检查您的账户状态...", +- "forgotPassword": { +- "backToLogin": "返回登录", +- "didntReceiveEmail": "没有收到邮件?请联系我们:", +- "emailLabel": "电子邮件", +- "emailPlaceholder": "输入您的邮箱", +- "emailRequired": "邮箱为必填项", +- "instructions": "请输入您的电子邮件地址,我们将向您发送重置密码的链接。", +- "passwordResetError": "发送密码重置邮件失败,请重试。", +- "passwordResetSent": "密码重置邮件已发送", +- "sendResetLink": "发送重置链接", +- "title": "忘记密码" ++ "logout": "登出", ++ "mediaAssets": { ++ "filter3D": "3D", ++ "filterAudio": "音频", ++ "filterImage": "图像", ++ "filterVideo": "视频", ++ "sortFastestFirst": "生成时间(最快)", ++ "sortLongestFirst": "生成时间(最慢)", ++ "sortNewestFirst": "最新", ++ "sortOldestFirst": "最旧", ++ "title": "媒体资产" + }, +- "privateBeta": { +- "desc": "登录以加入等候名单。轮到您时我们会通知您。已经收到通知?登录开始使用 Cloud。", +- "title": "云服务目前处于内测阶段" ++ "modelLibrary": "模型库", ++ "newBlankWorkflow": "创建空白工作流", ++ "noFilesFound": "未找到文件", ++ "noFilesFoundMessage": "上传文件或生成内容以在此处查看", ++ "noGeneratedFiles": "未找到生成的文件", ++ "noImportedFiles": "未找到导入的文件", ++ "nodeLibrary": "节点库", ++ "nodeLibraryTab": { ++ "groupBy": "分组方式", ++ "groupStrategies": { ++ "category": "类别", ++ "categoryDesc": "按节点类别分组", ++ "module": "模块", ++ "moduleDesc": "按模块来源分组", ++ "source": "来源", ++ "sourceDesc": "按来源类型分组(核心,自定义,API)" ++ }, ++ "resetView": "重置视图为默认", ++ "sortBy": { ++ "alphabetical": "字母顺序", ++ "alphabeticalDesc": "在分组内按字母顺序排序", ++ "original": "原始顺序", ++ "originalDesc": "保持原始顺序" ++ }, ++ "sortMode": "排序模式" + }, +- "retry": "重试", +- "retrying": "正在重试...", +- "start": { +- "desc": "无需任何设置。可在任何设备上使用。", +- "download": "下载 ComfyUI", +- "explain": "一次生成多个输出。轻松分享工作流。", +- "learnAboutButton": "了解云服务", +- "title": "几秒内开始创作", +- "wantToRun": "想在本机运行 ComfyUI 吗?" ++ "openWorkflow": "在本地文件系统中打开工作流", ++ "queue": "队列", ++ "queueProgressOverlay": { ++ "activeJobsSuffix": "活跃任务", ++ "cancelJobTooltip": "取消任务", ++ "clearHistory": "清除任务记录", ++ "clearHistoryDialogAssetsNote": "这些任务生成的资产不会被删除,并且始终可以在资产面板中查看。", ++ "clearHistoryDialogDescription": "以下所有已完成或失败的任务将从队列面板中删除。", ++ "clearHistoryDialogTitle": "确定要清除任务记录?", ++ "clearQueueTooltip": "清理队列", ++ "clearQueued": "清除已执行", ++ "colonPercent": ":{percent}", ++ "currentNode": "当前节点:", ++ "expandCollapsedQueue": "展开任务队列", ++ "filterAllWorkflows": "全部工作流", ++ "filterBy": "筛选方式", ++ "filterCurrentWorkflow": "当前工作流", ++ "filterJobs": "筛选任务", ++ "interruptAll": "中断全部正在运行的任务", ++ "jobQueue": "任务队列", ++ "jobsCompleted": "{count} 任务完成 | {count} 任务完成", ++ "jobsFailed": "{count} 任务失败 | {count} 任务失败", ++ "moreOptions": "更多设置", ++ "noActiveJobs": "无活跃任务", ++ "preview": "预览", ++ "queuedSuffix": "已执行", ++ "running": "运行中", ++ "showAssets": "显示资产", ++ "showAssetsPanel": "显示资产面板", ++ "sortBy": "排序方式", ++ "sortJobs": "排序任务", ++ "stubClipTextEncode": "CLIP文本编码:", ++ "title": "队列进度", ++ "total": "全部:{percent}", ++ "viewAllJobs": "查看全部任务", ++ "viewJobHistory": "查看任务记录" ++ }, ++ "searchAssets": "搜索资产", ++ "templates": "模板", ++ "themeToggle": "切换主题", ++ "workflowTab": { ++ "confirmDelete": "您确定要删除此工作流吗?", ++ "confirmDeleteTitle": "删除工作流?", ++ "confirmOverwrite": "下面的文件已经存在。您想要覆盖它吗?", ++ "confirmOverwriteTitle": "覆盖现有文件?", ++ "deleteFailed": "尝试删除工作流失败。", ++ "deleteFailedTitle": "删除失败", ++ "deleted": "工作流已删除", ++ "dirtyClose": "以下文件已被更改。您想在关闭之前保存它们吗?", ++ "dirtyCloseHint": "按住 Shift 关闭而不提示", ++ "dirtyCloseTitle": "保存更改?", ++ "workflowTreeType": { ++ "bookmarks": "书签", ++ "browse": "浏览", ++ "open": "打开" ++ } ++ }, ++ "workflows": "工作流" ++ }, ++ "subgraphStore": { ++ "blueprintName": "子工作流名称", ++ "confirmDelete": "此操作将永久从您的库中移除该子工作流", ++ "confirmDeleteTitle": "删除子工作流?", ++ "hidden": "隐藏/嵌套参数", ++ "hideAll": "全部隐藏", ++ "loadFailure": "加载子工作流蓝图失败", ++ "overwriteBlueprint": "保存将用您的更改覆盖当前子工作流", ++ "overwriteBlueprintTitle": "覆盖现有子工作流?", ++ "promoteOutsideSubgraph": "不在子工作流中时无法提升小部件", ++ "publish": "发布子工作流", ++ "publishSuccess": "已保存到节点库", ++ "publishSuccessMessage": "您可以在节点库的“子工作流蓝图”下找到您的子工作流蓝图", ++ "saveBlueprint": "保存子工作流到节点库", ++ "showAll": "全部显示", ++ "showRecommended": "显示推荐控件", ++ "shown": "节点上显示" ++ }, ++ "subscription": { ++ "addApiCredits": "添加API额度", ++ "addCredits": "添加积分", ++ "addCreditsLabel": "随时获取更多积分", ++ "benefits": { ++ "benefit1": "合作伙伴节点的月度积分 — 按需充值", ++ "benefit2": "每个队列最长运行 30 分钟" ++ }, ++ "beta": "测试版", ++ "billedMonthly": "每月付款", ++ "billedYearly": "{total} 每年付款", ++ "changeTo": "更改为 {plan}", ++ "comfyCloud": "Comfy 云", ++ "comfyCloudLogo": "Comfy Cloud Logo", ++ "contactUs": "联系我们", ++ "creditsRemainingThisMonth": "本月剩余积分", ++ "creditsRemainingThisYear": "今年剩余积分", ++ "creditsYouveAdded": "你获得的积分", ++ "currentPlan": "当前订阅计划", ++ "customLoRAsLabel": "导入您的 Lora", ++ "description": "选择最适合您的订阅计划", ++ "expiresDate": "于 {date} 过期", ++ "gpuLabel": "RTX 6000 Pro (96GB VRAM)", ++ "haveQuestions": "对企业级有疑问?", ++ "invoiceHistory": "发票历史", ++ "learnMore": "了解更多", ++ "managePlan": "管理订阅", ++ "manageSubscription": "管理订阅", ++ "maxDuration": { ++ "creator": "30 分钟", ++ "founder": "30 分钟", ++ "pro": "1 小时", ++ "standard": "30 分钟" ++ }, ++ "maxDurationLabel": "运行单个工作流的最大时长", ++ "messageSupport": "消息支持", ++ "monthly": "月度", ++ "monthlyBonusDescription": "每月积分奖励", ++ "monthlyCreditsInfo": "积分每月刷新,不会保留", ++ "monthlyCreditsLabel": "每月积分", ++ "monthlyCreditsRollover": "这些积分将结转到下个月", ++ "mostPopular": "最受欢迎", ++ "nextBillingCycle": "下一个计费周期", ++ "partnerNodesBalance": "\"合作伙伴节点\"积分余额", ++ "partnerNodesCredits": "合作伙伴节点积分", ++ "partnerNodesDescription": "用于运行商业/专有模型", ++ "perMonth": "美元 / 月", ++ "plansAndPricing": "订阅和定价", ++ "prepaidCreditsInfo": "单独购买且不会过期的积分", ++ "prepaidDescription": "预付款额度", ++ "renewsDate": "将于 {date} 续订", ++ "required": { ++ "subscribe": "订阅", ++ "title": "订阅", ++ "waitingForSubscription": "请在新标签页中完成订阅。我们会自动检测到您已完成!" + }, +- "survey": { +- "options": { +- "familiarity": { +- "advanced": "高级用户(自定义工作流)", +- "basics": "熟练掌握基础知识", +- "expert": "专家(帮助他人)", +- "new": "ComfyUI 新手(从未使用过)", +- "starting": "刚刚开始(正在学习教程)" +- }, +- "industry": { +- "architecture": "架构", +- "education": "教育", +- "film_tv_animation": "电影、电视与动画", +- "fine_art": "美术与插画", +- "gaming": "游戏", +- "marketing": "营销与广告", +- "other": "其他", +- "otherPlaceholder": "请指定", +- "product_design": "产品与平面设计", +- "software": "软件与技术" +- }, +- "making": { +- "3d": "3D 资产", +- "audio": "音频 / 音乐", +- "custom_nodes": "自定义节点和工作流", +- "images": "图片", +- "video": "视频与动画" +- }, +- "purpose": { +- "client": "客户工作(自由职业)", +- "community": "社区贡献(节点、工作流等)", +- "inhouse": "我自己的工作场所(内部)", +- "personal": "个人项目 / 爱好", +- "research": "学术研究" +- } ++ "subscribeNow": "立即订阅", ++ "subscribeTo": "订阅 {plan}", ++ "subscribeToComfyCloud": "订阅 Comfy Cloud", ++ "subscribeToRun": "订阅", ++ "subscribeToRunFull": "订阅 Run", ++ "tierNameYearly": "{name} 年度", ++ "tiers": { ++ "creator": { ++ "name": "Creator" + }, +- "placeholder": "调查问题占位符", +- "questions": { +- "familiarity": "你对 ComfyUI 有多熟悉?", +- "industry": "您的主要行业是什么?", +- "making": "你打算做什么?", +- "purpose": "您主要将使用 ComfyUI 做什么?" ++ "founder": { ++ "name": "Founder's Edition" + }, +- "steps": { +- "familiarity": "你对 ComfyUI 有多熟悉?", +- "industry": "您的主要行业是什么?", +- "making": "你打算做什么?", +- "purpose": "您将主要使用 ComfyUI 做什么?" ++ "pro": { ++ "name": "Pro" + }, +- "title": "云调研" +- } +- }, +- "cloudFooter_needHelp": "需要帮助?", +- "cloudStart_title": "几秒钟内开始创作", +- "cloudStart_desc": "无需任何设置。可在任何设备上使用。", +- "cloudStart_explain": "一次性生成多个输出。轻松分享工作流。", +- "cloudStart_learnAboutButton": "了解云服务", +- "cloudStart_wantToRun": "想在本地运行 ComfyUI 吗?", +- "cloudStart_download": "下载 ComfyUI", +- "cloudWaitlist_questionsText": "有问题?联系我们", +- "cloudWaitlist_contactLink": "这里", +- "cloudSorryContactSupport_title": "抱歉,请联系客服", +- "cloudPrivateBeta_title": "云服务目前处于内测阶段", +- "cloudPrivateBeta_desc": "登录以加入等候名单。轮到您时我们会通知您。已经收到通知?登录开始使用 Cloud。", +- "cloudForgotPassword_title": "忘记密码", +- "cloudForgotPassword_instructions": "请输入您的电子邮件地址,我们将向您发送重置密码的链接。", +- "cloudForgotPassword_emailLabel": "电子邮件", +- "cloudForgotPassword_emailPlaceholder": "输入您的邮箱", +- "cloudForgotPassword_sendResetLink": "发送重置链接", +- "cloudForgotPassword_backToLogin": "返回登录", +- "cloudForgotPassword_didntReceiveEmail": "没有收到邮件?", +- "cloudForgotPassword_emailRequired": "邮箱是必填项", +- "cloudForgotPassword_passwordResetSent": "密码重置邮件已发送", +- "cloudForgotPassword_passwordResetError": "发送密码重置邮件失败", +- "cloudSurvey_steps_familiarity": "你对 ComfyUI 有多熟悉?", +- "cloudSurvey_steps_purpose": "您将主要使用 ComfyUI 做什么?", +- "cloudSurvey_steps_industry": "您的主要行业是什么?", +- "cloudSurvey_steps_making": "你打算做什么?", +- "assetBrowser": { +- "allCategory": "全部{category}", +- "allModels": "全部模型", +- "assetCollection": "资产合集", +- "assets": "资产", +- "baseModels": "基础模型", +- "browseAssets": "浏览资产", +- "checkpoints": "模型", +- "civitaiLinkExample": "案例: https://civitai.com/api/download/models/833921?type=Model&format=SafeTensor", +- "civitaiLinkExampleStrong": "案例:", +- "civitaiLinkExampleUrl": "https://civitai.com/models/10706/luisap-z-image-and-qwen-pixel-art-refiner?modelVersionId=2225295", +- "civitaiLinkLabel": "Civitai 模型 download link", +- "civitaiLinkLabelDownload": "下载", +- "civitaiLinkPlaceholder": "粘贴链接到此", +- "confirmModelDetails": "确认模型信息", +- "connectionError": "请检查您的网络连接后重试", +- "errorFileTooLarge": "允许执行文件的文件大小限制", +- "errorFormatNotAllowed": "仅允许 SafeTensor 格式", +- "errorModelTypeNotSupported": "不支持该类型的模型", +- "errorUnknown": "发生了意外错误", +- "errorUnsafePickleScan": "CivitAI 在该文件中检测到不安全代码", +- "errorUnsafeVirusScan": "CivitAI 在该文件中检测到木马或可疑文件", +- "errorUploadFailed": "导入资产失败,请重试。", +- "failedToCreateNode": "创建节点失败。请重试或查看控制台获取详细信息。", +- "fileFormats": "文件格式", +- "fileName": "文件名", +- "fileSize": "文件大小", +- "filterBy": "筛选方式", +- "findInLibrary": "模型在模型库的{type}区里", +- "finish": "完成", +- "genericLinkPlaceholder": "粘贴链接到这", +- "jobId": "任务ID", +- "loadingModels": "正在加载{type}...", +- "maxFileSize": "最大文件大小:{size}", +- "maxFileSizeValue": "1 GB", +- "modelAssociatedWithLink": "您提供的链接的模型:", +- "modelName": "模型名", +- "modelNamePlaceholder": "输入该模型的名称", +- "modelTypeSelectorLabel": "这是什么类型的模型?", +- "modelTypeSelectorPlaceholder": "选择模型类型", +- "modelUploaded": "模型导入成功!🎉", +- "noAssetsFound": "未找到资产", +- "noModelsInFolder": "此文件夹中没有可用的{type}", +- "notSureLeaveAsIs": "不确定?那就放着不管吧", +- "onlyCivitaiUrlsSupported": "仅支持 Civitai 链接", +- "ownership": "所属", +- "ownershipAll": "全部", +- "ownershipMyModels": "我的模型", +- "ownershipPublicModels": "公共模型", +- "providerCivitai": "Civitai", +- "providerHuggingFace": "Hugging Face", +- "noValidSourceDetected": "检测不到有效的导入源", +- "selectFrameworks": "选择框架", +- "selectModelType": "选择模型类型", +- "selectProjects": "选择项目", +- "sortAZ": "A-Z", +- "sortBy": "排序方式", +- "sortingType": "排序类型", +- "sortPopular": "最受欢迎", +- "sortRecent": "最近", +- "sortZA": "Z-A", +- "tags": "标签", +- "tagsHelp": "按逗号区分标签", +- "tagsPlaceholder": "例如:模型, checkpoint", +- "tryAdjustingFilters": "请尝试调整搜索或筛选条件", +- "unknown": "未知", +- "unsupportedUrlSource": "仅支持来自 {sources} URL 的模型", +- "upgradeFeatureDescription": "该功能仅 Creator 和 Pro 订阅计划可用", +- "upgradeToUnlockFeature": "升级订阅解锁该功能", +- "upload": "导入", +- "uploadFailed": "导入失败", +- "uploadingModel": "正在导入模型...", +- "uploadModel": "导入模型", +- "uploadModelDescription1": "粘贴 Civitai 模型下载链接,将其添加到库中。", +- "uploadModelDescription1Generic": "站贴模型下载链接,将其添加到模型库中。", +- "uploadModelDescription2": "目前仅支持 https://civitai.com 链接。", +- "uploadModelDescription2Link": "https://civitai.com/models", +- "uploadModelDescription2Generic": "仅支持来自以下提供服务的 URL :", +- "uploadModelDescription3": "最大文件大小:1 GB", +- "uploadModelFailedToRetrieveMetadata": "检索元数据失败。请检查连接并重试。", +- "uploadModelFromCivitai": "从 Civitai 导入模型", +- "uploadModelGeneric": "导入模型", +- "uploadModelHelpFooterText": "需要查找 URL 的帮助吗?点击下面的教程视频。", +- "uploadModelHelpVideo": "上传模型视频", +- "uploadModelHowDoIFindThis": "如何找到这个?", +- "uploadSuccess": "模型导入成功!", +- "ariaLabel": { +- "assetCard": "{name} - {type}资产", +- "loadingAsset": "正在加载资产" +- }, +- "media": { +- "audioPlaceholder": "音频", +- "threeDModelPlaceholder": "3D 模型" +- }, +- "deletion": { +- "body": "从资产库永久移除这个模型。", +- "complete": "{assetName} 已经删除。", +- "failed": "{assetName} 无法删除。", +- "header": "删除该模型?", +- "inProgress": "正在删除 {assetName}..." ++ "standard": { ++ "name": "Standard" ++ } + }, +- "rename": { +- "failed": "无法重命名资产。" ++ "title": "订阅", ++ "titleUnsubscribed": "订阅 Comfy Cloud", ++ "totalCredits": "总积分", ++ "upgrade": "升级", ++ "upgradePlan": "升级订阅", ++ "upgradeTo": "升级到 {plan}", ++ "usdPerMonth": "USD / mo", ++ "videoEstimateExplanation": "这些预估基于 Wan Fun Control 生成 5 秒视频。", ++ "videoEstimateHelp": "这是什么?", ++ "videoEstimateLabel": "可使用 Wan Fun Control 模板生成 5 秒视频的数量", ++ "videoEstimateTryTemplate": "试试 Wan Fun Control template →", ++ "viewEnterprise": "查看企业", ++ "viewMoreDetails": "查看更多详情", ++ "viewMoreDetailsPlans": "查看有关订阅和定价的更多信息", ++ "viewUsageHistory": "查看使用历史", ++ "yearly": "年度", ++ "yearlyCreditsLabel": "总共年度积分", ++ "yearlyDiscount": "20% 减免", ++ "yourPlanIncludes": "您的计划包括:" ++ }, ++ "tabMenu": { ++ "addToBookmarks": "添加到书签", ++ "closeOtherTabs": "关闭其他标签", ++ "closeTab": "关闭标签", ++ "closeTabsToLeft": "关闭左侧标签", ++ "closeTabsToRight": "关闭右侧标签", ++ "duplicateTab": "复制标签", ++ "removeFromBookmarks": "从书签中移除" ++ }, ++ "templateWidgets": { ++ "sort": { ++ "searchPlaceholder": "搜索中..." + } + }, +- "mediaAsset": { +- "deleteAssetTitle": "删除此资产?", +- "deleteAssetDescription": "此资产将被永久删除。", +- "deleteSelectedTitle": "删除所选资产?", +- "deleteSelectedDescription": "{count} 项资产将被永久删除。", +- "assetDeletedSuccessfully": "资产删除成功", +- "deletingImportedFilesCloudOnly": "删除导入文件仅支持云版本", +- "failedToDeleteAsset": "删除资产失败", +- "actions": { +- "addToWorkflow": "添加到当前工作流", +- "copyJobId": "复制任务ID", +- "delete": "删除", +- "download": "下载", +- "exportWorkflow": "导出工作流", +- "inspect": "查看资产", +- "more": "更多设置", +- "openWorkflow": "在新标签页中读取工作流", +- "seeMoreOutputs": "查看更多输出" ++ "templateWorkflows": { ++ "activeFilters": "筛选条件:", ++ "allTemplates": "全部模板", ++ "categories": "分类", ++ "category": { ++ "3D": "3D", ++ "All": "所有模板", ++ "Area Composition": "区域合成", ++ "Audio": "音频生成", ++ "Basics": "基础", ++ "ComfyUI Examples": "ComfyUI示例", ++ "ControlNet": "ControlNet", ++ "Custom Nodes": "自定义节点", ++ "Extensions": "扩展", ++ "Flux": "Flux", ++ "Generation Type": "生成类型", ++ "GettingStarted": "入门", ++ "Image": "图像生成", ++ "Image API": "图像 API", ++ "LLM API": "LLM API", ++ "LLMs": "LLMs", ++ "Partner Nodes": "合作伙伴节点", ++ "Upscaling": "图像放大", ++ "Video": "视频生成", ++ "Video API": "视频 API" + }, +- "jobIdToast": { +- "copied": "已复制", +- "error": "错误", +- "jobIdCopied": "任务 ID 已复制到剪贴板", +- "jobIdCopyFailed": "复制队列 ID 失败" ++ "error": { ++ "templateNotFound": "未找到模板 \"{templateName}\"" + }, +- "selection": { +- "assetsDeletedSuccessfully": "已成功删除 {count} 个资产", +- "deleteSelected": "删除", +- "deselectAll": "取消全选", +- "downloadSelected": "下载", +- "downloadStarted": "正在下载 {count} 个文件...", +- "downloadsStarted": "开始下载 {count} 个文件", +- "failedToDeleteAssets": "未能删除所选资产", +- "partialDeleteSuccess": "{succeeded} 删除成功, {failed} 失败", +- "selectedCount": "已选择资产:{count}" ++ "licenseFilter": "许可证", ++ "loading": "正在加载模板...", ++ "loadingMore": "正在加载更多模板...", ++ "modelFilter": "模型筛选", ++ "modelsSelected": "已选 {count} 个模型", ++ "noResults": "未找到模板", ++ "noResultsHint": "请尝试调整搜索或筛选条件", ++ "resetFilters": "清除筛选", ++ "resultsCount": "显示 {count} / 共 {total} 个模板", ++ "runsOnFilter": "运行于", ++ "runsOnSelected": "{count} 次运行", ++ "searchPlaceholder": "搜索模板...", ++ "sort": { ++ "alphabetical": "A → Z", ++ "default": "默认", ++ "modelSizeLowToHigh": "模型大小(从低到高)", ++ "newest": "最新", ++ "recommended": "推荐", ++ "searchPlaceholder": "搜索...", ++ "vramLowToHigh": "VRAM 使用量(从低到高)" + }, +- "noJobIdFound": "该资产不包含任务ID", +- "unsupportedFileType": "加载节点不支持该类型文件", +- "nodeTypeNotFound": "节点类型 {nodeType} 不存在", +- "failedToCreateNode": "创建节点失败", +- "nodeAddedToWorkflow": "{nodeType} 节点已添加到工作流", +- "noWorkflowDataFound": "该资产不包含工作流数据", +- "workflowOpenedInNewTab": "工作流已在新标签页中打开", +- "failedToExportWorkflow": "工作流导出失败", +- "workflowExportedSuccessfully": "工作流导出成功!" ++ "sorting": "排序方式", ++ "title": "从模板开始", ++ "useCaseFilter": "使用例", ++ "useCasesSelected": "已选 {count} 个用例" + }, +- "actionbar": { +- "dockToTop": "停靠到顶部", +- "feedback": "反馈", +- "feedbackTooltip": "反馈" ++ "toastMessages": { ++ "cannotCreateSubgraph": "无法创建子工作流", ++ "couldNotDetermineFileType": "无法确定文件类型", ++ "dropFileError": "无法处理掉落的项目:{error}", ++ "emptyCanvas": "画布为空", ++ "errorCopyImage": "复制图片出错:{error}", ++ "errorLoadingModel": "加载模型出错", ++ "errorSaveSetting": "保存设置 {id} 出错:{err}", ++ "exportSuccess": "成功将模型导出为 {format}", ++ "failedExecutionPathResolution": "无法解析所选节点的路径", ++ "failedToAccessBillingPortal": "访问账单门户失败:{error}", ++ "failedToApplyTexture": "应用纹理失败", ++ "failedToConvertToSubgraph": "无法将项目转换为子工作流", ++ "failedToCreateCustomer": "创建客户失败:{error}", ++ "failedToDownloadFile": "文件下载失败", ++ "failedToExportModel": "无法将模型导出为 {format}", ++ "failedToFetchBalance": "获取余额失败:{error}", ++ "failedToFetchLogs": "无法获取服务器日志", ++ "failedToFetchSubscription": "获取订阅状态失败:{error}", ++ "failedToInitializeLoad3dViewer": "初始化3D查看器失败", ++ "failedToInitiateCreditPurchase": "发起积分购买失败:{error}", ++ "failedToInitiateSubscription": "订阅启动失败:{error}", ++ "failedToLoadBackgroundImage": "无法加载背景图片", ++ "failedToLoadModel": "无法加载3D模型", ++ "failedToPurchaseCredits": "购买积分失败:{error}", ++ "failedToQueue": "排队失败", ++ "failedToToggleCamera": "切换镜头失败", ++ "failedToToggleGrid": "切换网格失败", ++ "failedToUpdateBackgroundColor": "更新背景色失败", ++ "failedToUpdateBackgroundImage": "更新背景图像失败", ++ "failedToUpdateBackgroundRenderMode": "切换背景模式到 {mode} 失败", ++ "failedToUpdateEdgeThreshold": "更新边缘阈值失败", ++ "failedToUpdateFOV": "更新FOV失败", ++ "failedToUpdateLightIntensity": "更新光照强度失败", ++ "failedToUpdateMaterialMode": "更新材质模式失败", ++ "failedToUpdateUpDirection": "更新向上轴失败", ++ "failedToUploadBackgroundImage": "上传背景图像失败", ++ "fileLoadError": "无法在 {fileName} 中找到工作流", ++ "fileUploadFailed": "文件上传失败", ++ "interrupted": "执行已被中断", ++ "legacyMaskEditorDeprecated": "旧版遮罩编辑器已弃用,即将删除。", ++ "migrateToLitegraphReroute": "将来的版本中将删除重定向节点。点击以迁移到litegraph-native重定向。", ++ "modelLoadedSuccessfully": "3D模型加载成功", ++ "no3dScene": "没有3D场景可以应用纹理", ++ "no3dSceneToExport": "没有3D场景可以导出", ++ "noTemplatesToExport": "没有模板可以导出", ++ "nodeDefinitionsUpdated": "节点定义已更新", ++ "nothingSelected": "未选择任何内容", ++ "nothingToGroup": "没有可分组的内容", ++ "nothingToQueue": "没有可加入队列的内容", ++ "pendingTasksDeleted": "待处理任务已删除", ++ "pleaseSelectNodesToGroup": "请选取节点(或其他组)以创建分组", ++ "pleaseSelectOutputNodes": "请选择输出节点", ++ "unableToGetModelFilePath": "无法获取模型文件路径", ++ "unauthorizedDomain": "您的域名 {domain} 未被授权使用此服务。请联系 {email} 将您的域名添加到白名单。", ++ "updateRequested": "已请求更新", ++ "useApiKeyTip": "提示:无法正常登录?请使用 Comfy API Key 选项。", ++ "userNotAuthenticated": "用户未认证" + }, +- "desktopDialogs": { +- "": { +- "buttons": { +- "Close": "关闭" +- }, +- "message": "提供的对话 ID 无效。", +- "title": "无效对话框" +- } ++ "userSelect": { ++ "enterUsername": "输入用户名", ++ "existingUser": "用户已存在", ++ "newUser": "新用户", ++ "next": "下一步", ++ "selectUser": "选择用户" ++ }, ++ "userSettings": { ++ "accountSettings": "用户设置", ++ "email": "电子邮件", ++ "name": "名称", ++ "notSet": "未设置", ++ "provider": "登录方式", ++ "title": "我的用户设置", ++ "updatePassword": "更新密码" ++ }, ++ "validation": { ++ "descriptionRequired": "描述是必填的", ++ "invalidEmail": "无效的电子邮件地址", ++ "length": "必须为{length}个字符", ++ "maxLength": "不能超过{length}个字符", ++ "minLength": "必须至少有{length}个字符", ++ "password": { ++ "lowercase": "必须包含至少一个小写字母", ++ "match": "密码必须匹配", ++ "minLength": "必须在8到32个字符之间", ++ "number": "必须包含至少一个数字", ++ "requirements": "密码要求", ++ "special": "必须包含至少一个特殊字符", ++ "uppercase": "必须包含至少一个大写字母" ++ }, ++ "personalDataConsentRequired": "您必须同意处理您的个人数据。", ++ "prefix": "必须以 {prefix} 开头", ++ "required": "必填" ++ }, ++ "versionMismatchWarning": { ++ "dismiss": "关闭", ++ "frontendNewer": "前端版本 {frontendVersion} 可能与后端版本 {backendVersion} 不相容。", ++ "frontendOutdated": "前端版本 {frontendVersion} 已过时。后端需要 {requiredVersion} 版或更高版本。", ++ "title": "版本相容性警告", ++ "updateFrontend": "更新前端" + }, + "vueNodesBanner": { +- "message": "- 更灵活的工作流,强大的新组件,为可扩展性而构建", + "title": "介绍 Nodes 2.0", + "tryItOut": "试试看" + }, +@@ -2402,45 +2387,59 @@ + "vueNodesMigrationMainMenu": { + "message": "在主菜单中随时切换回 Nodes 2.0" + }, +- "linearMode": { +- "openWorkflow": "打开工作流", +- "share": "分享" ++ "welcome": { ++ "getStarted": "开始使用", ++ "title": "欢迎使用 ComfyUI" + }, +- "missingNodes": { +- "cloud": { +- "description": "该工作流包含 Comfy Cloud 目前不支持的节点", +- "gotIt": "好的", +- "learnMore": "查看更多", +- "priorityMessage": "我们已经标记这些节点,将会优先支持它们。", +- "replacementInstruction": "同时,如果可能的话,将这些节点(红色突出显示)替换为已经支持的节点,或者尝试不同的工作流。", +- "title": "Comfy Cloud 目前不支持这些节点" ++ "whatsNewPopup": { ++ "later": "Later", ++ "learnMore": "了解更多", ++ "noReleaseNotes": "暂无更新说明。" ++ }, ++ "widgetFileUpload": { ++ "browseFiles": "浏览文件", ++ "dropPrompt": "将文件拖到此处或" ++ }, ++ "widgets": { ++ "selectModel": "选择模型", ++ "uploadSelect": { ++ "placeholder": "请选择...", ++ "placeholderAudio": "请选择音频...", ++ "placeholderImage": "请选择图片...", ++ "placeholderModel": "请选择模型...", ++ "placeholderUnknown": "请选择媒体...", ++ "placeholderVideo": "请选择视频..." + }, +- "oss": { +- "description": "该工作流包含您未安装的自定义节点", +- "replacementInstruction": "安装这些节点后运行此工作流,或者用已安装的节点替换它们。缺失的节点在画布上以红色突出显示。", +- "title": "该工作流含有缺失节点" ++ "valueControl": { ++ "decrement": "递减值", ++ "decrementDesc": "数值-1或切换到上一个选项", ++ "editSettings": "改变控制设置", ++ "fixed": "固定值", ++ "fixedDesc": "数值不变", ++ "header": { ++ "after": "之后", ++ "before": "之前", ++ "postfix": "正在运行工作流:", ++ "prefix": "自动更新该值" ++ }, ++ "increment": "递增值", ++ "incrementDesc": "数值+1或切换到下一个选项", ++ "linkToGlobal": "连接到", ++ "linkToGlobalDesc": "唯一值连接到全局值控制设置", ++ "linkToGlobalSeed": "全局值", ++ "randomize": "随机值", ++ "randomizeDesc": "每次运行后随机化该值" + } + }, +- "rightSidePanel": { +- "bypass": "忽略", +- "color": "节点颜色", +- "info": "信息", +- "inputs": "输入", +- "inputsNone": "无输入", +- "inputsNoneTooltip": "节点没有输入", +- "mute": "禁用", +- "noSelection": "选择一个节点查看其属性信息。", +- "nodeState": "节点状态", +- "normal": "正常", +- "parameters": "参数", +- "pinned": "顶固", +- "properties": "属性", +- "settings": "设置", +- "title": "无选中节点 | 选中了 1 个节点 | 选中了 {count} 个节点", +- "togglePanel": "开关属性面板" ++ "workflowService": { ++ "enterFilename": "输入文件名", ++ "exportWorkflow": "导出工作流", ++ "saveWorkflow": "保存工作流" + }, +- "help": { +- "helpCenterMenu": "帮助中心菜单", +- "recentReleases": "最近发布" ++ "zoomControls": { ++ "hideMinimap": "隐藏小地图", ++ "label": "缩放控制", ++ "showMinimap": "显示小地图", ++ "zoomToFit": "适合画面" + } +-} +\ No newline at end of file ++} +diff --git a/src/locales/zh/nodeDefs.json b/src/locales/zh/nodeDefs.json +index 5b27ef9d7bd..59e0228561f 100644 +--- a/src/locales/zh/nodeDefs.json ++++ b/src/locales/zh/nodeDefs.json +@@ -73,8 +73,8 @@ + } + }, + "AudioConcat": { +- "display_name": "音频拼接", + "description": "将 音频1 与 音频2 按指定方向连接。", ++ "display_name": "音频拼接", + "inputs": { + "audio1": { + "name": "音频1" +@@ -109,9 +109,6 @@ + "inputs": { + "audio_encoder_name": { + "name": "音频编码器" +- }, +- "audio": { +- "name": "音频" + } + }, + "outputs": { +@@ -121,8 +118,8 @@ + } + }, + "AudioMerge": { +- "display_name": "音频合并", + "description": "叠加 音频1 和 音频2 轨道的波形。", ++ "display_name": "音频合并", + "inputs": { + "audio1": { + "name": "音频1" +@@ -587,8 +584,8 @@ + } + }, + "CLIPLoader": { +- "display_name": "加载CLIP", + "description": "[配方]\n\nStable Diffusion:clip-l\nStable Cascade:clip-g\nSD3:t5 / clip-g / clip-l\nStable Audio:t5\nMochi:t5\ncosmos:old t5 xxl", ++ "display_name": "加载CLIP", + "inputs": { + "clip_name": { + "name": "CLIP名称" +@@ -767,8 +764,8 @@ + } + }, + "CLIPTextEncodeLumina2": { +- "display_name": "CLIP文本编码Lumina2", + "description": "使用CLIP模型将系统提示和用户提示编码成可以用来引导扩散模型生成特定图像的嵌入。", ++ "display_name": "CLIP文本编码Lumina2", + "inputs": { + "clip": { + "name": "clip", +@@ -790,8 +787,8 @@ + } + }, + "CLIPTextEncodePixArtAlpha": { +- "display_name": "CLIP文本编码PixArtAlpha", + "description": "编码文本并设置PixArt Alpha的分辨率条件。不适用于PixArt Sigma。", ++ "display_name": "CLIP文本编码PixArtAlpha", + "inputs": { + "clip": { + "name": "剪辑" +@@ -1873,8 +1870,8 @@ + } + }, + "EasyCache": { +- "display_name": "EasyCache", + "description": "原生 EasyCache 实现。", ++ "display_name": "EasyCache", + "inputs": { + "end_percent": { + "name": "结束位置", +@@ -2022,8 +2019,8 @@ + "EmptyHunyuanVideo15Latent": { + "display_name": "空Latent视频(Hunyuan1.5)", + "inputs": { +- "width": { +- "name": "宽度" ++ "batch_size": { ++ "name": "批次大小" + }, + "height": { + "name": "高度" +@@ -2031,8 +2028,8 @@ + "length": { + "name": "时长" + }, +- "batch_size": { +- "name": "批次大小" ++ "width": { ++ "name": "宽度" + } + }, + "outputs": { +@@ -2247,8 +2244,8 @@ + } + }, + "FluxDisableGuidance": { +- "display_name": "Flux禁用指导", + "description": "此节点完全禁用Flux和类似Flux模型上的指导嵌入", ++ "display_name": "Flux禁用指导", + "inputs": { + "conditioning": { + "name": "条件" +@@ -2277,8 +2274,8 @@ + } + }, + "FluxKontextImageScale": { +- "display_name": "图像缩放为FluxKontext", + "description": "此节点将图像调整为更适合 flux kontext 的尺寸。", ++ "display_name": "图像缩放为FluxKontext", + "inputs": { + "image": { + "name": "图像" +@@ -2291,8 +2288,8 @@ + } + }, + "FluxKontextMaxImageNode": { +- "display_name": "Flux.1 Kontext [max] 图像", + "description": "使用Flux.1 Kontext [max]通过API基于提示词和宽高比编辑图像。", ++ "display_name": "Flux.1 Kontext [max] 图像", + "inputs": { + "aspect_ratio": { + "name": "宽高比", +@@ -2523,8 +2520,8 @@ + } + }, + "FreSca": { +- "display_name": "FreSca", + "description": "对引导应用频率相关的缩放", ++ "display_name": "FreSca", + "inputs": { + "freq_cutoff": { + "name": "低频阈值", +@@ -2644,36 +2641,43 @@ + } + } + }, +- "GeminiImageNode": { +- "display_name": "Nano Banana (Google Gemini 图像)", +- "description": "通过Google API同步编辑图像。", ++ "GeminiImage2Node": { ++ "description": "通过Google API编辑图像。", ++ "display_name": "Nano Banana Pro(Google Gemini 图像)", + "inputs": { + "aspect_ratio": { + "name": "宽高比", +- "tooltip": "默认匹配输入图像的输出尺寸,否则生成1:1正方形。" ++ "tooltip": "自动:会自动匹配输入图像的宽高比,或如果没有提供图像,则生成1:1的正方形。" + }, + "control_after_generate": { + "name": "生成后控制" + }, + "files": { + "name": "文件", +- "tooltip": "可选文件,用作模型的上下文。接受来自Gemini生成内容输入文件节点的输入。" ++ "tooltip": "模型上下文文件。接受来自 Gemini输入文件 节点的输入。" + }, + "images": { + "name": "图像", +- "tooltip": "可选图像,用作模型的上下文。要包含多个图像,可以使用批量图像节点。" ++ "tooltip": "参考图像。如果要使用多个参考图,使用 图像批次 节点(最多14张)。" + }, + "model": { +- "name": "模型", +- "tooltip": "用于生成响应的Gemini模型。" ++ "name": "模型" + }, + "prompt": { + "name": "提示词", +- "tooltip": "用于生成的文本提示词" ++ "tooltip": "使用文本描述要生成的图像或要应用的编辑的内容。包括模型应该遵循的任何约束、样式或细节。" ++ }, ++ "resolution": { ++ "name": "分辨率", ++ "tooltip": "目标分辨率。2K/4K 会使用 Gemini 放大生成。" ++ }, ++ "response_modalities": { ++ "name": "响应模态", ++ "tooltip": "选择 图像 仅生成图像,选择 图像+文本 会生成图像和文本。" + }, + "seed": { +- "name": "种子", +- "tooltip": "当种子固定为特定值时,模型会尽力为重复请求提供相同的响应。不能保证确定性输出。此外,更改模型或参数设置(如温度)即使使用相同的种子值也可能导致响应变化。默认使用随机种子值。" ++ "name": "随机种", ++ "tooltip": "为特定值时,模型将尽可能提供相同的结果。但不保证确定一致的输出。此外,即使使用相同的种子值,更改模型或参数设置(例如温度)也会导致结果变化。默认使用随机值。" + } + }, + "outputs": { +@@ -2685,43 +2689,36 @@ + } + } + }, +- "GeminiImage2Node": { +- "display_name": "Nano Banana Pro(Google Gemini 图像)", +- "description": "通过Google API编辑图像。", ++ "GeminiImageNode": { ++ "description": "通过Google API同步编辑图像。", ++ "display_name": "Nano Banana (Google Gemini 图像)", + "inputs": { +- "prompt": { +- "name": "提示词", +- "tooltip": "使用文本描述要生成的图像或要应用的编辑的内容。包括模型应该遵循的任何约束、样式或细节。" +- }, +- "model": { +- "name": "模型" +- }, +- "seed": { +- "name": "随机种", +- "tooltip": "为特定值时,模型将尽可能提供相同的结果。但不保证确定一致的输出。此外,即使使用相同的种子值,更改模型或参数设置(例如温度)也会导致结果变化。默认使用随机值。" +- }, + "aspect_ratio": { + "name": "宽高比", +- "tooltip": "自动:会自动匹配输入图像的宽高比,或如果没有提供图像,则生成1:1的正方形。" ++ "tooltip": "默认匹配输入图像的输出尺寸,否则生成1:1正方形。" + }, +- "resolution": { +- "name": "分辨率", +- "tooltip": "目标分辨率。2K/4K 会使用 Gemini 放大生成。" ++ "control_after_generate": { ++ "name": "生成后控制" + }, +- "response_modalities": { +- "name": "响应模态", +- "tooltip": "选择 图像 仅生成图像,选择 图像+文本 会生成图像和文本。" ++ "files": { ++ "name": "文件", ++ "tooltip": "可选文件,用作模型的上下文。接受来自Gemini生成内容输入文件节点的输入。" + }, + "images": { + "name": "图像", +- "tooltip": "参考图像。如果要使用多个参考图,使用 图像批次 节点(最多14张)。" ++ "tooltip": "可选图像,用作模型的上下文。要包含多个图像,可以使用批量图像节点。" + }, +- "files": { +- "name": "文件", +- "tooltip": "模型上下文文件。接受来自 Gemini输入文件 节点的输入。" ++ "model": { ++ "name": "模型", ++ "tooltip": "用于生成响应的Gemini模型。" + }, +- "control_after_generate": { +- "name": "生成后控制" ++ "prompt": { ++ "name": "提示词", ++ "tooltip": "用于生成的文本提示词" ++ }, ++ "seed": { ++ "name": "种子", ++ "tooltip": "当种子固定为特定值时,模型会尽力为重复请求提供相同的响应。不能保证确定性输出。此外,更改模型或参数设置(如温度)即使使用相同的种子值也可能导致响应变化。默认使用随机种子值。" + } + }, + "outputs": { +@@ -2734,8 +2731,8 @@ + } + }, + "GeminiInputFiles": { +- "display_name": "Gemini 输入文件", + "description": "加载并准备输入文件,作为 Gemini LLM 节点的输入。文件将在生成响应时由 Gemini 模型读取。文本文件的内容计入令牌限制。🛈 提示:可与其他 Gemini 输入文件节点链式连接。", ++ "display_name": "Gemini 输入文件", + "inputs": { + "GEMINI_INPUT_FILES": { + "name": "Gemini 输入文件", +@@ -2966,17 +2963,11 @@ + "HunyuanVideo15ImageToVideo": { + "display_name": "Hunyuan Video 15 图像到视频", + "inputs": { +- "positive": { +- "name": "正面条件" +- }, +- "negative": { +- "name": "负面条件" +- }, +- "vae": { +- "name": "vae" ++ "batch_size": { ++ "name": "批次大小" + }, +- "width": { +- "name": "宽度" ++ "clip_vision_output": { ++ "name": "CLIP视觉输出" + }, + "height": { + "name": "高度" +@@ -2984,14 +2975,20 @@ + "length": { + "name": "帧数" + }, +- "batch_size": { +- "name": "批次大小" ++ "negative": { ++ "name": "负面条件" ++ }, ++ "positive": { ++ "name": "正面条件" + }, + "start_image": { + "name": "图像" + }, +- "clip_vision_output": { +- "name": "CLIP视觉输出" ++ "vae": { ++ "name": "vae" ++ }, ++ "width": { ++ "name": "宽度" + } + }, + "outputs": { +@@ -3012,6 +3009,12 @@ + "HunyuanVideo15LatentUpscaleWithModel": { + "display_name": "Hunyuan Video 15 Latent 使用模型放大", + "inputs": { ++ "crop": { ++ "name": "裁剪" ++ }, ++ "height": { ++ "name": "高度" ++ }, + "model": { + "name": "模型" + }, +@@ -3023,12 +3026,6 @@ + }, + "width": { + "name": "宽度" +- }, +- "height": { +- "name": "高度" +- }, +- "crop": { +- "name": "裁剪" + } + }, + "outputs": { +@@ -3040,26 +3037,26 @@ + "HunyuanVideo15SuperResolution": { + "display_name": "Hunyuan Video 15超分辨率", + "inputs": { +- "positive": { +- "name": "正面条件" +- }, +- "negative": { +- "name": "负面条件" ++ "clip_vision_output": { ++ "name": "CLIP视觉输出" + }, + "latent": { + "name": "latent" + }, ++ "negative": { ++ "name": "负面条件" ++ }, + "noise_augmentation": { + "name": "噪波增强" + }, +- "vae": { +- "name": "vae" ++ "positive": { ++ "name": "正面条件" + }, + "start_image": { + "name": "图像" + }, +- "clip_vision_output": { +- "name": "CLIP视觉输出" ++ "vae": { ++ "name": "vae" + } + }, + "outputs": { +@@ -4015,8 +4012,8 @@ + } + }, + "KlingDualCharacterVideoEffectNode": { +- "display_name": "Kling 双角色视频特效", + "description": "根据 效果 在生成视频时实现不同的特效。第一张图片将被放置在合成画面的左侧,第二张图片在右侧。", ++ "display_name": "Kling 双角色视频特效", + "inputs": { + "duration": { + "name": "时长" +@@ -5007,46 +5004,6 @@ + }, + "5": { + "name": "相机信息" +- }, +- "6": { +- "name": "录制视频" +- } +- } +- }, +- "Load3DAnimation": { +- "display_name": "加载3D动画", +- "inputs": { +- "height": { +- "name": "高度" +- }, +- "image": { +- "name": "图像" +- }, +- "model_file": { +- "name": "模型文件" +- }, +- "width": { +- "name": "宽度" +- } +- }, +- "outputs": { +- "0": { +- "name": "图像" +- }, +- "1": { +- "name": "遮罩" +- }, +- "2": { +- "name": "网格路径" +- }, +- "3": { +- "name": "法线" +- }, +- "4": { +- "name": "相机信息" +- }, +- "5": { +- "name": "录制视频" + } + } + }, +@@ -8526,333 +8483,74 @@ + } + } + }, +- "PikaImageToVideoNode2_2": { +- "description": "将图像和提示词发送到 Pika API v2.2 以生成视频。", +- "display_name": "Pika 图像转视频", ++ "PixverseImageToVideoNode": { ++ "description": "根据提示词和输出尺寸同步生成视频。", ++ "display_name": "PixVerse 图像转视频", + "inputs": { + "control_after_generate": { + "name": "生成后控制" + }, +- "duration": { +- "name": "时长" ++ "duration_seconds": { ++ "name": "时长(秒)" + }, + "image": { +- "name": "图像", +- "tooltip": "要转换为视频的图像" ++ "name": "图像" ++ }, ++ "motion_mode": { ++ "name": "运动模式" + }, + "negative_prompt": { +- "name": "反向提示词" ++ "name": "反向提示词", ++ "tooltip": "可选的文本描述,用于指定图像中不希望出现的元素。" + }, +- "prompt_text": { +- "name": "提示词" ++ "pixverse_template": { ++ "name": "PixVerse 模板", ++ "tooltip": "可选模板,由 PixVerse Template 节点创建,用于影响生成风格。" + }, +- "resolution": { +- "name": "分辨率" ++ "prompt": { ++ "name": "提示词", ++ "tooltip": "用于视频生成的提示词" ++ }, ++ "quality": { ++ "name": "质量" + }, + "seed": { +- "name": "种子" ++ "name": "种子", ++ "tooltip": "用于视频生成的种子。" ++ } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } ++ } ++ }, ++ "PixverseTemplateNode": { ++ "display_name": "PixVerse 模板", ++ "inputs": { ++ "template": { ++ "name": "模板" + } + }, + "outputs": { + "0": { ++ "name": "Pixverse模板", + "tooltip": null + } + } + }, +- "PikaScenesV2_2": { +- "description": "将你的图像组合在一起,生成包含所有物体的高质量视频。上传多张图片作为素材,生成融合所有内容的视频。", +- "display_name": "Pika 场景(视频图像合成)", ++ "PixverseTextToVideoNode": { ++ "description": "根据提示词和输出尺寸同步生成视频。", ++ "display_name": "PixVerse 文本转视频", + "inputs": { + "aspect_ratio": { +- "name": "宽高比", +- "tooltip": "宽高比(宽 / 高)" ++ "name": "宽高比" + }, + "control_after_generate": { + "name": "生成后控制" + }, +- "duration": { +- "name": "时长" +- }, +- "image_ingredient_1": { +- "name": "图片素材 1", +- "tooltip": "用于生成视频的图片素材。" +- }, +- "image_ingredient_2": { +- "name": "图片素材 2", +- "tooltip": "用于生成视频的图片素材。" +- }, +- "image_ingredient_3": { +- "name": "图片素材 3", +- "tooltip": "用于生成视频的图片素材。" +- }, +- "image_ingredient_4": { +- "name": "图片素材 4", +- "tooltip": "用于生成视频的图片素材。" +- }, +- "image_ingredient_5": { +- "name": "图片素材 5", +- "tooltip": "用于生成视频的图片素材。" +- }, +- "ingredients_mode": { +- "name": "素材模式" +- }, +- "negative_prompt": { +- "name": "反向提示词" +- }, +- "prompt_text": { +- "name": "提示词" +- }, +- "resolution": { +- "name": "分辨率" +- }, +- "seed": { +- "name": "随机种子" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "PikaStartEndFrameNode2_2": { +- "description": "通过合成首帧和尾帧生成视频。上传两张图片以定义起点和终点,让 AI 在它们之间创建平滑过渡。", +- "display_name": "Pika 首尾帧合成视频", +- "inputs": { +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "duration": { +- "name": "时长" +- }, +- "image_end": { +- "name": "结束图像", +- "tooltip": "要合成的最后一张图片。" +- }, +- "image_start": { +- "name": "起始图像", +- "tooltip": "要合成的第一张图片。" +- }, +- "negative_prompt": { +- "name": "负面提示词" +- }, +- "prompt_text": { +- "name": "提示词" +- }, +- "resolution": { +- "name": "分辨率" +- }, +- "seed": { +- "name": "随机种" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "PikaTextToVideoNode2_2": { +- "description": "将文本提示发送到 Pika API v2.2 以生成视频。", +- "display_name": "Pika 文本转视频", +- "inputs": { +- "aspect_ratio": { +- "name": "宽高比", +- "tooltip": "宽高比(宽 / 高)" +- }, +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "duration": { +- "name": "时长" +- }, +- "negative_prompt": { +- "name": "反向提示" +- }, +- "prompt_text": { +- "name": "提示文本" +- }, +- "resolution": { +- "name": "分辨率" +- }, +- "seed": { +- "name": "种子" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "Pikadditions": { +- "description": "将任意对象或图像添加到你的视频中。上传一个视频并指定你想要添加的内容,实现无缝集成的效果。", +- "display_name": "Pikadditions(视频对象插入)", +- "inputs": { +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "image": { +- "name": "图像", +- "tooltip": "要添加到视频中的图像。" +- }, +- "negative_prompt": { +- "name": "反向提示词" +- }, +- "prompt_text": { +- "name": "提示词" +- }, +- "seed": { +- "name": "种子" +- }, +- "video": { +- "name": "视频", +- "tooltip": "要添加图像的视频。" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "Pikaffects": { +- "description": "生成带有特定Pikaffect的视频。支持的Pikaffect有:Cake-ify、Crumble、Crush、Decapitate、Deflate、Dissolve、Explode、Eye-pop、Inflate、Levitate、Melt、Peel、Poke、Squish、Ta-da、Tear", +- "display_name": "Pikaffects(视频特效)", +- "inputs": { +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "image": { +- "name": "图像", +- "tooltip": "要应用Pikaffect的参考图像。" +- }, +- "negative_prompt": { +- "name": "负面提示词" +- }, +- "pikaffect": { +- "name": "pikaffect" +- }, +- "prompt_text": { +- "name": "提示词" +- }, +- "seed": { +- "name": "随机种" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "Pikaswaps": { +- "description": "用新图像或对象替换视频中的任意对象或区域。可通过 mask 或坐标定义需要替换的区域。", +- "display_name": "Pika Swaps(视频对象替换)", +- "inputs": { +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "image": { +- "name": "图像", +- "tooltip": "用于替换视频中被 mask 的对象的图像。" +- }, +- "mask": { +- "name": "遮罩", +- "tooltip": "使用 mask 定义视频中需要替换的区域" +- }, +- "negative_prompt": { +- "name": "反向提示词" +- }, +- "prompt_text": { +- "name": "提示词" +- }, +- "region_to_modify": { +- "name": "修改区域", +- "tooltip": "要修改的对象/区域的纯文本描述。" +- }, +- "seed": { +- "name": "种子" +- }, +- "video": { +- "name": "视频", +- "tooltip": "要在其中替换对象的视频。" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "PixverseImageToVideoNode": { +- "description": "根据提示词和输出尺寸同步生成视频。", +- "display_name": "PixVerse 图像转视频", +- "inputs": { +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "duration_seconds": { +- "name": "时长(秒)" +- }, +- "image": { +- "name": "图像" +- }, +- "motion_mode": { +- "name": "运动模式" +- }, +- "negative_prompt": { +- "name": "反向提示词", +- "tooltip": "可选的文本描述,用于指定图像中不希望出现的元素。" +- }, +- "pixverse_template": { +- "name": "PixVerse 模板", +- "tooltip": "可选模板,由 PixVerse Template 节点创建,用于影响生成风格。" +- }, +- "prompt": { +- "name": "提示词", +- "tooltip": "用于视频生成的提示词" +- }, +- "quality": { +- "name": "质量" +- }, +- "seed": { +- "name": "种子", +- "tooltip": "用于视频生成的种子。" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, +- "PixverseTemplateNode": { +- "display_name": "PixVerse 模板", +- "inputs": { +- "template": { +- "name": "模板" +- } +- }, +- "outputs": { +- "0": { +- "name": "Pixverse模板", +- "tooltip": null +- } +- } +- }, +- "PixverseTextToVideoNode": { +- "description": "根据提示词和输出尺寸同步生成视频。", +- "display_name": "PixVerse 文本转视频", +- "inputs": { +- "aspect_ratio": { +- "name": "宽高比" +- }, +- "control_after_generate": { +- "name": "生成后控制" +- }, +- "duration_seconds": { +- "name": "时长(秒)" ++ "duration_seconds": { ++ "name": "时长(秒)" + }, + "motion_mode": { + "name": "运动模式" +@@ -11676,21 +11374,19 @@ + } + }, + "TopazImageEnhance": { +- "display_name": "Topaz 图像增强", + "description": "专业级放大和图像增强。", ++ "display_name": "Topaz 图像增强", + "inputs": { +- "model": { +- "name": "模型" +- }, +- "image": { +- "name": "图像" ++ "color_preservation": { ++ "name": "固定色彩", ++ "tooltip": "保证色彩一致性。" + }, +- "prompt": { +- "name": "提示词", +- "tooltip": "用于引导放大" ++ "creativity": { ++ "name": "多样性" + }, +- "subject_detection": { +- "name": "物体检测" ++ "crop_to_fill": { ++ "name": "裁剪", ++ "tooltip": "默认情况下,当输出宽高比不同时,图像会带有边框。启用后会裁剪图像填充输出尺寸。" + }, + "face_enhancement": { + "name": "面部增强", +@@ -11704,28 +11400,30 @@ + "name": "面部增强强度", + "tooltip": "控制面部相对于背景的锐度。" + }, +- "crop_to_fill": { +- "name": "裁剪", +- "tooltip": "默认情况下,当输出宽高比不同时,图像会带有边框。启用后会裁剪图像填充输出尺寸。" ++ "face_preservation": { ++ "name": "固定面部", ++ "tooltip": "保证主体面部一致性。" + }, +- "output_width": { +- "name": "输出宽度", +- "tooltip": "0为自动(一般情况下和输入图像相同)。" ++ "image": { ++ "name": "图像" ++ }, ++ "model": { ++ "name": "模型" + }, + "output_height": { + "name": "输出高度", + "tooltip": "0为自动(一般情况下和输入图像相同)。" + }, +- "creativity": { +- "name": "多样性" ++ "output_width": { ++ "name": "输出宽度", ++ "tooltip": "0为自动(一般情况下和输入图像相同)。" + }, +- "face_preservation": { +- "name": "固定面部", +- "tooltip": "保证主体面部一致性。" ++ "prompt": { ++ "name": "提示词", ++ "tooltip": "用于引导放大" + }, +- "color_preservation": { +- "name": "固定色彩", +- "tooltip": "保证色彩一致性。" ++ "subject_detection": { ++ "name": "物体检测" + } + }, + "outputs": { +@@ -11735,28 +11433,28 @@ + } + }, + "TopazVideoEnhance": { +- "display_name": "Topaz 视频增强", + "description": "通过强大的放大和修复技术,为视频注入新的生命。", ++ "display_name": "Topaz 视频增强", + "inputs": { +- "video": { +- "name": "视频" +- }, +- "upscaler_enabled": { +- "name": "放大" +- }, +- "upscaler_model": { +- "name": "放大模型" ++ "dynamic_compression_level": { ++ "name": "动态压缩", ++ "tooltip": "CQP 等级." + }, +- "upscaler_resolution": { +- "name": "放大分辨率" ++ "interpolation_duplicate": { ++ "name": "补帧重复帧", ++ "tooltip": "分析原视频,移除重复的帧。" + }, +- "upscaler_creativity": { +- "name": "放大多样性", +- "tooltip": "多样等级(仅适用 Starlight (Astra) Creative 模型)." ++ "interpolation_duplicate_threshold": { ++ "name": "补帧重复帧阈值", ++ "tooltip": "判断为重复帧的阈值。" + }, + "interpolation_enabled": { + "name": "补帧" + }, ++ "interpolation_frame_rate": { ++ "name": "补帧帧率", ++ "tooltip": "输出帧率" ++ }, + "interpolation_model": { + "name": "补帧模型" + }, +@@ -11764,21 +11462,21 @@ + "name": "补帧慢动作", + "tooltip": "使用慢动作补帧。例如,设为 2 会让视频变慢到 0.5 倍,持续时间增加到 2 倍。" + }, +- "interpolation_frame_rate": { +- "name": "补帧帧率", +- "tooltip": "输出帧率" ++ "upscaler_creativity": { ++ "name": "放大多样性", ++ "tooltip": "多样等级(仅适用 Starlight (Astra) Creative 模型)." + }, +- "interpolation_duplicate": { +- "name": "补帧重复帧", +- "tooltip": "分析原视频,移除重复的帧。" ++ "upscaler_enabled": { ++ "name": "放大" + }, +- "interpolation_duplicate_threshold": { +- "name": "补帧重复帧阈值", +- "tooltip": "判断为重复帧的阈值。" ++ "upscaler_model": { ++ "name": "放大模型" + }, +- "dynamic_compression_level": { +- "name": "动态压缩", +- "tooltip": "CQP 等级." ++ "upscaler_resolution": { ++ "name": "放大分辨率" ++ }, ++ "video": { ++ "name": "视频" + } + }, + "outputs": { +@@ -12984,20 +12682,6 @@ + } + } + }, +- "wanBlockSwap": { +- "display_name": "Wan块置换", +- "description": "NOP", +- "inputs": { +- "model": { +- "name": "模型" +- } +- }, +- "outputs": { +- "0": { +- "tooltip": null +- } +- } +- }, + "WanCameraEmbedding": { + "display_name": "Wan相机嵌入", + "inputs": { +@@ -13865,5 +13549,19 @@ + "name": "强度" + } + } ++ }, ++ "wanBlockSwap": { ++ "description": "NOP", ++ "display_name": "Wan块置换", ++ "inputs": { ++ "model": { ++ "name": "模型" ++ } ++ }, ++ "outputs": { ++ "0": { ++ "tooltip": null ++ } ++ } + } + } diff --git a/docs/hel-892/openpose-reference/frontend-tag.txt b/docs/hel-892/openpose-reference/frontend-tag.txt new file mode 100644 index 00000000..666f4768 --- /dev/null +++ b/docs/hel-892/openpose-reference/frontend-tag.txt @@ -0,0 +1 @@ +52bb58d307242a34103998ef1da8007e47501d5b refs/tags/v1.36.12 diff --git a/docs/hel-892/openpose-reference/frontend__LICENSE b/docs/hel-892/openpose-reference/frontend__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/openpose-reference/frontend__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/openpose-reference/frontend__src__extensions__core__noteNode.ts b/docs/hel-892/openpose-reference/frontend__src__extensions__core__noteNode.ts new file mode 100644 index 00000000..7e0ec56a --- /dev/null +++ b/docs/hel-892/openpose-reference/frontend__src__extensions__core__noteNode.ts @@ -0,0 +1,84 @@ +import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph' +import { LGraphNode } from '@/lib/litegraph/src/litegraph' + +import { app } from '../../scripts/app' +import { ComfyWidgets } from '../../scripts/widgets' + +// Node that add notes to your project + +app.registerExtension({ + name: 'Comfy.NoteNode', + registerCustomNodes() { + class NoteNode extends LGraphNode { + static override category: string + static collapsable: boolean + static title_mode: number + + groupcolor = LGraphCanvas.node_colors.yellow.groupcolor + override isVirtualNode: boolean + + constructor(title: string) { + super(title) + + this.color = LGraphCanvas.node_colors.yellow.color + this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor + + if (!this.properties) { + this.properties = { text: '' } + } + ComfyWidgets.STRING( + this, + 'text', + ['STRING', { default: this.properties.text, multiline: true }], + app + ) + + this.serialize_widgets = true + this.isVirtualNode = true + } + } + + // Load default visibility + + LiteGraph.registerNodeType( + 'Note', + Object.assign(NoteNode, { + title_mode: LiteGraph.NORMAL_TITLE, + title: 'Note', + collapsable: true + }) + ) + + NoteNode.category = 'utils' + + /** Markdown variant of NoteNode */ + class MarkdownNoteNode extends LGraphNode { + static override title = 'Markdown Note' + + groupcolor = LGraphCanvas.node_colors.yellow.groupcolor + + constructor(title: string) { + super(title) + + this.color = LGraphCanvas.node_colors.yellow.color + this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor + + if (!this.properties) { + this.properties = { text: '' } + } + ComfyWidgets.MARKDOWN( + this, + 'text', + ['STRING', { default: this.properties.text }], + app + ) + + this.serialize_widgets = true + this.isVirtualNode = true + } + } + + LiteGraph.registerNodeType('MarkdownNote', MarkdownNoteNode) + MarkdownNoteNode.category = 'utils' + } +}) diff --git a/docs/hel-892/openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts b/docs/hel-892/openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts new file mode 100644 index 00000000..036bc566 --- /dev/null +++ b/docs/hel-892/openpose-reference/frontend__src__lib__litegraph__src__LGraphNode.ts @@ -0,0 +1,4194 @@ +import { LGraphNodeProperties } from '@/lib/litegraph/src/LGraphNodeProperties' +import { + calculateInputSlotPos, + calculateInputSlotPosFromSlot, + calculateOutputSlotPos, + getSlotPosition +} from '@/renderer/core/canvas/litegraph/slotCalculations' +import type { SlotPositionContext } from '@/renderer/core/canvas/litegraph/slotCalculations' +import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations' +import { LayoutSource } from '@/renderer/core/layout/types' +import { adjustColor } from '@/utils/colorUtil' +import type { ColorAdjustOptions } from '@/utils/colorUtil' +import { commonType, toClass } from '@/lib/litegraph/src/utils/type' + +import { SUBGRAPH_OUTPUT_ID } from '@/lib/litegraph/src/constants' +import type { DragAndScale } from './DragAndScale' +import type { LGraph } from './LGraph' +import { BadgePosition, LGraphBadge } from './LGraphBadge' +import { LGraphButton } from './LGraphButton' +import type { LGraphButtonOptions } from './LGraphButton' +import { LGraphCanvas } from './LGraphCanvas' +import { LLink } from './LLink' +import type { Reroute, RerouteId } from './Reroute' +import { getNodeInputOnPos, getNodeOutputOnPos } from './canvas/measureSlots' +import type { IDrawBoundingOptions } from './draw' +import { NullGraphError } from './infrastructure/NullGraphError' +import type { ReadOnlyRectangle } from './infrastructure/Rectangle' +import { Rectangle } from './infrastructure/Rectangle' +import type { + ColorOption, + CompassCorners, + DefaultConnectionColors, + Dictionary, + IColorable, + IContextMenuValue, + IFoundSlot, + INodeFlags, + INodeInputSlot, + INodeOutputSlot, + INodeSlot, + INodeSlotContextItem, + IPinnable, + ISlotType, + Point, + Positionable, + ReadOnlyRect, + Rect, + Size +} from './interfaces' +import { LiteGraph, Subgraph } from './litegraph' +import type { LGraphNodeConstructor, SubgraphNode } from './litegraph' +import { + createBounds, + isInRect, + isInRectangle, + isPointInRect, + snapPoint +} from './measure' +import { NodeInputSlot } from './node/NodeInputSlot' +import { NodeOutputSlot } from './node/NodeOutputSlot' +import { + inputAsSerialisable, + isINodeInputSlot, + isWidgetInputSlot, + outputAsSerialisable +} from './node/slotUtils' +import type { SubgraphInputNode } from './subgraph/SubgraphInputNode' +import type { SubgraphOutputNode } from './subgraph/SubgraphOutputNode' +import type { NodeLike } from './types/NodeLike' +import type { CanvasPointerEvent } from './types/events' +import { + LGraphEventMode, + NodeSlotType, + RenderShape, + TitleMode +} from './types/globalEnums' +import type { ISerialisedNode, SubgraphIO } from './types/serialisation' +import type { + IBaseWidget, + IWidgetOptions, + TWidgetType, + TWidgetValue +} from './types/widgets' +import { findFreeSlotOfType } from './utils/collections' +import { warnDeprecated } from './utils/feedback' +import { distributeSpace } from './utils/spaceDistribution' +import { truncateText } from './utils/textUtils' +import { BaseWidget } from './widgets/BaseWidget' +import { toConcreteWidget } from './widgets/widgetMap' +import type { WidgetTypeMap } from './widgets/widgetMap' + +// #region Types + +export type NodeId = number | string + +export type NodeProperty = string | number | boolean | object + +interface INodePropertyInfo { + name: string + type?: string + default_value: NodeProperty | undefined +} + +interface IMouseOverData { + inputId?: number + outputId?: number + overWidget?: IBaseWidget +} + +interface ConnectByTypeOptions { + /** @deprecated Events */ + createEventInCase?: boolean + /** Allow our wildcard slot to connect to typed slots on remote node. Default: true */ + wildcardToTyped?: boolean + /** Allow our typed slot to connect to wildcard slots on remote node. Default: true */ + typedToWildcard?: boolean + /** The {@link Reroute.id} that the connection is being dragged from. */ + afterRerouteId?: RerouteId +} + +/** Internal type used for type safety when implementing generic checks for inputs & outputs */ +interface IGenericLinkOrLinks { + links?: INodeOutputSlot['links'] + link?: INodeInputSlot['link'] +} + +interface FindFreeSlotOptions { + /** Slots matching these types will be ignored. Default: [] */ + typesNotAccepted?: ISlotType[] + /** If true, the slot itself is returned instead of the index. Default: false */ + returnObj?: boolean +} + +interface DrawSlotsOptions { + fromSlot?: INodeInputSlot | INodeOutputSlot + colorContext: DefaultConnectionColors + editorAlpha: number + lowQuality: boolean +} + +interface DrawWidgetsOptions { + lowQuality?: boolean + editorAlpha?: number +} + +interface DrawTitleOptions { + scale: number + title_height?: number + low_quality?: boolean +} + +interface DrawTitleTextOptions extends DrawTitleOptions { + default_title_color: string +} + +export interface DrawTitleBoxOptions extends DrawTitleOptions { + box_size?: number +} + +/* +title: string +pos: [x,y] +size: [x,y] + +input|output: every connection + + { name:string, type:string, pos: [x,y]=Optional, direction: "input"|"output", links: Array }); + +general properties: + + clip_area: if you render outside the node, it will be clipped + + unsafe_execution: not allowed for safe execution + + skip_repeated_outputs: when adding new outputs, it won't show if there is one already connected + + resizable: if set to false it won't be resizable with the mouse + + widgets_start_y: widgets start at y distance from the top of the node + +flags object: + + collapsed: if it is collapsed + +supported callbacks: + + onAdded: when added to graph (warning: this is called BEFORE the node is configured when loading) + + onRemoved: when removed from graph + + onStart: when the graph starts playing + + onStop: when the graph stops playing + + onDrawForeground: render the inside widgets inside the node + + onDrawBackground: render the background area inside the node (only in edit mode) + + onMouseDown + + onMouseMove + + onMouseUp + + onMouseEnter + + onMouseLeave + + onExecute: execute the node + + onPropertyChanged: when a property is changed in the panel (return true to skip default behaviour) + + onGetInputs: returns an array of possible inputs + + onGetOutputs: returns an array of possible outputs + + onBounding: in case this node has a bigger bounding than the node itself (the callback receives the bounding as [x,y,w,h]) + + onDblClick: double clicked in the node + + onNodeTitleDblClick: double clicked in the node title + + onInputDblClick: input slot double clicked (can be used to automatically create a node connected) + + onOutputDblClick: output slot double clicked (can be used to automatically create a node connected) + + onConfigure: called after the node has been configured + + onSerialize: to add extra info when serializing (the callback receives the object that should be filled with the data) + + onSelected + + onDeselected + + onDropItem : DOM item dropped over the node + + onDropFile : file dropped over the node + + onConnectInput : if returns false the incoming connection will be canceled + + onConnectionsChange : a connection changed (new one or removed) (NodeSlotType.INPUT or NodeSlotType.OUTPUT, slot, true if connected, link_info, input_info ) + + onAction: action slot triggered + + getExtraMenuOptions: to add option to context menu +*/ + +export interface LGraphNode { + constructor: LGraphNodeConstructor +} + +// #endregion Types + +/** + * Base class for all nodes + * @param title a name for the node + * @param type a type for the node + */ + +export class LGraphNode + implements NodeLike, Positionable, IPinnable, IColorable +{ + // Static properties used by dynamic child classes + static title?: string + static MAX_CONSOLE?: number + static type?: string + static category?: string + static description?: string + static filter?: string + static skip_list?: boolean + + static resizeHandleSize = 15 + static resizeEdgeSize = 5 + + /** Default setting for {@link LGraphNode.connectInputToOutput}. @see {@link INodeFlags.keepAllLinksOnBypass} */ + static keepAllLinksOnBypass: boolean = false + + /** The title text of the node. */ + title: string + /** + * The font style used to render the node's title text. + */ + get titleFontStyle(): string { + return `${LiteGraph.NODE_TEXT_SIZE}px ${LiteGraph.NODE_FONT}` + } + + get innerFontStyle(): string { + return `normal ${LiteGraph.NODE_SUBTEXT_SIZE}px ${LiteGraph.NODE_FONT}` + } + + get displayType(): string { + return this.type + } + + graph: LGraph | Subgraph | null = null + id: NodeId + type: string = '' + inputs: INodeInputSlot[] = [] + outputs: INodeOutputSlot[] = [] + + #concreteInputs: NodeInputSlot[] = [] + #concreteOutputs: NodeOutputSlot[] = [] + + properties: Dictionary = {} + properties_info: INodePropertyInfo[] = [] + flags: INodeFlags = {} + widgets?: IBaseWidget[] + + /** Property manager for this node */ + changeTracker: LGraphNodeProperties + + /** + * The amount of space available for widgets to grow into. + * @see {@link layoutWidgets} + */ + freeWidgetSpace?: number + + locked?: boolean + + /** Execution order, automatically computed during run @see {@link LGraph.computeExecutionOrder} */ + order: number = 0 + mode: LGraphEventMode = LGraphEventMode.ALWAYS + last_serialization?: ISerialisedNode + serialize_widgets?: boolean + /** + * The overridden fg color used to render the node. + * @see {@link renderingColor} + */ + color?: string + /** + * The overridden bg color used to render the node. + * @see {@link renderingBgColor} + */ + bgcolor?: string + /** + * The overridden box color used to render the node. + * @see {@link renderingBoxColor} + */ + boxcolor?: string + + /** The fg color used to render the node. */ + get renderingColor(): string { + const baseColor = + this.color || this.constructor.color || LiteGraph.NODE_DEFAULT_COLOR + return adjustColor(baseColor, { lightness: LiteGraph.nodeLightness }) + } + + /** The bg color used to render the node. */ + get renderingBgColor(): string { + const baseBgColor = + this.bgcolor || this.constructor.bgcolor || LiteGraph.NODE_DEFAULT_BGCOLOR + const adjustments: ColorAdjustOptions = { + opacity: LiteGraph.nodeOpacity, + lightness: LiteGraph.nodeLightness + } + + return adjustColor( + this.mode === LGraphEventMode.BYPASS + ? LiteGraph.NODE_DEFAULT_BYPASS_COLOR + : baseBgColor, + adjustments + ) + } + + /** The box color used to render the node. */ + get renderingBoxColor(): string { + if (this.boxcolor) return this.boxcolor + + if (LiteGraph.node_box_coloured_when_on) { + if (this.action_triggered) return '#FFF' + if (this.execute_triggered) return '#AAA' + } + + if (LiteGraph.node_box_coloured_by_mode) { + const modeColour = + LiteGraph.NODE_MODES_COLORS[this.mode ?? LGraphEventMode.ALWAYS] + if (modeColour) return modeColour + } + return LiteGraph.NODE_DEFAULT_BOXCOLOR + } + + /** @inheritdoc {@link IColorable.setColorOption} */ + setColorOption(colorOption: ColorOption | null): void { + if (colorOption == null) { + this.color = undefined + this.bgcolor = undefined + } else { + this.color = colorOption.color + this.bgcolor = colorOption.bgcolor + } + } + + /** @inheritdoc {@link IColorable.getColorOption} */ + getColorOption(): ColorOption | null { + return ( + Object.values(LGraphCanvas.node_colors).find( + (colorOption) => + colorOption.color === this.color && + colorOption.bgcolor === this.bgcolor + ) ?? null + ) + } + + /** + * The stroke styles that should be applied to the node. + */ + strokeStyles: Record< + string, + (this: LGraphNode) => IDrawBoundingOptions | undefined + > + + /** + * The progress of node execution. Used to render a progress bar. Value between 0 and 1. + */ + progress?: number + + exec_version?: number + action_call?: string + execute_triggered?: number + action_triggered?: number + widgets_up?: boolean + widgets_start_y?: number + lostFocusAt?: number + gotFocusAt?: number + badges: (LGraphBadge | (() => LGraphBadge))[] = [] + title_buttons: LGraphButton[] = [] + badgePosition: BadgePosition = BadgePosition.TopLeft + onOutputRemoved?(this: LGraphNode, slot: number): void + onInputRemoved?(this: LGraphNode, slot: number, input: INodeInputSlot): void + /** + * The width of the node when collapsed. + * Updated by {@link LGraphCanvas.drawNode} + */ + _collapsed_width?: number + /** + * Called once at the start of every frame. Caller may change the values in {@link out}, which will be reflected in {@link boundingRect}. + * WARNING: Making changes to boundingRect via onBounding is poorly supported, and will likely result in strange behaviour. + */ + onBounding?(this: LGraphNode, out: Rect): void + console?: string[] + _level?: number + _shape?: RenderShape + mouseOver?: IMouseOverData + redraw_on_mouse?: boolean + resizable?: boolean + clonable?: boolean + _relative_id?: number + clip_area?: boolean + ignore_remove?: boolean + has_errors?: boolean + removable?: boolean + block_delete?: boolean + selected?: boolean + showAdvanced?: boolean + + declare comfyDynamic?: Record + declare comfyClass?: string + declare isVirtualNode?: boolean + applyToGraph?(extraLinks?: LLink[]): void + + isSubgraphNode(): this is SubgraphNode { + return false + } + + /** @inheritdoc {@link renderArea} */ + #renderArea = new Rectangle() + /** + * Rect describing the node area, including shadows and any protrusions. + * Determines if the node is visible. Calculated once at the start of every frame. + */ + get renderArea(): ReadOnlyRect { + return this.#renderArea + } + + /** @inheritdoc {@link boundingRect} */ + #boundingRect: Rectangle = new Rectangle() + /** + * Cached node position & area as `x, y, width, height`. Includes changes made by {@link onBounding}, if present. + * + * Determines the node hitbox and other rendering effects. Calculated once at the start of every frame. + */ + get boundingRect(): ReadOnlyRectangle { + return this.#boundingRect + } + + /** The offset from {@link pos} to the top-left of {@link boundingRect}. */ + get boundingOffset(): Readonly { + const { + pos: [posX, posY], + boundingRect: [bX, bY] + } = this + return [posX - bX, posY - bY] + } + + /** {@link pos} and {@link size} values are backed by this {@link Rectangle}. */ + _posSize = new Rectangle() + _pos: Point = this._posSize.pos + _size: Size = this._posSize.size + + public get pos() { + return this._pos + } + + /** Node position does not necessarily correlate to the top-left corner. */ + public set pos(value) { + if (!value || value.length < 2) return + + this._pos[0] = value[0] + this._pos[1] = value[1] + } + + public get size() { + return this._size + } + + public set size(value) { + if (!value || value.length < 2) return + + this._size[0] = value[0] + this._size[1] = value[1] + } + + /** + * The size of the node used for rendering. + */ + get renderingSize(): Size { + return this.flags.collapsed ? [this._collapsed_width ?? 0, 0] : this._size + } + + get shape(): RenderShape | undefined { + return this._shape + } + + set shape(v: RenderShape | 'default' | 'box' | 'round' | 'circle' | 'card') { + const oldValue = this._shape + switch (v) { + case 'default': + this._shape = undefined + break + case 'box': + this._shape = RenderShape.BOX + break + case 'round': + this._shape = RenderShape.ROUND + break + case 'circle': + this._shape = RenderShape.CIRCLE + break + case 'card': + this._shape = RenderShape.CARD + break + default: + this._shape = v + } + if (oldValue !== this._shape) { + this.graph?.trigger('node:property:changed', { + nodeId: this.id, + property: 'shape', + oldValue, + newValue: this._shape + }) + } + } + + /** + * The shape of the node used for rendering. @see {@link RenderShape} + */ + get renderingShape(): RenderShape { + return this._shape || this.constructor.shape || LiteGraph.NODE_DEFAULT_SHAPE + } + + public get is_selected(): boolean | undefined { + return this.selected + } + + public set is_selected(value: boolean) { + this.selected = value + } + + public get title_mode(): TitleMode { + return this.constructor.title_mode ?? TitleMode.NORMAL_TITLE + } + + onConnectInput?( + this: LGraphNode, + target_slot: number, + type: unknown, + output: INodeOutputSlot | SubgraphIO, + node: LGraphNode | SubgraphInputNode, + slot: number + ): boolean + onConnectOutput?( + this: LGraphNode, + slot: number, + type: unknown, + input: INodeInputSlot | SubgraphIO, + target_node: number | LGraphNode | SubgraphOutputNode, + target_slot: number + ): boolean + onResize?(this: LGraphNode, size: Size): void + onPropertyChanged?( + this: LGraphNode, + name: string, + value: unknown, + prev_value?: unknown + ): boolean + /** Called for each connection that is created, updated, or removed. This includes "restored" connections when deserialising. */ + onConnectionsChange?( + this: LGraphNode, + type: ISlotType, + index: number, + isConnected: boolean, + link_info: LLink | null | undefined, + inputOrOutput: INodeInputSlot | INodeOutputSlot | SubgraphIO + ): void + onInputAdded?(this: LGraphNode, input: INodeInputSlot): void + onOutputAdded?(this: LGraphNode, output: INodeOutputSlot): void + onConfigure?(this: LGraphNode, serialisedNode: ISerialisedNode): void + onSerialize?(this: LGraphNode, serialised: ISerialisedNode): any + onExecute?( + this: LGraphNode, + param?: unknown, + options?: { action_call?: any } + ): void + onAction?( + this: LGraphNode, + action: string, + param: unknown, + options: { action_call?: string } + ): void + onDrawBackground?(this: LGraphNode, ctx: CanvasRenderingContext2D): void + onNodeCreated?(this: LGraphNode): void + /** + * Callback invoked by {@link connect} to override the target slot index. + * Its return value overrides the target index selection. + * @param target_slot The current input slot index + * @param requested_slot The originally requested slot index - could be negative, or if using (deprecated) name search, a string + * @returns {number | null} If a number is returned, the connection will be made to that input index. + * If an invalid index or non-number (false, null, NaN etc) is returned, the connection will be cancelled. + */ + onBeforeConnectInput?( + this: LGraphNode, + target_slot: number, + requested_slot?: number | string + ): number | false | null + onShowCustomPanelInfo?(this: LGraphNode, panel: any): void + onAddPropertyToPanel?(this: LGraphNode, pName: string, panel: any): boolean + onWidgetChanged?( + this: LGraphNode, + name: string, + value: unknown, + old_value: unknown, + w: IBaseWidget + ): void + onDeselected?(this: LGraphNode): void + onKeyUp?(this: LGraphNode, e: KeyboardEvent): void + onKeyDown?(this: LGraphNode, e: KeyboardEvent): void + onSelected?(this: LGraphNode): void + getExtraMenuOptions?( + this: LGraphNode, + canvas: LGraphCanvas, + options: (IContextMenuValue | null)[] + ): (IContextMenuValue | null)[] + getMenuOptions?(this: LGraphNode, canvas: LGraphCanvas): IContextMenuValue[] + onAdded?(this: LGraphNode, graph: LGraph): void + onDrawCollapsed?( + this: LGraphNode, + ctx: CanvasRenderingContext2D, + cavnas: LGraphCanvas + ): boolean + onDrawForeground?( + this: LGraphNode, + ctx: CanvasRenderingContext2D, + canvas: LGraphCanvas, + canvasElement: HTMLCanvasElement + ): void + onMouseLeave?(this: LGraphNode, e: CanvasPointerEvent): void + /** + * Override the default slot menu options. + */ + getSlotMenuOptions?(this: LGraphNode, slot: IFoundSlot): IContextMenuValue[] + /** + * Add extra menu options to the slot context menu. + */ + getExtraSlotMenuOptions?( + this: LGraphNode, + slot: IFoundSlot + ): IContextMenuValue[] + + // FIXME: Re-typing + onDropItem?(this: LGraphNode, event: Event): boolean + onDropData?( + this: LGraphNode, + data: string | ArrayBuffer, + filename: any, + file: any + ): void + onDropFile?(this: LGraphNode, file: any): void + onInputClick?(this: LGraphNode, index: number, e: CanvasPointerEvent): void + onInputDblClick?(this: LGraphNode, index: number, e: CanvasPointerEvent): void + onOutputClick?(this: LGraphNode, index: number, e: CanvasPointerEvent): void + onOutputDblClick?( + this: LGraphNode, + index: number, + e: CanvasPointerEvent + ): void + // TODO: Return type + onGetPropertyInfo?(this: LGraphNode, property: string): any + onNodeOutputAdd?(this: LGraphNode, value: unknown): void + onNodeInputAdd?(this: LGraphNode, value: unknown): void + onMenuNodeInputs?( + this: LGraphNode, + entries: (IContextMenuValue | null)[] + ): (IContextMenuValue | null)[] + onMenuNodeOutputs?( + this: LGraphNode, + entries: (IContextMenuValue | null)[] + ): (IContextMenuValue | null)[] + onMouseUp?(this: LGraphNode, e: CanvasPointerEvent, pos: Point): void + onMouseEnter?(this: LGraphNode, e: CanvasPointerEvent): void + /** Blocks drag if return value is truthy. @param pos Offset from {@link LGraphNode.pos}. */ + onMouseDown?( + this: LGraphNode, + e: CanvasPointerEvent, + pos: Point, + canvas: LGraphCanvas + ): boolean + /** @param pos Offset from {@link LGraphNode.pos}. */ + onDblClick?( + this: LGraphNode, + e: CanvasPointerEvent, + pos: Point, + canvas: LGraphCanvas + ): void + /** @param pos Offset from {@link LGraphNode.pos}. */ + onNodeTitleDblClick?( + this: LGraphNode, + e: CanvasPointerEvent, + pos: Point, + canvas: LGraphCanvas + ): void + onDrawTitle?(this: LGraphNode, ctx: CanvasRenderingContext2D): void + onDrawTitleText?( + this: LGraphNode, + ctx: CanvasRenderingContext2D, + title_height: number, + size: Size, + scale: number, + title_text_font: string, + selected?: boolean + ): void + onDrawTitleBox?( + this: LGraphNode, + ctx: CanvasRenderingContext2D, + title_height: number, + size: Size, + scale: number + ): void + onDrawTitleBar?( + this: LGraphNode, + ctx: CanvasRenderingContext2D, + title_height: number, + size: Size, + scale: number, + fgcolor: any + ): void + onRemoved?(this: LGraphNode): void + onMouseMove?( + this: LGraphNode, + e: CanvasPointerEvent, + pos: Point, + arg2: LGraphCanvas + ): void + onPropertyChange?(this: LGraphNode): void + updateOutputData?(this: LGraphNode, origin_slot: number): void + + #getErrorStrokeStyle(this: LGraphNode): IDrawBoundingOptions | undefined { + if (this.has_errors) { + return { + padding: 12, + lineWidth: 10, + color: LiteGraph.NODE_ERROR_COLOUR + } + } + } + + #getSelectedStrokeStyle(this: LGraphNode): IDrawBoundingOptions | undefined { + if (this.selected) { + return { + padding: this.has_errors ? 20 : undefined + } + } + } + + constructor(title: string, type?: string) { + this.id = LiteGraph.use_uuids ? LiteGraph.uuidv4() : -1 + this.title = title || 'Unnamed' + this.type = type ?? '' + this.size = [LiteGraph.NODE_WIDTH, 60] + this.pos = [10, 10] + this.strokeStyles = { + error: this.#getErrorStrokeStyle, + selected: this.#getSelectedStrokeStyle + } + // Initialize property manager with tracked properties + this.changeTracker = new LGraphNodeProperties(this) + } + + /** Internal callback for subgraph nodes. Do not implement externally. */ + _internalConfigureAfterSlots?(): void + + /** + * configure a node from an object containing the serialized info + */ + configure(info: ISerialisedNode): void { + if (this.graph) { + this.graph._version++ + } + for (const j in info) { + if (j == 'properties') { + // i don't want to clone properties, I want to reuse the old container + for (const k in info.properties) { + this.properties[k] = info.properties[k] + this.onPropertyChanged?.(k, info.properties[k]) + } + continue + } + + // @ts-expect-error #594 + if (info[j] == null) { + continue + // @ts-expect-error #594 + } else if (typeof info[j] == 'object') { + // @ts-expect-error #594 + if (this[j]?.configure) { + // @ts-expect-error #594 + this[j]?.configure(info[j]) + } else { + // @ts-expect-error #594 + this[j] = LiteGraph.cloneObject(info[j], this[j]) + } + } else { + // value + // @ts-expect-error #594 + this[j] = info[j] + } + } + + if (!info.title) { + this.title = this.constructor.title + } + + this.inputs ??= [] + this.inputs = this.inputs.map((input) => + toClass(NodeInputSlot, input, this) + ) + for (const [i, input] of this.inputs.entries()) { + const link = + this.graph && input.link != null + ? this.graph._links.get(input.link) + : null + this.onConnectionsChange?.(NodeSlotType.INPUT, i, true, link, input) + this.onInputAdded?.(input) + } + + this.outputs ??= [] + this.outputs = this.outputs.map((output) => + toClass(NodeOutputSlot, output, this) + ) + for (const [i, output] of this.outputs.entries()) { + if (!output.links) continue + + for (const linkId of output.links) { + const link = this.graph ? this.graph._links.get(linkId) : null + this.onConnectionsChange?.(NodeSlotType.OUTPUT, i, true, link, output) + } + this.onOutputAdded?.(output) + } + + // SubgraphNode callback. + this._internalConfigureAfterSlots?.() + + if (this.widgets) { + for (const w of this.widgets) { + if (!w) continue + + const input = this.inputs.find((i) => i.widget?.name === w.name) + if (input?.label) w.label = input.label + + if ( + w.options?.property && + this.properties[w.options.property] != undefined + ) + w.value = JSON.parse( + JSON.stringify(this.properties[w.options.property]) + ) + } + + if (info.widgets_values) { + let i = 0 + for (const widget of this.widgets ?? []) { + if (widget.serialize === false) continue + if (i >= info.widgets_values.length) break + widget.value = info.widgets_values[i++] + } + } + } + + // Sync the state of this.resizable. + if (this.pinned) this.resizable = false + + this.onConfigure?.(info) + } + + /** + * serialize the content + */ + serialize(): ISerialisedNode { + // create serialization object + const o: ISerialisedNode = { + id: this.id, + type: this.type, + pos: [this.pos[0], this.pos[1]], + size: [this.size[0], this.size[1]], + flags: LiteGraph.cloneObject(this.flags), + order: this.order, + mode: this.mode, + showAdvanced: this.showAdvanced + } + + // special case for when there were errors + if (this.constructor === LGraphNode && this.last_serialization) + return { ...this.last_serialization, mode: o.mode, pos: o.pos } + + if (this.inputs) + o.inputs = this.inputs.map((input) => inputAsSerialisable(input)) + if (this.outputs) + // @ts-expect-error - Output serialization type mismatch + o.outputs = this.outputs.map((output) => outputAsSerialisable(output)) + + if (this.title && this.title != this.constructor.title) o.title = this.title + + if (this.properties) o.properties = LiteGraph.cloneObject(this.properties) + + const { widgets } = this + if (widgets && this.serialize_widgets) { + o.widgets_values = [] + for (const [i, widget] of widgets.entries()) { + if (widget.serialize === false) continue + // @ts-expect-error #595 No-null + o.widgets_values[i] = widget ? widget.value : null + } + } + + if (!o.type && this.constructor.type) o.type = this.constructor.type + + if (this.color) o.color = this.color + if (this.bgcolor) o.bgcolor = this.bgcolor + if (this.boxcolor) o.boxcolor = this.boxcolor + if (this.shape) o.shape = this.shape + + if (this.onSerialize?.(o)) + console.warn( + "node onSerialize shouldn't return anything, data should be stored in the object pass in the first parameter" + ) + + return o + } + + /* Creates a clone of this node */ + clone(): LGraphNode | null { + if (this.type == null) return null + const node = LiteGraph.createNode(this.type) + if (!node) return null + + // we clone it because serialize returns shared containers + const data = LiteGraph.cloneObject(this.serialize()) + const { inputs, outputs } = data + + // remove links + if (inputs) { + for (const input of inputs) { + input.link = null + } + } + + if (outputs) { + for (const { links } of outputs) { + if (links) links.length = 0 + } + } + + // @ts-expect-error Exceptional case: id is removed so that the graph can assign a new one on add. + data.id = undefined + + if (LiteGraph.use_uuids) data.id = LiteGraph.uuidv4() + + node.configure(data) + + return node + } + + /** + * serialize and stringify + */ + toString(): string { + return JSON.stringify(this.serialize()) + } + + /** + * get the title string + */ + getTitle(): string { + return this.title || this.constructor.title + } + + /** + * sets the value of a property + * @param name + * @param value + */ + setProperty(name: string, value: TWidgetValue): void { + this.properties ||= {} + if (value === this.properties[name]) return + + const prev_value = this.properties[name] + this.properties[name] = value + // abort change + if (this.onPropertyChanged?.(name, value, prev_value) === false) + this.properties[name] = prev_value + + if (this.widgets) { + for (const w of this.widgets) { + if (!w) continue + + if (w.options.property == name) { + w.value = value + break + } + } + } + } + + /** + * sets the output data + * @param slot + * @param data + */ + setOutputData( + slot: number, + data: number | string | boolean | { toToolTip?(): string } + ): void { + const { outputs } = this + if (!outputs) return + + // this maybe slow and a niche case + if (slot == -1 || slot >= outputs.length) return + + const output_info = outputs[slot] + if (!output_info) return + + // store data in the output itself in case we want to debug + output_info._data = data + + if (!this.graph) throw new NullGraphError() + + // if there are connections, pass the data to the connections + const { links } = outputs[slot] + if (links) { + for (const id of links) { + const link = this.graph._links.get(id) + if (link) link.data = data + } + } + } + + /** + * sets the output data type, useful when you want to be able to overwrite the data type + */ + setOutputDataType(slot: number, type: ISlotType): void { + const { outputs } = this + if (!outputs || slot == -1 || slot >= outputs.length) return + + const output_info = outputs[slot] + if (!output_info) return + // store data in the output itself in case we want to debug + output_info.type = type + + if (!this.graph) throw new NullGraphError() + + // if there are connections, pass the data to the connections + const { links } = outputs[slot] + if (links) { + for (const id of links) { + const link = this.graph._links.get(id) + if (link) link.type = type + } + } + } + + /** + * Retrieves the input data (data traveling through the connection) from one slot + * @param slot + * @param force_update if set to true it will force the connected node of this slot to output data into this link + * @returns data or if it is not connected returns undefined + */ + getInputData(slot: number, force_update?: boolean): unknown { + if (!this.inputs) return + + if (slot >= this.inputs.length || this.inputs[slot].link == null) return + if (!this.graph) throw new NullGraphError() + + const link_id = this.inputs[slot].link + const link = this.graph._links.get(link_id) + // bug: weird case but it happens sometimes + if (!link) return null + + if (!force_update) return link.data + + // special case: used to extract data from the incoming connection before the graph has been executed + const node = this.graph.getNodeById(link.origin_id) + if (!node) return link.data + + if (node.updateOutputData) { + node.updateOutputData(link.origin_slot) + } else { + node.onExecute?.() + } + + return link.data + } + + /** + * Retrieves the input data type (in case this supports multiple input types) + * @param slot + * @returns datatype in string format + */ + getInputDataType(slot: number): ISlotType | null { + if (!this.inputs) return null + if (slot >= this.inputs.length || this.inputs[slot].link == null) + return null + if (!this.graph) throw new NullGraphError() + + const link_id = this.inputs[slot].link + const link = this.graph._links.get(link_id) + // bug: weird case but it happens sometimes + if (!link) return null + + const node = this.graph.getNodeById(link.origin_id) + if (!node) return link.type + + const output_info = node.outputs[link.origin_slot] + return output_info ? output_info.type : null + } + + /** + * Retrieves the input data from one slot using its name instead of slot number + * @param slot_name + * @param force_update if set to true it will force the connected node of this slot to output data into this link + * @returns data or if it is not connected returns null + */ + getInputDataByName(slot_name: string, force_update: boolean): unknown { + const slot = this.findInputSlot(slot_name) + return slot == -1 ? null : this.getInputData(slot, force_update) + } + + /** + * tells you if there is a connection in one input slot + * @param slot The 0-based index of the input to check + * @returns `true` if the input slot has a link ID (does not perform validation) + */ + isInputConnected(slot: number): boolean { + if (!this.inputs) return false + return slot < this.inputs.length && this.inputs[slot].link != null + } + + /** + * tells you info about an input connection (which node, type, etc) + * @returns object or null { link: id, name: string, type: string or 0 } + */ + getInputInfo(slot: number): INodeInputSlot | null { + return !this.inputs || !(slot < this.inputs.length) + ? null + : this.inputs[slot] + } + + /** + * Returns the link info in the connection of an input slot + * @returns object or null + */ + getInputLink(slot: number): LLink | null { + if (!this.inputs) return null + + if (slot < this.inputs.length) { + if (!this.graph) throw new NullGraphError() + + const input = this.inputs[slot] + if (input.link != null) { + return this.graph._links.get(input.link) ?? null + } + } + return null + } + + /** + * returns the node connected in the input slot + * @returns node or null + */ + getInputNode(slot: number): LGraphNode | null { + if (!this.inputs) return null + if (slot >= this.inputs.length) return null + + const input = this.inputs[slot] + if (!input || input.link === null) return null + if (!this.graph) throw new NullGraphError() + + const link_info = this.graph._links.get(input.link) + if (!link_info) return null + + return this.graph.getNodeById(link_info.origin_id) + } + + /** + * returns the value of an input with this name, otherwise checks if there is a property with that name + * @returns value + */ + getInputOrProperty(name: string): unknown { + const { inputs } = this + if (!inputs?.length) { + return this.properties ? this.properties[name] : null + } + if (!this.graph) throw new NullGraphError() + + for (const input of inputs) { + if (name == input.name && input.link != null) { + const link = this.graph._links.get(input.link) + if (link) return link.data + } + } + return this.properties[name] + } + + /** + * tells you the last output data that went in that slot + * @returns object or null + */ + getOutputData(slot: number): unknown { + if (!this.outputs) return null + if (slot >= this.outputs.length) return null + + const info = this.outputs[slot] + return info._data + } + + /** + * tells you info about an output connection (which node, type, etc) + * @returns object or null { name: string, type: string, links: [ ids of links in number ] } + */ + getOutputInfo(slot: number): INodeOutputSlot | null { + return !this.outputs || !(slot < this.outputs.length) + ? null + : this.outputs[slot] + } + + /** + * tells you if there is a connection in one output slot + */ + isOutputConnected(slot: number): boolean { + if (!this.outputs) return false + return ( + slot < this.outputs.length && Number(this.outputs[slot].links?.length) > 0 + ) + } + + /** + * tells you if there is any connection in the output slots + */ + isAnyOutputConnected(): boolean { + const { outputs } = this + if (!outputs) return false + + for (const output of outputs) { + if (output.links?.length) return true + } + return false + } + + /** + * retrieves all the nodes connected to this output slot + */ + getOutputNodes(slot: number): LGraphNode[] | null { + const { outputs } = this + if (!outputs || outputs.length == 0) return null + + if (slot >= outputs.length) return null + + const { links } = outputs[slot] + if (!links || links.length == 0) return null + if (!this.graph) throw new NullGraphError() + + const r: LGraphNode[] = [] + for (const id of links) { + const link = this.graph._links.get(id) + if (link) { + const target_node = this.graph.getNodeById(link.target_id) + if (target_node) { + r.push(target_node) + } + } + } + return r + } + + addOnTriggerInput(): number { + const trigS = this.findInputSlot('onTrigger') + if (trigS == -1) { + this.addInput('onTrigger', LiteGraph.EVENT, { + nameLocked: true + }) + return this.findInputSlot('onTrigger') + } + return trigS + } + + addOnExecutedOutput(): number { + const trigS = this.findOutputSlot('onExecuted') + if (trigS == -1) { + this.addOutput('onExecuted', LiteGraph.ACTION, { + nameLocked: true + }) + return this.findOutputSlot('onExecuted') + } + return trigS + } + + onAfterExecuteNode(param: unknown, options?: { action_call?: any }) { + const trigS = this.findOutputSlot('onExecuted') + if (trigS != -1) { + this.triggerSlot(trigS, param, null, options) + } + } + + changeMode(modeTo: number): boolean { + switch (modeTo) { + case LGraphEventMode.ON_EVENT: + break + + case LGraphEventMode.ON_TRIGGER: + this.addOnTriggerInput() + this.addOnExecutedOutput() + break + + case LGraphEventMode.NEVER: + break + + case LGraphEventMode.ALWAYS: + break + + // @ts-expect-error Not impl. + case LiteGraph.ON_REQUEST: + break + + default: + return false + break + } + this.mode = modeTo + return true + } + + /** + * Triggers the node code execution, place a boolean/counter to mark the node as being executed + */ + doExecute(param?: unknown, options?: { action_call?: any }): void { + options = options || {} + if (this.onExecute) { + // enable this to give the event an ID + options.action_call ||= `${this.id}_exec_${Math.floor(Math.random() * 9999)}` + if (!this.graph) throw new NullGraphError() + + // @ts-expect-error Technically it works when id is a string. Array gets props. + this.graph.nodes_executing[this.id] = true + this.onExecute(param, options) + // @ts-expect-error deprecated + this.graph.nodes_executing[this.id] = false + + // save execution/action ref + this.exec_version = this.graph.iteration + if (options?.action_call) { + this.action_call = options.action_call + // @ts-expect-error deprecated + this.graph.nodes_executedAction[this.id] = options.action_call + } + } + // the nFrames it will be used (-- each step), means "how old" is the event + this.execute_triggered = 2 + this.onAfterExecuteNode?.(param, options) + } + + /** + * Triggers an action, wrapped by logics to control execution flow + * @param action name + */ + actionDo( + action: string, + param: unknown, + options: { action_call?: string } + ): void { + options = options || {} + if (this.onAction) { + // enable this to give the event an ID + options.action_call ||= `${this.id}_${action || 'action'}_${Math.floor(Math.random() * 9999)}` + if (!this.graph) throw new NullGraphError() + + // @ts-expect-error deprecated + this.graph.nodes_actioning[this.id] = action || 'actioning' + this.onAction(action, param, options) + // @ts-expect-error deprecated + this.graph.nodes_actioning[this.id] = false + + // save execution/action ref + if (options?.action_call) { + this.action_call = options.action_call + // @ts-expect-error deprecated + this.graph.nodes_executedAction[this.id] = options.action_call + } + } + // the nFrames it will be used (-- each step), means "how old" is the event + this.action_triggered = 2 + this.onAfterExecuteNode?.(param, options) + } + + /** + * Triggers an event in this node, this will trigger any output with the same name + * @param action name ( "on_play", ... ) if action is equivalent to false then the event is send to all + */ + trigger( + action: string, + param: unknown, + options: { action_call?: any } + ): void { + const { outputs } = this + if (!outputs || !outputs.length) { + return + } + + if (this.graph) this.graph._last_trigger_time = LiteGraph.getTime() + + for (const [i, output] of outputs.entries()) { + if ( + !output || + output.type !== LiteGraph.EVENT || + (action && output.name != action) + ) { + continue + } + this.triggerSlot(i, param, null, options) + } + } + + /** + * Triggers a slot event in this node: cycle output slots and launch execute/action on connected nodes + * @param slot the index of the output slot + * @param link_id [optional] in case you want to trigger and specific output link in a slot + */ + triggerSlot( + slot: number, + param: unknown, + link_id: number | null, + options?: { action_call?: any } + ): void { + options = options || {} + if (!this.outputs) return + + if (slot == null) { + console.error('slot must be a number') + return + } + + if (typeof slot !== 'number') + console.warn( + "slot must be a number, use node.trigger('name') if you want to use a string" + ) + + const output = this.outputs[slot] + if (!output) return + + const links = output.links + if (!links || !links.length) return + + if (!this.graph) throw new NullGraphError() + this.graph._last_trigger_time = LiteGraph.getTime() + + // for every link attached here + for (const id of links) { + // to skip links + if (link_id != null && link_id != id) continue + + const link_info = this.graph._links.get(id) + // not connected + if (!link_info) continue + + link_info._last_time = LiteGraph.getTime() + const node = this.graph.getNodeById(link_info.target_id) + // node not found? + if (!node) continue + + if (node.mode === LGraphEventMode.ON_TRIGGER) { + // generate unique trigger ID if not present + if (!options.action_call) + options.action_call = `${this.id}_trigg_${Math.floor(Math.random() * 9999)}` + // -- wrapping node.onExecute(param); -- + node.doExecute?.(param, options) + } else if (node.onAction) { + // generate unique action ID if not present + if (!options.action_call) + options.action_call = `${this.id}_act_${Math.floor(Math.random() * 9999)}` + // pass the action name + const target_connection = node.inputs[link_info.target_slot] + node.actionDo(target_connection.name, param, options) + } + } + } + + /** + * clears the trigger slot animation + * @param slot the index of the output slot + * @param link_id [optional] in case you want to trigger and specific output link in a slot + */ + clearTriggeredSlot(slot: number, link_id: number): void { + if (!this.outputs) return + + const output = this.outputs[slot] + if (!output) return + + const links = output.links + if (!links || !links.length) return + + if (!this.graph) throw new NullGraphError() + + // for every link attached here + for (const id of links) { + // to skip links + if (link_id != null && link_id != id) continue + + const link_info = this.graph._links.get(id) + // not connected + if (!link_info) continue + + link_info._last_time = 0 + } + } + + /** + * changes node size and triggers callback + */ + setSize(size: Size): void { + this.size = size + this.onResize?.(this.size) + } + + /** + * Expands the node size to fit its content. + */ + expandToFitContent(): void { + const newSize = this.computeSize() + this.setSize([ + Math.max(this.size[0], newSize[0]), + Math.max(this.size[1], newSize[1]) + ]) + } + + /** + * add a new property to this node + * @param type string defining the output type ("vec3","number",...) + * @param extra_info this can be used to have special properties of the property (like values, etc) + */ + addProperty( + name: string, + default_value: NodeProperty | undefined, + type?: string, + extra_info?: Partial + ): INodePropertyInfo { + const o: INodePropertyInfo = { name, type, default_value } + if (extra_info) Object.assign(o, extra_info) + + this.properties_info ||= [] + this.properties_info.push(o) + this.properties ||= {} + this.properties[name] = default_value + return o + } + + /** + * add a new output slot to use in this node + * @param type string defining the output type ("vec3","number",...) + * @param extra_info this can be used to have special properties of an output (label, special color, position, etc) + */ + addOutput>( + name: string, + type: ISlotType, + extra_info?: TProperties + ): INodeOutputSlot & TProperties { + const output = Object.assign( + new NodeOutputSlot({ name, type, links: null }, this), + extra_info + ) + + this.outputs ||= [] + this.outputs.push(output) + this.onOutputAdded?.(output) + + if (LiteGraph.auto_load_slot_types) + LiteGraph.registerNodeAndSlotType(this, type, true) + + this.expandToFitContent() + this.setDirtyCanvas(true, true) + return output + } + + /** + * remove an existing output slot + */ + removeOutput(slot: number): void { + // Only disconnect if node is part of a graph + if (this.graph) { + this.disconnectOutput(slot) + } + const { outputs } = this + outputs.splice(slot, 1) + + for (let i = slot; i < outputs.length; ++i) { + const output = outputs[i] + if (!output || !output.links) continue + + // Only update link indices if node is part of a graph + if (this.graph) { + for (const linkId of output.links) { + const link = this.graph._links.get(linkId) + if (link) link.origin_slot-- + } + } + } + + this.onOutputRemoved?.(slot) + this.setDirtyCanvas(true, true) + } + + /** + * add a new input slot to use in this node + * @param type string defining the input type ("vec3","number",...), it its a generic one use 0 + * @param extra_info this can be used to have special properties of an input (label, color, position, etc) + */ + addInput>( + name: string, + type: ISlotType, + extra_info?: TProperties + ): INodeInputSlot & TProperties { + type ||= 0 + + const input = Object.assign( + new NodeInputSlot({ name, type, link: null }, this), + extra_info + ) + + this.inputs ||= [] + this.inputs.push(input) + this.expandToFitContent() + + this.onInputAdded?.(input) + LiteGraph.registerNodeAndSlotType(this, type) + + this.setDirtyCanvas(true, true) + return input + } + + /** + * remove an existing input slot + */ + removeInput(slot: number): void { + // Only disconnect if node is part of a graph + if (this.graph) { + this.disconnectInput(slot, true) + } + const { inputs } = this + const slot_info = inputs.splice(slot, 1) + + for (let i = slot; i < inputs.length; ++i) { + const input = inputs[i] + if (!input?.link) continue + + // Only update link indices if node is part of a graph + if (this.graph) { + const link = this.graph._links.get(input.link) + if (link) link.target_slot-- + } + } + this.onInputRemoved?.(slot, slot_info[0]) + this.setDirtyCanvas(true, true) + } + + /** + * computes the minimum size of a node according to its inputs and output slots + * @returns the total size + */ + computeSize(out?: Size): Size { + const ctorSize = this.constructor.size + if (ctorSize) return [ctorSize[0], ctorSize[1]] + + const { inputs, outputs, widgets } = this + let rows = Math.max( + inputs ? inputs.filter((input) => !isWidgetInputSlot(input)).length : 1, + outputs ? outputs.length : 1 + ) + const size = out ?? [0, 0] + rows = Math.max(rows, 1) + // although it should be graphcanvas.inner_text_font size + const font_size = LiteGraph.NODE_TEXT_SIZE + + const padLeft = LiteGraph.NODE_TITLE_HEIGHT + const padRight = padLeft * 0.33 + const title_width = + padLeft + compute_text_size(this.title, this.titleFontStyle) + padRight + let input_width = 0 + let widgetWidth = 0 + let output_width = 0 + + if (inputs) { + for (const input of inputs) { + const text = input.label || input.localized_name || input.name || '' + const text_width = compute_text_size(text, this.innerFontStyle) + if (isWidgetInputSlot(input)) { + const widget = this.getWidgetFromSlot(input) + if (widget && !this.isWidgetVisible(widget)) continue + + if (text_width > widgetWidth) widgetWidth = text_width + } else { + if (text_width > input_width) input_width = text_width + } + } + } + + if (outputs) { + for (const output of outputs) { + const text = output.label || output.localized_name || output.name || '' + const text_width = compute_text_size(text, this.innerFontStyle) + if (output_width < text_width) output_width = text_width + } + } + + const minWidth = LiteGraph.NODE_WIDTH * (widgets?.length ? 1.5 : 1) + // Text + slot width + centre padding + const centrePadding = input_width && output_width ? 5 : 0 + const slotsWidth = + input_width + + output_width + + 2 * LiteGraph.NODE_SLOT_HEIGHT + + centrePadding + + // Total distance from edge of node to the inner edge of the widget 'previous' arrow button + const widgetMargin = + BaseWidget.margin + BaseWidget.arrowMargin + BaseWidget.arrowWidth + const widgetPadding = BaseWidget.minValueWidth + 2 * widgetMargin + if (widgetWidth) widgetWidth += widgetPadding + + size[0] = Math.max(slotsWidth, widgetWidth, title_width, minWidth) + size[1] = + (this.constructor.slot_start_y || 0) + rows * LiteGraph.NODE_SLOT_HEIGHT + + // Get widget height & expand size if necessary + let widgets_height = 0 + if (widgets?.length) { + for (const widget of widgets) { + if (!this.isWidgetVisible(widget)) continue + + let widget_height = 0 + if (widget.computeSize) { + widget_height += widget.computeSize(size[0])[1] + } else if (widget.computeLayoutSize) { + // Expand widget width if necessary + const { minHeight, minWidth } = widget.computeLayoutSize(this) + const widgetWidth = minWidth + widgetPadding + if (widgetWidth > size[0]) size[0] = widgetWidth + + widget_height += minHeight + } else { + widget_height += LiteGraph.NODE_WIDGET_HEIGHT + } + widgets_height += widget_height + 4 + } + widgets_height += 8 + } + + // compute height using widgets height + if (this.widgets_up) size[1] = Math.max(size[1], widgets_height) + else if (this.widgets_start_y != null) + size[1] = Math.max(size[1], widgets_height + this.widgets_start_y) + else size[1] += widgets_height + + function compute_text_size(text: string, fontStyle: string) { + return ( + LGraphCanvas._measureText?.(text, fontStyle) ?? + font_size * (text?.length ?? 0) * 0.6 + ) + } + + if (this.constructor.min_height && size[1] < this.constructor.min_height) { + size[1] = this.constructor.min_height + } + + // margin + size[1] += 6 + + return size + } + + inResizeCorner(canvasX: number, canvasY: number): boolean { + const rows = this.outputs ? this.outputs.length : 1 + const outputs_offset = + (this.constructor.slot_start_y || 0) + rows * LiteGraph.NODE_SLOT_HEIGHT + return isInRectangle( + canvasX, + canvasY, + this.pos[0] + this.size[0] - 15, + this.pos[1] + Math.max(this.size[1] - 15, outputs_offset), + 20, + 20 + ) + } + + /** + * Returns which resize corner the point is over, if any. + * @param canvasX X position in canvas coordinates + * @param canvasY Y position in canvas coordinates + * @returns The compass corner the point is in, otherwise `undefined`. + */ + findResizeDirection( + canvasX: number, + canvasY: number + ): CompassCorners | undefined { + if (this.resizable === false) return + + const { boundingRect } = this + if (!boundingRect.containsXy(canvasX, canvasY)) return + + // Check corners first (they take priority over edges) + return boundingRect.findContainingCorner( + canvasX, + canvasY, + LGraphNode.resizeHandleSize + ) + } + + /** + * returns all the info available about a property of this node. + * @param property name of the property + * @returns the object with all the available info + */ + getPropertyInfo(property: string) { + let info = null + + // there are several ways to define info about a property + // legacy mode + const { properties_info } = this + if (properties_info) { + for (const propInfo of properties_info) { + if (propInfo.name == property) { + info = propInfo + break + } + } + } + // litescene mode using the constructor + // @ts-expect-error deprecated https://github.com/Comfy-Org/litegraph.js/issues/639 + if (this.constructor[`@${property}`]) + // @ts-expect-error deprecated https://github.com/Comfy-Org/litegraph.js/issues/639 + info = this.constructor[`@${property}`] + + if (this.constructor.widgets_info?.[property]) + info = this.constructor.widgets_info[property] + + // litescene mode using the constructor + if (!info && this.onGetPropertyInfo) { + info = this.onGetPropertyInfo(property) + } + + info ||= {} + info.type ||= typeof this.properties[property] + if (info.widget == 'combo') info.type = 'enum' + + return info + } + + /** + * Defines a widget inside the node, it will be rendered on top of the node, you can control lots of properties + * @param type the widget type + * @param name the text to show on the widget + * @param value the default value + * @param callback function to call when it changes (optionally, it can be the name of the property to modify) + * @param options the object that contains special properties of this widget + * @returns the created widget object + */ + addWidget< + Type extends TWidgetType, + TValue extends WidgetTypeMap[Type]['value'] + >( + type: Type, + name: string, + value: TValue, + callback: IBaseWidget['callback'] | string | null, + options?: IWidgetOptions | string + ): WidgetTypeMap[Type] | IBaseWidget { + this.widgets ||= [] + + if (!options && callback && typeof callback === 'object') { + options = callback + callback = null + } + + // options can be the property name + options ||= {} + if (typeof options === 'string') options = { property: options } + + // callback can be the property name + if (callback && typeof callback === 'string') { + options.property = callback + callback = null + } + + const w: IBaseWidget & { type: Type } = { + // @ts-expect-error - Type casting for widget type property + type: type.toLowerCase(), + name: name, + value: value, + callback: typeof callback !== 'function' ? undefined : callback, + options, + y: 0 + } + + if (w.options.y !== undefined) { + w.y = w.options.y + } + + if (!callback && !w.options.callback && !w.options.property) { + console.warn( + 'LiteGraph addWidget(...) without a callback or property assigned' + ) + } + if (type == 'combo' && !w.options.values) { + throw "LiteGraph addWidget('combo',...) requires to pass values in options: { values:['red','blue'] }" + } + + const widget = this.addCustomWidget(w) + this.expandToFitContent() + return widget + } + + addCustomWidget( + custom_widget: TPlainWidget + ): TPlainWidget | WidgetTypeMap[TPlainWidget['type']] { + this.widgets ||= [] + const widget = toConcreteWidget(custom_widget, this, false) ?? custom_widget + this.widgets.push(widget) + return widget + } + + addTitleButton(options: LGraphButtonOptions): LGraphButton { + this.title_buttons ||= [] + const button = new LGraphButton(options) + this.title_buttons.push(button) + return button + } + + onTitleButtonClick(button: LGraphButton, canvas: LGraphCanvas): void { + // Dispatch event for button click + canvas.dispatch('litegraph:node-title-button-clicked', { + node: this, + button: button + }) + } + + removeWidgetByName(name: string): void { + const widget = this.widgets?.find((x) => x.name === name) + if (widget) this.removeWidget(widget) + } + + removeWidget(widget: IBaseWidget): void { + if (!this.widgets) + throw new Error('removeWidget called on node without widgets') + + const widgetIndex = this.widgets.indexOf(widget) + if (widgetIndex === -1) throw new Error('Widget not found on this node') + + // Clean up slot references to prevent memory leaks + if (this.inputs) { + for (const input of this.inputs) { + if (input._widget === widget) { + input._widget = undefined + input.widget = undefined + } + } + } + + widget.onRemove?.() + this.widgets.splice(widgetIndex, 1) + } + + ensureWidgetRemoved(widget: IBaseWidget): void { + try { + this.removeWidget(widget) + } catch (error) { + console.error('Failed to remove widget', error) + } + } + + move(deltaX: number, deltaY: number): void { + if (this.pinned) return + + // If Vue nodes mode is enabled, skip LiteGraph's direct position update + // The layout store will handle the movement and sync back to LiteGraph + if (LiteGraph.vueNodesMode) { + // Vue nodes handle their own dragging through the layout store + // This prevents the snap-back issue from conflicting position updates + return + } + + this.pos[0] += deltaX + this.pos[1] += deltaY + } + + /** + * Internal method to measure the node for rendering. Prefer {@link boundingRect} where possible. + * + * Populates {@link out} with the results in graph space. + * Populates {@link _collapsed_width} with the collapsed width if the node is collapsed. + * Adjusts for title and collapsed status, but does not call {@link onBounding}. + * @param out `x, y, width, height` are written to this array. + * @param ctx The canvas context to use for measuring text. + */ + measure(out: Rect, ctx?: CanvasRenderingContext2D): void { + const titleMode = this.title_mode + const renderTitle = + titleMode != TitleMode.TRANSPARENT_TITLE && + titleMode != TitleMode.NO_TITLE + const titleHeight = renderTitle ? LiteGraph.NODE_TITLE_HEIGHT : 0 + + out[0] = this.pos[0] + out[1] = this.pos[1] + -titleHeight + if (!this.flags?.collapsed) { + out[2] = this.size[0] + out[3] = this.size[1] + titleHeight + } else { + if (ctx) ctx.font = this.innerFontStyle + this._collapsed_width = Math.min( + this.size[0], + ctx + ? ctx.measureText(this.getTitle() ?? '').width + + LiteGraph.NODE_TITLE_HEIGHT * 2 + : 0 + ) + out[2] = this._collapsed_width || LiteGraph.NODE_COLLAPSED_WIDTH + out[3] = LiteGraph.NODE_TITLE_HEIGHT + } + } + + /** + * returns the bounding of the object, used for rendering purposes + * @param out {Rect?} [optional] a place to store the output, to free garbage + * @param includeExternal {boolean?} [optional] set to true to + * include the shadow and connection points in the bounding calculation + * @returns the bounding box in format of [topleft_cornerx, topleft_cornery, width, height] + */ + getBounding(out?: Rect, includeExternal?: boolean): Rect { + out ||= [0, 0, 0, 0] + + const rect = includeExternal ? this.renderArea : this.boundingRect + out[0] = rect[0] + out[1] = rect[1] + out[2] = rect[2] + out[3] = rect[3] + + return out + } + + /** + * Calculates the render area of this node, populating both {@link boundingRect} and {@link renderArea}. + * Called automatically at the start of every frame. + */ + updateArea(ctx?: CanvasRenderingContext2D): void { + const bounds = this.#boundingRect + this.measure(bounds, ctx) + this.onBounding?.(bounds) + + const renderArea = this.#renderArea + renderArea.set(bounds) + // 4 offset for collapsed node connection points + renderArea[0] -= 4 + renderArea[1] -= 4 + // Add shadow & left offset + renderArea[2] += 6 + 4 + // Add shadow & top offsets + renderArea[3] += 5 + 4 + } + + /** + * checks if a point is inside the shape of a node + */ + isPointInside(x: number, y: number): boolean { + return isInRect(x, y, this.boundingRect) + } + + /** + * Checks if the provided point is inside this node's collapse button area. + * @param x X co-ordinate to check + * @param y Y co-ordinate to check + * @returns true if the x,y point is in the collapse button area, otherwise false + */ + isPointInCollapse(x: number, y: number): boolean { + const squareLength = LiteGraph.NODE_TITLE_HEIGHT + return isInRectangle( + x, + y, + this.pos[0], + this.pos[1] - squareLength, + squareLength, + squareLength + ) + } + + /** + * Returns the input slot at the given position. Uses full 20 height, and approximates the label length. + * @param pos The graph co-ordinates to check + * @returns The input slot at the given position if found, otherwise `undefined`. + */ + getInputOnPos(pos: Point): INodeInputSlot | undefined { + return getNodeInputOnPos(this, pos[0], pos[1])?.input + } + + /** + * Returns the output slot at the given position. Uses full 20x20 box for the slot. + * @param pos The graph co-ordinates to check + * @returns The output slot at the given position if found, otherwise `undefined`. + */ + getOutputOnPos(pos: Point): INodeOutputSlot | undefined { + return getNodeOutputOnPos(this, pos[0], pos[1])?.output + } + + /** + * Returns the input or output slot at the given position. + * + * Tries {@link getNodeInputOnPos} first, then {@link getNodeOutputOnPos}. + * @param pos The graph co-ordinates to check + * @returns The input or output slot at the given position if found, otherwise `undefined`. + */ + getSlotOnPos(pos: Point): INodeInputSlot | INodeOutputSlot | undefined { + if (!isPointInRect(pos, this.boundingRect)) return + + return this.getInputOnPos(pos) ?? this.getOutputOnPos(pos) + } + + /** + * @deprecated Use {@link getSlotOnPos} instead. + * checks if a point is inside a node slot, and returns info about which slot + * @param x + * @param y + * @returns if found the object contains { input|output: slot object, slot: number, link_pos: [x,y] } + */ + getSlotInPosition(x: number, y: number): IFoundSlot | null { + // search for inputs + const { inputs, outputs } = this + + if (inputs) { + for (const [i, input] of inputs.entries()) { + const pos = this.getInputPos(i) + if (isInRectangle(x, y, pos[0] - 10, pos[1] - 10, 20, 20)) { + return { input, slot: i, link_pos: pos } + } + } + } + + if (outputs) { + for (const [i, output] of outputs.entries()) { + const pos = this.getOutputPos(i) + if (isInRectangle(x, y, pos[0] - 10, pos[1] - 10, 20, 20)) { + return { output, slot: i, link_pos: pos } + } + } + } + + return null + } + + /** + * Gets the widget on this node at the given co-ordinates. + * @param canvasX X co-ordinate in graph space + * @param canvasY Y co-ordinate in graph space + * @returns The widget found, otherwise `null` + */ + getWidgetOnPos( + canvasX: number, + canvasY: number, + includeDisabled = false + ): IBaseWidget | undefined { + const { widgets, pos, size } = this + if (!widgets?.length) return + + const x = canvasX - pos[0] + const y = canvasY - pos[1] + const nodeWidth = size[0] + + for (const widget of widgets) { + if ( + (widget.computedDisabled && !includeDisabled) || + !this.isWidgetVisible(widget) + ) { + continue + } + + const h = + widget.computedHeight ?? + widget.computeSize?.(nodeWidth)[1] ?? + LiteGraph.NODE_WIDGET_HEIGHT + + const maybeDOMWidget = widget as { margin?: number } + const mtop = maybeDOMWidget.margin ?? -2 + const mbot = maybeDOMWidget.margin ?? 2 + const mx = maybeDOMWidget.margin ?? 6 + + const w = widget.width || nodeWidth + if ( + widget.last_y !== undefined && + isInRectangle( + x, + y, + mx, + widget.last_y + mtop, + w - 2 * mx, + h - mtop - mbot + ) + ) { + return widget + } + } + } + + /** + * Returns the input slot with a given name (used for dynamic slots), -1 if not found + * @param name the name of the slot to find + * @param returnObj if the obj itself wanted + * @returns the slot (-1 if not found) + */ + findInputSlot( + name: string, + returnObj?: TReturn + ): number + findInputSlot( + name: string, + returnObj?: TReturn + ): INodeInputSlot + findInputSlot(name: string, returnObj: boolean = false) { + const { inputs } = this + if (!inputs) return -1 + + for (const [i, input] of inputs.entries()) { + if (name == input.name) { + return !returnObj ? i : input + } + } + return -1 + } + + /** + * returns the output slot with a given name (used for dynamic slots), -1 if not found + * @param name the name of the slot to find + * @param returnObj if the obj itself wanted + * @returns the slot (-1 if not found) + */ + findOutputSlot( + name: string, + returnObj?: TReturn + ): number + findOutputSlot( + name: string, + returnObj?: TReturn + ): INodeOutputSlot + findOutputSlot(name: string, returnObj: boolean = false) { + const { outputs } = this + if (!outputs) return -1 + + for (const [i, output] of outputs.entries()) { + if (name == output.name) { + return !returnObj ? i : output + } + } + return -1 + } + + /** + * Finds the first free input slot. + * @param optsIn + * @returns The index of the first matching slot, the slot itself if returnObj is true, or -1 if not found. + */ + findInputSlotFree( + optsIn?: FindFreeSlotOptions & { returnObj?: TReturn } + ): number + findInputSlotFree( + optsIn?: FindFreeSlotOptions & { returnObj?: TReturn } + ): INodeInputSlot | -1 + findInputSlotFree(optsIn?: FindFreeSlotOptions) { + return this.#findFreeSlot(this.inputs, optsIn) + } + + /** + * Finds the first free output slot. + * @param optsIn + * @returns The index of the first matching slot, the slot itself if returnObj is true, or -1 if not found. + */ + findOutputSlotFree( + optsIn?: FindFreeSlotOptions & { returnObj?: TReturn } + ): number + findOutputSlotFree( + optsIn?: FindFreeSlotOptions & { returnObj?: TReturn } + ): INodeOutputSlot | -1 + findOutputSlotFree(optsIn?: FindFreeSlotOptions) { + return this.#findFreeSlot(this.outputs, optsIn) + } + + /** + * Finds the next free slot + * @param slots The slots to search, i.e. this.inputs or this.outputs + */ + #findFreeSlot( + slots: TSlot[], + options?: FindFreeSlotOptions + ): TSlot | number { + const defaults = { + returnObj: false, + typesNotAccepted: [] + } + const opts = Object.assign(defaults, options || {}) + const length = slots?.length + if (!(length > 0)) return -1 + + for (let i = 0; i < length; ++i) { + const slot: TSlot & IGenericLinkOrLinks = slots[i] + if (!slot || slot.link || slot.links?.length) continue + if (opts.typesNotAccepted?.includes?.(slot.type)) continue + return !opts.returnObj ? i : slot + } + return -1 + } + + /** + * findSlotByType for INPUTS + */ + findInputSlotByType( + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): number + findInputSlotByType( + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): INodeInputSlot + findInputSlotByType( + type: ISlotType, + returnObj?: boolean, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ) { + return this.#findSlotByType( + this.inputs, + type, + returnObj, + preferFreeSlot, + doNotUseOccupied + ) + } + + /** + * findSlotByType for OUTPUTS + */ + findOutputSlotByType( + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): number + findOutputSlotByType( + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): INodeOutputSlot + findOutputSlotByType( + type: ISlotType, + returnObj?: boolean, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ) { + return this.#findSlotByType( + this.outputs, + type, + returnObj, + preferFreeSlot, + doNotUseOccupied + ) + } + + /** + * returns the output (or input) slot with a given type, -1 if not found + * @param input use inputs instead of outputs + * @param type the type of the slot to find + * @param returnObj if the obj itself wanted + * @param preferFreeSlot if we want a free slot (if not found, will return the first of the type anyway) + * @returns the slot (-1 if not found) + */ + findSlotByType( + input: TSlot, + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): number + findSlotByType( + input: TSlot, + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): INodeInputSlot | -1 + findSlotByType( + input: TSlot, + type: ISlotType, + returnObj?: TReturn, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): INodeOutputSlot | -1 + findSlotByType( + input: boolean, + type: ISlotType, + returnObj?: boolean, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): number | INodeOutputSlot | INodeInputSlot { + return input + ? this.#findSlotByType( + this.inputs, + type, + returnObj, + preferFreeSlot, + doNotUseOccupied + ) + : this.#findSlotByType( + this.outputs, + type, + returnObj, + preferFreeSlot, + doNotUseOccupied + ) + } + + /** + * Finds a matching slot from those provided, returning the slot itself or its index in {@link slots}. + * @param slots Slots to search (this.inputs or this.outputs) + * @param type Type of slot to look for + * @param returnObj If true, returns the slot itself. Otherwise, the index. + * @param preferFreeSlot Prefer a free slot, but if none are found, fall back to an occupied slot. + * @param doNotUseOccupied Do not fall back to occupied slots. + * @see {findSlotByType} + * @see {findOutputSlotByType} + * @see {findInputSlotByType} + * @returns If a match is found, the slot if returnObj is true, otherwise the index. If no matches are found, -1 + */ + #findSlotByType( + slots: TSlot[], + type: ISlotType, + returnObj?: boolean, + preferFreeSlot?: boolean, + doNotUseOccupied?: boolean + ): TSlot | number { + const length = slots?.length + if (!length) return -1 + + // Empty string and * match anything (type: 0) + if (type == '' || type == '*') type = 0 + const sourceTypes = String(type).toLowerCase().split(',') + + // Run the search + let occupiedSlot: number | TSlot | null = null + for (let i = 0; i < length; ++i) { + const slot: TSlot & IGenericLinkOrLinks = slots[i] + const destTypes = + slot.type == '0' || slot.type == '*' + ? ['0'] + : String(slot.type).toLowerCase().split(',') + + for (const sourceType of sourceTypes) { + // TODO: Remove _event_ entirely. + const source = sourceType == '_event_' ? LiteGraph.EVENT : sourceType + + for (const destType of destTypes) { + const dest = destType == '_event_' ? LiteGraph.EVENT : destType + + if (source == dest || source === '*' || dest === '*') { + if (preferFreeSlot && (slot.links?.length || slot.link != null)) { + // In case we can't find a free slot. + occupiedSlot ??= returnObj ? slot : i + continue + } + return returnObj ? slot : i + } + } + } + } + + return doNotUseOccupied ? -1 : (occupiedSlot ?? -1) + } + + /** + * Determines the slot index to connect to when attempting to connect by type. + * @param findInputs If true, searches for an input. Otherwise, an output. + * @param node The node at the other end of the connection. + * @param slotType The type of slot at the other end of the connection. + * @param options Search restrictions to adhere to. + * @see {connectByType} + * @see {connectByTypeOutput} + */ + findConnectByTypeSlot( + findInputs: boolean, + node: LGraphNode, + slotType: ISlotType, + options?: ConnectByTypeOptions + ): number | undefined { + // LEGACY: Old options names + if (options && typeof options === 'object') { + if ('firstFreeIfInputGeneralInCase' in options) + options.wildcardToTyped = !!options.firstFreeIfInputGeneralInCase + if ('firstFreeIfOutputGeneralInCase' in options) + options.wildcardToTyped = !!options.firstFreeIfOutputGeneralInCase + if ('generalTypeInCase' in options) + options.typedToWildcard = !!options.generalTypeInCase + } + const optsDef: ConnectByTypeOptions = { + createEventInCase: true, + wildcardToTyped: true, + typedToWildcard: true + } + const opts = Object.assign(optsDef, options) + + if (!this.graph) throw new NullGraphError() + + if (node && typeof node === 'number') { + const nodeById = this.graph.getNodeById(node) + if (!nodeById) return + + node = nodeById + } + const slot = node.findSlotByType(findInputs, slotType, false, true) + if (slot >= 0 && slot !== null) return slot + + // TODO: Remove or reimpl. events. WILL CREATE THE onTrigger IN SLOT + if (opts.createEventInCase && slotType == LiteGraph.EVENT) { + if (findInputs) return -1 + if (LiteGraph.do_add_triggers_slots) return node.addOnExecutedOutput() + } + + // connect to the first general output slot if not found a specific type and + if (opts.typedToWildcard) { + const generalSlot = node.findSlotByType(findInputs, 0, false, true, true) + if (generalSlot >= 0) return generalSlot + } + // connect to the first free input slot if not found a specific type and this output is general + if ( + opts.wildcardToTyped && + (slotType == 0 || slotType == '*' || slotType == '') + ) { + const opt = { typesNotAccepted: [LiteGraph.EVENT] } + const nonEventSlot = findInputs + ? node.findInputSlotFree(opt) + : node.findOutputSlotFree(opt) + if (nonEventSlot >= 0) return nonEventSlot + } + } + + /** + * Finds the first free output slot with any of the comma-delimited types in {@link type}. + * + * If no slots are free, falls back in order to: + * - The first free wildcard slot + * - The first occupied slot + * - The first occupied wildcard slot + * @param type The {@link ISlotType type} of slot to find + * @returns The index and slot if found, otherwise `undefined`. + */ + findOutputByType( + type: ISlotType + ): { index: number; slot: INodeOutputSlot } | undefined { + return findFreeSlotOfType( + this.outputs, + type, + (output) => !output.links?.length + ) + } + + /** + * Finds the first free input slot with any of the comma-delimited types in {@link type}. + * + * If no slots are free, falls back in order to: + * - The first free wildcard slot + * - The first occupied slot + * - The first occupied wildcard slot + * @param type The {@link ISlotType type} of slot to find + * @returns The index and slot if found, otherwise `undefined`. + */ + findInputByType( + type: ISlotType + ): { index: number; slot: INodeInputSlot } | undefined { + return findFreeSlotOfType( + this.inputs, + type, + (input) => + input.link == null || !!this.graph?.getLink(input.link)?._dragging + ) + } + + /** + * connect this node output to the input of another node BY TYPE + * @param slot (could be the number of the slot or the string with the name of the slot) + * @param target_node the target node + * @param target_slotType the input slot type of the target node + * @returns the link_info is created, otherwise null + */ + connectByType( + slot: number | string, + target_node: LGraphNode, + target_slotType: ISlotType, + optsIn?: ConnectByTypeOptions + ): LLink | null { + const slotIndex = this.findConnectByTypeSlot( + true, + target_node, + target_slotType, + optsIn + ) + if (slotIndex !== undefined) + return this.connect(slot, target_node, slotIndex, optsIn?.afterRerouteId) + + // No compatible slot found - connection not possible + return null + } + + /** + * connect this node input to the output of another node BY TYPE + * @param slot (could be the number of the slot or the string with the name of the slot) + * @param source_node the target node + * @param source_slotType the output slot type of the target node + * @returns the link_info is created, otherwise null + */ + connectByTypeOutput( + slot: number | string, + source_node: LGraphNode, + source_slotType: ISlotType, + optsIn?: ConnectByTypeOptions + ): LLink | null { + // LEGACY: Old options names + if (typeof optsIn === 'object') { + if ('firstFreeIfInputGeneralInCase' in optsIn) + optsIn.wildcardToTyped = !!optsIn.firstFreeIfInputGeneralInCase + if ('generalTypeInCase' in optsIn) + optsIn.typedToWildcard = !!optsIn.generalTypeInCase + } + const slotIndex = this.findConnectByTypeSlot( + false, + source_node, + source_slotType, + optsIn + ) + if (slotIndex !== undefined) + return source_node.connect(slotIndex, this, slot, optsIn?.afterRerouteId) + + console.error( + '[connectByType]: no way to connect type:', + source_slotType, + 'to node:', + source_node + ) + return null + } + + canConnectTo( + node: NodeLike, + toSlot: INodeInputSlot | SubgraphIO, + fromSlot: INodeOutputSlot | SubgraphIO + ) { + return ( + this.id !== node.id && + LiteGraph.isValidConnection(fromSlot.type, toSlot.type) + ) + } + + /** + * Connect an output of this node to an input of another node + * @param slot (could be the number of the slot or the string with the name of the slot) + * @param target_node the target node + * @param target_slot the input slot of the target node (could be the number of the slot or the string with the name of the slot, or -1 to connect a trigger) + * @returns the link_info is created, otherwise null + */ + connect( + slot: number | string, + target_node: LGraphNode, + target_slot: ISlotType, + afterRerouteId?: RerouteId + ): LLink | null { + // Allow legacy API support for searching target_slot by string, without mutating the input variables + let targetIndex: number | null + + const { graph, outputs } = this + if (!graph) { + // could be connected before adding it to a graph + // due to link ids being associated with graphs + console.error( + "Connect: Error, node doesn't belong to any graph. Nodes must be added first to a graph before connecting them." + ) + return null + } + + // seek for the output slot + if (typeof slot === 'string') { + slot = this.findOutputSlot(slot) + if (slot == -1) { + if (LiteGraph.debug) + console.error(`Connect: Error, no slot of name ${slot}`) + return null + } + } else if (!outputs || slot >= outputs.length) { + if (LiteGraph.debug) + console.error('Connect: Error, slot number not found') + return null + } + + if (target_node && typeof target_node === 'number') { + const nodeById = graph.getNodeById(target_node) + if (!nodeById) throw 'target node is null' + + target_node = nodeById + } + if (!target_node) throw 'target node is null' + + // avoid loopback + if (target_node == this) return null + + // you can specify the slot by name + if (typeof target_slot === 'string') { + targetIndex = target_node.findInputSlot(target_slot) + if (targetIndex == -1) { + if (LiteGraph.debug) + console.error(`Connect: Error, no slot of name ${targetIndex}`) + return null + } + } else if (target_slot === LiteGraph.EVENT) { + // TODO: Events + if (LiteGraph.do_add_triggers_slots) { + target_node.changeMode(LGraphEventMode.ON_TRIGGER) + targetIndex = target_node.findInputSlot('onTrigger') + } else { + return null + } + } else if (typeof target_slot === 'number') { + targetIndex = target_slot + } else { + targetIndex = 0 + } + + // Allow target node to change slot + if (target_node.onBeforeConnectInput) { + // This way node can choose another slot (or make a new one?) + const requestedIndex = target_node.onBeforeConnectInput( + targetIndex, + target_slot + ) + targetIndex = typeof requestedIndex === 'number' ? requestedIndex : null + } + + if ( + targetIndex === null || + !target_node.inputs || + targetIndex >= target_node.inputs.length + ) { + if (LiteGraph.debug) + console.error('Connect: Error, slot number not found') + return null + } + + const input = target_node.inputs[targetIndex] + const output = outputs[slot] + + if (!output) return null + + if (output.links?.length) { + if ( + output.type === LiteGraph.EVENT && + !LiteGraph.allow_multi_output_for_events + ) { + graph.beforeChange() + // @ts-expect-error Unused param + this.disconnectOutput(slot, false, { doProcessChange: false }) + } + } + + const link = this.connectSlots(output, target_node, input, afterRerouteId) + return link ?? null + } + + /** + * Connect two slots between two nodes + * @param output The output slot to connect + * @param inputNode The node that the input slot is on + * @param input The input slot to connect + * @param afterRerouteId The reroute ID to use for the link + * @returns The link that was created, or null if the connection was blocked + */ + connectSlots( + output: INodeOutputSlot, + inputNode: LGraphNode, + input: INodeInputSlot, + afterRerouteId: RerouteId | undefined + ): LLink | null | undefined { + const { graph } = this + if (!graph) throw new NullGraphError() + + const layoutMutations = useLayoutMutations() + + const outputIndex = this.outputs.indexOf(output) + if (outputIndex === -1) { + console.warn('connectSlots: output not found') + return + } + const inputIndex = inputNode.inputs.indexOf(input) + if (inputIndex === -1) { + console.warn('connectSlots: input not found') + return + } + + // check targetSlot and check connection types + if (!LiteGraph.isValidConnection(output.type, input.type)) { + this.setDirtyCanvas(false, true) + return null + } + + // Allow nodes to block connection + if ( + inputNode.onConnectInput?.( + inputIndex, + output.type, + output, + this, + outputIndex + ) === false + ) + return null + if ( + this.onConnectOutput?.( + outputIndex, + input.type, + input, + inputNode, + inputIndex + ) === false + ) + return null + + // if there is something already plugged there, disconnect + if (inputNode.inputs[inputIndex]?.link != null) { + graph.beforeChange() + inputNode.disconnectInput(inputIndex, true) + } + + const maybeCommonType = + input.type && output.type && commonType(input.type, output.type) + + const link = new LLink( + ++graph.state.lastLinkId, + maybeCommonType || input.type || output.type, + this.id, + outputIndex, + inputNode.id, + inputIndex, + afterRerouteId + ) + + // add to graph links list + graph._links.set(link.id, link) + + // Register link in Layout Store for spatial tracking + layoutMutations.setSource(LayoutSource.Canvas) + layoutMutations.createLink( + link.id, + this.id, + outputIndex, + inputNode.id, + inputIndex + ) + + // connect in output + output.links ??= [] + output.links.push(link.id) + // connect in input + const targetInput = inputNode.inputs[inputIndex] + targetInput.link = link.id + if (targetInput.widget) { + graph.trigger('node:slot-links:changed', { + nodeId: inputNode.id, + slotType: NodeSlotType.INPUT, + slotIndex: inputIndex, + connected: true, + linkId: link.id + }) + } + + // Reroutes + const reroutes = LLink.getReroutes(graph, link) + for (const reroute of reroutes) { + reroute.linkIds.add(link.id) + if (reroute.floating) reroute.floating = undefined + reroute._dragging = undefined + } + + // If this is the terminus of a floating link, remove it + const lastReroute = reroutes.at(-1) + if (lastReroute) { + for (const linkId of lastReroute.floatingLinkIds) { + const link = graph.floatingLinks.get(linkId) + if (link?.parentId === lastReroute.id) { + graph.removeFloatingLink(link) + } + } + } + graph._version++ + + // link has been created now, so its updated + this.onConnectionsChange?.( + NodeSlotType.OUTPUT, + outputIndex, + true, + link, + output + ) + + inputNode.onConnectionsChange?.( + NodeSlotType.INPUT, + inputIndex, + true, + link, + input + ) + + this.setDirtyCanvas(false, true) + graph.afterChange() + + return link + } + + connectFloatingReroute( + pos: Point, + slot: INodeInputSlot | INodeOutputSlot, + afterRerouteId?: RerouteId + ): Reroute { + const { graph, id } = this + if (!graph) throw new NullGraphError() + + // Assertion: It's either there or it isn't. + const inputIndex = this.inputs.indexOf(slot as INodeInputSlot) + const outputIndex = this.outputs.indexOf(slot as INodeOutputSlot) + if (inputIndex === -1 && outputIndex === -1) throw new Error('Invalid slot') + + const slotType = outputIndex === -1 ? 'input' : 'output' + + const reroute = graph.setReroute({ + pos, + parentId: afterRerouteId, + linkIds: [], + floating: { slotType } + }) + + const parentReroute = graph.getReroute(afterRerouteId) + const fromLastFloatingReroute = + parentReroute?.floating?.slotType === 'output' + + // Adding from an output, or a floating reroute that is NOT the tip of an existing floating chain + if (afterRerouteId == null || !fromLastFloatingReroute) { + const link = new LLink( + -1, + slot.type, + outputIndex === -1 ? -1 : id, + outputIndex, + inputIndex === -1 ? -1 : id, + inputIndex + ) + link.parentId = reroute.id + graph.addFloatingLink(link) + return reroute + } + + // Adding a new floating reroute from the tip of a floating chain. + if (!parentReroute) + throw new Error('[connectFloatingReroute] Parent reroute not found') + + const link = parentReroute.getFloatingLinks('output')?.[0] + if (!link) + throw new Error('[connectFloatingReroute] Floating link not found') + + reroute.floatingLinkIds.add(link.id) + link.parentId = reroute.id + parentReroute.floating = undefined + return reroute + } + + /** + * disconnect one output to an specific node + * @param slot (could be the number of the slot or the string with the name of the slot) + * @param target_node the target node to which this slot is connected [Optional, + * if not target_node is specified all nodes will be disconnected] + * @returns if it was disconnected successfully + */ + disconnectOutput(slot: string | number, target_node?: LGraphNode): boolean { + if (typeof slot === 'string') { + slot = this.findOutputSlot(slot) + if (slot == -1) { + if (LiteGraph.debug) + console.error(`Connect: Error, no slot of name ${slot}`) + return false + } + } else if (!this.outputs || slot >= this.outputs.length) { + if (LiteGraph.debug) + console.error('Connect: Error, slot number not found') + return false + } + + // get output slot + const output = this.outputs[slot] + if (!output) return false + + if (output._floatingLinks) { + for (const link of output._floatingLinks) { + if (link.hasOrigin(this.id, slot)) { + this.graph?.removeFloatingLink(link) + } + } + } + + if (!output.links || output.links.length == 0) return false + const { links } = output + + // one of the output links in this slot + const graph = this.graph + if (!graph) throw new NullGraphError() + + if (target_node) { + const target = + typeof target_node === 'number' + ? graph.getNodeById(target_node) + : target_node + if (!target) throw 'Target Node not found' + + for (const [i, link_id] of links.entries()) { + const link_info = graph._links.get(link_id) + if (link_info?.target_id != target.id) continue + + // is the link we are searching for... + // remove here + links.splice(i, 1) + const input = target.inputs[link_info.target_slot] + // remove there + input.link = null + if (input.widget) { + graph.trigger('node:slot-links:changed', { + nodeId: target.id, + slotType: NodeSlotType.INPUT, + slotIndex: link_info.target_slot, + connected: false, + linkId: link_info.id + }) + } + + // remove the link from the links pool + link_info.disconnect(graph, 'input') + graph._version++ + + // link_info hasn't been modified so its ok + target.onConnectionsChange?.( + NodeSlotType.INPUT, + link_info.target_slot, + false, + link_info, + input + ) + this.onConnectionsChange?.( + NodeSlotType.OUTPUT, + slot, + false, + link_info, + output + ) + + break + } + } else { + // all the links in this output slot + for (const link_id of links) { + const link_info = graph._links.get(link_id) + if (!link_info) continue + if ( + link_info.target_id === SUBGRAPH_OUTPUT_ID && + graph instanceof Subgraph + ) { + const targetSlot = graph.outputNode.slots[link_info.target_slot] + if (targetSlot) { + targetSlot.linkIds.length = 0 + } else { + console.error('Missing subgraphOutput slot when disconnecting link') + } + } + + const target = graph.getNodeById(link_info.target_id) + graph._version++ + + if (target) { + const input = target.inputs[link_info.target_slot] + // remove other side link + input.link = null + if (input.widget) { + graph.trigger('node:slot-links:changed', { + nodeId: target.id, + slotType: NodeSlotType.INPUT, + slotIndex: link_info.target_slot, + connected: false, + linkId: link_info.id + }) + } + + // link_info hasn't been modified so its ok + target.onConnectionsChange?.( + NodeSlotType.INPUT, + link_info.target_slot, + false, + link_info, + input + ) + } + // remove the link from the links pool + link_info.disconnect(graph, 'input') + + this.onConnectionsChange?.( + NodeSlotType.OUTPUT, + slot, + false, + link_info, + output + ) + } + output.links = null + } + + this.setDirtyCanvas(false, true) + return true + } + + /** + * Disconnect one input + * @param slot Input slot index, or the name of the slot + * @param keepReroutes If `true`, reroutes will not be garbage collected. + * @returns true if disconnected successfully or already disconnected, otherwise false + */ + disconnectInput(slot: number | string, keepReroutes?: boolean): boolean { + // Allow search by string + if (typeof slot === 'string') { + slot = this.findInputSlot(slot) + if (slot == -1) { + if (LiteGraph.debug) + console.error(`Connect: Error, no slot of name ${slot}`) + return false + } + } else if (!this.inputs || slot >= this.inputs.length) { + if (LiteGraph.debug) { + console.error('Connect: Error, slot number not found') + } + return false + } + + const input = this.inputs[slot] + if (!input) { + console.error('disconnectInput: input not found', slot, this.inputs) + return false + } + + const { graph } = this + if (!graph) throw new NullGraphError() + + // Break floating links + if (input._floatingLinks?.size) { + for (const link of input._floatingLinks) { + graph.removeFloatingLink(link) + } + } + + const link_id = this.inputs[slot].link + if (link_id != null) { + this.inputs[slot].link = null + if (input.widget) { + graph.trigger('node:slot-links:changed', { + nodeId: this.id, + slotType: NodeSlotType.INPUT, + slotIndex: slot, + connected: false, + linkId: link_id + }) + } + + // remove other side + const link_info = graph._links.get(link_id) + if (link_info) { + // Let SubgraphInput do the disconnect. + if (link_info.origin_id === -10 && 'inputNode' in graph) { + graph.inputNode._disconnectNodeInput(this, input, link_info) + return true + } + + const target_node = graph.getNodeById(link_info.origin_id) + if (!target_node) { + console.error( + 'disconnectInput: output not found', + link_info.origin_slot + ) + return false + } + + const output = target_node.outputs[link_info.origin_slot] + if (!output?.links?.length) { + // Output not found - may have been removed + return false + } + + // search in the inputs list for this link + let i = 0 + for (const l = output.links.length; i < l; i++) { + if (output.links[i] == link_id) { + output.links.splice(i, 1) + break + } + } + + link_info.disconnect(graph, keepReroutes ? 'output' : undefined) + if (graph) graph._version++ + + this.onConnectionsChange?.( + NodeSlotType.INPUT, + slot, + false, + link_info, + input + ) + target_node.onConnectionsChange?.( + NodeSlotType.OUTPUT, + i, + false, + link_info, + output + ) + } + } + + this.setDirtyCanvas(false, true) + return true + } + + /** + * @deprecated Use {@link getInputPos} or {@link getOutputPos} instead. + * returns the center of a connection point in canvas coords + * @param is_input true if if a input slot, false if it is an output + * @param slot_number (could be the number of the slot or the string with the name of the slot) + * @param out [optional] a place to store the output, to free garbage + * @returns the position + */ + getConnectionPos(is_input: boolean, slot_number: number, out?: Point): Point { + out ||= [0, 0] + + const { + pos: [nodeX, nodeY], + inputs, + outputs + } = this + + if (this.flags.collapsed) { + const w = this._collapsed_width || LiteGraph.NODE_COLLAPSED_WIDTH + out[0] = is_input ? nodeX : nodeX + w + out[1] = nodeY - LiteGraph.NODE_TITLE_HEIGHT * 0.5 + return out + } + + // weird feature that never got finished + if (is_input && slot_number == -1) { + out[0] = nodeX + LiteGraph.NODE_TITLE_HEIGHT * 0.5 + out[1] = nodeY + LiteGraph.NODE_TITLE_HEIGHT * 0.5 + return out + } + + // hard-coded pos + const inputPos = inputs?.[slot_number]?.pos + const outputPos = outputs?.[slot_number]?.pos + + if (is_input && inputPos) { + out[0] = nodeX + inputPos[0] + out[1] = nodeY + inputPos[1] + return out + } else if (!is_input && outputPos) { + out[0] = nodeX + outputPos[0] + out[1] = nodeY + outputPos[1] + return out + } + + // default vertical slots + const offset = LiteGraph.NODE_SLOT_HEIGHT * 0.5 + const slotIndex = is_input + ? this.#defaultVerticalInputs.indexOf(this.inputs[slot_number]) + : this.#defaultVerticalOutputs.indexOf(this.outputs[slot_number]) + + out[0] = is_input ? nodeX + offset : nodeX + this.size[0] + 1 - offset + out[1] = + nodeY + + (slotIndex + 0.7) * LiteGraph.NODE_SLOT_HEIGHT + + (this.constructor.slot_start_y || 0) + return out + } + + /** + * @internal The inputs that are not positioned with absolute coordinates. + */ + get #defaultVerticalInputs() { + return this.inputs.filter( + (slot) => !slot.pos && !(this.widgets?.length && isWidgetInputSlot(slot)) + ) + } + + /** + * @internal The outputs that are not positioned with absolute coordinates. + */ + get #defaultVerticalOutputs() { + return this.outputs.filter((slot: INodeOutputSlot) => !slot.pos) + } + + /** + * Get the context needed for slot position calculations + * @internal + */ + #getSlotPositionContext(): SlotPositionContext { + return { + nodeX: this.pos[0], + nodeY: this.pos[1], + nodeWidth: this.size[0], + nodeHeight: this.size[1], + collapsed: this.flags.collapsed ?? false, + collapsedWidth: this._collapsed_width, + slotStartY: this.constructor.slot_start_y, + inputs: this.inputs, + outputs: this.outputs, + widgets: this.widgets + } + } + + /** + * Gets the position of an input slot, in graph co-ordinates. + * + * This method is preferred over the legacy {@link getConnectionPos} method. + * @param slot Input slot index + * @returns Position of the input slot + */ + getInputPos(slot: number): Point { + return calculateInputSlotPos(this.#getSlotPositionContext(), slot) + } + + /** + * Gets the position of an input slot, in graph co-ordinates. + * @param input The actual node input object + * @returns Position of the centre of the input slot in graph co-ordinates. + */ + getInputSlotPos(input: INodeInputSlot): Point { + return calculateInputSlotPosFromSlot(this.#getSlotPositionContext(), input) + } + + /** + * Gets the position of an output slot, in graph co-ordinates. + * + * This method is preferred over the legacy {@link getConnectionPos} method. + * @param outputSlotIndex Output slot index + * @returns Position of the output slot + */ + getOutputPos(outputSlotIndex: number): Point { + return calculateOutputSlotPos( + this.#getSlotPositionContext(), + outputSlotIndex + ) + } + + /** + * Get slot position using layout tree if available, fallback to node's position * Unified implementation used by both LitegraphLinkAdapter and useLinkLayoutSync + * @param slotIndex The slot index + * @param isInput Whether this is an input slot + * @returns Position of the slot center in graph coordinates + */ + getSlotPosition(slotIndex: number, isInput: boolean): Point { + return getSlotPosition(this, slotIndex, isInput) + } + + /** @inheritdoc */ + snapToGrid(snapTo: number): boolean { + return this.pinned ? false : snapPoint(this.pos, snapTo) + } + + /** @see {@link snapToGrid} */ + alignToGrid(): void { + this.snapToGrid(LiteGraph.CANVAS_GRID_SIZE) + } + + /* Console output */ + trace(msg: string): void { + this.console ||= [] + this.console.push(msg) + // @ts-expect-error deprecated + if (this.console.length > LGraphNode.MAX_CONSOLE) this.console.shift() + } + + /* Forces to redraw or the main canvas (LGraphNode) or the bg canvas (links) */ + setDirtyCanvas(dirty_foreground: boolean, dirty_background?: boolean): void { + this.graph?.canvasAction((c) => + c.setDirty(dirty_foreground, dirty_background) + ) + } + + loadImage(url: string): HTMLImageElement { + interface AsyncImageElement extends HTMLImageElement { + ready?: boolean + } + + const img: AsyncImageElement = new Image() + img.src = LiteGraph.node_images_path + url + img.ready = false + + const dirty = () => this.setDirtyCanvas(true) + img.addEventListener('load', function (this: AsyncImageElement) { + this.ready = true + dirty() + }) + return img + } + + /** + * Allows to get onMouseMove and onMouseUp events even if the mouse is out of focus + * @deprecated Use {@link LGraphCanvas.pointer} instead. + */ + captureInput(v: boolean): void { + warnDeprecated( + '[DEPRECATED] captureInput will be removed in a future version. Please use LGraphCanvas.pointer (CanvasPointer) instead.' + ) + if (!this.graph || !this.graph.list_of_graphcanvas) return + + const list = this.graph.list_of_graphcanvas + + for (const c of list) { + // releasing somebody elses capture?! + if (!v && c.node_capturing_input != this) continue + + // change + c.node_capturing_input = v ? this : null + } + } + + get collapsed() { + return !!this.flags.collapsed + } + + get collapsible() { + return !this.pinned && this.constructor.collapsable !== false + } + + /** + * Toggle node collapse (makes it smaller on the canvas) + */ + collapse(force?: boolean): void { + if (!this.collapsible && !force) return + if (!this.graph) throw new NullGraphError() + this.graph._version++ + this.flags.collapsed = !this.flags.collapsed + this.setDirtyCanvas(true, true) + } + + /** + * Toggles advanced mode of the node, showing advanced widgets + */ + toggleAdvanced() { + if (!this.widgets?.some((w) => w.advanced)) return + if (!this.graph) throw new NullGraphError() + this.graph._version++ + this.showAdvanced = !this.showAdvanced + this.expandToFitContent() + this.setDirtyCanvas(true, true) + } + + get pinned() { + return !!this.flags.pinned + } + + /** + * Prevents the node being accidentally moved or resized by mouse interaction. + * Toggles pinned state if no value is provided. + */ + pin(v?: boolean): void { + if (!this.graph) throw new NullGraphError() + + this.graph._version++ + this.flags.pinned = v ?? !this.flags.pinned + this.resizable = !this.pinned + if (!this.pinned) this.flags.pinned = undefined + } + + unpin(): void { + this.pin(false) + } + + localToScreen(x: number, y: number, dragAndScale: DragAndScale): Point { + return [ + (x + this.pos[0]) * dragAndScale.scale + dragAndScale.offset[0], + (y + this.pos[1]) * dragAndScale.scale + dragAndScale.offset[1] + ] + } + + get width() { + return this.collapsed + ? this._collapsed_width || LiteGraph.NODE_COLLAPSED_WIDTH + : this.size[0] + } + + /** + * Returns the height of the node, including the title bar. + */ + get height() { + return LiteGraph.NODE_TITLE_HEIGHT + this.bodyHeight + } + + /** + * Returns the height of the node, excluding the title bar. + */ + get bodyHeight() { + return this.collapsed ? 0 : this.size[1] + } + + drawBadges(ctx: CanvasRenderingContext2D, { gap = 2 } = {}): void { + const badgeInstances = this.badges.map((badge) => + badge instanceof LGraphBadge ? badge : badge() + ) + const isLeftAligned = this.badgePosition === BadgePosition.TopLeft + + let currentX = isLeftAligned + ? 0 + : this.width - + badgeInstances.reduce( + (acc, badge) => acc + badge.getWidth(ctx) + gap, + 0 + ) + const y = -(LiteGraph.NODE_TITLE_HEIGHT + gap) + + for (const badge of badgeInstances) { + badge.draw(ctx, currentX, y - badge.height) + currentX += badge.getWidth(ctx) + gap + } + } + + /** + * Renders the node's title bar background + */ + drawTitleBarBackground( + ctx: CanvasRenderingContext2D, + { + scale, + title_height = LiteGraph.NODE_TITLE_HEIGHT, + low_quality = false + }: DrawTitleOptions + ): void { + const fgcolor = this.renderingColor + const shape = this.renderingShape + const size = this.renderingSize + + if (this.onDrawTitleBar) { + this.onDrawTitleBar(ctx, title_height, size, scale, fgcolor) + return + } + + if (this.title_mode === TitleMode.TRANSPARENT_TITLE) { + return + } + + if (this.collapsed) { + ctx.shadowColor = LiteGraph.DEFAULT_SHADOW_COLOR + } + + ctx.fillStyle = this.constructor.title_color || fgcolor + ctx.beginPath() + + if (shape == RenderShape.BOX || low_quality) { + ctx.rect(0, -title_height, size[0], title_height) + } else if (shape == RenderShape.ROUND || shape == RenderShape.CARD) { + ctx.roundRect( + 0, + -title_height, + size[0], + title_height, + this.collapsed + ? [LiteGraph.ROUND_RADIUS] + : [LiteGraph.ROUND_RADIUS, LiteGraph.ROUND_RADIUS, 0, 0] + ) + } + ctx.fill() + ctx.shadowColor = 'transparent' + } + + /** + * Renders the node's title box, i.e. the dot in front of the title text that + * when clicked toggles the node's collapsed state. The term `title box` comes + * from the original LiteGraph implementation. + */ + drawTitleBox( + ctx: CanvasRenderingContext2D, + { + scale, + low_quality = false, + title_height = LiteGraph.NODE_TITLE_HEIGHT, + box_size = 10 + }: DrawTitleBoxOptions + ): void { + const size = this.renderingSize + const shape = this.renderingShape + + if (this.onDrawTitleBox) { + this.onDrawTitleBox(ctx, title_height, size, scale) + return + } + + if ( + [RenderShape.ROUND, RenderShape.CIRCLE, RenderShape.CARD].includes(shape) + ) { + if (low_quality) { + ctx.fillStyle = 'black' + ctx.beginPath() + ctx.arc( + title_height * 0.5, + title_height * -0.5, + box_size * 0.5 + 1, + 0, + Math.PI * 2 + ) + ctx.fill() + } + + ctx.fillStyle = this.renderingBoxColor + if (low_quality) { + ctx.fillRect( + title_height * 0.5 - box_size * 0.5, + title_height * -0.5 - box_size * 0.5, + box_size, + box_size + ) + } else { + ctx.beginPath() + ctx.arc( + title_height * 0.5, + title_height * -0.5, + box_size * 0.5, + 0, + Math.PI * 2 + ) + ctx.fill() + } + } else { + if (low_quality) { + ctx.fillStyle = 'black' + ctx.fillRect( + (title_height - box_size) * 0.5 - 1, + (title_height + box_size) * -0.5 - 1, + box_size + 2, + box_size + 2 + ) + } + ctx.fillStyle = this.renderingBoxColor + ctx.fillRect( + (title_height - box_size) * 0.5, + (title_height + box_size) * -0.5, + box_size, + box_size + ) + } + } + + /** + * Renders the node's title text. + */ + drawTitleText( + ctx: CanvasRenderingContext2D, + { + scale, + default_title_color, + low_quality = false, + title_height = LiteGraph.NODE_TITLE_HEIGHT + }: DrawTitleTextOptions + ): void { + const size = this.renderingSize + const selected = this.selected + + if (this.onDrawTitleText) { + this.onDrawTitleText( + ctx, + title_height, + size, + scale, + this.titleFontStyle, + selected + ) + return + } + + // Don't render title text if low quality + if (low_quality) { + return + } + + ctx.font = this.titleFontStyle + const rawTitle = this.getTitle() ?? `❌ ${this.type}` + const title = String(rawTitle) + (this.pinned ? '📌' : '') + if (title) { + if (selected) { + ctx.fillStyle = LiteGraph.NODE_SELECTED_TITLE_COLOR + } else { + ctx.fillStyle = this.constructor.title_text_color || default_title_color + } + + // Calculate available width for title + let availableWidth = size[0] - title_height * 2 // Basic margins + + // Subtract space for title buttons + if (this.title_buttons?.length > 0) { + let buttonsWidth = 0 + const savedFont = ctx.font // Save current font + for (const button of this.title_buttons) { + if (button.visible) { + buttonsWidth += button.getWidth(ctx) + 2 // button width + gap + } + } + ctx.font = savedFont // Restore font after button measurements + if (buttonsWidth > 0) { + buttonsWidth -= 20 // Reduce by empty padding + availableWidth -= buttonsWidth + } + } + + // Truncate title if needed + let displayTitle = title + + if (this.collapsed) { + // For collapsed nodes, limit to 20 chars as before + displayTitle = title.substr(0, 20) + } else if (availableWidth > 0) { + // For regular nodes, truncate based on available width + displayTitle = truncateText(ctx, title, availableWidth) + } + + ctx.textAlign = 'left' + ctx.fillText( + displayTitle, + title_height, + LiteGraph.NODE_TITLE_TEXT_Y - title_height + ) + } + } + + /** + * Attempts to gracefully bypass this node in all of its connections by reconnecting all links. + * + * Each input is checked against each output. This is done on a matching index basis, i.e. input 3 -> output 3. + * If there are any input links remaining, + * and {@link flags}.{@link INodeFlags.keepAllLinksOnBypass keepAllLinksOnBypass} is `true`, + * each input will check for outputs that match, and take the first one that matches + * `true`: Try the index matching first, then every input to every output. + * `false`: Only matches indexes, e.g. input 3 to output 3. + * + * If {@link flags}.{@link INodeFlags.keepAllLinksOnBypass keepAllLinksOnBypass} is `undefined`, it will fall back to + * the static {@link keepAllLinksOnBypass}. + * @returns `true` if any new links were established, otherwise `false`. + * @todo Decision: Change API to return array of new links instead? + */ + connectInputToOutput(): boolean | undefined { + const { inputs, outputs, graph } = this + if (!inputs || !outputs) return + if (!graph) throw new NullGraphError() + + const { _links } = graph + let madeAnyConnections = false + + // First pass: only match exactly index-to-index + for (const [index, input] of inputs.entries()) { + if (input.link == null) continue + + const output = outputs[index] + if (!output || !LiteGraph.isValidConnection(input.type, output.type)) + continue + + const inLink = _links.get(input.link) + if (!inLink) continue + const inNode = graph.getNodeById(inLink?.origin_id) + if (!inNode) continue + + bypassAllLinks(output, inNode, inLink, graph) + } + // Configured to only use index-to-index matching + if (!(this.flags.keepAllLinksOnBypass ?? LGraphNode.keepAllLinksOnBypass)) + return madeAnyConnections + + // Second pass: match any remaining links + for (const input of inputs) { + if (input.link == null) continue + + const inLink = _links.get(input.link) + if (!inLink) continue + const inNode = graph.getNodeById(inLink?.origin_id) + if (!inNode) continue + + for (const output of outputs) { + if (!LiteGraph.isValidConnection(input.type, output.type)) continue + + bypassAllLinks(output, inNode, inLink, graph) + break + } + } + return madeAnyConnections + + function bypassAllLinks( + output: INodeOutputSlot, + inNode: LGraphNode, + inLink: LLink, + graph: LGraph + ) { + const outLinks = output.links + ?.map((x) => _links.get(x)) + .filter((x) => !!x) + if (!outLinks?.length) return + + for (const outLink of outLinks) { + const outNode = graph.getNodeById(outLink.target_id) + if (!outNode) continue + + const result = inNode.connect( + inLink.origin_slot, + outNode, + outLink.target_slot, + inLink.parentId + ) + madeAnyConnections ||= !!result + } + } + } + + /** + * Returns `true` if the widget is visible, otherwise `false`. + */ + isWidgetVisible(widget: IBaseWidget): boolean { + const isHidden = + this.collapsed || widget.hidden || (widget.advanced && !this.showAdvanced) + return !isHidden + } + + updateComputedDisabled() { + if (!this.widgets) return + for (const widget of this.widgets) + widget.computedDisabled = + widget.disabled || this.getSlotFromWidget(widget)?.link != null + } + + drawWidgets( + ctx: CanvasRenderingContext2D, + { lowQuality = false, editorAlpha = 1 }: DrawWidgetsOptions + ): void { + if (!this.widgets) return + + const nodeWidth = this.size[0] + const { widgets } = this + const H = LiteGraph.NODE_WIDGET_HEIGHT + const showText = !lowQuality + ctx.save() + ctx.globalAlpha = editorAlpha + + this.updateComputedDisabled() + for (const widget of widgets) { + if (!this.isWidgetVisible(widget)) continue + + const { y } = widget + const outlineColour = widget.advanced + ? LiteGraph.WIDGET_ADVANCED_OUTLINE_COLOR + : LiteGraph.WIDGET_OUTLINE_COLOR + + widget.last_y = y + + ctx.strokeStyle = outlineColour + ctx.fillStyle = '#222' + ctx.textAlign = 'left' + if (widget.computedDisabled) ctx.globalAlpha *= 0.5 + const width = widget.width || nodeWidth + + if (typeof widget.draw === 'function') { + widget.draw(ctx, this, width, y, H, lowQuality) + } else { + toConcreteWidget(widget, this, false)?.drawWidget(ctx, { + width, + showText + }) + } + ctx.globalAlpha = editorAlpha + } + ctx.restore() + } + + /** + * When {@link LGraphNode.collapsed} is `true`, this method draws the node's collapsed slots. + */ + drawCollapsedSlots(ctx: CanvasRenderingContext2D): void { + // Render the first connected slot only. + for (const slot of this.#concreteInputs) { + if (slot.link != null) { + slot.drawCollapsed(ctx) + break + } + } + for (const slot of this.#concreteOutputs) { + if (slot.links?.length) { + slot.drawCollapsed(ctx) + break + } + } + } + + get slots(): (INodeInputSlot | INodeOutputSlot)[] { + return [...this.inputs, ...this.outputs] + } + + #measureSlot( + slot: NodeInputSlot | NodeOutputSlot, + slotIndex: number, + isInput: boolean + ): void { + const pos = isInput + ? this.getInputPos(slotIndex) + : this.getOutputPos(slotIndex) + + slot.boundingRect[0] = pos[0] - LiteGraph.NODE_SLOT_HEIGHT * 0.5 + slot.boundingRect[1] = pos[1] - LiteGraph.NODE_SLOT_HEIGHT * 0.5 + slot.boundingRect[2] = slot.isWidgetInputSlot + ? BaseWidget.margin + : LiteGraph.NODE_SLOT_HEIGHT + slot.boundingRect[3] = LiteGraph.NODE_SLOT_HEIGHT + } + + #measureSlots(): ReadOnlyRect | null { + const slots: (NodeInputSlot | NodeOutputSlot)[] = [] + + for (const [slotIndex, slot] of this.#concreteInputs.entries()) { + // Unrecognized nodes (Nodes with error) has inputs but no widgets. Treat + // converted inputs as normal inputs. + /** Widget input slots are handled in {@link layoutWidgetInputSlots} */ + if (this.widgets?.length && isWidgetInputSlot(slot)) continue + + this.#measureSlot(slot, slotIndex, true) + slots.push(slot) + } + for (const [slotIndex, slot] of this.#concreteOutputs.entries()) { + this.#measureSlot(slot, slotIndex, false) + slots.push(slot) + } + + return slots.length ? createBounds(slots, 0) : null + } + + #getMouseOverSlot(slot: INodeSlot): INodeSlot | null { + const isInput = isINodeInputSlot(slot) + const mouseOverId = this.mouseOver?.[isInput ? 'inputId' : 'outputId'] ?? -1 + if (mouseOverId === -1) { + return null + } + return isInput ? this.inputs[mouseOverId] : this.outputs[mouseOverId] + } + + #isMouseOverSlot(slot: INodeSlot): boolean { + return this.#getMouseOverSlot(slot) === slot + } + + #isMouseOverWidget(widget: IBaseWidget | undefined): boolean { + if (!widget) return false + return this.mouseOver?.overWidget === widget + } + + /** + * Returns the input slot that is associated with the given widget. + */ + getSlotFromWidget( + widget: IBaseWidget | undefined + ): INodeInputSlot | undefined { + if (widget) + return this.inputs.find( + (slot) => isWidgetInputSlot(slot) && slot.widget.name === widget.name + ) + } + + /** + * Returns the widget that is associated with the given input slot. + */ + getWidgetFromSlot(slot: INodeInputSlot): IBaseWidget | undefined { + if (!isWidgetInputSlot(slot)) return + return this.widgets?.find((w) => w.name === slot.widget.name) + } + + /** + * Draws the node's input and output slots. + */ + drawSlots( + ctx: CanvasRenderingContext2D, + { fromSlot, colorContext, editorAlpha, lowQuality }: DrawSlotsOptions + ) { + for (const slot of [...this.#concreteInputs, ...this.#concreteOutputs]) { + const isValidTarget = fromSlot && slot.isValidTarget(fromSlot) + const isMouseOverSlot = this.#isMouseOverSlot(slot) + + // change opacity of incompatible slots when dragging a connection + const isValid = !fromSlot || isValidTarget + const highlight = isValid && isMouseOverSlot + + // Show slot if it's not a widget input slot + // or if it's a widget input slot and satisfies one of the following: + // - the mouse is over the widget + // - the slot is valid during link drop + // - the slot is connected + if ( + isMouseOverSlot || + isValidTarget || + !slot.isWidgetInputSlot || + this.#isMouseOverWidget(this.getWidgetFromSlot(slot)) || + slot.isConnected || + slot.alwaysVisible + ) { + ctx.globalAlpha = isValid ? editorAlpha : 0.4 * editorAlpha + slot.draw(ctx, { + colorContext, + lowQuality, + highlight + }) + } + } + } + + /** + * Arranges the node's widgets vertically. + * Sets following properties on each widget: + * - {@link IBaseWidget.computedHeight} + * - {@link IBaseWidget.y} + * @param widgetStartY The y-coordinate of the first widget + */ + #arrangeWidgets(widgetStartY: number): void { + if (!this.widgets || !this.widgets.length) return + + const bodyHeight = this.bodyHeight + const startY = + this.widgets_start_y ?? (this.widgets_up ? 0 : widgetStartY) + 2 + + let freeSpace = bodyHeight - startY + + // Collect fixed height widgets first + let fixedWidgetHeight = 0 + const growableWidgets: { + minHeight: number + prefHeight?: number + w: IBaseWidget + }[] = [] + + const visibleWidgets = this.widgets.filter((w) => !w.hidden) + + for (const w of visibleWidgets) { + if (w.computeSize) { + const height = w.computeSize()[1] + 4 + w.computedHeight = height + fixedWidgetHeight += height + } else if (w.computeLayoutSize) { + const { minHeight, maxHeight } = w.computeLayoutSize(this) + growableWidgets.push({ + minHeight, + prefHeight: maxHeight, + w + }) + } else { + const height = LiteGraph.NODE_WIDGET_HEIGHT + 4 + w.computedHeight = height + fixedWidgetHeight += height + } + } + + // Calculate remaining space for DOM widgets + freeSpace -= fixedWidgetHeight + this.freeWidgetSpace = freeSpace + + // Prepare space requests for distribution + const spaceRequests = growableWidgets.map((d) => ({ + minSize: d.minHeight, + maxSize: d.prefHeight + })) + + // Distribute space among DOM widgets + const allocations = distributeSpace(Math.max(0, freeSpace), spaceRequests) + + // Apply computed heights + for (const [i, d] of growableWidgets.entries()) { + d.w.computedHeight = allocations[i] + } + + // Position widgets + let y = startY + for (const w of visibleWidgets) { + w.y = y + y += w.computedHeight ?? 0 + } + + if (!this.graph) throw new NullGraphError() + + // Grow the node if necessary. + // Ref: https://github.com/Comfy-Org/ComfyUI_frontend/issues/2652 + // TODO: Move the layout logic before drawing of the node shape, so we don't + // need to trigger extra round of rendering. + if (y > bodyHeight) { + this.setSize([this.size[0], y]) + this.graph.setDirtyCanvas(false, true) + } + } + + /** + * Arranges the layout of the node's widget input slots. + */ + #arrangeWidgetInputSlots(): void { + if (!this.widgets) return + + const slotByWidgetName = new Map< + string, + INodeInputSlot & { index: number } + >() + + for (const [i, slot] of this.inputs.entries()) { + if (!isWidgetInputSlot(slot)) continue + + slotByWidgetName.set(slot.widget.name, { ...slot, index: i }) + } + if (!slotByWidgetName.size) return + + // Only set custom pos if not using Vue positioning + // Vue positioning calculates widget slot positions dynamically + if (!LiteGraph.vueNodesMode) { + for (const widget of this.widgets) { + const slot = slotByWidgetName.get(widget.name) + if (!slot) continue + + const actualSlot = this.#concreteInputs[slot.index] + const offset = LiteGraph.NODE_SLOT_HEIGHT * 0.5 + actualSlot.pos = [offset, widget.y + offset] + this.#measureSlot(actualSlot, slot.index, true) + } + } else { + // For Vue positioning, just measure the slots without setting pos + for (const widget of this.widgets) { + const slot = slotByWidgetName.get(widget.name) + if (!slot) continue + + this.#measureSlot(this.#concreteInputs[slot.index], slot.index, true) + } + } + } + + /** + * @internal Sets the internal concrete slot arrays, ensuring they are instances of + * {@link NodeInputSlot} or {@link NodeOutputSlot}. + * + * A temporary workaround until duck-typed inputs and outputs + * have been removed from the ecosystem. + */ + _setConcreteSlots(): void { + this.#concreteInputs = this.inputs.map((slot) => + toClass(NodeInputSlot, slot, this) + ) + this.#concreteOutputs = this.outputs.map((slot) => + toClass(NodeOutputSlot, slot, this) + ) + } + + /** + * Arranges node elements in preparation for rendering (slots & widgets). + */ + arrange(): void { + const slotsBounds = this.#measureSlots() + const widgetStartY = slotsBounds + ? slotsBounds[1] + slotsBounds[3] - this.pos[1] + : 0 + this.#arrangeWidgets(widgetStartY) + this.#arrangeWidgetInputSlots() + } + + /** + * Draws a progress bar on the node. + * @param ctx The canvas context to draw on + */ + drawProgressBar(ctx: CanvasRenderingContext2D): void { + if (!this.progress) return + + const originalFillStyle = ctx.fillStyle + ctx.fillStyle = 'green' + ctx.fillRect(0, 0, this.width * this.progress, 6) + ctx.fillStyle = originalFillStyle + } +} diff --git a/docs/hel-892/openpose-reference/frontend__src__utils__executionUtil.ts b/docs/hel-892/openpose-reference/frontend__src__utils__executionUtil.ts new file mode 100644 index 00000000..3f7f982c --- /dev/null +++ b/docs/hel-892/openpose-reference/frontend__src__utils__executionUtil.ts @@ -0,0 +1,150 @@ +import type { + ExecutableLGraphNode, + ExecutionId, + LGraph +} from '@/lib/litegraph/src/litegraph' +import { + ExecutableNodeDTO, + LGraphEventMode +} from '@/lib/litegraph/src/litegraph' +import type { + ComfyApiWorkflow, + ComfyWorkflowJSON +} from '@/platform/workflow/validation/schemas/workflowSchema' + +import { ExecutableGroupNodeDTO, isGroupNode } from './executableGroupNodeDto' +import { compressWidgetInputSlots } from './litegraphUtil' + +/** + * Converts the current graph workflow for sending to the API. + * @note Node widgets are updated before serialization to prepare queueing. + * + * @param graph The graph to convert. + * @param options The options for the conversion. + * - `sortNodes`: Whether to sort the nodes by execution order. + * @returns The workflow and node links + */ +export const graphToPrompt = async ( + graph: LGraph, + options: { sortNodes?: boolean } = {} +): Promise<{ workflow: ComfyWorkflowJSON; output: ComfyApiWorkflow }> => { + const { sortNodes = false } = options + + for (const node of graph.computeExecutionOrder(false)) { + const innerNodes = node.getInnerNodes + ? node.getInnerNodes(new Map()) + : [node] + for (const innerNode of innerNodes) { + if (innerNode.isVirtualNode) { + innerNode.applyToGraph?.() + } + } + } + + const workflow = graph.serialize({ sortNodes }) + + // Remove localized_name from the workflow + for (const node of workflow.nodes) { + for (const slot of node.inputs ?? []) { + delete slot.localized_name + } + for (const slot of node.outputs ?? []) { + delete slot.localized_name + } + } + + compressWidgetInputSlots(workflow) + workflow.extra ??= {} + workflow.extra.frontendVersion = __COMFYUI_FRONTEND_VERSION__ + + const nodeDtoMap = new Map() + for (const node of graph.computeExecutionOrder(false)) { + const dto: ExecutableLGraphNode = isGroupNode(node) + ? new ExecutableGroupNodeDTO(node, [], nodeDtoMap) + : new ExecutableNodeDTO(node, [], nodeDtoMap) + + for (const innerNode of dto.getInnerNodes()) { + nodeDtoMap.set(innerNode.id, innerNode) + } + + nodeDtoMap.set(dto.id, dto) + } + + const output: ComfyApiWorkflow = {} + // Process nodes in order of execution + for (const node of nodeDtoMap.values()) { + // Don't serialize muted nodes + if ( + node.isVirtualNode || + node.mode === LGraphEventMode.NEVER || + node.mode === LGraphEventMode.BYPASS + ) { + continue + } + + const inputs: ComfyApiWorkflow[string]['inputs'] = {} + const { widgets } = node + + // Store all widget values + if (widgets) { + for (const [i, widget] of widgets.entries()) { + if (!widget.name || widget.options?.serialize === false) continue + + const widgetValue = widget.serializeValue + ? await widget.serializeValue(node, i) + : widget.value + // By default, Array values are reserved to represent node connections. + // We need to wrap the array as an object to avoid the misinterpretation + // of the array as a node connection. + // The backend automatically unwraps the object to an array during + // execution. + inputs[widget.name] = Array.isArray(widgetValue) + ? { + __value__: widgetValue + } + : widgetValue + } + } + + // Store all node links + for (const [i, input] of node.inputs.entries()) { + const resolvedInput = node.resolveInput(i) + if (!resolvedInput) continue + + // Resolved to an actual widget value rather than a node connection + if (resolvedInput.widgetInfo) { + const { value } = resolvedInput.widgetInfo + inputs[input.name] = Array.isArray(value) ? { __value__: value } : value + continue + } + + inputs[input.name] = [ + String(resolvedInput.origin_id), + // @ts-expect-error link.origin_slot is already number. + parseInt(resolvedInput.origin_slot) + ] + } + + output[String(node.id)] = { + inputs, + // TODO(huchenlei): Filter out all nodes that cannot be mapped to a + // comfyClass. + class_type: node.comfyClass!, + // Ignored by the backend. + _meta: { + title: node.title + } + } + } + + // Remove inputs connected to removed nodes + for (const { inputs } of Object.values(output)) { + for (const [i, input] of Object.entries(inputs)) { + if (Array.isArray(input) && input.length === 2 && !output[input[0]]) { + delete inputs[i] + } + } + } + + return { workflow: workflow as ComfyWorkflowJSON, output } +} diff --git a/docs/hel-892/openpose-reference/identity.json b/docs/hel-892/openpose-reference/identity.json new file mode 100644 index 00000000..9e3bc888 --- /dev/null +++ b/docs/hel-892/openpose-reference/identity.json @@ -0,0 +1,23 @@ +[ + { + "repo": "Fannovel16/comfyui_controlnet_aux", + "id": "dw", + "revision": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "installed": false + }, + { + "repo": "Comfy-Org/ComfyUI_frontend", + "id": "frontend", + "revision": "v1.36.12", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "installed": false + }, + { + "id": "vhs", + "version": "1.7.9", + "package_sha256": "ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "git_commit_binding": "unknown", + "installed": false + } +] diff --git a/docs/hel-892/openpose-reference/sources.json b/docs/hel-892/openpose-reference/sources.json new file mode 100644 index 00000000..caea31c3 --- /dev/null +++ b/docs/hel-892/openpose-reference/sources.json @@ -0,0 +1,181 @@ +{ + "sources": [ + { + "id": "dw", + "file": "LICENSE.txt", + "local_file": "dw__LICENSE.txt", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/LICENSE.txt", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" + }, + { + "id": "dw", + "file": "__init__.py", + "local_file": "dw____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4" + }, + { + "id": "dw", + "file": "node_wrappers/dwpose.py", + "local_file": "dw__node_wrappers__dwpose.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/node_wrappers/dwpose.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "0d357a3960a01faeeb1cd921c99166a2fa4d2efd3736a73624565f3e1849465f" + }, + { + "id": "dw", + "file": "utils.py", + "local_file": "dw__utils.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/utils.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "6883c2f1cd912c3d53419dfaa460f904056033db920a36c39a276284bfc994a5" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/__init__.py", + "local_file": "dw__src__custom_controlnet_aux__dwpose____init__.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/__init__.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "11733916809df84a53cfe98c3a2a448ab953f085b89280860cfffa053201cae3" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/wholebody.py", + "local_file": "dw__src__custom_controlnet_aux__dwpose__wholebody.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/wholebody.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "89c871f4aed3440c2bafcf4987e79ffeed15fb28031951c36b7614374fd9df0f" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/dwpose/util.py", + "local_file": "dw__src__custom_controlnet_aux__dwpose__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/dwpose/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "e6050a00f0cd2173e37f1da41a7f9ad3ea5cd57d73388bcd0e91cf0e393d5d3c" + }, + { + "id": "frontend", + "file": "LICENSE", + "local_file": "frontend__LICENSE", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/LICENSE", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "id": "frontend", + "file": "src/lib/litegraph/src/LGraphNode.ts", + "local_file": "frontend__src__lib__litegraph__src__LGraphNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/lib/litegraph/src/LGraphNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f" + }, + { + "id": "frontend", + "file": "src/utils/executionUtil.ts", + "local_file": "frontend__src__utils__executionUtil.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/utils/executionUtil.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36" + }, + { + "id": "frontend", + "file": "src/extensions/core/noteNode.ts", + "local_file": "frontend__src__extensions__core__noteNode.ts", + "url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/52bb58d307242a34103998ef1da8007e47501d5b/src/extensions/core/noteNode.ts", + "commit": "52bb58d307242a34103998ef1da8007e47501d5b", + "sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2" + }, + { + "id": "vhs", + "file": "LICENSE", + "local_file": "vhs__LICENSE", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "__init__.py", + "local_file": "vhs____init__.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "pyproject.toml", + "local_file": "vhs__pyproject.toml", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "299e28c3c62ec7580003132bef62e58c01fa817eff6db5a51c9f5b9e1737160a", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/nodes.py", + "local_file": "vhs__videohelpersuite__nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/load_video_nodes.py", + "local_file": "vhs__videohelpersuite__load_video_nodes.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "videohelpersuite/utils.py", + "local_file": "vhs__videohelpersuite__utils.py", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "video_formats/h264-mp4.json", + "local_file": "vhs__video_formats__h264-mp4.json", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "web/js/VHS.core.js", + "local_file": "vhs__web__js__VHS.core.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f", + "git_commit_binding": "unknown" + }, + { + "id": "vhs", + "file": "web/js/videoinfo.js", + "local_file": "vhs__web__js__videoinfo.js", + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "commit": "发布包SHA256:ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970", + "git_commit_binding": "unknown" + }, + { + "id": "dw", + "file": "src/custom_controlnet_aux/util.py", + "local_file": "dw__src__custom_controlnet_aux__util.py", + "url": "https://raw.githubusercontent.com/Fannovel16/comfyui_controlnet_aux/136f125c89aed92ced1b6fbb491e13719b72fcc0/src/custom_controlnet_aux/util.py", + "commit": "136f125c89aed92ced1b6fbb491e13719b72fcc0", + "sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34" + } + ] +} diff --git a/docs/hel-892/openpose-reference/vhs-1.7.9.zip b/docs/hel-892/openpose-reference/vhs-1.7.9.zip new file mode 100644 index 00000000..93e5d44f Binary files /dev/null and b/docs/hel-892/openpose-reference/vhs-1.7.9.zip differ diff --git a/docs/hel-892/openpose-reference/vhs-package-index.json b/docs/hel-892/openpose-reference/vhs-package-index.json new file mode 100644 index 00000000..ed383ddb --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs-package-index.json @@ -0,0 +1,188 @@ +{ + "url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip", + "sha256": "ac63991d8b237afe5b2cd2b287a14b4a4d40ff203c0f2ee9d5fe61059f57cdf8", + "members": [ + { + "file": ".github/workflows/publish.yml", + "sha256": "1faa29b17a3bac2e2d6b6e001bfdfc03d9950d186e4ecf1c26d0a0d5948de73b" + }, + { + "file": ".gitignore", + "sha256": "9a2d340506c5bfc8a9272424e3d502c0093d7b48a1146459c4b9442a9f4474f7" + }, + { + "file": "LICENSE", + "sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986" + }, + { + "file": "README.md", + "sha256": "3bc23811a88c62bf188e584b2f6b75b9d88e5ceeb1a24f66684555ef07bef6bc" + }, + { + "file": "__init__.py", + "sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f" + }, + { + "file": "pyproject.toml", + "sha256": "299e28c3c62ec7580003132bef62e58c01fa817eff6db5a51c9f5b9e1737160a" + }, + { + "file": "requirements.txt", + "sha256": "dbf7158d81418ace41097db503440bb70f41b6250d5d0b3ab3b3c86271b7b2a3" + }, + { + "file": "testframework/README.md", + "sha256": "0591f3ea7557f7893618016d9c10824e2c67ea61b14d20946a081ed204f3e083" + }, + { + "file": "testframework/__init__.py", + "sha256": "62512d3505004d4d264fd10ab02634b69dc8074a87f87896cce33802d1fc878c" + }, + { + "file": "testframework/server.py", + "sha256": "bc24382424b1409edf25b637beb4a698ce1476b68189d2cac3a019a4a76e8045" + }, + { + "file": "testframework/web/js/testRunner.js", + "sha256": "1f8aa0a3411204363ed86f6df27f8620a8630227986cd73bfe7b7d70d8a5514f" + }, + { + "file": "tests/README.md", + "sha256": "f067ce90b2c1bcd04f19db3cd38b24757040ec0d07945ac493f318f5e45a32af" + }, + { + "file": "tests/audio.json", + "sha256": "acb0c5d03c19b0d7d930a4fc2e5eed310c0eeac2e53523c877178d14b846f48e" + }, + { + "file": "tests/batch4x4.json", + "sha256": "c9a9896b34b644c95849a4fc993c837b3cd3aab49fcf1589c89d225e4d931383" + }, + { + "file": "tests/converted-format-input.json", + "sha256": "0c1e2879da768fcbd9b95b0bee4259e38bd6ec1f7866115d3cc956d48f97b729" + }, + { + "file": "tests/converted-input.json", + "sha256": "9d1c38b3c6db83a0cac1f728d6a8394e369706c3cf77a4f61dc344398ccb9158" + }, + { + "file": "tests/loop.json", + "sha256": "32e3b1317dcfa0127a667377f77a9bd0d06f1004668bc7dbeaa6d2a32018a3bd" + }, + { + "file": "tests/old-prores.json", + "sha256": "0bba95e48d0c649f96ab100cc84f0f27f5644c7d617a57fb6184eb6e2adc30a1" + }, + { + "file": "tests/old-vae-conversion.json", + "sha256": "58f369cedc6ccff64e08ce675f1599b6d4f0e47eb4c36a8e3c88db85fe137884" + }, + { + "file": "tests/simple.json", + "sha256": "3f4f0efd1db24db2b47ba81d279c6e0d0bc07ed3ac043095ac0e9475ad9dc4f4" + }, + { + "file": "video_formats/16bit-png.json", + "sha256": "a6be0eb5d81375b4d5b02b36610aef14e1738aa212ccfb22f8353ca2e2c4ad86" + }, + { + "file": "video_formats/8bit-png.json", + "sha256": "a7a133243e6c6de1b7016909ee78d61ac1ea26dc0bf064d6fb1a243a731a1c82" + }, + { + "file": "video_formats/ProRes.json", + "sha256": "781d0128a79edf0474de19c48ab5ebc128f2e022533c68435266150eb82ee2c0" + }, + { + "file": "video_formats/av1-webm.json", + "sha256": "3d94f848cada030ff738715997fb7503f39f69cdb9850452581c8896b951087e" + }, + { + "file": "video_formats/ffmpeg-gif.json", + "sha256": "ff56425b7520b106310fa12022ff7fc26becbc202cc822c899e159351033abb7" + }, + { + "file": "video_formats/ffv1-mkv.json", + "sha256": "6a19aeb65c5789145d60340e98aaa4d8426d61261a35ca87356c28f889f201a2" + }, + { + "file": "video_formats/gifski.json", + "sha256": "1e939f3df9a1ba029cd20db86da9bf998ba835ff828f7d7428ea990e7ad1439e" + }, + { + "file": "video_formats/h264-mp4.json", + "sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8" + }, + { + "file": "video_formats/h265-mp4.json", + "sha256": "e2a72bdcfcbf07e73e146716e89e0182ea4bb249530758d586e91ed45da6393c" + }, + { + "file": "video_formats/nvenc_av1-mp4.json", + "sha256": "dffe86c90af9ca37729b510f824f36791356f5acf5747a323da619d9cb2f2d11" + }, + { + "file": "video_formats/nvenc_h264-mp4.json", + "sha256": "c93c8a0f2549e20f9f2d746052d633eeaa00187734571a4e327e0672112069dd" + }, + { + "file": "video_formats/nvenc_hevc-mp4.json", + "sha256": "3a6ad85bc69bd35f7888ee44d3d9e5076138443a7b8dfae6a4267f2236676e31" + }, + { + "file": "video_formats/webm.json", + "sha256": "04a0c5ac4a14d73baae933e230b37257857214c31492adc2b990f8009892379d" + }, + { + "file": "videohelpersuite/batched_nodes.py", + "sha256": "c822651e28c775a35da1441e2b1b2d7cd664fcc6649ba9d2c9b87faa8ac00edb" + }, + { + "file": "videohelpersuite/documentation.py", + "sha256": "0d648daf98831545ee33f50a53ead7f12779d6630b1a001f7d9ea8418b4d90e0" + }, + { + "file": "videohelpersuite/image_latent_nodes.py", + "sha256": "da2abefefef8d44d1a927417866205149cb85dc6a41cab7f542bd332e96d5390" + }, + { + "file": "videohelpersuite/latent_preview.py", + "sha256": "3dc18cba8bc44614db45547258c8800b0b61fb566b4af706cf0306ef45b8c5f0" + }, + { + "file": "videohelpersuite/load_images_nodes.py", + "sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4" + }, + { + "file": "videohelpersuite/load_video_nodes.py", + "sha256": "8991b715a999408c3821045e2a781609a156476d771325679e9ad9ca16db0aee" + }, + { + "file": "videohelpersuite/logger.py", + "sha256": "2e2e9ed679410a170346c572a867d9a654327388ba6ea6a242215c590772e668" + }, + { + "file": "videohelpersuite/nodes.py", + "sha256": "6d975d8fd8906784a4d9233ccc1238150ed33c6311d06c53fd08b5ee96e30442" + }, + { + "file": "videohelpersuite/server.py", + "sha256": "7f6831f3095c09a0c8076b8676c2bdf966cbb3ed2884b58da6e571e989b806fc" + }, + { + "file": "videohelpersuite/utils.py", + "sha256": "ea3d02e0f41dc6b59685fcf6de9217d4b7729766e05e44200433c74e75466a6a" + }, + { + "file": "web/js/VHS.core.js", + "sha256": "437b2b9745df24372a0ec686483e7ac1aa9b08b0f32db4eda9a8b0d66ca9023f" + }, + { + "file": "web/js/videoinfo.js", + "sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970" + } + ], + "git_commit_binding": "unknown", + "note": "发布包同字节不等于提交绑定" +} diff --git a/docs/hel-892/openpose-reference/vhs-registry.json b/docs/hel-892/openpose-reference/vhs-registry.json new file mode 100644 index 00000000..55317b0d --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs-registry.json @@ -0,0 +1 @@ +{"changelog":"","createdAt":"2025-12-17T22:23:57.624918Z","dependencies":["opencv-python","imageio-ffmpeg"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.9/node.zip","id":"3648b457-5781-42f0-ae74-bf01a98c28cf","node_id":"comfyui-videohelpersuite","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.7.9"} diff --git a/docs/hel-892/openpose-reference/vhs__LICENSE b/docs/hel-892/openpose-reference/vhs__LICENSE new file mode 100644 index 00000000..f288702d --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__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/openpose-reference/vhs____init__.py b/docs/hel-892/openpose-reference/vhs____init__.py new file mode 100644 index 00000000..9fa995f0 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs____init__.py @@ -0,0 +1,9 @@ +from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +import folder_paths +from .videohelpersuite.server import server +from .videohelpersuite import documentation +from .videohelpersuite import latent_preview + +WEB_DIRECTORY = "./web" +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] +documentation.format_descriptions(NODE_CLASS_MAPPINGS) diff --git a/docs/hel-892/openpose-reference/vhs__pyproject.toml b/docs/hel-892/openpose-reference/vhs__pyproject.toml new file mode 100644 index 00000000..39793ee5 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__pyproject.toml @@ -0,0 +1,15 @@ +[project] +name = "comfyui-videohelpersuite" +description = "Nodes related to video workflows" +version = "1.7.9" +license = { file = "LICENSE" } +dependencies = ["opencv-python", "imageio-ffmpeg"] + +[project.urls] +Repository = "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite" + +# Used by Comfy Registry https://comfyregistry.org +[tool.comfy] +PublisherId = "kosinkadink" +DisplayName = "ComfyUI-VideoHelperSuite" +Icon = "" diff --git a/docs/hel-892/openpose-reference/vhs__video_formats__h264-mp4.json b/docs/hel-892/openpose-reference/vhs__video_formats__h264-mp4.json new file mode 100644 index 00000000..89d290c9 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__video_formats__h264-mp4.json @@ -0,0 +1,15 @@ +{ + "main_pass": + [ + "-n", "-c:v", "libx264", + "-pix_fmt", ["pix_fmt", ["yuv420p", "yuv420p10le"]], + "-crf", ["crf","INT", {"default": 19, "min": 0, "max": 100, "step": 1}], + "-vf", "scale=out_color_matrix=bt709", + "-color_range", "tv", "-colorspace", "bt709", "-color_primaries", "bt709", "-color_trc", "bt709" + ], + "fake_trc": "bt709", + "audio_pass": ["-c:a", "aac"], + "save_metadata": ["save_metadata", "BOOLEAN", {"default": true}], + "trim_to_audio": ["trim_to_audio", "BOOLEAN", {"default": false}], + "extension": "mp4" +} diff --git a/docs/hel-892/openpose-reference/vhs__videohelpersuite__load_video_nodes.py b/docs/hel-892/openpose-reference/vhs__videohelpersuite__load_video_nodes.py new file mode 100644 index 00000000..b23e40f5 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__videohelpersuite__load_video_nodes.py @@ -0,0 +1,671 @@ +import os +import itertools +import numpy as np +import torch +from PIL import Image, ImageOps +import cv2 +import psutil +import subprocess +import re +import time + +import folder_paths +from comfy.utils import common_upscale, ProgressBar +import nodes +from comfy.k_diffusion.utils import FolderOfImages +from .logger import logger +from .utils import BIGMAX, DIMMAX, calculate_file_hash, get_sorted_dir_files_from_directory,\ + lazy_get_audio, hash_path, validate_path, strip_path, try_download_video, \ + is_url, imageOrLatent, ffmpeg_path, ENCODE_ARGS, floatOrInt + + +video_extensions = ['webm', 'mp4', 'mkv', 'gif', 'mov'] + +VHSLoadFormats = { + 'None': {}, + 'AnimateDiff': {'target_rate': 8, 'dim': (8,0,512,512)}, + 'Mochi': {'target_rate': 24, 'dim': (16,0,848,480), 'frames':(6,1)}, + 'LTXV': {'target_rate': 24, 'dim': (32,0,768,512), 'frames':(8,1)}, + 'Hunyuan': {'target_rate': 24, 'dim': (16,0,848,480), 'frames':(4,1)}, + 'Cosmos': {'target_rate': 24, 'dim': (16,0,1280,704), 'frames':(8,1)}, + 'Wan': {'target_rate': 16, 'dim': (8,0,832,480), 'frames':(4,1)}, +} +""" +External plugins may add additional formats to nodes.VHSLoadFormats +In addition to shorthand options, direct widget names will map a given dict to options. +Adding a third arguement to a frames tuple can enable strict checks on number +of loaded frames, i.e (8,1,True) +""" +if not hasattr(nodes, 'VHSLoadFormats'): + nodes.VHSLoadFormats = {} + +def get_load_formats(): + #TODO: check if {**extra_config.VHSLoafFormats, **VHSLoadFormats} has minimum version + formats = {} + formats.update(nodes.VHSLoadFormats) + formats.update(VHSLoadFormats) + return (list(formats.keys()), + {'default': 'AnimateDiff', 'formats': formats}) +def get_format(format): + if format in VHSLoadFormats: + return VHSLoadFormats[format] + return nodes.VHSLoadFormats.get(format, {}) + +def is_gif(filename) -> bool: + file_parts = filename.split('.') + return len(file_parts) > 1 and file_parts[-1] == "gif" + + +def target_size(width, height, custom_width, custom_height, downscale_ratio=8) -> tuple[int, int]: + if downscale_ratio is None: + downscale_ratio = 8 + if custom_width == 0 and custom_height == 0: + pass + elif custom_height == 0: + height *= custom_width/width + width = custom_width + elif custom_width == 0: + width *= custom_height/height + height = custom_height + else: + width = custom_width + height = custom_height + width = int(width/downscale_ratio + 0.5) * downscale_ratio + height = int(height/downscale_ratio + 0.5) * downscale_ratio + return (width, height) + +def cv_frame_generator(video, force_rate, frame_load_cap, skip_first_frames, + select_every_nth, meta_batch=None, unique_id=None): + video_cap = cv2.VideoCapture(video) + if not video_cap.isOpened() or not video_cap.grab(): + raise ValueError(f"{video} could not be loaded with cv.") + + # extract video metadata + fps = video_cap.get(cv2.CAP_PROP_FPS) + width = int(video_cap.get(cv2.CAP_PROP_FRAME_WIDTH)) + height = int(video_cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) + total_frames = int(video_cap.get(cv2.CAP_PROP_FRAME_COUNT)) + duration = total_frames / fps + + width = 0 + + if width <=0 or height <=0: + _, frame = video_cap.retrieve() + height, width, _ = frame.shape + + # set video_cap to look at start_index frame + total_frame_count = 0 + total_frames_evaluated = -1 + frames_added = 0 + base_frame_time = 1 / fps + prev_frame = None + + if force_rate == 0: + target_frame_time = base_frame_time + else: + target_frame_time = 1/force_rate + + if total_frames > 0: + if force_rate != 0: + yieldable_frames = int(total_frames / fps * force_rate) + else: + yieldable_frames = total_frames + if select_every_nth: + yieldable_frames //= select_every_nth + if frame_load_cap != 0: + yieldable_frames = min(frame_load_cap, yieldable_frames) + else: + yieldable_frames = 0 + yield (width, height, fps, duration, total_frames, target_frame_time, yieldable_frames) + pbar = ProgressBar(yieldable_frames) + time_offset=target_frame_time + while video_cap.isOpened(): + if time_offset < target_frame_time: + is_returned = video_cap.grab() + # if didn't return frame, video has ended + if not is_returned: + break + time_offset += base_frame_time + if time_offset < target_frame_time: + continue + time_offset -= target_frame_time + # if not at start_index, skip doing anything with frame + total_frame_count += 1 + if total_frame_count <= skip_first_frames: + continue + else: + total_frames_evaluated += 1 + + # if should not be selected, skip doing anything with frame + if total_frames_evaluated%select_every_nth != 0: + continue + + # opencv loads images in BGR format (yuck), so need to convert to RGB for ComfyUI use + # follow up: can videos ever have an alpha channel? + # To my testing: No. opencv has no support for alpha + unused, frame = video_cap.retrieve() + frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) + # convert frame to comfyui's expected format + # TODO: frame contains no exif information. Check if opencv2 has already applied + frame = np.array(frame, dtype=np.float32) + torch.from_numpy(frame).div_(255) + if prev_frame is not None: + inp = yield prev_frame + if inp is not None: + #ensure the finally block is called + return + prev_frame = frame + frames_added += 1 + if pbar is not None: + pbar.update_absolute(frames_added, yieldable_frames) + # if cap exists and we've reached it, stop processing frames + if frame_load_cap > 0 and frames_added >= frame_load_cap: + break + if meta_batch is not None: + meta_batch.inputs.pop(unique_id) + meta_batch.has_closed_inputs = True + if prev_frame is not None: + yield prev_frame + +def ffmpeg_frame_generator(video, force_rate, frame_load_cap, start_time, + custom_width, custom_height, downscale_ratio=8, + meta_batch=None, unique_id=None): + args_input = ["-i", video] + args_dummy = [ffmpeg_path] + args_input +['-c', 'copy', '-frames:v', '1', "-f", "null", "-"] + size_base = None + fps_base = None + try: + dummy_res = subprocess.run(args_dummy, stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + lines = dummy_res.stderr.decode(*ENCODE_ARGS) + if "Video: vp9 " in lines: + args_input = ["-c:v", "libvpx-vp9"] + args_input + args_dummy = [ffmpeg_path] + args_input +['-c', 'copy', '-frames:v', '1', "-f", "null", "-"] + try: + dummy_res = subprocess.run(args_dummy, stdout=subprocess.DEVNULL, + stderr=subprocess.PIPE, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + lines = dummy_res.stderr.decode(*ENCODE_ARGS) + + for line in lines.split('\n'): + match = re.search("^ *Stream .* Video.*, ([1-9]|\\d{2,})x(\\d+)", line) + if match is not None: + size_base = [int(match.group(1)), int(match.group(2))] + fps_match = re.search(", ([\\d\\.]+) fps", line) + if fps_match: + fps_base = float(fps_match.group(1)) + else: + fps_base = 1 + alpha = re.search("(yuva|rgba|bgra|gbra)", line) is not None + break + else: + raise Exception("Failed to parse video/image information. FFMPEG output:\n" + lines) + + durs_match = re.search("Duration: (\\d+:\\d+:\\d+\\.\\d+),", lines) + if durs_match: + durs = durs_match.group(1).split(':') + duration = int(durs[0])*3600 + int(durs[1])*60 + float(durs[2]) + else: + duration = 0 + + if start_time > 0: + if start_time > 4: + post_seek = ['-ss', '4'] + args_input = ['-ss', str(start_time - 4)] + args_input + else: + post_seek = ['-ss', str(start_time)] + else: + post_seek = [] + args_all_frames = [ffmpeg_path, "-v", "error", "-an"] + \ + args_input + ["-pix_fmt", "rgba64le"] + post_seek + + vfilters = [] + if force_rate != 0: + vfilters.append("fps=fps="+str(force_rate)) + if custom_width != 0 or custom_height != 0: + size = target_size(size_base[0], size_base[1], custom_width, + custom_height, downscale_ratio=downscale_ratio) + ar = float(size[0])/float(size[1]) + if abs(size_base[0]*ar-size_base[1]) >= 1: + #Aspect ratio is changed. Crop to new aspect ratio before scale + vfilters.append(f"crop=if(gt({ar}\\,a)\\,iw\\,ih*{ar}):if(gt({ar}\\,a)\\,iw/{ar}\\,ih)") + size_arg = ':'.join(map(str,size)) + vfilters.append(f"scale={size_arg}") + else: + size = size_base + if len(vfilters) > 0: + args_all_frames += ["-vf", ",".join(vfilters)] + yieldable_frames = (force_rate or fps_base)*duration + if frame_load_cap > 0: + args_all_frames += ["-frames:v", str(frame_load_cap)] + yieldable_frames = min(yieldable_frames, frame_load_cap) + yield (size_base[0], size_base[1], fps_base, duration, fps_base * duration, + 1/(force_rate or fps_base), yieldable_frames, size[0], size[1], alpha) + + args_all_frames += ["-f", "rawvideo", "-"] + pbar = ProgressBar(yieldable_frames) + try: + with subprocess.Popen(args_all_frames, stdout=subprocess.PIPE) as proc: + #Manually buffer enough bytes for an image + bpi = size[0] * size[1] * 8 + current_bytes = bytearray(bpi) + current_offset=0 + prev_frame = None + while True: + bytes_read = proc.stdout.read(bpi - current_offset) + if bytes_read is None:#sleep to wait for more data + time.sleep(.1) + continue + if len(bytes_read) == 0:#EOF + break + current_bytes[current_offset:len(bytes_read)] = bytes_read + current_offset+=len(bytes_read) + if current_offset == bpi: + if prev_frame is not None: + yield prev_frame + pbar.update(1) + prev_frame = np.frombuffer(current_bytes, dtype=np.dtype(np.uint16).newbyteorder("<")).reshape(size[1], size[0], 4) / (2**16-1) + if not alpha: + prev_frame = prev_frame[:, :, :-1] + current_offset = 0 + except BrokenPipeError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + proc.stderr.read().decode(*ENCODE_ARGS)) + if meta_batch is not None: + meta_batch.inputs.pop(unique_id) + meta_batch.has_closed_inputs = True + if prev_frame is not None: + yield prev_frame + +#Python 3.12 adds an itertools.batched, but it's easily replicated for legacy support +def batched(it, n): + while batch := tuple(itertools.islice(it, n)): + yield batch +def batched_vae_encode(images, vae, frames_per_batch): + for batch in batched(images, frames_per_batch): + image_batch = torch.from_numpy(np.array(batch)) + yield from vae.encode(image_batch).numpy() +def resized_cv_frame_gen(custom_width, custom_height, downscale_ratio, **kwargs): + gen = cv_frame_generator(**kwargs) + info = next(gen) + width, height = info[0], info[1] + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + if kwargs.get('meta_batch', None) is not None: + frames_per_batch = min(frames_per_batch, kwargs['meta_batch'].frames_per_batch) + if custom_width != 0 or custom_height != 0 or downscale_ratio is not None: + new_size = target_size(width, height, custom_width, custom_height, downscale_ratio) + yield (*info, new_size[0], new_size[1], False) + if new_size[0] != width or new_size[1] != height: + def rescale(frame): + s = torch.from_numpy(np.fromiter(frame, np.dtype((np.float32, (height, width, 3))))) + s = s.movedim(-1,1) + s = common_upscale(s, new_size[0], new_size[1], "lanczos", "center") + return s.movedim(1,-1).numpy() + yield from itertools.chain.from_iterable(map(rescale, batched(gen, frames_per_batch))) + return + else: + yield (*info, info[0], info[1], False) + yield from gen + +def load_video(meta_batch=None, unique_id=None, memory_limit_mb=None, vae=None, + generator=resized_cv_frame_gen, format='None', **kwargs): + if 'force_size' in kwargs: + kwargs.pop('force_size') + logger.warn("force_size has been removed. Did you reload the webpage after updating?") + format = get_format(format) + kwargs['video'] = strip_path(kwargs['video']) + if vae is not None: + downscale_ratio = getattr(vae, "downscale_ratio", 8) + else: + downscale_ratio = format.get('dim', (1,))[0] + if meta_batch is None or unique_id not in meta_batch.inputs: + gen = generator(meta_batch=meta_batch, unique_id=unique_id, downscale_ratio=downscale_ratio, **kwargs) + (width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) = next(gen) + + if meta_batch is not None: + meta_batch.inputs[unique_id] = (gen, width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) + if yieldable_frames: + meta_batch.total_frames = min(meta_batch.total_frames, yieldable_frames) + + else: + (gen, width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) = meta_batch.inputs[unique_id] + + memory_limit = None + if memory_limit_mb is not None: + memory_limit *= 2 ** 20 + else: + #TODO: verify if garbage collection should be performed here. + #leaves ~128 MB unreserved for safety + try: + memory_limit = (psutil.virtual_memory().available + psutil.swap_memory().free) - 2 ** 27 + except: + logger.warn("Failed to calculate available memory. Memory load limit has been disabled") + memory_limit = BIGMAX + if vae is not None: + #space required to load as f32, exist as latent with wiggle room, decode to f32 + max_loadable_frames = int(memory_limit//(width*height*3*(4+4+1/10))) + else: + #TODO: use better estimate for when vae is not None + #Consider completely ignoring for load_latent case? + max_loadable_frames = int(memory_limit//(width*height*3*(.1))) + if meta_batch is not None: + if 'frames' in format: + if meta_batch.frames_per_batch % format['frames'][0] != format['frames'][1]: + error = (meta_batch.frames_per_batch - format['frames'][1]) % format['frames'][0] + suggested = meta_batch.frames_per_batch - error + if error > format['frames'][0] / 2: + suggested += format['frames'][0] + raise RuntimeError(f"The chosen frames per batch is incompatible with the selected format. Try {suggested}") + if meta_batch.frames_per_batch > max_loadable_frames: + raise RuntimeError(f"Meta Batch set to {meta_batch.frames_per_batch} frames but only {max_loadable_frames} can fit in memory") + gen = itertools.islice(gen, meta_batch.frames_per_batch) + else: + original_gen = gen + gen = itertools.islice(gen, max_loadable_frames) + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + if vae is not None: + gen = batched_vae_encode(gen, vae, frames_per_batch) + vw,vh = new_width//downscale_ratio, new_height//downscale_ratio + channels = getattr(vae, 'latent_channels', 4) + images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (channels,vh,vw))))) + else: + #Some minor wizardry to eliminate a copy and reduce max memory by a factor of ~2 + images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (new_height, new_width, 4 if alpha else 3))))) + if meta_batch is None and memory_limit is not None: + try: + next(original_gen) + raise RuntimeError(f"Memory limit hit after loading {len(images)} frames. Stopping execution.") + except StopIteration: + pass + if len(images) == 0: + raise RuntimeError("No frames generated") + if 'frames' in format and len(images) % format['frames'][0] != format['frames'][1]: + err_msg = f"The number of frames loaded {len(images)}, does not match the requirements of the currently selected format." + if len(format['frames']) > 2 and format['frames'][2]: + raise RuntimeError(err_msg) + div, mod = format['frames'][:2] + frames = (len(images) - mod) // div * div + mod + images = images[:frames] + #Commenting out log message since it's displayed in UI. consider further + #logger.warn(err_msg + f" Output has been truncated to {len(images)} frames.") + if 'start_time' in kwargs: + start_time = kwargs['start_time'] + else: + start_time = kwargs['skip_first_frames'] * target_frame_time + target_frame_time *= kwargs.get('select_every_nth', 1) + #Setup lambda for lazy audio capture + audio = lazy_get_audio(kwargs['video'], start_time, kwargs['frame_load_cap']*target_frame_time) + #Adjust target_frame_time for select_every_nth + video_info = { + "source_fps": fps, + "source_frame_count": total_frames, + "source_duration": duration, + "source_width": width, + "source_height": height, + "loaded_fps": 1/target_frame_time, + "loaded_frame_count": len(images), + "loaded_duration": len(images) * target_frame_time, + "loaded_width": new_width, + "loaded_height": new_height, + } + if vae is None: + return (images, len(images), audio, video_info) + else: + return ({"samples": images}, len(images), audio, video_info) + + + +class LoadVideoUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1].lower() in video_extensions): + files.append(f) + return {"required": { + "video": (sorted(files),), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "skip_first_frames": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "INT", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "frame_count", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + kwargs['video'] = folder_paths.get_annotated_filepath(strip_path(kwargs['video'])) + return load_video(**kwargs) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + image_path = folder_paths.get_annotated_filepath(video) + return calculate_file_hash(image_path) + + @classmethod + def VALIDATE_INPUTS(s, video): + if not folder_paths.exists_annotated_filepath(video): + return "Invalid video file: {}".format(video) + return True + + +class LoadVideoPath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video": ("STRING", {"placeholder": "X://insert/path/here.mp4", "vhs_path_extensions": video_extensions}), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "skip_first_frames": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}), + "select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "INT", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "frame_count", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + if kwargs['video'] is None or validate_path(kwargs['video']) != True: + raise Exception("video is not a valid path: " + kwargs['video']) + if is_url(kwargs['video']): + kwargs['video'] = try_download_video(kwargs['video']) or kwargs['video'] + return load_video(**kwargs) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + return hash_path(video) + + @classmethod + def VALIDATE_INPUTS(s, video): + return validate_path(video, allow_none=True) + +class LoadVideoFFmpegUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1].lower() in video_extensions): + files.append(f) + return {"required": { + "video": (sorted(files),), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "start_time": ("FLOAT", {"default": 0, "min": 0, "max": BIGMAX, "step": .001, "widgetType": "VHSTIMESTAMP"}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "MASK", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "mask", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + kwargs['video'] = folder_paths.get_annotated_filepath(strip_path(kwargs['video'])) + image, _, audio, video_info = load_video(**kwargs, generator=ffmpeg_frame_generator) + if image.size(3) == 4: + return (image[:,:,:,:3], 1-image[:,:,:,3], audio, video_info) + return (image, torch.zeros(image.size(0), 64, 64, device="cpu"), audio, video_info) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + image_path = folder_paths.get_annotated_filepath(video) + return calculate_file_hash(image_path) + + @classmethod + def VALIDATE_INPUTS(s, video): + if not folder_paths.exists_annotated_filepath(video): + return "Invalid video file: {}".format(video) + return True + + +class LoadVideoFFmpegPath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video": ("STRING", {"placeholder": "X://insert/path/here.mp4", "vhs_path_extensions": video_extensions}), + "force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}), + "frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}), + "start_time": ("FLOAT", {"default": 0, "min": 0, "max": BIGMAX, "step": .001, "widgetType": "VHSTIMESTAMP"}), + }, + "optional": { + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + "format": get_load_formats(), + }, + "hidden": { + "force_size": "STRING", + "unique_id": "UNIQUE_ID" + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "MASK", "AUDIO", "VHS_VIDEOINFO") + RETURN_NAMES = ("IMAGE", "mask", "audio", "video_info") + + FUNCTION = "load_video" + + def load_video(self, **kwargs): + if kwargs['video'] is None or validate_path(kwargs['video']) != True: + raise Exception("video is not a valid path: " + kwargs['video']) + if is_url(kwargs['video']): + kwargs['video'] = try_download_video(kwargs['video']) or kwargs['video'] + image, _, audio, video_info = load_video(**kwargs, generator=ffmpeg_frame_generator) + if isinstance(image, dict): + return (image, None, audio, video_info) + if image.size(3) == 4: + return (image[:,:,:,:3], 1-image[:,:,:,3], audio, video_info) + return (image, torch.zeros(image.size(0), 64, 64, device="cpu"), audio, video_info) + + @classmethod + def IS_CHANGED(s, video, **kwargs): + return hash_path(video) + + @classmethod + def VALIDATE_INPUTS(s, video): + return validate_path(video, allow_none=True) + +class LoadImagePath: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ("STRING", {"placeholder": "X://insert/path/here.png", "vhs_path_extensions": list(FolderOfImages.IMG_EXTENSIONS)}), + "custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, "step": 8, 'disable': 0}), + "custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, "step": 8, 'disable': 0}), + }, + "optional": { + "vae": ("VAE",), + }, + "hidden": { + "force_size": "STRING", + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = (imageOrLatent, "MASK") + RETURN_NAMES = ("IMAGE", "mask") + + FUNCTION = "load_image" + + def load_image(self, **kwargs): + if kwargs['image'] is None or validate_path(kwargs['image']) != True: + raise Exception("image is not a valid path: " + kwargs['image']) + kwargs.update({'video': kwargs['image'], 'force_rate': 0, 'frame_load_cap': 0, + 'start_time': 0}) + kwargs.pop('image') + image, _, _, _ = load_video(**kwargs, generator=ffmpeg_frame_generator) + if isinstance(image, dict): + return (image, None) + if image.size(3) == 4: + return (image[:,:,:,:3], 1-image[:,:,:,3]) + return (image, torch.zeros(image.size(0), 64, 64, device="cpu")) + + @classmethod + def IS_CHANGED(s, image, **kwargs): + return hash_path(image) + + @classmethod + def VALIDATE_INPUTS(s, image): + return validate_path(image, allow_none=True) diff --git a/docs/hel-892/openpose-reference/vhs__videohelpersuite__nodes.py b/docs/hel-892/openpose-reference/vhs__videohelpersuite__nodes.py new file mode 100644 index 00000000..f40461e7 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__videohelpersuite__nodes.py @@ -0,0 +1,1111 @@ +import os +import sys +import json +import subprocess +import numpy as np +import re +import datetime +from typing import List +import torch +from PIL import Image, ExifTags +from PIL.PngImagePlugin import PngInfo +from pathlib import Path +from string import Template +import itertools +import functools + +import folder_paths +from .logger import logger +from .image_latent_nodes import * +from .load_video_nodes import LoadVideoUpload, LoadVideoPath, LoadVideoFFmpegUpload, LoadVideoFFmpegPath, LoadImagePath +from .load_images_nodes import LoadImagesFromDirectoryUpload, LoadImagesFromDirectoryPath +from .batched_nodes import VAEEncodeBatched, VAEDecodeBatched +from .utils import ffmpeg_path, get_audio, hash_path, validate_path, requeue_workflow, \ + gifski_path, calculate_file_hash, strip_path, try_download_video, is_url, \ + imageOrLatent, BIGMAX, merge_filter_args, ENCODE_ARGS, floatOrInt, cached, \ + ContainsAll +from comfy.utils import ProgressBar + +if 'VHS_video_formats' not in folder_paths.folder_names_and_paths: + folder_paths.folder_names_and_paths["VHS_video_formats"] = ((),{".json"}) +if len(folder_paths.folder_names_and_paths['VHS_video_formats'][1]) == 0: + folder_paths.folder_names_and_paths["VHS_video_formats"][1].add(".json") +audio_extensions = ['mp3', 'mp4', 'wav', 'ogg'] + +def flatten_list(l): + ret = [] + for e in l: + if isinstance(e, list): + ret.extend(e) + else: + ret.append(e) + return ret + +def iterate_format(video_format, for_widgets=True): + """Provides an iterator over widgets, or arguments""" + def indirector(cont, index): + if isinstance(cont[index], list) and (not for_widgets + or len(cont[index])> 1 and not isinstance(cont[index][1], dict)): + inp = yield cont[index] + if inp is not None: + cont[index] = inp + yield + for k in video_format: + if k == "extra_widgets": + if for_widgets: + yield from video_format["extra_widgets"] + elif k.endswith("_pass"): + for i in range(len(video_format[k])): + yield from indirector(video_format[k], i) + if not for_widgets: + video_format[k] = flatten_list(video_format[k]) + else: + yield from indirector(video_format, k) + +base_formats_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "video_formats") +@cached(5) +def get_video_formats(): + format_files = {} + for format_name in folder_paths.get_filename_list("VHS_video_formats"): + format_files[format_name] = folder_paths.get_full_path("VHS_video_formats", format_name) + for item in os.scandir(base_formats_dir): + if not item.is_file() or not item.name.endswith('.json'): + continue + format_files[item.name[:-5]] = item.path + formats = [] + format_widgets = {} + for format_name, path in format_files.items(): + with open(path, 'r') as stream: + video_format = json.load(stream) + if "gifski_pass" in video_format and gifski_path is None: + #Skip format + continue + widgets = list(iterate_format(video_format)) + formats.append("video/" + format_name) + if (len(widgets) > 0): + format_widgets["video/"+ format_name] = widgets + return formats, format_widgets + +def apply_format_widgets(format_name, kwargs): + if os.path.exists(os.path.join(base_formats_dir, format_name + ".json")): + video_format_path = os.path.join(base_formats_dir, format_name + ".json") + else: + video_format_path = folder_paths.get_full_path("VHS_video_formats", format_name) + with open(video_format_path, 'r') as stream: + video_format = json.load(stream) + for w in iterate_format(video_format): + if w[0] not in kwargs: + if len(w) > 2 and 'default' in w[2]: + default = w[2]['default'] + else: + if type(w[1]) is list: + default = w[1][0] + else: + #NOTE: This doesn't respect max/min, but should be good enough as a fallback to a fallback to a fallback + default = {"BOOLEAN": False, "INT": 0, "FLOAT": 0, "STRING": ""}[w[1]] + kwargs[w[0]] = default + logger.warn(f"Missing input for {w[0][0]} has been set to {default}") + wit = iterate_format(video_format, False) + for w in wit: + while isinstance(w, list): + if len(w) == 1: + #TODO: mapping=kwargs should be safer, but results in key errors, investigate why + w = [Template(x).substitute(**kwargs) for x in w[0]] + break + elif isinstance(w[1], dict): + w = w[1][str(kwargs[w[0]])] + elif len(w) > 3: + w = Template(w[3]).substitute(val=kwargs[w[0]]) + else: + w = str(kwargs[w[0]]) + wit.send(w) + return video_format + +def tensor_to_int(tensor, bits): + tensor = tensor.cpu().numpy() * (2**bits-1) + 0.5 + return np.clip(tensor, 0, (2**bits-1)) +def tensor_to_shorts(tensor): + return tensor_to_int(tensor, 16).astype(np.uint16) +def tensor_to_bytes(tensor): + return tensor_to_int(tensor, 8).astype(np.uint8) + +def ffmpeg_process(args, video_format, video_metadata, file_path, env): + + res = None + frame_data = yield + total_frames_output = 0 + if video_format.get('save_metadata', 'False') != 'False': + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + metadata = json.dumps(video_metadata) + metadata_path = os.path.join(folder_paths.get_temp_directory(), "metadata.txt") + #metadata from file should escape = ; # \ and newline + metadata = metadata.replace("\\","\\\\") + metadata = metadata.replace(";","\\;") + metadata = metadata.replace("#","\\#") + metadata = metadata.replace("=","\\=") + metadata = metadata.replace("\n","\\\n") + metadata = "comment=" + metadata + with open(metadata_path, "w") as f: + f.write(";FFMETADATA1\n") + f.write(metadata) + m_args = args[:1] + ["-i", metadata_path] + args[1:] + ["-metadata", "creation_time=now"] + with subprocess.Popen(m_args + [file_path], stderr=subprocess.PIPE, + stdin=subprocess.PIPE, env=env) as proc: + try: + while frame_data is not None: + proc.stdin.write(frame_data) + #TODO: skip flush for increased speed + frame_data = yield + total_frames_output+=1 + proc.stdin.flush() + proc.stdin.close() + res = proc.stderr.read() + except BrokenPipeError as e: + err = proc.stderr.read() + #Check if output file exists. If it does, the re-execution + #will also fail. This obscures the cause of the error + #and seems to never occur concurrent to the metadata issue + if os.path.exists(file_path): + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + err.decode(*ENCODE_ARGS)) + #Res was not set + print(err.decode(*ENCODE_ARGS), end="", file=sys.stderr) + logger.warn("An error occurred when saving with metadata") + if res != b'': + with subprocess.Popen(args + [file_path], stderr=subprocess.PIPE, + stdin=subprocess.PIPE, env=env) as proc: + try: + while frame_data is not None: + proc.stdin.write(frame_data) + frame_data = yield + total_frames_output+=1 + proc.stdin.flush() + proc.stdin.close() + res = proc.stderr.read() + except BrokenPipeError as e: + res = proc.stderr.read() + raise Exception("An error occurred in the ffmpeg subprocess:\n" \ + + res.decode(*ENCODE_ARGS)) + yield total_frames_output + if len(res) > 0: + print(res.decode(*ENCODE_ARGS), end="", file=sys.stderr) + +def gifski_process(args, dimensions, frame_rate, video_format, file_path, env): + frame_data = yield + with subprocess.Popen(args + video_format['main_pass'] + ['-f', 'yuv4mpegpipe', '-'], + stderr=subprocess.PIPE, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, env=env) as procff: + with subprocess.Popen([gifski_path] + video_format['gifski_pass'] + + ['-W', f'{dimensions[0]}', '-H', f'{dimensions[1]}'] + + ['-r', f'{frame_rate}'] + + ['-q', '-o', file_path, '-'], stderr=subprocess.PIPE, + stdin=procff.stdout, stdout=subprocess.PIPE, + env=env) as procgs: + try: + while frame_data is not None: + procff.stdin.write(frame_data) + frame_data = yield + procff.stdin.flush() + procff.stdin.close() + resff = procff.stderr.read() + resgs = procgs.stderr.read() + outgs = procgs.stdout.read() + except BrokenPipeError as e: + procff.stdin.close() + resff = procff.stderr.read() + resgs = procgs.stderr.read() + raise Exception("An error occurred while creating gifski output\n" \ + + "Make sure you are using gifski --version >=1.32.0\nffmpeg: " \ + + resff.decode(*ENCODE_ARGS) + '\ngifski: ' + resgs.decode(*ENCODE_ARGS)) + if len(resff) > 0: + print(resff.decode(*ENCODE_ARGS), end="", file=sys.stderr) + if len(resgs) > 0: + print(resgs.decode(*ENCODE_ARGS), end="", file=sys.stderr) + #should always be empty as the quiet flag is passed + if len(outgs) > 0: + print(outgs.decode(*ENCODE_ARGS)) + +def to_pingpong(inp): + if not hasattr(inp, "__getitem__"): + inp = list(inp) + yield from inp + for i in range(len(inp)-2,0,-1): + yield inp[i] + +class VideoCombine: + @classmethod + def INPUT_TYPES(s): + ffmpeg_formats, format_widgets = get_video_formats() + format_widgets["image/webp"] = [['lossless', "BOOLEAN", {'default': True}]] + return { + "required": { + "images": (imageOrLatent,), + "frame_rate": ( + floatOrInt, + {"default": 8, "min": 1, "step": 1}, + ), + "loop_count": ("INT", {"default": 0, "min": 0, "max": 100, "step": 1}), + "filename_prefix": ("STRING", {"default": "AnimateDiff"}), + "format": (["image/gif", "image/webp"] + ffmpeg_formats, {'formats': format_widgets}), + "pingpong": ("BOOLEAN", {"default": False}), + "save_output": ("BOOLEAN", {"default": True}), + }, + "optional": { + "audio": ("AUDIO",), + "meta_batch": ("VHS_BatchManager",), + "vae": ("VAE",), + }, + "hidden": ContainsAll({ + "prompt": "PROMPT", + "extra_pnginfo": "EXTRA_PNGINFO", + "unique_id": "UNIQUE_ID" + }), + } + + RETURN_TYPES = ("VHS_FILENAMES",) + RETURN_NAMES = ("Filenames",) + OUTPUT_NODE = True + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "combine_video" + + def combine_video( + self, + frame_rate: int, + loop_count: int, + images=None, + latents=None, + filename_prefix="AnimateDiff", + format="image/gif", + pingpong=False, + save_output=True, + prompt=None, + extra_pnginfo=None, + audio=None, + unique_id=None, + manual_format_widgets=None, + meta_batch=None, + vae=None, + **kwargs + ): + if latents is not None: + images = latents + if images is None: + return ((save_output, []),) + if vae is not None: + if isinstance(images, dict): + images = images['samples'] + else: + vae = None + + if isinstance(images, torch.Tensor) and images.size(0) == 0: + return ((save_output, []),) + num_frames = len(images) + pbar = ProgressBar(num_frames) + if vae is not None: + downscale_ratio = getattr(vae, "downscale_ratio", 8) + width = images.size(-1)*downscale_ratio + height = images.size(-2)*downscale_ratio + frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1 + #Python 3.12 adds an itertools.batched, but it's easily replicated for legacy support + def batched(it, n): + while batch := tuple(itertools.islice(it, n)): + yield batch + def batched_encode(images, vae, frames_per_batch): + for batch in batched(iter(images), frames_per_batch): + image_batch = torch.from_numpy(np.array(batch)) + yield from vae.decode(image_batch) + images = batched_encode(images, vae, frames_per_batch) + first_image = next(images) + #repush first_image + images = itertools.chain([first_image], images) + #A single image has 3 dimensions. Discard higher dimensions + while len(first_image.shape) > 3: + first_image = first_image[0] + else: + first_image = images[0] + images = iter(images) + # get output information + output_dir = ( + folder_paths.get_output_directory() + if save_output + else folder_paths.get_temp_directory() + ) + ( + full_output_folder, + filename, + _, + subfolder, + _, + ) = folder_paths.get_save_image_path(filename_prefix, output_dir) + output_files = [] + + metadata = PngInfo() + video_metadata = {} + if prompt is not None: + metadata.add_text("prompt", json.dumps(prompt)) + video_metadata["prompt"] = json.dumps(prompt) + if extra_pnginfo is not None: + for x in extra_pnginfo: + metadata.add_text(x, json.dumps(extra_pnginfo[x])) + video_metadata[x] = extra_pnginfo[x] + extra_options = extra_pnginfo.get('workflow', {}).get('extra', {}) + else: + extra_options = {} + metadata.add_text("CreationTime", datetime.datetime.now().isoformat(" ")[:19]) + + if meta_batch is not None and unique_id in meta_batch.outputs: + (counter, output_process) = meta_batch.outputs[unique_id] + else: + # comfy counter workaround + max_counter = 0 + + # Loop through the existing files + matcher = re.compile(f"{re.escape(filename)}_(\\d+)\\D*\\..+", re.IGNORECASE) + for existing_file in os.listdir(full_output_folder): + # Check if the file matches the expected format + match = matcher.fullmatch(existing_file) + if match: + # Extract the numeric portion of the filename + file_counter = int(match.group(1)) + # Update the maximum counter value if necessary + if file_counter > max_counter: + max_counter = file_counter + + # Increment the counter by 1 to get the next available value + counter = max_counter + 1 + output_process = None + + # save first frame as png to keep metadata + first_image_file = f"{filename}_{counter:05}.png" + file_path = os.path.join(full_output_folder, first_image_file) + if extra_options.get('VHS_MetadataImage', True) != False: + Image.fromarray(tensor_to_bytes(first_image)).save( + file_path, + pnginfo=metadata, + compress_level=4, + ) + output_files.append(file_path) + + format_type, format_ext = format.split("/") + if format_type == "image": + if meta_batch is not None: + raise Exception("Pillow('image/') formats are not compatible with batched output") + image_kwargs = {} + if format_ext == "gif": + image_kwargs['disposal'] = 2 + if format_ext == "webp": + #Save timestamp information + exif = Image.Exif() + exif[ExifTags.IFD.Exif] = {36867: datetime.datetime.now().isoformat(" ")[:19]} + image_kwargs['exif'] = exif + image_kwargs['lossless'] = kwargs.get("lossless", True) + file = f"{filename}_{counter:05}.{format_ext}" + file_path = os.path.join(full_output_folder, file) + if pingpong: + images = to_pingpong(images) + def frames_gen(images): + for i in images: + pbar.update(1) + yield Image.fromarray(tensor_to_bytes(i)) + frames = frames_gen(images) + # Use pillow directly to save an animated image + next(frames).save( + file_path, + format=format_ext.upper(), + save_all=True, + append_images=frames, + duration=round(1000 / frame_rate), + loop=loop_count, + compress_level=4, + **image_kwargs + ) + output_files.append(file_path) + else: + # Use ffmpeg to save a video + if ffmpeg_path is None: + raise ProcessLookupError(f"ffmpeg is required for video outputs and could not be found.\nIn order to use video outputs, you must either:\n- Install imageio-ffmpeg with pip,\n- Place a ffmpeg executable in {os.path.abspath('')}, or\n- Install ffmpeg and add it to the system path.") + + if manual_format_widgets is not None: + logger.warn("Format args can now be passed directly. The manual_format_widgets argument is now deprecated") + kwargs.update(manual_format_widgets) + + has_alpha = first_image.shape[-1] == 4 + kwargs["has_alpha"] = has_alpha + video_format = apply_format_widgets(format_ext, kwargs) + dim_alignment = video_format.get("dim_alignment", 2) + if (first_image.shape[1] % dim_alignment) or (first_image.shape[0] % dim_alignment): + #output frames must be padded + to_pad = (-first_image.shape[1] % dim_alignment, + -first_image.shape[0] % dim_alignment) + padding = (to_pad[0]//2, to_pad[0] - to_pad[0]//2, + to_pad[1]//2, to_pad[1] - to_pad[1]//2) + padfunc = torch.nn.ReplicationPad2d(padding) + def pad(image): + image = image.permute((2,0,1))#HWC to CHW + padded = padfunc(image.to(dtype=torch.float32)) + return padded.permute((1,2,0)) + images = map(pad, images) + dimensions = (-first_image.shape[1] % dim_alignment + first_image.shape[1], + -first_image.shape[0] % dim_alignment + first_image.shape[0]) + logger.warn("Output images were not of valid resolution and have had padding applied") + else: + dimensions = (first_image.shape[1], first_image.shape[0]) + if pingpong: + if meta_batch is not None: + logger.error("pingpong is incompatible with batched output") + images = to_pingpong(images) + if num_frames > 2: + num_frames += num_frames -2 + pbar.total = num_frames + if loop_count > 0: + loop_args = ["-vf", "loop=loop=" + str(loop_count)+":size=" + str(num_frames)] + else: + loop_args = [] + if video_format.get('input_color_depth', '8bit') == '16bit': + images = map(tensor_to_shorts, images) + if has_alpha: + i_pix_fmt = 'rgba64' + else: + i_pix_fmt = 'rgb48' + else: + images = map(tensor_to_bytes, images) + if has_alpha: + i_pix_fmt = 'rgba' + else: + i_pix_fmt = 'rgb24' + file = f"{filename}_{counter:05}.{video_format['extension']}" + file_path = os.path.join(full_output_folder, file) + bitrate_arg = [] + bitrate = video_format.get('bitrate') + if bitrate is not None: + bitrate_arg = ["-b:v", str(bitrate) + "M" if video_format.get('megabit') == 'True' else str(bitrate) + "K"] + args = [ffmpeg_path, "-v", "error", "-f", "rawvideo", "-pix_fmt", i_pix_fmt, + # The image data is in an undefined generic RGB color space, which in practice means sRGB. + # sRGB has the same primaries and matrix as BT.709, but a different transfer function (gamma), + # called by the sRGB standard name IEC 61966-2-1. However, video hosting platforms like YouTube + # standardize on full BT.709 and will convert the colors accordingly. This last minute change + # in colors can be confusing to users. We can counter it by lying about the transfer function + # on a per format basis, i.e. for video we will lie to FFmpeg that it is already BT.709. Also, + # because the input data is in RGB (not YUV) it is more efficient (fewer scale filter invocations) + # to specify the input color space as RGB and then later, if the format actually wants YUV, + # to convert it to BT.709 YUV via FFmpeg's -vf "scale=out_color_matrix=bt709". + "-color_range", "pc", "-colorspace", "rgb", "-color_primaries", "bt709", + "-color_trc", video_format.get("fake_trc", "iec61966-2-1"), + "-s", f"{dimensions[0]}x{dimensions[1]}", "-r", str(frame_rate), "-i", "-"] \ + + loop_args + + images = map(lambda x: x.tobytes(), images) + env=os.environ.copy() + if "environment" in video_format: + env.update(video_format["environment"]) + + if "pre_pass" in video_format: + if meta_batch is not None: + #Performing a prepass requires keeping access to all frames. + #Potential solutions include keeping just output frames in + #memory or using 3 passes with intermediate file, but + #very long gifs probably shouldn't be encouraged + raise Exception("Formats which require a pre_pass are incompatible with Batch Manager.") + images = [b''.join(images)] + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + in_args_len = args.index("-i") + 2 # The index after ["-i", "-"] + pre_pass_args = args[:in_args_len] + video_format['pre_pass'] + merge_filter_args(pre_pass_args) + try: + subprocess.run(pre_pass_args, input=images[0], env=env, + capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the ffmpeg prepass:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if "inputs_main_pass" in video_format: + in_args_len = args.index("-i") + 2 # The index after ["-i", "-"] + args = args[:in_args_len] + video_format['inputs_main_pass'] + args[in_args_len:] + + if output_process is None: + if 'gifski_pass' in video_format: + format = 'image/gif' + output_process = gifski_process(args, dimensions, frame_rate, video_format, file_path, env) + audio = None + else: + args += video_format['main_pass'] + bitrate_arg + merge_filter_args(args) + output_process = ffmpeg_process(args, video_format, video_metadata, file_path, env) + #Proceed to first yield + output_process.send(None) + if meta_batch is not None: + meta_batch.outputs[unique_id] = (counter, output_process) + + for image in images: + pbar.update(1) + output_process.send(image) + if meta_batch is not None: + requeue_workflow((meta_batch.unique_id, not meta_batch.has_closed_inputs)) + if meta_batch is None or meta_batch.has_closed_inputs: + #Close pipe and wait for termination. + try: + total_frames_output = output_process.send(None) + output_process.send(None) + except StopIteration: + pass + if meta_batch is not None: + meta_batch.outputs.pop(unique_id) + if len(meta_batch.outputs) == 0: + meta_batch.reset() + else: + #batch is unfinished + #TODO: Check if empty output breaks other custom nodes + return {"ui": {"unfinished_batch": [True]}, "result": ((save_output, []),)} + + output_files.append(file_path) + + + a_waveform = None + if audio is not None: + try: + #safely check if audio produced by VHS_LoadVideo actually exists + a_waveform = audio['waveform'] + except: + pass + if a_waveform is not None: + # Create audio file if input was provided + output_file_with_audio = f"{filename}_{counter:05}-audio.{video_format['extension']}" + output_file_with_audio_path = os.path.join(full_output_folder, output_file_with_audio) + if "audio_pass" not in video_format: + logger.warn("Selected video format does not have explicit audio support") + video_format["audio_pass"] = ["-c:a", "libopus"] + + + # FFmpeg command with audio re-encoding + #TODO: expose audio quality options if format widgets makes it in + #Reconsider forcing apad/shortest + channels = audio['waveform'].size(1) + min_audio_dur = total_frames_output / frame_rate + 1 + if video_format.get('trim_to_audio', 'False') != 'False': + apad = [] + else: + apad = ["-af", "apad=whole_dur="+str(min_audio_dur)] + mux_args = [ffmpeg_path, "-v", "error", "-n", "-i", file_path, + "-ar", str(audio['sample_rate']), "-ac", str(channels), + "-f", "f32le", "-i", "-", "-c:v", "copy"] \ + + video_format["audio_pass"] \ + + apad + ["-shortest", output_file_with_audio_path] + + audio_data = audio['waveform'].squeeze(0).transpose(0,1) \ + .numpy().tobytes() + merge_filter_args(mux_args, '-af') + try: + res = subprocess.run(mux_args, input=audio_data, + env=env, capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if res.stderr: + print(res.stderr.decode(*ENCODE_ARGS), end="", file=sys.stderr) + output_files.append(output_file_with_audio_path) + #Return this file with audio to the webui. + #It will be muted unless opened or saved with right click + file = output_file_with_audio + if extra_options.get('VHS_KeepIntermediate', True) == False: + for intermediate in output_files[1:-1]: + if os.path.exists(intermediate): + os.remove(intermediate) + preview = { + "filename": file, + "subfolder": subfolder, + "type": "output" if save_output else "temp", + "format": format, + "frame_rate": frame_rate, + "workflow": first_image_file, + "fullpath": output_files[-1], + } + if num_frames == 1 and 'png' in format and '%03d' in file: + preview['format'] = 'image/png' + preview['filename'] = file.replace('%03d', '001') + return {"ui": {"gifs": [preview]}, "result": ((save_output, output_files),)} + +class LoadAudio: + @classmethod + def INPUT_TYPES(s): + #Hide ffmpeg formats if ffmpeg isn't available + return { + "required": { + "audio_file": ("STRING", {"default": "input/", "vhs_path_extensions": ['wav','mp3','ogg','m4a','flac']}), + }, + "optional" : { + "seek_seconds": ("FLOAT", {"default": 0, "min": 0, "widgetType": "VHSTIMESTAMP"}), + "duration": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01, "widgetType": "VHSTIMESTAMP"}), + } + } + + RETURN_TYPES = ("AUDIO", "FLOAT") + RETURN_NAMES = ("audio", "duration") + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + FUNCTION = "load_audio" + def load_audio(self, audio_file, seek_seconds=0, duration=0): + audio_file = strip_path(audio_file) + if audio_file is None or validate_path(audio_file) != True: + raise Exception("audio_file is not a valid path: " + audio_file) + if is_url(audio_file): + audio_file = try_download_video(audio_file) or audio_file + #Eagerly fetch the audio since the user must be using it if the + #node executes, unlike Load Video + audio = get_audio(audio_file, start_time=seek_seconds, duration=duration) + loaded_duration = audio['waveform'].size(2)/audio['sample_rate'] + return (audio, loaded_duration) + + @classmethod + def IS_CHANGED(s, audio_file, **kwargs): + return hash_path(audio_file) + + @classmethod + def VALIDATE_INPUTS(s, audio_file, **kwargs): + return validate_path(audio_file, allow_none=True) + +class LoadAudioUpload: + @classmethod + def INPUT_TYPES(s): + input_dir = folder_paths.get_input_directory() + files = [] + for f in os.listdir(input_dir): + if os.path.isfile(os.path.join(input_dir, f)): + file_parts = f.split('.') + if len(file_parts) > 1 and (file_parts[-1] in audio_extensions): + files.append(f) + return {"required": { + "audio": (sorted(files),),}, + "optional": { + "start_time": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01, "widgetType": "VHSTIMESTAMP"}), + "duration": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01, "widgetType": "VHSTIMESTAMP"}), + }, + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("AUDIO", "FLOAT") + RETURN_NAMES = ("audio", "duration") + FUNCTION = "load_audio" + + def load_audio(self, start_time=0, duration=0, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(kwargs['audio'])) + if audio_file is None or validate_path(audio_file) != True: + raise Exception("audio_file is not a valid path: " + audio_file) + + audio = get_audio(audio_file, start_time, duration) + loaded_duration = audio['waveform'].size(2)/audio['sample_rate'] + return (audio, loaded_duration) + + @classmethod + def IS_CHANGED(s, audio, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(audio)) + return hash_path(audio_file) + + @classmethod + def VALIDATE_INPUTS(s, audio, **kwargs): + audio_file = folder_paths.get_annotated_filepath(strip_path(audio)) + return validate_path(audio_file, allow_none=True) +class AudioToVHSAudio: + """Legacy method for external nodes that utilized VHS_AUDIO, + VHS_AUDIO is deprecated as a format and should no longer be used""" + @classmethod + def INPUT_TYPES(s): + return {"required": {"audio": ("AUDIO",)}} + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("VHS_AUDIO", ) + RETURN_NAMES = ("vhs_audio",) + FUNCTION = "convert_audio" + + def convert_audio(self, audio): + ar = str(audio['sample_rate']) + ac = str(audio['waveform'].size(1)) + mux_args = [ffmpeg_path, "-f", "f32le", "-ar", ar, "-ac", ac, + "-i", "-", "-f", "wav", "-"] + + audio_data = audio['waveform'].squeeze(0).transpose(0,1) \ + .numpy().tobytes() + try: + res = subprocess.run(mux_args, input=audio_data, + capture_output=True, check=True) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if res.stderr: + print(res.stderr.decode(*ENCODE_ARGS), end="", file=sys.stderr) + return (lambda: res.stdout,) + +class VHSAudioToAudio: + """Legacy method for external nodes that utilized VHS_AUDIO, + VHS_AUDIO is deprecated as a format and should no longer be used""" + @classmethod + def INPUT_TYPES(s): + return {"required": {"vhs_audio": ("VHS_AUDIO",)}} + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢/audio" + + RETURN_TYPES = ("AUDIO", ) + RETURN_NAMES = ("audio",) + FUNCTION = "convert_audio" + + def convert_audio(self, vhs_audio): + if not vhs_audio or not vhs_audio(): + raise Exception("audio input is not valid") + args = [ffmpeg_path, "-i", '-'] + try: + res = subprocess.run(args + ["-f", "f32le", "-"], input=vhs_audio(), + capture_output=True, check=True) + audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32) + except subprocess.CalledProcessError as e: + raise Exception("An error occured in the ffmpeg subprocess:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS)) + if match: + ar = int(match.group(1)) + #NOTE: Just throwing an error for other channel types right now + #Will deal with issues if they come + ac = {"mono": 1, "stereo": 2}[match.group(2)] + else: + ar = 44100 + ac = 2 + audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0) + return ({'waveform': audio, 'sample_rate': ar},) + +class PruneOutputs: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "filenames": ("VHS_FILENAMES",), + "options": (["Intermediate", "Intermediate and Utility"],) + } + } + + RETURN_TYPES = () + OUTPUT_NODE = True + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "prune_outputs" + + def prune_outputs(self, filenames, options): + if len(filenames[1]) == 0: + return () + assert(len(filenames[1]) <= 3 and len(filenames[1]) >= 2) + delete_list = [] + if options in ["Intermediate", "Intermediate and Utility", "All"]: + delete_list += filenames[1][1:-1] + if options in ["Intermediate and Utility", "All"]: + delete_list.append(filenames[1][0]) + if options in ["All"]: + delete_list.append(filenames[1][-1]) + + output_dirs = [folder_paths.get_output_directory(), + folder_paths.get_temp_directory()] + for file in delete_list: + #Check that path is actually an output directory + if (os.path.commonpath([output_dirs[0], file]) != output_dirs[0]) \ + and (os.path.commonpath([output_dirs[1], file]) != output_dirs[1]): + raise Exception("Tried to prune output from invalid directory: " + file) + if os.path.exists(file): + os.remove(file) + return () + +class BatchManager: + def __init__(self, frames_per_batch=-1): + self.frames_per_batch = frames_per_batch + self.inputs = {} + self.outputs = {} + self.unique_id = None + self.has_closed_inputs = False + self.total_frames = float('inf') + def reset(self): + self.close_inputs() + for key in self.outputs: + if getattr(self.outputs[key][-1], "gi_suspended", False): + try: + self.outputs[key][-1].send(None) + except StopIteration: + pass + self.__init__(self.frames_per_batch) + def has_open_inputs(self): + return len(self.inputs) > 0 + def close_inputs(self): + for key in self.inputs: + if getattr(self.inputs[key][-1], "gi_suspended", False): + try: + self.inputs[key][-1].send(1) + except StopIteration: + pass + self.inputs = {} + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "frames_per_batch": ("INT", {"default": 16, "min": 1, "max": BIGMAX, "step": 1}) + }, + "hidden": { + "prompt": "PROMPT", + "unique_id": "UNIQUE_ID" + }, + } + + RETURN_TYPES = ("VHS_BatchManager",) + RETURN_NAMES = ("meta_batch",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "update_batch" + + def update_batch(self, frames_per_batch, prompt=None, unique_id=None): + if unique_id is not None and prompt is not None: + requeue = prompt[unique_id]['inputs'].get('requeue', 0) + else: + requeue = 0 + if requeue == 0: + self.reset() + self.frames_per_batch = frames_per_batch + self.unique_id = unique_id + else: + num_batches = (self.total_frames+self.frames_per_batch-1)//frames_per_batch + print(f'Meta-Batch {requeue}/{num_batches}') + #onExecuted seems to not be called unless some message is sent + return (self,) + + +class VideoInfo: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT", "FLOAT","INT", "FLOAT", "INT", "INT") + RETURN_NAMES = ( + "source_fps🟨", + "source_frame_count🟨", + "source_duration🟨", + "source_width🟨", + "source_height🟨", + "loaded_fps🟦", + "loaded_frame_count🟦", + "loaded_duration🟦", + "loaded_width🟦", + "loaded_height🟦", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + source_info = [] + loaded_info = [] + + for key in keys: + source_info.append(video_info[f"source_{key}"]) + loaded_info.append(video_info[f"loaded_{key}"]) + + return (*source_info, *loaded_info) + + +class VideoInfoSource: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT",) + RETURN_NAMES = ( + "fps🟨", + "frame_count🟨", + "duration🟨", + "width🟨", + "height🟨", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + source_info = [] + + for key in keys: + source_info.append(video_info[f"source_{key}"]) + + return (*source_info,) + + +class VideoInfoLoaded: + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "video_info": ("VHS_VIDEOINFO",), + } + } + + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + + RETURN_TYPES = ("FLOAT","INT", "FLOAT", "INT", "INT",) + RETURN_NAMES = ( + "fps🟦", + "frame_count🟦", + "duration🟦", + "width🟦", + "height🟦", + ) + FUNCTION = "get_video_info" + + def get_video_info(self, video_info): + keys = ["fps", "frame_count", "duration", "width", "height"] + + loaded_info = [] + + for key in keys: + loaded_info.append(video_info[f"loaded_{key}"]) + + return (*loaded_info,) + +class SelectFilename: + @classmethod + def INPUT_TYPES(s): + return {"required": {"filenames": ("VHS_FILENAMES",), "index": ("INT", {"default": -1, "step": 1, "min": -1})}} + RETURN_TYPES = ("STRING",) + RETURN_NAMES =("Filename",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "select_filename" + + def select_filename(self, filenames, index): + return (filenames[1][index],) +class Unbatch: + class Any(str): + def __ne__(self, other): + return False + @classmethod + def INPUT_TYPES(s): + return {"required": {"batched": ("*",)}} + RETURN_TYPES = (Any('*'),) + INPUT_IS_LIST = True + RETURN_NAMES =("unbatched",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "unbatch" + def unbatch(self, batched): + if isinstance(batched[0], torch.Tensor): + return (torch.cat(batched),) + if isinstance(batched[0], dict): + out = batched[0].copy() + if 'samples' in out: + out['samples'] = torch.cat([x['samples'] for x in batched]) + if 'waveform' in out: + out['waveform'] = torch.cat([x['waveform'] for x in batched]) + out.pop('batch_index', None) + return (out,) + return (functools.reduce(lambda x,y: x+y, batched),) + @classmethod + def VALIDATE_INPUTS(cls, input_types): + return True +class SelectLatest: + @classmethod + def INPUT_TYPES(s): + return {"required": {"filename_prefix": ("STRING", {'default': 'output/AnimateDiff', 'vhs_path_extensions': []}), + "filename_postfix": ("STRING", {"placeholder": ".webm"})}} + RETURN_TYPES = ("STRING",) + RETURN_NAMES =("Filename",) + CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" + FUNCTION = "select_latest" + EXPERIMENTAL = True + + def select_latest(self, filename_prefix, filename_postfix): + assert False, "Not Reachable" + +NODE_CLASS_MAPPINGS = { + "VHS_VideoCombine": VideoCombine, + "VHS_LoadVideo": LoadVideoUpload, + "VHS_LoadVideoPath": LoadVideoPath, + "VHS_LoadVideoFFmpeg": LoadVideoFFmpegUpload, + "VHS_LoadVideoFFmpegPath": LoadVideoFFmpegPath, + "VHS_LoadImagePath": LoadImagePath, + "VHS_LoadImages": LoadImagesFromDirectoryUpload, + "VHS_LoadImagesPath": LoadImagesFromDirectoryPath, + "VHS_LoadAudio": LoadAudio, + "VHS_LoadAudioUpload": LoadAudioUpload, + "VHS_AudioToVHSAudio": AudioToVHSAudio, + "VHS_VHSAudioToAudio": VHSAudioToAudio, + "VHS_PruneOutputs": PruneOutputs, + "VHS_BatchManager": BatchManager, + "VHS_VideoInfo": VideoInfo, + "VHS_VideoInfoSource": VideoInfoSource, + "VHS_VideoInfoLoaded": VideoInfoLoaded, + "VHS_SelectFilename": SelectFilename, + # Batched Nodes + "VHS_VAEEncodeBatched": VAEEncodeBatched, + "VHS_VAEDecodeBatched": VAEDecodeBatched, + # Latent and Image nodes + "VHS_SplitLatents": SplitLatents, + "VHS_SplitImages": SplitImages, + "VHS_SplitMasks": SplitMasks, + "VHS_MergeLatents": MergeLatents, + "VHS_MergeImages": MergeImages, + "VHS_MergeMasks": MergeMasks, + "VHS_GetLatentCount": GetLatentCount, + "VHS_GetImageCount": GetImageCount, + "VHS_GetMaskCount": GetMaskCount, + "VHS_DuplicateLatents": RepeatLatents, + "VHS_DuplicateImages": RepeatImages, + "VHS_DuplicateMasks": RepeatMasks, + "VHS_SelectEveryNthLatent": SelectEveryNthLatent, + "VHS_SelectEveryNthImage": SelectEveryNthImage, + "VHS_SelectEveryNthMask": SelectEveryNthMask, + "VHS_SelectLatents": SelectLatents, + "VHS_SelectImages": SelectImages, + "VHS_SelectMasks": SelectMasks, + "VHS_Unbatch": Unbatch, + "VHS_SelectLatest": SelectLatest, +} +NODE_DISPLAY_NAME_MAPPINGS = { + "VHS_VideoCombine": "Video Combine 🎥🅥🅗🅢", + "VHS_LoadVideo": "Load Video (Upload) 🎥🅥🅗🅢", + "VHS_LoadVideoPath": "Load Video (Path) 🎥🅥🅗🅢", + "VHS_LoadVideoFFmpeg": "Load Video FFmpeg (Upload) 🎥🅥🅗🅢", + "VHS_LoadVideoFFmpegPath": "Load Video FFmpeg (Path) 🎥🅥🅗🅢", + "VHS_LoadImagePath": "Load Image (Path) 🎥🅥🅗🅢", + "VHS_LoadImages": "Load Images (Upload) 🎥🅥🅗🅢", + "VHS_LoadImagesPath": "Load Images (Path) 🎥🅥🅗🅢", + "VHS_LoadAudio": "Load Audio (Path)🎥🅥🅗🅢", + "VHS_LoadAudioUpload": "Load Audio (Upload)🎥🅥🅗🅢", + "VHS_AudioToVHSAudio": "Audio to legacy VHS_AUDIO🎥🅥🅗🅢", + "VHS_VHSAudioToAudio": "Legacy VHS_AUDIO to Audio🎥🅥🅗🅢", + "VHS_PruneOutputs": "Prune Outputs 🎥🅥🅗🅢", + "VHS_BatchManager": "Meta Batch Manager 🎥🅥🅗🅢", + "VHS_VideoInfo": "Video Info 🎥🅥🅗🅢", + "VHS_VideoInfoSource": "Video Info (Source) 🎥🅥🅗🅢", + "VHS_VideoInfoLoaded": "Video Info (Loaded) 🎥🅥🅗🅢", + "VHS_SelectFilename": "Select Filename 🎥🅥🅗🅢", + # Batched Nodes + "VHS_VAEEncodeBatched": "VAE Encode Batched 🎥🅥🅗🅢", + "VHS_VAEDecodeBatched": "VAE Decode Batched 🎥🅥🅗🅢", + # Latent and Image nodes + "VHS_SplitLatents": "Split Latents 🎥🅥🅗🅢", + "VHS_SplitImages": "Split Images 🎥🅥🅗🅢", + "VHS_SplitMasks": "Split Masks 🎥🅥🅗🅢", + "VHS_MergeLatents": "Merge Latents 🎥🅥🅗🅢", + "VHS_MergeImages": "Merge Images 🎥🅥🅗🅢", + "VHS_MergeMasks": "Merge Masks 🎥🅥🅗🅢", + "VHS_GetLatentCount": "Get Latent Count 🎥🅥🅗🅢", + "VHS_GetImageCount": "Get Image Count 🎥🅥🅗🅢", + "VHS_GetMaskCount": "Get Mask Count 🎥🅥🅗🅢", + "VHS_DuplicateLatents": "Repeat Latents 🎥🅥🅗🅢", + "VHS_DuplicateImages": "Repeat Images 🎥🅥🅗🅢", + "VHS_DuplicateMasks": "Repeat Masks 🎥🅥🅗🅢", + "VHS_SelectEveryNthLatent": "Select Every Nth Latent 🎥🅥🅗🅢", + "VHS_SelectEveryNthImage": "Select Every Nth Image 🎥🅥🅗🅢", + "VHS_SelectEveryNthMask": "Select Every Nth Mask 🎥🅥🅗🅢", + "VHS_SelectLatents": "Select Latents 🎥🅥🅗🅢", + "VHS_SelectImages": "Select Images 🎥🅥🅗🅢", + "VHS_SelectMasks": "Select Masks 🎥🅥🅗🅢", + "VHS_Unbatch": "Unbatch 🎥🅥🅗🅢", + "VHS_SelectLatest": "Select Latest 🎥🅥🅗🅢", +} diff --git a/docs/hel-892/openpose-reference/vhs__videohelpersuite__utils.py b/docs/hel-892/openpose-reference/vhs__videohelpersuite__utils.py new file mode 100644 index 00000000..5b35ad47 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__videohelpersuite__utils.py @@ -0,0 +1,443 @@ +import hashlib +import os +from typing import Iterable +import shutil +import subprocess +import re +import time +from collections.abc import Mapping +from typing import Union +import functools +import torch +from torch import Tensor + +import server +from .logger import logger +import folder_paths + +BIGMIN = -(2**53-1) +BIGMAX = (2**53-1) + +DIMMAX = 8192 + +ENCODE_ARGS = ("utf-8", 'backslashreplace') + +def ffmpeg_suitability(path): + try: + version = subprocess.run([path, "-version"], check=True, + capture_output=True).stdout.decode(*ENCODE_ARGS) + except: + return 0 + score = 0 + #rough layout of the importance of various features + simple_criterion = [("libvpx", 20),("264",10), ("265",3), + ("svtav1",5),("libopus", 1)] + for criterion in simple_criterion: + if version.find(criterion[0]) >= 0: + score += criterion[1] + #obtain rough compile year from copyright information + copyright_index = version.find('2000-2') + if copyright_index >= 0: + copyright_year = version[copyright_index+6:copyright_index+9] + if copyright_year.isnumeric(): + score += int(copyright_year) + return score + +class MultiInput(str): + def __new__(cls, string, allowed_types="*"): + res = super().__new__(cls, string) + res.allowed_types=allowed_types + return res + def __ne__(self, other): + if self.allowed_types == "*" or other == "*": + return False + return other not in self.allowed_types +imageOrLatent = MultiInput("IMAGE", ["IMAGE", "LATENT"]) +floatOrInt = MultiInput("FLOAT", ["FLOAT", "INT"]) + +class ContainsAll(dict): + def __contains__(self, other): + return True + def __getitem__(self, key): + return super().get(key, (None, {})) + +if "VHS_FORCE_FFMPEG_PATH" in os.environ: + ffmpeg_path = os.environ.get("VHS_FORCE_FFMPEG_PATH") +else: + ffmpeg_paths = [] + try: + from imageio_ffmpeg import get_ffmpeg_exe + imageio_ffmpeg_path = get_ffmpeg_exe() + ffmpeg_paths.append(imageio_ffmpeg_path) + except: + if "VHS_USE_IMAGEIO_FFMPEG" in os.environ: + raise + logger.warn("Failed to import imageio_ffmpeg") + if "VHS_USE_IMAGEIO_FFMPEG" in os.environ: + ffmpeg_path = imageio_ffmpeg_path + else: + system_ffmpeg = shutil.which("ffmpeg") + if system_ffmpeg is not None: + ffmpeg_paths.append(system_ffmpeg) + if os.path.isfile("ffmpeg"): + ffmpeg_paths.append(os.path.abspath("ffmpeg")) + if os.path.isfile("ffmpeg.exe"): + ffmpeg_paths.append(os.path.abspath("ffmpeg.exe")) + if len(ffmpeg_paths) == 0: + logger.error("No valid ffmpeg found.") + ffmpeg_path = None + elif len(ffmpeg_paths) == 1: + #Evaluation of suitability isn't required, can take sole option + #to reduce startup time + ffmpeg_path = ffmpeg_paths[0] + else: + ffmpeg_path = max(ffmpeg_paths, key=ffmpeg_suitability) +gifski_path = os.environ.get("VHS_GIFSKI", None) +if gifski_path is None: + gifski_path = os.environ.get("JOV_GIFSKI", None) + if gifski_path is None: + gifski_path = shutil.which("gifski") +ytdl_path = os.environ.get("VHS_YTDL", None) or shutil.which('yt-dlp') \ + or shutil.which('youtube-dl') +download_history = {} +def try_download_video(url): + if ytdl_path is None: + return None + if url in download_history: + return download_history[url] + os.makedirs(folder_paths.get_temp_directory(), exist_ok=True) + #Format information could be added to only download audio for Load Audio, + #but this gets hairy if same url is also used for video. + #Best to just always keep defaults + #dl_format = ['-f', 'ba'] if is_audio else [] + try: + res = subprocess.run([ytdl_path, "--print", "after_move:filepath", + "-P", folder_paths.get_temp_directory(), url], + capture_output=True, check=True) + #strip newline + file = res.stdout.decode(*ENCODE_ARGS)[:-1] + except subprocess.CalledProcessError as e: + raise Exception("An error occurred in the yt-dl process:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + file = None + download_history[url] = file + return file + +def is_safe_path(path, strict=False): + if "VHS_STRICT_PATHS" not in os.environ and not strict: + return True + basedir = os.path.abspath('.') + try: + common_path = os.path.commonpath([basedir, path]) + except: + #Different drive on windows + return False + return common_path == basedir + +def get_sorted_dir_files_from_directory(directory: str, skip_first_images: int=0, select_every_nth: int=1, extensions: Iterable=None): + directory = strip_path(directory) + dir_files = os.listdir(directory) + dir_files = sorted(dir_files) + dir_files = [os.path.join(directory, x) for x in dir_files] + dir_files = list(filter(lambda filepath: os.path.isfile(filepath), dir_files)) + # filter by extension, if needed + if extensions is not None: + extensions = list(extensions) + new_dir_files = [] + for filepath in dir_files: + ext = "." + filepath.split(".")[-1] + if ext.lower() in extensions: + new_dir_files.append(filepath) + dir_files = new_dir_files + # start at skip_first_images + dir_files = dir_files[skip_first_images:] + dir_files = dir_files[0::select_every_nth] + return dir_files + + +# modified from https://stackoverflow.com/questions/22058048/hashing-a-file-in-python +def calculate_file_hash(filename: str, hash_every_n: int = 1): + #Larger video files were taking >.5 seconds to hash even when cached, + #so instead the modified time from the filesystem is used as a hash + h = hashlib.sha256() + h.update(filename.encode()) + h.update(str(os.path.getmtime(filename)).encode()) + return h.hexdigest() + +prompt_queue = server.PromptServer.instance.prompt_queue +def requeue_workflow_unchecked(): + """Requeues the current workflow without checking for multiple requeues""" + currently_running = prompt_queue.currently_running + value = next(iter(currently_running.values())) + + # Handle both old (5 values) and new (6 values) ComfyUI versions + if len(value) == 6: + (_, prompt_id, prompt, extra_data, outputs_to_execute, _) = value + else: + (_, prompt_id, prompt, extra_data, outputs_to_execute) = value + + #Ensure batch_managers are marked stale + prompt = prompt.copy() + for uid in prompt: + if prompt[uid]['class_type'] == 'VHS_BatchManager': + prompt[uid]['inputs']['requeue'] = prompt[uid]['inputs'].get('requeue',0)+1 + + #execution.py has guards for concurrency, but server doesn't. + #TODO: Check that this won't be an issue + number = -server.PromptServer.instance.number + server.PromptServer.instance.number += 1 + prompt_id = str(server.uuid.uuid4()) + # Put back with 6 elements to match what ComfyUI expects + sensitive = value[5] if len(value) > 5 else {} + prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute, sensitive)) + +requeue_guard = [None, 0, 0, {}] + +def requeue_workflow(requeue_required=(-1,True)): + assert(len(prompt_queue.currently_running) == 1) + global requeue_guard + + value = next(iter(prompt_queue.currently_running.values())) + + # Handle both old (5 values) and new (6 values) ComfyUI versions + if len(value) == 6: + (run_number, _, prompt, extra_data, outputs_to_execute, _) = value + else: + (run_number, _, prompt, extra_data, outputs_to_execute) = value + + if requeue_guard[0] != run_number: + #Calculate a count of how many outputs are managed by a batch manager + managed_outputs=0 + for bm_uid in prompt: + if prompt[bm_uid]['class_type'] == 'VHS_BatchManager': + for output_uid in prompt: + if prompt[output_uid]['class_type'] in ["VHS_VideoCombine"]: + for inp in prompt[output_uid]['inputs'].values(): + if inp == [bm_uid, 0]: + managed_outputs+=1 + requeue_guard = [run_number, 0, managed_outputs, {}] + requeue_guard[1] = requeue_guard[1]+1 + requeue_guard[3][requeue_required[0]] = requeue_required[1] + if requeue_guard[1] == requeue_guard[2] and max(requeue_guard[3].values()): + requeue_workflow_unchecked() + +def get_audio(file, start_time=0, duration=0): + args = [ffmpeg_path, "-i", file] + if start_time > 0: + args += ["-ss", str(start_time)] + if duration > 0: + args += ["-t", str(duration)] + try: + #TODO: scan for sample rate and maintain + res = subprocess.run(args + ["-f", "f32le", "-"], + capture_output=True, check=True) + audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32) + match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS)) + except subprocess.CalledProcessError as e: + raise Exception(f"VHS failed to extract audio from {file}:\n" \ + + e.stderr.decode(*ENCODE_ARGS)) + if match: + ar = int(match.group(1)) + #NOTE: Just throwing an error for other channel types right now + #Will deal with issues if they come + ac = {"mono": 1, "stereo": 2}[match.group(2)] + else: + ar = 44100 + ac = 2 + audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0) + return {'waveform': audio, 'sample_rate': ar} + +class LazyAudioMap(Mapping): + def __init__(self, file, start_time, duration): + self.file = file + self.start_time=start_time + self.duration=duration + self._dict=None + def __getitem__(self, key): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return self._dict[key] + def __iter__(self): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return iter(self._dict) + def __len__(self): + if self._dict is None: + self._dict = get_audio(self.file, self.start_time, self.duration) + return len(self._dict) +def lazy_get_audio(file, start_time=0, duration=0, **kwargs): + return LazyAudioMap(file, start_time, duration) + +def is_url(url): + return url.split("://")[0] in ["http", "https"] + +def validate_sequence(path): + #Check if path is a valid ffmpeg sequence that points to at least one file + (path, file) = os.path.split(path) + if not os.path.isdir(path): + return False + match = re.search('%0?\\d+d', file) + if not match: + return False + seq = match.group() + if seq == '%d': + seq = '\\\\d+' + else: + seq = '\\\\d{%s}' % seq[1:-1] + file_matcher = re.compile(re.sub('%0?\\d+d', seq, file)) + for file in os.listdir(path): + if file_matcher.fullmatch(file): + return True + return False + +def strip_path(path): + #This leaves whitespace inside quotes and only a single " + #thus ' ""test"' -> '"test' + #consider path.strip(string.whitespace+"\"") + #or weightier re.fullmatch("[\\s\"]*(.+?)[\\s\"]*", path).group(1) + path = path.strip() + if path.startswith("\""): + path = path[1:] + if path.endswith("\""): + path = path[:-1] + return path +def hash_path(path): + if path is None: + return "input" + if is_url(path): + return "url" + if not os.path.isfile(path): + return "DNE" + return calculate_file_hash(strip_path(path)) + + +def validate_path(path, allow_none=False, allow_url=True): + if path is None: + return allow_none + if is_url(path): + #Probably not feasible to check if url resolves here + if not allow_url: + return "URLs are unsupported for this path" + return is_safe_path(path) + if not os.path.isfile(strip_path(path)): + return "Invalid file path: {}".format(path) + return is_safe_path(path) + + +def validate_index(index: int, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int: + # if part of range, do nothing + if is_range: + return index + # otherwise, validate index + # validate not out of range - only when latent_count is passed in + if length > 0 and index > length-1 and not allow_missing: + raise IndexError(f"Index '{index}' out of range for {length} item(s).") + # if negative, validate not out of range + if index < 0: + if not allow_negative: + raise IndexError(f"Negative indeces not allowed, but was '{index}'.") + conv_index = length+index + if conv_index < 0 and not allow_missing: + raise IndexError(f"Index '{index}', converted to '{conv_index}' out of range for {length} item(s).") + index = conv_index + return index + + +def convert_to_index_int(raw_index: str, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int: + try: + return validate_index(int(raw_index), length=length, is_range=is_range, allow_negative=allow_negative, allow_missing=allow_missing) + except ValueError as e: + raise ValueError(f"Index '{raw_index}' must be an integer.", e) + + +def convert_str_to_indexes(indexes_str: str, length: int=0, allow_missing=False) -> list[int]: + if not indexes_str: + return [] + int_indexes = list(range(0, length)) + allow_negative = length > 0 + chosen_indexes = [] + # parse string - allow positive ints, negative ints, and ranges separated by ':' + groups = indexes_str.split(",") + groups = [g.strip() for g in groups] + for g in groups: + # parse range of indeces (e.g. 2:16) + if ':' in g: + index_range = g.split(":", 2) + index_range = [r.strip() for r in index_range] + + start_index = index_range[0] + if len(start_index) > 0: + start_index = convert_to_index_int(start_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing) + else: + start_index = 0 + end_index = index_range[1] + if len(end_index) > 0: + end_index = convert_to_index_int(end_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing) + else: + end_index = length + # support step as well, to allow things like reversing, every-other, etc. + step = 1 + if len(index_range) > 2: + step = index_range[2] + if len(step) > 0: + step = convert_to_index_int(step, length=length, is_range=True, allow_negative=True, allow_missing=True) + else: + step = 1 + # if latents were passed in, base indeces on known latent count + if len(int_indexes) > 0: + chosen_indexes.extend(int_indexes[start_index:end_index][::step]) + # otherwise, assume indeces are valid + else: + chosen_indexes.extend(list(range(start_index, end_index, step))) + # parse individual indeces + else: + chosen_indexes.append(convert_to_index_int(g, length=length, allow_negative=allow_negative, allow_missing=allow_missing)) + return chosen_indexes + + +def select_indexes(input_obj: Union[Tensor, list], idxs: list): + if type(input_obj) == Tensor: + return input_obj[idxs] + else: + return [input_obj[i] for i in idxs] + +def merge_filter_args(args, ftype="-vf"): + #TODO This doesn't account for filter_complex + #Will likely need to convert all filters to filter complex in the future + #But that requires source/output deduplication + try: + start_index = args.index(ftype)+1 + index = start_index + while True: + index = args.index(ftype, index) + args[start_index] += ',' + args[index+1] + args.pop(index) + args.pop(index) + except ValueError: + pass + +def select_indexes_from_str(input_obj: Union[Tensor, list], indexes: str, err_if_missing=True, err_if_empty=True): + real_idxs = convert_str_to_indexes(indexes, len(input_obj), allow_missing=not err_if_missing) + if err_if_empty and len(real_idxs) == 0: + raise Exception(f"Nothing was selected based on indexes found in '{indexes}'.") + return select_indexes(input_obj, real_idxs) + +def hook(obj, attr): + def dec(f): + f = functools.update_wrapper(f, getattr(obj,attr)) + setattr(obj,attr,f) + return f + return dec + +def cached(duration): + def dec(f): + cached_ret = None + cache_time = 0 + def cached_func(): + nonlocal cache_time, cached_ret + if time.time() > cache_time + duration or cached_ret is None: + cache_time = time.time() + cached_ret = f() + return cached_ret + return cached_func + return dec diff --git a/docs/hel-892/openpose-reference/vhs__web__js__VHS.core.js b/docs/hel-892/openpose-reference/vhs__web__js__VHS.core.js new file mode 100644 index 00000000..3f9dabc7 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__web__js__VHS.core.js @@ -0,0 +1,2562 @@ +import { app } from '../../../scripts/app.js' +import { api } from '../../../scripts/api.js' +import { setWidgetConfig } from '../../../extensions/core/widgetInputs.js' +import { applyTextReplacements } from "../../../scripts/utils.js"; + +function chainCallback(object, property, callback) { + if (object == undefined) { + //This should not happen. + console.error("Tried to add callback to non-existant object") + return; + } + if (property in object && object[property]) { + const callback_orig = object[property] + object[property] = function () { + const r = callback_orig.apply(this, arguments); + return callback.apply(this, arguments) ?? r + }; + } else { + object[property] = callback; + } +} + +function getNodeById(id, graph=app.graph) { + let cg = graph + let node = undefined + for (let sid of (''+id).split(':')) { + node = cg?.getNodeById?.(sid) + cg = node?.subgraph + } + return node +} + +const convDict = { + VHS_LoadImages : ["directory", null, "image_load_cap", "skip_first_images", "select_every_nth"], + VHS_LoadImagesPath : ["directory", "image_load_cap", "skip_first_images", "select_every_nth"], + VHS_VideoCombine : ["frame_rate", "loop_count", "filename_prefix", "format", "pingpong", "save_image"], + VHS_LoadVideo : ["video", "force_rate", "force_size", "frame_load_cap", "skip_first_frames", "select_every_nth"], + VHS_LoadVideoPath : ["video", "force_rate", "force_size", "frame_load_cap", "skip_first_frames", "select_every_nth"], +}; +const renameDict = {VHS_VideoCombine : {save_output : "save_image"}} +function useKVState(nodeType) { + chainCallback(nodeType.prototype, "onNodeCreated", function () { + chainCallback(this, "onConfigure", function(info) { + if (!this.widgets) { + //Node has no widgets, there is nothing to restore + return + } + if (typeof(info.widgets_values) != "object") { + //widgets_values is in some unknown inactionable format + return + } + let widgetDict = info.widgets_values + if (info.widgets_values.length) { + //widgets_values is in the old list format + if (this.type in convDict) { + //widget does not have a conversion format provided + let convList = convDict[this.type]; + if(info.widgets_values.length >= convList.length) { + //has all required fields + widgetDict = {} + for (let i = 0; i < convList.length; i++) { + if(!convList[i]) { + //Element should not be processed (upload button on load image sequence) + continue + } + widgetDict[convList[i]] = info.widgets_values[i]; + } + } else { + //widgets_values is missing elements marked as required + //let it fall through to failure state + } + } + } + if ('force_size' in widgetDict) { + //force size has been phased out, Migrate state + if (widgetDict.force_size.includes?.('x')) { + let sizes = widgetDict.force_size.split('x') + if (sizes[0] != '?') { + widgetDict.custom_width = parseInt(sizes[0]) + } else { + widgetDict.custom_width = 0 + } + if (sizes[1] != '?') { + widgetDict.custom_height = parseInt(sizes[1]) + } else { + widgetDict.custom_height = 0 + } + } else { + if (['Disabled', 'Custom Height'].includes(widgetDict.force_size)) { + widgetDict.custom_width = 0 + } + if (['Disabled', 'Custom Width'].includes(widgetDict.force_size)) { + widgetDict.custom_height = 0 + } + } + } + if (widgetDict.videopreview?.params?.force_size) { + delete widgetDict.videopreview.params.force_size + } + let inputs = {} + for (let i of this.inputs) { + inputs[i.name] = i + } + if (widgetDict.length == undefined) { + for (let w of this.widgets) { + if (w.type =="button") { + continue + } + if (w.name in widgetDict) { + w.value = widgetDict[w.name]; + w.callback?.(w.value) + } else { + //Check for a legacy name that needs migrating + if (this.type in renameDict && w.name in renameDict[this.type]) { + if (renameDict[this.type][w.name] in widgetDict) { + w.value = widgetDict[renameDict[this.type][w.name]] + w.callback?.(w.value) + continue + } + } + //attempt to restore default value + let inputs = LiteGraph.getNodeType(this.type).nodeData.input; + let initialValue = null; + if (inputs?.required?.hasOwnProperty(w.name)) { + if (inputs.required[w.name][1]?.hasOwnProperty("default")) { + initialValue = inputs.required[w.name][1].default; + } else if (inputs.required[w.name][0].length) { + initialValue = inputs.required[w.name][0][0]; + } + } else if (inputs?.optional?.hasOwnProperty(w.name)) { + if (inputs.optional[w.name][1]?.hasOwnProperty("default")) { + initialValue = inputs.optional[w.name][1].default; + } else if (inputs.optional[w.name][0].length) { + initialValue = inputs.optional[w.name][0][0]; + } + } + if (initialValue) { + w.value = initialValue; + w.callback?.(w.value) + } + } + if (w.name in inputs && w.config) { + setWidgetConfig(inputs[w.name], w.config) + } + } + } else { + //Saved data was not a map made by this method + //and a conversion dict for it does not exist + //It's likely an array and that has been blindly applied + if (info?.widgets_values?.length != this.widgets.length) { + //Widget could not have restored properly + //Note if multiple node loads fail, only the latest error dialog displays + app.ui.dialog.show("Failed to restore node: " + this.title + "\nPlease remove and re-add it.") + this.bgcolor = "#C00" + } + } + }); + chainCallback(this, "onSerialize", function(info) { + info.widgets_values = {}; + if (!this.widgets) { + //object has no widgets, there is nothing to store + return; + } + for (let w of this.widgets) { + info.widgets_values[w.name] = w.value; + } + }); + }) +} +var helpDOM; +if (!app.helpDOM) { + helpDOM = document.createElement("div"); + app.VHSHelp = helpDOM +} +function initHelpDOM() { + let parentDOM = document.createElement("div"); + parentDOM.className = "VHS_floatinghelp" + document.body.appendChild(parentDOM) + parentDOM.appendChild(helpDOM) + helpDOM.className = "litegraph"; + let scrollbarStyle = document.createElement('style'); + scrollbarStyle.innerHTML = ` + .VHS_floatinghelp { + scrollbar-width: 6px; + scrollbar-color: #0003 #0000; + &::-webkit-scrollbar { + background: transparent; + width: 6px; + } + &::-webkit-scrollbar-thumb { + background: #0005; + border-radius: 20px + } + &::-webkit-scrollbar-button { + display: none; + } + } + .VHS_loopedvideo::-webkit-media-controls-mute-button { + display:none; + } + .VHS_loopedvideo::-webkit-media-controls-fullscreen-button { + display:none; + } + ` + scrollbarStyle.id = 'scroll-properties' + parentDOM.appendChild(scrollbarStyle) + chainCallback(app.canvas, "onDrawForeground", function (ctx, visible_rect){ + let n = helpDOM.node + if (!n || !n?.graph) { + parentDOM.style['left'] = '-5000px' + return + } + //draw : function(ctx, node, widgetWidth, widgetY, height) { + //update widget position, even if off screen + const transform = ctx.getTransform(); + const scale = app.canvas.ds.scale;//gets the litegraph zoom + //calculate coordinates with account for browser zoom + const bcr = app.canvas.canvas.getBoundingClientRect() + const x = transform.e*scale/transform.a + bcr.x; + const y = transform.f*scale/transform.a + bcr.y; + //TODO: text reflows at low zoom. investigate alternatives + Object.assign(parentDOM.style, { + left: (x+(n.pos[0] + n.size[0]+15)*scale) + "px", + top: (y+(n.pos[1]-LiteGraph.NODE_TITLE_HEIGHT)*scale) + "px", + width: "400px", + minHeight: "100px", + maxHeight: "600px", + overflowY: 'scroll', + transformOrigin: '0 0', + transform: 'scale(' + scale + ',' + scale +')', + fontSize: '18px', + backgroundColor: LiteGraph.NODE_DEFAULT_BGCOLOR, + boxShadow: '0 0 10px black', + borderRadius: '4px', + padding: '3px', + zIndex: 3, + position: "absolute", + display: 'inline', + }); + }); + function setCollapse(el, doCollapse) { + if (doCollapse) { + el.children[0].children[0].innerHTML = '+' + Object.assign(el.children[1].style, { + color: '#CCC', + overflowX: 'hidden', + width: '0px', + minWidth: 'calc(100% - 20px)', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + }) + for (let child of el.children[1].children) { + if (child.style.display != 'none'){ + child.origDisplay = child.style.display + } + child.style.display = 'none' + } + } else { + el.children[0].children[0].innerHTML = '-' + Object.assign(el.children[1].style, { + color: '', + overflowX: '', + width: '100%', + minWidth: '', + textOverflow: '', + whiteSpace: '', + }) + for (let child of el.children[1].children) { + child.style.display = child.origDisplay + } + } + } + helpDOM.collapseOnClick = function() { + let doCollapse = this.children[0].innerHTML == '-' + setCollapse(this.parentElement, doCollapse) + } + helpDOM.selectHelp = function(name, value) { + //attempt to navigate to name in help + function collapseUnlessMatch(items,t) { + var match = items.querySelector('[vhs_title="' + t + '"]') + if (!match) { + for (let i of items.children) { + if (i.innerHTML.slice(0,t.length+5).includes(t)) { + match = i + break + } + } + } + if (!match) { + return null + } + //For longer documentation items with fewer collapsable elements, + //scroll to make sure the entirety of the selected item is visible + //This has the unfortunate side effect of trying to scroll the main + //window if the documentation windows is forcibly offscreen, + //but it's easy to simply scroll the main window back and seems to + //have no visual side effects + match.scrollIntoView(false) + window.scrollTo(0,0) + for (let i of items.querySelectorAll('.VHS_collapse')) { + if (i.contains(match)) { + setCollapse(i, false) + } else { + setCollapse(i, true) + } + } + return match + } + let target = collapseUnlessMatch(helpDOM, name) + if (target && value) { + collapseUnlessMatch(target, value) + } + } + let titleContext = document.createElement("canvas").getContext("2d") + titleContext.font = app.canvas.title_text_font; + helpDOM.calculateTitleLength = function(text) { + return titleContext.measureText(text).width + } + helpDOM.addHelp = function(node, nodeType, description) { + if (!description) { + return + } + //Pad computed size for the clickable question mark + let originalComputeSize = node.computeSize + node.computeSize = function() { + let size = originalComputeSize.apply(this, arguments) + if (!this.title) { + return size + } + let title_width = helpDOM.calculateTitleLength(this.title) + size[0] = Math.max(size[0], title_width + LiteGraph.NODE_TITLE_HEIGHT*2) + return size + } + + node.description = description + chainCallback(node, "onDrawForeground", function (ctx) { + if (this?.flags?.collapsed) { + return + } + //draw question mark + ctx.save() + ctx.font = 'bold 20px Arial' + ctx.fillText("?", this.size[0]-17, -8) + ctx.restore() + }) + chainCallback(node, "onMouseDown", function (e, pos, canvas) { + if (this?.flags?.collapsed) { + return + } + //On click would be preferred, but this'll be good enough + if (pos[1] < 0 && pos[0] + LiteGraph.NODE_TITLE_HEIGHT > this.size[0]) { + //corner question mark clicked + if (helpDOM.node == this) { + helpDOM.node = undefined + } else { + helpDOM.node = this; + helpDOM.innerHTML = this.description || "no help provided " + for (let e of helpDOM.querySelectorAll('.VHS_collapse')) { + e.children[0].onclick = helpDOM.collapseOnClick + e.children[0].style.cursor = 'pointer' + } + for (let e of helpDOM.querySelectorAll('.VHS_precollapse')) { + setCollapse(e, true) + } + for (let e of helpDOM.querySelectorAll('.VHS_loopedvideo')) { + e?.play() + } + helpDOM.parentElement.scrollTo(0,0) + } + return true + } + }) + let timeout = null + chainCallback(node, "onMouseMove", function (e, pos, canvas) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + if (helpDOM.node != this) { + return + } + timeout = setTimeout(() => { + let n = this + if (pos[0] > 0 && pos[0] < n.size[0] + && pos[1] > 0 && pos[1] < n.size[1]) { + //TODO: provide help specific to element clicked + let inputRows = Math.max(n.inputs?.length || 0, n.outputs?.length || 0) + if (pos[1] < LiteGraph.NODE_SLOT_HEIGHT * inputRows) { + let row = Math.floor((pos[1] - 7) / LiteGraph.NODE_SLOT_HEIGHT) + if (pos[0] < n.size[0]/2) { + if (row < n.inputs.length) { + helpDOM.selectHelp(n.inputs[row].name) + } + } else { + if (row < n.outputs.length) { + helpDOM.selectHelp(n.outputs[row].name) + } + } + } else { + //probably widget, but widgets have variable height. + let basey = LiteGraph.NODE_SLOT_HEIGHT * inputRows + 6 + for (let w of n.widgets) { + if (w.y) { + basey = w.y + } + let wheight = LiteGraph.NODE_WIDGET_HEIGHT+4 + if (w.computeSize) { + wheight = w.computeSize(n.size[0])[1] + } + if (pos[1] < basey + wheight) { + helpDOM.selectHelp(w.name, w.value) + break + } + basey += wheight + } + } + } + }, 500) + }) + chainCallback(node, "onMouseLeave", function (e, pos, canvas) { + if (timeout) { + clearTimeout(timeout) + timeout = null + } + }); + } +} + +function fitHeight(node) { + node.setSize([node.size[0], node.computeSize([node.size[0], node.size[1]])[1]]) + node?.graph?.setDirtyCanvas(true); +} +function startDraggingItems(node, pointer) { + app.canvas.emitBeforeChange() + app.canvas.graph?.beforeChange() + // Ensure that dragging is properly cleaned up, on success or failure. + pointer.finally = () => { + app.canvas.isDragging = false + app.canvas.graph?.afterChange() + app.canvas.emitAfterChange() + } + app.canvas.processSelect(node, pointer.eDown, true) + app.canvas.isDragging = true +} +function processDraggedItems(e) { + if (e.shiftKey || LiteGraph.alwaysSnapToGrid) + app.canvas?.graph?.snapToGrid(app.canvas.selectedItems) + app.canvas.dirty_canvas = true + app.canvas.dirty_bgcanvas = true + app.canvas.onNodeMoved?.(findFirstNode(app.canvas.selectedItems)) +} +function allowDragFromWidget(widget) { + widget.onPointerDown = function(pointer, node) { + pointer.onDragStart = () => startDraggingItems(node, pointer) + pointer.onDragEnd = processDraggedItems + app.canvas.dirty_canvas = true + return true + } +} + +//Cloud specific auth code. Short circuits if not on cloud +async function getAuthHeader() { + try { + const authStore = await api.getAuthStore() + return authStore ? await authStore.getAuthHeader() : null + } catch (error) { + console.warn('Failed to get auth header:', error) + return null + } +} + +async function uploadFile(file, progressCallback) { + try { + // Wrap file in formdata so it includes filename + const body = new FormData(); + const i = file.webkitRelativePath.lastIndexOf('/'); + const subfolder = file.webkitRelativePath.slice(0,i+1) + const new_file = new File([file], file.name, { + type: file.type, + lastModified: file.lastModified, + }); + body.append("image", new_file); + if (i > 0) { + body.append("subfolder", subfolder); + } + const url = api.apiURL("/upload/image") + const resp = await new Promise((resolve) => { + let req = new XMLHttpRequest() + req.upload.onprogress = (e) => progressCallback?.(e.loaded/e.total) + req.onload = () => resolve(req) + req.open('post', url, true) + getAuthHeader().then((headers) => { + headers ??= {} + for (const key in headers) + req.setRequestHeader(key, headers[key]) + req.send(body) + }) + }) + + if (resp.status !== 200) { + alert(resp.status + " - " + resp.statusText); + } + return resp + } catch (error) { + alert(error); + } +} + +function addVAEOutputToggle(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.reject_ue_connection = (input) => input?.name == "vae" + }) + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linfo) { + let slotType = this.inputs[slot]?.type + if (contype == LiteGraph.INPUT && slotType == "VAE") { + if (iscon && linfo) { + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } else if (this.outputs[0].type == "IMAGE") { + this.linkTimeout = setTimeout(() => { + if (this.outputs[0].type != "IMAGE") { + return + } + this.linkTimeout = false + this.disconnectOutput(0); + }, 50) + } + this.outputs[0].name = 'LATENT'; + this.outputs[0].type = 'LATENT'; + } else{ + if (this.outputs[0].type == "LATENT") { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + this.disconnectOutput(0); + }, 50) + } + this.outputs[0].name = "IMAGE"; + this.outputs[0].type = "IMAGE"; + } + } + }); +} +function addVAEInputToggle(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.reject_ue_connection = (input) => input?.name == "vae" + }) + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linf) { + if (contype == LiteGraph.INPUT && slot == 3 && this.inputs[3].type == "VAE") { + if (iscon && linf) { + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + this.linkTimeout = false + } else if (this.inputs[0].type == "IMAGE") { + this.linkTimeout = setTimeout(() => { + //workaround for out of order loading + if (this.inputs[0].type != "IMAGE") { + return + } + this.linkTimeout = false + this.disconnectInput(0); + }, 50) + } + this.inputs[0].type = 'LATENT'; + } else { + if (this.inputs[0].type == "LATENT") { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + this.disconnectInput(0); + }, 50) + } + this.inputs[0].type = "IMAGE"; + } + } + }); +} +function cloneType(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.changeOutputType = function (new_type) { + this.linkTimeout = setTimeout(() => { + this.linkTimeout = false + if (this.outputs[0].type != new_type) { + this.outputs[0].type = new_type + //check and potentially remove links + if (!this.outputs[0].links) { + return + } + let removed_links = [] + for (let link_id of this.outputs[0].links) { + let link = app.graph.links[link_id] + if (!link) + debugger + let target_node = app.graph.getNodeById(link.target_id) + let target_input = target_node.inputs[link.target_slot] + let keep = LiteGraph.isValidConnection(new_type, target_input.type) + if (!keep) { + link.disconnect(app.graph, 'input') + removed_links.push(link_id) + } + target_node.onConnectionsChange?.(LiteGraph.INPUT, + link.target_slot, keep, link, target_input) + } + this.outputs[0].links = this.outputs[0].links + .filter((v) => !removed_links.includes(v)) + } + }, 50) + } + this.changeOutputType("VHS_DUMMY_NONE") + }); + chainCallback(nodeType.prototype, "onConnectionsChange", function(contype, slot, iscon, linf) { + if (contype == LiteGraph.INPUT && slot == 0) { + let new_type = "VHS_DUMMY_NONE" + if (iscon && linf) { + new_type = app.graph.getNodeById(linf.origin_id).outputs[linf.origin_slot].type + } + if (this.linkTimeout) { + clearTimeout(this.linkTimeout) + } + this.changeOutputType(new_type) + } + }); +} + +function addDateFormatting(nodeType, field, timestamp_widget = false) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const widget = this.widgets.find((w) => w.name === field); + widget.serializeValue = () => { + return applyTextReplacements(app, widget.value); + }; + }); +} +function addTimestampWidget(nodeType, nodeData, targetWidget) { + const newWidgets = {}; + for (let key in nodeData.input.required) { + if (key == targetWidget) { + //TODO: account for duplicate entries? + newWidgets["timestamp_directory"] = ["BOOLEAN", {"default": true}] + } + newWidgets[key] = nodeData.input.required[key]; + } + nodeDta.input.required = newWidgets; + chainCallback(nodeType.prototype, "onNodeCreated", function () { + const directoryWidget = this.widgets.find((w) => w.name === "directory_name"); + const timestampWidget = this.widgets.find((w) => w.name === "timestamp_directory"); + directoryWidget.serializeValue = () => { + if (timestampWidget.value) { + //ignore actual value and return timestamp + return formatDate("yyyy-MM-ddThh:mm:ss", new Date()); + } + return directoryWidget.value + }; + timestampWidget._value = value; + Object.definteProperty(timestampWidget, "value", { + set : function(value) { + this._value = value; + directoryWidget.disabled = value; + }, + get : function() { + return this._value; + } + }); + }); +} +function initializeLoadFormat(nodeType, nodeData) { + if (!nodeData?.input?.optional?.format) { + return + } + chainCallback(nodeType.prototype, "onNodeCreated", function() { + let node = this + let formatWidget = this.widgets.find((w) => w.name === "format") + formatWidget.options.formats = nodeData.input.optional.format[1].formats + let base = {} + for (let widget of this.widgets) { + if (['force_rate', 'custom_width', 'custom_height', + 'frame_load_cap'].includes(widget.name)) { + //TODO: filter these options? + base[widget.name] = widget.options + } + } + chainCallback(formatWidget, "callback", function(value) { + let format = this.options.formats[value] + if (!format) { + return + } + if ('target_rate' in format) { + format.force_rate = {'reset': format.target_rate} + } + if ('dim' in format) { + format.custom_width = {'step': format.dim[0], 'mod': format.dim[1]} + format.custom_height = {'step': format.dim[0], 'mod': format.dim[1]} + if (format.dim[2]) { + format.custom_width.reset = format.dim[2] + } + if (format.dim[3]) { + format.custom_height.reset = format.dim[3] + } + } + if ('frames' in format) { + format.frame_load_cap = {'step': format.frames[0], 'mod': format.frames[1]} + } + for (let widget of node.widgets) { + if (widget.name in base) { + let wasDefault = widget.options?.reset == widget.value + widget.options = Object.assign({}, base[widget.name], format[widget.name]) + if (wasDefault && widget.options.reset != undefined) { + widget.value = widget.options.reset + } + widget.callback(widget.value) + } + } + + }); + let capWidget = this.widgets.find((w) => w.name === "frame_load_cap") + capWidget.annotation = (value, width) => { + let max_frames = this.video_query?.loaded?.frames + if (!max_frames || value && value < max_frames) { + return + } + let format = formatWidget.options.formats[formatWidget.value] + const div = format?.frames?.[0] ?? 1 + const mod = format?.frames?.[1] ?? 0 + let loadable_frames = max_frames + if ((max_frames % div) != mod) { + loadable_frames = ((max_frames - mod)/div|0) * div + mod + } + return loadable_frames + "\u21FD" + } + let rateWidget = this.widgets.find((w) => w.name === "force_rate") + rateWidget.annotation = (value, width) => { + if (value == 0 && this.video_query?.source?.fps != undefined) { + return roundToPrecision(this.video_query.source.fps, 2) + "\u21FD" + } + } + }); +} + +function addUploadWidget(nodeType, nodeData, widgetName, type="video") { + let accept = {'video': ["video/webm","video/mp4","video/x-matroska","image/gif"], + 'audio': ["audio/mpeg","audio/wav","audio/x-wav","audio/ogg"]} + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const node = this + const pathWidget = this.widgets.find((w) => w.name === widgetName); + const fileInput = document.createElement("input"); + chainCallback(this, "onRemoved", () => { + fileInput?.remove(); + }); + if (type == "folder") { + Object.assign(fileInput, { + type: "file", + style: "display: none", + webkitdirectory: true, + onchange: async () => { + const directory = fileInput.files[0].webkitRelativePath; + const i = directory.lastIndexOf('/'); + if (i <= 0) { + throw "No directory found"; + } + const path = directory.slice(0,directory.lastIndexOf('/')) + if (pathWidget.options.values.includes(path)) { + alert("A folder of the same name already exists"); + return; + } + let successes = 0; + const onProg = (p) => this.progress = (successes + p) / fileInput.files.length + for(const file of fileInput.files) { + if ((await uploadFile(file, onProg)).status == 200) { + successes++; + } else { + this.progress = undefined + //Upload failed, but some prior uploads may have succeeded + //Stop future uploads to prevent cascading failures + //and only add to list if an upload has succeeded + if (successes > 0) { + break + } else { + return; + } + } + } + this.progress = undefined + pathWidget.options.values.push(path); + pathWidget.value = path; + if (pathWidget.callback) { + pathWidget.callback(path) + } + }, + }); + } else { + let accept = {'video': ["video/webm","video/mp4","video/x-matroska","image/gif"], + 'audio': ["audio/mpeg","audio/wav","audio/x-wav","audio/ogg"]}[type] + async function doUpload(file) { + let resp = await uploadFile(file, (p) => node.progress = p) + node.progress = undefined + if (resp.status != 200) { + return false + } + const filename = JSON.parse(resp.responseText).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + if (pathWidget.callback) { + pathWidget.callback(filename) + } + return true + } + Object.assign(fileInput, { + type: "file", + accept: accept.join(','), + style: "display: none", + onchange: async () => { + if (fileInput.files.length) { + return await doUpload(fileInput.files[0]) + } + }, + }); + this.onDragOver = (e) => !!e?.dataTransfer?.types?.includes?.('Files') + this.onDragDrop = async function(e) { + if (!e?.dataTransfer?.types?.includes?.('Files')) { + return false + } + //TODO: Allow dragging multiple files at once? + const item = e.dataTransfer?.files?.[0] + if (accept.includes(item?.type)) { + return await doUpload(item) + } + return false + } + } + document.body.append(fileInput); + let uploadWidget = this.addWidget("button", "choose " + type + " to upload", "image", () => { + //clear the active click event + app.canvas.node_widget = null + + fileInput.click(); + }); + uploadWidget.options.serialize = false; + + + }); +} +function addAudioPreview(nodeType, isInput=true) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var element = document.createElement("audio"); + element.controls = true + const previewNode = this; + var previewWidget = this.addDOMWidget("audiopreview", "preview", element, { + serialize: false, + hideOnZoom: true, + getValue() { + return element.value; + }, + setValue(v) { + element.value = v; + }, + }); + previewWidget.computeSize = function(width) { + return [width, 50]; + } + var timeout = null; + this.updateParameters = (params, force_update) => { + if (!previewWidget.value.params) { + if(typeof(previewWidget.value) != 'object') { + previewWidget.value = {} + } + previewWidget.value.params = {} + } + Object.assign(previewWidget.value.params, params) + if (!force_update && + app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == 'Never') { + return; + } + if (timeout) { + clearTimeout(timeout); + } + if (force_update) { + previewWidget.updateSource(); + } else { + timeout = setTimeout(() => previewWidget.updateSource(),100); + } + }; + previewWidget.updateSource = function () { + if (this.value.params == undefined) { + return; + } + let params = {} + let advp = app.ui.settings.getSettingValue("VHS.AdvancedPreviews") + if (advp == 'Never') { + advp = false + } else if (advp == 'Input Only') { + advp = isInput + } else { + advp = true + } + Object.assign(params, this.value.params);//shallow copy + params.timestamp = Date.now() + if (!advp) { + element.src = api.apiURL('/view?' + new URLSearchParams(params)); + } else { + params.deadline = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsDeadline") + element.src = api.apiURL('/vhs/viewaudio?' + new URLSearchParams(params)); + } + } + previewWidget.callback = previewWidget.updateSource + + + //setup widget tracking + function update(key) { + return function(value) { + let params = {} + params[key] = this.value + previewNode?.updateParameters(params) + } + } + let widgetMap = { 'seek_seconds': 'start_time', 'duration': 'duration', + 'start_time': 'start_time' } + for (let widget of this.widgets) { + if (widget.name in widgetMap) { + if (typeof(widgetMap[widget.name]) == 'function') { + chainCallback(widget, "callback", widgetMap[widget.name]); + } else { + chainCallback(widget, "callback", update(widgetMap[widget.name])) + } + } + if (widget.type != "button") { + widget.callback?.(widget.value) + } + } + }); +} + +function addVideoPreview(nodeType, isInput=true) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var element = document.createElement("div"); + const previewNode = this; + var previewWidget = this.addDOMWidget("videopreview", "preview", element, { + serialize: false, + hideOnZoom: false, + getValue() { + return element.value; + }, + setValue(v) { + element.value = v; + }, + }); + allowDragFromWidget(previewWidget) + previewWidget.computeSize = function(width) { + if (this.aspectRatio && !this.parentEl.hidden) { + let height = (previewNode.size[0]-20)/ this.aspectRatio + 10; + if (!(height > 0)) { + height = 0; + } + this.computedHeight = height + 10; + return [width, height]; + } + return [width, -4];//no loaded src, widget should not display + } + element.addEventListener('contextmenu', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + element.addEventListener('pointerdown', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + element.addEventListener('mousewheel', (e) => { + e.preventDefault() + return app.canvas._mousewheel_callback(e) + }, true); + element.addEventListener('pointermove', (e) => { + e.preventDefault() + return app.canvas._mousemove_callback(e) + }, true); + element.addEventListener('pointerup', (e) => { + e.preventDefault() + return app.canvas._mouseup_callback(e) + }, true); + element.addEventListener('dragover', (e) => { + //A little hacky, but allows drag events onto the preview itself + e.preventDefault(); + e.dataTransfer.dropEffect = "copy"; + app.dragOverNode = this + }) + previewWidget.value = {hidden: false, paused: false, params: {}, + muted: app.ui.settings.getSettingValue("VHS.DefaultMute")} + previewWidget.parentEl = document.createElement("div"); + previewWidget.parentEl.className = "vhs_preview"; + previewWidget.parentEl.style['width'] = "100%" + element.appendChild(previewWidget.parentEl); + previewWidget.videoEl = document.createElement("video"); + previewWidget.videoEl.controls = false; + previewWidget.videoEl.loop = true; + previewWidget.videoEl.muted = true; + previewWidget.videoEl.style['width'] = "100%" + previewWidget.videoEl.addEventListener("loadedmetadata", () => { + + previewWidget.aspectRatio = previewWidget.videoEl.videoWidth / previewWidget.videoEl.videoHeight; + fitHeight(this); + }); + previewWidget.videoEl.addEventListener("error", () => { + //TODO: consider a way to properly notify the user why a preview isn't shown. + previewWidget.parentEl.hidden = true; + fitHeight(this); + }); + previewWidget.videoEl.onmouseenter = () => { + previewWidget.videoEl.muted = previewWidget.value.muted + }; + previewWidget.videoEl.onmouseleave = () => { + previewWidget.videoEl.muted = true; + }; + + previewWidget.imgEl = document.createElement("img"); + previewWidget.imgEl.style['width'] = "100%" + previewWidget.imgEl.hidden = true; + previewWidget.imgEl.onload = () => { + previewWidget.aspectRatio = previewWidget.imgEl.naturalWidth / previewWidget.imgEl.naturalHeight; + fitHeight(this); + }; + previewWidget.parentEl.appendChild(previewWidget.videoEl) + previewWidget.parentEl.appendChild(previewWidget.imgEl) + var timeout = null; + this.updateParameters = (params, force_update) => { + if (!previewWidget.value.params) { + if(typeof(previewWidget.value) != 'object') { + previewWidget.value = {hidden: false, paused: false} + } + previewWidget.value.params = {} + } + if (!Object.entries(params).some(([k,v]) => previewWidget.value.params[k] !== v)) { + return + } + Object.assign(previewWidget.value.params, params) + if (!force_update && + app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == 'Never') { + return; + } + if (timeout) { + clearTimeout(timeout); + } + if (force_update) { + previewWidget.updateSource(); + } else { + timeout = setTimeout(() => previewWidget.updateSource(),100); + } + }; + previewWidget.updateSource = function () { + if (this.value.params == undefined) { + return; + } + let params = {} + let advp = app.ui.settings.getSettingValue("VHS.AdvancedPreviews") + if (advp == 'Never') { + advp = false + } else if (advp == 'Input Only') { + advp = isInput + } else { + advp = true + } + Object.assign(params, this.value.params);//shallow copy + params.timestamp = Date.now() + this.parentEl.hidden = this.value.hidden; + if (params.format?.split('/')[0] == 'video' + || advp && (params.format?.split('/')[1] == 'gif') + || params.format == 'folder') { + + this.videoEl.autoplay = !this.value.paused && !this.value.hidden; + if (!advp) { + this.videoEl.src = api.apiURL('/view?' + new URLSearchParams(params)); + } else { + let target_width = (previewNode.size[0]-20)*2 || 256; + let minWidth = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsMinWidth") + if (target_width < minWidth) { + target_width = minWidth + } + if (!params.custom_width || !params.custom_height) { + params.force_size = target_width+"x?" + } else { + let ar = params.custom_width/params.custom_height + params.force_size = target_width+"x"+(target_width/ar) + } + params.deadline = app.ui.settings.getSettingValue("VHS.AdvancedPreviewsDeadline") + this.videoEl.src = api.apiURL('/vhs/viewvideo?' + new URLSearchParams(params)); + } + this.videoEl.hidden = false; + this.imgEl.hidden = true; + } else if (params.format?.split('/')[0] == 'image'){ + //Is animated image + this.imgEl.src = api.apiURL('/view?' + new URLSearchParams(params)); + this.videoEl.hidden = true; + this.imgEl.hidden = false; + } + delete previewNode.video_query + const doQuery = async () => { + if (!previewWidget?.value?.params?.filename) { + return + } + let qurl = api.apiURL('/vhs/queryvideo?' + new URLSearchParams(previewWidget.value.params)) + let query = undefined + try { + let query_res = await fetch(qurl) + query = await query_res.json() + } catch(e) { + return + } + previewNode.video_query = query + } + doQuery() + } + previewWidget.callback = previewWidget.updateSource + previewWidget.parentEl.appendChild(previewWidget.videoEl) + previewWidget.parentEl.appendChild(previewWidget.imgEl) + }); +} +let copiedPath = undefined +function addPreviewOptions(nodeType) { + chainCallback(nodeType.prototype, "getExtraMenuOptions", function(_, options) { + // The intended way of appending options is returning a list of extra options, + // but this isn't used in widgetInputs.js and would require + // less generalization of chainCallback + let optNew = [] + const previewWidget = this.widgets.find((w) => w.name === "videopreview"); + + let url = null + if (previewWidget.videoEl?.hidden == false && previewWidget.videoEl.src) { + if (['input', 'output', 'temp'].includes(previewWidget.value.params.type)) { + //Use full quality video + url = api.apiURL('/view?' + new URLSearchParams(previewWidget.value.params)); + //Workaround for 16bit png: Just do first frame + url = url.replace('%2503d', '001') + } + } else if (previewWidget.imgEl?.hidden == false && previewWidget.imgEl.src) { + url = previewWidget.imgEl.src; + url = new URL(url); + } + if (this.video_query?.source) { + let info_string = this.video_query.source.size.join('x') + + '@' + this.video_query.source.fps + 'fps ' + + this.video_query.source.frames + 'frames' + optNew.push({content: info_string, disabled: true}) + } + if (url) { + optNew.push( + { + content: "Open preview", + callback: () => { + window.open(url, "_blank") + }, + }, + { + content: "Save preview", + callback: () => { + const a = document.createElement("a"); + a.href = url; + a.setAttribute("download", previewWidget.value.params.filename); + document.body.append(a); + a.click(); + requestAnimationFrame(() => a.remove()); + }, + } + ); + if (previewWidget.value.params.fullpath) { + copiedPath = previewWidget.value.params.fullpath + const blob = new Blob([previewWidget.value.params.fullpath], + { type: 'text/plain'}) + optNew.push({ + content: "Copy output filepath", + callback: async () => { + await navigator.clipboard.write([ + new ClipboardItem({ + 'text/plain': blob + })])} + }); + } + if (previewWidget.value.params.workflow) { + let wParams = {...previewWidget.value.params, + filename: previewWidget.value.params.workflow} + let wUrl = api.apiURL('/view?' + new URLSearchParams(wParams)); + optNew.push({ + content: "Save workflow image", + callback: () => { + const a = document.createElement("a"); + a.href = wUrl; + a.setAttribute("download", previewWidget.value.params.workflow); + document.body.append(a); + a.click(); + requestAnimationFrame(() => a.remove()); + } + }); + } + } + const PauseDesc = (previewWidget.value.paused ? "Resume" : "Pause") + " preview"; + if(previewWidget.videoEl.hidden == false) { + optNew.push({content: PauseDesc, callback: () => { + //animated images can't be paused and are more likely to cause performance issues. + //changing src to a single keyframe is possible, + //For now, the option is disabled if an animated image is being displayed + if(previewWidget.value.paused) { + previewWidget.videoEl?.play(); + } else { + previewWidget.videoEl?.pause(); + } + previewWidget.value.paused = !previewWidget.value.paused; + }}); + } + //TODO: Consider hiding elements if no video preview is available yet. + //It would reduce confusion at the cost of functionality + //(if a video preview lags the computer, the user should be able to hide in advance) + const visDesc = (previewWidget.value.hidden ? "Show" : "Hide") + " preview"; + optNew.push({content: visDesc, callback: () => { + if (!previewWidget.videoEl.hidden && !previewWidget.value.hidden) { + previewWidget.videoEl.pause(); + } else if (previewWidget.value.hidden && !previewWidget.videoEl.hidden && !previewWidget.value.paused) { + previewWidget.videoEl.play(); + } + previewWidget.value.hidden = !previewWidget.value.hidden; + previewWidget.parentEl.hidden = previewWidget.value.hidden; + fitHeight(this); + + }}); + optNew.push({content: "Sync preview", callback: () => { + //TODO: address case where videos have varying length + //Consider a system of sync groups which are opt-in? + for (let p of document.getElementsByClassName("vhs_preview")) { + for (let child of p.children) { + if (child.tagName == "VIDEO") { + child.currentTime=0; + } else if (child.tagName == "IMG") { + child.src = child.src; + } + } + } + }}); + const muteDesc = (previewWidget.value.muted ? "Unmute" : "Mute") + " Preview" + optNew.push({content: muteDesc, callback: () => { + previewWidget.value.muted = !previewWidget.value.muted + }}) + if(options.length > 0 && options[0] != null && optNew.length > 0) { + optNew.push(null); + } + options.unshift(...optNew); + }); +} +function addFormatWidgets(nodeType, nodeData) { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + var formatWidget = null; + var formatWidgetIndex = -1; + for(let i = 0; i < this.widgets.length; i++) { + if (this.widgets[i].name === "format"){ + formatWidget = this.widgets[i]; + formatWidgetIndex = i+1; + break + } + } + let formatWidgetsCount = 0; + chainCallback(formatWidget, "callback", (value) => { + const formats = (LiteGraph.registered_node_types[this.type] + ?.nodeData?.input?.required?.format?.[1]?.formats) + let newWidgets = []; + if (formats?.[value]) { + let formatWidgets = formats[value] + for (let wDef of formatWidgets) { + let type = wDef[2]?.widgetType ?? wDef[1] + if (Array.isArray(type)) { + type = "COMBO" + } + app.widgets[type](this, wDef[0], wDef.slice(1), app) + let w = this.widgets.pop() + w.config = wDef.slice(1) + newWidgets.push(w) + } + } + let removed = this.widgets.splice(formatWidgetIndex, + formatWidgetsCount, ...newWidgets); + let newNames = new Set(newWidgets.map((w) => w.name)) + for (let w of removed) { + w?.onRemove?.() + if (w.name in newNames) { + continue + } + //I do not like the performance of this, but it's safe + let slot = this.inputs.findIndex((i) => i.name == w.name) + if (slot >= 0) { + this.removeInput(slot) + } + } + for (let w of newWidgets) { + let existingInput = this.inputs.find((i) => i.name == w.name) + if (existingInput) { + setWidgetConfig(existingInput, w.config) + //TODO: Consider forcing disconnection if props change? + } else { + //NOTE: config is applied in wrapped addInput call + this.addInput(w.name, w.config[0], {widget: {name: w.name}}) + } + } + fitHeight(this); + formatWidgetsCount = newWidgets.length; + }); + }); +} +function addLoadCommon(nodeType, nodeData) { + addVideoPreview(nodeType); + initializeLoadFormat(nodeType, nodeData) + addPreviewOptions(nodeType); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + //widget.callback adds unused arguements which need culling + const node = this + function update(key) { + return function(value) { + let params = {} + params[key] = this.value + node?.updateParameters(params) + } + } + let prior_ar = -2 + const widthWidget = this.widgets.find((w) => w.name === "custom_width"); + const heightWidget = this.widgets.find((w) => w.name === "custom_height"); + function updateAR(value) { + let new_ar = -1 + if (widthWidget.value & heightWidget.value) { + new_ar = widthWidget.value / heightWidget.value + } + if (new_ar != prior_ar) { + node?.updateParameters({'custom_width': widthWidget.value, + 'custom_height': heightWidget.value}) + prior_ar = new_ar + } + } + const offsetWidget = this.widgets.find((w) => w.name === "start_time"); + if (offsetWidget) { + Object.defineProperty(offsetWidget.options, "step", { + set : (value) => {}, + get : () => { + return 1 / (this.video_query?.loaded?.fps ?? 1) + } + }) + } + let widgetMap = {'frame_load_cap': 'frame_load_cap', + 'skip_first_frames': 'skip_first_frames', 'select_every_nth': 'select_every_nth', + 'start_time': 'start_time', 'force_rate': 'force_rate', + 'custom_width': updateAR, 'custom_height': updateAR, + 'image_load_cap': 'image_load_cap', 'skip_first_images': 'skip_first_images' + } + for (let widget of this.widgets) { + if (widget.name in widgetMap) { + if (typeof(widgetMap[widget.name]) == 'function') { + chainCallback(widget, "callback", widgetMap[widget.name]); + } else { + chainCallback(widget, "callback", update(widgetMap[widget.name])) + } + } + if (widget.type != "button") { + widget.callback?.(widget.value) + } + } + }); +} + +function path_stem(path) { + let i = path.lastIndexOf("/"); + if (i >= 0) { + return [path.slice(0,i+1),path.slice(i+1)]; + } + return ["",path]; +} +function searchBox(event, [x,y], node) { + //Ensure only one dialogue shows at a time + if (this.prompt) + return; + this.prompt = true; + + let pathWidget = this; + let dialog = document.createElement("div"); + dialog.className = "litegraph litesearchbox graphdialog rounded" + dialog.innerHTML = 'Path
' + dialog.close = () => { + dialog.remove(); + } + document.body.append(dialog); + if (app.canvas.ds.scale > 1) { + dialog.style.transform = "scale(" + app.canvas.ds.scale + ")"; + } + var name_element = dialog.querySelector(".name"); + var input = dialog.querySelector(".value"); + var options_element = dialog.querySelector(".helper"); + input.value = pathWidget.value; + + var timeout = null; + let last_path = null; + let extensions = pathWidget.options.vhs_path_extensions + + input.addEventListener("keydown", (e) => { + dialog.is_modified = true; + if (e.keyCode == 27) { + //ESC + dialog.close(); + } else if (e.keyCode == 13 && e.target.localName != "textarea") { + pathWidget.value = input.value; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + dialog.close(); + } else { + if (e.keyCode == 9) { + //TAB + input.value = last_path + options_element.firstChild.innerText; + e.preventDefault(); + e.stopPropagation(); + } else if (e.ctrlKey && (e.keyCode == 87 || e.keyCode == 66)) { + //Ctrl+w or Ctrl+b + //most browsers won't support, but it's good QOL for those that do + input.value = path_stem(input.value.slice(0,-1))[0] + e.preventDefault(); + e.stopPropagation(); + } else if (e.ctrlKey && e.keyCode == 71) { + //Ctrl+g + //Temporarily disables extension filtering to show all files + e.preventDefault(); + e.stopPropagation(); + extensions = undefined + last_path = null; + } + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(updateOptions, 10); + return; + } + this.prompt=false; + e.preventDefault(); + e.stopPropagation(); + }); + + var button = dialog.querySelector("button"); + button.addEventListener("click", (e) => { + pathWidget.value = input.value; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + //unsure why dirty is set here, but not on enter-key above + node.graph.setDirtyCanvas(true); + dialog.close(); + this.prompt = false; + }); + var rect = app.canvas.canvas.getBoundingClientRect(); + var offsetx = -20; + var offsety = -20; + if (rect) { + offsetx -= rect.left; + offsety -= rect.top; + } + + if (event) { + dialog.style.left = event.clientX + offsetx + "px"; + dialog.style.top = event.clientY + offsety + "px"; + } else { + dialog.style.left = canvas.width * 0.5 + offsetx + "px"; + dialog.style.top = canvas.height * 0.5 + offsety + "px"; + } + //Search code + let options = [] + function addResult(name, isDir) { + let el = document.createElement("div"); + el.innerText = name; + el.className = "litegraph lite-search-item"; + if (isDir) { + el.className += " is-dir"; + el.addEventListener("click", (e) => { + input.value = last_path+name + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(updateOptions, 10); + }); + } else { + el.addEventListener("click", (e) => { + pathWidget.value = last_path+name; + if (pathWidget.callback) { + pathWidget.callback(pathWidget.value); + } + dialog.close(); + pathWidget.prompt = false; + }); + } + options_element.appendChild(el); + } + async function updateOptions() { + timeout = null; + let [path, remainder] = path_stem(input.value); + if (last_path != path) { + //fetch options. Must block execution here, so update should be async? + let params = {path : path} + if (extensions) { + params.extensions = extensions + } + let optionsURL = api.apiURL('/vhs/getpath?' + new URLSearchParams(params)); + try { + let resp = await fetch(optionsURL); + options = await resp.json(); + options = options.map((o) => o.replace('.','\0')) + options = options.sort() + options = options.map((o) => o.replace('\0','.')) + } catch(e) { + options = [] + } + last_path = path; + } + options_element.innerHTML = ''; + //filter options based on remainder + for (let option of options) { + if (option.startsWith(remainder)) { + let isDir = option.endsWith('/') + addResult(option, isDir); + } + } + } + + setTimeout(async function() { + input.focus(); + await updateOptions(); + }, 10); + + return dialog; +} +function button_action(widget) { + if ( + widget.options?.reset == undefined && + widget.options?.disable == undefined + ) { + return 'None' + } + if ( + widget.options.reset != undefined && + widget.value != widget.options.reset + ) { + return 'Reset' + } + if ( + widget.options.disable != undefined && + widget.value != widget.options.disable + ) { + return 'Disable' + } + if (widget.options.reset != undefined) { + return 'No Reset' + } + return 'No Disable' +} +function fitText(ctx, text, maxLength) { + if (maxLength <= 0) { + return ['', 0] + } + let fullLength = ctx.measureText(text).width + if (fullLength < maxLength) { + return [text, fullLength] + } + //determine approx safe cutoff + let cutoff = maxLength / fullLength * text.length | 0 + let shortened = text.slice(0, Math.max(0, cutoff - 2)) + '…' + return [shortened, ctx.measureText(shortened).width] +} +function fitPath(ctx, path, maxLength) { + let fullLength = ctx.measureText(path).width + if (fullLength < maxLength) { + return [path, fullLength] + } + //determine approx safe cutoff + let len = (maxLength / fullLength * path.length | 0) - 1 + + let displayPath = '' + let filename = path_stem(path)[1] + if (filename.length > len-2) { + //may all fit, but can't squeeze more info + displayPath = filename.substr(0,len); + } else { + //TODO: find solution for windows, path[1] == ':'? + let isAbs = path[0] == '/'; + let partial = path.substr(path.length - (isAbs ? len-2:len-1)) + let cutoff = partial.indexOf('/'); + if (cutoff < 0) { + //Can occur, but there isn't a nicer way to format + displayPath = path.substr(path.length-len); + } else { + displayPath = (isAbs ? '/…':'…') + partial.substr(cutoff); + } + } + return [displayPath, ctx.measureText(displayPath).width] +} +function roundToPrecision(num, precision) { + let strnum = Number(num).toFixed(precision) + let deci = strnum.indexOf('.') + if (deci > 0) { + let i = strnum.length - 1 + while (i > deci && strnum[i] == '0') { + i-- + } + if (i == deci) { + i-- + } + return strnum.slice(0, i+1) + } + return strnum +} +function inner_value_change(widget, value, node, pos) { + widget.value = value + if (widget.options?.property && widget.options.property in node.properties) { + node.setProperty(widget.options.property, value) + } + if (widget.callback) { + widget.callback(widget.value, app.canvas, node, event) + } +} +function drawAnnotated(ctx, node, widget_width, y, H) { + const litegraph_base = LiteGraph + const show_text = app.canvas.ds.scale >= (app.canvas.low_quality_zoom_threshold ?? 0.5) + const margin = 15 + ctx.strokeStyle = litegraph_base.WIDGET_OUTLINE_COLOR + ctx.fillStyle = litegraph_base.WIDGET_BGCOLOR + ctx.beginPath() + if (show_text) + ctx.roundRect(margin, y, widget_width - margin * 2, H, [H * 0.5]) + else ctx.rect(margin, y, widget_width - margin * 2, H) + ctx.fill() + if (show_text) { + if (!this.disabled) ctx.stroke() + const button = button_action(this) + if (button != 'None') { + ctx.save() + if (button.startsWith('No ')) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + ctx.strokeStyle = litegraph_base.WIDGET_OUTLINE_COLOR + } else { + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + ctx.strokeStyle = litegraph_base.WIDGET_TEXT_COLOR + } + ctx.beginPath() + if (button.endsWith('Reset')) { + ctx.arc(widget_width - margin - 26, y + H/2, 4, Math.PI*3/2, Math.PI) + ctx.stroke() + ctx.beginPath() + ctx.moveTo(widget_width - margin - 26, y + H/2 - 1.5) + ctx.lineTo(widget_width - margin - 26, y + H/2 - 6.5) + ctx.lineTo(widget_width - margin - 30, y + H/2 - 3.5) + ctx.fill() + } else { + ctx.arc(widget_width - margin - 26, y + H/2, 4, Math.PI*2/3, Math.PI*8/3) + ctx.moveTo(widget_width - margin - 26 - 8 ** .5, y + H/2 + 8 ** .5) + ctx.lineTo(widget_width - margin - 26 + 8 ** .5, y + H/2 - 8 ** .5) + ctx.stroke() + } + ctx.restore() + } + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + if (!this.disabled) { + ctx.beginPath() + ctx.moveTo(margin + 16, y + 5) + ctx.lineTo(margin + 6, y + H * 0.5) + ctx.lineTo(margin + 16, y + H - 5) + ctx.fill() + ctx.beginPath() + ctx.moveTo(widget_width - margin - 16, y + 5) + ctx.lineTo(widget_width - margin - 6, y + H * 0.5) + ctx.lineTo(widget_width - margin - 16, y + H - 5) + ctx.fill() + } + let freeWidth = widget_width - (40 + margin * 2 + 20) + let [valueText, valueWidth] = fitText(ctx, (this.displayValue?.() ?? ""), freeWidth) + freeWidth -= valueWidth + + ctx.textAlign = 'left' + ctx.fillStyle = litegraph_base.WIDGET_SECONDARY_TEXT_COLOR + if (freeWidth > 20) { + let [name, nameWidth] = fitText(ctx, this.label || this.name, freeWidth) + freeWidth -= nameWidth + ctx.fillText(name, margin * 2 + 5, y + H * 0.7) + } + + let value_offset = margin * 2 + 20 + ctx.textAlign = 'right' + if (this.options.unit) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + let [unitText, unitWidth] = fitText(ctx, this.options.unit, freeWidth) + if (unitText == this.options.unit) { + ctx.fillText(this.options.unit, widget_width - value_offset, y + H * 0.7) + value_offset += unitWidth + freeWidth -= unitWidth + } + } + ctx.fillStyle = litegraph_base.WIDGET_TEXT_COLOR + ctx.fillText(valueText, widget_width - value_offset, y + H * 0.7) + ctx.fillStyle = litegraph_base.WIDGET_SECONDARY_TEXT_COLOR + + + let annotation = '' + if (this.annotation) { + annotation = this.annotation(this.value, freeWidth) + } else if ( + this.options.annotation && + this.value in this.options.annotation + ) { + annotation = this.options.annotation[this.value] + } + if (annotation) { + ctx.fillStyle = litegraph_base.WIDGET_OUTLINE_COLOR + let [annoDisplay, annoWidth] = fitText(ctx, annotation, freeWidth) + ctx.fillText( + annoDisplay, + widget_width - 5 - valueWidth - value_offset, + y + H * 0.7 + ) + } + } +} +function mouseAnnotated(event, [x, y], node) { + //NOTE: Mouse actions contain no history element. + //This can cause overlapping actions since each triggers on different event type (down/move/up) + //TODO: Consider further rework + const widget_width = this.width || node.size[0] + const old_value = this.value + const margin = 15 + let isButton = 0 + if (x > margin + 6 && x < margin + 16) { + isButton = -1 + } else if (x > widget_width - margin - 16 & x < widget_width - margin - 6) { + isButton = 1 + } else if (x > widget_width - margin - 34 && x < widget_width - margin - 18) { + isButton = 2 + } + var allow_scroll = true + if (allow_scroll && event.type == 'pointermove') { + if (event.deltaX) + this.value += event.deltaX * (this.options.step || 1) + if (this.options.min != null && this.value < this.options.min) { + this.value = this.options.min + } + if (this.options.max != null && this.value > this.options.max) { + this.value = this.options.max + } + } else if (event.type == 'pointerdown') { + const buttonType = button_action(this) + if (isButton == 2) { + if (buttonType == 'Reset') { + this.value = this.options.reset + } else if (buttonType == 'Disable') { + this.value = this.options.disable + } + } else { + this.value += isButton * (this.options.step || 1) + if (this.options.min != null && this.value < this.options.min) { + this.value = this.options.min + } + if (this.options.max != null && this.value > this.options.max) { + this.value = this.options.max + } + } + } //end mousedown + else if (event.type == 'pointerup') { + if (event.click_time < 200 && !isButton) { + const d_callback = (v) => { + this.value = this.parseValue?.(v) ?? Number(v) + inner_value_change(this, this.value, node, [x, y]) + } + const dialog = app.canvas.prompt( + 'Value', + this.value,//TODO: Consider making this displayValue? + d_callback, + event + ) + const input = dialog.querySelector(".value") + input.addEventListener("keydown", (e) => { + if (e.keyCode == 9) { + e.preventDefault(); + e.stopPropagation(); + d_callback(input.value) + dialog.close() + node?.graph?.setDirtyCanvas(true); + let i = node.widgets.findIndex((w) => w == this) + if (e.shiftKey) + i-- + else + i++ + if (node.widgets[i]?.type == "VHS.ANNOTATED") {//restrict to annotatedNUmbers + node.widgets[i]?.mouse(event, [x, y+24], node) + } + } + }) + } + } + + if (old_value != this.value) + setTimeout( + function () { + inner_value_change(this, this.value, node, [x, y]) + }.bind(this), + 20 + ) + return true +} +let latentPreviewNodes = new Set() +app.registerExtension({ + name: "VideoHelperSuite.Core", + settings: [ + { + id: 'VHS.AdvancedPreviews', + category: ['🎥🅥🅗🅢', 'Previews', 'Advanced Previews'], + name: 'Advanced Previews', + tooltip: 'Automatically transcode previews on request. Required for advanced functionality', + type: 'combo', + options: ['Never', 'Always', 'Input Only'], + defaultValue: 'Input Only', + }, + { + id: 'VHS.AdvancedPreviewsMinWidth', + category: ['🎥🅥🅗🅢', 'Previews', 'Min Width'], + name: 'Minimum preview width', + tooltip: 'Advanced previews have their resolution downscaled to the node size for performance. While a node can be resized to increase preview quality, a minimum width can be set that previews won\'t be downscaled beneath. Preveiws will never be upscaled, so this can safely be set large.', + type: 'number', + attrs: { + min: 0, + step: 1, + max: 3840, + }, + defaultValue: 0, + }, + { + id: 'VHS.AdvancedPreviewsDeadline', + category: ['🎥🅥🅗🅢', 'Previews', 'Deadline'], + name: 'Deadline', + tooltip: 'Determines how much time can be spent when encoding advanced previews. Realtime results in reduced quality, but good will likely cause the preview to stutter as initial generation occurs', + type: 'combo', + options: ['realtime', 'good'], + defaultValue: 'realtime', + }, + { + id: 'VHS.AdvancedPreviewsDefaultMute', + category: ['🎥🅥🅗🅢', 'Previews', 'Default Mute'], + name: 'Mute videos by default', + type: 'boolean', + defaultValue: false, + }, + { + id: 'VHS.LatentPreview', + category: ['🎥🅥🅗🅢', 'Sampling', 'Latent Previews'], + name: 'Display animated previews when sampling', + type: 'boolean', + defaultValue: false, + onChange(value) { + if (!value) { + //Remove any previewWidgets + for (let id of latentPreviewNodes) { + let n = app.graph.getNodeById(id) + let i = n?.widgets?.findIndex((w) => w.name == 'vhslatentpreview') + if (i >= 0) { + n.widgets.splice(i,1)[0].onRemove() + } + } + latentPreviewNodes = new Set() + } + }, + }, + { + id: "VHS.LatentPreviewRate", + category: ['🎥🅥🅗🅢', 'Sampling', 'Latent Preview Rate'], + name: "Playback rate override.", + type: 'number', + attrs: { + min: 0, + step: 1, + max: 60 + }, + tooltip: + 'Force a specific frame rate for the playback of latent frames. This should not be confused with the output frame rate and will not match for video models.', + defaultValue: 0, + }, + { + id: 'VHS.MetadataImage', + category: ['🎥🅥🅗🅢', 'Output', 'MetadataImage'], + name: 'Save png of first frame for metadata', + type: 'boolean', + defaultValue: true, + }, + { + id: 'VHS.KeepIntermediate', + category: ['🎥🅥🅗🅢', 'Output', 'Keep Intermediate'], + name: 'Keep required intermediate files after sucessful execution', + type: 'boolean', + defaultValue: true, + }, + ], + + async beforeRegisterNodeDef(nodeType, nodeData, app) { + if(nodeData?.name?.startsWith("VHS_")) { + useKVState(nodeType); + if (nodeData.description) { + let description = nodeData.description + let el = document.createElement("div") + el.innerHTML = description + if (!el.children.length) { + //Is plaintext. Do minor convenience formatting + let chunks = description.split('\n') + nodeData.description = chunks[0] + description = chunks.join('
') + } else { + nodeData.description = el.querySelector('#VHS_shortdesc')?.innerHTML || el.children[1]?.firstChild?.innerHTML + } + chainCallback(nodeType.prototype, "onNodeCreated", function () { + helpDOM.addHelp(this, nodeType, description) + this.setSize(this.computeSize()) + }) + } + //set widgetType to use VHS widgets where possible + for(let inp of Object.values({...nodeData.input?.required, ...nodeData.input?.optional})) { + if (["INT", "FLOAT"].includes(inp[0])) { + if (!inp[1]) { + inp[1] = {} + } + inp[1].widgetType ??= "VHS" + inp[0] + } + } + chainCallback(nodeType.prototype, "onNodeCreated", function () { + let new_widgets = [] + if (this.widgets) { + for (let w of this.widgets) { + let input = this.constructor.nodeData.input + let config = input?.required[w.name] ?? input.optional[w.name] + if (!config) { + continue + } + if (w?.type == "text" && config[1].vhs_path_extensions) { + new_widgets.push(app.widgets.VHSPATH({}, w.name, ["VHSPATH", config[1]])); + } else { + new_widgets.push(w) + } + } + this.widgets = new_widgets; + } + const originalAddInput = this.addInput; + this.addInput = function(name, type, options) { + if (options.widget) { + //Is Converted Widget + const widget = this.widgets.find((w) => w.name == name) + if (widget?.config) { + //Has override for type + type = widget.config[0] + if (type == 'FLOAT') { + type = "FLOAT,INT" + } + setWidgetConfig(options, widget.config) + } + } + return originalAddInput.apply(this, [name, type, options]) + } + }); + } + if (nodeData?.name == "VHS_LoadImages") { + addUploadWidget(nodeType, nodeData, "directory", "folder"); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "directory"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let params = {filename : value, type : "input", format: "folder"}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadImagesPath") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "directory"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let params = {filename : value, type : "path", format: "folder"}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadVideo" || nodeData?.name == "VHS_LoadVideoFFmpeg") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "video"); + chainCallback(pathWidget, "callback", (value) => { + if (!value) { + return; + } + let parts = ["input", value]; + let extension_index = parts[1].lastIndexOf("."); + let extension = parts[1].slice(extension_index+1); + let format = "video" + if (["gif", "webp", "avif"].includes(extension)) { + format = "image" + } + format += "/" + extension; + let params = {filename : parts[1], type : parts[0], format: format}; + this.updateParameters(params, true); + }); + }); + addUploadWidget(nodeType, nodeData, "video"); + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadAudio") { + addAudioPreview(nodeType) + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "audio_file"); + chainCallback(pathWidget, "callback", (filename) => { + this.updateParameters({filename, type: 'path'}, true); + }); + }); + } else if (nodeData?.name == "VHS_LoadAudioUpload") { + addUploadWidget(nodeType, nodeData, "audio", "audio"); + addAudioPreview(nodeType) + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "audio"); + chainCallback(pathWidget, "callback", (filename) => { + if (!filename) return + let params = {filename, type : "input"}; + this.updateParameters(params, true); + }); + }); + } else if (nodeData?.name == "VHS_LoadVideoPath" || nodeData?.name == "VHS_LoadVideoFFmpegPath") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "video"); + chainCallback(pathWidget, "callback", (value) => { + let extension_index = value.lastIndexOf("."); + let extension = value.slice(extension_index+1); + let format = "video" + if (["gif", "webp", "avif"].includes(extension)) { + format = "image" + } + format += "/" + extension; + let params = {filename : value, type: "path", format: format}; + this.updateParameters(params, true); + }); + }); + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + } else if (nodeData?.name == "VHS_LoadImagePath") { + addLoadCommon(nodeType, nodeData); + addVAEOutputToggle(nodeType, nodeData); + chainCallback(nodeType.prototype, "onNodeCreated", function() { + const pathWidget = this.widgets.find((w) => w.name === "image"); + chainCallback(pathWidget, "callback", (value) => { + let extension_index = value.lastIndexOf("."); + let extension = value.slice(extension_index+1); + let format = "video" + "/" + extension; + let params = {filename : value, type: "path", format: format}; + this.updateParameters(params, true); + }); + }); + } else if (nodeData?.name == "VHS_VideoCombine") { + addDateFormatting(nodeType, "filename_prefix"); + chainCallback(nodeType.prototype, "onExecuted", function(message) { + if (message?.gifs) { + this.updateParameters(message.gifs[0], true); + } + }); + addVideoPreview(nodeType, false); + addPreviewOptions(nodeType); + addFormatWidgets(nodeType, nodeData); + addVAEInputToggle(nodeType, nodeData) + } else if (nodeData?.name == "VHS_SaveImageSequence") { + //Disabled for safety as VHS_SaveImageSequence is not currently merged + //addDateFormating(nodeType, "directory_name", timestamp_widget=true); + //addTimestampWidget(nodeType, nodeData, "directory_name") + } else if (nodeData?.name == "VHS_BatchManager") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.widgets.push({name: "count", type: "dummy", value: 0, + computeSize: () => {return [0,-4]}, + afterQueued: function() {this.value++;}}); + }); + } else if (nodeData?.name == "VHS_Unbatch") { + cloneType(nodeType, nodeData) + } else if (nodeData?.name == "VHS_SelectLatest") { + chainCallback(nodeType.prototype, "onNodeCreated", function() { + this.isVirtualNode = true + chainCallback(this, "onConnectionsChange", function (contype, slot, iscon, linfo) { + if (iscon) { + this.update_links() + } + }) + + this.update_links = function(extraLinks = []) { + if (!this.outputs[0].links?.length) return + + function get_links(node) { + let links = [] + for (const l of node.outputs[0].links) { + const linkInfo = node.graph.links[l] + const n = node.graph.getNodeById(linkInfo.target_id) + if (n.type == 'Reroute') { + links = links.concat(get_links(n)) + } else { + links.push(l) + } + } + return links + } + + let links = [ + ...get_links(this).map((l) => this.graph.links[l]), + ...extraLinks + ] + let v = this.latest_file + if (!v) { + return + } + + // For each output link copy our value over the original widget value + for (const linkInfo of links) { + const node = this.graph.getNodeById(linkInfo.target_id) + const input = node.inputs[linkInfo.target_slot] + const widgetName = input.widget.name + const widget = node.widgets.find((w) => w.name === widgetName) + if (widget) { + widget.value = v + if (widget.callback) { + widget.callback( widget.value, app.canvas, + node, app.canvas.graph_mouse, {}) + } + } + } + } + let fetch_files = async () => { + let [path, remainder] = path_stem(this.widgets[0].value) + let params = {path : path} + let optionsURL = api.apiURL('/vhs/getpath?' + new URLSearchParams(params)); + let options = [] + try { + let resp = await fetch(optionsURL); + options = await resp.json(); + } catch(e) {} + options = options.filter((file) => file.startsWith(remainder) && file.endsWith(this.widgets[1].value)) + if (options.length && this.latest_file != options[options.length-1]) { + this.latest_file = path + options[options.length-1] + this.update_links() + } + } + this.widgets[0].callback = fetch_files + this.widgets[1].callback = fetch_files + this.onPromptExecuted = fetch_files + this.applyToGraph = this.update_links + }) + } + }, + async getCustomWidgets() { + return { + VHSPATH(node, inputName, inputData) { + let w = { + name : inputName, + type : "VHS.PATH", + value : "", + draw : function(ctx, node, widget_width, y, H) { + //Adapted from litegraph.core.js:drawNodeWidgets + var show_text = app.canvas.ds.scale >= (app.canvas.low_quality_zoom_threshold ?? 0.5) + var margin = 15; + var text_color = LiteGraph.WIDGET_TEXT_COLOR; + var secondary_text_color = LiteGraph.WIDGET_SECONDARY_TEXT_COLOR; + ctx.textAlign = "left"; + ctx.strokeStyle = LiteGraph.WIDGET_OUTLINE_COLOR; + ctx.fillStyle = LiteGraph.WIDGET_BGCOLOR; + ctx.beginPath(); + if (show_text) + ctx.roundRect(margin, y, widget_width - margin * 2, H, [H * 0.5]); + else + ctx.rect( margin, y, widget_width - margin * 2, H ); + ctx.fill(); + if (show_text) { + if(!this.disabled) + ctx.stroke(); + ctx.save(); + ctx.beginPath(); + ctx.rect(margin, y, widget_width - margin * 2, H); + ctx.clip(); + + //ctx.stroke(); + let freeWidth = widget_width - (margin * 2 + 40) + ctx.fillStyle = secondary_text_color; + const label = this.label || this.name; + if (label != null) { + let [labelDisplay, labelWidth] = fitText(ctx, label, freeWidth) + freeWidth -= labelWidth + ctx.fillText(labelDisplay, margin * 2, y + H * 0.7); + } + ctx.fillStyle = this.value ? text_color : '#777'; + ctx.textAlign = "right"; + let disp_text = fitPath(ctx, String(this.value || this.options.placeholder), freeWidth)[0] + ctx.fillText(disp_text, widget_width - margin * 2, y + H * 0.7); + ctx.restore(); + } + }, + mouse : searchBox, + options : {}, + }; + if (inputData.length > 1) { + w.options = inputData[1] + if (inputData[1].default) { + w.value = inputData[1].default; + } + } + + if (!node.widgets) { + node.widgets = []; + } + node.widgets.push(w); + return w; + }, + VHSFLOAT(node, inputName, inputData) { + let w = { + name: inputName, + type: "VHS.ANNOTATED", + value: inputData[1]?.default ?? 0, + draw: drawAnnotated, + mouse: mouseAnnotated, + computeSize(width) { + return [width, 20] + }, + callback(v) { + if (this.options.round) { + //TODO adopt ComfyUI_frontend#4291? + v = Math.round((v + Number.EPSILON) / + this.options.round) * this.options.round + } + if (this.options.max && v > this.options.max) { + v = this.options.max + } + if (this.options.min && v < this.options.max) { + v = this.options.min + } + this.value = v + }, + config: inputData, + displayValue: function() { + return roundToPrecision(this.value, this.options.precision ?? 3) + }, + options: Object.assign({}, inputData[1]) + } + if (!node.widgets) { + node.widgets = [] + } + node.widgets.push(w) + return w + }, + VHSINT(node, inputName, inputData) { + let w = { + name: inputName, + type: "VHS.ANNOTATED", + value: inputData[1]?.default ?? 0, + draw: drawAnnotated, + mouse: mouseAnnotated, + computeSize(width) { + return [width, 20] + }, + callback(v) { + if (this.options.max && v > this.options.max) { + v = this.options.max + } + if (this.options.min && v < this.options.min) { + v = this.options.min + } + if (v == 0) { + return + } + const s = this.options.step + let sh = this.options.mod ?? 0 + this.value = Math.round((v - sh) / s) * s + sh + }, + config: inputData, + displayValue: function() { + return this.value | 0 + }, + options: Object.assign({}, inputData[1]) + } + if (!node.widgets) { + node.widgets = [] + } + node.widgets.push(w) + return w + }, + VHSTIMESTAMP(node, inputName, inputData) { + let w = { + name: inputName, + type: "VHS.TIMESTAMP", + value: inputData[1]?.default ?? 0, + draw: drawAnnotated, + mouse: mouseAnnotated, + computeSize(width) { + return [width, 20] + }, + parseValue(v) { + if (typeof(v) == "string") { + let val = 0 + for (let chunk of v.split(":")) { + val = val * 60 + parseFloat(chunk) + } + return val + } + }, + callback(v) {}, + config: inputData, + options: Object.assign({}, inputData[1]), + displayValue() { + let seconds = this.value + let hours = seconds / 3600 | 0 + seconds -= 3600 * hours + let minutes = seconds / 60 | 0 + seconds -= 60 * minutes + let display = "" + if (hours > 0) { + display += hours + ":" + } + if (hours > 0 || minutes > 0) { + if (hours > 0) { + minutes = (''+minutes).padStart(2,'0') + } + display += minutes + ":" + } + seconds = roundToPrecision(seconds, 4) + if ((seconds[1] == '.' || seconds.length == 1) && (minutes > 0 || hours > 0)) { + seconds = '0'+seconds + } + display += seconds + return display + } + } + if (!node.widgets) { + node.widgets = [] + } + node.widgets.push(w) + return w + }, + } + }, + async loadedGraphNode(node) { + //Check and migrate inputs named batch_manager from old workflows + if (node.type?.startsWith("VHS_") && node.inputs) { + const batchInput = node.inputs.find((i) => i.name == "batch_manager") + if (batchInput) { + batchInput.name = "meta_batch" + } + } + }, + async beforeConfigureGraph(graphData, missingNodeTypes) { + if(helpDOM?.node) { + helpDOM.node = undefined + } + }, + async setup() { + let originalGraphToPrompt = app.graphToPrompt + let graphToPrompt = async function() { + let res = await originalGraphToPrompt.apply(this, arguments); + res.workflow.extra['VHS_latentpreview'] = app.ui.settings.getSettingValue("VHS.LatentPreview") + res.workflow.extra['VHS_latentpreviewrate'] = app.ui.settings.getSettingValue("VHS.LatentPreviewRate") + res.workflow.extra['VHS_MetadataImage'] = app.ui.settings.getSettingValue("VHS.MetadataImage") + res.workflow.extra['VHS_KeepIntermediate'] = app.ui.settings.getSettingValue("VHS.KeepIntermediate") + return res + } + app.graphToPrompt = graphToPrompt + //Add a handler for pasting video data + document.addEventListener('paste', async (e) => { + if (!e.target.classList.contains('litegraph') && + !e.target.classList.contains('graph-canvas-container')) { + return + } + let data = e.clipboardData || window.clipboardData + let filepath = data.getData('text/plain') + let video + for (const item of data.items) { + if (item.type.startsWith('video/')) { + video = item + break + } + } + if (filepath && copiedPath == filepath) { + //Add a Load Video (Path) and populate filepath + const pastedNode = LiteGraph.createNode('VHS_LoadVideoPath') + app.canvas.graph.add(pastedNode) + pastedNode.pos[0] = app.canvas.graph_mouse[0] + pastedNode.pos[1] = app.canvas.graph_mouse[1] + pastedNode.widgets[0].value = filepath + pastedNode.widgets[0].callback?.(filepath) + } else if (video && false) { + //Disabled due to lack of testing + //Add a Load Video (Upload), then upload the file, then select the file + const pastedNode = LiteGraph.createNode('VHS_LoadVideo') + app.canvas.graph.add(pastedNode) + pastedNode.pos[0] = app.canvas.graph_mouse[0] + pastedNode.pos[1] = app.canvas.graph_mouse[1] + const pathWidget = pastedNode.widgets[0] + //TODO: upload to pasted dir? + const blob = video.getAsFile() + const resp = await uploadFile(blob) + if (resp.status != 200) { + //upload failed and file can not be added to options + return; + } + const filename = (await resp.json()).name; + pathWidget.options.values.push(filename); + pathWidget.value = filename; + pathWidget.callback?.(filename) + } else { + return + } + e.preventDefault() + e.stopImmediatePropagation() + return false + }, true) + }, + async init() { + if (app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == true) { + app.ui.settings.setSettingValue("VHS.AdvancedPreviews", 'Always') + } + if (app.ui.settings.getSettingValue("VHS.AdvancedPreviews") == false) { + app.ui.settings.setSettingValue("VHS.AdvancedPreviews", 'Never') + } + if (app.VHSHelp != helpDOM) { + helpDOM = app.VHSHelp + } else { + initHelpDOM() + } + let e = app.extensions.filter((w) => w.name == 'UVR5.AudioPreviewer') + if (e.length) { + let orig = e[0].beforeRegisterNodeDef + e[0].beforeRegisterNodeDef = function(nodeType, nodeData, app) { + if(!nodeData?.name?.startsWith("VHS_")) { + return orig.apply(this, arguments); + } + } + } + }, +}); +let previewImages = [] +api.addEventListener('executing', ({ detail }) => { + if (detail === null) { + for (let graph of [app.graph, ...app.graph.subgraphs.values()]) { + for (let node of graph._nodes) { + if (node.type.startsWith("VHS_")) { + node.onPromptExecuted?.() + } + } + } + } +}) +function getLatentPreviewCtx(id, width, height) { + const node = getNodeById(id) + if (!node) { + return undefined + } + + let previewWidget = node.widgets.find((w) => w.name == "vhslatentpreview") + if (!previewWidget) { + //check for and remove any native preview + let nativePreview = node.widgets.findIndex((w) => w.name == '$$canvas-image-preview') + if (nativePreview >= 0) { + node.imgs = [] + node.widgets.splice(nativePreview,1) + } + let canvasEl = document.createElement("canvas") + canvasEl.style.width = "100%" + previewWidget = node.addDOMWidget("vhslatentpreview", "vhscanvas", canvasEl, { + serialize: false, + hideOnZoom: false, + }); + previewWidget.serialize = false + allowDragFromWidget(previewWidget) + canvasEl.addEventListener('contextmenu', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + canvasEl.addEventListener('pointerdown', (e) => { + e.preventDefault() + return app.canvas._mousedown_callback(e) + }, true); + canvasEl.addEventListener('mousewheel', (e) => { + e.preventDefault() + return app.canvas._mousewheel_callback(e) + }, true); + canvasEl.addEventListener('pointermove', (e) => { + e.preventDefault() + return app.canvas._mousemove_callback(e) + }, true); + canvasEl.addEventListener('pointerup', (e) => { + e.preventDefault() + return app.canvas._mouseup_callback(e) + }, true); + + previewWidget.computeSize = function(width) { + if (this.aspectRatio) { + let height = (node.size[0]-20)/ this.aspectRatio + 10; + if (!(height > 0)) { + height = 0; + } + this.computedHeight = height + 10; + return [width, height]; + } + return [width, -4];//no loaded src, widget should not display + } + } + let canvasEl = previewWidget.element + if (!previewWidget.ctx || canvasEl.width != width + || canvasEl.height != height) { + previewWidget.aspectRatio = width / height + canvasEl.width = width + canvasEl.height = height + fitHeight(node) + } + return canvasEl.getContext("2d") +} +let animateIntervals = {} +function beginLatentPreview(id, previewImages, rate) { + latentPreviewNodes.add(id) + if (animateIntervals[id]) { + clearTimeout(animateIntervals[id]) + } + let displayIndex = 0 + let node = getNodeById(id) + //While progress is safely cleared on execution completion. + //Initial progress must be started here to avoid a race condition + node.progress = 0 + animateIntervals[id] = setInterval(() => { + if (getNodeById(id)?.progress == undefined + || app.canvas.graph.rootGraph != node.graph.rootGraph) { + clearTimeout(animateIntervals[id]) + delete animateIntervals[id] + return + } + if (!previewImages[displayIndex]) { + return + } + getLatentPreviewCtx(id, previewImages[displayIndex].width, + previewImages[displayIndex].height)?.drawImage?.(previewImages[displayIndex],0,0) + displayIndex = (displayIndex + 1) % previewImages.length + }, 1000/rate); + +} +let previewImagesDict = {} +api.addEventListener('VHS_latentpreview', ({ detail }) => { + if (detail.id == null) { + return + } + let previewImages = previewImagesDict[detail.id] = [] + previewImages.length = detail.length + + let idParts = detail.id.split(':') + for (let i=1; i <= idParts.length; i++) { + let id = idParts.slice(0,i).join(':') + beginLatentPreview(id, previewImages, detail.rate) + } +}); +let td = new TextDecoder() +api.addEventListener('b_preview', async (e) => { + if (Object.keys(animateIntervals).length == 0) { + return + } + e.preventDefault() + e.stopImmediatePropagation() + e.stopPropagation() + const dv = new DataView(await e.detail.slice(0,24).arrayBuffer()) + const index = dv.getUint32(4) + const idlen = dv.getUint8(8) + const id = td.decode(dv.buffer.slice(9,9+idlen)) + previewImagesDict[id][index] = await window.createImageBitmap(e.detail.slice(24)) + return false +}, true); diff --git a/docs/hel-892/openpose-reference/vhs__web__js__videoinfo.js b/docs/hel-892/openpose-reference/vhs__web__js__videoinfo.js new file mode 100644 index 00000000..b1a98710 --- /dev/null +++ b/docs/hel-892/openpose-reference/vhs__web__js__videoinfo.js @@ -0,0 +1,101 @@ +import { app } from '../../../scripts/app.js' + + +function getVideoMetadata(file) { + return new Promise((r) => { + const reader = new FileReader(); + reader.onload = (event) => { + const videoData = new Uint8Array(event.target.result); + const dataView = new DataView(videoData.buffer); + + let decoder = new TextDecoder(); + // Check for known valid magic strings + if (dataView.getUint32(0) == 0x1A45DFA3) { + //webm/mkv (both use EBML/Matroska format) + //see http://wiki.webmproject.org/webm-metadata/global-metadata + //and https://www.matroska.org/technical/elements.html + //contrary to specs, tag seems consistently at start + //COMMENT + 0x4487 + packed length? + //length 0x8d8 becomes 0x48d8 + // + //description for variable length ints https://github.com/ietf-wg-cellar/ebml-specification/blob/master/specification.markdown + let offset = 4 + 8; //COMMENT is 7 chars + 1 to realign + while(offset < videoData.length-16) { + //Check for text tags + if (dataView.getUint16(offset) == 0x4487) { + //check that name of tag is COMMENT + const name = String.fromCharCode(...videoData.slice(offset-7,offset)); + if (name === "COMMENT") { + let vint = dataView.getUint32(offset+2); + let n_octets = Math.clz32(vint)+1; + if (n_octets < 4) {//250MB sanity cutoff + let length = (vint >> (8*(4-n_octets))) & ~(1 << (7*n_octets)); + const content = decoder.decode(videoData.slice(offset+2+n_octets, offset+2+n_octets+length)); + let json = JSON.parse(content); + r(json); + return; + } + } + } + offset+=1; + } + } else if (dataView.getUint32(4) == 0x66747970 && dataView.getUint32(8) == 0x69736F6D) { + //mp4 + //see https://developer.apple.com/documentation/quicktime-file-format + //Seems to make no guarantee for alignment + let offset = videoData.length-4; + while (offset > 16) {//rough safe guess + if (dataView.getUint32(offset) == 0x64617461) {//any data tag + if (dataView.getUint32(offset - 8) == 0xa9636d74) {//cmt data tag + let type = dataView.getUint32(offset+4); //seemingly 1 + let locale = dataView.getUint32(offset+8); //seemingly 0 + let size = dataView.getUint32(offset-4) - 4*4; + const content = decoder.decode(videoData.slice(offset+12, offset+12+size)); + const json = JSON.parse(content); + r(json); + return; + } + } + + offset-=1; + } + } else { + console.error("Unknown magic: " + dataView.getUint32(0)) + } + r(); + return; + }; + + reader.readAsArrayBuffer(file); + }); +} +function isVideoFile(file) { + if (file?.name?.endsWith(".webm")) { + return true; + } + if (file?.name?.endsWith(".mp4")) { + return true; + } + if (file?.name?.endsWith(".mkv")) { + return true; + } + + return false; +} + +let originalHandleFile = app.handleFile; +app.handleFile = handleFile; +let fileInput = document.getElementById("comfy-file-input") +//hijack comfy-file-input to allow webm/mp4/mkv +fileInput.accept += ",video/webm,video/mp4,video/x-matroska"; + +async function handleFile(file) { + if (file?.type?.startsWith("video/") || isVideoFile(file)) { + const videoInfo = await getVideoMetadata(file); + if (videoInfo?.workflow) { + await app.loadGraphData(videoInfo.workflow); + return + } + } + return await originalHandleFile.apply(this, arguments); +} diff --git a/e2e/openpose-document.mjs b/e2e/openpose-document.mjs new file mode 100644 index 00000000..8c4e942a --- /dev/null +++ b/e2e/openpose-document.mjs @@ -0,0 +1,97 @@ +// Local GET-only OpenPose 27 positions and sixteen source-bound 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/openpose-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(u.hostname!=='127.0.0.1'||u.pathname==='/api/view'){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=['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===16&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===421,'16图421保存位置'); + check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===15,'16图15源注释'); + 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=d===details[0]?'new_openpose':'old_fifteen';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); + await page.screenshot({path:`${out}/${width}-${d.id}-default.png`}); + 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)}`); + 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(['frame_rate','force_rate','resolution','videopreview','format'].includes(f.field))await page.screenshot({path:`${out}/${width}-${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}无溢出`);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()===18,'迟到OpenPose响应不覆盖SDPose图摘要/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无写/生成/目标/历史预览请求'); + fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({assertion_count:checks.length,assertionGroups,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2)); +} finally {await browser.close();} diff --git a/e2e/run-openpose-document.py b/e2e/run-openpose-document.py new file mode 100644 index 00000000..dbe91c4b --- /dev/null +++ b/e2e/run-openpose-document.py @@ -0,0 +1,78 @@ +"""Foreground local browser check; stop every owned service before returning.""" + +from __future__ import annotations + +import os +import signal +import subprocess +import sys +import time +import urllib.error +import urllib.request +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +OUT = ROOT / ".local-evidence/openpose-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 = ["openpose"] + for name in names: + subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True) + finally: + for p in processes: + if p.poll() is None: + os.killpg(p.pid, signal.SIGTERM) + try: + p.wait(timeout=10) + except subprocess.TimeoutExpired: + os.killpg(p.pid, signal.SIGKILL) + p.wait(timeout=5) + for log in logs: + log.close() + print("All owned browser services stopped.") + + +if __name__ == "__main__": + main()